WARNING: suspicious RCU usage in 4

12 views
Skip to first unread message

syzbot

unread,
Jun 28, 2019, 10:52:07 AM6/28/19
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: f4cc0ed9 Linux 4.14.131
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=173f03ada00000
kernel config: https://syzkaller.appspot.com/x/.config?x=ab1953b2cdac00f5
dashboard link: https://syzkaller.appspot.com/bug?extid=bea346b975952d8f76c9
compiler: gcc (GCC) 9.0.0 20181231 (experimental)

Unfortunately, I don't have any reproducer for this crash yet.

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+bea346...@syzkaller.appspotmail.com

FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
=============================
WARNING: suspicious RCU usage
CPU: 0 PID: 11596 Comm: syz-executor.2 Not tainted 4.14.131 #25
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
Call Trace:
4.14.131 #25 Not tainted
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x138/0x19c lib/dump_stack.c:53
fail_dump lib/fault-inject.c:51 [inline]
should_fail.cold+0x10f/0x159 lib/fault-inject.c:149
should_failslab+0xdb/0x130 mm/failslab.c:32
slab_pre_alloc_hook mm/slab.h:421 [inline]
slab_alloc_node mm/slab.c:3297 [inline]
kmem_cache_alloc_node+0x287/0x780 mm/slab.c:3640
-----------------------------
__alloc_skb+0x9c/0x500 net/core/skbuff.c:193
alloc_skb include/linux/skbuff.h:980 [inline]
nlmsg_new include/net/netlink.h:511 [inline]
netlink_ack+0x21c/0x9a0 net/netlink/af_netlink.c:2359
net/tipc/bearer.c:177 suspicious rcu_dereference_protected() usage!
netlink_rcv_skb+0x2fc/0x3c0 net/netlink/af_netlink.c:2438
rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:4297
netlink_unicast_kernel net/netlink/af_netlink.c:1286 [inline]
netlink_unicast+0x45d/0x780 net/netlink/af_netlink.c:1312
netlink_sendmsg+0x7c4/0xc60 net/netlink/af_netlink.c:1877
sock_sendmsg_nosec net/socket.c:646 [inline]
sock_sendmsg+0xce/0x110 net/socket.c:656
___sys_sendmsg+0x70a/0x840 net/socket.c:2062
__sys_sendmsg+0xb9/0x140 net/socket.c:2096
SYSC_sendmsg net/socket.c:2107 [inline]
SyS_sendmsg+0x2d/0x50 net/socket.c:2103
do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x459519
RSP: 002b:00007fa8de4a8c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fa8de4a8c90 RCX: 0000000000459519
RDX: 0000000000000000 RSI: 0000000020000980 RDI: 0000000000000004
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fa8de4a96d4
R13: 00000000004c723c R14: 00000000004dc698 R15: 0000000000000005

other info that might help us debug this:


rcu_scheduler_active = 2, debug_locks = 1
2 locks held by syz-executor.1/11599:
#0: (cb_lock){++++}, at: [<ffffffff84f379fa>] genl_rcv+0x1a/0x40
net/netlink/genetlink.c:635
#1: (genl_mutex){+.+.}, at: [<ffffffff84f38769>] genl_lock
net/netlink/genetlink.c:33 [inline]
#1: (genl_mutex){+.+.}, at: [<ffffffff84f38769>] genl_rcv_msg+0x119/0x150
net/netlink/genetlink.c:623

