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
| ||
|
Message-Id: <20220208184208.79303-2-namhyung@kernel.org> Date: Tue, 8 Feb 2022 10:41:57 -0800 From: Namhyung Kim <namhyung@...nel.org> To: Peter Zijlstra <peterz@...radead.org>, Ingo Molnar <mingo@...nel.org>, Will Deacon <will@...nel.org>, Waiman Long <longman@...hat.com>, Boqun Feng <boqun.feng@...il.com> Cc: LKML <linux-kernel@...r.kernel.org>, Thomas Gleixner <tglx@...utronix.de>, Steven Rostedt <rostedt@...dmis.org>, Byungchul Park <byungchul.park@....com>, "Paul E. McKenney" <paul.mckenney@...aro.org>, Mathieu Desnoyers <mathieu.desnoyers@...icios.com>, Radoslaw Burny <rburny@...gle.com> Subject: [PATCH 01/12] locking: Pass correct outer wait type info In lockdep_init_map_wait(), it didn't pass the given outer argument to lockdep_init_map_type and use LD_WAIT_INV unconditionally. It seems like a copy-and-paste bug, let's fix it. Signed-off-by: Namhyung Kim <namhyung@...nel.org> --- include/linux/lockdep.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h index 467b94257105..0cc2b338a006 100644 --- a/include/linux/lockdep.h +++ b/include/linux/lockdep.h @@ -192,7 +192,7 @@ static inline void lockdep_init_map_waits(struct lockdep_map *lock, const char *name, struct lock_class_key *key, int subclass, u8 inner, u8 outer) { - lockdep_init_map_type(lock, name, key, subclass, inner, LD_WAIT_INV, LD_LOCK_NORMAL); + lockdep_init_map_type(lock, name, key, subclass, inner, outer, LD_LOCK_NORMAL); } static inline void -- 2.35.0.263.gb82422642f-goog
Powered by blists - more mailing lists