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: 238d, last: 8d15h

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 3 29d 230d 0/1 upstream: reported C repro on 2022/02/15 19:12
linux-4.19 WARNING in blk_register_tracepoints C error 3 118d 238d 0/1 upstream: reported C repro on 2022/02/07 12:21

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3618 at kernel/trace/blktrace.c:1102 blk_register_tracepoints+0x2dc/0x3a0 kernel/trace/blktrace.c:1102
Modules linked in:
CPU: 1 PID: 3618 Comm: syz-executor175 Not tainted 5.19.0-rc1-syzkaller-00003-ge71e60cd74df #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/13/2022
RIP: 0010:blk_register_tracepoints+0x2dc/0x3a0 kernel/trace/blktrace.c:1102
Code: 48 c7 c7 e0 ca a9 8d e8 62 59 fb ff 31 ff 89 c3 89 c6 e8 17 95 f9 ff 85 db 0f 85 ba 00 00 00 5b e9 c9 98 f9 ff e8 c4 98 f9 ff <0f> 0b e9 4b fd ff ff e8 b8 98 f9 ff 0f 0b e9 6c fd ff ff e8 ac 98
RSP: 0018:ffffc9000303fbd0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 00000000fffffff4 RCX: 0000000000000000
RDX: ffff888020c09d80 RSI: ffffffff8180dddc RDI: 0000000000000005
RBP: ffff88802379ca80 R08: 0000000000000005 R09: 0000000000000000
R10: 00000000fffffff4 R11: 00000000000000ce R12: ffffc9000303fc70
R13: ffff88802379caa8 R14: ffff88801d706810 R15: ffff88802379cab0
FS:  0000555556bc7300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f931f3672a4 CR3: 0000000021e63000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 get_probe_ref kernel/trace/blktrace.c:336 [inline]
 do_blk_trace_setup+0x940/0xb60 kernel/trace/blktrace.c:580
 __blk_trace_setup+0xca/0x180 kernel/trace/blktrace.c:599
 blk_trace_setup+0x43/0x60 kernel/trace/blktrace.c:617
 sg_ioctl_common drivers/scsi/sg.c:1122 [inline]
 sg_ioctl+0x251/0x2760 drivers/scsi/sg.c:1164
 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+0x193/0x200 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0
RIP: 0033:0x7f931f30f7a9
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:00007ffd812b8ba8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f931f30f7a9
RDX: 0000000020000140 RSI: 00000000c0481273 RDI: 0000000000000003
RBP: 00007ffd812b8bc0 R08: 0000000000000002 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
R13: 00007ffd812b8bbc R14: 00007ffd812b8be0 R15: 00007ffd812b8bd0
 </TASK>

Fix bisection attempts:
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce 2022/07/26 07:21 upstream e0dccc3b76fb c8857892 .config log report syz C
ci-upstream-kasan-gce 2022/05/10 12:49 upstream 9be9ed2612b5 a7dab638 .config log report syz C
ci-upstream-kasan-gce 2022/04/08 08:10 upstream 1831fed55973 a7dab638 .config log report syz C
ci-upstream-kasan-gce 2022/03/09 07:48 upstream 330f4c53d3c2 a7dab638 .config log report syz C
* Struck through repros no longer work on HEAD.
Crashes (13):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce 2022/06/07 19:17 upstream e71e60cd74df c8857892 .config log report syz C WARNING in blk_register_tracepoints
ci-upstream-kasan-gce-root 2022/06/05 10:27 upstream 952923ddc011 c8857892 .config log report syz C WARNING in blk_register_tracepoints
ci-upstream-kasan-gce 2022/02/07 07:28 upstream d8ad2ce873ab a7dab638 .config log report syz C WARNING in blk_register_tracepoints
ci-upstream-kasan-gce-root 2022/02/07 06:57 upstream d8ad2ce873ab a7dab638 .config 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 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 log report syz C WARNING in blk_register_tracepoints
ci-upstream-kasan-gce-selinux-root 2022/08/10 12:31 upstream 200e340f2196 c2a623d6 .config log report info WARNING in blk_register_tracepoints
ci-upstream-kasan-gce-root 2022/06/05 09:55 upstream 952923ddc011 c8857892 .config log report info WARNING in blk_register_tracepoints
ci-upstream-kasan-gce-root 2022/02/07 06:45 upstream d8ad2ce873ab a7dab638 .config log report info WARNING in blk_register_tracepoints
ci-qemu-upstream-386 2022/09/25 05:41 upstream 1a61b828566f 0042f2b4 .config log report info WARNING in blk_register_tracepoints
ci-upstream-kasan-gce-386 2022/09/04 03:34 upstream 42cf58c272ee 28811d0a .config log report info WARNING in blk_register_tracepoints
ci-upstream-kasan-gce-386 2022/08/08 17:52 upstream 200e340f2196 88e3a122 .config 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 log report info WARNING in blk_register_tracepoints
* Struck through repros no longer work on HEAD.