]> git.baikalelectronics.ru Git - kernel.git/commit
locking/lockdep: Improve noinstr vs errors
authorPeter Zijlstra <peterz@infradead.org>
Mon, 21 Jun 2021 11:12:38 +0000 (13:12 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 22 Jun 2021 11:56:43 +0000 (13:56 +0200)
commitc049a819b47e53bf6bbb6ba09c9c159bc2dde275
tree9f36b8c797c3f312f08e12634ec2cdbafb6f0a95
parenteeee55fa0a00b21f9d9f06f39c69c3ef624c9bd7
locking/lockdep: Improve noinstr vs errors

Better handle the failure paths.

  vmlinux.o: warning: objtool: debug_locks_off()+0x23: call to console_verbose() leaves .noinstr.text section
  vmlinux.o: warning: objtool: debug_locks_off()+0x19: call to __kasan_check_write() leaves .noinstr.text section

  debug_locks_off+0x19/0x40:
  instrument_atomic_write at include/linux/instrumented.h:86
  (inlined by) __debug_locks_off at include/linux/debug_locks.h:17
  (inlined by) debug_locks_off at lib/debug_locks.c:41

Fixes: 5241f6e6c463 ("lockdep: __always_inline more for noinstr")
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210621120120.784404944@infradead.org
include/linux/debug_locks.h
kernel/locking/lockdep.c
lib/debug_locks.c