1. 15 Apr, 2024 9 commits
    • Linus Torvalds's avatar
      Merge tag 'nfsd-6.9-3' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux · 96fca68c
      Linus Torvalds authored
      Pull nfsd fixes from Chuck Lever:
      
       - Fix a potential tracepoint crash
      
       - Fix NFSv4 GETATTR on big-endian platforms
      
      * tag 'nfsd-6.9-3' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux:
        NFSD: fix endianness issue in nfsd4_encode_fattr4
        SUNRPC: Fix rpcgss_context trace event acceptor field
      96fca68c
    • Linus Torvalds's avatar
      Merge tag 'bcachefs-2024-04-15' of https://evilpiepirate.org/git/bcachefs · cef27048
      Linus Torvalds authored
      Pull yet more bcachefs fixes from Kent Overstreet:
       "This gets recovery working again for the affected user I've been
        working with, and I'm still waiting to hear back on other bug reports
        but should fix it for everyone else who's been having issues with
        recovery.
      
         - Various recovery fixes:
      
             - fixes for the btree_insert_entry being resized on path
               allocation btree_path array recently became dynamically
               resizable, and btree_insert_entry along with it; this was being
               observed during journal replay, when write buffer btree updates
               don't use the write buffer and instead use the normal btree
               update path
      
             - multiple fixes for deadlock in recovery when we need to do lots
               of btree node merges; excessive merges were clocking up the
               whole pipeline
      
             - write buffer path now correctly does btree node merges when
               needed
      
             - fix failure to go RW when superblock indicates recovery passes
               needed (i.e. to complete an unfinished upgrade)
      
         - Various unsafety fixes - test case contributed by a user who had
           two drives out of a six drive array write out a whole bunch of
           garbage after power failure
      
         - New (tiny) on disk format feature: since it appears the btree node
           scan tool will be a more regular thing (crappy hardware, user
           error) - this adds a 64 bit per-device bitmap of regions that have
           ever had btree nodes.
      
         - A path->should_be_locked fix, from a larger patch series tightening
           up invariants and assertions around btree transaction and path
           locking state.
      
           This particular fix prevents us from keeping around btree_paths
           that are no longer needed"
      
      * tag 'bcachefs-2024-04-15' of https://evilpiepirate.org/git/bcachefs: (24 commits)
        bcachefs: set_btree_iter_dontneed also clears should_be_locked
        bcachefs: fix error path of __bch2_read_super()
        bcachefs: Check for backpointer bucket_offset >= bucket size
        bcachefs: bch_member.btree_allocated_bitmap
        bcachefs: sysfs internal/trigger_journal_flush
        bcachefs: Fix bch2_btree_node_fill() for !path
        bcachefs: add safety checks in bch2_btree_node_fill()
        bcachefs: Interior known are required to have known key types
        bcachefs: add missing bounds check in __bch2_bkey_val_invalid()
        bcachefs: Fix btree node merging on write buffer btrees
        bcachefs: Disable merges from interior update path
        bcachefs: Run merges at BCH_WATERMARK_btree
        bcachefs: Fix missing write refs in fs fio paths
        bcachefs: Fix deadlock in journal replay
        bcachefs: Go rw if running any explicit recovery passes
        bcachefs: Standardize helpers for printing enum strs with bounds checks
        bcachefs: don't queue btree nodes for rewrites during scan
        bcachefs: fix race in bch2_btree_node_evict()
        bcachefs: fix unsafety in bch2_stripe_to_text()
        bcachefs: fix unsafety in bch2_extent_ptr_to_text()
        ...
      cef27048
    • Kent Overstreet's avatar
      bcachefs: set_btree_iter_dontneed also clears should_be_locked · ad29cf99
      Kent Overstreet authored
      This is part of a larger series cleaning up the semantics of
      should_be_locked and adding assertions around it; if we don't need an
      iterator/path anymore, it clearly doesn't need to be locked.
      Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
      ad29cf99
    • Chao Yu's avatar
      bcachefs: fix error path of __bch2_read_super() · 3078e059
      Chao Yu authored
      In __bch2_read_super(), if kstrdup() fails, it needs to release memory
      in sb->holder, fix to call bch2_free_super() in the error path.
      Signed-off-by: default avatarChao Yu <chao@kernel.org>
      Reviewed-by: default avatarHongbo Li <lihongbo22@huawei.com>
      Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
      3078e059
    • Linus Torvalds's avatar
      Merge tag 'linux_kselftest-fixes-6.9-rc5' of... · 3fdfcd98
      Linus Torvalds authored
      Merge tag 'linux_kselftest-fixes-6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
      
      Pull kselftest fixes from Shuah Khan:
       "A fix to kselftest harness to prevent infinite loop triggered in an
        assert in FIXTURE_TEARDOWN and a fix to a problem seen in being able
        to stop subsystem-enable tests when sched events are being traced"
      
      * tag 'linux_kselftest-fixes-6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
        selftests/harness: Prevent infinite loop due to Assert in FIXTURE_TEARDOWN
        selftests/ftrace: Limit length in subsystem-enable tests
      3fdfcd98
    • Kent Overstreet's avatar
    • Kent Overstreet's avatar
      bcachefs: bch_member.btree_allocated_bitmap · 27c15ed2
      Kent Overstreet authored
      This adds a small (64 bit) per-device bitmap that tracks ranges that
      have btree nodes, for accelerating btree node scan if it is ever needed.
      
      - New helpers, bch2_dev_btree_bitmap_marked() and
        bch2_dev_bitmap_mark(), for checking and updating the bitmap
      
      - Interior btree update path updates the bitmaps when required
      
      - The check_allocations pass has a new fsck_err check,
        btree_bitmap_not_marked
      
      - New on disk format version, mi_btree_mitmap, which indicates the new
        bitmap is present
      
      - Upgrade table lists the required recovery pass and expected fsck error
      
      - Btree node scan uses the bitmap to skip ranges if we're on the new
        version
      Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
      27c15ed2
    • Kent Overstreet's avatar
      bcachefs: sysfs internal/trigger_journal_flush · bdae2a7e
      Kent Overstreet authored
      Add a sysfs knob for immediately flushing the entire journal.
      Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
      bdae2a7e
    • Kent Overstreet's avatar
      bcachefs: Fix bch2_btree_node_fill() for !path · e879389f
      Kent Overstreet authored
      We shouldn't be doing the unlock/relock dance when we're not using a
      path - this fixes an assertion pop when called from btree node scan.
      Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
      e879389f
  2. 14 Apr, 2024 27 commits
  3. 13 Apr, 2024 4 commits
    • Linus Torvalds's avatar
      Merge tag 'ata-6.9-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux · 7efd0a74
      Linus Torvalds authored
      Pull ata fixes from Damien Le Moal:
      
       - Add the mask_port_map parameter to the ahci driver. This is a
         follow-up to the recent snafu with the ASMedia controller and its
         virtual port hidding port-multiplier devices. As ASMedia confirmed
         that there is no way to determine if these slow-to-probe virtual
         ports are actually representing the ports of a port-multiplier
         devices, this new parameter allow masking ports to significantly
         speed up probing during system boot, resulting in shorter boot times.
      
       - A fix for an incorrect handling of a port unlock in
         ata_scsi_dev_rescan().
      
       - Allow command duration limits to be detected for ACS-4 devices are
         there are such devices out in the field.
      
      * tag 'ata-6.9-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux:
        ata: libata-core: Allow command duration limits detection for ACS-4 drives
        ata: libata-scsi: Fix ata_scsi_dev_rescan() error path
        ata: ahci: Add mask_port_map module parameter
      7efd0a74
    • Linus Torvalds's avatar
      Merge tag 'zonefs-6.9-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/zonefs · 76b0e9c4
      Linus Torvalds authored
      Pull zonefs fix from Damien Le Moal:
      
       - Suppress a coccicheck warning using str_plural()
      
      * tag 'zonefs-6.9-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/zonefs:
        zonefs: Use str_plural() to fix Coccinelle warning
      76b0e9c4
    • Linus Torvalds's avatar
      Merge tag 'v6.9-rc3-SMB3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6 · fa4022cb
      Linus Torvalds authored
      Pull smb client fixes from Steve French:
      
       - fix for oops in cifs_get_fattr of deleted files
      
       - fix for the remote open counter going negative in some directory
         lease cases
      
       - fix for mkfifo to instantiate dentry to avoid possible crash
      
       - important fix to allow handling key rotation for mount and remount
         (ie cases that are becoming more common when password that was used
         for the mount will expire soon but will be replaced by new password)
      
      * tag 'v6.9-rc3-SMB3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6:
        smb3: fix broken reconnect when password changing on the server by allowing password rotation
        smb: client: instantiate when creating SFU files
        smb3: fix Open files on server counter going negative
        smb: client: fix NULL ptr deref in cifs_mark_open_handles_for_deleted_file()
      fa4022cb
    • Igor Pylypiv's avatar
      ata: libata-core: Allow command duration limits detection for ACS-4 drives · c0297e7d
      Igor Pylypiv authored
      Even though the command duration limits (CDL) feature was first added
      in ACS-5 (major version 12), there are some ACS-4 (major version 11)
      drives that implement CDL as well.
      
      IDENTIFY_DEVICE, SUPPORTED_CAPABILITIES, and CURRENT_SETTINGS log pages
      are mandatory in the ACS-4 standard so it should be safe to read these
      log pages on older drives implementing the ACS-4 standard.
      
      Fixes: 62e4a60e ("scsi: ata: libata: Detect support for command duration limits")
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarIgor Pylypiv <ipylypiv@google.com>
      Signed-off-by: default avatarDamien Le Moal <dlemoal@kernel.org>
      c0297e7d