intel / ipu6-drivers

GNU General Public License v2.0
172 stars 52 forks source link

UBSAN: invalid-load in /build/linux-oem-6.0-Q2lfmg/linux-oem-6.0-6.0.0/include/linux/iosys-map.h:254:9 #52

Closed vicamo closed 1 year ago

vicamo commented 2 years ago

UBSAN error found at activating camera sensor ov02c10:

[  152.748694] ================================================================================
[  152.748697] UBSAN: invalid-load in /build/linux-oem-6.0-Q2lfmg/linux-oem-6.0-6.0.0/include/linux/iosys-map.h:254:9
[  152.748699] load of value 149 is not a valid value for type '_Bool'
[  152.748701] CPU: 2 PID: 1116 Comm: camerasrc0:src Tainted: G           O       6.0.0-9005-oem #5+exp.12-Ubuntu
[  152.748703] Hardware name: Dell Inc. Latitude 7640/0KFH4R, BIOS 89.15.25 08/24/2022
[  152.748704] Call Trace:
[  152.748705]  <TASK>
[  152.748708]  show_stack+0x52/0x5c
[  152.748713]  dump_stack_lvl+0x49/0x63
[  152.748715]  dump_stack+0x10/0x16
[  152.748716]  ubsan_epilogue+0x9/0x3f
[  152.748717]  __ubsan_handle_load_invalid_value.cold+0x44/0x49
[  152.748719]  dma_buf_vmap.cold+0x38/0x3d
[  152.748723]  ipu_psys_mapbuf_locked+0x16d/0x440 [intel_ipu6_psys]
[  152.748727]  ? _copy_to_user+0x25/0x40
[  152.748730]  ? ipu_psys_ioctl+0x2ef/0x520 [intel_ipu6_psys]
[  152.748733]  ipu_psys_ioctl+0x177/0x520 [intel_ipu6_psys]
[  152.748735]  ? __fget_light+0xa7/0x130
[  152.748738]  ? __fget_light+0xa7/0x130
[  152.748739]  __x64_sys_ioctl+0x92/0xd0
[  152.748741]  do_syscall_64+0x59/0x90
[  152.748744]  entry_SYSCALL_64_after_hwframe+0x63/0xcd
[  152.748746] RIP: 0033:0x7fbac031aaff
[  152.748748] Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <41> 89 c0 3d 00 f0 ff ff 77 1f 48 8b 44 24 18 64 48 2b 04 25 28 00
[  152.748749] RSP: 002b:00007fbabd8af1c0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[  152.748751] RAX: ffffffffffffffda RBX: 00007fbab4add990 RCX: 00007fbac031aaff
[  152.748752] RDX: 000000000000001f RSI: 00000000c0044102 RDI: 000000000000001c
[  152.748753] RBP: 00007fbab4adda20 R08: 0000000000000000 R09: 00007fbab4adda20
[  152.748753] R10: 00007fbab4adde40 R11: 0000000000000246 R12: 0000000000000000
[  152.748754] R13: 00007fbab4ad8e30 R14: 0000000000001ab4 R15: 00007fbab4add7c0
[  152.748755]  </TASK>
[  152.748756] ================================================================================

dmesg.6.0.0-9005-oem.Oasis16.ov02c10.ubsan-error.txt

Revision info:

vicamo commented 1 year ago

Also filed as https://bugs.launchpad.net/bugs/1996894