Skip to content
  1. Oct 27, 2020
  2. Oct 26, 2020
    • Linus Torvalds's avatar
      Linux 5.10-rc1 · 3650b228
      Linus Torvalds authored
      3650b228
    • Joe Perches's avatar
      treewide: Convert macro and uses of __section(foo) to __section("foo") · 33def849
      Joe Perches authored
      
      
      Use a more generic form for __section that requires quotes to avoid
      complications with clang and gcc differences.
      
      Remove the quote operator # from compiler_attributes.h __section macro.
      
      Convert all unquoted __section(foo) uses to quoted __section("foo").
      Also convert __attribute__((section("foo"))) uses to __section("foo")
      even if the __attribute__ has multiple list entry forms.
      
      Conversion done using the script at:
      
          https://lore.kernel.org/lkml/75393e5ddc272dc7403de74d645e6c6e0f4e70eb.camel@perches.com/2-convert_section.pl
      
      Signed-off-by: default avatarJoe Perches <joe@perches.com>
      Reviewed-by: default avatarNick Desaulniers <ndesaulniers@gooogle.com>
      Reviewed-by: default avatarMiguel Ojeda <ojeda@kernel.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      33def849
    • Rasmus Villemoes's avatar
      kernel/sys.c: fix prototype of prctl_get_tid_address() · 986b9eac
      Rasmus Villemoes authored
      
      
      tid_addr is not a "pointer to (pointer to int in userspace)"; it is in
      fact a "pointer to (pointer to int in userspace) in userspace".  So
      sparse rightfully complains about passing a kernel pointer to
      put_user().
      
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Signed-off-by: default avatarRasmus Villemoes <linux@rasmusvillemoes.dk>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      986b9eac
    • Eric Biggers's avatar
      mm: remove kzfree() compatibility definition · 23224e45
      Eric Biggers authored
      Commit 453431a5
      
       ("mm, treewide: rename kzfree() to
      kfree_sensitive()") renamed kzfree() to kfree_sensitive(),
      but it left a compatibility definition of kzfree() to avoid
      being too disruptive.
      
      Since then a few more instances of kzfree() have slipped in.
      
      Just get rid of them and remove the compatibility definition
      once and for all.
      
      Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      23224e45
    • Joe Perches's avatar
      checkpatch: enable GIT_DIR environment use to set git repository location · 0f7f635b
      Joe Perches authored
      
      
      If set, use the environment variable GIT_DIR to change the default .git
      location of the kernel git tree.
      
      If GIT_DIR is unset, keep using the current ".git" default.
      
      Link: https://lkml.kernel.org/r/c5e23b45562373d632fccb8bc04e563abba4dd1d.camel@perches.com
      Signed-off-by: default avatarJoe Perches <joe@perches.com>
      Tested-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      0f7f635b
    • Linus Torvalds's avatar
      Merge tag 'timers-urgent-2020-10-25' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 672f8871
      Linus Torvalds authored
      Pull timer fixes from Thomas Gleixner:
       "A time namespace fix and a matching selftest. The futex absolute
        timeouts which are based on CLOCK_MONOTONIC require time namespace
        corrected. This was missed in the original time namesapce support"
      
      * tag 'timers-urgent-2020-10-25' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        selftests/timens: Add a test for futex()
        futex: Adjust absolute futex timeouts with per time namespace offset
      672f8871
    • Linus Torvalds's avatar
      Merge tag 'sched-urgent-2020-10-25' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 87702a33
      Linus Torvalds authored
      Pull scheduler fixes from Thomas Gleixner:
       "Two scheduler fixes:
      
         - A trivial build fix for sched_feat() to compile correctly with
           CONFIG_JUMP_LABEL=n
      
         - Replace a zero lenght array with a flexible array"
      
      * tag 'sched-urgent-2020-10-25' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/features: Fix !CONFIG_JUMP_LABEL case
        sched: Replace zero-length array with flexible-array
      87702a33
    • Linus Torvalds's avatar
      Merge tag 'perf-urgent-2020-10-25' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · a3d1b312
      Linus Torvalds authored
      Pull perf fix from Thomas Gleixner:
       "A single fix to compute the field offset of the SNOOPX bit in the data
        source bitmask of perf events correctly"
      
      * tag 'perf-urgent-2020-10-25' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf: correct SNOOPX field offset
      a3d1b312
    • Linus Torvalds's avatar
      Merge tag 'locking-urgent-2020-10-25' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 1c84550f
      Linus Torvalds authored
      Pull locking fix from Thomas Gleixner:
       "Just a trivial fix for kernel-doc warnings"
      
      * tag 'locking-urgent-2020-10-25' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        locking/seqlocks: Fix kernel-doc warnings
      1c84550f
    • Linus Torvalds's avatar
      Merge tag 'ntb-5.10' of git://github.com/jonmason/ntb · e5acf0ed
      Linus Torvalds authored
      Pull NTB fixes from Jon Mason.
      
      * tag 'ntb-5.10' of git://github.com/jonmason/ntb:
        NTB: Use struct_size() helper in devm_kzalloc()
        ntb: intel: Fix memleak in intel_ntb_pci_probe
        NTB: hw: amd: fix an issue about leak system resources
      e5acf0ed
    • Linus Torvalds's avatar
      Merge branch 'i2c/for-5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · 0746c4a9
      Linus Torvalds authored
      Pull i2c fix from Wolfram Sang:
       "Regression fix for rc1 and stable kernels as well"
      
      * 'i2c/for-5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
        i2c: core: Restore acpi_walk_dep_device_list() getting called after registering the ACPI i2c devs
      0746c4a9
    • Linus Torvalds's avatar
      Merge tag '5.10-rc-smb3-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6 · c10037f8
      Linus Torvalds authored
      Pull more cifs updates from Steve French:
       "Add support for stat of various special file types (WSL reparse points
        for char, block, fifo)"
      
      * tag '5.10-rc-smb3-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6:
        cifs: update internal module version number
        smb3: add some missing definitions from MS-FSCC
        smb3: remove two unused variables
        smb3: add support for stat of WSL reparse points for special file types
      c10037f8
    • Linus Torvalds's avatar
      Merge branch 'parisc-5.10-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux · f9c25d98
      Linus Torvalds authored
      Pull more parisc updates from Helge Deller:
      
       - During this merge window O_NONBLOCK was changed to become 000200000,
         but we missed that the syscalls timerfd_create(), signalfd4(),
         eventfd2(), pipe2(), inotify_init1() and userfaultfd() do a strict
         bit-wise check of the flags parameter.
      
         To provide backward compatibility with existing userspace we
         introduce parisc specific wrappers for those syscalls which filter
         out the old O_NONBLOCK value and replaces it with the new one.
      
       - Prevent HIL bus driver to get stuck when keyboard or mouse isn't
         attached
      
       - Improve error return codes when setting rtc time
      
       - Minor documentation fix in pata_ns87415.c
      
      * 'parisc-5.10-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
        ata: pata_ns87415.c: Document support on parisc with superio chip
        parisc: Add wrapper syscalls to fix O_NONBLOCK flag usage
        hil/parisc: Disable HIL driver when it gets stuck
        parisc: Improve error return codes when setting rtc time
      f9c25d98
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.10b-rc1c-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · bd6aabc7
      Linus Torvalds authored
      Pull more xen updates from Juergen Gross:
      
       - a series for the Xen pv block drivers adding module parameters for
         better control of resource usge
      
       - a cleanup series for the Xen event driver
      
      * tag 'for-linus-5.10b-rc1c-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        Documentation: add xen.fifo_events kernel parameter description
        xen/events: unmask a fifo event channel only if it was masked
        xen/events: only register debug interrupt for 2-level events
        xen/events: make struct irq_info private to events_base.c
        xen: remove no longer used functions
        xen-blkfront: Apply changed parameter name to the document
        xen-blkfront: add a parameter for disabling of persistent grants
        xen-blkback: add a parameter for disabling of persistent grants
      bd6aabc7
    • Linus Torvalds's avatar
      Merge tag 'safesetid-5.10' of git://github.com/micah-morton/linux · 81ecf91e
      Linus Torvalds authored
      Pull SafeSetID updates from Micah Morton:
       "The changes are mostly contained to within the SafeSetID LSM, with the
        exception of a few 1-line changes to change some ns_capable() calls to
        ns_capable_setid() -- causing a flag (CAP_OPT_INSETID) to be set that
        is examined by SafeSetID code and nothing else in the kernel.
      
        The changes to SafeSetID internally allow for setting up GID
        transition security policies, as already existed for UIDs"
      
      * tag 'safesetid-5.10' of git://github.com/micah-morton/linux:
        LSM: SafeSetID: Fix warnings reported by test bot
        LSM: SafeSetID: Add GID security policy handling
        LSM: Signal to SafeSetID when setting group IDs
      81ecf91e
    • Linus Torvalds's avatar
      Merge tag '20201024-v4-5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/wtarreau/prandom · 91f28da8
      Linus Torvalds authored
      Pull random32 updates from Willy Tarreau:
       "Make prandom_u32() less predictable.
      
        This is the cleanup of the latest series of prandom_u32
        experimentations consisting in using SipHash instead of Tausworthe to
        produce the randoms used by the network stack.
      
        The changes to the files were kept minimal, and the controversial
        commit that used to take noise from the fast_pool (f227e3ec) was
        reverted. Instead, a dedicated "net_rand_noise" per_cpu variable is
        fed from various sources of activities (networking, scheduling) to
        perturb the SipHash state using fast, non-trivially predictable data,
        instead of keeping it fully deterministic. The goal is essentially to
        make any occasional memory leakage or brute-force attempt useless.
      
        The resulting code was verified to be very slightly faster on x86_64
        than what is was with the controversial commit above, though this
        remains barely above measurement noise. It was also tested on i386 and
        arm, and build- tested only on arm64"
      
      Link: https://lore.kernel.org/netdev/20200808152628.GA27941@SDF.ORG/
      
      * tag '20201024-v4-5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/wtarreau/prandom:
        random32: add a selftest for the prandom32 code
        random32: add noise from network and scheduling activity
        random32: make prandom_u32() output unpredictable
      91f28da8
  3. Oct 25, 2020
    • Hans de Goede's avatar
      i2c: core: Restore acpi_walk_dep_device_list() getting called after registering the ACPI i2c devs · 8058d699
      Hans de Goede authored
      Commit 21653a41 ("i2c: core: Call i2c_acpi_install_space_handler()
      before i2c_acpi_register_devices()")'s intention was to only move the
      acpi_install_address_space_handler() call to the point before where
      the ACPI declared i2c-children of the adapter where instantiated by
      i2c_acpi_register_devices().
      
      But i2c_acpi_install_space_handler() had a call to
      acpi_walk_dep_device_list() hidden (that is I missed it) at the end
      of it, so as an unwanted side-effect now acpi_walk_dep_device_list()
      was also being called before i2c_acpi_register_devices().
      
      Move the acpi_walk_dep_device_list() call to the end of
      i2c_acpi_register_devices(), so that it is once again called *after*
      the i2c_client-s hanging of the adapter have been created.
      
      This fixes the Microsoft Surface Go 2 hanging at boot.
      
      Fixes: 21653a41
      
       ("i2c: core: Call i2c_acpi_install_space_handler() before i2c_acpi_register_devices()")
      Link: https://bugzilla.kernel.org/show_bug.cgi?id=209627
      Reported-by: default avatarRainer Finke <rainer@finke.cc>
      Reported-by: default avatarKieran Bingham <kieran.bingham@ideasonboard.com>
      Suggested-by: default avatarMaximilian Luz <luzmaximilian@gmail.com>
      Tested-by: default avatarKieran Bingham <kieran.bingham@ideasonboard.com>
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
      8058d699
    • Linus Torvalds's avatar
      Merge tag 'block-5.10-2020-10-24' of git://git.kernel.dk/linux-block · d7691390
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
      
       - NVMe pull request from Christoph
           - rdma error handling fixes (Chao Leng)
           - fc error handling and reconnect fixes (James Smart)
           - fix the qid displace when tracing ioctl command (Keith Busch)
           - don't use BLK_MQ_REQ_NOWAIT for passthru (Chaitanya Kulkarni)
           - fix MTDT for passthru (Logan Gunthorpe)
           - blacklist Write Same on more devices (Kai-Heng Feng)
           - fix an uninitialized work struct (zhenwei pi)"
      
       - lightnvm out-of-bounds fix (Colin)
      
       - SG allocation leak fix (Doug)
      
       - rnbd fixes (Gioh, Guoqing, Jack)
      
       - zone error translation fixes (Keith)
      
       - kerneldoc markup fix (Mauro)
      
       - zram lockdep fix (Peter)
      
       - Kill unused io_context members (Yufen)
      
       - NUMA memory allocation cleanup (Xianting)
      
       - NBD config wakeup fix (Xiubo)
      
      * tag 'block-5.10-2020-10-24' of git://git.kernel.dk/linux-block: (27 commits)
        block: blk-mq: fix a kernel-doc markup
        nvme-fc: shorten r...
      d7691390
    • Linus Torvalds's avatar
      Merge tag 'io_uring-5.10-2020-10-24' of git://git.kernel.dk/linux-block · af004187
      Linus Torvalds authored
      Pull io_uring fixes from Jens Axboe:
      
       - fsize was missed in previous unification of work flags
      
       - Few fixes cleaning up the flags unification creds cases (Pavel)
      
       - Fix NUMA affinities for completely unplugged/replugged node for io-wq
      
       - Two fallout fixes from the set_fs changes. One local to io_uring, one
         for the splice entry point that io_uring uses.
      
       - Linked timeout fixes (Pavel)
      
       - Removal of ->flush() ->files work-around that we don't need anymore
         with referenced files (Pavel)
      
       - Various cleanups (Pavel)
      
      * tag 'io_uring-5.10-2020-10-24' of git://git.kernel.dk/linux-block:
        splice: change exported internal do_splice() helper to take kernel offset
        io_uring: make loop_rw_iter() use original user supplied pointers
        io_uring: remove req cancel in ->flush()
        io-wq: re-set NUMA node affinities if CPUs come online
        io_uring: don't reuse linked_timeout
        io_uring: unify fsize with def->work_flags
        io_uring: fix racy REQ_F_LINK_TIMEOUT clearing
        io_uring: do poll's hash_node init in common code
        io_uring: inline io_poll_task_handler()
        io_uring: remove extra ->file check in poll prep
        io_uring: make cached_cq_overflow non atomic_t
        io_uring: inline io_fail_links()
        io_uring: kill ref get/drop in personality init
        io_uring: flags-based creds init in queue
      af004187
    • Linus Torvalds's avatar
      Merge tag 'libata-5.10-2020-10-24' of git://git.kernel.dk/linux-block · cb6b2897
      Linus Torvalds authored
      Pull libata fixes from Jens Axboe:
       "Two minor libata fixes:
      
         - Fix a DMA boundary mask regression for sata_rcar (Geert)
      
         - kerneldoc markup fix (Mauro)"
      
      * tag 'libata-5.10-2020-10-24' of git://git.kernel.dk/linux-block:
        ata: fix some kernel-doc markups
        ata: sata_rcar: Fix DMA boundary mask
      cb6b2897
    • Linus Torvalds's avatar
      Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 0eac1102
      Linus Torvalds authored
      Pull misc vfs updates from Al Viro:
       "Assorted stuff all over the place (the largest group here is
        Christoph's stat cleanups)"
      
      * 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        fs: remove KSTAT_QUERY_FLAGS
        fs: remove vfs_stat_set_lookup_flags
        fs: move vfs_fstatat out of line
        fs: implement vfs_stat and vfs_lstat in terms of vfs_fstatat
        fs: remove vfs_statx_fd
        fs: omfs: use kmemdup() rather than kmalloc+memcpy
        [PATCH] reduce boilerplate in fsid handling
        fs: Remove duplicated flag O_NDELAY occurring twice in VALID_OPEN_FLAGS
        selftests: mount: add nosymfollow tests
        Add a "nosymfollow" mount option.
      0eac1102
    • Linus Torvalds's avatar
      Merge tag 'dma-mapping-5.10-1' of git://git.infradead.org/users/hch/dma-mapping · 1b307ac8
      Linus Torvalds authored
      Pull dma-mapping fixes from Christoph Hellwig:
      
       - document the new dma_{alloc,free}_pages() API
      
       - two fixups for the dma-mapping.h split
      
      * tag 'dma-mapping-5.10-1' of git://git.infradead.org/users/hch/dma-mapping:
        dma-mapping: document dma_{alloc,free}_pages
        dma-mapping: move more functions to dma-map-ops.h
        ARM/sa1111: add a missing include of dma-map-ops.h
      1b307ac8
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 9bf8d8bc
      Linus Torvalds authored
      Pull KVM fixes from Paolo Bonzini:
       "Two fixes for this merge window, and an unrelated bugfix for a host
        hang"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
        KVM: ioapic: break infinite recursion on lazy EOI
        KVM: vmx: rename pi_init to avoid conflict with paride
        KVM: x86/mmu: Avoid modulo operator on 64-bit value to fix i386 build
      9bf8d8bc
    • Linus Torvalds's avatar
      Merge tag 'x86_seves_fixes_for_v5.10_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · c51ae124
      Linus Torvalds authored
      Pull x86 SEV-ES fixes from Borislav Petkov:
       "Three fixes to SEV-ES to correct setting up the new early pagetable on
        5-level paging machines, to always map boot_params and the kernel
        cmdline, and disable stack protector for ../compressed/head{32,64}.c.
        (Arvind Sankar)"
      
      * tag 'x86_seves_fixes_for_v5.10_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/boot/64: Explicitly map boot_params and command line
        x86/head/64: Disable stack protection for head$(BITS).o
        x86/boot/64: Initialize 5-level paging variables earlier
      c51ae124
    • Willy Tarreau's avatar
      random32: add a selftest for the prandom32 code · c6e169bc
      Willy Tarreau authored
      
      
      Given that this code is new, let's add a selftest for it as well.
      It doesn't rely on fixed sets, instead it picks 1024 numbers and
      verifies that they're not more correlated than desired.
      
      Link: https://lore.kernel.org/netdev/20200808152628.GA27941@SDF.ORG/
      Cc: George Spelvin <lkml@sdf.org>
      Cc: Amit Klein <aksecurity@gmail.com>
      Cc: Eric Dumazet <edumazet@google.com>
      Cc: "Jason A. Donenfeld" <Jason@zx2c4.com>
      Cc: Andy Lutomirski <luto@kernel.org>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: tytso@mit.edu
      Cc: Florian Westphal <fw@strlen.de>
      Cc: Marc Plumb <lkml.mplumb@gmail.com>
      Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>
      c6e169bc