syzbot
general protection fault in sg_common_write
Status: auto-closed as invalid on 2019/02/22 14:59
First crash: 3251d, last: 3071d
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
Dumping ftrace buffer:
(ftrace buffer empty)
Modules linked in:
CPU: 0 PID: 5359 Comm: syz-executor0 Not tainted 4.9.91-gbb94f9d #68
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff88017a848000 task.stack: ffff880178710000
RIP: 0010:[<ffffffff82670119>] [<ffffffff82670119>] sg_start_req drivers/scsi/sg.c:1684 [inline]
RIP: 0010:[<ffffffff82670119>] [<ffffffff82670119>] sg_common_write.isra.22+0x399/0x18f0 drivers/scsi/sg.c:777
RSP: 0018:ffff8801787178b0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff8267004e
RDX: 0000000000000002 RSI: ffffc900009bf000 RDI: ffff8801b7d2819a
RBP: ffff880178717a48 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: ffffed002f0e2f62 R12: 1ffff1002f0e2f24
R13: ffff880178717b10 R14: ffff8801b7d28000 R15: ffff8801b7d28158
FS: 00007f1020dd0700(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c42d02d000 CR3: 00000001b8d78000 CR4: 0000000000160670
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Stack:
0000000000000007 dffffc0000000066 ffff8801b7d281e0 0000000000000010
ffff8801b7d2819c ffff88017a840000 0000177078717998 0000000000000046
ffff88017a848000 fffffffe838ae563 ffff8801b7d28000 ffff880100000066
Call Trace:
[<ffffffff8267507b>] sg_write+0x6bb/0xaf0 drivers/scsi/sg.c:677
[<ffffffff8156dc83>] __vfs_write+0x103/0x680 fs/read_write.c:507
[<ffffffff8156f969>] vfs_write+0x189/0x530 fs/read_write.c:557
[<ffffffff81573429>] SYSC_write fs/read_write.c:604 [inline]
[<ffffffff81573429>] SyS_write+0xd9/0x1b0 fs/read_write.c:596
[<ffffffff81006504>] do_syscall_64+0x1a4/0x490 arch/x86/entry/common.c:282
[<ffffffff838b8493>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb
Code: 42 66 89 85 90 fe ff ff 48 8b 85 c8 fe ff ff 48 83 c0 10 48 89 c2 48 89 85 80 fe ff ff 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 10 15 00 00 48 8b 85 c8 fe ff ff 48 8b 58 10
RIP [<ffffffff82670119>] sg_start_req drivers/scsi/sg.c:1684 [inline]
RIP [<ffffffff82670119>] sg_common_write.isra.22+0x399/0x18f0 drivers/scsi/sg.c:777
RSP <ffff8801787178b0>
---[ end trace bcd9f1151569bc43 ]---
Kernel panic - not syncing: Fatal exception
Dumping ftrace buffer:
(ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..
* Struck through repros no longer work on HEAD.