syzbot


WARNING: suspicious RCU usage in should_fail (3)

Status: closed as invalid on 2018/02/12 19:58
Subsystems: mm
[Documentation on labels]
First crash: 2541d, last: 2541d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING: suspicious RCU usage in should_fail (7) mm 1 2534d 2534d 0/28 closed as invalid on 2018/02/19 12:58
upstream WARNING: suspicious RCU usage in should_fail (2) mm 1 2541d 2541d 0/28 closed as invalid on 2018/02/12 11:24
upstream WARNING: suspicious RCU usage in should_fail (4) rds 1 2539d 2539d 0/28 closed as invalid on 2018/02/15 08:58
upstream WARNING: suspicious RCU usage in should_fail (8) net 1 2470d 2470d 0/28 closed as invalid on 2018/04/24 13:49
upstream WARNING: suspicious RCU usage in should_fail rds 8 2541d 2543d 0/28 closed as invalid on 2018/02/12 10:57
upstream WARNING: suspicious RCU usage in should_fail (6) rds 1 2536d 2536d 0/28 closed as invalid on 2018/02/17 12:58
upstream WARNING: suspicious RCU usage in should_fail (5) mm 1 2536d 2536d 0/28 closed as invalid on 2018/02/17 10:58

Sample crash report:
FAULT_INJECTION: forcing a failure.
name fail_page_alloc, interval 1, probability 0, space 0, times 0
=============================
CPU: 1 PID: 17551 Comm: syz-executor6 Not tainted 4.16.0-rc1+ #220
WARNING: suspicious RCU usage
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+0x194/0x257 lib/dump_stack.c:53
 fail_dump lib/fault-inject.c:51 [inline]
 should_fail+0x8c0/0xa40 lib/fault-inject.c:149
4.16.0-rc1+ #220 Not tainted
-----------------------------
./include/linux/rcupdate.h:302 Illegal context switch in RCU read-side critical section!

other info that might help us debug this:


rcu_scheduler_active = 2, debug_locks = 1
1 lock held by syz-executor4/17548:
 should_fail_alloc_page mm/page_alloc.c:2955 [inline]
 prepare_alloc_pages mm/page_alloc.c:4194 [inline]
 __alloc_pages_nodemask+0x327/0xdd0 mm/page_alloc.c:4233
 #0: 
 (
rcu_read_lock
 alloc_pages_current+0xb6/0x1e0 mm/mempolicy.c:2055
){....}
 alloc_pages include/linux/gfp.h:492 [inline]
 skb_page_frag_refill+0x358/0x5f0 net/core/sock.c:2208
, at: [<00000000a1f8e8b7>] __rds_conn_create+0xe46/0x1b50 net/rds/connection.c:218

stack backtrace:
 tun_build_skb.isra.50+0x2f0/0x1850 drivers/net/tun.c:1631
 tun_get_user+0x17d0/0x3940 drivers/net/tun.c:1802
 tun_chr_write_iter+0xbd/0x1c0 drivers/net/tun.c:1988
 call_write_iter include/linux/fs.h:1781 [inline]
 do_iter_readv_writev+0x55c/0x830 fs/read_write.c:653
 do_iter_write+0x154/0x540 fs/read_write.c:932
 compat_writev+0x225/0x420 fs/read_write.c:1246
 do_compat_writev+0x115/0x220 fs/read_write.c:1267
 C_SYSC_writev fs/read_write.c:1278 [inline]
 compat_SyS_writev+0x26/0x30 fs/read_write.c:1274
 do_syscall_32_irqs_on arch/x86/entry/common.c:330 [inline]
 do_fast_syscall_32+0x3ee/0xfa1 arch/x86/entry/common.c:392
 entry_SYSENTER_compat+0x54/0x63 arch/x86/entry/entry_64_compat.S:129
