syzbot


WARNING: suspicious RCU usage in __alloc_pages_slowpath

Status: auto-closed as invalid on 2020/08/19 12:21
Reported-by: syzbot+b73bd02e6139545a18fe@syzkaller.appspotmail.com
First crash: 1822d, last: 1676d

Sample crash report:
1965979 pages RAM
0 pages HighMem/MovableOnly
339050 pages reserved
0 pages cma reserved
=============================
WARNING: suspicious RCU usage
4.14.176-syzkaller #0 Not tainted
-----------------------------
net/tipc/bearer.c:177 suspicious rcu_dereference_protected() usage!

other info that might help us debug this:

syz-executor.0: page allocation failure: order:0, mode:0x14000c4(GFP_KERNEL|GFP_DMA32), nodemask=(null)

rcu_scheduler_active = 2, debug_locks = 1
nla_parse: 1 callbacks suppressed
netlink: 20 bytes leftover after parsing attributes in process `syz-executor.4'.
syz-executor.0 cpuset=/ mems_allowed=0-1
2 locks held by syz-executor.1/14643:
CPU: 0 PID: 14651 Comm: syz-executor.0 Not tainted 4.14.176-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+0x13e/0x194 lib/dump_stack.c:58
 warn_alloc.cold+0x96/0x1af mm/page_alloc.c:3248
 __alloc_pages_slowpath+0x2114/0x26c0 mm/page_alloc.c:4095
 __alloc_pages_nodemask+0x5d3/0x700 mm/page_alloc.c:4198
 alloc_pages_current+0xe7/0x1e0 mm/mempolicy.c:2113
 alloc_pages include/linux/gfp.h:520 [inline]
 alloc_mmu_pages arch/x86/kvm/mmu.c:5142 [inline]
 kvm_mmu_create+0xd1/0x1c0 arch/x86/kvm/mmu.c:5160
 kvm_arch_vcpu_init+0x28b/0x8b0 arch/x86/kvm/x86.c:8306
 kvm_vcpu_init+0x26d/0x360 arch/x86/kvm/../../../virt/kvm/kvm_main.c:320
 vmx_create_vcpu+0xf3/0x2900 arch/x86/kvm/vmx.c:10072
 kvm_vm_ioctl_create_vcpu arch/x86/kvm/../../../virt/kvm/kvm_main.c:2549 [inline]
 kvm_vm_ioctl+0x49c/0x1430 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3057
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:500 [inline]
 do_vfs_ioctl+0x75a/0xfe0 fs/ioctl.c:684
 SYSC_ioctl fs/ioctl.c:701 [inline]
 SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x45c829
RSP: 002b:00007fd87d523c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000004e6ec0 RCX: 000000000045c829
RDX: 0000000000000000 RSI: 000000000000ae41 RDI: 0000000000000004
RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000000000000390 R14: 00000000004c605c R15: 00007fd87d5246d4
selinux_nlmsg_perm: 25 callbacks suppressed
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=13 sclass=netlink_route_socket pig=14668 comm=syz-executor.4
 #0:  (cb_lock){++++}, at: [<ffffffff851e4165>] genl_rcv+0x15/0x40 net/netlink/genetlink.c:635
 #1:  (genl_mutex){+.+.}, at: [<ffffffff851e76d2>] genl_lock net/netlink/genetlink.c:33 [inline]
 #1:  (genl_mutex){+.+.}, at: [<ffffffff851e76d2>] genl_rcv_msg+0x112/0x140 net/netlink/genetlink.c:623

stack backtrace:
CPU: 0 PID: 14643 Comm: syz-executor.1 Not tainted 4.14.176-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+0x13e/0x194 lib/dump_stack.c:58
 tipc_bearer_find+0x1ff/0x2f0 net/tipc/bearer.c:177
 tipc_nl_compat_link_set+0x41f/0xbc0 net/tipc/netlink_compat.c:797
 __tipc_nl_compat_doit net/tipc/netlink_compat.c:306 [inline]
 tipc_nl_compat_doit+0x18d/0x510 net/tipc/netlink_compat.c:354
 tipc_nl_compat_handle net/tipc/netlink_compat.c:1205 [inline]
 tipc_nl_compat_recv+0x95c/0xa10 net/tipc/netlink_compat.c:1287
 genl_family_rcv_msg+0x57c/0xb30 net/netlink/genetlink.c:600
 genl_rcv_msg+0xaf/0x140 net/netlink/genetlink.c:625
 netlink_rcv_skb+0x127/0x370 net/netlink/af_netlink.c:2433
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:636
 netlink_unicast_kernel net/netlink/af_netlink.c:1287 [inline]
 netlink_unicast+0x437/0x620 net/netlink/af_netlink.c:1313
 netlink_sendmsg+0x733/0xbe0 net/netlink/af_netlink.c:1878
 sock_sendmsg_nosec net/socket.c:646 [inline]
 sock_sendmsg+0xc5/0x100 net/socket.c:656
 ___sys_sendmsg+0x70a/0x840 net/socket.c:2062
 __sys_sendmsg+0xa3/0x120 net/socket.c:2096
 SYSC_sendmsg net/socket.c:2107 [inline]
 SyS_sendmsg+0x27/0x40 net/socket.c:2103
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x45c829
RSP: 002b:00007f615e1f6c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004ffec0 RCX: 000000000045c829
RDX: 0000000000000000 RSI: 0000000020000200 RDI: 0000000000000006
RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000009d0 R14: 00000000004cc810 R15: 00007f615e1f76d4
netlink: 20 bytes leftover after parsing attributes in process `syz-executor.4'.
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=13 sclass=netlink_route_socket pig=14710 comm=syz-executor.4
Mem-Info:
active_anon:586119 inactive_anon:181593 isolated_anon:0
 active_file:32828 inactive_file:50714 isolated_file:0
 unevictable:7713 dirty:238 writeback:0 unstable:0
 slab_reclaimable:17362 slab_unreclaimable:132337
 mapped:66815 shmem:12036 pagetables:21065 bounce:0
 free:484165 free_pcp:622 free_cma:0
