1. 29 12月, 2018 29 次提交
  2. 28 12月, 2018 11 次提交
    • L
      Merge tag 'locks-v4.21-1' of git://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux · 00c569b5
      Linus Torvalds 提交于
      Pull file locking updates from Jeff Layton:
       "The main change in this set is Neil Brown's work to reduce the
        thundering herd problem when a heavily-contended file lock is
        released.
      
        Previously we'd always wake up all waiters when this occurred. With
        this set, we'll now we only wake up waiters that were blocked on the
        range being released"
      
      * tag 'locks-v4.21-1' of git://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux:
        locks: Use inode_is_open_for_write
        fs/locks: remove unnecessary white space.
        fs/locks: merge posix_unblock_lock() and locks_delete_block()
        fs/locks: create a tree of dependent requests.
        fs/locks: change all *_conflict() functions to return bool.
        fs/locks: always delete_block after waiting.
        fs/locks: allow a lock request to block other requests.
        fs/locks: use properly initialized file_lock when unlocking.
        ocfs2: properly initial file_lock used for unlock.
        gfs2: properly initial file_lock used for unlock.
        NFS: use locks_copy_lock() to copy locks.
        fs/locks: split out __locks_wake_up_blocks().
        fs/locks: rename some lists and pointers.
      00c569b5
    • L
      Merge tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 · f6b1495f
      Linus Torvalds 提交于
      Pull ext4 updates from Ted Ts'o:
       "All cleanups and bug fixes; most notably, fix some problems discovered
        in ext4's NFS support, and fix an ioctl (EXT4_IOC_GROUP_ADD) used by
        old versions of e2fsprogs which we accidentally broke a while back.
      
        Also fixed some error paths in ext4's quota and inline data support.
      
        Finally, improve tail latency in jbd2's commit code"
      
      * tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
        ext4: check for shutdown and r/o file system in ext4_write_inode()
        ext4: force inode writes when nfsd calls commit_metadata()
        ext4: avoid declaring fs inconsistent due to invalid file handles
        ext4: include terminating u32 in size of xattr entries when expanding inodes
        ext4: compare old and new mode before setting update_mode flag
        ext4: fix EXT4_IOC_GROUP_ADD ioctl
        ext4: hard fail dax mount on unsupported devices
        jbd2: update locking documentation for transaction_t
        ext4: remove redundant condition check
        jbd2: clean up indentation issue, replace spaces with tab
        ext4: clean up indentation issues, remove extraneous tabs
        ext4: missing unlock/put_page() in ext4_try_to_write_inline_data()
        ext4: fix possible use after free in ext4_quota_enable
        jbd2: avoid long hold times of j_state_lock while committing a transaction
        ext4: add ext4_sb_bread() to disambiguate ENOMEM cases
      f6b1495f
    • L
      Merge tag 'iomap-4.21-merge-2' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · bc77789a
      Linus Torvalds 提交于
      Pull iomap update from Darrick Wong:
       "Fix a memory overflow bug for blocksize < pagesize"
      
      * tag 'iomap-4.21-merge-2' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
        iomap: don't search past page end in iomap_is_partially_uptodate
      bc77789a
    • L
      Merge tag 'xfs-4.21-merge-2' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · 47a43f2f
      Linus Torvalds 提交于
      Pull XFS updates from Darrick Wong:
      
       - Fix CoW remapping of extremely fragmented file areas
      
       - Fix a zero-length symlink verifier error
      
       - Constify some of the rmap owner structures for per-AG metadata
      
       - Precalculate inode geometry for later use
      
       - Fix scrub counting problems
      
       - Don't crash when rtsummary inode is null
      
       - Fix x32 ioctl operation
      
       - Fix enum->string mappings for ftrace output
      
       - Cache realtime summary information in memory
      
      * tag 'xfs-4.21-merge-2' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux: (24 commits)
        xfs: reallocate realtime summary cache on growfs
        xfs: stringify scrub types in ftrace output
        xfs: stringify btree cursor types in ftrace output
        xfs: move XFS_INODE_FORMAT_STR mappings to libxfs
        xfs: move XFS_AG_BTREE_CMP_FORMAT_STR mappings to libxfs
        xfs: fix symbolic enum printing in ftrace output
        xfs: fix function pointer type in ftrace format
        xfs: Fix x32 ioctls when cmd numbers differ from ia32.
        xfs: Fix bulkstat compat ioctls on x32 userspace.
        xfs: Align compat attrlist_by_handle with native implementation.
        xfs: require both realtime inodes to mount
        xfs: cache minimum realtime summary level
        xfs: count inode blocks correctly in inobt scrub
        xfs: precalculate cluster alignment in inodes and blocks
        xfs: precalculate inodes and blocks per inode cluster
        xfs: add a block to inode count converter
        xfs: remove xfs_rmap_ag_owner and friends
        xfs: const-ify xfs_owner_info arguments
        xfs: streamline defer op type handling
        xfs: idiotproof defer op type configuration
        ...
      47a43f2f
    • L
      Merge tag 'fs_for_4.21-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs · e01799ac
      Linus Torvalds 提交于
      Pull ext2, udf, and quota update from Jan Kara:
       "Some ext2 cleanups, a fix for UDF crash on corrupted media, and one
        quota locking fix"
      
      * tag 'fs_for_4.21-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
        quota: Lock s_umount in exclusive mode for Q_XQUOTA{ON,OFF} quotactls.
        udf: Fix BUG on corrupted inode
        ext2: change reusable parameter to true when calling mb_cache_entry_create()
        ext2: remove redundant condition check
        ext2: avoid unnecessary operation in ext2_error()
      e01799ac
    • L
      Merge tag 'fsnotify_for_v4.21-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs · 4b0a383a
      Linus Torvalds 提交于
      Pull fsnotify updates from Jan Kara:
       "Support for new FAN_OPEN_EXEC event and couple of cleanups around
        fsnotify"
      
      * tag 'fsnotify_for_v4.21-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
        fanotify: Use inode_is_open_for_write
        fanotify: Make sure to check event_len when copying
        fsnotify/fdinfo: include fdinfo.h for inotify_show_fdinfo()
        fanotify: introduce new event mask FAN_OPEN_EXEC_PERM
        fsnotify: refactor fsnotify_parent()/fsnotify() paired calls when event is on path
        fanotify: introduce new event mask FAN_OPEN_EXEC
        fanotify: return only user requested event types in event mask
      4b0a383a
    • L
      Merge tag 'dlm-4.21' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/linux-dlm · 4de3aea3
      Linus Torvalds 提交于
      Pull dlm updates from David Teigland:
       "This set is entirely trivial fixes, mainly around correct cleanup on
        error paths and improved error checks. One patch adds scheduling in a
        potentially long recovery loop"
      
      * tag 'dlm-4.21' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/linux-dlm:
        dlm: fix invalid cluster name warning
        dlm: NULL check before some freeing functions is not needed
        dlm: NULL check before kmem_cache_destroy is not needed
        dlm: fix missing idr_destroy for recover_idr
        dlm: memory leaks on error path in dlm_user_request()
        dlm: lost put_lkb on error path in receive_convert() and receive_unlock()
        dlm: possible memory leak on error path in create_lkb()
        dlm: fixed memory leaks after failed ls_remove_names allocation
        dlm: fix possible call to kfree() for non-initialized pointer
        dlm: Don't swamp the CPU with callbacks queued during recovery
        dlm: don't leak kernel pointer to userspace
        dlm: don't allow zero length names
        dlm: fix invalid free
      4de3aea3
    • L
      Merge tag 'for-4.21-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · 32ee34ed
      Linus Torvalds 提交于
      Pull btrfs updates from David Sterba:
       "New features:
      
         - swapfile support - after a long time it's here, with some
           limitations where COW design does not work well with the swap
           implementation (nodatacow file, no compression, cannot be
           snapshotted, not possible on multiple devices, ...), as this is the
           most restricted but working setup, we'll try to improve that in the
           future
      
         - metadata uuid - an optional incompat feature to assign a new
           filesystem UUID without overwriting all metadata blocks, stored
           only in superblock
      
         - more balance messages are printed to system log, initial is in the
           format of the command line that would be used to start it
      
        Fixes:
      
         - tag pages of a snapshot to better separate pages that are involved
           in the snapshot (and need to get synced) from newly dirtied pages
           that could slow down or even livelock the snapshot operation
      
         - improved check of filesystem id associated with a device during
           scan to detect duplicate devices that could be mixed up during
           mount
      
         - fix device replace state transitions, eg. when it ends up
           interrupted and reboot tries to restart balance too, or when
           start/cancel ioctls race
      
         - fix a crash due to a race when quotas are enabled during snapshot
           creation
      
         - GFP_NOFS/memalloc_nofs_* fixes due to GFP_KERNEL allocations in
           transaction context
      
         - fix fsync of files with multiple hard links in new directories
      
         - fix race of send with transaction commits that create snapshots
      
        Core changes:
      
         - cleanups:
            * further removals of now-dead fsync code
            * core function for finding free extent has been split and
              provides a base for further cleanups to make the logic more
              understandable
            * removed lot of indirect callbacks for data and metadata inodes
            * simplified refcounting and locking for cloned extent buffers
            * removed redundant function arguments
            * defines converted to enums where appropriate
      
         - separate reserve for delayed refs from global reserve, update logic
           to do less trickery and ad-hoc heuristics, move out some related
           expensive operations from transaction commit or file truncate
      
         - dev-replace switched from custom locking scheme to semaphore
      
         - remove first phase of balance that tried to make some space for the
           relocation by calling shrink and grow, this did not work as
           expected and only introduced more error states due to potential
           resize failures, slightly improves the runtime as the chunks on all
           devices are not needlessly enumerated
      
         - clone and deduplication now use generic helper that adds a few more
           checks that were missing from the original btrfs implementation of
           the ioctls"
      
      * tag 'for-4.21-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux: (125 commits)
        btrfs: Fix typos in comments and strings
        btrfs: improve error handling of btrfs_add_link
        Btrfs: use generic_remap_file_range_prep() for cloning and deduplication
        btrfs: Refactor main loop in extent_readpages
        btrfs: Remove 1st shrink/grow phase from balance
        Btrfs: send, fix race with transaction commits that create snapshots
        Btrfs: use nofs context when initializing security xattrs to avoid deadlock
        btrfs: run delayed items before dropping the snapshot
        btrfs: catch cow on deleting snapshots
        btrfs: extent-tree: cleanup one-shot usage of @blocksize in do_walk_down
        Btrfs: scrub, move setup of nofs contexts higher in the stack
        btrfs: scrub: move scrub_setup_ctx allocation out of device_list_mutex
        btrfs: scrub: pass fs_info to scrub_setup_ctx
        btrfs: fix truncate throttling
        btrfs: don't run delayed refs in the end transaction logic
        btrfs: rework btrfs_check_space_for_delayed_refs
        btrfs: add new flushing states for the delayed refs rsv
        btrfs: update may_commit_transaction to use the delayed refs rsv
        btrfs: introduce delayed_refs_rsv
        btrfs: only track ref_heads in delayed_ref_updates
        ...
      32ee34ed
    • L
      Merge tag 'gfs2-4.21.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2 · 7bbbf2c2
      Linus Torvalds 提交于
      Pull gfs2 updates from Bob Peterson:
      
       - Enhancements and performance improvements to journal replay (Abhi
         Das)
      
       - Cleanup of gfs2_is_ordered and gfs2_is_writeback (Andreas
         Gruenbacher)
      
       - Fix a potential double-free in inode creation (Andreas Gruenbacher)
      
       - Fix the bitmap search loop that was searching too far (Andreas
         Gruenbacher)
      
       - Various cleanups (Andreas Gruenbacher, Bob Peterson)
      
       - Implement Steve Whitehouse's patch to dump nrpages for inodes (Bob
         Peterson)
      
       - Fix a withdraw bug where stuffed journaled data files didn't allocate
         enough journal space to be grown (Bob Peterson)
      
      * tag 'gfs2-4.21.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2:
        gfs2: take jdata unstuff into account in do_grow
        gfs2: Dump nrpages for inodes and their glocks
        gfs2: Fix loop in gfs2_rbm_find
        gfs2: Get rid of potential double-freeing in gfs2_create_inode
        gfs2: Remove vestigial bd_ops
        gfs2: read journal in large chunks to locate the head
        gfs2: add a helper function to get_log_header that can be used elsewhere
        gfs2: changes to gfs2_log_XXX_bio
        gfs2: add more timing info to journal recovery process
        gfs2: Fix the gfs2_invalidatepage description
        gfs2: Clean up gfs2_is_{ordered,writeback}
      7bbbf2c2
    • L
      Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 · b71acb0e
      Linus Torvalds 提交于
      Pull crypto updates from Herbert Xu:
       "API:
         - Add 1472-byte test to tcrypt for IPsec
         - Reintroduced crypto stats interface with numerous changes
         - Support incremental algorithm dumps
      
        Algorithms:
         - Add xchacha12/20
         - Add nhpoly1305
         - Add adiantum
         - Add streebog hash
         - Mark cts(cbc(aes)) as FIPS allowed
      
        Drivers:
         - Improve performance of arm64/chacha20
         - Improve performance of x86/chacha20
         - Add NEON-accelerated nhpoly1305
         - Add SSE2 accelerated nhpoly1305
         - Add AVX2 accelerated nhpoly1305
         - Add support for 192/256-bit keys in gcmaes AVX
         - Add SG support in gcmaes AVX
         - ESN for inline IPsec tx in chcr
         - Add support for CryptoCell 703 in ccree
         - Add support for CryptoCell 713 in ccree
         - Add SM4 support in ccree
         - Add SM3 support in ccree
         - Add support for chacha20 in caam/qi2
         - Add support for chacha20 + poly1305 in caam/jr
         - Add support for chacha20 + poly1305 in caam/qi2
         - Add AEAD cipher support in cavium/nitrox"
      
      * 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: (130 commits)
        crypto: skcipher - remove remnants of internal IV generators
        crypto: cavium/nitrox - Fix build with !CONFIG_DEBUG_FS
        crypto: salsa20-generic - don't unnecessarily use atomic walk
        crypto: skcipher - add might_sleep() to skcipher_walk_virt()
        crypto: x86/chacha - avoid sleeping under kernel_fpu_begin()
        crypto: cavium/nitrox - Added AEAD cipher support
        crypto: mxc-scc - fix build warnings on ARM64
        crypto: api - document missing stats member
        crypto: user - remove unused dump functions
        crypto: chelsio - Fix wrong error counter increments
        crypto: chelsio - Reset counters on cxgb4 Detach
        crypto: chelsio - Handle PCI shutdown event
        crypto: chelsio - cleanup:send addr as value in function argument
        crypto: chelsio - Use same value for both channel in single WR
        crypto: chelsio - Swap location of AAD and IV sent in WR
        crypto: chelsio - remove set but not used variable 'kctx_len'
        crypto: ux500 - Use proper enum in hash_set_dma_transfer
        crypto: ux500 - Use proper enum in cryp_set_dma_transfer
        crypto: aesni - Add scatter/gather avx stubs, and use them in C
        crypto: aesni - Introduce partial block macro
        ..
      b71acb0e
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next · e0c38a4d
      Linus Torvalds 提交于
      Pull networking updates from David Miller:
      
       1) New ipset extensions for matching on destination MAC addresses, from
          Stefano Brivio.
      
       2) Add ipv4 ttl and tos, plus ipv6 flow label and hop limit offloads to
          nfp driver. From Stefano Brivio.
      
       3) Implement GRO for plain UDP sockets, from Paolo Abeni.
      
       4) Lots of work from Michał Mirosław to eliminate the VLAN_TAG_PRESENT
          bit so that we could support the entire vlan_tci value.
      
       5) Rework the IPSEC policy lookups to better optimize more usecases,
          from Florian Westphal.
      
       6) Infrastructure changes eliminating direct manipulation of SKB lists
          wherever possible, and to always use the appropriate SKB list
          helpers. This work is still ongoing...
      
       7) Lots of PHY driver and state machine improvements and
          simplifications, from Heiner Kallweit.
      
       8) Various TSO deferral refinements, from Eric Dumazet.
      
       9) Add ntuple filter support to aquantia driver, from Dmitry Bogdanov.
      
      10) Batch dropping of XDP packets in tuntap, from Jason Wang.
      
      11) Lots of cleanups and improvements to the r8169 driver from Heiner
          Kallweit, including support for ->xmit_more. This driver has been
          getting some much needed love since he started working on it.
      
      12) Lots of new forwarding selftests from Petr Machata.
      
      13) Enable VXLAN learning in mlxsw driver, from Ido Schimmel.
      
      14) Packed ring support for virtio, from Tiwei Bie.
      
      15) Add new Aquantia AQtion USB driver, from Dmitry Bezrukov.
      
      16) Add XDP support to dpaa2-eth driver, from Ioana Ciocoi Radulescu.
      
      17) Implement coalescing on TCP backlog queue, from Eric Dumazet.
      
      18) Implement carrier change in tun driver, from Nicolas Dichtel.
      
      19) Support msg_zerocopy in UDP, from Willem de Bruijn.
      
      20) Significantly improve garbage collection of neighbor objects when
          the table has many PERMANENT entries, from David Ahern.
      
      21) Remove egdev usage from nfp and mlx5, and remove the facility
          completely from the tree as it no longer has any users. From Oz
          Shlomo and others.
      
      22) Add a NETDEV_PRE_CHANGEADDR so that drivers can veto the change and
          therefore abort the operation before the commit phase (which is the
          NETDEV_CHANGEADDR event). From Petr Machata.
      
      23) Add indirect call wrappers to avoid retpoline overhead, and use them
          in the GRO code paths. From Paolo Abeni.
      
      24) Add support for netlink FDB get operations, from Roopa Prabhu.
      
      25) Support bloom filter in mlxsw driver, from Nir Dotan.
      
      26) Add SKB extension infrastructure. This consolidates the handling of
          the auxiliary SKB data used by IPSEC and bridge netfilter, and is
          designed to support the needs to MPTCP which could be integrated in
          the future.
      
      27) Lots of XDP TX optimizations in mlx5 from Tariq Toukan.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1845 commits)
        net: dccp: fix kernel crash on module load
        drivers/net: appletalk/cops: remove redundant if statement and mask
        bnx2x: Fix NULL pointer dereference in bnx2x_del_all_vlans() on some hw
        net/net_namespace: Check the return value of register_pernet_subsys()
        net/netlink_compat: Fix a missing check of nla_parse_nested
        ieee802154: lowpan_header_create check must check daddr
        net/mlx4_core: drop useless LIST_HEAD
        mlxsw: spectrum: drop useless LIST_HEAD
        net/mlx5e: drop useless LIST_HEAD
        iptunnel: Set tun_flags in the iptunnel_metadata_reply from src
        net/mlx5e: fix semicolon.cocci warnings
        staging: octeon: fix build failure with XFRM enabled
        net: Revert recent Spectre-v1 patches.
        can: af_can: Fix Spectre v1 vulnerability
        packet: validate address length if non-zero
        nfc: af_nfc: Fix Spectre v1 vulnerability
        phonet: af_phonet: Fix Spectre v1 vulnerability
        net: core: Fix Spectre v1 vulnerability
        net: minor cleanup in skb_ext_add()
        net: drop the unused helper skb_ext_get()
        ...
      e0c38a4d