syzbot


BUG: corrupted list in az6007_i2c_xfer

Status: moderation: reported on 2025/02/10 18:20
Subsystems: media
[Documentation on labels]
Reported-by: syzbot+d8913f1760bc090ee46e@syzkaller.appspotmail.com
First crash: 14d, last: 14d

Sample crash report:
 slab kmalloc-8k start ffff8880792c4000 pointer offset 80 size 8192
list_del corruption. prev->next should be ffffc9000cc27760, but was ffff8880792c4050. (prev=ffff8880792c4050)
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:64!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 1 UID: 0 PID: 10561 Comm: syz.2.1236 Not tainted 6.14.0-rc1-syzkaller-00034-g92514ef226f5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
RIP: 0010:__list_del_entry_valid_or_report+0x15c/0x190 lib/list_debug.c:62
Code: 5a 10 1b fd 42 80 3c 2b 00 74 08 4c 89 e7 e8 4b 4f 3c fd 49 8b 14 24 48 c7 c7 a0 ba 5f 8c 4c 89 fe 4c 89 e1 e8 55 e0 3f fc 90 <0f> 0b 4c 89 f7 e8 2a 10 1b fd 42 80 3c 2b 00 74 08 4c 89 e7 e8 1b
RSP: 0018:ffffc9000cc27650 EFLAGS: 00010046
RAX: 000000000000006d RBX: 1ffff1100f25880a RCX: 4ed2db0368520800
RDX: ffffc9000d0e2000 RSI: 0000000000006214 RDI: 0000000000006215
RBP: ffffc9000cc27810 R08: ffffffff819f140c R09: 1ffff110170e519a
R10: dffffc0000000000 R11: ffffed10170e519b R12: ffff8880792c4050
R13: dffffc0000000000 R14: ffff8880792c4050 R15: ffffc9000cc27760
FS:  00007fdfe69126c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb7517a7bac CR3: 000000002848a000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __list_del_entry_valid include/linux/list.h:124 [inline]
 __list_del_entry include/linux/list.h:215 [inline]
 list_del include/linux/list.h:229 [inline]
 __mutex_remove_waiter kernel/locking/mutex.c:193 [inline]
 __mutex_lock_common kernel/locking/mutex.c:698 [inline]
 __mutex_lock+0x9d8/0x1010 kernel/locking/mutex.c:730
 az6007_i2c_xfer+0x86/0xbc0 drivers/media/usb/dvb-usb-v2/az6007.c:755
 __i2c_transfer+0x866/0x2220
 i2c_smbus_xfer_emulated drivers/i2c/i2c-core-smbus.c:469 [inline]
 __i2c_smbus_xfer+0x179a/0x2dd0 drivers/i2c/i2c-core-smbus.c:607
 i2c_smbus_xfer+0x291/0x3d0 drivers/i2c/i2c-core-smbus.c:545
 i2cdev_ioctl_smbus+0x45b/0x6a0 drivers/i2c/i2c-dev.c:389
 i2cdev_ioctl+0x6b5/0x9f0 drivers/i2c/i2c-dev.c:478
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:906 [inline]
 __se_sys_ioctl+0xf5/0x170 fs/ioctl.c:892
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fdfe5b8cde9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fdfe6912038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fdfe5da5fa0 RCX: 00007fdfe5b8cde9
RDX: 0000200000000100 RSI: 0000000000000720 RDI: 0000000000000007
RBP: 00007fdfe5c0e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fdfe5da5fa0 R15: 00007ffccab6f358
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__list_del_entry_valid_or_report+0x15c/0x190 lib/list_debug.c:62
Code: 5a 10 1b fd 42 80 3c 2b 00 74 08 4c 89 e7 e8 4b 4f 3c fd 49 8b 14 24 48 c7 c7 a0 ba 5f 8c 4c 89 fe 4c 89 e1 e8 55 e0 3f fc 90 <0f> 0b 4c 89 f7 e8 2a 10 1b fd 42 80 3c 2b 00 74 08 4c 89 e7 e8 1b
RSP: 0018:ffffc9000cc27650 EFLAGS: 00010046
RAX: 000000000000006d RBX: 1ffff1100f25880a RCX: 4ed2db0368520800
RDX: ffffc9000d0e2000 RSI: 0000000000006214 RDI: 0000000000006215
RBP: ffffc9000cc27810 R08: ffffffff819f140c R09: 1ffff110170e519a
R10: dffffc0000000000 R11: ffffed10170e519b R12: ffff8880792c4050
R13: dffffc0000000000 R14: ffff8880792c4050 R15: ffffc9000cc27760
FS:  00007fdfe69126c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb7517a7bac CR3: 000000002848a000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/02/06 18:14 upstream 92514ef226f5 577d049b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root BUG: corrupted list in az6007_i2c_xfer
* Struck through repros no longer work on HEAD.