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: 109d, last: 17d

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 1 9d18h 101d 0/1 upstream: reported C repro on 2022/02/15 19:12
linux-4.19 WARNING in blk_register_tracepoints C error 1 109d 109d 0/1 upstream: reported C repro on 2022/02/07 12:21

Sample crash report:
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:00007ffdc312ff68 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f9f1ee377a9
RDX: 0000000020000140 RSI: 00000000c0481273 RDI: 0000000000000003
RBP: 00007ffdc312ff80 R08: 0000000000000002 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
R13: 0000000000000000 R14: 00007ffdc312ffa0 R15: 00007ffdc312ff90
 </TASK>
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3599 at kernel/trace/blktrace.c:1090 blk_register_tracepoints+0x2dc/0x3a0 kernel/trace/blktrace.c:1090
Modules linked in:
CPU: 1 PID: 3599 Comm: syz-executor299 Not tainted 5.17.0-rc2-syzkaller-00398-gd8ad2ce873ab #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:blk_register_tracepoints+0x2dc/0x3a0 kernel/trace/blktrace.c:1090
Code: 48 c7 c7 00 3d 82 8d e8 f2 69 fb ff 31 ff 89 c3 89 c6 e8 e7 a8 f9 ff 85 db 0f 85 ba 00 00 00 5b e9 b9 a6 f9 ff e8 b4 a6 f9 ff <0f> 0b e9 4b fd ff ff e8 a8 a6 f9 ff 0f 0b e9 6c fd ff ff e8 9c a6
RSP: 0018:ffffc90001fafbc0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 00000000fffffff4 RCX: 0000000000000000
RDX: ffff88801ccc0000 RSI: ffffffff817ed1dc RDI: 0000000000000003
RBP: ffff88807f7b7400 R08: 0000000000000000 R09: ffffc90001fafa67
R10: ffffffff817ecf26 R11: 0000000000000000 R12: ffffc90001fafc70
R13: ffff88807f7b7428 R14: ffff88801aa12238 R15: ffff88807f7b7430
FS:  0000555555ad2300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9f1ee919c5 CR3: 0000000071222000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 get_probe_ref kernel/trace/blktrace.c:326 [inline]
 do_blk_trace_setup+0x9c3/0xc80 kernel/trace/blktrace.c:570
 __blk_trace_setup+0xca/0x180 kernel/trace/blktrace.c:589
 blk_trace_setup+0x43/0x60 kernel/trace/blktrace.c:607
 sg_ioctl_common drivers/scsi/sg.c:1123 [inline]
 sg_ioctl+0x257/0x2780 drivers/scsi/sg.c:1165
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl fs/ioctl.c:860 [inline]
 __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:860
 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+0x44/0xae
RIP: 0033:0x7f9f1ee377a9
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:00007ffdc312ff68 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f9f1ee377a9
RDX: 0000000020000140 RSI: 00000000c0481273 RDI: 0000000000000003
RBP: 00007ffdc312ff80 R08: 0000000000000002 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
R13: 0000000000000000 R14: 00007ffdc312ffa0 R15: 00007ffdc312ff90
 </TASK>
----------------
Code disassembly (best guess):
   0:	28 00                	sub    %al,(%rax)
   2:	00 00                	add    %al,(%rax)
   4:	75 05                	jne    0xb
   6:	48 83 c4 28          	add    $0x28,%rsp
   a:	c3                   	retq
   b:	e8 b1 14 00 00       	callq  0x14c1
  10:	90                   	nop
  11:	48 89 f8             	mov    %rdi,%rax
  14:	48 89 f7             	mov    %rsi,%rdi
  17:	48 89 d6             	mov    %rdx,%rsi
  1a:	48 89 ca             	mov    %rcx,%rdx
  1d:	4d 89 c2             	mov    %r8,%r10
  20:	4d 89 c8             	mov    %r9,%r8
  23:	4c 8b 4c 24 08       	mov    0x8(%rsp),%r9
  28:	0f 05                	syscall
* 2a:	48 3d 01 f0 ff ff    	cmp    $0xfffffffffffff001,%rax <-- trapping instruction
  30:	73 01                	jae    0x33
  32:	c3                   	retq
  33:	48 c7 c1 c0 ff ff ff 	mov    $0xffffffffffffffc0,%rcx
  3a:	f7 d8                	neg    %eax
  3c:	64 89 01             	mov    %eax,%fs:(%rcx)
  3f:	48                   	rex.W

Fix bisection attempts:
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
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
Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
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-kasan-gce-root 2022/02/07 06:45 upstream d8ad2ce873ab a7dab638 .config log report info WARNING in blk_register_tracepoints