stack backtrace:
CPU: 1 PID: 11599 Comm: syz-executor.1 Not tainted 4.14.131 #25
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+0x138/0x19c lib/dump_stack.c:53
lockdep_rcu_suspicious+0x153/0x15d kernel/locking/lockdep.c:4662
tipc_bearer_find+0x20a/0x300 net/tipc/bearer.c:177
tipc_nl_compat_link_set+0x433/0xbf0 net/tipc/netlink_compat.c:786
__tipc_nl_compat_doit net/tipc/netlink_compat.c:304 [inline]
tipc_nl_compat_doit+0x16b/0x510 net/tipc/netlink_compat.c:351
tipc_nl_compat_handle net/tipc/netlink_compat.c:1183 [inline]
tipc_nl_compat_recv+0x9b8/0xaf0 net/tipc/netlink_compat.c:1265
genl_family_rcv_msg+0x614/0xc30 net/netlink/genetlink.c:600
genl_rcv_msg+0xb4/0x150 net/netlink/genetlink.c:625
netlink_rcv_skb+0x14f/0x3c0 net/netlink/af_netlink.c:2432
genl_rcv+0x29/0x40 net/netlink/genetlink.c:636
netlink_unicast_kernel net/netlink/af_netlink.c:1286 [inline]
netlink_unicast+0x45d/0x780 net/netlink/af_netlink.c:1312
netlink_sendmsg+0x7c4/0xc60 net/netlink/af_netlink.c:1877
sock_sendmsg_nosec net/socket.c:646 [inline]
sock_sendmsg+0xce/0x110 net/socket.c:656
___sys_sendmsg+0x70a/0x840 net/socket.c:2062
__sys_sendmsg+0xb9/0x140 net/socket.c:2096
SYSC_sendmsg net/socket.c:2107 [inline]
SyS_sendmsg+0x2d/0x50 net/socket.c:2103
do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x459519
RSP: 002b:00007fa638eecc78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459519
RDX: 0000000000000000 RSI: 00000000200001c0 RDI: 0000000000000003
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fa638eed6d4
R13: 00000000004c6f1d R14: 00000000004dc278 R15: 00000000ffffffff
net_ratelimit: 21 callbacks suppressed
protocol 88fb is buggy, dev hsr_slave_0
protocol 88fb is buggy, dev hsr_slave_1
protocol 88fb is buggy, dev hsr_slave_0
protocol 88fb is buggy, dev hsr_slave_1
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 1 PID: 11619 Comm: syz-executor.2 Not tainted 4.14.131 #25
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+0x138/0x19c lib/dump_stack.c:53
fail_dump lib/fault-inject.c:51 [inline]
should_fail.cold+0x10f/0x159 lib/fault-inject.c:149
should_failslab+0xdb/0x130 mm/failslab.c:32
slab_pre_alloc_hook mm/slab.h:421 [inline]
slab_alloc_node mm/slab.c:3297 [inline]
kmem_cache_alloc_node_trace+0x280/0x770 mm/slab.c:3659
__do_kmalloc_node mm/slab.c:3681 [inline]
__kmalloc_node_track_caller+0x3d/0x80 mm/slab.c:3696
__kmalloc_reserve.isra.0+0x40/0xe0 net/core/skbuff.c:137
__alloc_skb+0xcf/0x500 net/core/skbuff.c:205
alloc_skb include/linux/skbuff.h:980 [inline]
nlmsg_new include/net/netlink.h:511 [inline]
netlink_ack+0x21c/0x9a0 net/netlink/af_netlink.c:2359
netlink_rcv_skb+0x2fc/0x3c0 net/netlink/af_netlink.c:2438
rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:4297
netlink_unicast_kernel net/netlink/af_netlink.c:1286 [inline]
netlink_unicast+0x45d/0x780 net/netlink/af_netlink.c:1312
netlink_sendmsg+0x7c4/0xc60 net/netlink/af_netlink.c:1877
sock_sendmsg_nosec net/socket.c:646 [inline]
sock_sendmsg+0xce/0x110 net/socket.c:656
___sys_sendmsg+0x70a/0x840 net/socket.c:2062
__sys_sendmsg+0xb9/0x140 net/socket.c:2096
SYSC_sendmsg net/socket.c:2107 [inline]
SyS_sendmsg+0x2d/0x50 net/socket.c:2103
do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x459519
RSP: 002b:00007fa8de4a8c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fa8de4a8c90 RCX: 0000000000459519
RDX: 0000000000000000 RSI: 0000000020000980 RDI: 0000000000000004
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fa8de4a96d4
R13: 00000000004c723c R14: 00000000004dc698 R15: 0000000000000005
protocol 88fb is buggy, dev hsr_slave_0
protocol 88fb is buggy, dev hsr_slave_1
bond0: option active_slave: mode dependency failed, not supported in mode
balance-rr(0)
audit: type=1400 audit(1561729879.278:93): avc: denied { ioctl } for
pid=11644 comm="syz-executor.4" path="socket:[41879]" dev="sockfs"
ino=41879 ioctlcmd=0x8995
scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023
tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023
tclass=netlink_netfilter_socket permissive=1
bond0: option active_slave: mode dependency failed, not supported in mode
balance-rr(0)
protocol 88fb is buggy, dev hsr_slave_0
protocol 88fb is buggy, dev hsr_slave_1
audit: type=1400 audit(1561729879.888:94): avc: denied { accept } for
pid=11693 comm="syz-executor.4"
scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023
tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023
tclass=netlink_generic_socket permissive=1
netlink: 8 bytes leftover after parsing attributes in process
`syz-executor.2'.
protocol 88fb is buggy, dev hsr_slave_0
protocol 88fb is buggy, dev hsr_slave_1
Unknown ioctl 21550
Bluetooth: hci0 sending frame failed (-49)
netlink: 8 bytes leftover after parsing attributes in process
`syz-executor.2'.
netlink: 8 bytes leftover after parsing attributes in process
`syz-executor.2'.
audit: type=1400 audit(1561729880.798:95): avc: denied { associate } for
pid=11778 comm="syz-executor.4" name="file0"
scontext=unconfined_u:object_r:unlabeled_t:s0
tcontext=system_u:object_r:unlabeled_t:s0 tclass=filesystem permissive=1
overlayfs: fs on '.' does not support file handles, falling back to
index=off.
overlayfs: filesystem on './file0' not supported as upperdir
overlayfs: fs on '.' does not support file handles, falling back to
index=off.
overlayfs: maximum fs stacking depth exceeded
audit: type=1400 audit(1561729881.288:96): avc: denied { map } for
pid=11789 comm="syz-executor.1"
path=2F726F6F742F73797A6B616C6C65722D746573746469723734363933323737322F73797A6B616C6C65722E53554658685A2F3136312F7374617409C0D2FEBCF9DF2DEAC8C177FF171248E91193513049F831550D6F7DE66CF617732743E397D31B0512A5608AAFF01E7952340CD6FD
dev="sda1" ino=16722 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023
tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
Bluetooth: hci0 command 0x1003 tx timeout
Bluetooth: hci0 sending frame failed (-49)
Bluetooth: hci1 command 0x1003 tx timeout
Bluetooth: hci1 sending frame failed (-49)
net_ratelimit: 20 callbacks suppressed
protocol 88fb is buggy, dev hsr_slave_0
protocol 88fb is buggy, dev hsr_slave_1
protocol 88fb is buggy, dev hsr_slave_0
protocol 88fb is buggy, dev hsr_slave_1
protocol 88fb is buggy, dev hsr_slave_0
protocol 88fb is buggy, dev hsr_slave_1
Bluetooth: hci0 command 0x1001 tx timeout
Bluetooth: hci0 sending frame failed (-49)
protocol 88fb is buggy, dev hsr_slave_0
protocol 88fb is buggy, dev hsr_slave_1
protocol 88fb is buggy, dev hsr_slave_0
protocol 88fb is buggy, dev hsr_slave_1
Bluetooth: hci1 command 0x1001 tx timeout
Bluetooth: hci1 sending frame failed (-49)
Bluetooth: hci0 command 0x1009 tx timeout
Bluetooth: hci1 command 0x1009 tx timeout


---
This bug is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Dec 5, 2019, 3:57:05 PM12/5/19
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages