audit: type=1400 audit(1514772153.326:7): avc: denied { map } for pid=3150 comm="syzkaller361979" path="/root/syzkaller361979936" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 ============================= WARNING: suspicious RCU usage 4.15.0-rc4-mm1+ #49 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 2 locks held by syzkaller361979/3150: #0: (&net->xfrm.xfrm_cfg_mutex){+.+.}, at: [<00000000730e09cb>] xfrm_netlink_rcv+0x60/0x90 net/xfrm/xfrm_user.c:2598 #1: (rcu_read_lock){....}, at: [<00000000e041e823>] xfrm_state_get_afinfo+0x62/0x280 net/xfrm/xfrm_state.c:2157 stack backtrace: CPU: 0 PID: 3150 Comm: syzkaller361979 Not tainted 4.15.0-rc4-mm1+ #49 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:4585 rcu_preempt_sleep_check include/linux/rcupdate.h:301 [inline] ___might_sleep+0x385/0x470 kernel/sched/core.c:6026 __might_sleep+0x95/0x190 kernel/sched/core.c:6014 slab_pre_alloc_hook mm/slab.h:420 [inline] slab_alloc mm/slab.c:3365 [inline] kmem_cache_alloc_trace+0x298/0x750 mm/slab.c:3605 kmalloc include/linux/slab.h:516 [inline] call_modprobe kernel/kmod.c:80 [inline] __request_module+0x2e1/0xc20 kernel/kmod.c:171 xfrm_get_type_offload net/xfrm/xfrm_state.c:317 [inline] __xfrm_init_state+0xa61/0xdd0 net/xfrm/xfrm_state.c:2257 xfrm_state_construct net/xfrm/xfrm_user.c:590 [inline] xfrm_add_sa+0x1a09/0x33e0 net/xfrm/xfrm_user.c:646 xfrm_user_rcv_msg+0x3c8/0x7c0 net/xfrm/xfrm_user.c:2591 netlink_rcv_skb+0x21e/0x460 net/netlink/af_netlink.c:2441 xfrm_netlink_rcv+0x6f/0x90 net/xfrm/xfrm_user.c:2599 netlink_unicast_kernel net/netlink/af_netlink.c:1308 [inline] netlink_unicast+0x4be/0x6a0 net/netlink/af_netlink.c:1334 netlink_sendmsg+0xa4a/0xe60 net/netlink/af_netlink.c:1897 sock_sendmsg_nosec net/socket.c:628 [inline] sock_sendmsg+0xca/0x110 net/socket.c:638 ___sys_sendmsg+0x767/0x8b0 net/socket.c:2018 __sys_sendmsg+0xe5/0x210 net/socket.c:2052 SYSC_sendmsg net/socket.c:2063 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2059 entry_SYSCALL_64_fastpath+0x1f/0x96 RIP: 0033:0x440059 RSP: 002b:00007ffe856a0388 EFLAGS: 00000203 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 0000000000440059 RDX: 0000000000000000 RSI: 0000000020004000 RDI: 0000000000000003 RBP: 00000000006ca018 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000203 R12: 00000000004019c0 R13: 0000000000401a50 R14: 0000000000000000 R15: 0000000000000000 BUG: sleeping function called from invalid context at mm/slab.h:420 in_atomic(): 1, irqs_disabled(): 0, pid: 3150, name: syzkaller361979 2 locks held by syzkaller361979/3150: #0: (&net->xfrm.xfrm_cfg_mutex){+.+.}, at: [<00000000730e09cb>] xfrm_netlink_rcv+0x60/0x90 net/xfrm/xfrm_user.c:2598 #1: (rcu_read_lock){....}, at: [<00000000e041e823>] xfrm_state_get_afinfo+0x62/0x280 net/xfrm/xfrm_state.c:2157 CPU: 0 PID: 3150 Comm: syzkaller361979 Not tainted 4.15.0-rc4-mm1+ #49 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:6061 __might_sleep+0x95/0x190 kernel/sched/core.c:6014 slab_pre_alloc_hook mm/slab.h:420 [inline] slab_alloc mm/slab.c:3365 [inline] kmem_cache_alloc_trace+0x298/0x750 mm/slab.c:3605 kmalloc include/linux/slab.h:516 [inline] call_modprobe kernel/kmod.c:80 [inline] __request_module+0x2e1/0xc20 kernel/kmod.c:171 xfrm_get_type_offload net/xfrm/xfrm_state.c:317 [inline] __xfrm_init_state+0xa61/0xdd0 net/xfrm/xfrm_state.c:2257 xfrm_state_construct net/xfrm/xfrm_user.c:590 [inline] xfrm_add_sa+0x1a09/0x33e0 net/xfrm/xfrm_user.c:646 xfrm_user_rcv_msg+0x3c8/0x7c0 net/xfrm/xfrm_user.c:2591 netlink_rcv_skb+0x21e/0x460 net/netlink/af_netlink.c:2441 xfrm_netlink_rcv+0x6f/0x90 net/xfrm/xfrm_user.c:2599 netlink_unicast_kernel net/netlink/af_netlink.c:1308 [inline] netlink_unicast+0x4be/0x6a0 net/netlink/af_netlink.c:1334 netlink_sendmsg+0xa4a/0xe60 net/netlink/af_netlink.c:1897 sock_sendmsg_nosec net/socket.c:628 [inline] sock_sendmsg+0xca/0x110 net/socket.c:638 ___sys_sendmsg+0x767/0x8b0 net/socket.c:2018 __sys_sendmsg+0xe5/0x210 net/socket.c:2052 SYSC_sendmsg net/socket.c:2063 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2059 entry_SYSCALL_64_fastpath+0x1f/0x96 RIP: 0033:0x440059 RSP: 002b:00007ffe856a0388 EFLAGS: 00000203 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 0000000000440059 RDX: 0000000000000000 RSI: 0000000020004000 RDI: 0000000000000003 RBP: 00000000006ca018 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000203 R12: 00000000004019c0 R13: 0000000000401a50 R14: 0000000000000000 R15: 0000000000000000 BUG: scheduling while atomic: syzkaller361979/3150/0x00000002 2 locks held by syzkaller361979/3150: #0: (&net->xfrm.xfrm_cfg_mutex){+.+.}, at: [<00000000730e09cb>] xfrm_netlink_rcv+0x60/0x90 net/xfrm/xfrm_user.c:2598 #1: (rcu_read_lock){....}, at: [<00000000e041e823>] xfrm_state_get_afinfo+0x62/0x280 net/xfrm/xfrm_state.c:2157 Modules linked in: