Skip to content
Permalink
v6.3.1-arch2
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Commits on May 10, 2023

  1. Arch Linux kernel v6.3.1-arch2

    heftig committed May 10, 2023
  2. netfilter: nf_tables: deactivate anonymous set from preparation phase

    Toggle deleted anonymous sets as inactive in the next generation, so
    users cannot perform any update on it. Clear the generation bitmask
    in case the transaction is aborted.
    
    The following KASAN splat shows a set element deletion for a bound
    anonymous set that has been already removed in the same transaction.
    
    [   64.921510] ==================================================================
    [   64.923123] BUG: KASAN: wild-memory-access in nf_tables_commit+0xa24/0x1490 [nf_tables]
    [   64.924745] Write of size 8 at addr dead000000000122 by task test/890
    [   64.927903] CPU: 3 PID: 890 Comm: test Not tainted 6.3.0+ torvalds#253
    [   64.931120] Call Trace:
    [   64.932699]  <TASK>
    [   64.934292]  dump_stack_lvl+0x33/0x50
    [   64.935908]  ? nf_tables_commit+0xa24/0x1490 [nf_tables]
    [   64.937551]  kasan_report+0xda/0x120
    [   64.939186]  ? nf_tables_commit+0xa24/0x1490 [nf_tables]
    [   64.940814]  nf_tables_commit+0xa24/0x1490 [nf_tables]
    [   64.942452]  ? __kasan_slab_alloc+0x2d/0x60
    [   64.944070]  ? nf_tables_setelem_notify+0x190/0x190 [nf_tables]
    [   64.945710]  ? kasan_set_track+0x21/0x30
    [   64.947323]  nfnetlink_rcv_batch+0x709/0xd90 [nfnetlink]
    [   64.948898]  ? nfnetlink_rcv_msg+0x480/0x480 [nfnetlink]
    
    Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
    ummakynes authored and heftig committed May 10, 2023

Commits on May 1, 2023

  1. ZEN: Add sysctl and CONFIG to disallow unprivileged CLONE_NEWUSER

    Our default behavior continues to match the vanilla kernel.
    heftig committed May 1, 2023

