syzbot


WARNING in blk_register_tracepoints

Status: upstream: reported C repro on 2022/02/08 05:40
Reported-by: syzbot+c54ded83396afee31eb1@syzkaller.appspotmail.com
First crash: 359d, last: 31d

Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: WARNING in blk_register_tracepoints (log)
Repro: C syz .config
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING in blk_register_tracepoints C error 4 23d 350d 0/1 upstream: reported C repro on 2022/02/15 19:12
linux-4.19 WARNING in blk_register_tracepoints C error 4 18d 359d 0/1 upstream: reported C repro on 2022/02/07 12:21

Sample crash report:
RDX: 0000000020000040 RSI: 00000000c0481273 RDI: 0000000000000003
RBP: 00007ffd395e8460 R08: 0000000000000002 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000
 </TASK>
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5073 at kernel/trace/blktrace.c:1100 blk_register_tracepoints+0x2dc/0x3a0 kernel/trace/blktrace.c:1100
Modules linked in:
CPU: 0 PID: 5073 Comm: syz-executor346 Not tainted 6.2.0-rc1-syzkaller-00084-gc8451c141e07 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:blk_register_tracepoints+0x2dc/0x3a0 kernel/trace/blktrace.c:1100
Code: 48 c7 c7 00 f5 60 8e e8 22 2c fb ff 31 ff 89 c3 89 c6 e8 97 61 f9 ff 85 db 0f 85 ba 00 00 00 5b e9 d9 64 f9 ff e8 d4 64 f9 ff <0f> 0b e9 4b fd ff ff e8 c8 64 f9 ff 0f 0b e9 6c fd ff ff e8 bc 64
RSP: 0018:ffffc90003d6fbe8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 00000000fffffff4 RCX: 0000000000000000
RDX: ffff888029b20000 RSI: ffffffff8187ed6c RDI: 0000000000000005
RBP: ffff8880269fc500 R08: 0000000000000005 R09: 0000000000000000
R10: 00000000fffffff4 R11: 0000000000000000 R12: ffffc90003d6fc88
R13: ffff8880269fc528 R14: ffff88801ea843c8 R15: ffff8880269fc530
FS:  0000555556bee300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd395e8428 CR3: 000000002a2a7000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 get_probe_ref kernel/trace/blktrace.c:337 [inline]
 do_blk_trace_setup+0x940/0xb60 kernel/trace/blktrace.c:612
 __blk_trace_setup+0xca/0x180 kernel/trace/blktrace.c:631
 blk_trace_setup+0x47/0x60 kernel/trace/blktrace.c:649
 sg_ioctl_common drivers/scsi/sg.c:1117 [inline]
 sg_ioctl+0x668/0x2700 drivers/scsi/sg.c:1159
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __x64_sys_ioctl+0x197/0x210 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fcf187236c9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 00 00 90 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd395e8448 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fcf187236c9
RDX: 0000000020000040 RSI: 00000000c0481273 RDI: 0000000000000003
RBP: 00007ffd395e8460 R08: 0000000000000002 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Fix bisection attempts:
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce 2022/07/26 07:21 upstream e0dccc3b76fb c8857892 .config console log report syz C
ci-upstream-kasan-gce 2022/05/10 12:49 upstream 9be9ed2612b5 a7dab638 .config console log report syz C
ci-upstream-kasan-gce 2022/04/08 08:10 upstream 1831fed55973 a7dab638 .config console log report syz C
ci-upstream-kasan-gce 2022/03/09 07:48 upstream 330f4c53d3c2 a7dab638 .config console log report syz C
* Struck through repros no longer work on HEAD.
Crashes (20):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce 2022/12/31 20:52 upstream c8451c141e07 ab32d508 .config strace log report syz C [disk image] [vmlinux] [kernel image] WARNING in blk_register_tracepoints
ci-upstream-kasan-gce 2022/06/07 19:17 upstream e71e60cd74df c8857892 .config console log report syz C WARNING in blk_register_tracepoints
ci-upstream-kasan-gce-root 2022/06/05 10:27 upstream 952923ddc011 c8857892 .config strace log report syz C WARNING in blk_register_tracepoints
ci-upstream-kasan-gce 2022/02/07 07:28 upstream d8ad2ce873ab a7dab638 .config console log report syz C WARNING in blk_register_tracepoints
ci-upstream-kasan-gce-root 2022/02/07 06:57 upstream d8ad2ce873ab a7dab638 .config console log report syz C WARNING in blk_register_tracepoints
ci-upstream-linux-next-kasan-gce-root 2022/08/27 23:02 linux-next 8d0c42c9e807 07177916 .config strace log report syz C WARNING in blk_register_tracepoints
ci-upstream-linux-next-kasan-gce-root 2022/06/26 04:19 linux-next 2f9cb3d3bd73 a371c43c .config strace log report syz C WARNING in blk_register_tracepoints
ci-upstream-kasan-gce 2022/12/31 20:30 upstream c8451c141e07 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in blk_register_tracepoints
ci-upstream-kasan-gce 2022/12/04 02:15 upstream 97ee9d1c1696 e080de16 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in blk_register_tracepoints
ci-upstream-kasan-gce 2022/11/26 07:19 upstream 0b1dcc2cf55a 74a66371 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in blk_register_tracepoints
ci-upstream-kasan-gce-root 2022/10/29 02:46 upstream b229b6ca5abb ea12ae9b .config console log report info [disk image] [vmlinux] [kernel image] WARNING in blk_register_tracepoints
ci-upstream-kasan-gce 2022/10/10 16:41 upstream 4899a36f91a9 aea5da89 .config console log report info [disk image] [vmlinux] WARNING in blk_register_tracepoints
ci-upstream-kasan-gce-selinux-root 2022/08/10 12:31 upstream 200e340f2196 c2a623d6 .config console log report info WARNING in blk_register_tracepoints
ci-upstream-kasan-gce-root 2022/06/05 09:55 upstream 952923ddc011 c8857892 .config console log report info WARNING in blk_register_tracepoints
ci-upstream-kasan-gce-root 2022/02/07 06:45 upstream d8ad2ce873ab a7dab638 .config console log report info WARNING in blk_register_tracepoints
ci-qemu-upstream-386 2022/12/13 00:49 upstream 830b3c68c1fb 67be1ae7 .config console log report info WARNING in blk_register_tracepoints
ci-qemu-upstream-386 2022/09/25 05:41 upstream 1a61b828566f 0042f2b4 .config console log report info WARNING in blk_register_tracepoints
ci-upstream-kasan-gce-386 2022/09/04 03:34 upstream 42cf58c272ee 28811d0a .config console log report info WARNING in blk_register_tracepoints
ci-upstream-kasan-gce-386 2022/08/08 17:52 upstream 200e340f2196 88e3a122 .config console log report info WARNING in blk_register_tracepoints
ci-upstream-linux-next-kasan-gce-root 2022/08/08 18:10 linux-next ca688bff68bc 88e3a122 .config console log report info WARNING in blk_register_tracepoints
* Struck through repros no longer work on HEAD.