RIP: 0023:0xf7fd3c79
RSP: 002b:00000000f77cf034 EFLAGS: 00000296 ORIG_RAX: 0000000000000092
RAX: ffffffffffffffda RBX: 0000000000000012 RCX: 00000000f77cf084
RDX: 0000000000000001 RSI: 000000000813af00 RDI: 0000000000000014
RBP: 00000000f77cf158 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
CPU: 0 PID: 17548 Comm: syz-executor4 Not tainted 4.16.0-rc1+ #220
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+0x194/0x257 lib/dump_stack.c:53
 lockdep_rcu_suspicious+0x123/0x170 kernel/locking/lockdep.c:4592
 rcu_preempt_sleep_check include/linux/rcupdate.h:301 [inline]
 ___might_sleep+0x385/0x470 kernel/sched/core.c:6093
 __might_sleep+0x95/0x190 kernel/sched/core.c:6081
 slab_pre_alloc_hook mm/slab.h:420 [inline]
 slab_alloc mm/slab.c:3365 [inline]
 kmem_cache_alloc+0x2a2/0x760 mm/slab.c:3539
 rds_tcp_conn_alloc+0xa7/0x4e0 net/rds/tcp.c:296
 __rds_conn_create+0x112f/0x1b50 net/rds/connection.c:227
 rds_conn_create_outgoing+0x3f/0x50 net/rds/connection.c:309
 rds_sendmsg+0xda3/0x2390 net/rds/send.c:1126
 sock_sendmsg_nosec net/socket.c:630 [inline]
 sock_sendmsg+0xca/0x110 net/socket.c:640
 SYSC_sendto+0x361/0x5c0 net/socket.c:1747
 SyS_sendto+0x40/0x50 net/socket.c:1715
 do_syscall_32_irqs_on arch/x86/entry/common.c:330 [inline]
 do_fast_syscall_32+0x3ee/0xfa1 arch/x86/entry/common.c:392
 entry_SYSENTER_compat+0x54/0x63 arch/x86/entry/entry_64_compat.S:129
RIP: 0023:0xf7fdac79
RSP: 002b:00000000f77d609c EFLAGS: 00000286 ORIG_RAX: 0000000000000171
RAX: ffffffffffffffda RBX: 0000000000000013 RCX: 0000000020fc2000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000002069affb
RBP: 0000000000000010 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
BUG: sleeping function called from invalid context at mm/slab.h:420
in_atomic(): 1, irqs_disabled(): 0, pid: 17548, name: syz-executor4
1 lock held by syz-executor4/17548:
 #0:  (rcu_read_lock){....}, at: [<00000000a1f8e8b7>] __rds_conn_create+0xe46/0x1b50 net/rds/connection.c:218
CPU: 0 PID: 17548 Comm: syz-executor4 Not tainted 4.16.0-rc1+ #220
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+0x194/0x257 lib/dump_stack.c:53
 ___might_sleep+0x2b2/0x470 kernel/sched/core.c:6128
 __might_sleep+0x95/0x190 kernel/sched/core.c:6081
 slab_pre_alloc_hook mm/slab.h:420 [inline]
 slab_alloc mm/slab.c:3365 [inline]
 kmem_cache_alloc+0x2a2/0x760 mm/slab.c:3539
 rds_tcp_conn_alloc+0xa7/0x4e0 net/rds/tcp.c:296
 __rds_conn_create+0x112f/0x1b50 net/rds/connection.c:227
 rds_conn_create_outgoing+0x3f/0x50 net/rds/connection.c:309
 rds_sendmsg+0xda3/0x2390 net/rds/send.c:1126
 sock_sendmsg_nosec net/socket.c:630 [inline]
 sock_sendmsg+0xca/0x110 net/socket.c:640
 SYSC_sendto+0x361/0x5c0 net/socket.c:1747
 SyS_sendto+0x40/0x50 net/socket.c:1715
 do_syscall_32_irqs_on arch/x86/entry/common.c:330 [inline]
 do_fast_syscall_32+0x3ee/0xfa1 arch/x86/entry/common.c:392
 entry_SYSENTER_compat+0x54/0x63 arch/x86/entry/entry_64_compat.S:129
