serialport: Connected to syzkaller.us-central1-c.ci-upstream-kasan-gce-1 port 1 (session ID: eee89a044023f23ed37d959e364ad387bfef13c42012f5276492d0693ac32d36, active connections: 1). INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added 'ci-upstream-kasan-gce-1,10.128.0.3' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 34.562712] BUG: sleeping function called from invalid context at mm/slab.h:416 [ 34.563876] in_atomic(): 1, irqs_disabled(): 0, pid: 2932, name: syzkaller183439 [ 34.565131] 3 locks held by syzkaller183439/2932: [ 34.565774] #0: (&net->xfrm.xfrm_cfg_mutex){+.+.+.}, at: [] pfkey_sendmsg+0x4c8/0x9f0 [ 34.567082] #1: (&pfk->dump_lock){+.+.+.}, at: [] pfkey_do_dump+0x76/0x3f0 [ 34.568253] #2: (&(&net->xfrm.xfrm_policy_lock)->rlock){+...+.}, at: [] xfrm_policy_walk+0x192/0xa30 [ 34.569723] CPU: 0 PID: 2932 Comm: syzkaller183439 Not tainted 4.13.0-rc4+ #24 [ 34.570688] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.571905] Call Trace: [ 34.572263] dump_stack+0x194/0x257 [ 34.572753] ? arch_local_irq_restore+0x53/0x53 [ 34.573374] ? print_lock+0x9f/0xa2 [ 34.573863] ? lockdep_print_held_locks+0xc4/0x130 [ 34.574527] ___might_sleep+0x2b2/0x470 [ 34.575060] ? check_same_owner+0x320/0x320 [ 34.575642] ? mark_held_locks+0xaf/0x100 [ 34.576200] __might_sleep+0x95/0x190 [ 34.576719] kmem_cache_alloc+0x24b/0x6e0 [ 34.577277] ? sock_def_readable+0x26f/0x5e0 [ 34.577870] skb_clone+0x1a0/0x400 [ 34.578347] ? skb_copy_ubufs+0xe90/0xe90 [ 34.578904] ? refcount_sub_and_test+0x115/0x1b0 [ 34.579551] ? refcount_inc_not_zero+0xfe/0x180 [ 34.580187] ? refcount_add+0x60/0x60 [ 34.580700] ? find_held_lock+0x35/0x1d0 [ 34.581256] pfkey_broadcast_one+0x4b2/0x6f0 [ 34.581848] ? pfkey_terminate_dump+0x180/0x180 [ 34.582472] ? __lock_is_held+0xb6/0x140 [ 34.583800] pfkey_broadcast+0x4ba/0x770 [ 34.587830] ? pfkey_acquire+0x220/0x220 [ 34.591861] ? memset+0x31/0x40 [ 34.595111] ? pfkey_xfrm_policy2msg+0x183d/0x22b0 [ 34.600016] ? pfkey_sockaddr_fill+0x340/0x340 [ 34.604565] ? check_noncircular+0x20/0x20 [ 34.608767] ? pfkey_xfrm_policy2msg_size+0x1d3/0x230 [ 34.613928] dump_sp+0x3d6/0x500 [ 34.617263] ? pfkey_flush+0x3c0/0x3c0 [ 34.621118] ? xfrm_policy_walk+0x192/0xa30 [ 34.625415] xfrm_policy_walk+0x2f1/0xa30 [ 34.629536] ? pfkey_flush+0x3c0/0x3c0 [ 34.633394] ? xfrm_audit_policy_add+0x1f0/0x1f0 [ 34.638119] ? __kfree_skb+0x20/0x20 [ 34.641804] ? pfkey_terminate_dump+0x180/0x180 [ 34.646442] ? __lock_is_held+0xb6/0x140 [ 34.650478] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 34.655289] ? wait_for_completion+0x730/0x730 [ 34.659840] ? pfkey_acquire+0x220/0x220 [ 34.663867] ? pfkey_broadcast_one+0x6f0/0x6f0 [ 34.668416] pfkey_dump_sp+0x42/0x50 [ 34.672095] pfkey_do_dump+0xaa/0x3f0 [ 34.675861] ? xfrm_policy_walk_init+0x69/0x1c0 [ 34.680494] ? dump_sa+0x5d0/0x5d0 [ 34.684001] ? iov_iter_advance+0x2a1/0x13f0 [ 34.688380] pfkey_spddump+0x1a0/0x210 [ 34.692229] ? pfkey_recvmsg+0x710/0x710 [ 34.696258] pfkey_process+0x606/0x710 [ 34.700116] ? pfkey_send_new_mapping+0x11b0/0x11b0 [ 34.705095] ? kasan_check_write+0x14/0x20 [ 34.709313] ? dup_iter+0x260/0x260 [ 34.712913] pfkey_sendmsg+0x4d6/0x9f0 [ 34.716771] ? pfkey_spdget+0xb30/0xb30 [ 34.720712] ? selinux_socket_sendmsg+0x36/0x40 [ 34.725348] ? security_socket_sendmsg+0x89/0xb0 [ 34.730071] ? pfkey_spdget+0xb30/0xb30 [ 34.734012] sock_sendmsg+0xca/0x110 [ 34.737692] ___sys_sendmsg+0x755/0x890 [ 34.741634] ? copy_msghdr_from_user+0x590/0x590 [ 34.746361] ? check_noncircular+0x20/0x20 [ 34.750575] ? fget_raw+0x20/0x20 [ 34.753997] ? __pmd_alloc+0x4f0/0x4f0 [ 34.757853] ? lock_acquire+0x1d5/0x580 [ 34.761791] ? lock_acquire+0x1d5/0x580 [ 34.765734] ? find_held_lock+0x35/0x1d0 [ 34.769763] ? __fdget+0x18/0x20 [ 34.773100] __sys_sendmsg+0xe5/0x210 [ 34.776865] ? __sys_sendmsg+0xe5/0x210 [ 34.780805] ? SyS_shutdown+0x290/0x290 [ 34.784746] ? down_read_trylock+0xdb/0x170 [ 34.789032] ? __do_page_fault+0x2b8/0xb60 [ 34.793232] ? downgrade_write+0x150/0x150 [ 34.797428] ? vmacache_find+0x61/0x270 [ 34.801380] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 34.806371] SyS_sendmsg+0x2d/0x50 executing program [ 34.809880] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 34.814598] RIP: 0033:0x445d79 [ 34.817751] RSP: 002b:00007f32447c1dc8 EFLAGS: 00000202 ORIG_RAX: 000000000000002e [ 34.825426] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000445d79 [ 34.832661] RDX: 0000000000000000 RSI: 000000002023dfc8 RDI: 0000000000000008 [ 34.839893] RBP: 0000000000000086 R08: 00007f32447c2700 R09: 00007f32447c2700 [ 34.847131] R10: 00007f32447c2700 R11: 0000000000000202 R12: 0000000000000000 [ 34.854367] R13: 00007ffe33edec4f R14: 00007f32447c29c0 R15: 0000000000000000 executing program executing program executing program executing program executing program executing program executing program executing program executing program