lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20221220012906.GA3102709@paulmck-ThinkPad-P17-Gen-1>
Date:   Mon, 19 Dec 2022 17:29:06 -0800
From:   "Paul E. McKenney" <paulmck@...nel.org>
To:     torvalds@...ux-foundation.org
Cc:     mingo@...nel.org, linux-kernel@...r.kernel.org, tglx@...utronix.de,
        rcu@...r.kernel.org, kernel-team@...com, rostedt@...dmis.org
Subject: [GIT PULL] Avoid synchronize_rcu() false positives in semi-early boot

Hello, Linus,

Another merge window, another fix for another regression noted by Steve
Rostedt.  In the true spirit of closing the barn door after the horse
has escaped, the following commit is queued on -rcu to detect this sort
of bug in the future:

f13c14392ebc ("rcu: Test synchronous RCU grace periods at the end of rcu_init()")

The fix simply avoids consulting lockdep about interrupts-disabled
state before the scheduler has been initialized.  After all, before that
time, it is perfectly legal to invoke synchronize_rcu() with interrupts
disabled.

The following changes since commit 31d8aaa87fcef1be5932f3813ea369e21bd3b11d:

  rcu: Keep synchronize_rcu() from enabling irqs in early boot (2022-10-20 15:34:49 -0700)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git tags/rcu-urgent.2022.12.17a

for you to fetch changes up to 3f6c3d29df58f391cf487b50a24ebd24045ba569:

  rcu: Don't assert interrupts enabled too early in boot (2022-12-17 16:12:20 -0800)

----------------------------------------------------------------
Urgent RCU pull request for v6.2

This commit fixes a lockdep false positive in synchronize_rcu() that
can otherwise occur during early boot.  Theis fix simply avoids invoking
lockdep if the scheduler has not yet been initialized, that is, during
that portion of boot when interrupts are disabled.

----------------------------------------------------------------
Paul E. McKenney (1):
      rcu: Don't assert interrupts enabled too early in boot

 kernel/rcu/tree.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