Commits on Apr 30, 2023

  1. Linux 6.3.1

    Link: https://lore.kernel.org/r/20230428112039.886496777@linuxfoundation.org
    Tested-by: Ronald Warsow <rwarsow@gmx.de>
    Tested-by: Markus Reichelt <lkt+2023@mareichelt.com>
    Tested-by: Shuah Khan <skhan@linuxfoundation.org>
    Tested-by: Rudi Heitbaum <rudi@heitbaum.com>
    Tested-by: Ron Economos <re@w6rz.net>
    Tested-by: Guenter Roeck <linux@roeck-us.net>
    Tested-by: Bagas Sanjaya <bagasdotme@gmail.com>
    Tested-by: Florian Fainelli <f.fainelli@gmail.com>
    Tested-by: Fenil Jain <fkjainco@gmail.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    gregkh committed Apr 30, 2023
  2. driver core: Don't require dynamic_debug for initcall_debug probe timing

    commit e2f06aa upstream.
    
    Don't require the use of dynamic debug (or modification of the kernel to
    add a #define DEBUG to the top of this file) to get the printk message
    about driver probe timing. This printk is only emitted when
    initcall_debug is enabled on the kernel commandline, and it isn't
    immediately obvious that you have to do something else to debug boot
    timing issues related to driver probe. Add a comment too so it doesn't
    get converted back to pr_debug().
    
    Fixes: eb7fbc9 ("driver core: Add missing '\n' in log messages")
    Cc: stable <stable@kernel.org>
    Cc: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
    Cc: Brian Norris <briannorris@chromium.org>
    Reviewed-by: Brian Norris <briannorris@chromium.org>
    Acked-by: Randy Dunlap <rdunlap@infradead.org>
    Signed-off-by: Stephen Boyd <swboyd@chromium.org>
    Link: https://lore.kernel.org/r/20230412225842.3196599-1-swboyd@chromium.org
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    bebarino authored and gregkh committed Apr 30, 2023
  3. USB: serial: option: add UNISOC vendor and TOZED LT70C product

    commit a095edf upstream.
    
    Add UNISOC vendor ID and TOZED LT70-C modem which is based from UNISOC
    SL8563. The modem supports the NCM mode. Interface 0 is used for running
    the AT commands. Interface 12 is the ADB interface.
    
    T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  6 Spd=480  MxCh= 0
    D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
    P:  Vendor=1782 ProdID=4055 Rev=04.04
    S:  Manufacturer=Unisoc Phone
    S:  Product=Unisoc Phone
    S:  SerialNumber=<redacted>
    C:  #Ifs=14 Cfg#= 1 Atr=c0 MxPwr=500mA
    I:  If#= 0 Alt= 0 #EPs= 1 Cls=02(commc) Sub=0d Prot=00 Driver=cdc_ncm
    E:  Ad=82(I) Atr=03(Int.) MxPS=  16 Ivl=32ms
    I:  If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=01 Driver=cdc_ncm
    E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
    E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
    I:  If#=10 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
    E:  Ad=07(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
    E:  Ad=8b(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
    I:  If#=11 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
    E:  Ad=08(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
    E:  Ad=8c(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
    I:  If#=12 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=(none)
    E:  Ad=09(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
    E:  Ad=8d(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
    I:  If#=13 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
    E:  Ad=0a(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
    E:  Ad=8e(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
    I:  If#= 2 Alt= 0 #EPs= 1 Cls=02(commc) Sub=0d Prot=00 Driver=cdc_ncm
    E:  Ad=84(I) Atr=03(Int.) MxPS=  16 Ivl=32ms
    I:  If#= 3 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=01 Driver=cdc_ncm
    E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
    E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
    I:  If#= 4 Alt= 0 #EPs= 1 Cls=02(commc) Sub=0d Prot=00 Driver=cdc_ncm
    E:  Ad=86(I) Atr=03(Int.) MxPS=  16 Ivl=32ms
    I:  If#= 5 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=01 Driver=cdc_ncm
    E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
    E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
    I:  If#= 6 Alt= 0 #EPs= 1 Cls=02(commc) Sub=0d Prot=00 Driver=cdc_ncm
    E:  Ad=88(I) Atr=03(Int.) MxPS=  16 Ivl=32ms
    I:  If#= 7 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=01 Driver=cdc_ncm
    E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
    E:  Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
    I:  If#= 8 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
    E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
    E:  Ad=89(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
    I:  If#= 9 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
    E:  Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
    E:  Ad=8a(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
    
    Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
    Link: https://lore.kernel.org/r/20230417152003.243248-1-arinc.unal@arinc9.com
    Cc: stable@vger.kernel.org
    Signed-off-by: Johan Hovold <johan@kernel.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    arinc9 authored and gregkh committed Apr 30, 2023
  4. mm/mremap: fix vm_pgoff in vma_merge() case 3

    commit 7e77578 upstream.
    
    After upgrading build guests to v6.3, rpm started segfaulting for
    specific packages, which was bisected to commit 0503ea8 ("mm/mmap:
    remove __vma_adjust()"). rpm is doing many mremap() operations with file
    mappings of its db. The problem is that in vma_merge() case 3 (we merge
    with the next vma, expanding it downwards) vm_pgoff is not adjusted as
    it should when vm_start changes. As a result the rpm process most likely
    sees data from the wrong offset of the file. Fix the vm_pgoff
    calculation.
    
    For case 8 this is a non-functional change as the resulting vm_pgoff is
    the same.
    
    Reported-and-bisected-by: Jiri Slaby <jirislaby@kernel.org>
    Reported-and-tested-by: Fabian Vogt <fvogt@suse.com>
    Link: https://bugzilla.suse.com/show_bug.cgi?id=1210903
    Fixes: 0503ea8 ("mm/mmap: remove __vma_adjust()")
    Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
    Cc: <stable@vger.kernel.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    tehcaster authored and gregkh committed Apr 30, 2023
  5. btrfs: fix uninitialized variable warnings

    commit 8ba7d5f upstream.
    
    There are some warnings on older compilers (gcc 10, 7) or non-x86_64
    architectures (aarch64).  As btrfs wants to enable -Wmaybe-uninitialized
    by default, fix the warnings even though it's not necessary on recent
    compilers (gcc 12+).
    
    ../fs/btrfs/volumes.c: In function ‘btrfs_init_new_device’:
    ../fs/btrfs/volumes.c:2703:3: error: ‘seed_devices’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
     2703 |   btrfs_setup_sprout(fs_info, seed_devices);
          |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    ../fs/btrfs/send.c: In function ‘get_cur_inode_state’:
    ../include/linux/compiler.h:70:32: error: ‘right_gen’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
       70 |   (__if_trace.miss_hit[1]++,1) :  \
          |                                ^
    ../fs/btrfs/send.c:1878:6: note: ‘right_gen’ was declared here
     1878 |  u64 right_gen;
          |      ^~~~~~~~~
    
    Reported-by: k2ci <kernel-bot@kylinos.cn>
    Signed-off-by: Genjian Zhang <zhanggenjian@kylinos.cn>
    Reviewed-by: David Sterba <dsterba@suse.com>
    [ update changelog ]
    Signed-off-by: David Sterba <dsterba@suse.com>
    Cc: Ammar Faizi <ammarfaizi2@gnuweeb.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Genjian Zhang authored and gregkh committed Apr 30, 2023
  6. wifi: brcmfmac: add Cypress 43439 SDIO ids

    commit cc4cffc upstream.
    
    Add SDIO ids for use with the muRata 1YN (Cypress CYW43439).
    The odd thing about this is that the previous 1YN populated
    on M.2 card for evaluation purposes had BRCM SDIO vendor ID,
    while the chip populated on real hardware has a Cypress one.
    The device ID also differs between the two devices. But they
    are both 43439 otherwise, so add the IDs for both.
    
    On-device 1YN (43439), the new one, chip label reads "1YN":
    ```
    /sys/.../mmc_host/mmc2/mmc2:0001 # cat vendor device
    0x04b4
    0xbd3d
    ```
    
    EA M.2 evaluation board 1YN (43439), the old one, chip label reads "1YN ES1.4":
    ```
    /sys/.../mmc_host/mmc0/mmc0:0001/# cat vendor device
    0x02d0
    0xa9a6
    ```
    
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    Cc: stable@vger.kernel.org
    Signed-off-by: Marek Vasut <marex@denx.de>
    Reviewed-by: Simon Horman <simon.horman@corigine.com>
    Signed-off-by: Kalle Valo <kvalo@kernel.org>
    Link: https://lore.kernel.org/r/20230407203752.128539-1-marex@denx.de
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Marek Vasut authored and gregkh committed Apr 30, 2023
  7. bluetooth: Perform careful capability checks in hci_sock_ioctl()

    commit 25c150a upstream.
    
    Previously, capability was checked using capable(), which verified that the
    caller of the ioctl system call had the required capability. In addition,
    the result of the check would be stored in the HCI_SOCK_TRUSTED flag,
    making it persistent for the socket.
    
    However, malicious programs can abuse this approach by deliberately sharing
    an HCI socket with a privileged task. The HCI socket will be marked as
    trusted when the privileged task occasionally makes an ioctl call.
    
    This problem can be solved by using sk_capable() to check capability, which
    ensures that not only the current task but also the socket opener has the
    specified capability, thus reducing the risk of privilege escalation
    through the previously identified vulnerability.
    
    Cc: stable@vger.kernel.org
    Fixes: f81f5b2 ("Bluetooth: Send control open and close messages for HCI raw sockets")
    Signed-off-by: Ruihan Li <lrh2000@pku.edu.cn>
    Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    lrh2000 authored and gregkh committed Apr 30, 2023
  8. gpiolib: acpi: Add a ignore wakeup quirk for Clevo NL5xNU

    commit 782eea0 upstream.
    
    commit 1796f80 ("HID: i2c-hid: acpi: Stop setting wakeup_capable")
    changed the policy such that I2C touchpads may be able to wake up the
    system by default if the system is configured as such.
    
    However on Clevo NL5xNU there is a mistake in the ACPI tables that the
    TP_ATTN# signal connected to GPIO 9 is configured as ActiveLow and level
    triggered but connected to a pull up. As soon as the system suspends the
    touchpad loses power and then the system wakes up.
    
    To avoid this problem, introduce a quirk for this model that will prevent
    the wakeup capability for being set for GPIO 9.
    
    This patch is analoge to a very similar patch for NL5xRU, just the DMI
    string changed.
    
    Signed-off-by: Werner Sembach <wse@tuxedocomputers.com>
    Cc: stable@vger.kernel.org
    Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Matombo authored and gregkh committed Apr 30, 2023
  9. fsverity: explicitly check for buffer overflow in build_merkle_tree()

    commit 39049b6 upstream.
    
    The new Merkle tree construction algorithm is a bit fragile in that it
    may overflow the 'root_hash' array if the tree actually generated does
    not match the calculated tree parameters.
    
    This should never happen unless there is a filesystem bug that allows
    the file size to change despite deny_write_access(), or a bug in the
    Merkle tree logic itself.  Regardless, it's fairly easy to check for
    buffer overflow here, so let's do so.
    
    This is a robustness improvement only; this case is not currently known
    to be reachable.  I've added a Fixes tag anyway, since I recommend that
    this be included in kernels that have the mentioned commit.
    
    Fixes: 56124d6 ("fsverity: support enabling with tree block size < PAGE_SIZE")
    Cc: stable@vger.kernel.org
    Link: https://lore.kernel.org/r/20230328041505.110162-1-ebiggers@kernel.org
    Signed-off-by: Eric Biggers <ebiggers@google.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ebiggers authored and gregkh committed Apr 30, 2023
  10. drm/fb-helper: set x/yres_virtual in drm_fb_helper_check_var

    commit 1935f0d upstream.
    
    Drivers are supposed to fix this up if needed if they don't outright
    reject it. Uncovered by 6c11df5 ("fbmem: Check virtual screen
    sizes in fb_set_var()").
    
    Reported-by: syzbot+20dcf81733d43ddff661@syzkaller.appspotmail.com
    Link: https://syzkaller.appspot.com/bug?id=c5faf983bfa4a607de530cd3bb008888bf06cefc
    Cc: stable@vger.kernel.org # v5.4+
    Cc: Daniel Vetter <daniel@ffwll.ch>
    Cc: Javier Martinez Canillas <javierm@redhat.com>
    Cc: Thomas Zimmermann <tzimmermann@suse.de>
    Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
    Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20230404194038.472803-1-daniel.vetter@ffwll.ch
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    danvet authored and gregkh committed Apr 30, 2023
  11. fsverity: reject FS_IOC_ENABLE_VERITY on mode 3 fds

    commit 0483913 upstream.
    
    Commit 56124d6 ("fsverity: support enabling with tree block size <
    PAGE_SIZE") changed FS_IOC_ENABLE_VERITY to use __kernel_read() to read
    the file's data, instead of direct pagecache accesses.
    
    An unintended consequence of this is that the
    'WARN_ON_ONCE(!(file->f_mode & FMODE_READ))' in __kernel_read() became
    reachable by fuzz tests.  This happens if FS_IOC_ENABLE_VERITY is called
    on a fd opened with access mode 3, which means "ioctl access only".
    
    Arguably, FS_IOC_ENABLE_VERITY should work on ioctl-only fds.  But
    ioctl-only fds are a weird Linux extension that is rarely used and that
    few people even know about.  (The documentation for FS_IOC_ENABLE_VERITY
    even specifically says it requires O_RDONLY.)  It's probably not
    worthwhile to make the ioctl internally open a new fd just to handle
    this case.  Thus, just reject the ioctl on such fds for now.
    
    Fixes: 56124d6 ("fsverity: support enabling with tree block size < PAGE_SIZE")
    Reported-by: syzbot+51177e4144d764827c45@syzkaller.appspotmail.com
    Link: https://syzkaller.appspot.com/bug?id=2281afcbbfa8fdb92f9887479cc0e4180f1c6b28
    Cc: stable@vger.kernel.org
    Link: https://lore.kernel.org/r/20230406215106.235829-1-ebiggers@kernel.org
    Reviewed-by: Christoph Hellwig <hch@lst.de>
    Reviewed-by: Christian Brauner <brauner@kernel.org>
    Signed-off-by: Eric Biggers <ebiggers@google.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ebiggers authored and gregkh committed Apr 30, 2023
  12. wifi: brcmfmac: slab-out-of-bounds read in brcmf_get_assoc_ies()

    commit 0da40e0 upstream.
    
    Fix a slab-out-of-bounds read that occurs in kmemdup() called from
    brcmf_get_assoc_ies().
    The bug could occur when assoc_info->req_len, data from a URB provided
    by a USB device, is bigger than the size of buffer which is defined as
    WL_EXTRA_BUF_MAX.
    
    Add the size check for req_len/resp_len of assoc_info.
    
    Found by a modified version of syzkaller.
    
    [   46.592467][    T7] ==================================================================
    [   46.594687][    T7] BUG: KASAN: slab-out-of-bounds in kmemdup+0x3e/0x50
    [   46.596572][    T7] Read of size 3014656 at addr ffff888019442000 by task kworker/0:1/7
    [   46.598575][    T7]
    [   46.599157][    T7] CPU: 0 PID: 7 Comm: kworker/0:1 Tainted: G           O      5.14.0+ torvalds#145
    [   46.601333][    T7] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.12.1-0-ga5cab58e9a3f-prebuilt.qemu.org 04/01/2014
    [   46.604360][    T7] Workqueue: events brcmf_fweh_event_worker
    [   46.605943][    T7] Call Trace:
    [   46.606584][    T7]  dump_stack_lvl+0x8e/0xd1
    [   46.607446][    T7]  print_address_description.constprop.0.cold+0x93/0x334
    [   46.608610][    T7]  ? kmemdup+0x3e/0x50
    [   46.609341][    T7]  kasan_report.cold+0x79/0xd5
    [   46.610151][    T7]  ? kmemdup+0x3e/0x50
    [   46.610796][    T7]  kasan_check_range+0x14e/0x1b0
    [   46.611691][    T7]  memcpy+0x20/0x60
    [   46.612323][    T7]  kmemdup+0x3e/0x50
    [   46.612987][    T7]  brcmf_get_assoc_ies+0x967/0xf60
    [   46.613904][    T7]  ? brcmf_notify_vif_event+0x3d0/0x3d0
    [   46.614831][    T7]  ? lock_chain_count+0x20/0x20
    [   46.615683][    T7]  ? mark_lock.part.0+0xfc/0x2770
    [   46.616552][    T7]  ? lock_chain_count+0x20/0x20
    [   46.617409][    T7]  ? mark_lock.part.0+0xfc/0x2770
    [   46.618244][    T7]  ? lock_chain_count+0x20/0x20
    [   46.619024][    T7]  brcmf_bss_connect_done.constprop.0+0x241/0x2e0
    [   46.620019][    T7]  ? brcmf_parse_configure_security.isra.0+0x2a0/0x2a0
    [   46.620818][    T7]  ? __lock_acquire+0x181f/0x5790
    [   46.621462][    T7]  brcmf_notify_connect_status+0x448/0x1950
    [   46.622134][    T7]  ? rcu_read_lock_bh_held+0xb0/0xb0
    [   46.622736][    T7]  ? brcmf_cfg80211_join_ibss+0x7b0/0x7b0
    [   46.623390][    T7]  ? find_held_lock+0x2d/0x110
    [   46.623962][    T7]  ? brcmf_fweh_event_worker+0x19f/0xc60
    [   46.624603][    T7]  ? mark_held_locks+0x9f/0xe0
    [   46.625145][    T7]  ? lockdep_hardirqs_on_prepare+0x3e0/0x3e0
    [   46.625871][    T7]  ? brcmf_cfg80211_join_ibss+0x7b0/0x7b0
    [   46.626545][    T7]  brcmf_fweh_call_event_handler.isra.0+0x90/0x100
    [   46.627338][    T7]  brcmf_fweh_event_worker+0x557/0xc60
    [   46.627962][    T7]  ? brcmf_fweh_call_event_handler.isra.0+0x100/0x100
    [   46.628736][    T7]  ? rcu_read_lock_sched_held+0xa1/0xd0
    [   46.629396][    T7]  ? rcu_read_lock_bh_held+0xb0/0xb0
    [   46.629970][    T7]  ? lockdep_hardirqs_on_prepare+0x273/0x3e0
    [   46.630649][    T7]  process_one_work+0x92b/0x1460
    [   46.631205][    T7]  ? pwq_dec_nr_in_flight+0x330/0x330
    [   46.631821][    T7]  ? rwlock_bug.part.0+0x90/0x90
    [   46.632347][    T7]  worker_thread+0x95/0xe00
    [   46.632832][    T7]  ? __kthread_parkme+0x115/0x1e0
    [   46.633393][    T7]  ? process_one_work+0x1460/0x1460
    [   46.633957][    T7]  kthread+0x3a1/0x480
    [   46.634369][    T7]  ? set_kthread_struct+0x120/0x120
    [   46.634933][    T7]  ret_from_fork+0x1f/0x30
    [   46.635431][    T7]
    [   46.635687][    T7] Allocated by task 7:
    [   46.636151][    T7]  kasan_save_stack+0x1b/0x40
    [   46.636628][    T7]  __kasan_kmalloc+0x7c/0x90
    [   46.637108][    T7]  kmem_cache_alloc_trace+0x19e/0x330
    [   46.637696][    T7]  brcmf_cfg80211_attach+0x4a0/0x4040
    [   46.638275][    T7]  brcmf_attach+0x389/0xd40
    [   46.638739][    T7]  brcmf_usb_probe+0x12de/0x1690
    [   46.639279][    T7]  usb_probe_interface+0x2aa/0x760
    [   46.639820][    T7]  really_probe+0x205/0xb70
    [   46.640342][    T7]  __driver_probe_device+0x311/0x4b0
    [   46.640876][    T7]  driver_probe_device+0x4e/0x150
    [   46.641445][    T7]  __device_attach_driver+0x1cc/0x2a0
    [   46.642000][    T7]  bus_for_each_drv+0x156/0x1d0
    [   46.642543][    T7]  __device_attach+0x23f/0x3a0
    [   46.643065][    T7]  bus_probe_device+0x1da/0x290
    [   46.643644][    T7]  device_add+0xb7b/0x1eb0
    [   46.644130][    T7]  usb_set_configuration+0xf59/0x16f0
    [   46.644720][    T7]  usb_generic_driver_probe+0x82/0xa0
    [   46.645295][    T7]  usb_probe_device+0xbb/0x250
    [   46.645786][    T7]  really_probe+0x205/0xb70
    [   46.646258][    T7]  __driver_probe_device+0x311/0x4b0
    [   46.646804][    T7]  driver_probe_device+0x4e/0x150
    [   46.647387][    T7]  __device_attach_driver+0x1cc/0x2a0
    [   46.647926][    T7]  bus_for_each_drv+0x156/0x1d0
    [   46.648454][    T7]  __device_attach+0x23f/0x3a0
    [   46.648939][    T7]  bus_probe_device+0x1da/0x290
    [   46.649478][    T7]  device_add+0xb7b/0x1eb0
    [   46.649936][    T7]  usb_new_device.cold+0x49c/0x1029
    [   46.650526][    T7]  hub_event+0x1c98/0x3950
    [   46.650975][    T7]  process_one_work+0x92b/0x1460
    [   46.651535][    T7]  worker_thread+0x95/0xe00
    [   46.651991][    T7]  kthread+0x3a1/0x480
    [   46.652413][    T7]  ret_from_fork+0x1f/0x30
    [   46.652885][    T7]
    [   46.653131][    T7] The buggy address belongs to the object at ffff888019442000
    [   46.653131][    T7]  which belongs to the cache kmalloc-2k of size 2048
    [   46.654669][    T7] The buggy address is located 0 bytes inside of
    [   46.654669][    T7]  2048-byte region [ffff888019442000, ffff888019442800)
    [   46.656137][    T7] The buggy address belongs to the page:
    [   46.656720][    T7] page:ffffea0000651000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x19440
    [   46.657792][    T7] head:ffffea0000651000 order:3 compound_mapcount:0 compound_pincount:0
    [   46.658673][    T7] flags: 0x100000000010200(slab|head|node=0|zone=1)
    [   46.659422][    T7] raw: 0100000000010200 0000000000000000 dead000000000122 ffff888100042000
    [   46.660363][    T7] raw: 0000000000000000 0000000000080008 00000001ffffffff 0000000000000000
    [   46.661236][    T7] page dumped because: kasan: bad access detected
    [   46.661956][    T7] page_owner tracks the page as allocated
    [   46.662588][    T7] page last allocated via order 3, migratetype Unmovable, gfp_mask 0x52a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 7, ts 31136961085, free_ts 0
    [   46.664271][    T7]  prep_new_page+0x1aa/0x240
    [   46.664763][    T7]  get_page_from_freelist+0x159a/0x27c0
    [   46.665340][    T7]  __alloc_pages+0x2da/0x6a0
    [   46.665847][    T7]  alloc_pages+0xec/0x1e0
    [   46.666308][    T7]  allocate_slab+0x380/0x4e0
    [   46.666770][    T7]  ___slab_alloc+0x5bc/0x940
    [   46.667264][    T7]  __slab_alloc+0x6d/0x80
    [   46.667712][    T7]  kmem_cache_alloc_trace+0x30a/0x330
    [   46.668299][    T7]  brcmf_usbdev_qinit.constprop.0+0x50/0x470
    [   46.668885][    T7]  brcmf_usb_probe+0xc97/0x1690
    [   46.669438][    T7]  usb_probe_interface+0x2aa/0x760
    [   46.669988][    T7]  really_probe+0x205/0xb70
    [   46.670487][    T7]  __driver_probe_device+0x311/0x4b0
    [   46.671031][    T7]  driver_probe_device+0x4e/0x150
    [   46.671604][    T7]  __device_attach_driver+0x1cc/0x2a0
    [   46.672192][    T7]  bus_for_each_drv+0x156/0x1d0
    [   46.672739][    T7] page_owner free stack trace missing
    [   46.673335][    T7]
    [   46.673620][    T7] Memory state around the buggy address:
    [   46.674213][    T7]  ffff888019442700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    [   46.675083][    T7]  ffff888019442780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    [   46.675994][    T7] >ffff888019442800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
    [   46.676875][    T7]                    ^
    [   46.677323][    T7]  ffff888019442880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
    [   46.678190][    T7]  ffff888019442900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
    [   46.679052][    T7] ==================================================================
    [   46.679945][    T7] Disabling lock debugging due to kernel taint
    [   46.680725][    T7] Kernel panic - not syncing:
    
    Reviewed-by: Arend van Spriel <arend.vanspriel@broadcom.com>
    Signed-off-by: Jisoo Jang <jisoo.jang@yonsei.ac.kr>
    Signed-off-by: Kalle Valo <kvalo@kernel.org>
    Link: https://lore.kernel.org/r/20230309104457.22628-1-jisoo.jang@yonsei.ac.kr
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    JYeoWoo authored and gregkh committed Apr 30, 2023

Commits on Apr 23, 2023

  1. Linux 6.3

    torvalds committed Apr 23, 2023
  2. gcc: disable '-Warray-bounds' for gcc-13 too

    We started disabling '-Warray-bounds' for gcc-12 originally on s390,
    because it resulted in some warnings that weren't realistically fixable
    (commit 8b202ee: "s390: disable -Warray-bounds").
    
    That s390-specific issue was then found to be less common elsewhere, but
    generic (see f0be87c: "gcc-12: disable '-Warray-bounds' universally
    for now"), and then later expanded the version check was expanded to
    gcc-11 (5a41237: "gcc: disable -Warray-bounds for gcc-11 too").
    
    And it turns out that I was much too optimistic in thinking that it's
    all going to go away, and here we are with gcc-13 showing all the same
    issues.  So instead of expanding this one version at a time, let's just
    disable it for gcc-11+, and put an end limit to it only when we actually
    find a solution.
    
    Yes, I'm sure some of this is because the kernel just does odd things
    (like our "container_of()" use, but also knowingly playing games with
    things like linker tables and array layouts).
    
    And yes, some of the warnings are likely signs of real bugs, but when
    there are hundreds of false positives, that doesn't really help.
    
    Oh well.
    
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    torvalds committed Apr 23, 2023
  3. Merge tag 'kbuild-fixes-v6.3-4' of git://git.kernel.org/pub/scm/linux…

    …/kernel/git/masahiroy/linux-kbuild
    
    Pull Kbuild fixes from Masahiro Yamada:
    
     - Fix the prefix in the kernel source tarball
    
     - Fix a typo in the copyright file in Debian package
    
    * tag 'kbuild-fixes-v6.3-4' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
      kbuild: use proper prefix for tarballs to fix rpm-pkg build error
      kbuild: deb-pkg: Fix a spell typo in mkdebian script
    torvalds committed Apr 23, 2023
  4. Merge tag 'irq_urgent_for_v6.3' of git://git.kernel.org/pub/scm/linux…

    …/kernel/git/tip/tip
    
    Pull irq fix from Borislav Petkov:
    
     - Remove an over-zealous sanity check of the array of MSI-X vectors to
       be allocated for a device
    
    * tag 'irq_urgent_for_v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      PCI/MSI: Remove over-zealous hardware size check in pci_msix_validate_entries()
    torvalds committed Apr 23, 2023
  5. Merge tag 'x86_urgent_for_v6.3' of git://git.kernel.org/pub/scm/linux…

    …/kernel/git/tip/tip
    
    Pull x86 fix from Borislav Petkov
    
     - Fix for older binutils which do not support C-syntax constant
       suffixes
    
    * tag 'x86_urgent_for_v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      x86/alternatives: Do not use integer constant suffixes in inline asm
    torvalds committed Apr 23, 2023
  6. Merge tag 'input-for-v6.3-rc7' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/dtor/input
    
    Pull input fixes from Dmitry Torokhov:
    
     - a check in pegasus-notetaker driver to validate the type of pipe when
       probing a new device
    
     - a fix for Cypress touch controller to correctly parse maximum number
       of touches.
    
    * tag 'input-for-v6.3-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
      Input: cyttsp5 - fix sensing configuration data structure
      Input: pegasus-notetaker - check pipe type when probing
    torvalds committed Apr 23, 2023
  7. kbuild: use proper prefix for tarballs to fix rpm-pkg build error

    Since commit f8d94c4 ("kbuild: do not create intermediate *.tar
    for source tarballs"), 'make rpm-pkg' fails because the prefix of the
    source tarball is 'linux.tar/' instead of 'linux/'. $(basename $@)
    strips only '.gz' from the filename linux.tar.gz.
    
    You need to strip two suffixes from compressed tarballs and one suffix
    from uncompressed tarballs (for example 'perf-6.3.0.tar' generated by
    'make perf-tar-src-pkg').
    
    One tricky fix might be --prefix=$(firstword $(subst .tar, ,$@))/
    but I think it is better to hard-code the prefix.
    
    Fixes: f8d94c4 ("kbuild: do not create intermediate *.tar for source tarballs")
    Reported-by: Jiwei Sun <sunjw10@lenovo.com>
    Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
    Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
    masahir0y committed Apr 23, 2023
  8. kbuild: deb-pkg: Fix a spell typo in mkdebian script

    Signed-off-by: Woody Suwalski <terraluna977@gmail.com>
    Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
    terraluna977 authored and masahir0y committed Apr 23, 2023
  9. Merge tag 'mips-fixes_6.3_2' of git://git.kernel.org/pub/scm/linux/ke…

    …rnel/git/mips/linux
    
    Pull MIPS fix from Thomas Bogendoerfer:
     "Fix for link errors"
    
    * tag 'mips-fixes_6.3_2' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux:
      MIPS: Define RUNTIME_DISCARD_EXIT in LD script
    torvalds committed Apr 23, 2023

Commits on Apr 22, 2023

  1. Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm

    Pull kvm fixes from Paolo Bonzini:
     "Two serious ARM fixes:
    
       - Plug a buffer overflow due to the use of the user-provided register
         width for firmware regs. Outright reject accesses where the user
         register width does not match the kernel representation.
    
       - Protect non-atomic RMW operations on vCPU flags against preemption,
         as an update to the flags by an intervening preemption could be
         lost"
    
    * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
      KVM: arm64: Fix buffer overflow in kvm_arm_set_fw_reg()
      KVM: arm64: Make vcpu flag updates non-preemptible
    torvalds committed Apr 22, 2023
  2. Merge tag '6.3-rc7-smb3-client-fixes' of git://git.samba.org/sfrench/…

    …cifs-2.6
    
    Pull cifs fixes from Steve French:
     "Three small smb3 client fixes:
    
       - two important fixes for unbuffered read regression with the
         iov_iter changes (e.g. read soon after mount in some multichannel
         scenarios)
    
       - DFS prefix path fix (also for stable)"
    
    * tag '6.3-rc7-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6:
      cifs: Reapply lost fix from commit 30b2b21
      cifs: Fix unbuffered read
      cifs: avoid dup prefix path in dfs_get_automount_devname()
    torvalds committed Apr 22, 2023

Commits on Apr 21, 2023

  1. Merge tag 'kvmarm-fixes-6.3-4' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/kvmarm/kvmarm into HEAD
    
    KVM/arm64 fixes for 6.3, part #4
    
     - Plug a buffer overflow due to the use of the user-provided register
       width for firmware regs. Outright reject accesses where the
       user register width does not match the kernel representation.
    
     - Protect non-atomic RMW operations on vCPU flags against preemption,
       as an update to the flags by an intervening preemption could be lost.
    bonzini committed Apr 21, 2023
  2. MIPS: Define RUNTIME_DISCARD_EXIT in LD script

    MIPS's exit sections are discarded at runtime as well.
    
    Fixes link error:
    `.exit.text' referenced in section `__jump_table' of fs/fuse/inode.o:
    defined in discarded section `.exit.text' of fs/fuse/inode.o
    
    Fixes: 99cb0d9 ("arch: fix broken BuildID for arm64 and riscv")
    Reported-by: "kernelci.org bot" <bot@kernelci.org>
    Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
    Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
    FlyGoat authored and tsbogend committed Apr 21, 2023
  3. Revert "ACPICA: Events: Support fixed PCIe wake event"

    This reverts commit 5c62d5a.
    
    This broke wake-on-lan for multiple people, and for much too long.
    
    Link: https://bugzilla.kernel.org/show_bug.cgi?id=217069
    Link: https://lore.kernel.org/all/754225a2-95a9-2c36-1886-7da1a78308c2@loongson.cn/
    Link: acpica/acpica#866
    Cc: Rafael J. Wysocki <rafael@kernel.org>
    Cc: Jianmin Lv <lvjianmin@loongson.cn>
    Cc: Huacai Chen <chenhuacai@loongson.cn>
    Cc: Bob Moore <robert.moore@intel.com>
    Cc: stable@kernel.org # 6.2
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    torvalds committed Apr 21, 2023
  4. Merge tag 'for-6.3-rc7-tag' of git://git.kernel.org/pub/scm/linux/ker…

    …nel/git/kdave/linux
    
    Pull btrfs fixes from David Sterba:
     "Two patches fixing the problem with aync discard.
    
      The default settings had a low IOPS limit and processing a large batch
      to discard would take a long time. On laptops this can cause increased
      power consumption due to disk activity.
    
      As async discard has been on by default since 6.2 this likely affects
      a lot of users.
    
      Summary:
    
       - increase the default IOPS limit 10x which reportedly helped
    
       - setting the sysfs IOPS value to 0 now does not throttle anymore
         allowing the discards to be processed at full speed. Previously
         there was an arbitrary 6 hour target for processing the pending
         batch"
    
    * tag 'for-6.3-rc7-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
      btrfs: reinterpret async discard iops_limit=0 as no delay
      btrfs: set default discard iops_limit to 1000
    torvalds committed Apr 21, 2023
  5. Merge tag 'block-6.3-2023-04-21' of git://git.kernel.dk/linux

    Pull block fix from Jens Axboe:
     "Just a single revert of a patch from the 6.3 series"
    
    * tag 'block-6.3-2023-04-21' of git://git.kernel.dk/linux:
      Revert "block: Merge bio before checking ->cached_rq"
    torvalds committed Apr 21, 2023
  6. Merge tag 'char-misc-6.3-final' of git://git.kernel.org/pub/scm/linux…

    …/kernel/git/gregkh/char-misc
    
    Pull char/misc driver fixes from Greg KH:
     "Here are some last-minute tiny driver fixes for 6.3-final. They
      include fixes for some fpga and iio drivers:
    
       - fpga bridge driver fix
    
       - fpga dfl error reporting fix
    
       - fpga m10bmc driver fix
    
       - fpga xilinx driver fix
    
       - iio light driver fix
    
       - iio dac fwhandle leak fix
    
       - iio adc driver fix
    
      All of these have been in linux-next for a few weeks with no reported
      problems"
    
    * tag 'char-misc-6.3-final' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
      iio: light: tsl2772: fix reading proximity-diodes from device tree
      fpga: bridge: properly initialize bridge device before populating children
      iio: dac: ad5755: Add missing fwnode_handle_put()
      iio: adc: at91-sama5d2_adc: fix an error code in at91_adc_allocate_trigger()
      fpga: xilinx-pr-decoupler: Use readl wrapper instead of pure readl
      fpga: dfl-pci: Drop redundant pci_enable_pcie_error_reporting()
      fpga: m10bmc-sec: Fix rsu_send_data() to return FW_UPLOAD_ERR_HW_ERROR
    torvalds committed Apr 21, 2023
  7. Merge tag 'gpio-fixes-for-v6.3' of git://git.kernel.org/pub/scm/linux…

    …/kernel/git/brgl/linux
    
    Pull gpio fixes from Bartosz Golaszewski:
    
     - use raw_spinlocks in regmaps that are used in interrupt context in
       gpio-104-idi-48 and gpio-104-dio-48e
    
    * tag 'gpio-fixes-for-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
      gpio: 104-idi-48: Enable use_raw_spinlock for idi48_regmap_config
      gpio: 104-dio-48e: Enable use_raw_spinlock for dio48e_regmap_config
    torvalds committed Apr 21, 2023
  8. Merge tag 'sound-6.3' of git://git.kernel.org/pub/scm/linux/kernel/gi…

    …t/tiwai/sound
    
    Pull sound fixes from Takashi Iwai:
     "Just a few fixes: all small and device-specific (ASoC FSL, SOF, and
      HD-audio quirks), should be safe to apply at the last minute"
    
    * tag 'sound-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
      ALSA: hda/realtek: fix mute/micmute LEDs for a HP ProBook
      ASoC: fsl_asrc_dma: fix potential null-ptr-deref
      ASoC: fsl_sai: Fix pins setting for i.MX8QM platform
      ALSA: hda/realtek: Remove specific patch for Dell Precision 3260
      ASoC: max98373: change power down sequence for smart amp
      ASoC: SOF: pm: Tear down pipelines only if DSP was active
      ASoC: SOF: ipc4-topology: Clarify bind failure caused by missing fw_module
    torvalds committed Apr 21, 2023
  9. ASN.1: Fix check for strdup() success

    It seems there is a misprint in the check of strdup() return code that
    can lead to NULL pointer dereference.
    
    Found by Linux Verification Center (linuxtesting.org) with SVACE.
    
    Fixes: 4520c6a ("X.509: Add simple ASN.1 grammar compiler")
    Signed-off-by: Ekaterina Orlova <vorobushek.ok@gmail.com>
    Cc: David Woodhouse <dwmw2@infradead.org>
    Cc: James Bottomley <jejb@linux.ibm.com>
    Cc: Jarkko Sakkinen <jarkko@kernel.org>
    Cc: keyrings@vger.kernel.org
    Cc: linux-kbuild@vger.kernel.org
    Link: https://lore.kernel.org/r/20230315172130.140-1-vorobushek.ok@gmail.com/
    Signed-off-by: David Howells <dhowells@redhat.com>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Ekaterina Orlova authored and torvalds committed Apr 21, 2023
Older