syzbot


general protection fault in relay_switch_subbuf (3)

Status: auto-closed as invalid on 2020/01/29 10:20
Reported-by: syzbot+8a7381542c52b9d61a0c@syzkaller.appspotmail.com
First crash: 1192d, last: 1192d
similar bugs (7):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in relay_switch_subbuf 2 1044d 1137d 0/1 auto-closed as invalid on 2020/07/25 03:12
upstream KASAN: use-after-free Read in relay_switch_subbuf C done error 93 98d 1592d 0/24 upstream: reported C repro on 2018/09/26 07:41
upstream general protection fault in relay_switch_subbuf 4 1471d 1443d 0/24 auto-closed as invalid on 2019/07/23 22:29
upstream general protection fault in relay_switch_subbuf (2) 1 1284d 1275d 0/24 auto-closed as invalid on 2019/10/25 14:11
linux-4.19 general protection fault in relay_switch_subbuf 1 1267d 1267d 0/1 auto-closed as invalid on 2019/12/15 08:14
linux-4.19 general protection fault in relay_switch_subbuf (2) 1 964d 964d 0/1 auto-closed as invalid on 2020/10/13 07:52
linux-4.19 KASAN: use-after-free Read in relay_switch_subbuf (2) 22 7d01h 474d 0/1 upstream: reported on 2021/10/17 18:33

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 28948 Comm: syz-executor.2 Not tainted 5.4.0-rc5+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:relay_switch_subbuf+0x216/0x920 kernel/relay.c:755
Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 bc 06 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 7b 58 49 8d 7f 50 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 7d 06 00 00 48 ba 00 00 00 00 00 fc ff df 49 8b
RSP: 0018:ffff88804ad37990 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: ffff8880904a6040 RCX: ffffc9000a37f000
RDX: 000000000000000a RSI: ffffffff8173d3de RDI: 0000000000000050
RBP: ffff88804ad379e8 R08: ffff888098fee200 R09: fffffbfff11fc409
R10: ffff88804ad379e8 R11: ffffffff88fe2047 R12: 0000000000000000
R13: 0000000000000000 R14: ffff888099074800 R15: 0000000000000000
FS:  00007f5212dae700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f442abb0518 CR3: 00000000a0f60000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 relay_flush kernel/relay.c:883 [inline]
 relay_flush+0x1c4/0x280 kernel/relay.c:867
 __blk_trace_startstop.isra.0+0x216/0x630 kernel/trace/blktrace.c:662
 blk_trace_ioctl+0x1c6/0x300 kernel/trace/blktrace.c:722
 blkdev_ioctl+0x126/0x1c20 block/ioctl.c:592
 block_ioctl+0xee/0x130 fs/block_dev.c:1954
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:509 [inline]
 do_vfs_ioctl+0xdb6/0x13e0 fs/ioctl.c:696
 ksys_ioctl+0xab/0xd0 fs/ioctl.c:713
 __do_sys_ioctl fs/ioctl.c:720 [inline]
 __se_sys_ioctl fs/ioctl.c:718 [inline]
 __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:718
 do_syscall_64+0xfa/0x760 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x459f49
Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f5212dadc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459f49
RDX: 0000000000000000 RSI: 0000000000001275 RDI: 0000000000000004
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f5212dae6d4
R13: 00000000004c1801 R14: 00000000004d52a8 R15: 00000000ffffffff
Modules linked in:
---[ end trace 293341f9fae13bfb ]---
RIP: 0010:relay_switch_subbuf+0x216/0x920 kernel/relay.c:755
Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 bc 06 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 7b 58 49 8d 7f 50 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 7d 06 00 00 48 ba 00 00 00 00 00 fc ff df 49 8b
RSP: 0018:ffff88804ad37990 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: ffff8880904a6040 RCX: ffffc9000a37f000
RDX: 000000000000000a RSI: ffffffff8173d3de RDI: 0000000000000050
RBP: ffff88804ad379e8 R08: ffff888098fee200 R09: fffffbfff11fc409
R10: ffff88804ad379e8 R11: ffffffff88fe2047 R12: 0000000000000000
R13: 0000000000000000 R14: ffff888099074800 R15: 0000000000000000
FS:  00007f5212dae700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000000a0f60000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce 2019/10/31 10:19 upstream e472c64aa4fa a41ca8fa .config console log report
* Struck through repros no longer work on HEAD.