[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 18.999893] audit: type=1400 audit(1517275325.392:6): avc: denied { map } for pid=4143 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.15.197' (ECDSA) to the list of known hosts. net.ipv6.conf.syz0.accept_dad = 0 net.ipv6.conf.syz0.router_solicitations = 0 syzkaller login: [ 25.359861] audit: type=1400 audit(1517275331.752:7): avc: denied { map } for pid=4157 comm="syzkaller216849" path="/root/syzkaller216849022" 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 RTNETLINK answers: Operation not supported RTNETLINK answers: No buffer space available RTNETLINK answers: Operation not supported [ 25.744595] IPv6: ADDRCONF(NETDEV_UP): bridge0: link is not ready RTNETLINK answers: Operation not supported RTNETLINK answers: Operation not supported RTNETLINK answers: Operation not supported RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument executing program [ 26.089320] [ 26.090963] ====================================================== [ 26.097253] WARNING: possible circular locking dependency detected [ 26.103544] 4.15.0-rc9+ #215 Not tainted [ 26.107572] ------------------------------------------------------ [ 26.113868] syzkaller216849/4157 is trying to acquire lock: [ 26.119546] (rtnl_mutex){+.+.}, at: [<00000000118ff72b>] rtnl_lock+0x17/0x20 [ 26.126801] [ 26.126801] but task is already holding lock: [ 26.132756] (sk_lock-AF_INET){+.+.}, at: [<0000000021019b22>] ip_setsockopt+0x8c/0xb0 [ 26.140788] [ 26.140788] which lock already depends on the new lock. [ 26.140788] [ 26.149074] [ 26.149074] the existing dependency chain (in reverse order) is: [ 26.156701] [ 26.156701] -> #1 (sk_lock-AF_INET){+.+.}: [ 26.162398] lock_sock_nested+0xc2/0x110 [ 26.166950] do_ip_getsockopt+0x1b3/0x2170 [ 26.171678] ip_getsockopt+0x90/0x220 [ 26.175969] udp_getsockopt+0x45/0x80 [ 26.180275] sock_common_getsockopt+0x95/0xd0 [ 26.185262] SyS_getsockopt+0x178/0x340 [ 26.189730] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.194974] [ 26.194974] -> #0 (rtnl_mutex){+.+.}: [ 26.200230] lock_acquire+0x1d5/0x580 [ 26.204535] __mutex_lock+0x16f/0x1a80 [ 26.208912] mutex_lock_nested+0x16/0x20 [ 26.213478] rtnl_lock+0x17/0x20 [ 26.217347] register_netdevice_notifier+0xad/0x860 [ 26.222858] clusterip_tg_check+0xeb9/0x1570 [ 26.227764] xt_check_target+0x22c/0x7d0 [ 26.232321] find_check_entry.isra.8+0x8c8/0xcb0 [ 26.237567] translate_table+0xed1/0x1610 [ 26.242208] do_ipt_set_ctl+0x370/0x5f0 [ 26.246686] nf_setsockopt+0x67/0xc0 [ 26.250892] ip_setsockopt+0xa1/0xb0 [ 26.255103] raw_setsockopt+0xb7/0xd0 [ 26.259412] sock_common_setsockopt+0x95/0xd0 [ 26.264402] SyS_setsockopt+0x189/0x360 [ 26.268871] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.274112] [ 26.274112] other info that might help us debug this: [ 26.274112] [ 26.282225] Possible unsafe locking scenario: [ 26.282225] [ 26.288252] CPU0 CPU1 [ 26.292888] ---- ---- [ 26.297525] lock(sk_lock-AF_INET); [ 26.301208] lock(rtnl_mutex); [ 26.306973] lock(sk_lock-AF_INET); [ 26.313173] lock(rtnl_mutex); [ 26.316420] [ 26.316420] *** DEADLOCK *** [ 26.316420] [ 26.322448] 1 lock held by syzkaller216849/4157: [ 26.327172] #0: (sk_lock-AF_INET){+.+.}, at: [<0000000021019b22>] ip_setsockopt+0x8c/0xb0 [ 26.335644] [ 26.335644] stack backtrace: [ 26.340117] CPU: 0 PID: 4157 Comm: syzkaller216849 Not tainted 4.15.0-rc9+ #215 [ 26.347534] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.356865] Call Trace: [ 26.359431] dump_stack+0x194/0x257 [ 26.363038] ? arch_local_irq_restore+0x53/0x53 [ 26.367691] print_circular_bug.isra.37+0x2cd/0x2dc [ 26.372679] ? save_trace+0xe0/0x2b0 [ 26.376365] __lock_acquire+0x30a8/0x3e00 [ 26.380487] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.385664] ? trace_hardirqs_off+0x10/0x10 [ 26.389965] ? __is_insn_slot_addr+0x1fc/0x330 [ 26.394520] ? lock_downgrade+0x980/0x980 [ 26.398643] ? lock_release+0xa40/0xa40 [ 26.402593] ? bpf_prog_kallsyms_find+0xbd/0x440 [ 26.407322] ? modules_open+0xa0/0xa0 [ 26.411095] ? trace_raw_output_xdp_redirect_map_err+0x440/0x440 [ 26.417213] ? is_bpf_text_address+0x7b/0x120 [ 26.421682] ? lock_downgrade+0x980/0x980 [ 26.425802] ? lock_release+0xa40/0xa40 [ 26.429747] ? __free_insn_slot+0x5c0/0x5c0 [ 26.434042] ? check_noncircular+0x20/0x20 [ 26.438254] ? kernel_text_address+0x102/0x140 [ 26.442811] lock_acquire+0x1d5/0x580 [ 26.446583] ? lock_acquire+0x1d5/0x580 [ 26.450530] ? rtnl_lock+0x17/0x20 [ 26.454043] ? lock_release+0xa40/0xa40 [ 26.457992] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.463852] ? print_irqtrace_events+0x270/0x270 [ 26.468582] ? idr_get_free_cmn+0x64e/0xfd0 [ 26.472875] ? rcu_note_context_switch+0x710/0x710 [ 26.477782] ? __might_sleep+0x95/0x190 [ 26.481732] ? rtnl_lock+0x17/0x20 [ 26.485251] __mutex_lock+0x16f/0x1a80 [ 26.489110] ? rtnl_lock+0x17/0x20 [ 26.492623] ? rtnl_lock+0x17/0x20 [ 26.496137] ? __lock_acquire+0x664/0x3e00 [ 26.500343] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 26.505420] ? mutex_lock_io_nested+0x1900/0x1900 [ 26.510238] ? trace_hardirqs_on+0xd/0x10 [ 26.514362] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.519527] ? save_stack+0xa3/0xd0 [ 26.523129] ? kasan_kmalloc+0xad/0xe0 [ 26.527010] ? __proc_create+0x21a/0x880 [ 26.531053] ? proc_create_data+0x76/0x180 [ 26.535259] ? clusterip_tg_check+0xe4d/0x1570 [ 26.539819] ? rb_insert_color+0x1580/0x1580 [ 26.544201] ? do_ipt_set_ctl+0x370/0x5f0 [ 26.548326] ? ip_setsockopt+0xa1/0xb0 [ 26.552182] ? raw_setsockopt+0xb7/0xd0 [ 26.556131] ? sock_common_setsockopt+0x95/0xd0 [ 26.560773] ? SyS_setsockopt+0x189/0x360 [ 26.564892] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.570655] ? _find_next_bit+0xee/0x120 [ 26.574696] ? check_noncircular+0x20/0x20 [ 26.578902] ? find_first_zero_bit+0x93/0xe0 [ 26.583284] ? ida_get_new_above+0x421/0x9d0 [ 26.587664] ? print_irqtrace_events+0x270/0x270 [ 26.592395] ? check_noncircular+0x20/0x20 [ 26.596602] ? print_irqtrace_events+0x270/0x270 [ 26.601334] ? ida_simple_get+0x15c/0x220 [ 26.605453] ? lock_downgrade+0x980/0x980 [ 26.609574] ? find_held_lock+0x35/0x1d0 [ 26.613621] mutex_lock_nested+0x16/0x20 [ 26.617651] ? mutex_lock_nested+0x16/0x20 [ 26.621859] rtnl_lock+0x17/0x20 [ 26.625197] register_netdevice_notifier+0xad/0x860 [ 26.630196] ? lock_downgrade+0x980/0x980 [ 26.634319] ? __dev_close_many+0x350/0x350 [ 26.638630] ? ida_simple_get+0x176/0x220 [ 26.642840] ? do_raw_write_trylock+0x190/0x190 [ 26.647485] ? ida_remove+0x3f0/0x3f0 [ 26.651257] ? _raw_write_unlock+0x22/0x30 [ 26.655463] ? proc_register+0x261/0x370 [ 26.659501] ? proc_create_data+0x101/0x180 [ 26.663891] clusterip_tg_check+0xeb9/0x1570 [ 26.668281] ? arp_mangle+0x550/0x550 [ 26.672054] ? xt_find_target+0x150/0x1e0 [ 26.676172] ? lock_downgrade+0x980/0x980 [ 26.680294] ? rcu_read_lock_sched_held+0x108/0x120 [ 26.685283] ? pcpu_alloc+0x146/0x10e0 [ 26.689143] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 26.693958] ? pcpu_free_area+0xa00/0xa00 [ 26.698078] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 26.702899] ? __kernel_text_address+0xd/0x40 [ 26.707370] ? wait_for_completion+0x770/0x770 [ 26.711924] ? trace_hardirqs_off+0xd/0x10 [ 26.716132] ? arp_mangle+0x550/0x550 [ 26.719904] xt_check_target+0x22c/0x7d0 [ 26.723937] ? xt_target_seq_next+0x30/0x30 [ 26.728233] ? mutex_unlock+0xd/0x10 [ 26.731917] ? mutex_unlock+0xd/0x10 [ 26.735601] ? xt_find_target+0x17b/0x1e0 [ 26.739722] find_check_entry.isra.8+0x8c8/0xcb0 [ 26.744453] ? ipt_do_table+0x1860/0x1860 [ 26.748577] ? mark_held_locks+0xaf/0x100 [ 26.752703] ? kfree+0xf0/0x260 [ 26.755954] ? trace_hardirqs_on+0xd/0x10 [ 26.760075] translate_table+0xed1/0x1610 [ 26.764198] ? alloc_counters.isra.11+0x7d0/0x7d0 [ 26.769030] ? kasan_check_write+0x14/0x20 [ 26.773236] ? _copy_from_user+0x99/0x110 [ 26.777354] do_ipt_set_ctl+0x370/0x5f0 [ 26.781300] ? translate_compat_table+0x1b90/0x1b90 [ 26.786292] ? mutex_unlock+0xd/0x10 [ 26.789978] ? nf_sockopt_find.constprop.0+0x1a7/0x220 [ 26.795228] nf_setsockopt+0x67/0xc0 [ 26.798916] ip_setsockopt+0xa1/0xb0 [ 26.802602] raw_setsockopt+0xb7/0xd0 [ 26.806376] sock_common_setsockopt+0x95/0xd0 [ 26.810845] SyS_setsockopt+0x189/0x360 [ 26.814879] ? SyS_recv+0x40/0x40 [ 26.818305] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 26.823121] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.828109] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.832842] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.837569] RIP: 0033:0x445cf9 [ 26.840729] RSP: 002b:00007ffd8ad62a18 EFLAGS: 00000203 ORIG_RAX: 0000000000000036 [ 26.848406] RAX: ffffffffffffffda RBX: 00000000004a75b2 RCX: 0000000000445cf9 [ 26.855654] RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000005 [ 26.862895] RBP: 00007ffd8ad62b18 R08: 00000000000002f8 R09: 00000000207a6f2e [ 26.870137] R10: 000000002000b000 R11: 0000000000000203 R12: 00007ffd8ad62b18 [ 26.877380] R13: 00000000004031c0 R14: 0000000000000000 R15: 0000000000000000 [ 26.885773] ipt_CLUSTERIP: ipt_CLUSTERIP is deprecated and it will removed soon