syzbot


kernel BUG in sg_write

Status: auto-closed as invalid on 2021/05/17 10:34
Subsystems: scsi
[Documentation on labels]
First crash: 1299d, last: 1298d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG at lib/string.c:LINE! netfilter C 73 2550d 2566d 3/28 fixed on 2017/10/24 07:07
upstream kernel BUG at lib/string.c:LINE! (5) btrfs C done 558 1470d 1479d 15/28 fixed on 2020/10/15 08:22
upstream kernel BUG at lib/string.c:LINE! (2) rdma syz 2 2396d 2396d 4/28 fixed on 2018/03/23 18:14
upstream kernel BUG at lib/string.c:LINE! (6) netfilter C done 2 1385d 1381d 19/28 fixed on 2021/03/10 01:48
upstream kernel BUG at lib/string.c:LINE! (3) rdma C 5 2380d 2381d 5/28 fixed on 2018/04/06 16:37
upstream kernel BUG at lib/string.c:LINE! (4) lvs C 2 2332d 2331d 5/28 fixed on 2018/06/07 13:52

Sample crash report:
detected buffer overflow in memcpy
------------[ cut here ]------------
kernel BUG at lib/string.c:1149!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 13989 Comm: syz-executor.3 Not tainted 5.12.0-rc2-next-20210312-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:fortify_panic+0xf/0x11 lib/string.c:1149
Code: 54 e9 ee 04 48 c7 c7 00 8b c5 89 58 5b 5d 41 5c 41 5d 41 5e 41 5f e9 89 b3 f1 ff 48 89 fe 48 c7 c7 c0 8b c5 89 e8 7a b3 f1 ff <0f> 0b e8 9f f4 9a f8 e8 8a c6 de f8 48 c7 c7 e0 af c5 89 e8 d9 ff
RSP: 0018:ffffc9000c33fc08 EFLAGS: 00010286
RAX: 0000000000000022 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000040000 RSI: ffffffff815c18f5 RDI: fffff52001867f73
RBP: 0000000000000058 R08: 0000000000000022 R09: 0000000000000000
R10: ffffffff815bb09e R11: 0000000000000000 R12: ffff88801378e500
R13: ffff888026812000 R14: ffffc9000c33fc68 R15: fffffffffffffffa
FS:  00007fb40cc6a700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1200530000 CR3: 00000000188a4000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 memcpy include/linux/fortify-string.h:190 [inline]
 sg_write.part.0.cold+0x82/0x1ec drivers/scsi/sg.c:649
 sg_write+0x87/0x120 drivers/scsi/sg.c:603
 vfs_write+0x28e/0xa30 fs/read_write.c:603
 ksys_write+0x12d/0x250 fs/read_write.c:658
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x465f69
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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb40cc6a188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000465f69
RDX: 0000000000000058 RSI: 0000000020000900 RDI: 0000000000000003
RBP: 00000000004bfa8f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60
R13: 00007ffd91c74f7f R14: 00007fb40cc6a300 R15: 0000000000022000
Modules linked in:
---[ end trace edba740b438060c5 ]---
RIP: 0010:fortify_panic+0xf/0x11 lib/string.c:1149
Code: 54 e9 ee 04 48 c7 c7 00 8b c5 89 58 5b 5d 41 5c 41 5d 41 5e 41 5f e9 89 b3 f1 ff 48 89 fe 48 c7 c7 c0 8b c5 89 e8 7a b3 f1 ff <0f> 0b e8 9f f4 9a f8 e8 8a c6 de f8 48 c7 c7 e0 af c5 89 e8 d9 ff
RSP: 0018:ffffc9000c33fc08 EFLAGS: 00010286
RAX: 0000000000000022 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000040000 RSI: ffffffff815c18f5 RDI: fffff52001867f73
RBP: 0000000000000058 R08: 0000000000000022 R09: 0000000000000000
R10: ffffffff815bb09e R11: 0000000000000000 R12: ffff88801378e500
R13: ffff888026812000 R14: ffffc9000c33fc68 R15: fffffffffffffffa
FS:  00007fb40cc6a700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000522090 CR3: 00000000188a4000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/03/14 17:27 linux-next d98f554b318f 4a003785 .config console log report info ci-upstream-linux-next-kasan-gce-root kernel BUG in sg_write
2021/03/14 17:27 linux-next d98f554b318f 4a003785 .config console log report info ci-upstream-linux-next-kasan-gce-root kernel BUG in sg_write
2021/03/14 01:37 linux-next d98f554b318f 4a003785 .config console log report info ci-upstream-linux-next-kasan-gce-root kernel BUG in sg_write
* Struck through repros no longer work on HEAD.