1. 31 Oct, 2019 4 commits
  2. 24 Oct, 2019 1 commit
  3. 22 Oct, 2019 1 commit
  4. 21 Oct, 2019 1 commit
  5. 17 Oct, 2019 1 commit
  6. 08 Oct, 2019 1 commit
  7. 04 Oct, 2019 2 commits
  8. 03 Oct, 2019 3 commits
  9. 02 Oct, 2019 5 commits
    • Linus Torvalds's avatar
      timer-of: don't use conditional expression with mixed 'void' types · 0f1a7b3f
      Linus Torvalds authored
      Randy Dunlap reports on the sparse list that sparse warns about this
      expression:
      
              of_irq->percpu ? free_percpu_irq(of_irq->irq, clkevt) :
                      free_irq(of_irq->irq, clkevt);
      
      and honestly, sparse is correct to warn.  The return type of
      free_percpu_irq() is 'void', while free_irq() returns a 'const void *'
      that is the devname argument passed in to the request_irq().
      
      You can't mix a void type with a non-void types in a conditional
      expression according to the C standard.  It so happens that gcc seems to
      accept it - and the resulting type of the expression is void - but
      there's really no reason for the kernel to have this kind of
      non-standard expression with no real upside.
      
      The natural way to write that expression is with an if-statement:
      
              if (of_irq->percpu)
                      free_percpu_irq(of_irq->irq, clkevt);
              else
                      free_irq(of_irq->irq, clkevt);
      
      which is more legible anyway.
      
      I'm not sure why that timer-of code seems to have this odd pattern.  It
      does the same at allocation time, but at least there the types match,
      and it makes sense as an expression.
      Reported-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      0f1a7b3f
    • Linus Torvalds's avatar
      Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 5021b918
      Linus Torvalds authored
      Pull timer fix from Ingo Molnar:
       "Fix a broadcast-timer handling race that can result in spuriously and
        indefinitely delayed hrtimers and even RCU stalls if the system is
        otherwise quiet"
      
      * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        tick: broadcast-hrtimer: Fix a race in bc_set_next
      5021b918
    • Linus Torvalds's avatar
      Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 714366f8
      Linus Torvalds authored
      Pull membarrier fix from Ingo Molnar:
       "Fix broken locking within membarrier_private_expedited()"
      
      * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        membarrier: Fix RCU locking bug caused by faulty merge
      714366f8
    • Linus Torvalds's avatar
      Merge tag 'erofs-for-5.4-rc2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs · 65aa35c9
      Linus Torvalds authored
      Pull erofs fixes from Gao Xiang:
       "Three patches to address regressions due to recent cleanups, mainly
        found by stress test on latest mainline kernel (no more regression out
        compared with older kernels for more than a week)
      
        One additional patch updates sub-entries in MAINTAINERS.
      
        Summary:
      
         - Fix error handling in erofs_read_superblock
      
         - Fix locking in erofs_get_meta_page
      
         - Fix inplace behavior due to decompression frontend cleanup
      
         - Update sub-entries in MAINTAINERS in order to better blame"
      
      * tag 'erofs-for-5.4-rc2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs:
        erofs: fix mis-inplace determination related with noio chain
        erofs: fix erofs_get_meta_page locking due to a cleanup
        MAINTAINERS: erofs: complete sub-entries for erofs
        erofs: fix return value check in erofs_read_superblock()
      65aa35c9
    • Borislav Petkov's avatar
      char/random: Add a newline at the end of the file · 3fd57e7a
      Borislav Petkov authored
      On Tue, Oct 01, 2019 at 10:14:40AM -0700, Linus Torvalds wrote:
      > The previous state of the file didn't have that 0xa at the end, so you get that
      >
      >
      >   -EXPORT_SYMBOL_GPL(add_bootloader_randomness);
      >   \ No newline at end of file
      >   +EXPORT_SYMBOL_GPL(add_bootloader_randomness);
      >
      > which is "the '-' line doesn't have a newline, the '+' line does" marker.
      
      Aaha, that makes total sense, thanks for explaining. Oh well, let's fix
      it then so that people don't scratch heads like me.
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      3fd57e7a
  10. 01 Oct, 2019 1 commit
    • Peter Zijlstra's avatar
      membarrier: Fix RCU locking bug caused by faulty merge · 73956fc0
      Peter Zijlstra authored
      The following commit:
      
        227a4aad ("sched/membarrier: Fix p->mm->membarrier_state racy load")
      
      got fat fingered by me when merging it with other patches. It meant to move
      the RCU section out of the for loop but ended up doing it partially, leaving
      a superfluous rcu_read_lock() inside, causing havok.
      Reported-by: default avatarIngo Molnar <mingo@kernel.org>
      Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Chris Metcalf <cmetcalf@ezchip.com>
      Cc: Christoph Lameter <cl@linux.com>
      Cc: Eric W. Biederman <ebiederm@xmission.com>
      Cc: Kirill Tkhai <tkhai@yandex.ru>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
      Cc: Mike Galbraith <efault@gmx.de>
      Cc: Oleg Nesterov <oleg@redhat.com>
      Cc: Paul E. McKenney <paulmck@linux.ibm.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Russell King - ARM Linux admin <linux@armlinux.org.uk>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: linux-tip-commits@vger.kernel.org
      Fixes: 227a4aad ("sched/membarrier: Fix p->mm->membarrier_state racy load")
      Link: https://lkml.kernel.org/r/20191001085033.GP4519@hirez.programming.kicks-ass.netSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
      73956fc0
  11. 30 Sep, 2019 20 commits