diff options
| author | Li RongQing <lirongqing@baidu.com> | 2026-06-15 15:01:15 +0800 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2026-06-15 09:40:45 +0200 |
| commit | 2d36d3b451a94899db9c965adde15492ffe6027a (patch) | |
| tree | 3702adaccd3016bf1b0a46089866a3219e83ff55 /scripts/extract-vmlinux | |
| parent | 8cd9520d35a6c38db6567e97dd93b1f11f185dc6 (diff) | |
x86/ioperm: Prevent NULL dereference on theoretical missing IO bitmap
Outside the IOPL emulation path, the IO bitmap is always expected
to be allocated when TIF_IO_BITMAP is set. The paranoid WARN_ON_ONCE()
handles the case where the flag and the pointer got out of sync.
In this theoretical scenario, which presumes some other bug in the
code that triggers the WARN_ON_ONCe(), return early, instead of
continuing and dereferencing a NULL pointer.
[ mingo: Clarified the changelog. ]
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Sohil Mehta <sohil.mehta@intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Link: https://patch.msgid.link/20260615070115.4720-1-lirongqing@baidu.com
Diffstat (limited to 'scripts/extract-vmlinux')
0 files changed, 0 insertions, 0 deletions
