diff options
author | Mathieu Desnoyers <[email protected]> | 2022-11-02 09:06:35 -0400 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2022-11-14 09:58:32 +0100 |
commit | 448dca8c88755b768552e19bd1618be34ef6d1ff (patch) | |
tree | 77d5b4a80a5ff940342c114c5eff22c886c85a30 /drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c | |
parent | 094226ad94f471a9f19e8f8e7140a09c2625abaa (diff) |
rseq: Use pr_warn_once() when deprecated/unknown ABI flags are encountered
These commits use WARN_ON_ONCE() and kill the offending processes when
deprecated and unknown flags are encountered:
commit c17a6ff93213 ("rseq: Kill process when unknown flags are encountered in ABI structures")
commit 0190e4198e47 ("rseq: Deprecate RSEQ_CS_FLAG_NO_RESTART_ON_* flags")
The WARN_ON_ONCE() triggered by userspace input prevents use of
Syzkaller to fuzz the rseq system call.
Replace this WARN_ON_ONCE() by pr_warn_once() messages which contain
actually useful information.
Reported-by: Mark Rutland <[email protected]>
Signed-off-by: Mathieu Desnoyers <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Acked-by: Mark Rutland <[email protected]>
Acked-by: Paul E. McKenney <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c')
0 files changed, 0 insertions, 0 deletions