1. 21 Mar, 2020 1 commit
  2. 20 Feb, 2020 27 commits
    • Paul E. McKenney's avatar
      rcu: Make nocb_gp_wait() double-check unexpected-callback warning · 3d05031a
      Paul E. McKenney authored
      Currently, nocb_gp_wait() unconditionally complains if there is a
      callback not already associated with a grace period.  This assumes that
      either there was no such callback initially on the one hand, or that
      the rcu_advance_cbs() function assigned all such callbacks to a grace
      period on the other.  However, in theory there are some situations that
      would prevent rcu_advance_cbs() from assigning all of the callbacks.
      
      This commit therefore checks for unassociated callbacks immediately after
      rcu_advance_cbs() returns, while the corresponding rcu_node structure's
      ->lock is still held.  If there are unassociated callbacks at that point,
      the subsequent WARN_ON_ONCE() is disabled.
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      3d05031a
    • Paul E. McKenney's avatar
      rcu: Tighten rcu_lockdep_assert_cblist_protected() check · 13817dd5
      Paul E. McKenney authored
      The ->nocb_lock lockdep assertion is currently guarded by cpu_online(),
      which is incorrect for no-CBs CPUs, whose callback lists must be
      protected by ->nocb_lock regardless of whether or not the corresponding
      CPU is online.  This situation could result in failure to detect bugs
      resulting from failing to hold ->nocb_lock for offline CPUs.
      
      This commit therefore removes the cpu_online() guard.
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      13817dd5
    • Paul E. McKenney's avatar
      rcu: Optimize and protect atomic_cmpxchg() loop · faa059c3
      Paul E. McKenney authored
      This commit reworks the atomic_cmpxchg() loop in rcu_eqs_special_set()
      to do only the initial read from the current CPU's rcu_data structure's
      ->dynticks field explicitly.  On subsequent passes, this value is instead
      retained from the failing atomic_cmpxchg() operation.
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      faa059c3
    • Jules Irenge's avatar
      rcu/nocb: Add missing annotation for rcu_nocb_bypass_unlock() · 92c0b889
      Jules Irenge authored
      Sparse reports warning at rcu_nocb_bypass_unlock()
      
      warning: context imbalance in rcu_nocb_bypass_unlock() - unexpected unlock
      
      The root cause is a missing annotation of rcu_nocb_bypass_unlock()
      which causes the warning.
      
      This commit therefore adds the missing __releases(&rdp->nocb_bypass_lock)
      annotation.
      Signed-off-by: default avatarJules Irenge <jbi.octave@gmail.com>
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      Acked-by: default avatarBoqun Feng <boqun.feng@gmail.com>
      92c0b889
    • Jules Irenge's avatar
      rcu: Add missing annotation for rcu_nocb_bypass_lock() · 9ced4548
      Jules Irenge authored
      Sparse reports warning at rcu_nocb_bypass_lock()
      
      |warning: context imbalance in rcu_nocb_bypass_lock() - wrong count at exit
      
      To fix this, this commit adds an __acquires(&rdp->nocb_bypass_lock).
      Given that rcu_nocb_bypass_lock() does actually call raw_spin_lock()
      when raw_spin_trylock() fails, this not only fixes the warning but also
      improves on the readability of the code.
      Signed-off-by: default avatarJules Irenge <jbi.octave@gmail.com>
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      9ced4548
    • Paul E. McKenney's avatar
      rcu: Don't flag non-starting GPs before GP kthread is running · 5648d659
      Paul E. McKenney authored
      Currently rcu_check_gp_start_stall() complains if a grace period takes
      too long to start, where "too long" is roughly one RCU CPU stall-warning
      interval.  This has worked well, but there are some debugging Kconfig
      options (such as CONFIG_EFI_PGT_DUMP=y) that can make booting take a
      very long time, so much so that the stall-warning interval has expired
      before RCU's grace-period kthread has even been spawned.
      
      This commit therefore resets the rcu_state.gp_req_activity and
      rcu_state.gp_activity timestamps just before the grace-period kthread
      is spawned, and modifies the checks and adds ordering to ensure that
      if rcu_check_gp_start_stall() sees that the grace-period kthread
      has been spawned, that it will also see the resets applied to the
      rcu_state.gp_req_activity and rcu_state.gp_activity timestamps.
      Reported-by: default avatarQian Cai <cai@lca.pw>
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      [ paulmck: Fix whitespace issues reported by Qian Cai. ]
      Tested-by: default avatarQian Cai <cai@lca.pw>
      [ paulmck: Simplify grace-period wakeup check per Steve Rostedt feedback. ]
      5648d659
    • Amol Grover's avatar
      rculist: Add brackets around cond argument in __list_check_rcu macro · 4dfd5cd8
      Amol Grover authored
      Passing a complex lockdep condition to __list_check_rcu results
      in false positive lockdep splat due to incorrect expression
      evaluation.
      
      For example, a lockdep check condition `cond1 || cond2` is
      evaluated as `!cond1 || cond2 && !rcu_read_lock_any_held()`
      which, according to operator precedence, evaluates to
      `!cond1 || (cond2 && !rcu_read_lock_any_held())`.
      This would result in a lockdep splat when cond1 is false
      and cond2 is true which is logically incorrect.
      Signed-off-by: default avatarAmol Grover <frextrite@gmail.com>
      Acked-by: default avatarJoel Fernandes (Google) <joel@joelfernandes.org>
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      4dfd5cd8
    • Paul E. McKenney's avatar
      rcu: Fix rcu_barrier_callback() race condition · aa24f937
      Paul E. McKenney authored
      The rcu_barrier_callback() function does an atomic_dec_and_test(), and
      if it is the last CPU to check in, does the required wakeup.  Either way,
      it does an event trace.  Unfortunately, this is susceptible to the
      following sequence of events:
      
      o	CPU 0 invokes rcu_barrier_callback(), but atomic_dec_and_test()
      	says that it is not last.  But at this point, CPU 0 is delayed,
      	perhaps due to an NMI, SMI, or vCPU preemption.
      
      o	CPU 1 invokes rcu_barrier_callback(), and atomic_dec_and_test()
      	says that it is last.  So CPU 1 traces completion and does
      	the needed wakeup.
      
      o	The awakened rcu_barrier() function does cleanup and releases
      	rcu_state.barrier_mutex.
      
      o	Another CPU now acquires rcu_state.barrier_mutex and starts
      	another round of rcu_barrier() processing, including updating
      	rcu_state.barrier_sequence.
      
      o	CPU 0 gets its act back together and does its tracing.  Except
      	that rcu_state.barrier_sequence has already been updated, so
      	its tracing is incorrect and probably quite confusing.
      	(Wait!  Why did this CPU check in twice for one rcu_barrier()
      	invocation???)
      
      This commit therefore causes rcu_barrier_callback() to take a
      snapshot of the value of rcu_state.barrier_sequence before invoking
      atomic_dec_and_test(), thus guaranteeing that the event-trace output
      is sensible, even if the timing of the event-trace output might still
      be confusing.  (Wait!  Why did the old rcu_barrier() complete before
      all of its CPUs checked in???)  But being that this is RCU, only so much
      confusion can reasonably be eliminated.
      
      This data race was reported by KCSAN.  Not appropriate for backporting
      due to failure being unlikely and due to the mild consequences of the
      failure, namely a confusing event trace.
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      aa24f937
    • Paul E. McKenney's avatar
      rcu: Add WRITE_ONCE() to rcu_state ->gp_start · 59881bcd
      Paul E. McKenney authored
      The rcu_state structure's ->gp_start field is read locklessly, so this
      commit adds the WRITE_ONCE() to an update in order to provide proper
      documentation and READ_ONCE()/WRITE_ONCE() pairing.
      
      This data race was reported by KCSAN.  Not appropriate for backporting
      due to failure being unlikely.
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      59881bcd
    • Paul E. McKenney's avatar
      rcu: Remove dead code from rcu_segcblist_insert_pend_cbs() · 57721fd1
      Paul E. McKenney authored
      The rcu_segcblist_insert_pend_cbs() function currently (partially)
      initializes the rcu_cblist that it pulls callbacks from.  However, all
      the resulting stores are dead because all callers pass in the address of
      an on-stack cblist that is not used afterwards.  This commit therefore
      removes this pointless initialization.
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      57721fd1
    • Eric Dumazet's avatar
      timer: Use hlist_unhashed_lockless() in timer_pending() · 90c01894
      Eric Dumazet authored
      The timer_pending() function is mostly used in lockless contexts, so
      Without proper annotations, KCSAN might detect a data-race [1].
      
      Using hlist_unhashed_lockless() instead of hand-coding it seems
      appropriate (as suggested by Paul E. McKenney).
      
      [1]
      
      BUG: KCSAN: data-race in del_timer / detach_if_pending
      
      write to 0xffff88808697d870 of 8 bytes by task 10 on cpu 0:
       __hlist_del include/linux/list.h:764 [inline]
       detach_timer kernel/time/timer.c:815 [inline]
       detach_if_pending+0xcd/0x2d0 kernel/time/timer.c:832
       try_to_del_timer_sync+0x60/0xb0 kernel/time/timer.c:1226
       del_timer_sync+0x6b/0xa0 kernel/time/timer.c:1365
       schedule_timeout+0x2d2/0x6e0 kernel/time/timer.c:1896
       rcu_gp_fqs_loop+0x37c/0x580 kernel/rcu/tree.c:1639
       rcu_gp_kthread+0x143/0x230 kernel/rcu/tree.c:1799
       kthread+0x1d4/0x200 drivers/block/aoe/aoecmd.c:1253
       ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352
      
      read to 0xffff88808697d870 of 8 bytes by task 12060 on cpu 1:
       del_timer+0x3b/0xb0 kernel/time/timer.c:1198
       sk_stop_timer+0x25/0x60 net/core/sock.c:2845
       inet_csk_clear_xmit_timers+0x69/0xa0 net/ipv4/inet_connection_sock.c:523
       tcp_clear_xmit_timers include/net/tcp.h:606 [inline]
       tcp_v4_destroy_sock+0xa3/0x3f0 net/ipv4/tcp_ipv4.c:2096
       inet_csk_destroy_sock+0xf4/0x250 net/ipv4/inet_connection_sock.c:836
       tcp_close+0x6f3/0x970 net/ipv4/tcp.c:2497
       inet_release+0x86/0x100 net/ipv4/af_inet.c:427
       __sock_release+0x85/0x160 net/socket.c:590
       sock_close+0x24/0x30 net/socket.c:1268
       __fput+0x1e1/0x520 fs/file_table.c:280
       ____fput+0x1f/0x30 fs/file_table.c:313
       task_work_run+0xf6/0x130 kernel/task_work.c:113
       tracehook_notify_resume include/linux/tracehook.h:188 [inline]
       exit_to_usermode_loop+0x2b4/0x2c0 arch/x86/entry/common.c:163
      
      Reported by Kernel Concurrency Sanitizer on:
      CPU: 1 PID: 12060 Comm: syz-executor.5 Not tainted 5.4.0-rc3+ #0
      Hardware name: Google Google Compute Engine/Google Compute Engine,
      Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      [ paulmck: Pulled in Eric's later amendments. ]
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      90c01894
    • Paul E. McKenney's avatar
      rcu: Add *_ONCE() to rcu_node ->boost_kthread_status · 3ca3b0e2
      Paul E. McKenney authored
      The rcu_node structure's ->boost_kthread_status field is accessed
      locklessly, so this commit causes all updates to use WRITE_ONCE() and
      all reads to use READ_ONCE().
      
      This data race was reported by KCSAN.  Not appropriate for backporting
      due to failure being unlikely.
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      3ca3b0e2
    • Paul E. McKenney's avatar
      rcu: Add *_ONCE() to rcu_data ->rcu_forced_tick · 2a2ae872
      Paul E. McKenney authored
      The rcu_data structure's ->rcu_forced_tick field is read locklessly, so
      this commit adds WRITE_ONCE() to all updates and READ_ONCE() to all
      lockless reads.
      
      This data race was reported by KCSAN.  Not appropriate for backporting
      due to failure being unlikely.
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      2a2ae872
    • Paul E. McKenney's avatar
      rcu: Add READ_ONCE() to rcu_data ->gpwrap · a5b89501
      Paul E. McKenney authored
      The rcu_data structure's ->gpwrap field is read locklessly, and so
      this commit adds the required READ_ONCE() to a pair of laods in order
      to avoid destructive compiler optimizations.
      
      This data race was reported by KCSAN.
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      a5b89501
    • SeongJae Park's avatar
      rcu: Fix typos in file-header comments · 65bb0dc4
      SeongJae Park authored
      Convert to plural and add a note that this is for Tree RCU.
      Signed-off-by: default avatarSeongJae Park <sjpark@amazon.de>
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      65bb0dc4
    • Paul E. McKenney's avatar
      rcu: Add *_ONCE() for grace-period progress indicators · 8ff37290
      Paul E. McKenney authored
      The various RCU structures' ->gp_seq, ->gp_seq_needed, ->gp_req_activity,
      and ->gp_activity fields are read locklessly, so they must be updated with
      WRITE_ONCE() and, when read locklessly, with READ_ONCE().  This commit makes
      these changes.
      
      This data race was reported by KCSAN.  Not appropriate for backporting
      due to failure being unlikely.
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      8ff37290
    • Paul E. McKenney's avatar
      rcu: Add READ_ONCE() to rcu_segcblist ->tails[] · bfeebe24
      Paul E. McKenney authored
      The rcu_segcblist structure's ->tails[] array entries are read
      locklessly, so this commit adds the READ_ONCE() to a load in order to
      avoid destructive compiler optimizations.
      
      This data race was reported by KCSAN.
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      bfeebe24
    • Paul E. McKenney's avatar
      locking/rtmutex: rcu: Add WRITE_ONCE() to rt_mutex ->owner · 0050c7b2
      Paul E. McKenney authored
      The rt_mutex structure's ->owner field is read locklessly, so this
      commit adds the WRITE_ONCE() to an update in order to provide proper
      documentation and READ_ONCE()/WRITE_ONCE() pairing.
      
      This data race was reported by KCSAN.  Not appropriate for backporting
      due to failure being unlikely.
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Will Deacon <will@kernel.org>
      0050c7b2
    • Paul E. McKenney's avatar
      rcu: Add WRITE_ONCE() to rcu_node ->qsmaskinitnext · 105abf82
      Paul E. McKenney authored
      The rcu_state structure's ->qsmaskinitnext field is read locklessly,
      so this commit adds the WRITE_ONCE() to an update in order to provide
      proper documentation and READ_ONCE()/WRITE_ONCE() pairing.
      
      This data race was reported by KCSAN.  Not appropriate for backporting
      due to failure being unlikely for systems not doing incessant CPU-hotplug
      operations.
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      105abf82
    • Paul E. McKenney's avatar
      rcu: Add WRITE_ONCE() to rcu_state ->gp_req_activity · 2906d215
      Paul E. McKenney authored
      The rcu_state structure's ->gp_req_activity field is read locklessly,
      so this commit adds the WRITE_ONCE() to an update in order to provide
      proper documentation and READ_ONCE()/WRITE_ONCE() pairing.
      
      This data race was reported by KCSAN.  Not appropriate for backporting
      due to failure being unlikely.
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      2906d215
    • Paul E. McKenney's avatar
      rcu: Add READ_ONCE() to rcu_node ->gp_seq · 0937d045
      Paul E. McKenney authored
      The rcu_node structure's ->gp_seq field is read locklessly, so this
      commit adds the READ_ONCE() to several loads in order to avoid
      destructive compiler optimizations.
      
      This data race was reported by KCSAN.  Not appropriate for backporting
      because this affects only tracing and warnings.
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      0937d045
    • Paul E. McKenney's avatar
      rcu: Add WRITE_ONCE to rcu_node ->exp_seq_rq store · b0c18c87
      Paul E. McKenney authored
      The rcu_node structure's ->exp_seq_rq field is read locklessly, so
      this commit adds the WRITE_ONCE() to a load in order to provide proper
      documentation and READ_ONCE()/WRITE_ONCE() pairing.
      
      This data race was reported by KCSAN.  Not appropriate for backporting
      due to failure being unlikely.
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      b0c18c87
    • Paul E. McKenney's avatar
      rcu: Add WRITE_ONCE() to rcu_node ->qsmask update · 7672d647
      Paul E. McKenney authored
      The rcu_node structure's ->qsmask field is read locklessly, so this
      commit adds the WRITE_ONCE() to an update in order to provide proper
      documentation and READ_ONCE()/WRITE_ONCE() pairing.
      
      This data race was reported by KCSAN.  Not appropriate for backporting
      due to failure being unlikely.
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      7672d647
    • Paul E. McKenney's avatar
      rcu: Provide debug symbols and line numbers in KCSAN runs · 8a7e8f51
      Paul E. McKenney authored
      This commit adds "-g -fno-omit-frame-pointer" to ease interpretation
      of KCSAN output, but only for CONFIG_KCSAN=y kerrnels.
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      8a7e8f51
    • Paul E. McKenney's avatar
      rcu: Fix exp_funnel_lock()/rcu_exp_wait_wake() datarace · 24bb9ecc
      Paul E. McKenney authored
      The rcu_node structure's ->exp_seq_rq field is accessed locklessly, so
      updates must use WRITE_ONCE().  This commit therefore adds the needed
      WRITE_ONCE() invocation where it was missed.
      
      This data race was reported by KCSAN.  Not appropriate for backporting
      due to failure being unlikely.
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      24bb9ecc
    • Paul E. McKenney's avatar
      rcu: Warn on for_each_leaf_node_cpu_mask() from non-leaf · 82dd8419
      Paul E. McKenney authored
      The for_each_leaf_node_cpu_mask() and for_each_leaf_node_possible_cpu()
      macros must be invoked only on leaf rcu_node structures.  Failing to
      abide by this restriction can result in infinite loops on systems with
      more than 64 CPUs (or for more than 32 CPUs on 32-bit systems).  This
      commit therefore adds WARN_ON_ONCE() calls to make misuse of these two
      macros easier to debug.
      Reported-by: default avatarQian Cai <cai@lca.pw>
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      82dd8419
    • Madhuparna Bhowmik's avatar
      nfs: Fix nfs_access_get_cached_rcu() sparse error · 9f01eb5d
      Madhuparna Bhowmik authored
      This patch fixes the following sparse error:
      fs/nfs/dir.c:2353:14: error: incompatible types in comparison expression (different address spaces):
      fs/nfs/dir.c:2353:14:    struct list_head [noderef] <asn:4> *
      fs/nfs/dir.c:2353:14:    struct list_head *
      Signed-off-by: default avatarMadhuparna Bhowmik <madhuparnabhowmik04@gmail.com>
      Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
      9f01eb5d
  3. 10 Feb, 2020 2 commits
    • Linus Torvalds's avatar
      Linux 5.6-rc1 · bb6d3fb3
      Linus Torvalds authored
      bb6d3fb3
    • Linus Torvalds's avatar
      Merge tag 'kbuild-v5.6-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild · 89a47dd1
      Linus Torvalds authored
      Pull more Kbuild updates from Masahiro Yamada:
      
       - fix randconfig to generate a sane .config
      
       - rename hostprogs-y / always to hostprogs / always-y, which are more
         natual syntax.
      
       - optimize scripts/kallsyms
      
       - fix yes2modconfig and mod2yesconfig
      
       - make multiple directory targets ('make foo/ bar/') work
      
      * tag 'kbuild-v5.6-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
        kbuild: make multiple directory targets work
        kconfig: Invalidate all symbols after changing to y or m.
        kallsyms: fix type of kallsyms_token_table[]
        scripts/kallsyms: change table to store (strcut sym_entry *)
        scripts/kallsyms: rename local variables in read_symbol()
        kbuild: rename hostprogs-y/always to hostprogs/always-y
        kbuild: fix the document to use extra-y for vmlinux.lds
        kconfig: fix broken dependency in randconfig-generated .config
      89a47dd1
  4. 09 Feb, 2020 10 commits
    • Linus Torvalds's avatar
      Merge tag 'zonefs-5.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/zonefs · 380a129e
      Linus Torvalds authored
      Pull new zonefs file system from Damien Le Moal:
       "Zonefs is a very simple file system exposing each zone of a zoned
        block device as a file.
      
        Unlike a regular file system with native zoned block device support
        (e.g. f2fs or the on-going btrfs effort), zonefs does not hide the
        sequential write constraint of zoned block devices to the user. As a
        result, zonefs is not a POSIX compliant file system. Its goal is to
        simplify the implementation of zoned block devices support in
        applications by replacing raw block device file accesses with a richer
        file based API, avoiding relying on direct block device file ioctls
        which may be more obscure to developers.
      
        One example of this approach is the implementation of LSM
        (log-structured merge) tree structures (such as used in RocksDB and
        LevelDB) on zoned block devices by allowing SSTables to be stored in a
        zone file similarly to a regular file system rather than as a range of
        sectors of a zoned device. The introduction of the higher level
        construct "one file is one zone" can help reducing the amount of
        changes needed in the application while at the same time allowing the
        use of zoned block devices with various programming languages other
        than C.
      
        Zonefs IO management implementation uses the new iomap generic code.
        Zonefs has been successfully tested using a functional test suite
        (available with zonefs userland format tool on github) and a prototype
        implementation of LevelDB on top of zonefs"
      
      * tag 'zonefs-5.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/zonefs:
        zonefs: Add documentation
        fs: New zonefs file system
      380a129e
    • Marc Zyngier's avatar
      irqchip/gic-v4.1: Avoid 64bit division for the sake of 32bit ARM · 490d332e
      Marc Zyngier authored
      In order to allow the GICv4 code to link properly on 32bit ARM,
      make sure we don't use 64bit divisions when it isn't strictly
      necessary.
      
      Fixes: 4e6437f1 ("irqchip/gic-v4.1: Ensure L2 vPE table is allocated at RD level")
      Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
      Cc: Zenghui Yu <yuzenghui@huawei.com>
      Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      490d332e
    • Linus Torvalds's avatar
      Merge tag '5.6-rc-smb3-plugfest-patches' of git://git.samba.org/sfrench/cifs-2.6 · d1ea35f4
      Linus Torvalds authored
      Pull cifs fixes from Steve French:
       "13 cifs/smb3 patches, most from testing at the SMB3 plugfest this week:
      
         - Important fix for multichannel and for modefromsid mounts.
      
         - Two reconnect fixes
      
         - Addition of SMB3 change notify support
      
         - Backup tools fix
      
         - A few additional minor debug improvements (tracepoints and
           additional logging found useful during testing this week)"
      
      * tag '5.6-rc-smb3-plugfest-patches' of git://git.samba.org/sfrench/cifs-2.6:
        smb3: Add defines for new information level, FileIdInformation
        smb3: print warning once if posix context returned on open
        smb3: add one more dynamic tracepoint missing from strict fsync path
        cifs: fix mode bits from dir listing when mounted with modefromsid
        cifs: fix channel signing
        cifs: add SMB3 change notification support
        cifs: make multichannel warning more visible
        cifs: fix soft mounts hanging in the reconnect code
        cifs: Add tracepoints for errors on flush or fsync
        cifs: log warning message (once) if out of disk space
        cifs: fail i/o on soft mounts if sessionsetup errors out
        smb3: fix problem with null cifs super block with previous patch
        SMB3: Backup intent flag missing from some more ops
      d1ea35f4
    • Linus Torvalds's avatar
      Merge branch 'work.vboxsf' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 5586c3c1
      Linus Torvalds authored
      Pull vboxfs from Al Viro:
       "This is the VirtualBox guest shared folder support by Hans de Goede,
        with fixups for fs_parse folded in to avoid bisection hazards from
        those API changes..."
      
      * 'work.vboxsf' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        fs: Add VirtualBox guest shared folder (vboxsf) support
      5586c3c1
    • Linus Torvalds's avatar
      Merge tag 'x86-urgent-2020-02-09' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 1a2a76c2
      Linus Torvalds authored
      Pull x86 fixes from Thomas Gleixner:
       "A set of fixes for X86:
      
         - Ensure that the PIT is set up when the local APIC is disable or
           configured in legacy mode. This is caused by an ordering issue
           introduced in the recent changes which skip PIT initialization when
           the TSC and APIC frequencies are already known.
      
         - Handle malformed SRAT tables during early ACPI parsing which caused
           an infinite loop anda boot hang.
      
         - Fix a long standing race in the affinity setting code which affects
           PCI devices with non-maskable MSI interrupts. The problem is caused
           by the non-atomic writes of the MSI address (destination APIC id)
           and data (vector) fields which the device uses to construct the MSI
           message. The non-atomic writes are mandated by PCI.
      
           If both fields change and the device raises an interrupt after
           writing address and before writing data, then the MSI block
           constructs a inconsistent message which causes interrupts to be
           lost and subsequent malfunction of the device.
      
           The fix is to redirect the interrupt to the new vector on the
           current CPU first and then switch it over to the new target CPU.
           This allows to observe an eventually raised interrupt in the
           transitional stage (old CPU, new vector) to be observed in the APIC
           IRR and retriggered on the new target CPU and the new vector.
      
           The potential spurious interrupts caused by this are harmless and
           can in the worst case expose a buggy driver (all handlers have to
           be able to deal with spurious interrupts as they can and do happen
           for various reasons).
      
         - Add the missing suspend/resume mechanism for the HYPERV hypercall
           page which prevents resume hibernation on HYPERV guests. This
           change got lost before the merge window.
      
         - Mask the IOAPIC before disabling the local APIC to prevent
           potentially stale IOAPIC remote IRR bits which cause stale
           interrupt lines after resume"
      
      * tag 'x86-urgent-2020-02-09' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/apic: Mask IOAPIC entries when disabling the local APIC
        x86/hyperv: Suspend/resume the hypercall page for hibernation
        x86/apic/msi: Plug non-maskable MSI affinity race
        x86/boot: Handle malformed SRAT tables during early ACPI parsing
        x86/timer: Don't skip PIT setup when APIC is disabled or in legacy mode
      1a2a76c2
    • Linus Torvalds's avatar
      Merge tag 'smp-urgent-2020-02-09' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · f4137760
      Linus Torvalds authored
      Pull SMP fixes from Thomas Gleixner:
       "Two fixes for the SMP related functionality:
      
         - Make the UP version of smp_call_function_single() match SMP
           semantics when called for a not available CPU. Instead of emitting
           a warning and assuming that the function call target is CPU0,
           return a proper error code like the SMP version does.
      
         - Remove a superfluous check in smp_call_function_many_cond()"
      
      * tag 'smp-urgent-2020-02-09' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        smp/up: Make smp_call_function_single() match SMP semantics
        smp: Remove superfluous cond_func check in smp_call_function_many_cond()
      f4137760
    • Linus Torvalds's avatar
      Merge tag 'perf-urgent-2020-02-09' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · ca21b9b3
      Linus Torvalds authored
      Pull perf fixes from Thomas Gleixner:
       "A set of fixes and improvements for the perf subsystem:
      
        Kernel fixes:
      
         - Install cgroup events to the correct CPU context to prevent a
           potential list double add
      
         - Prevent an integer underflow in the perf mlock accounting
      
         - Add a missing prototype for arch_perf_update_userpage()
      
        Tooling:
      
         - Add a missing unlock in the error path of maps__insert() in perf
           maps.
      
         - Fix the build with the latest libbfd
      
         - Fix the perf parser so it does not delete parse event terms, which
           caused a regression for using perf with the ARM CoreSight as the
           sink configuration was missing due to the deletion.
      
         - Fix the double free in the perf CPU map merging test case
      
         - Add the missing ustring support for the perf probe command"
      
      * tag 'perf-urgent-2020-02-09' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf maps: Add missing unlock to maps__insert() error case
        perf probe: Add ustring support for perf probe command
        perf: Make perf able to build with latest libbfd
        perf test: Fix test case Merge cpu map
        perf parse: Copy string to perf_evsel_config_term
        perf parse: Refactor 'struct perf_evsel_config_term'
        kernel/events: Add a missing prototype for arch_perf_update_userpage()
        perf/cgroups: Install cgroup events to correct cpuctx
        perf/core: Fix mlock accounting in perf_mmap()
      ca21b9b3
    • Linus Torvalds's avatar
      Merge tag 'timers-urgent-2020-02-09' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 2fbc23c7
      Linus Torvalds authored
      Pull timer fixes from Thomas Gleixner:
       "Two small fixes for the time(r) subsystem:
      
         - Handle a subtle race between the clocksource watchdog and a
           concurrent clocksource watchdog stop/start sequence correctly to
           prevent a timer double add bug.
      
         - Fix the file path for the core time namespace file"
      
      * tag 'timers-urgent-2020-02-09' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        clocksource: Prevent double add_timer_on() for watchdog_timer
        MAINTAINERS: Correct path to time namespace source file
      2fbc23c7
    • Linus Torvalds's avatar
      Merge tag 'irq-urgent-2020-02-09' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · f06bed87
      Linus Torvalds authored
      Pull interrupt fixes from Thomas Gleixner:
       "A set of fixes for the interrupt subsystem:
      
         - Provision only ACPI enabled redistributors on GICv3
      
         - Use the proper command colums when building the INVALL command for
           the GICv3-ITS
      
         - Ensure the allocation of the L2 vPE table for GICv4.1
      
         - Correct the GICv4.1 VPROBASER programming so it uses the proper
           size
      
         - A set of small GICv4.1 tidy up patches
      
         - Configuration cleanup for C-SKY interrupt chip
      
         - Clarify the function documentation for irq_set_wake() to document
           that the wakeup functionality is orthogonal to the irq
           disable/enable mechanism"
      
      * tag 'irq-urgent-2020-02-09' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        irqchip/gic-v3-its: Rename VPENDBASER/VPROPBASER accessors
        irqchip/gic-v3-its: Remove superfluous WARN_ON
        irqchip/gic-v4.1: Drop 'tmp' in inherit_vpe_l1_table_from_rd()
        irqchip/gic-v4.1: Ensure L2 vPE table is allocated at RD level
        irqchip/gic-v4.1: Set vpe_l1_base for all redistributors
        irqchip/gic-v4.1: Fix programming of GICR_VPROPBASER_4_1_SIZE
        genirq: Clarify that irq wake state is orthogonal to enable/disable
        irqchip/gic-v3-its: Reference to its_invall_cmd descriptor when building INVALL
        irqchip: Some Kconfig cleanup for C-SKY
        irqchip/gic-v3: Only provision redistributors that are enabled in ACPI
      f06bed87
    • Linus Torvalds's avatar
      Merge tag 'efi-urgent-2020-02-09' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 6ff90aa2
      Linus Torvalds authored
      Pull EFI fix from Thomas Gleixner:
       "A single fix for a EFI boot regression on X86 which was caused by the
        recent rework of the EFI memory map parsing. On systems with invalid
        memmap entries the cleanup function uses an value which cannot be
        relied on in this stage. Use the actual EFI memmap entry instead"
      
      * tag 'efi-urgent-2020-02-09' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        efi/x86: Fix boot regression on systems with invalid memmap entries
      6ff90aa2