Skip to content
  1. Mar 01, 2024
  2. Feb 29, 2024
    • Linus Torvalds's avatar
      Merge tag 'acpi-6.8-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 805d849d
      Linus Torvalds authored
      Pull ACPI fix from Rafael Wysocki:
       "Revert a recent EC driver change that introduced an unexpected and
        undesirable user-visible difference in behavior (Rafael Wysocki)"
      
      * tag 'acpi-6.8-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        Revert "ACPI: EC: Use a spin lock without disabing interrupts"
      805d849d
    • Linus Torvalds's avatar
      Merge tag 'pm-6.8-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 022d0c6e
      Linus Torvalds authored
      Pull power management fix from Rafael Wysocki:
       "Fix a latent bug in the intel-pstate cpufreq driver that has been
        exposed by the recent schedutil governor changes (Doug Smythies)"
      
      * tag 'pm-6.8-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        cpufreq: intel_pstate: fix pstate limits enforcement for adjust_perf call back
      022d0c6e
    • Linus Torvalds's avatar
      Merge tag 'spi-fix-v6.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi · 5cf7ebef
      Linus Torvalds authored
      Pull spi fixes from Mark Brown:
       "There's two things here - the big one is a batch of fixes for the
        power management in the Cadence QuadSPI driver which had some serious
        issues with runtime PM and there's also a revert of one of the last
        batch of fixes for ppc4xx which has a dependency on -next but was in
        between two mainline fixes so the -next dependency got missed.
      
        The ppc4xx driver is not currently included in any defconfig and has
        dependencies that exclude it from allmodconfigs so none of the CI
        systems catch issues with it, hence the need for the earlier fixes
        series. There's some updates to the PowerPC configs to address this"
      
      * tag 'spi-fix-v6.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
        spi: Drop mismerged fix
        spi: cadence-qspi: add system-wide suspend and resume callbacks
        spi: cadence-qspi: put runtime in runtime PM hooks names
        spi: cadence-qspi: remove system-wide suspend helper calls from runtime PM hooks
        spi: cadence-qspi: fix pointer reference in runtime PM hooks
      5cf7ebef
    • Linus Torvalds's avatar
      Merge tag 'regulator-fix-v6.8-rc5' of... · 628e0594
      Linus Torvalds authored
      Merge tag 'regulator-fix-v6.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator
      
      Pull regulator fixes from Mark Brown:
       "Two small fixes, one small update for the max5970 driver bringing the
        driver and DT binding documentation into sync plus a missed update to
        the patterns in MAINTAINERS after a DT binding YAML conversion"
      
      * tag 'regulator-fix-v6.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator:
        regulator: max5970: Fix regulator child node name
        MAINTAINERS: repair entry for MICROCHIP MCP16502 PMIC DRIVER
      628e0594
    • Linus Torvalds's avatar
      Merge tag 'v6.8-p5' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 · e326df53
      Linus Torvalds authored
      Pull crypto fixes from Herbert Xu:
       "This fixes a regression in lskcipher and an out-of-bound access
        in arm64/neonbs"
      
      * tag 'v6.8-p5' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
        crypto: arm64/neonbs - fix out-of-bounds access on short input
        crypto: lskcipher - Copy IV in lskcipher glue code always
      e326df53
  3. Feb 28, 2024
    • Linus Torvalds's avatar
      Merge tag 'lsm-pr-20240227' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/lsm · cf118294
      Linus Torvalds authored
      Pull lsm fixes from Paul Moore:
       "Two small patches, one for AppArmor and one for SELinux, to fix
        potential uninitialized variable problems in the new LSM syscalls we
        added during the v6.8 merge window.
      
        We haven't been able to get a response from John on the AppArmor
        patch, but considering both the importance of the patch and it's
        rather simple nature it seems like a good idea to get this merged
        sooner rather than later.
      
        I'm sure John is just taking some much needed vacation; if we need to
        revise this when he gets back to his email we can"
      
      * tag 'lsm-pr-20240227' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/lsm:
        apparmor: fix lsm_get_self_attr()
        selinux: fix lsm_get_self_attr()
      cf118294
    • Linus Torvalds's avatar
      Merge tag 'mm-hotfixes-stable-2024-02-27-14-52' of... · 5e10bf6c
      Linus Torvalds authored
      Merge tag 'mm-hotfixes-stable-2024-02-27-14-52' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
      
      Pull misc fixes from Andrew Morton:
       "Six hotfixes. Three are cc:stable and the remainder address post-6.7
        issues or aren't considered appropriate for backporting"
      
      * tag 'mm-hotfixes-stable-2024-02-27-14-52' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm:
        mm/debug_vm_pgtable: fix BUG_ON with pud advanced test
        mm: cachestat: fix folio read-after-free in cache walk
        MAINTAINERS: add memory mapping entry with reviewers
        mm/vmscan: fix a bug calling wakeup_kswapd() with a wrong zone index
        kasan: revert eviction of stack traces in generic mode
        stackdepot: use variable size records for non-evictable entries
      5e10bf6c
  4. Feb 27, 2024
    • Mark Brown's avatar
      spi: Drop mismerged fix · 6415c7fe
      Mark Brown authored
      One patch of a series of three that was sent fixing issues with the
      ppc4xx driver was targeted at -next, unfortunately it being sandwiched
      between two others that targeted mainline tripped up my workflow and
      caused it to get merged along with the others.  The ppc4xx driver is
      only buildable in very limited configurations so none of the CI catches
      issues with it.
      
      Fixes: de4af897
      
       ("spi: ppc4xx: Fix fallout from rename in struct spi_bitbang")
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      6415c7fe
    • Linus Torvalds's avatar
      Merge tag 'mtd/fixes-for-6.8-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux · 45ec2f5f
      Linus Torvalds authored
      Pull mtd fixes from Miquel Raynal:
       "Many NAND page layouts have been added to the Marvell NAND controller
        but could not be used in practice so they are being removed.
      
        Regarding the SPI-NAND area, Gigadevice chips were not using the right
        buffer for an ECC status check operation.
      
        Aside from these driver fixes, there is also a refcount fix in the MTD
        core nodes parsing logic"
      
      * tag 'mtd/fixes-for-6.8-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux:
        mtd: rawnand: marvell: fix layouts
        mtd: Fix possible refcounting issue when going through partition nodes
        mtd: spinand: gigadevice: Fix the get ecc status issue
      45ec2f5f
    • Linus Torvalds's avatar
      Merge tag 'for-6.8-rc6-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · b6c1f1ec
      Linus Torvalds authored
      Pull btrfs fixes from David Sterba:
       "A  more fixes for recently reported or discovered problems:
      
         - fix corner case of send that would generate potentially large
           stream of zeros if there's a hole at the end of the file
      
         - fix chunk validation in zoned mode on conventional zones, it was
           possible to create chunks that would not be allowed on sequential
           zones
      
         - fix validation of dev-replace ioctl filenames
      
         - fix KCSAN warnings about access to block reserve struct members"
      
      * tag 'for-6.8-rc6-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
        btrfs: fix data race at btrfs_use_block_rsv() when accessing block reserve
        btrfs: fix data races when accessing the reserved amount of block reserves
        btrfs: send: don't issue unnecessary zero writes for trailing hole
        btrfs: dev-replace: properly validate device names
        btrfs: zoned: don't skip block group profile checks on conventional zones
      b6c1f1ec
    • Mark O'Donovan's avatar
      fs/ntfs3: fix build without CONFIG_NTFS3_LZX_XPRESS · c8e31462
      Mark O'Donovan authored
      
      
      When CONFIG_NTFS3_LZX_XPRESS is not set then we get the following build
      error:
      
        fs/ntfs3/frecord.c:2460:16: error: unused variable ‘i_size’
      
      Signed-off-by: default avatarMark O'Donovan <shiftee@posteo.net>
      Fixes: 4fd6c08a
      
       ("fs/ntfs3: Use i_size_read and i_size_write")
      Tested-by: default avatarChris Clayton <chris2553@googlemail.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      c8e31462
    • Mickaël Salaün's avatar
      landlock: Fix asymmetric private inodes referring · d9818b3e
      Mickaël Salaün authored
      When linking or renaming a file, if only one of the source or
      destination directory is backed by an S_PRIVATE inode, then the related
      set of layer masks would be used as uninitialized by
      is_access_to_paths_allowed().  This would result to indeterministic
      access for one side instead of always being allowed.
      
      This bug could only be triggered with a mounted filesystem containing
      both S_PRIVATE and !S_PRIVATE inodes, which doesn't seem possible.
      
      The collect_domain_accesses() calls return early if
      is_nouser_or_private() returns false, which means that the directory's
      superblock has SB_NOUSER or its inode has S_PRIVATE.  Because rename or
      link actions are only allowed on the same mounted filesystem, the
      superblock is always the same for both source and destination
      directories.  However, it might be possible in theory to have an
      S_PRIVATE parent source inode with an !S_PRIVATE parent destination
      inode, or vice versa.
      
      To make sure this case is not an issue, explicitly initialized both set
      of layer masks to 0, which means to allow all actions on the related
      side.  If at least on side has !S_PRIVATE, then
      collect_domain_accesses() and is_access_to_paths_allowed() check for the
      required access rights.
      
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Christian Brauner <brauner@kernel.org>
      Cc: Günther Noack <gnoack@google.com>
      Cc: Jann Horn <jannh@google.com>
      Cc: Shervin Oloumi <enlightened@chromium.org>
      Cc: stable@vger.kernel.org
      Fixes: b91c3e4e
      
       ("landlock: Add support for file reparenting with LANDLOCK_ACCESS_FS_REFER")
      Link: https://lore.kernel.org/r/20240219190345.2928627-1-mic@digikod.net
      Signed-off-by: default avatarMickaël Salaün <mic@digikod.net>
      d9818b3e
  5. Feb 26, 2024
    • Linus Torvalds's avatar
      Linux 6.8-rc6 · d206a76d
      Linus Torvalds authored
      v6.8-rc6
      d206a76d
    • Linus Torvalds's avatar
      Merge tag 'bcachefs-2024-02-25' of https://evilpiepirate.org/git/bcachefs · e231dbd4
      Linus Torvalds authored
      Pull bcachefs fixes from Kent Overstreet:
       "Some more mostly boring fixes, but some not
      
        User reported ones:
      
         - the BTREE_ITER_FILTER_SNAPSHOTS one fixes a really nasty
           performance bug; user reported an untar initially taking two
           seconds and then ~2 minutes
      
         - kill a __GFP_NOFAIL in the buffered read path; this was a leftover
           from the trickier fix to kill __GFP_NOFAIL in readahead, where we
           can't return errors (and have to silently truncate the read
           ourselves).
      
           bcachefs can't use GFP_NOFAIL for folio state unlike iomap based
           filesystems because our folio state is just barely too big, 2MB
           hugepages cause us to exceed the 2 page threshhold for GFP_NOFAIL.
      
           additionally, the flags argument was just buggy, we weren't
           supplying GFP_KERNEL previously (!)"
      
      * tag 'bcachefs-2024-02-25' of https://evilpiepirate.org/git/bcachefs:
        bcachefs: fix bch2_save_backtrace()
        bcachefs: Fix check_snapshot() memcpy
        bcachefs: Fix bch2_journal_flush_device_pins()
        bcachefs: fix iov_iter count underflow on sub-block dio read
        bcachefs: Fix BTREE_ITER_FILTER_SNAPSHOTS on inodes btree
        bcachefs: Kill __GFP_NOFAIL in buffered read path
        bcachefs: fix backpointer_to_text() when dev does not exist
      e231dbd4
    • Kent Overstreet's avatar
      bcachefs: fix bch2_save_backtrace() · 5197728f
      Kent Overstreet authored
      
      
      Missed a call in the previous fix.
      
      Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
      5197728f
    • Linus Torvalds's avatar
      Merge tag 'docs-6.8-fixes3' of git://git.lwn.net/linux · 70ff1fe6
      Linus Torvalds authored
      Pull two documentation build fixes from Jonathan Corbet:
      
       - The XFS online fsck documentation uses incredibly deeply nested
         subsection and list nesting; that broke the PDF docs build. Tweak a
         parameter to tell LaTeX to allow the deeper nesting.
      
       - Fix a 6.8 PDF-build regression
      
      * tag 'docs-6.8-fixes3' of git://git.lwn.net/linux:
        docs: translations: use attribute to store current language
        docs: Instruct LaTeX to cope with deeper nesting
      70ff1fe6
    • Linus Torvalds's avatar
      Merge tag 'usb-6.8-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · c46ac50e
      Linus Torvalds authored
      Pull USB fixes from Greg KH:
       "Here are some small USB fixes for 6.8-rc6 to resolve some reported
        problems. These include:
      
         - regression fixes with typec tpcm code as reported by many
      
         - cdnsp and cdns3 driver fixes
      
         - usb role setting code bugfixes
      
         - build fix for uhci driver
      
         - ncm gadget driver bugfix
      
         - MAINTAINERS entry update
      
        All of these have been in linux-next all week with no reported issues
        and there is at least one fix in here that is in Thorsten's regression
        list that is being tracked"
      
      * tag 'usb-6.8-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
        usb: typec: tpcm: Fix issues with power being removed during reset
        MAINTAINERS: Drop myself as maintainer of TYPEC port controller drivers
        usb: gadget: ncm: Avoid dropping datagrams of properly parsed NTBs
        Revert "usb: typec: tcpm: reset counter when enter into unattached state after try role"
        usb: gadget: omap_udc: fix USB gadget regression on Palm TE
        usb: dwc3: gadget: Don't disconnect if not started
        usb: cdns3: fix memory double free when handle zero packet
        usb: cdns3: fixed memory use after free at cdns3_gadget_ep_disable()
        usb: roles: don't get/set_role() when usb_role_switch is unregistered
        usb: roles: fix NULL pointer issue when put module's reference
        usb: cdnsp: fixed issue with incorrect detecting CDNSP family controllers
        usb: cdnsp: blocked some cdns3 specific code
        usb: uhci-grlib: Explicitly include linux/platform_device.h
      c46ac50e
    • Linus Torvalds's avatar
      Merge tag 'tty-6.8-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · 1e592e95
      Linus Torvalds authored
      Pull tty/serial driver fixes from Greg KH:
       "Here are three small serial/tty driver fixes for 6.8-rc6 that resolve
        the following reported errors:
      
         - riscv hvc console driver fix that was reported by many
      
         - amba-pl011 serial driver fix for RS485 mode
      
         - stm32 serial driver fix for RS485 mode
      
        All of these have been in linux-next all week with no reported
        problems"
      
      * tag 'tty-6.8-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
        serial: amba-pl011: Fix DMA transmission in RS485 mode
        serial: stm32: do not always set SER_RS485_RX_DURING_TX if RS485 is enabled
        tty: hvc: Don't enable the RISC-V SBI console by default
      1e592e95
    • Linus Torvalds's avatar
      Merge tag 'x86_urgent_for_v6.8_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 1eee4ef3
      Linus Torvalds authored
      Pull x86 fixes from Borislav Petkov:
      
       - Make sure clearing CPU buffers using VERW happens at the latest
         possible point in the return-to-userspace path, otherwise memory
         accesses after the VERW execution could cause data to land in CPU
         buffers again
      
      * tag 'x86_urgent_for_v6.8_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        KVM/VMX: Move VERW closer to VMentry for MDS mitigation
        KVM/VMX: Use BT+JNC, i.e. EFLAGS.CF to select VMRESUME vs. VMLAUNCH
        x86/bugs: Use ALTERNATIVE() instead of mds_user_clear static key
        x86/entry_32: Add VERW just before userspace transition
        x86/entry_64: Add VERW just before userspace transition
        x86/bugs: Add asm helpers for executing VERW
      1eee4ef3
    • Linus Torvalds's avatar
      Merge tag 'irq_urgent_for_v6.8_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 8c46ed37
      Linus Torvalds authored
      Pull irq fixes from Borislav Petkov:
      
       - Make sure GICv4 always gets initialized to prevent a kexec-ed kernel
         from silently failing to set it up
      
       - Do not call bus_get_dev_root() for the mbigen irqchip as it always
         returns NULL - use NULL directly
      
       - Fix hardware interrupt number truncation when assigning MSI
         interrupts
      
       - Correct sending end-of-interrupt messages to disabled interrupts
         lines on RISC-V PLIC
      
      * tag 'irq_urgent_for_v6.8_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        irqchip/gic-v3-its: Do not assume vPE tables are preallocated
        irqchip/mbigen: Don't use bus_get_dev_root() to find the parent
        PCI/MSI: Prevent MSI hardware interrupt number truncation
        irqchip/sifive-plic: Enable interrupt if needed before EOI
      8c46ed37
    • Linus Torvalds's avatar
      Merge tag 'erofs-for-6.8-rc6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs · 4ca0d989
      Linus Torvalds authored
      Pull erofs fix from Gao Xiang:
      
       - Fix page refcount leak when looking up specific inodes
         introduced by metabuf reworking
      
      * tag 'erofs-for-6.8-rc6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs:
        erofs: fix refcount on the metabuf used for inode lookup
      4ca0d989
    • Linus Torvalds's avatar
      Merge tag 'pull-fixes.pathwalk-rcu-2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 66a97c2e
      Linus Torvalds authored
      Pull RCU pathwalk fixes from Al Viro:
       "We still have some races in filesystem methods when exposed to RCU
        pathwalk. This series is a result of code audit (the second round of
        it) and it should deal with most of that stuff.
      
        Still pending: ntfs3 ->d_hash()/->d_compare() and ceph_d_revalidate().
        Up to maintainers (a note for NTFS folks - when documentation says
        that a method may not block, it *does* imply that blocking allocations
        are to be avoided. Really)"
      
      [ More explanations for people who aren't familiar with the vagaries of
        RCU path walking: most of it is hidden from filesystems, but if a
        filesystem actively participates in the low-level path walking it
        needs to make sure the fields involved in that walk are RCU-safe.
      
        That "actively participate in low-level path walking" includes things
        like having its own ->d_hash()/->d_compare() routines, or by having
        its own directory permission function that doesn't just use the common
        helpers.  Having a ->d_revalidate() function will also have this issue.
      
        Note that instead of making everything RCU safe you can also choose to
        abort the RCU pathwalk if your operation cannot be done safely under
        RCU, but that obviously comes with a performance penalty. One common
        pattern is to allow the simple cases under RCU, and abort only if you
        need to do something more complicated.
      
        So not everything needs to be RCU-safe, and things like the inode etc
        that the VFS itself maintains obviously already are. But these fixes
        tend to be about properly RCU-delaying things like ->s_fs_info that
        are maintained by the filesystem and that got potentially released too
        early.   - Linus ]
      
      * tag 'pull-fixes.pathwalk-rcu-2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        ext4_get_link(): fix breakage in RCU mode
        cifs_get_link(): bail out in unsafe case
        fuse: fix UAF in rcu pathwalks
        procfs: make freeing proc_fs_info rcu-delayed
        procfs: move dropping pde and pid from ->evict_inode() to ->free_inode()
        nfs: fix UAF on pathwalk running into umount
        nfs: make nfs_set_verifier() safe for use in RCU pathwalk
        afs: fix __afs_break_callback() / afs_drop_open_mmap() race
        hfsplus: switch to rcu-delayed unloading of nls and freeing ->s_fs_info
        exfat: move freeing sbi, upcase table and dropping nls into rcu-delayed helper
        affs: free affs_sb_info with kfree_rcu()
        rcu pathwalk: prevent bogus hard errors from may_lookup()
        fs/super.c: don't drop ->s_user_ns until we free struct super_block itself
      66a97c2e
    • Linus Torvalds's avatar
      Merge tag 'pull-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 9b243492
      Linus Torvalds authored
      Pull vfs fixes from Al Viro:
       "A couple of fixes - revert of regression from this cycle and a fix for
        erofs failure exit breakage (had been there since way back)"
      
      * tag 'pull-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        erofs: fix handling kern_mount() failure
        Revert "get rid of DCACHE_GENOCIDE"
      9b243492
  6. Feb 25, 2024