syzbot


WARNING in copy_user_generic_unrolled (2)

Status: auto-closed as invalid on 2021/09/07 23:12
Reported-by: syzbot+7dbbb285a34b44a098a0@syzkaller.appspotmail.com
First crash: 410d, last: 410d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING in copy_user_generic_unrolled 1 1089d 1089d 0/1 auto-closed as invalid on 2019/10/29 20:02

Sample crash report:
 create_huge_pmd mm/memory.c:3974 [inline]
 __handle_mm_fault+0x2ac4/0x4620 mm/memory.c:4177
 handle_mm_fault+0x455/0x9c0 mm/memory.c:4243
 __do_page_fault+0x549/0xad0 arch/x86/mm/fault.c:1442
------------[ cut here ]------------
WARNING: CPU: 0 PID: 23899 at fs/super.c:1163 kill_block_super+0xbe/0xe0 fs/super.c:1163
Kernel panic - not syncing: panic_on_warn set ...

 page_fault+0x25/0x50 arch/x86/entry/entry_64.S:1123
RIP: 0010:copy_user_generic_unrolled+0x9e/0xc0 arch/x86/lib/copy_user_64.S:75
RSP: 0018:ffff88823aa5f840 EFLAGS: 00010206
RAX: 0000000000040000 RBX: 0000000000000006 RCX: 0000000000000006
RDX: 0000000000000006 RSI: 0000000000a40000 RDI: ffff88823aa5f898
RBP: ffff88804df081d8 R08: 0000000000000001 R09: ffffed104754bf13
R10: ffff88823aa5f89d R11: ffff88804d8e2340 R12: ffff88804df08080
R13: 0000000000a40000 R14: 0000000000000006 R15: ffff88823aa5f898
 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline]
 raw_copy_from_user arch/x86/include/asm/uaccess_64.h:55 [inline]
 __copy_from_user include/linux/uaccess.h:75 [inline]
 sg_new_write.isra.0+0x483/0x8c0 drivers/scsi/sg.c:778
 sg_write.part.0+0x8b8/0xc60 drivers/scsi/sg.c:644
 sg_write+0x60/0x90 drivers/scsi/sg.c:623
 do_loop_readv_writev fs/read_write.c:698 [inline]
 do_loop_readv_writev fs/read_write.c:682 [inline]
 do_iter_write+0x3da/0x550 fs/read_write.c:956
 vfs_writev+0x125/0x290 fs/read_write.c:999
 do_writev+0xfc/0x2c0 fs/read_write.c:1034
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x4665f9
RSP: 002b:00007fb741ed9188 EFLAGS: 00000246 ORIG_RAX: 0000000000000014
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 00000000004665f9
RDX: 0000000000000002 RSI: 0000000020000380 RDI: 0000000000000004
RBP: 00007fb741ed91d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fff87b685ef R14: 00007fb741ed9300 R15: 0000000000022000
CPU: 0 PID: 23899 Comm: syz-executor.3 Not tainted 4.14.232-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 panic+0x1f9/0x42d kernel/panic.c:183
 __warn.cold+0x20/0x44 kernel/panic.c:547
 report_bug+0x208/0x250 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:177 [inline]
 fixup_bug arch/x86/kernel/traps.c:172 [inline]
 do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
sg_write: data in/out 484209690/50 bytes for SCSI command 0xfe-- guessing data in;
   program syz-executor.0 not setting count and/or reply_len properly
 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:964
RIP: 0010:kill_block_super+0xbe/0xe0 fs/super.c:1163
RSP: 0018:ffff88823a8b7bc8 EFLAGS: 00010246
RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc9000a1e2000
RDX: 0000000000040000 RSI: ffffffff8187278e RDI: ffff8880903b56f0
RBP: ffff88803387ebc0 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000000 R11: ffff888052738400 R12: ffff8880903b5240
R13: ffffffff8907b650 R14: ffffffff88f44f40 R15: dffffc0000000000
 deactivate_locked_super+0x6c/0xd0 fs/super.c:319
 sget_userns+0x9c4/0xc10 fs/super.c:537
 sget+0xd1/0x110 fs/super.c:572
 mount_bdev+0xcd/0x360 fs/super.c:1107
 mount_fs+0x92/0x2a0 fs/super.c:1237
 vfs_kern_mount.part.0+0x5b/0x470 fs/namespace.c:1046
 vfs_kern_mount fs/namespace.c:1036 [inline]
 do_new_mount fs/namespace.c:2549 [inline]
 do_mount+0xe53/0x2a00 fs/namespace.c:2879
 SYSC_mount fs/namespace.c:3095 [inline]
 SyS_mount+0xa8/0x120 fs/namespace.c:3072
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x467b1a
RSP: 002b:00007f6a22ba1fa8 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 0000000000467b1a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f6a22ba2000
RBP: 00007f6a22ba2040 R08: 00007f6a22ba2040 R09: 0000000020000000
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000020000000
R13: 0000000020000100 R14: 00007f6a22ba2000 R15: 0000000020000080
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-14 2021/05/10 23:11 linux-4.14.y 7d7d1c0ab3eb ca873091 .config log report info WARNING in copy_user_generic_unrolled