============================= WARNING: suspicious RCU usage 4.15.0+ #217 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-executor1/6111: #0: (rcu_read_lock){....}, at: [<0000000000ccb4b5>] __rds_conn_create+0xe46/0x1b50 net/rds/connection.c:218 stack backtrace: CPU: 0 PID: 6111 Comm: syz-executor1 Not tainted 4.15.0+ #217 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:0xf7f9dc79 RSP: 002b:00000000f779909c 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: 6111, name: syz-executor1 1 lock held by syz-executor1/6111: #0: (rcu_read_lock){....}, at: [<0000000000ccb4b5>] __rds_conn_create+0xe46/0x1b50 net/rds/connection.c:218 CPU: 0 PID: 6111 Comm: syz-executor1 Not tainted 4.15.0+ #217 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:0xf7f9dc79 RSP: 002b:00000000f779909c 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 capability: warning: `syz-executor5' uses 32-bit capabilities (legacy support in use) kauditd_printk_skb: 8 callbacks suppressed audit: type=1400 audit(1518291303.231:38): avc: denied { setattr } for pid=6142 comm="syz-executor5" name="map_files" dev="proc" ino=16332 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=dir permissive=1 device syz5 entered promiscuous mode binder: tried to use weak ref as strong ref binder: 6162:6166 got transaction to invalid handle binder: 6162:6166 transaction failed 29201/-22, size 0-0 line 2842 binder_alloc: binder_alloc_mmap_handler: 6162 20000000-20002000 already mapped failed -16 device syz5 left promiscuous mode binder: BINDER_SET_CONTEXT_MGR already set binder: 6162:6166 ioctl 40046207 0 returned -16 binder_alloc: 6162: binder_alloc_buf, no vma binder: 6162:6166 transaction failed 29189/-3, size 40-8 line 2957 binder: 6162:6179 got transaction to invalid handle binder: 6162:6179 transaction failed 29201/-22, size 0-0 line 2842 binder: undelivered TRANSACTION_ERROR: 29189 binder: release 6162:6166 transaction 9 out, still active binder: send failed reply for transaction 9, target dead audit: type=1400 audit(1518291303.758:39): avc: denied { map } for pid=6215 comm="syz-executor7" path="/41/file0/bus" dev="ramfs" ino=17519 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:ramfs_t:s0 tclass=file permissive=1 TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. audit: type=1400 audit(1518291303.849:40): avc: denied { map } for pid=6245 comm="syz-executor4" path=2F6D656D66643A776C616E302A6D696D655F747970652D747275737465647D26776C616E30766D6E6574312E747275737465647B5C7B47504C202864656C6574656429 dev="tmpfs" ino=17540 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:tmpfs_t:s0 tclass=file permissive=1 sg_write: data in/out 1969188161/6 bytes for SCSI command 0x73-- guessing data in; program syz-executor3 not setting count and/or reply_len properly sg_write: data in/out 29964/6 bytes for SCSI command 0x0-- guessing data in; program syz-executor3 not setting count and/or reply_len properly device lo entered promiscuous mode device lo left promiscuous mode sg_write: data in/out 1969188161/6 bytes for SCSI command 0x73-- guessing data in; program syz-executor3 not setting count and/or reply_len properly device lo entered promiscuous mode device lo left promiscuous mode syz-executor0 uses obsolete (PF_INET,SOCK_PACKET) audit: type=1400 audit(1518291304.363:41): avc: denied { getrlimit } for pid=6371 comm="syz-executor1" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=process permissive=1 autofs4:pid:6394:check_dev_ioctl_version: ioctl control interface version mismatch: kernel(1.1), user(3590324411.0), cmd(0x0000937e) cgroup: cgroup2: unknown option "" autofs4:pid:6394:validate_dev_ioctl: invalid device control module version supplied for cmd(0x0000937e) cgroup: cgroup2: unknown option "" syz-executor0 (6401): /proc/6406/oom_adj is deprecated, please use /proc/6406/oom_score_adj instead. autofs4:pid:6410:check_dev_ioctl_version: ioctl control interface version mismatch: kernel(1.1), user(3590324411.0), cmd(0x0000937e) autofs4:pid:6410:validate_dev_ioctl: invalid device control module version supplied for cmd(0x0000937e) audit: type=1400 audit(1518291304.743:42): avc: denied { bind } for pid=6447 comm="syz-executor2" 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 audit: type=1400 audit(1518291304.830:43): avc: denied { setpcap } for pid=6481 comm="syz-executor6" capability=8 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 audit: type=1400 audit(1518291304.973:44): avc: denied { getopt } for pid=6516 comm="syz-executor1" 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-executor0': attribute type 1 has an invalid length. netlink: 'syz-executor0': attribute type 1 has an invalid length. audit: type=1326 audit(1518291305.462:45): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=6618 comm="syz-executor1" exe="/root/syz-executor1" sig=31 arch=40000003 syscall=240 compat=1 ip=0xf7f9dc79 code=0x0 binder: 6746:6750 BC_FREE_BUFFER u0000000020007f72 no match binder_alloc: binder_alloc_mmap_handler: 6746 20000000-20002000 already mapped failed -16 binder: BINDER_SET_CONTEXT_MGR already set binder: 6746:6750 ioctl 40046207 0 returned -16 binder_alloc: 6746: binder_alloc_buf, no vma binder: 6746:6771 transaction failed 29189/-3, size 40-8 line 2957 binder: 6746:6750 BC_FREE_BUFFER u0000000020007f72 no match binder: undelivered TRANSACTION_ERROR: 29189 binder: release 6746:6750 transaction 16 out, still active binder: unexpected work type, 4, not freed binder: undelivered TRANSACTION_COMPLETE binder: send failed reply for transaction 16, target dead binder: binder_mmap: 6837 206a3000-206a7000 bad vm_flags failed -1 binder: binder_mmap: 6837 206a3000-206a7000 bad vm_flags failed -1 QAT: Invalid ioctl QAT: Invalid ioctl device syz5 entered promiscuous mode device syz5 left promiscuous mode audit: type=1401 audit(1518291308.115:46): op=setxattr invalid_context=000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 audit: type=1401 audit(1518291308.148:47): op=setxattr invalid_context=000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 audit: type=1400 audit(1518291308.627:48): avc: denied { setuid } for pid=7214 comm="syz-executor7" capability=7 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 sock: sock_set_timeout: `syz-executor6' (pid 7335) tries to set negative timeout sock: sock_set_timeout: `syz-executor6' (pid 7345) tries to set negative timeout binder_alloc: binder_alloc_mmap_handler: 7445 2011a000-2051a000 already mapped failed -16 audit: type=1400 audit(1518291309.744:49): avc: denied { read } for pid=7488 comm="syz-executor3" dev="sockfs" ino=20070 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 audit: type=1400 audit(1518291309.775:50): avc: denied { getattr } for pid=7488 comm="syz-executor3" name="NETLINK" dev="sockfs" ino=20070 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-executor2': attribute type 1 has an invalid length. binder: BINDER_SET_CONTEXT_MGR already set binder: 7531:7536 ioctl 40046207 0 returned -16 binder: send failed reply for transaction 21 to 7531:7536 audit: type=1400 audit(1518291309.986:51): avc: denied { setopt } for pid=7555 comm="syz-executor6" 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 binder: undelivered TRANSACTION_COMPLETE binder: undelivered TRANSACTION_ERROR: 29189 SELinux: unrecognized netlink message: protocol=9 nlmsg_type=32 sclass=netlink_audit_socket pig=7687 comm=syz-executor3 SELinux: unrecognized netlink message: protocol=9 nlmsg_type=32 sclass=netlink_audit_socket pig=7695 comm=syz-executor3 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 1 CPU: 1 PID: 7797 Comm: syz-executor5 Tainted: G W 4.15.0+ #217 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] __do_kmalloc mm/slab.c:3703 [inline] __kmalloc+0x63/0x760 mm/slab.c:3714 kmalloc include/linux/slab.h:517 [inline] sock_kmalloc+0x112/0x190 net/core/sock.c:1986 alg_setkey crypto/af_alg.c:215 [inline] alg_setsockopt+0x210/0x350 crypto/af_alg.c:256 C_SYSC_setsockopt net/compat.c:406 [inline] compat_SyS_setsockopt+0x2e7/0x410 net/compat.c:386 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:0xf7f8bc79 RSP: 002b:00000000f778709c EFLAGS: 00000286 ORIG_RAX: 000000000000016e RAX: ffffffffffffffda RBX: 0000000000000013 RCX: 0000000000000117 RDX: 0000000000000001 RSI: 00000000204b0ff0 RDI: 0000000000000010 RBP: 0000000000000000 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: 7815, name: syz-executor6 1 lock held by syz-executor6/7815: #0: (rcu_read_lock){....}, at: [<0000000000ccb4b5>] __rds_conn_create+0xe46/0x1b50 net/rds/connection.c:218 CPU: 1 PID: 7815 Comm: syz-executor6 Tainted: G W 4.15.0+ #217 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_trace+0x299/0x740 mm/slab.c:3605 kmalloc include/linux/slab.h:512 [inline] kzalloc include/linux/slab.h:701 [inline] rds_loop_conn_alloc+0xc8/0x380 net/rds/loop.c:126 __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:0xf7f3fc79 RSP: 002b:00000000f773b09c EFLAGS: 00000286 ORIG_RAX: 0000000000000171 RAX: ffffffffffffffda RBX: 0000000000000013 RCX: 0000000020007000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000000 RBP: 0000000000000010 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000