linux-stable/include
Peter Zijlstra 3b5f6045f9 x86/extable: Fix ex_handler_msr() print condition
[ Upstream commit a1a5482a2c ]

On Fri, Jun 17, 2022 at 02:08:52PM +0300, Stephane Eranian wrote:
> Some changes to the way invalid MSR accesses are reported by the
> kernel is causing some problems with messages printed on the
> console.
>
> We have seen several cases of ex_handler_msr() printing invalid MSR
> accesses once but the callstack multiple times causing confusion on
> the console.

> The problem here is that another earlier commit (5.13):
>
> a358f40600 ("once: implement DO_ONCE_LITE for non-fast-path "do once" functionality")
>
> Modifies all the pr_*_once() calls to always return true claiming
> that no caller is ever checking the return value of the functions.
>
> This is why we are seeing the callstack printed without the
> associated printk() msg.

Extract the ONCE_IF(cond) part into __ONCE_LTE_IF() and use that to
implement DO_ONCE_LITE_IF() and fix the extable code.

Fixes: a358f40600 ("once: implement DO_ONCE_LITE for non-fast-path "do once" functionality")
Reported-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Stephane Eranian <eranian@google.com>
Link: https://lkml.kernel.org/r/YqyVFsbviKjVGGZ9@worktop.programming.kicks-ass.net
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-17 14:40:41 +02:00
..
acpi ACPI: CPPC: Don't require _OSC if X86_FEATURE_CPPC is supported 2022-07-12 16:42:23 +02:00
asm-generic asm-generic: remove a broken and needless ifdef conditional 2022-08-03 12:05:17 +02:00
clocksource
crypto
drm drm/scheduler: Don't kill jobs in interrupt context 2022-07-29 17:27:56 +02:00
dt-bindings
keys
kunit
kvm
linux x86/extable: Fix ex_handler_msr() print condition 2022-08-17 14:40:41 +02:00
math-emu
media
memory
misc
net net: Fix data-races around sysctl_[rw]mem(_offset)?. 2022-08-03 12:05:26 +02:00
pcmcia
ras
rdma
scsi scsi: fcoe: Fix Wstringop-overflow warnings in fcoe_wwn_from_mac() 2022-06-09 10:30:26 +02:00
soc net: mscc: ocelot: mark traps with a bool instead of keeping them in a list 2022-05-05 19:15:14 -07:00
sound ASoC: cs35l41: Fix an out-of-bounds access in otp_packed_element_t 2022-06-09 10:29:55 +02:00
target
trace net: sock: tracing: Fix sock_exceed_buf_limit not to dereference stale pointer 2022-07-22 10:21:19 +02:00
uapi drm/fourcc: fix integer type usage in uapi header 2022-07-07 17:55:00 +02:00
vdso
video video: of_display_timing.h: include errno.h 2022-07-12 16:42:17 +02:00
xen