1. 16 May, 2019 3 commits
  2. 09 May, 2019 1 commit
    • Al Viro's avatar
      do_move_mount(): fix an unsafe use of is_anon_ns() · 05883eee
      Al Viro authored
      What triggers it is a race between mount --move and umount -l
      of the source; we should reject it (the source is parentless *and*
      not the root of anon namespace at that), but the check for namespace
      being an anon one is broken in that case - is_anon_ns() needs
      ns to be non-NULL.  Better fixed here than in is_anon_ns(), since
      the rest of the callers is guaranteed to get a non-NULL argument...
      
      Reported-by: syzbot+494c7ddf66acac0ad747@syzkaller.appspotmail.com
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      05883eee
  3. 08 May, 2019 19 commits
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next · 80f23212
      Linus Torvalds authored
      Pull networking updates from David Miller:
       "Highlights:
      
         1) Support AES128-CCM ciphers in kTLS, from Vakul Garg.
      
         2) Add fib_sync_mem to control the amount of dirty memory we allow to
            queue up between synchronize RCU calls, from David Ahern.
      
         3) Make flow classifier more lockless, from Vlad Buslov.
      
         4) Add PHY downshift support to aquantia driver, from Heiner
            Kallweit.
      
         5) Add SKB cache for TCP rx and tx, from Eric Dumazet. This reduces
            contention on SLAB spinlocks in heavy RPC workloads.
      
         6) Partial GSO offload support in XFRM, from Boris Pismenny.
      
         7) Add fast link down support to ethtool, from Heiner Kallweit.
      
         8) Use siphash for IP ID generator, from Eric Dumazet.
      
         9) Pull nexthops even further out from ipv4/ipv6 routes and FIB
            entries, from David Ahern.
      
        10) Move skb->xmit_more into a per-cpu variable, from Florian
            Westphal.
      
        11) Improve eBPF verifier speed and increase maximum program size,
            from Alexei Starovoitov.
      
        12) Eliminate per-bucket spinlocks in rhashtable, and instead use bit
            spinlocks. From Neil Brown.
      
        13) Allow tunneling with GUE encap in ipvs, from Jacky Hu.
      
        14) Improve link partner cap detection in generic PHY code, from
            Heiner Kallweit.
      
        15) Add layer 2 encap support to bpf_skb_adjust_room(), from Alan
            Maguire.
      
        16) Remove SKB list implementation assumptions in SCTP, your's truly.
      
        17) Various cleanups, optimizations, and simplifications in r8169
            driver. From Heiner Kallweit.
      
        18) Add memory accounting on TX and RX path of SCTP, from Xin Long.
      
        19) Switch PHY drivers over to use dynamic featue detection, from
            Heiner Kallweit.
      
        20) Support flow steering without masking in dpaa2-eth, from Ioana
            Ciocoi.
      
        21) Implement ndo_get_devlink_port in netdevsim driver, from Jiri
            Pirko.
      
        22) Increase the strict parsing of current and future netlink
            attributes, also export such policies to userspace. From Johannes
            Berg.
      
        23) Allow DSA tag drivers to be modular, from Andrew Lunn.
      
        24) Remove legacy DSA probing support, also from Andrew Lunn.
      
        25) Allow ll_temac driver to be used on non-x86 platforms, from Esben
            Haabendal.
      
        26) Add a generic tracepoint for TX queue timeouts to ease debugging,
            from Cong Wang.
      
        27) More indirect call optimizations, from Paolo Abeni"
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1763 commits)
        cxgb4: Fix error path in cxgb4_init_module
        net: phy: improve pause mode reporting in phy_print_status
        dt-bindings: net: Fix a typo in the phy-mode list for ethernet bindings
        net: macb: Change interrupt and napi enable order in open
        net: ll_temac: Improve error message on error IRQ
        net/sched: remove block pointer from common offload structure
        net: ethernet: support of_get_mac_address new ERR_PTR error
        net: usb: smsc: fix warning reported by kbuild test robot
        staging: octeon-ethernet: Fix of_get_mac_address ERR_PTR check
        net: dsa: support of_get_mac_address new ERR_PTR error
        net: dsa: sja1105: Fix status initialization in sja1105_get_ethtool_stats
        vrf: sit mtu should not be updated when vrf netdev is the link
        net: dsa: Fix error cleanup path in dsa_init_module
        l2tp: Fix possible NULL pointer dereference
        taprio: add null check on sched_nest to avoid potential null pointer dereference
        net: mvpp2: cls: fix less than zero check on a u32 variable
        net_sched: sch_fq: handle non connected flows
        net_sched: sch_fq: do not assume EDT packets are ordered
        net: hns3: use devm_kcalloc when allocating desc_cb
        net: hns3: some cleanup for struct hns3_enet_ring
        ...
      80f23212
    • Linus Torvalds's avatar
      Merge tag 'devicetree-for-5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux · 82efe439
      Linus Torvalds authored
      Pull Devicetree updates from Rob Herring:
      
       - Fix possible memory leak in reserved-memory failure case
      
       - Support for DMA parent bus which are not a parent node
      
       - Clang -Wunsequenced fix
      
       - Remove some unnecessary prints on memory alloc failures
      
       - Various printk msg and comment fixes
      
       - Update DT schema tools repository location
      
       - Convert simple-framebuffer binding to DT schema
      
       - Bindings for isl68137 and ir38064 trivial devices
      
       - New documentation on binding do's and don't's for binding writers to
         ignore
      
      * tag 'devicetree-for-5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (22 commits)
        of: unittest: Remove error printing on OOM
        of: irq: Remove WARN_ON() for kzalloc() failure
        dt-bindings: pinctrl: fix bias-pull,up typo
        dt-bindings: Update schema project location to devicetree.org github group
        of: fix clang -Wunsequenced for be32_to_cpu()
        of/device.c: fix the wrong comments
        dt-bindings: Add isl68137 as a trivial device
        dt-bindings: Add ir38064 as a trivial device
        of: del redundant type conversion
        dt-bindings: mfd: axp20x: Add fallback for axp805
        of: Improve of_phandle_iterator_next() error message
        dt-bindings: connector: Spelling mistake
        dt-bindings: Add schemas for simple-framebuffer
        of: address: Add support for the parent DMA bus
        of: address: Retrieve a parent through a callback in __of_translate_address
        dt-bindings: bus: Add binding for the Allwinner MBUS controller
        dt-bindings: interconnect: Add a dma interconnect name
        of: use correct function prototype for of_overlay_fdt_apply()
        of: reserved_mem: fix reserve memory leak
        of: property: Document that of_graph_get_endpoint_by_regs needs of_node_put
        ...
      82efe439
    • Linus Torvalds's avatar
      Merge tag 'random_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/random · dd5001e2
      Linus Torvalds authored
      Pull randomness updates from Ted Ts'o:
      
       - initialize the random driver earler
      
       - fix CRNG initialization when we trust the CPU's RNG on NUMA systems
      
       - other miscellaneous cleanups and fixes.
      
      * tag 'random_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/random:
        random: add a spinlock_t to struct batched_entropy
        random: document get_random_int() family
        random: fix CRNG initialization when random.trust_cpu=1
        random: move rand_initialize() earlier
        random: only read from /dev/random after its pool has received 128 bits
        drivers/char/random.c: make primary_crng static
        drivers/char/random.c: remove unused stuct poolinfo::poolbits
        drivers/char/random.c: constify poolinfo_table
      dd5001e2
    • Linus Torvalds's avatar
      Merge tag 'fscrypt_for_linus' of git://git.kernel.org/pub/scm/fs/fscrypt/fscrypt · a9fbcd67
      Linus Torvalds authored
      Pull fscrypt updates from Ted Ts'o:
       "Clean up fscrypt's dcache revalidation support, and other
        miscellaneous cleanups"
      
      * tag 'fscrypt_for_linus' of git://git.kernel.org/pub/scm/fs/fscrypt/fscrypt:
        fscrypt: cache decrypted symlink target in ->i_link
        vfs: use READ_ONCE() to access ->i_link
        fscrypt: fix race where ->lookup() marks plaintext dentry as ciphertext
        fscrypt: only set dentry_operations on ciphertext dentries
        fs, fscrypt: clear DCACHE_ENCRYPTED_NAME when unaliasing directory
        fscrypt: fix race allowing rename() and link() of ciphertext dentries
        fscrypt: clean up and improve dentry revalidation
        fscrypt: use READ_ONCE() to access ->i_crypt_info
        fscrypt: remove WARN_ON_ONCE() when decryption fails
        fscrypt: drop inode argument from fscrypt_get_ctx()
      a9fbcd67
    • Linus Torvalds's avatar
      Merge tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 · 5abe3795
      Linus Torvalds authored
      Pull ext4 updates from Ted Ts'o:
       "Add as a feature case-insensitive directories (the casefold feature)
        using Unicode 12.1.
      
        Also, the usual largish number of cleanups and bug fixes"
      
      * tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4: (25 commits)
        ext4: export /sys/fs/ext4/feature/casefold if Unicode support is present
        ext4: fix ext4_show_options for file systems w/o journal
        unicode: refactor the rule for regenerating utf8data.h
        docs: ext4.rst: document case-insensitive directories
        ext4: Support case-insensitive file name lookups
        ext4: include charset encoding information in the superblock
        MAINTAINERS: add Unicode subsystem entry
        unicode: update unicode database unicode version 12.1.0
        unicode: introduce test module for normalized utf8 implementation
        unicode: implement higher level API for string handling
        unicode: reduce the size of utf8data[]
        unicode: introduce code for UTF-8 normalization
        unicode: introduce UTF-8 character database
        ext4: actually request zeroing of inode table after grow
        ext4: cond_resched in work-heavy group loops
        ext4: fix use-after-free race with debug_want_extra_isize
        ext4: avoid drop reference to iloc.bh twice
        ext4: ignore e_value_offs for xattrs with value-in-ea-inode
        ext4: protect journal inode's blocks using block_validity
        ext4: use BUG() instead of BUG_ON(1)
        ...
      5abe3795
    • Linus Torvalds's avatar
      Merge tag 'afs-next-20190507' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs · e5fef2a9
      Linus Torvalds authored
      Pull AFS updates from David Howells:
       "A set of fix and development patches for AFS for 5.2.
      
        Summary:
      
         - Fix the AFS file locking so that sqlite can run on an AFS mount and
           also so that firefox and gnome can use a homedir that's mounted
           through AFS.
      
           This required emulation of fine-grained locking when the server
           will only support whole-file locks and no upgrade/downgrade. Four
           modes are provided, settable by mount parameter:
      
             "flock=local"   - No reference to the server
      
             "flock=openafs" - Fine-grained locks are local-only, whole-file
                               locks require sufficient server locks
      
             "flock=strict"  - All locks require sufficient server locks
      
             "flock=write"   - Always get an exclusive server lock
      
           If the volume is a read-only or backup volume, then flock=local for
           that volume.
      
         - Log extra information for a couple of cases where the client mucks
           up somehow: AFS vnode with undefined type and dir check failure -
           in both cases we seem to end up with unfilled data, but the issues
           happen infrequently and are difficult to reproduce at will.
      
         - Implement silly rename for unlink() and rename().
      
         - Set i_blocks so that du can get some information about usage.
      
         - Fix xattr handlers to return the right amount of data and to not
           overflow buffers.
      
         - Implement getting/setting raw AFS and YFS ACLs as xattrs"
      
      * tag 'afs-next-20190507' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs:
        afs: Implement YFS ACL setting
        afs: Get YFS ACLs and information through xattrs
        afs: implement acl setting
        afs: Get an AFS3 ACL as an xattr
        afs: Fix getting the afs.fid xattr
        afs: Fix the afs.cell and afs.volume xattr handlers
        afs: Calculate i_blocks based on file size
        afs: Log more information for "kAFS: AFS vnode with undefined type\n"
        afs: Provide mount-time configurable byte-range file locking emulation
        afs: Add more tracepoints
        afs: Implement sillyrename for unlink and rename
        afs: Add directory reload tracepoint
        afs: Handle lock rpc ops failing on a file that got deleted
        afs: Improve dir check failure reports
        afs: Add file locking tracepoints
        afs: Further fix file locking
        afs: Fix AFS file locking to allow fine grained locks
        afs: Calculate lock extend timer from set/extend reply reception
        afs: Split wait from afs_make_call()
      e5fef2a9
    • Linus Torvalds's avatar
      Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 149e703c
      Linus Torvalds authored
      Pull misc vfs updates from Al Viro:
       "Assorted stuff, with no common topic whatsoever..."
      
      * 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        libfs: document simple_get_link()
        Documentation/filesystems/Locking: fix ->get_link() prototype
        Documentation/filesystems/vfs.txt: document how ->i_link works
        Documentation/filesystems/vfs.txt: remove bogus "Last updated" date
        fs: use timespec64 in relatime_need_update
        fs/block_dev.c: remove unused include
      149e703c
    • Linus Torvalds's avatar
      Merge branch 'work.file' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · d897166d
      Linus Torvalds authored
      Pull vfs 'struct file' related updates from Al Viro:
       "A bit more of 'this fget() would be better off as fdget()'
        whack-a-mole + a couple of ->f_count-related cleanups"
      
      * 'work.file' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        media: switch to fdget()
        drm_syncobj: switch to fdget()
        amdgpu: switch to fdget()
        don't open-code file_count()
        fs: drop unused fput_atomic definition
      d897166d
    • Linus Torvalds's avatar
      Merge branch 'work.mount-syscalls' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 40091325
      Linus Torvalds authored
      Pull mount ABI updates from Al Viro:
       "The syscalls themselves, finally.
      
        That's not all there is to that stuff, but switching individual
        filesystems to new methods is fortunately independent from everything
        else, so e.g. NFS series can go through NFS tree, etc.
      
        As those conversions get done, we'll be finally able to get rid of a
        bunch of duplication in fs/super.c introduced in the beginning of the
        entire thing. I expect that to be finished in the next window..."
      
      * 'work.mount-syscalls' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        vfs: Add a sample program for the new mount API
        vfs: syscall: Add fspick() to select a superblock for reconfiguration
        vfs: syscall: Add fsmount() to create a mount for a superblock
        vfs: syscall: Add fsconfig() for configuring and managing a context
        vfs: Implement logging through fs_context
        vfs: syscall: Add fsopen() to prepare for superblock creation
        Make anon_inodes unconditional
        teach move_mount(2) to work with OPEN_TREE_CLONE
        vfs: syscall: Add move_mount(2) to move mounts around
        vfs: syscall: Add open_tree(2) to reference or clone a mount
      40091325
    • Linus Torvalds's avatar
      Merge branch 'work.dcache' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · d27fb65b
      Linus Torvalds authored
      Pull misc dcache updates from Al Viro:
       "Most of this pile is putting name length into struct name_snapshot and
        making use of it.
      
        The beginning of this series ("ovl_lookup_real_one(): don't bother
        with strlen()") ought to have been split in two (separate switch of
        name_snapshot to struct qstr from overlayfs reaping the trivial
        benefits of that), but I wanted to avoid a rebase - by the time I'd
        spotted that it was (a) in -next and (b) close to 5.1-final ;-/"
      
      * 'work.dcache' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        audit_compare_dname_path(): switch to const struct qstr *
        audit_update_watch(): switch to const struct qstr *
        inotify_handle_event(): don't bother with strlen()
        fsnotify: switch send_to_group() and ->handle_event to const struct qstr *
        fsnotify(): switch to passing const struct qstr * for file_name
        switch fsnotify_move() to passing const struct qstr * for old_name
        ovl_lookup_real_one(): don't bother with strlen()
        sysv: bury the broken "quietly truncate the long filenames" logics
        nsfs: unobfuscate
        unexport d_alloc_pseudo()
      d27fb65b
    • Linus Torvalds's avatar
      Merge branch 'parisc-5.2-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux · d3511f53
      Linus Torvalds authored
      Pull parisc updates from Helge Deller:
       "Many great new features, fixes and optimizations, including:
      
         - Convert page table updates to use per-pagetable spinlocks which
           overall improves performance on SMP machines a lot, by Mikulas
           Patocka
      
         - Kernel debugger (KGDB) support, by Sven Schnelle
      
         - KPROBES support, by Sven Schnelle
      
         - Lots of TLB lock/flush improvements, by Dave Anglin
      
         - Drop DISCONTIGMEM and switch to SPARSEMEM
      
         - Added JUMP_LABEL, branch runtime-patching support
      
         - Lots of other small speedups and cleanups, e.g. for QEMU, stack
           randomization, avoidance of name clashes, documentation updates,
           etc ..."
      
      * 'parisc-5.2-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux: (28 commits)
        parisc: Add static branch and JUMP_LABEL feature
        parisc: Use PA_ASM_LEVEL in boot code
        parisc: Rename LEVEL to PA_ASM_LEVEL to avoid name clash with DRBD code
        parisc: Update huge TLB page support to use per-pagetable spinlock
        parisc: Use per-pagetable spinlock
        parisc: Allow live-patching of __meminit functions
        parisc: Add memory barrier to asm pdc and sync instructions
        parisc: Add memory clobber to TLB purges
        parisc: Use ldcw instruction for SMP spinlock release barrier
        parisc: Remove lock code to serialize TLB operations in pacache.S
        parisc: Switch from DISCONTIGMEM to SPARSEMEM
        parisc: enable wide mode early
        parisc: update feature lists
        parisc: Show n/a if product number not available
        parisc: remove unused flags parameter in __patch_text()
        doc: update kprobes supported architecture list
        parisc: Implement kretprobes
        parisc: remove kprobes.h from generic-y
        parisc: Implement kprobes
        parisc: add functions required by KPROBE_EVENTS
        ...
      d3511f53
    • Linus Torvalds's avatar
      Merge tag 'audit-pr-20190507' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit · 02aff8db
      Linus Torvalds authored
      Pull audit updates from Paul Moore:
       "We've got a reasonably broad set of audit patches for the v5.2 merge
        window, the highlights are below:
      
         - The biggest change, and the source of all the arch/* changes, is
           the patchset from Dmitry to help enable some of the work he is
           doing around PTRACE_GET_SYSCALL_INFO.
      
           To be honest, including this in the audit tree is a bit of a
           stretch, but it does help move audit a little further along towards
           proper syscall auditing for all arches, and everyone else seemed to
           agree that audit was a "good" spot for this to land (or maybe they
           just didn't want to merge it? dunno.).
      
         - We can now audit time/NTP adjustments.
      
         - We continue the work to connect associated audit records into a
           single event"
      
      * tag 'audit-pr-20190507' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit: (21 commits)
        audit: fix a memory leak bug
        ntp: Audit NTP parameters adjustment
        timekeeping: Audit clock adjustments
        audit: purge unnecessary list_empty calls
        audit: link integrity evm_write_xattrs record to syscall event
        syscall_get_arch: add "struct task_struct *" argument
        unicore32: define syscall_get_arch()
        Move EM_UNICORE to uapi/linux/elf-em.h
        nios2: define syscall_get_arch()
        nds32: define syscall_get_arch()
        Move EM_NDS32 to uapi/linux/elf-em.h
        m68k: define syscall_get_arch()
        hexagon: define syscall_get_arch()
        Move EM_HEXAGON to uapi/linux/elf-em.h
        h8300: define syscall_get_arch()
        c6x: define syscall_get_arch()
        arc: define syscall_get_arch()
        Move EM_ARCOMPACT and EM_ARCV2 to uapi/linux/elf-em.h
        audit: Make audit_log_cap and audit_copy_inode static
        audit: connect LOGIN record to its syscall record
        ...
      02aff8db
    • Linus Torvalds's avatar
      Merge tag 'selinux-pr-20190507' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux · f72dae20
      Linus Torvalds authored
      Pull selinux updates from Paul Moore:
       "We've got a few SELinux patches for the v5.2 merge window, the
        highlights are below:
      
         - Add LSM hooks, and the SELinux implementation, for proper labeling
           of kernfs. While we are only including the SELinux implementation
           here, the rest of the LSM folks have given the hooks a thumbs-up.
      
         - Update the SELinux mdp (Make Dummy Policy) script to actually work
           on a modern system.
      
         - Disallow userspace to change the LSM credentials via
           /proc/self/attr when the task's credentials are already overridden.
      
           The change was made in procfs because all the LSM folks agreed this
           was the Right Thing To Do and duplicating it across each LSM was
           going to be annoying"
      
      * tag 'selinux-pr-20190507' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux:
        proc: prevent changes to overridden credentials
        selinux: Check address length before reading address family
        kernfs: fix xattr name handling in LSM helpers
        MAINTAINERS: update SELinux file patterns
        selinux: avoid uninitialized variable warning
        selinux: remove useless assignments
        LSM: lsm_hooks.h - fix missing colon in docstring
        selinux: Make selinux_kernfs_init_security static
        kernfs: initialize security of newly created nodes
        selinux: implement the kernfs_init_security hook
        LSM: add new hook for kernfs node initialization
        kernfs: use simple_xattrs for security attributes
        selinux: try security xattr after genfs for kernfs filesystems
        kernfs: do not alloc iattrs in kernfs_xattr_get
        kernfs: clean up struct kernfs_iattrs
        scripts/selinux: fix build
        selinux: use kernel linux/socket.h for genheaders and mdp
        scripts/selinux: modernize mdp
      f72dae20
    • Linus Torvalds's avatar
      Merge branch 'stable/for-linus-5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/swiotlb · 498e8631
      Linus Torvalds authored
      Pull swiotlb updates from Konrad Rzeszutek Wilk:
       "Cleanups in the swiotlb code and extra debugfs knobs to help with the
        field diagnostics"
      
      * 'stable/for-linus-5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/swiotlb:
        swiotlb-xen: ensure we have a single callsite for xen_dma_map_page
        swiotlb-xen: simplify the DMA sync method implementations
        swiotlb-xen: use ->map_page to implement ->map_sg
        swiotlb-xen: make instances match their method names
        swiotlb: save io_tlb_used to local variable before leaving critical section
        swiotlb: dump used and total slots when swiotlb buffer is full
      498e8631
    • Linus Torvalds's avatar
      Merge tag 'for-5.2/libata-20190507' of git://git.kernel.dk/linux-block · e4eaa9ef
      Linus Torvalds authored
      Pull libata updates from Jens Axboe:
       "Just two minor fixes queued up for 5.2, adding support for two
        different platforms to ahci"
      
      * tag 'for-5.2/libata-20190507' of git://git.kernel.dk/linux-block:
        ahci: qoriq: add ls1028a platforms support
        ahci: qoriq: add lx2160 platforms support
      e4eaa9ef
    • Linus Torvalds's avatar
      Merge tag 'for-5.2/io_uring-20190507' of git://git.kernel.dk/linux-block · 52ae2456
      Linus Torvalds authored
      Pull io_uring updates from Jens Axboe:
       "Set of changes/improvements for io_uring. This contains:
      
         - Fix of a shadowed variable (Colin)
      
         - Add support for draining commands (me)
      
         - Add support for sync_file_range() (me)
      
         - Add eventfd support (me)
      
         - cpu_online() fix (Shenghui)
      
         - Removal of a redundant ->error assignment (Stefan)"
      
      * tag 'for-5.2/io_uring-20190507' of git://git.kernel.dk/linux-block:
        io_uring: use cpu_online() to check p->sq_thread_cpu instead of cpu_possible()
        io_uring: fix shadowed variable ret return code being not checked
        req->error only used for iopoll
        io_uring: add support for eventfd notifications
        io_uring: add support for IORING_OP_SYNC_FILE_RANGE
        fs: add sync_file_range() helper
        io_uring: add support for marking commands as draining
      52ae2456
    • Linus Torvalds's avatar
      Merge tag 'for-5.2/block-20190507' of git://git.kernel.dk/linux-block · 67a24222
      Linus Torvalds authored
      Pull block updates from Jens Axboe:
       "Nothing major in this series, just fixes and improvements all over the
        map. This contains:
      
         - Series of fixes for sed-opal (David, Jonas)
      
         - Fixes and performance tweaks for BFQ (via Paolo)
      
         - Set of fixes for bcache (via Coly)
      
         - Set of fixes for md (via Song)
      
         - Enabling multi-page for passthrough requests (Ming)
      
         - Queue release fix series (Ming)
      
         - Device notification improvements (Martin)
      
         - Propagate underlying device rotational status in loop (Holger)
      
         - Removal of mtip32xx trim support, which has been disabled for years
           (Christoph)
      
         - Improvement and cleanup of nvme command handling (Christoph)
      
         - Add block SPDX tags (Christoph)
      
         - Cleanup/hardening of bio/bvec iteration (Christoph)
      
         - A few NVMe pull requests (Christoph)
      
         - Removal of CONFIG_LBDAF (Christoph)
      
         - Various little fixes here and there"
      
      * tag 'for-5.2/block-20190507' of git://git.kernel.dk/linux-block: (164 commits)
        block: fix mismerge in bvec_advance
        block: don't drain in-progress dispatch in blk_cleanup_queue()
        blk-mq: move cancel of hctx->run_work into blk_mq_hw_sysfs_release
        blk-mq: always free hctx after request queue is freed
        blk-mq: split blk_mq_alloc_and_init_hctx into two parts
        blk-mq: free hw queue's resource in hctx's release handler
        blk-mq: move cancel of requeue_work into blk_mq_release
        blk-mq: grab .q_usage_counter when queuing request from plug code path
        block: fix function name in comment
        nvmet: protect discovery change log event list iteration
        nvme: mark nvme_core_init and nvme_core_exit static
        nvme: move command size checks to the core
        nvme-fabrics: check more command sizes
        nvme-pci: check more command sizes
        nvme-pci: remove an unneeded variable initialization
        nvme-pci: unquiesce admin queue on shutdown
        nvme-pci: shutdown on timeout during deletion
        nvme-pci: fix psdt field for single segment sgls
        nvme-multipath: don't print ANA group state by default
        nvme-multipath: split bios with the ns_head bio_set before submitting
        ...
      67a24222
    • Linus Torvalds's avatar
      Merge tag 'leds-for-5.2-rc1' of... · 8b35ad62
      Linus Torvalds authored
      Merge tag 'leds-for-5.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewski/linux-leds
      
      Pull LED updates from Jacek Anaszewski:
       "LED core fixes and improvements:
      
            - avoid races with workqueue
            - Kconfig: pedantic cleanup
            - small fixes for Flash class description
      
        leds-lt3593:
      
            - remove unneeded assignment in lt3593_led_probe
            - drop pdata handling code
      
        leds-blinkm:
      
            - clean up double assignment to data->i2c_addr
      
        leds-pca955x, leds-pca963x:
      
            - revert ACPI support, as it turned out that there is no evidence
                of officially registered ACPI IDs for these devices.
            - make use of device property API
      
        leds-as3645a:
      
            - switch to fwnode property API
      
        LED related addition to ACPI documentation:
      
            - document how to refer to LEDs from remote nodes
      
        LED related fix to ALSA line6/toneport driver:
      
            - avoid polluting led_* namespace
      
        And lm3532 driver relocation from MFD to LED subsystem, accompanied by
        various improvements and optimizations; it entails also a change in
        omap4-droid4-xt894.dts:
      
            - leds: lm3532: Introduce the lm3532 LED driver
            - mfd: ti-lmu: Remove LM3532 backlight driver references
            - ARM: dts: omap4-droid4: Update backlight dt properties
            - dt: lm3532: Add lm3532 dt doc and update ti_lmu doc"
      
      * tag 'leds-for-5.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewski/linux-leds:
        leds: avoid races with workqueue
        ALSA: line6: Avoid polluting led_* namespace
        leds: lm3532: Introduce the lm3532 LED driver
        mfd: ti-lmu: Remove LM3532 backlight driver references
        ARM: dts: omap4-droid4: Update backlight dt properties
        dt: lm3532: Add lm3532 dt doc and update ti_lmu doc
        leds: Small fixes for Flash class description
        leds: blinkm: clean up double assignment to data->i2c_addr
        leds: pca963x: Make use of device property API
        leds: pca955x: Make use of device property API
        leds: lt3593: Remove unneeded assignment in lt3593_led_probe
        leds: lt3593: drop pdata handling code
        leds: pca955x: Revert "Add ACPI support"
        leds: pca963x: Revert "Add ACPI support"
        drivers: leds: Kconfig: pedantic cleanups
        ACPI: Document how to refer to LEDs from remote nodes
        leds: as3645a: Switch to fwnode property API
      8b35ad62
    • David S. Miller's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · a9e41a52
      David S. Miller authored
      Minor conflict with the DSA legacy code removal.
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a9e41a52
  4. 07 May, 2019 17 commits
    • Linus Torvalds's avatar
      Merge tag 'char-misc-5.2-rc1-part2' of... · f678d6da
      Linus Torvalds authored
      Merge tag 'char-misc-5.2-rc1-part2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
      
      Pull char/misc update part 2 from Greg KH:
       "Here is the "real" big set of char/misc driver patches for 5.2-rc1
      
        Loads of different driver subsystem stuff in here, all over the places:
         - thunderbolt driver updates
         - habanalabs driver updates
         - nvmem driver updates
         - extcon driver updates
         - intel_th driver updates
         - mei driver updates
         - coresight driver updates
         - soundwire driver cleanups and updates
         - fastrpc driver updates
         - other minor driver updates
         - chardev minor fixups
      
        Feels like this tree is getting to be a dumping ground of "small
        driver subsystems" these days. Which is fine with me, if it makes
        things easier for those subsystem maintainers.
      
        All of these have been in linux-next for a while with no reported
        issues"
      
      * tag 'char-misc-5.2-rc1-part2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (255 commits)
        intel_th: msu: Add current window tracking
        intel_th: msu: Add a sysfs attribute to trigger window switch
        intel_th: msu: Correct the block wrap detection
        intel_th: Add switch triggering support
        intel_th: gth: Factor out trace start/stop
        intel_th: msu: Factor out pipeline draining
        intel_th: msu: Switch over to scatterlist
        intel_th: msu: Replace open-coded list_{first,last,next}_entry variants
        intel_th: Only report useful IRQs to subdevices
        intel_th: msu: Start handling IRQs
        intel_th: pci: Use MSI interrupt signalling
        intel_th: Communicate IRQ via resource
        intel_th: Add "rtit" source device
        intel_th: Skip subdevices if their MMIO is missing
        intel_th: Rework resource passing between glue layers and core
        intel_th: SPDX-ify the documentation
        intel_th: msu: Fix single mode with IOMMU
        coresight: funnel: Support static funnel
        dt-bindings: arm: coresight: Unify funnel DT binding
        coresight: replicator: Add new device id for static replicator
        ...
      f678d6da
    • Linus Torvalds's avatar
      Merge tag 'char-misc-5.2-rc1-part1' of... · 2310673c
      Linus Torvalds authored
      Merge tag 'char-misc-5.2-rc1-part1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
      
      Pull char/misc update part 1 from Greg KH:
       "This contains only a small number of bugfixes that would have gone to
        you for 5.1-rc8 if that had happened, but instead I let them sit in
        linux-next for an extra week just "to be sure".
      
        The "big" patch here is for hyper-v, fixing a bug in their sysfs files
        that could cause big problems. The others are all small fixes,
        resolving reported issues that showed up in 5.1-rcs, plus some odd
        'static' cleanups for the phy drivers that really should have waited
        for -rc1. Most of these are tagged for the stable trees, so 5.1 will
        pick them up.
      
        All of these have been in linux-next for a while, with no reported
        issues"
      
      * tag 'char-misc-5.2-rc1-part1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
        misc: rtsx: Fixed rts5260 power saving parameter and sd glitch
        binder: take read mode of mmap_sem in binder_alloc_free_page()
        intel_th: pci: Add Comet Lake support
        stm class: Fix channel bitmap on 32-bit systems
        stm class: Fix channel free in stm output free path
        phy: sun4i-usb: Make sure to disable PHY0 passby for peripheral mode
        phy: fix platform_no_drv_owner.cocci warnings
        phy: mapphone-mdm6600: add gpiolib dependency
        phy: ti: usb2: fix OMAP_CONTROL_PHY dependency
        phy: allwinner: allow compile testing
        phy: qcom-ufs: Make ufs_qcom_phy_disable_iface_clk static
        phy: rockchip-typec: Make usb3_pll_cfg and dp_pll_cfg static
        phy: phy-twl4030-usb: Fix cable state handling
        Drivers: hv: vmbus: Remove the undesired put_cpu_ptr() in hv_synic_cleanup()
        Drivers: hv: vmbus: Fix race condition with new ring_buffer_info mutex
        Drivers: hv: vmbus: Set ring_info field to 0 and remove memset
        Drivers: hv: vmbus: Refactor chan->state if statement
        Drivers: hv: vmbus: Expose monitor data only when monitor pages are used
      2310673c
    • Linus Torvalds's avatar
      Merge tag 'staging-5.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · e0dccbdf
      Linus Torvalds authored
      Pull staging / IIO driver updates from Greg KH:
       "Here is the big staging and iio driver update for 5.2-rc1.
      
        Lots of tiny fixes all over the staging and IIO driver trees here,
        along with some new IIO drivers.
      
        The "counter" subsystem was added in here as well, as it is needed by
        the IIO drivers and subsystem.
      
        Also we ended up deleting two drivers, making this pull request remove
        a few hundred thousand lines of code, always a nice thing to see. Both
        of the drivers removed have been replaced with "real" drivers in their
        various subsystem directories, and they will be coming to you from
        those locations during this merge window.
      
        There are some core vt/selection changes in here, that was due to some
        cleanups needed for the speakup fixes. Those have all been acked by
        the various subsystem maintainers (i.e. me), so those are ok.
      
        We also added a few new drivers, for some odd hardware, giving new
        developers plenty to work on with basic coding style cleanups to come
        in the near future.
      
        Other than that, nothing unusual here.
      
        All of these have been in linux-next for a while with no reported
        issues, other than an odd gcc warning for one of the new drivers that
        should be fixed up soon"
      
      [ I fixed up the warning myself  - Linus ]
      
      * tag 'staging-5.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (663 commits)
        staging: kpc2000: kpc_spi: Fix build error for {read,write}q
        Staging: rtl8192e: Remove extra space before break statement
        Staging: rtl8192u: ieee80211: Fix if-else indentation warning
        Staging: rtl8192u: ieee80211: Fix indentation errors by removing extra spaces
        staging: most: cdev: fix chrdev_region leak in mod_exit
        staging: wlan-ng: Fix improper SPDX comment style
        staging: rtl8192u: ieee80211: Resolve ERROR reported by checkpatch
        staging: vc04_services: bcm2835-camera: Compress two lines into one line
        staging: rtl8723bs: core: Use !x in place of NULL comparison.
        staging: rtl8723bs: core: Prefer using the BIT Macro.
        staging: fieldbus: anybus-s: fix wait_for_completion_timeout return handling
        staging: kpc2000: fix up build problems with readq()
        staging: rtlwifi: move remaining phydm .h files
        staging: rtlwifi: strip down phydm .h files
        staging: rtlwifi: delete the staging driver
        staging: fieldbus: anybus-s: rename bus id field to avoid confusion
        staging: fieldbus: anybus-s: keep device bus id in bus endianness
        Staging: sm750fb: Change *array into *const array
        staging: rtl8192u: ieee80211: Fix spelling mistake
        staging: rtl8192u: ieee80211: Replace bit shifting with BIT macro
        ...
      e0dccbdf
    • Linus Torvalds's avatar
      Merge tag 'driver-core-5.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core · cf482a49
      Linus Torvalds authored
      Pull driver core/kobject updates from Greg KH:
       "Here is the "big" set of driver core patches for 5.2-rc1
      
        There are a number of ACPI patches in here as well, as Rafael said
        they should go through this tree due to the driver core changes they
        required. They have all been acked by the ACPI developers.
      
        There are also a number of small subsystem-specific changes in here,
        due to some changes to the kobject core code. Those too have all been
        acked by the various subsystem maintainers.
      
        As for content, it's pretty boring outside of the ACPI changes:
         - spdx cleanups
         - kobject documentation updates
         - default attribute groups for kobjects
         - other minor kobject/driver core fixes
      
        All have been in linux-next for a while with no reported issues"
      
      * tag 'driver-core-5.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (47 commits)
        kobject: clean up the kobject add documentation a bit more
        kobject: Fix kernel-doc comment first line
        kobject: Remove docstring reference to kset
        firmware_loader: Fix a typo ("syfs" -> "sysfs")
        kobject: fix dereference before null check on kobj
        Revert "driver core: platform: Fix the usage of platform device name(pdev->name)"
        init/config: Do not select BUILD_BIN2C for IKCONFIG
        Provide in-kernel headers to make extending kernel easier
        kobject: Improve doc clarity kobject_init_and_add()
        kobject: Improve docs for kobject_add/del
        driver core: platform: Fix the usage of platform device name(pdev->name)
        livepatch: Replace klp_ktype_patch's default_attrs with groups
        cpufreq: schedutil: Replace default_attrs field with groups
        padata: Replace padata_attr_type default_attrs field with groups
        irqdesc: Replace irq_kobj_type's default_attrs field with groups
        net-sysfs: Replace ktype default_attrs field with groups
        block: Replace all ktype default_attrs with groups
        samples/kobject: Replace foo_ktype's default_attrs field with groups
        kobject: Add support for default attribute groups to kobj_type
        driver core: Postpone DMA tear-down until after devres release for probe failure
        ...
      cf482a49
    • Linus Torvalds's avatar
      Merge tag 'mmc-v5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc · 01e5d183
      Linus Torvalds authored
      Pull MMC updates from Ulf Hansson:
       "MMC core:
         - Fix a few memoryleaks
         - Minor improvements to the card initialization sequence
         - Partially support sleepy GPIO controllers for pwrseq eMMC
      
        MMC host:
         - alcor: Work with multiple-entry sglists
         - alcor: Enable DMA for writes
         - meson-gx: Improve tuning support
         - meson-gx: Avoid clock glitch when switching to DDR modes
         - meson-gx: Disable unreliable HS400 mode
         - mmci: Minor updates for support of HW busy detection
         - mmci: Support data transfers for the stm32_sdmmc variant
         - mmci: Restructure code to better support different variants
         - mtk-sd: Add support for version found on MT7620 family SOCs
         - mtk-sd: Add support for the MT8516 version
         - mtk-sd: Add Chaotian Jing as the maintainer
         - sdhci: Reorganize request-code to convert from tasklet to workqueue
         - sdhci_am654: Stabilize support for lower speed modes
         - sdhci-esdhc-imx: Add HS400 support for iMX7ULP
         - sdhci-esdhc-imx: Add support for iMX7ULP version
         - sdhci-of-arasan: Allow to disable DCMDs via DT for CQE
         - sdhci-of-esdhc: Add support for the ls1028a version
         - sdhci-of-esdhc: Several fixups for errata
         - sdhci-pci: Fix BYT OCP setting
         - sdhci-pci: Add support for Intel CML
         - sdhci-tegra: Add support for system suspend/resume
         - sdhci-tegra: Add CQE support for Tegra186 WAR
         - sdhci-tegra: Add support for Tegra194
         - sdhci-tegra: Update HW tuning process
      
        MEMSTICK:
         - I volunteered to help as a maintainer for the memstick subsystem,
           which is reflected by an update to the MAINTAINERS file. Changes
           are funneled through my MMC git and we will use the linux-mmc
           mailing list.
      
        MEMSTICK host:
         - A few minor cleanups"
      
      * tag 'mmc-v5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc: (87 commits)
        mmc: sdhci-pci: Fix BYT OCP setting
        dt-bindings: mmc: add DT bindings for ls1028a eSDHC host controller
        mmc: alcor: Drop pointer to mmc_host from alcor_sdmmc_host
        mmc: mtk-sd: select REGULATOR
        mmc: mtk-sd: enable internal card-detect logic.
        mmc: mtk-sd: add support for config found in mt7620 family SOCs.
        mmc: mtk-sd: don't hard-code interrupt trigger type
        mmc: core: Fix tag set memory leak
        dt-bindings: mmc: Add support for MT8516 to mtk-sd
        mmc: mmci: Prevent polling for busy detection in IRQ context
        mmc: mmci: Cleanup mmci_cmd_irq() for busy detect
        mmc: usdhi6rol0: mark expected switch fall-throughs
        mmc: core: Verify SD bus width
        mmc: sdhci-esdhc-imx: Add HS400 support for iMX7ULP
        mmc: sdhci-esdhc-imx: add pm_qos to interact with cpuidle
        dt-bindings: mmc: fsl-imx-esdhc: add imx7ulp compatible string
        mmc: meson-gx: add signal resampling tuning
        mmc: meson-gx: remove Rx phase tuning
        mmc: meson-gx: avoid clock glitch when switching to DDR modes
        mmc: meson-gx: disable HS400
        ...
      01e5d183
    • Linus Torvalds's avatar
      Merge tag 'Wimplicit-fallthrough-5.2-rc1' of... · b4b52b88
      Linus Torvalds authored
      Merge tag 'Wimplicit-fallthrough-5.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux
      
      Pull Wimplicit-fallthrough updates from Gustavo A. R. Silva:
       "Mark switch cases where we are expecting to fall through.
      
        This is part of the ongoing efforts to enable -Wimplicit-fallthrough.
      
        Most of them have been baking in linux-next for a whole development
        cycle. And with Stephen Rothwell's help, we've had linux-next
        nag-emails going out for newly introduced code that triggers
        -Wimplicit-fallthrough to avoid gaining more of these cases while we
        work to remove the ones that are already present.
      
        We are getting close to completing this work. Currently, there are
        only 32 of 2311 of these cases left to be addressed in linux-next. I'm
        auditing every case; I take a look into the code and analyze it in
        order to determine if I'm dealing with an actual bug or a false
        positive, as explained here:
      
            https://lore.kernel.org/lkml/c2fad584-1705-a5f2-d63c-824e9b96cf50@embeddedor.com/
      
        While working on this, I've found and fixed the several missing
        break/return bugs, some of them introduced more than 5 years ago.
      
        Once this work is finished, we'll be able to universally enable
        "-Wimplicit-fallthrough" to avoid any of these kinds of bugs from
        entering the kernel again"
      
      * tag 'Wimplicit-fallthrough-5.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux: (27 commits)
        memstick: mark expected switch fall-throughs
        drm/nouveau/nvkm: mark expected switch fall-throughs
        NFC: st21nfca: Fix fall-through warnings
        NFC: pn533: mark expected switch fall-throughs
        block: Mark expected switch fall-throughs
        ASN.1: mark expected switch fall-through
        lib/cmdline.c: mark expected switch fall-throughs
        lib: zstd: Mark expected switch fall-throughs
        scsi: sym53c8xx_2: sym_nvram: Mark expected switch fall-through
        scsi: sym53c8xx_2: sym_hipd: mark expected switch fall-throughs
        scsi: ppa: mark expected switch fall-through
        scsi: osst: mark expected switch fall-throughs
        scsi: lpfc: lpfc_scsi: Mark expected switch fall-throughs
        scsi: lpfc: lpfc_nvme: Mark expected switch fall-through
        scsi: lpfc: lpfc_nportdisc: Mark expected switch fall-through
        scsi: lpfc: lpfc_hbadisc: Mark expected switch fall-throughs
        scsi: lpfc: lpfc_els: Mark expected switch fall-throughs
        scsi: lpfc: lpfc_ct: Mark expected switch fall-throughs
        scsi: imm: mark expected switch fall-throughs
        scsi: csiostor: csio_wr: mark expected switch fall-through
        ...
      b4b52b88
    • Linus Torvalds's avatar
      Merge tag 'meminit-v5.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux · 2d60d96b
      Linus Torvalds authored
      Pull compiler-based variable initialization updates from Kees Cook:
       "This is effectively part of my gcc-plugins tree, but as this adds some
        Clang support, it felt weird to still call it "gcc-plugins". :)
      
        This consolidates Kconfig for the existing stack variable
        initialization (via structleak and stackleak gcc plugins) and adds
        Alexander Potapenko's support for Clang's new similar functionality.
      
        Summary:
      
         - Consolidate memory initialization Kconfigs (Kees)
      
         - Implement support for Clang's stack variable auto-init (Alexander)"
      
      * tag 'meminit-v5.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
        security: Implement Clang's stack initialization
        security: Move stackleak config to Kconfig.hardening
        security: Create "kernel hardening" config area
      2d60d96b
    • YueHaibing's avatar
      cxgb4: Fix error path in cxgb4_init_module · a3147770
      YueHaibing authored
      BUG: unable to handle kernel paging request at ffffffffa016a270
      PGD 3270067 P4D 3270067 PUD 3271063 PMD 230bbd067 PTE 0
      Oops: 0000 [#1
      CPU: 0 PID: 6134 Comm: modprobe Not tainted 5.1.0+ #33
      Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.9.3-0-ge2fc41e-prebuilt.qemu-project.org 04/01/2014
      RIP: 0010:atomic_notifier_chain_register+0x24/0x60
      Code: 1f 80 00 00 00 00 55 48 89 e5 41 54 49 89 f4 53 48 89 fb e8 ae b4 38 01 48 8b 53 38 48 8d 4b 38 48 85 d2 74 20 45 8b 44 24 10 <44> 3b 42 10 7e 08 eb 13 44 39 42 10 7c 0d 48 8d 4a 08 48 8b 52 08
      RSP: 0018:ffffc90000e2bc60 EFLAGS: 00010086
      RAX: 0000000000000292 RBX: ffffffff83467240 RCX: ffffffff83467278
      RDX: ffffffffa016a260 RSI: ffffffff83752140 RDI: ffffffff83467240
      RBP: ffffc90000e2bc70 R08: 0000000000000000 R09: 0000000000000001
      R10: 0000000000000000 R11: 00000000014fa61f R12: ffffffffa01c8260
      R13: ffff888231091e00 R14: 0000000000000000 R15: ffffc90000e2be78
      FS:  00007fbd8d7cd540(0000) GS:ffff888237a00000(0000) knlGS:0000000000000000
      CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      CR2: ffffffffa016a270 CR3: 000000022c7e3000 CR4: 00000000000006f0
      Call Trace:
       register_inet6addr_notifier+0x13/0x20
       cxgb4_init_module+0x6c/0x1000 [cxgb4
       ? 0xffffffffa01d7000
       do_one_initcall+0x6c/0x3cc
       ? do_init_module+0x22/0x1f1
       ? rcu_read_lock_sched_held+0x97/0xb0
       ? kmem_cache_alloc_trace+0x325/0x3b0
       do_init_module+0x5b/0x1f1
       load_module+0x1db1/0x2690
       ? m_show+0x1d0/0x1d0
       __do_sys_finit_module+0xc5/0xd0
       __x64_sys_finit_module+0x15/0x20
       do_syscall_64+0x6b/0x1d0
       entry_SYSCALL_64_after_hwframe+0x49/0xbe
      
      If pci_register_driver fails, register inet6addr_notifier is
      pointless. This patch fix the error path in cxgb4_init_module.
      
      Fixes: b5a02f50 ("cxgb4 : Update ipv6 address handling api")
      Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a3147770
    • Heiner Kallweit's avatar
      net: phy: improve pause mode reporting in phy_print_status · 23bfaa59
      Heiner Kallweit authored
      So far we report symmetric pause only, and we don't consider the local
      pause capabilities. Let's properly consider local and remote
      capabilities, and report also asymmetric pause.
      Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      23bfaa59
    • Maxime Chevallier's avatar
      dt-bindings: net: Fix a typo in the phy-mode list for ethernet bindings · 822dd046
      Maxime Chevallier authored
      The phy_mode "2000base-x" is actually supposed to be "1000base-x", even
      though the commit title of the original patch says otherwise.
      
      Fixes: 55601a88 ("net: phy: Add 2000base-x, 2500base-x and rxaui modes")
      Signed-off-by: default avatarMaxime Chevallier <maxime.chevallier@bootlin.com>
      Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      822dd046
    • Linus Torvalds's avatar
      Merge tag 'pidfd-v5.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux · eac7078a
      Linus Torvalds authored
      Pull pidfd updates from Christian Brauner:
       "This patchset makes it possible to retrieve pidfds at process creation
        time by introducing the new flag CLONE_PIDFD to the clone() system
        call. Linus originally suggested to implement this as a new flag to
        clone() instead of making it a separate system call.
      
        After a thorough review from Oleg CLONE_PIDFD returns pidfds in the
        parent_tidptr argument. This means we can give back the associated pid
        and the pidfd at the same time. Access to process metadata information
        thus becomes rather trivial.
      
        As has been agreed, CLONE_PIDFD creates file descriptors based on
        anonymous inodes similar to the new mount api. They are made
        unconditional by this patchset as they are now needed by core kernel
        code (vfs, pidfd) even more than they already were before (timerfd,
        signalfd, io_uring, epoll etc.). The core patchset is rather small.
        The bulky looking changelist is caused by David's very simple changes
        to Kconfig to make anon inodes unconditional.
      
        A pidfd comes with additional information in fdinfo if the kernel
        supports procfs. The fdinfo file contains the pid of the process in
        the callers pid namespace in the same format as the procfs status
        file, i.e. "Pid:\t%d".
      
        To remove worries about missing metadata access this patchset comes
        with a sample/test program that illustrates how a combination of
        CLONE_PIDFD and pidfd_send_signal() can be used to gain race-free
        access to process metadata through /proc/<pid>.
      
        Further work based on this patchset has been done by Joel. His work
        makes pidfds pollable. It finished too late for this merge window. I
        would prefer to have it sitting in linux-next for a while and send it
        for inclusion during the 5.3 merge window"
      
      * tag 'pidfd-v5.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux:
        samples: show race-free pidfd metadata access
        signal: support CLONE_PIDFD with pidfd_send_signal
        clone: add CLONE_PIDFD
        Make anon_inodes unconditional
      eac7078a
    • Harini Katakam's avatar
      net: macb: Change interrupt and napi enable order in open · 05044531
      Harini Katakam authored
      Current order in open:
      -> Enable interrupts (macb_init_hw)
      -> Enable NAPI
      -> Start PHY
      
      Sequence of RX handling:
      -> RX interrupt occurs
      -> Interrupt is cleared and interrupt bits disabled in handler
      -> NAPI is scheduled
      -> In NAPI, RX budget is processed and RX interrupts are re-enabled
      
      With the above, on QEMU or fixed link setups (where PHY state doesn't
      matter), there's a chance macb RX interrupt occurs before NAPI is
      enabled. This will result in NAPI being scheduled before it is enabled.
      Fix this macb open by changing the order.
      
      Fixes: ae1f2a56 ("net: macb: Added support for many RX queues")
      Signed-off-by: default avatarHarini Katakam <harini.katakam@xilinx.com>
      Acked-by: default avatarNicolas Ferre <nicolas.ferre@microchip.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      05044531
    • Esben Haabendal's avatar
      net: ll_temac: Improve error message on error IRQ · 5db9c740
      Esben Haabendal authored
      The channel status register value can be very helpful when debugging
      SDMA problems.
      Signed-off-by: default avatarEsben Haabendal <esben@geanix.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5db9c740
    • Pieter Jansen van Vuuren's avatar
      net/sched: remove block pointer from common offload structure · d6787147
      Pieter Jansen van Vuuren authored
      Based on feedback from Jiri avoid carrying a pointer to the tcf_block
      structure in the tc_cls_common_offload structure. Instead store
      a flag in driver private data which indicates if offloads apply
      to a shared block at block binding time.
      Suggested-by: default avatarJiri Pirko <jiri@mellanox.com>
      Signed-off-by: default avatarPieter Jansen van Vuuren <pieter.jansenvanvuuren@netronome.com>
      Reviewed-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
      Acked-by: default avatarJiri Pirko <jiri@mellanox.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      d6787147
    • David S. Miller's avatar
      Merge branch 'of_get_mac_address-ERR_PTR-fixes' · 2e7ae67b
      David S. Miller authored
      Petr Štetiar says:
      
      ====================
      of_get_mac_address ERR_PTR fixes
      
      this patch series is an attempt to fix the mess, I've somehow managed to
      introduce.
      
      First patch in this series is defacto v5 of the previous 05/10 patch in the
      series, but since the v4 of this 05/10 patch wasn't picked up by the
      patchwork for some unknown reason, this patch wasn't applied with the other
      9 patches in the series, so I'm resending it as a separate patch of this
      fixup series again.
      
      Second patch is a result of this rebase against net-next tree, where I was
      checking again all current users of of_get_mac_address and found out, that
      there's new one in DSA, so I've converted this user to the new ERR_PTR
      encoded error value as well.
      
      Third patch which was sent as v5 wasn't considered for merge, but I still
      think, that we need to check for possible NULL value, thus current IS_ERR
      check isn't sufficient and we need to use IS_ERR_OR_NULL instead.
      
      Fourth patch fixes warning reported by kbuild test robot.
      ====================
      Tested-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
      Tested-by: default avatarLeonard Crestez <leonard.crestez@nxp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      2e7ae67b
    • Petr Štetiar's avatar
      net: ethernet: support of_get_mac_address new ERR_PTR error · a51645f7
      Petr Štetiar authored
      There was NVMEM support added to of_get_mac_address, so it could now
      return ERR_PTR encoded error values, so we need to adjust all current
      users of of_get_mac_address to this new fact.
      
      While at it, remove superfluous is_valid_ether_addr as the MAC address
      returned from of_get_mac_address is always valid and checked by
      is_valid_ether_addr anyway.
      
      Fixes: d01f449c ("of_net: add NVMEM support to of_get_mac_address")
      Signed-off-by: default avatarPetr Štetiar <ynezz@true.cz>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a51645f7
    • Petr Štetiar's avatar
      net: usb: smsc: fix warning reported by kbuild test robot · 5503a688
      Petr Štetiar authored
      This patch fixes following warning reported by kbuild test robot:
      
       In function ‘memcpy’,
           inlined from ‘smsc75xx_init_mac_address’ at drivers/net/usb/smsc75xx.c:778:3,
           inlined from ‘smsc75xx_bind’ at drivers/net/usb/smsc75xx.c:1501:2:
       ./include/linux/string.h:355:9: warning: argument 2 null where non-null expected [-Wnonnull]
         return __builtin_memcpy(p, q, size);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
       drivers/net/usb/smsc75xx.c: In function ‘smsc75xx_bind’:
       ./include/linux/string.h:355:9: note: in a call to built-in function ‘__builtin_memcpy’
      
      I've replaced the offending memcpy with ether_addr_copy, because I'm
      100% sure, that of_get_mac_address can't return NULL as it returns valid
      pointer or ERR_PTR encoded value, nothing else.
      
      I'm hesitant to just change IS_ERR into IS_ERR_OR_NULL check, as this
      would make the warning disappear also, but it would be confusing to
      check for impossible return value just to make a compiler happy.
      
      Fixes: adfb3cb2 ("net: usb: support of_get_mac_address new ERR_PTR error")
      Reported-by: default avatarkbuild test robot <lkp@intel.com>
      Signed-off-by: default avatarPetr Štetiar <ynezz@true.cz>
      Reviewed-by: default avatarWoojung Huh <woojung.huh@microchip.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5503a688