Node 0 active_anon:1421140kB inactive_anon:381864kB active_file:252kB inactive_file:260kB unevictable:30852kB isolated(anon):0kB isolated(file):0kB mapped:230688kB dirty:60kB writeback:0kB shmem:37716kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 960512kB writeback_tmp:0kB unstable:0kB all_unreclaimable? yes
Node 1 active_anon:923280kB inactive_anon:344512kB active_file:131104kB inactive_file:202664kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:36496kB dirty:944kB writeback:0kB shmem:10428kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 12288kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no
Node 0 DMA free:10296kB min:220kB low:272kB high:324kB active_anon:0kB inactive_anon:1308kB active_file:0kB inactive_file:0kB unevictable:4096kB writepending:0kB present:15992kB managed:15908kB mlocked:4096kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
lowmem_reserve[]: 0 2557 2557 2557 2557
Node 0 DMA32 free:21156kB min:36272kB low:45340kB high:54408kB active_anon:1421140kB inactive_anon:380556kB active_file:252kB inactive_file:260kB unevictable:26756kB writepending:60kB present:3129332kB managed:2621268kB mlocked:26624kB kernel_stack:16512kB pagetables:55444kB bounce:0kB free_pcp:1228kB local_pcp:652kB free_cma:0kB
lowmem_reserve[]: 0 0 0 0 0
Node 0 Normal free:0kB min:4kB low:4kB high:4kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:786432kB managed:348kB mlocked:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
lowmem_reserve[]: 0 0 0 0 0
Node 1 Normal free:1904352kB min:53612kB low:67012kB high:80412kB active_anon:923280kB inactive_anon:344512kB active_file:131104kB inactive_file:202664kB unevictable:0kB writepending:944kB present:3932160kB managed:3870192kB mlocked:0kB kernel_stack:16032kB pagetables:28760kB bounce:0kB free_pcp:1412kB local_pcp:688kB free_cma:0kB
lowmem_reserve[]: 0 0 0 0 0
Node 0 DMA: 4*4kB (UMEH) 1*8kB (E) 2*16kB (EH) 4*32kB (UMEH) 4*64kB (UMEH) 3*128kB (MEH) 3*256kB (UEH) 3*512kB (UME) 3*1024kB (UEH) 2*2048kB (UE) 0*4096kB = 10296kB
Node 0 DMA32: 721*4kB (UMEH) 472*8kB (UMEH) 424*16kB (UMEH) 97*32kB (UMH) 2*64kB (M) 1*128kB (H) 5*256kB (H) 2*512kB (H) 2*1024kB (H) 0*2048kB 0*4096kB = 21156kB
Node 0 Normal: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 0kB
Node 1 Normal: 252*4kB (UME) 169*8kB (UME) 120*16kB (UME) 482*32kB (UME) 284*64kB (UME) 26*128kB (UME) 113*256kB (UME) 74*512kB (UME) 21*1024kB (UME) 3*2048kB (UM) 432*4096kB (UM) = 1905144kB
Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=1048576kB
Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB
Node 1 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=1048576kB
Node 1 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB
93587 total pagecache pages
0 pages in swap cache
Swap cache stats: add 0, delete 0, find 0/0
Free swap  = 0kB
Total swap = 0kB
1965979 pages RAM
0 pages HighMem/MovableOnly
339050 pages reserved
0 pages cma reserved
netlink: 20 bytes leftover after parsing attributes in process `syz-executor.4'.
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=13 sclass=netlink_route_socket pig=14732 comm=syz-executor.4
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=14731 comm=syz-executor.0
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=14731 comm=syz-executor.0
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=14731 comm=syz-executor.0
netlink: 20 bytes leftover after parsing attributes in process `syz-executor.4'.
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=14731 comm=syz-executor.0
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=13 sclass=netlink_route_socket pig=14760 comm=syz-executor.4
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=14731 comm=syz-executor.0
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=14731 comm=syz-executor.0
netlink: 20 bytes leftover after parsing attributes in process `syz-executor.4'.
netlink: 20 bytes leftover after parsing attributes in process `syz-executor.4'.
netlink: 20 bytes leftover after parsing attributes in process `syz-executor.4'.
netlink: 20 bytes leftover after parsing attributes in process `syz-executor.4'.

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/04/21 12:20 linux-4.14.y c10b57a567e4 f20434a8 .config console log report ci2-linux-4-14
2020/04/14 09:45 linux-4.14.y c10b57a567e4 7c54686a .config console log report ci2-linux-4-14
2020/03/31 07:20 linux-4.14.y 01364dad1d45 c8d1cc20 .config console log report ci2-linux-4-14
2020/02/22 05:09 linux-4.14.y 98db2bf27b9e 2ffa6679 .config console log report ci2-linux-4-14
2019/11/28 00:51 linux-4.14.y 43598c571e7e 0d63f89c .config console log report ci2-linux-4-14
* Struck through repros no longer work on HEAD.