summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc
diff options
context:
space:
mode:
authorShuicheng Lin <shuicheng.lin@intel.com>2026-10-07 22:24:26 +0000
committerDave Airlie <airlied@redhat.com>2026-11-09 19:17:57 +1000
commitc5cdfae3f71e2f024bb572a0e98416c15db4fe07 (patch)
treecb7b253ee0683732cef879b6ed7b00479cc45888 /rust/kernel/alloc
parent9de430b6fbbdfeee1a5eec33edf53f52c13c869b (diff)
drm/xe: Mark xe_vma_ops_alloc() noinline for error injection
Since xe_vma_ops_alloc() was reduced to a loop around xe_pt_job_ops_alloc(), the compiler inlines it into all of its callers, including xe_vm_bind_ioctl(). ALLOW_ERROR_INJECTION() only keeps an out-of-line copy of the function alive for the kprobe, so fail_function injection on xe_vma_ops_alloc is armed on a copy that is never called and the bind IOCTL succeeds. This is seen with the nodebug kernel config used in CI, where igt@xe_fault_injection@vm-bind-fail-xe_vma_ops_alloc fails with: Failed assertion: simple_vm_bind(fd, vm) != 0 Mark xe_vma_ops_alloc() noinline so callers go through the injectable function. Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/work_items/9432 Fixes: 0e33330f1238 ("drm/xe: Add struct xe_pt_job_ops") Cc: Matthew Brost <matthew.brost@intel.com> Assisted-by: LLM Reviewed-by: Matthew Brost <matthew.brost@intel.com> Link: https://patch.msgid.link/20261007222426.1350374-1-shuicheng.lin@intel.com Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com> (cherry picked from commit 26f7daea5b0667a0af06c60dc204e7cf4856182c) Signed-off-by: Matthew Brost <matthew.brost@intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions