Applied: [SRU][O][PATCH 0/1] BMG: fix EFAULT handling

Mehmet Basaran mehmet.basaran at canonical.com
Mon Mar 31 23:25:29 UTC 2025


Applied to oracular:linux master-next branch. Thanks.

-------------- next part --------------
Thibault Ferrante <thibault.ferrante at canonical.com> writes:

> BugLink: https://bugs.launchpad.net/bugs/2102657
>
> [ Impact ]
>
>  * EFAULT is handled as a non-fatal error that can trigger more issues due to bad handling such as
>
>     [ 191.738349] WARNING: CPU: 1 PID: 157 at drivers/gpu/drm/xe/xe_res_cursor.h:158 xe_pt_stage_bind.constprop.0+0x60a/0x6b0 [xe]
>     [ 191.738551] Workqueue: xe-ordered-wq preempt_rebind_work_func [xe]
>     [ 191.738616] RIP: 0010:xe_pt_stage_bind.constprop.0+0x60a/0x6b0 [xe]
>     [ 191.738690] Call Trace:
>     [ 191.738692] <TASK>
>     [ 191.738694] ? show_regs+0x69/0x80
>     [ 191.738698] ? __warn+0x93/0x1a0
>     [ 191.738703] ? xe_pt_stage_bind.constprop.0+0x60a/0x6b0 [xe]
>     [ 191.738759] ? report_bug+0x18f/0x1a0
>     [ 191.738764] ? handle_bug+0x63/0xa0
>     [ 191.738767] ? exc_invalid_op+0x19/0x70
>     [ 191.738770] ? asm_exc_invalid_op+0x1b/0x20
>     [ 191.738777] ? xe_pt_stage_bind.constprop.0+0x60a/0x6b0 [xe]
>     [ 191.738834] ? ret_from_fork_asm+0x1a/0x30
>     [ 191.738849] bind_op_prepare+0x105/0x7b0 [xe]
>     [ 191.738906] ? dma_resv_reserve_fences+0x301/0x380
>     [ 191.738912] xe_pt_update_ops_prepare+0x28c/0x4b0 [xe]
>     [ 191.738966] ? kmemleak_alloc+0x4b/0x80
>     [ 191.738973] ops_execute+0x188/0x9d0 [xe]
>     [ 191.739036] xe_vm_rebind+0x4ce/0x5a0 [xe]
>     [ 191.739098] ? trace_hardirqs_on+0x4d/0x60
>     [ 191.739112] preempt_rebind_work_func+0x76f/0xd00 [xe]
>
> [ Fix ]
>
> * upstream fix :
> 6b93cb98910c drm/xe/userptr: fix EFAULT handling
>
> [ Test Plan ]
>
>  * Compiled.
>
> [ Where problems could occur ]
>
>  * Regression in error handling mechanism in BMG driver.
>
> [ Other Info ]
>
>  * Pointed by intel as missing.
>
> Matthew Auld (1):
>   drm/xe/userptr: fix EFAULT handling
>
>  drivers/gpu/drm/xe/xe_vm.c | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
>
> -- 
> 2.45.2
>
>
> -- 
> kernel-team mailing list
> kernel-team at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 873 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20250401/226d3aef/attachment.sig>


More information about the kernel-team mailing list