syzbot


general protection fault in page_fault

Status: auto-closed as invalid on 2021/09/20 11:39
Reported-by: syzbot+a708a2fbf294c7b7cfaf@syzkaller.appspotmail.com
First crash: 1061d, last: 1061d

Sample crash report:
 should_fail_alloc_page mm/page_alloc.c:3088 [inline]
 prepare_alloc_pages mm/page_alloc.c:4346 [inline]
 __alloc_pages_nodemask+0x239/0x2890 mm/page_alloc.c:4393
block nbd0: shutting down sockets
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
 alloc_pages_vma+0xf2/0x780 mm/mempolicy.c:2161
CPU: 0 PID: 25915 Comm: syz-executor.5 Not tainted 4.19.191-syzkaller #0
 alloc_zeroed_user_highpage_movable include/linux/highmem.h:184 [inline]
 do_anonymous_page+0x7c2/0x1be0 mm/memory.c:3271
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__lock_acquire+0x1eb/0x3ff0 kernel/locking/lockdep.c:3295
Code: 2b 29 00 00 48 81 c4 98 01 00 00 44 89 f8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 b3 2a 00 00 49 81 3e 20 b2 66 8c 0f 84 65 ff ff
RSP: 0018:ffff88803ad1f270 EFLAGS: 00010006
 handle_pte_fault mm/memory.c:4132 [inline]
 __handle_mm_fault+0x227a/0x41c0 mm/memory.c:4258
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000022 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: ffff88803bb743c0 R14: 0000000000000110 R15: 0000000000000001
 handle_mm_fault+0x436/0xb10 mm/memory.c:4295
FS:  00007f910d904700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
 __do_page_fault+0x68e/0xd60 arch/x86/mm/fault.c:1412
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000564862c6c8e0 CR3: 0000000091868000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1205
RIP: 0010:copy_user_enhanced_fast_string+0xe/0x20 arch/x86/lib/copy_user_64.S:181
Code: 89 d1 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 31 c0 0f 1f 00 c3 0f 1f 80 00 00 00 00 0f 1f 00 83 fa 40 0f 82 70 ff ff ff 89 d1 <f3> a4 31 c0 0f 1f 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 83
RSP: 0018:ffff88803152fb00 EFLAGS: 00010206
RAX: 0000000000040000 RBX: ffff888041d50000 RCX: 0000000000000024
RDX: 0000000000008000 RSI: ffff888041d57fdc RDI: 0000000020ea4000
RBP: 0000000000000001 R08: 0000000000000000 R09: ffff888041d50000
R10: 0000000000000006 R11: 0000000000000000 R12: 0000000000008000
R13: 0000000000008000 R14: 0000000000020cfa R15: 0000000000000000
 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline]
 raw_copy_to_user arch/x86/include/asm/uaccess_64.h:128 [inline]
 __copy_to_user include/linux/uaccess.h:105 [inline]
 sg_read_oxfer drivers/scsi/sg.c:2001 [inline]
 sg_read drivers/scsi/sg.c:554 [inline]
 sg_read+0x112c/0x17c0 drivers/scsi/sg.c:414
 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908
 flush_workqueue+0x117/0x13e0 kernel/workqueue.c:2660
 do_loop_readv_writev fs/read_write.c:701 [inline]
 do_loop_readv_writev fs/read_write.c:688 [inline]
 do_iter_read+0x471/0x630 fs/read_write.c:925
 vfs_readv+0xe5/0x150 fs/read_write.c:987
 nbd_disconnect_and_put+0x100/0x190 drivers/block/nbd.c:1928
 nbd_genl_disconnect+0x34f/0x4f0 drivers/block/nbd.c:1966
 genl_family_rcv_msg+0x642/0xc40 net/netlink/genetlink.c:602
 do_readv+0x136/0x330 fs/read_write.c:1020
 genl_rcv_msg+0xbf/0x160 net/netlink/genetlink.c:627
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2455
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4665d9
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:00007f4eac949188 EFLAGS: 00000246 ORIG_RAX: 0000000000000013
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:638
RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9
 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
 netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1344
RDX: 0000000000000001 RSI: 000000002085dff0 RDI: 0000000000000003
RBP: 00007f4eac9491d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007ffcccb185bf R14: 00007f4eac949300 R15: 0000000000022000
 netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1909
 sock_sendmsg_nosec net/socket.c:622 [inline]
 sock_sendmsg+0xc3/0x120 net/socket.c:632
 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2115
 __sys_sendmsg net/socket.c:2153 [inline]
 __do_sys_sendmsg net/socket.c:2162 [inline]
 __se_sys_sendmsg net/socket.c:2160 [inline]
 __x64_sys_sendmsg+0x132/0x220 net/socket.c:2160
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4665d9
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:00007f910d904188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9
RDX: 0000000000000000 RSI: 00000000200002c0 RDI: 0000000000000005
RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80
R13: 00007fffe8307b8f R14: 00007f910d904300 R15: 0000000000022000
Modules linked in:
---[ end trace dd4b79edfca7a886 ]---
RIP: 0010:__lock_acquire+0x1eb/0x3ff0 kernel/locking/lockdep.c:3295
Code: 2b 29 00 00 48 81 c4 98 01 00 00 44 89 f8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 b3 2a 00 00 49 81 3e 20 b2 66 8c 0f 84 65 ff ff
RSP: 0018:ffff88803ad1f270 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000022 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: ffff88803bb743c0 R14: 0000000000000110 R15: 0000000000000001
FS:  00007f910d904700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000564862c6c8e0 CR3: 0000000091868000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/23 11:38 linux-4.19.y 1e986fe9ad15 3c7fef33 .config console log report info ci2-linux-4-19 general protection fault in page_fault
* Struck through repros no longer work on HEAD.