1. 24 Sep, 2019 7 commits
  2. 22 Sep, 2019 12 commits
  3. 21 Sep, 2019 10 commits
  4. 20 Sep, 2019 4 commits
  5. 19 Sep, 2019 7 commits
    • Nathan Chancellor's avatar
      ionic: Remove unnecessary ternary operator in ionic_debugfs_add_ident · b47bea2b
      Nathan Chancellor authored
      clang warns:
      
      ../drivers/net/ethernet/pensando/ionic/ionic_debugfs.c:60:37: warning:
      expression result unused [-Wunused-value]
                                  ionic, &identity_fops) ? 0 : -EOPNOTSUPP;
                                                               ^~~~~~~~~~~
      1 warning generated.
      
      The return value of debugfs_create_file does not need to be checked [1]
      and the function returns void so get rid of the ternary operator, it is
      unnecessary.
      
      [1]: https://lore.kernel.org/linux-mm/20150815160730.GB25186@kroah.com/
      
      Fixes: fbfb8031 ("ionic: Add hardware init and device commands")
      Link: https://github.com/ClangBuiltLinux/linux/issues/658Signed-off-by: default avatarNathan Chancellor <natechancellor@gmail.com>
      Acked-by: default avatarShannon Nelson <snelson@pensando.io>
      Reviewed-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b47bea2b
    • Oliver Neukum's avatar
      usbnet: sanity checking of packet sizes and device mtu · 280ceaed
      Oliver Neukum authored
      After a reset packet sizes and device mtu can change and need
      to be reevaluated to calculate queue sizes.
      Malicious devices can set this to zero and we divide by it.
      Introduce sanity checking.
      
      Reported-and-tested-by:  syzbot+6102c120be558c885f04@syzkaller.appspotmail.com
      Signed-off-by: default avatarOliver Neukum <oneukum@suse.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      280ceaed
    • Linus Torvalds's avatar
      Merge tag 'xfs-5.4-merge-7' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · b41dae06
      Linus Torvalds authored
      Pull xfs updates from Darrick Wong:
       "For this cycle we have the usual pile of cleanups and bug fixes, some
        performance improvements for online metadata scrubbing, massive
        speedups in the directory entry creation code, some performance
        improvement in the file ACL lookup code, a fix for a logging stall
        during mount, and fixes for concurrency problems.
      
        It has survived a couple of weeks of xfstests runs and merges cleanly.
      
        Summary:
      
         - Remove KM_SLEEP/KM_NOSLEEP.
      
         - Ensure that memory buffers for IO are properly sector-aligned to
           avoid problems that the block layer doesn't check.
      
         - Make the bmap scrubber more efficient in its record checking.
      
         - Don't crash xfs_db when superblock inode geometry is corrupt.
      
         - Fix btree key helper functions.
      
         - Remove unneeded error returns for things that can't fail.
      
         - Fix buffer logging bugs in repair.
      
         - Clean up iterator return values.
      
         - Speed up directory entry creation.
      
         - Enable allocation of xattr value memory buffer during lookup.
      
         - Fix readahead racing with truncate/punch hole.
      
         - Other minor cleanups.
      
         - Fix one AGI/AGF deadlock with RENAME_WHITEOUT.
      
         - More BUG -> WARN whackamole.
      
         - Fix various problems with the log failing to advance under certain
           circumstances, which results in stalls during mount"
      
      * tag 'xfs-5.4-merge-7' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux: (45 commits)
        xfs: push the grant head when the log head moves forward
        xfs: push iclog state cleaning into xlog_state_clean_log
        xfs: factor iclog state processing out of xlog_state_do_callback()
        xfs: factor callbacks out of xlog_state_do_callback()
        xfs: factor debug code out of xlog_state_do_callback()
        xfs: prevent CIL push holdoff in log recovery
        xfs: fix missed wakeup on l_flush_wait
        xfs: push the AIL in xlog_grant_head_wake
        xfs: Use WARN_ON_ONCE for bailout mount-operation
        xfs: Fix deadlock between AGI and AGF with RENAME_WHITEOUT
        xfs: define a flags field for the AG geometry ioctl structure
        xfs: add a xfs_valid_startblock helper
        xfs: remove the unused XFS_ALLOC_USERDATA flag
        xfs: cleanup xfs_fsb_to_db
        xfs: fix the dax supported check in xfs_ioctl_setattr_dax_invalidate
        xfs: Fix stale data exposure when readahead races with hole punch
        fs: Export generic_fadvise()
        mm: Handle MADV_WILLNEED through vfs_fadvise()
        xfs: allocate xattr buffer on demand
        xfs: consolidate attribute value copying
        ...
      b41dae06
    • Linus Torvalds's avatar
      Merge tag 'vfs-5.4-merge-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · e6bc9de7
      Linus Torvalds authored
      Pull swap access updates from Darrick Wong:
       "Prohibit writing to active swap files and swap partitions.
      
        There's no non-malicious use case for allowing userspace to scribble
        on storage that the kernel thinks it owns"
      
      * tag 'vfs-5.4-merge-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
        vfs: don't allow writes to swap files
        mm: set S_SWAPFILE on blockdev swap devices
      e6bc9de7
    • Linus Torvalds's avatar
      Merge tag 'ovl-fixes-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs · b6c0d357
      Linus Torvalds authored
      Pull overlayfs fixes from Miklos Szeredi:
       "Fix a regression in docker introduced by overlayfs changes in 4.19.
        Also fix a couple of miscellaneous bugs"
      
      * tag 'ovl-fixes-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs:
        ovl: filter of trusted xattr results in audit
        ovl: Fix dereferencing possible ERR_PTR()
        ovl: fix regression caused by overlapping layers detection
      b6c0d357
    • Linus Torvalds's avatar
      Merge tag 'for-5.4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · 7d14df2d
      Linus Torvalds authored
      Pull btrfs updates from David Sterba:
       "This continues with work on code refactoring, sanity checks and space
        handling. There are some less user visible changes, nothing that would
        particularly stand out.
      
        User visible changes:
         - tree checker, more sanity checks of:
             - ROOT_ITEM (key, size, generation, level, alignment, flags)
             - EXTENT_ITEM and METADATA_ITEM checks (key, size, offset,
               alignment, refs)
             - tree block reference items
             - EXTENT_DATA_REF (key, hash, offset)
      
         - deprecate flag BTRFS_SUBVOL_CREATE_ASYNC for subvolume creation
           ioctl, scheduled removal in 5.7
      
         - delete stale and unused UAPI definitions
           BTRFS_DEV_REPLACE_ITEM_STATE_*
      
         - improved export of debugging information available via existing
           sysfs directory structure
      
         - try harder to delete relations between qgroups and allow to delete
           orphan entries
      
         - remove unreliable space checks before relocation starts
      
        Core:
         - space handling:
             - improved ticket reservations and other high level logic in
               order to remove special cases
             - factor flushing infrastructure and use it for different
               contexts, allows to remove some special case handling
             - reduce metadata reservation when only updating inodes
             - reduce global block reserve minimum size (affects small
               filesystems)
             - improved overcommit logic wrt global block reserve
      
         - tests:
             - fix memory leaks in extent IO tree
             - catch all TRIM range
      
        Fixes:
         - fix ENOSPC errors, leading to transaction aborts, when cloning
           extents
      
         - several fixes for inode number cache (mount option inode_cache)
      
         - fix potential soft lockups during send when traversing large trees
      
         - fix unaligned access to space cache pages with SLUB debug on
           (PowerPC)
      
        Other:
         - refactoring public/private functions, moving to new or more
           appropriate files
      
         - defines converted to enums
      
         - error handling improvements
      
         - more assertions and comments
      
         - old code deletion"
      
      * tag 'for-5.4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux: (138 commits)
        btrfs: Relinquish CPUs in btrfs_compare_trees
        btrfs: Don't assign retval of btrfs_try_tree_write_lock/btrfs_tree_read_lock_atomic
        btrfs: create structure to encode checksum type and length
        btrfs: turn checksum type define into an enum
        btrfs: add enospc debug messages for ticket failure
        btrfs: do not account global reserve in can_overcommit
        btrfs: use btrfs_try_granting_tickets in update_global_rsv
        btrfs: always reserve our entire size for the global reserve
        btrfs: change the minimum global reserve size
        btrfs: rename btrfs_space_info_add_old_bytes
        btrfs: remove orig_bytes from reserve_ticket
        btrfs: fix may_commit_transaction to deal with no partial filling
        btrfs: rework wake_all_tickets
        btrfs: refactor the ticket wakeup code
        btrfs: stop partially refilling tickets when releasing space
        btrfs: add space reservation tracepoint for reserved bytes
        btrfs: roll tracepoint into btrfs_space_info_update helper
        btrfs: do not allow reservations if we have pending tickets
        btrfs: stop clearing EXTENT_DIRTY in inode I/O tree
        btrfs: treat RWF_{,D}SYNC writes as sync for CRCs
        ...
      7d14df2d
    • Linus Torvalds's avatar
      Merge tag 'afs-next-20190915' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs · 0bb73e42
      Linus Torvalds authored
      Pull AFS updates from David Howells:
       "Here's a set of patches for AFS. The first three are trivial, deleting
        unused symbols and rolling out a wrapper function.
      
        The fourth and fifth patches make use of the previously added RCU-safe
        request_key facility to allow afs_permission() and afs_d_revalidate()
        to attempt to operate without dropping out of RCU-mode pathwalk. Under
        certain conditions, such as conflict with another client, we still
        have to drop out anyway, take a lock and consult the server"
      
      * tag 'afs-next-20190915' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs:
        afs: Support RCU pathwalk
        afs: Provide an RCU-capable key lookup
        afs: Use afs_extract_discard() rather than iov_iter_discard()
        afs: remove unused variable 'afs_zero_fid'
        afs: remove unused variable 'afs_voltypes'
      0bb73e42