RIP: 0023:0xf7fdac79
RSP: 002b:00000000f77d609c EFLAGS: 00000286 ORIG_RAX: 0000000000000171
RAX: ffffffffffffffda RBX: 0000000000000013 RCX: 0000000020fc2000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000002069affb
RBP: 0000000000000010 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
SELinux: failed to load policy
SELinux: failed to load policy
QAT: Invalid ioctl
QAT: Invalid ioctl
QAT: Invalid ioctl
QAT: Invalid ioctl
QAT: Invalid ioctl
QAT: Invalid ioctl
device eql entered promiscuous mode
audit: type=1400 audit(1518463362.156:115): avc:  denied  { map } for  pid=18123 comm="syz-executor1" path="/root/syz-executor1" dev="sda1" ino=16480 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
audit: type=1400 audit(1518463362.159:116): avc:  denied  { map } for  pid=18123 comm="syz-executor1" path="/sys/kernel/debug/kcov" dev="debugfs" ino=9083 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:debugfs_t:s0 tclass=file permissive=1
ptrace attach of "/root/syz-executor2"[4208] was attempted by "/root/syz-executor2"[18168]
ptrace attach of "/root/syz-executor2"[4208] was attempted by "/root/syz-executor2"[18156]
IPVS: ftp: loaded support on port[0] = 21
audit: type=1400 audit(1518463363.061:117): avc:  denied  { map } for  pid=18184 comm="sh" path="/bin/dash" dev="sda1" ino=1473 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1
IPv6: ADDRCONF(NETDEV_UP): bridge0: link is not ready
netlink: 'syz-executor5': attribute type 8 has an invalid length.
netlink: 'syz-executor5': attribute type 8 has an invalid length.
audit: type=1400 audit(1518463363.956:118): avc:  denied  { map } for  pid=18366 comm="syz-executor6" path="/dev/ppp" dev="devtmpfs" ino=9126 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:ppp_device_t:s0 tclass=chr_file permissive=1
netlink: 'syz-executor5': attribute type 8 has an invalid length.
audit: type=1400 audit(1518463364.025:119): avc:  denied  { lock } for  pid=18369 comm="syz-executor7" path="socket:[44320]" dev="sockfs" ino=44320 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: 'syz-executor5': attribute type 8 has an invalid length.
TCP: request_sock_TCPv6: Possible SYN flooding on port 20010. Sending cookies.  Check SNMP counters.
IPv4: Oversized IP packet from 127.0.0.1
TCP: request_sock_TCPv6: Possible SYN flooding on port 20010. Sending cookies.  Check SNMP counters.
TCP: request_sock_TCPv6: Possible SYN flooding on port 20010. Sending cookies.  Check SNMP counters.
audit: type=1400 audit(1518463364.745:120): avc:  denied  { getattr } for  pid=18550 comm="syz-executor5" path="socket:[44466]" dev="sockfs" ino=44466 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
TCP: request_sock_TCPv6: Possible SYN flooding on port 20010. Sending cookies.  Check SNMP counters.
TCP: request_sock_TCPv6: Possible SYN flooding on port 20010. Sending cookies.  Check SNMP counters.
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 1 PID: 18738 Comm: syz-executor3 Tainted: G        W        4.16.0-rc1+ #220
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+0x194/0x257 lib/dump_stack.c:53
 fail_dump lib/fault-inject.c:51 [inline]
 should_fail+0x8c0/0xa40 lib/fault-inject.c:149
 should_failslab+0xec/0x120 mm/failslab.c:32
 slab_pre_alloc_hook mm/slab.h:422 [inline]
 slab_alloc mm/slab.c:3365 [inline]
 kmem_cache_alloc_trace+0x4b/0x740 mm/slab.c:3605
 kmalloc include/linux/slab.h:512 [inline]
 kzalloc include/linux/slab.h:701 [inline]
 snd_mixer_oss_put_volume1_vol.isra.10+0x91/0x3d0 sound/core/oss/mixer_oss.c:642
 snd_mixer_oss_put_volume1+0x7e4/0xc40 sound/core/oss/mixer_oss.c:723
 snd_mixer_oss_set_volume sound/core/oss/mixer_oss.c:304 [inline]
 snd_mixer_oss_ioctl1+0x648/0x1c90 sound/core/oss/mixer_oss.c:367
 snd_mixer_oss_ioctl_compat+0x4c/0x70 sound/core/oss/mixer_oss.c:405
 C_SYSC_ioctl fs/compat_ioctl.c:1461 [inline]
 compat_SyS_ioctl+0x151/0x2a30 fs/compat_ioctl.c:1407
 do_syscall_32_irqs_on arch/x86/entry/common.c:330 [inline]
 do_fast_syscall_32+0x3ee/0xfa1 arch/x86/entry/common.c:392
 entry_SYSENTER_compat+0x54/0x63 arch/x86/entry/entry_64_compat.S:129
RIP: 0023:0xf7fe3c79
RSP: 002b:00000000f77df09c EFLAGS: 00000286 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 0000000000000013 RCX: 000000004008af00
RDX: 0000000020ce6ff8 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
audit: type=1400 audit(1518463366.863:121): avc:  denied  { create } for  pid=18956 comm="syz-executor0" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_connector_socket permissive=1
IPVS: ftp: loaded support on port[0] = 21
IPv6: ADDRCONF(NETDEV_UP): bridge0: link is not ready
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 1 PID: 19278 Comm: syz-executor4 Tainted: G        W        4.16.0-rc1+ #220
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+0x194/0x257 lib/dump_stack.c:53
 fail_dump lib/fault-inject.c:51 [inline]
 should_fail+0x8c0/0xa40 lib/fault-inject.c:149

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/02/12 19:22 upstream 178e834c47b0 88bc17df .config console log report ci-upstream-kasan-gce-386
* Struck through repros no longer work on HEAD.