[....] Starting enhanced syslogd: rsyslogd[ 12.202982] audit: type=1400 audit(1517154130.710:5): avc: denied { syslog } for pid=3518 comm="rsyslogd" capability=34 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=capability2 permissive=1 [?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 17.937471] audit: type=1400 audit(1517154136.445:6): avc: denied { map } for pid=3657 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 Warning: Permanently added '10.128.15.194' (ECDSA) to the list of known hosts. net.ipv6.conf.syz0.accept_dad = 0 net.ipv6.conf.syz0.router_solicitations = 0 [ 24.206708] audit: type=1400 audit(1517154142.714:7): avc: denied { map } for pid=3671 comm="syzkaller778321" path="/root/syzkaller778321485" 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 RTNETLINK answers: Operation not supported [ 24.578247] IPv6: ADDRCONF(NETDEV_UP): bridge0: link is not ready RTNETLINK answers: Operation not supported RTNETLINK answers: Operation not supported RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument executing program [ 24.951205] [ 24.952847] ====================================================== [ 24.959128] WARNING: possible circular locking dependency detected [ 24.965412] 4.15.0-rc9+ #283 Not tainted [ 24.969435] ------------------------------------------------------ [ 24.975717] syzkaller778321/3671 is trying to acquire lock: [ 24.981397] (rtnl_mutex){+.+.}, at: [<000000002a18d56a>] rtnl_lock+0x17/0x20 [ 24.988647] [ 24.988647] but task is already holding lock: [ 24.994587] (sk_lock-AF_INET){+.+.}, at: [<000000009a251ea9>] ip_setsockopt+0x8c/0xb0 [ 25.002616] [ 25.002616] which lock already depends on the new lock. [ 25.002616] [ 25.010896] [ 25.010896] the existing dependency chain (in reverse order) is: [ 25.018481] [ 25.018481] -> #1 (sk_lock-AF_INET){+.+.}: [ 25.024164] lock_sock_nested+0xc2/0x110 [ 25.028712] do_ip_setsockopt.isra.12+0x1d9/0x32e0 [ 25.034133] ip_setsockopt+0x3a/0xb0 [ 25.038334] tcp_setsockopt+0x82/0xd0 [ 25.042620] sock_common_setsockopt+0x95/0xd0 [ 25.047600] SyS_setsockopt+0x189/0x360 [ 25.052064] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.057302] [ 25.057302] -> #0 (rtnl_mutex){+.+.}: [ 25.062553] lock_acquire+0x1d5/0x580 [ 25.066839] __mutex_lock+0x16f/0x1a80 [ 25.071215] mutex_lock_nested+0x16/0x20 [ 25.075762] rtnl_lock+0x17/0x20 [ 25.079615] register_netdevice_notifier+0xad/0x860 [ 25.085128] clusterip_tg_check+0xeb9/0x1570 [ 25.090030] xt_check_target+0x22c/0x7d0 [ 25.094585] find_check_entry.isra.8+0x8c8/0xcb0 [ 25.099827] translate_table+0xed1/0x1610 [ 25.104462] do_ipt_set_ctl+0x370/0x5f0 [ 25.108923] nf_setsockopt+0x67/0xc0 [ 25.113125] ip_setsockopt+0xa1/0xb0 [ 25.117326] raw_setsockopt+0xb7/0xd0 [ 25.121613] sock_common_setsockopt+0x95/0xd0 [ 25.126591] SyS_setsockopt+0x189/0x360 [ 25.131055] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.136297] [ 25.136297] other info that might help us debug this: [ 25.136297] [ 25.144403] Possible unsafe locking scenario: [ 25.144403] [ 25.150424] CPU0 CPU1 [ 25.155054] ---- ---- [ 25.159686] lock(sk_lock-AF_INET); [ 25.163367] lock(rtnl_mutex); [ 25.169129] lock(sk_lock-AF_INET); [ 25.175327] lock(rtnl_mutex); [ 25.178573] [ 25.178573] *** DEADLOCK *** [ 25.178573] [ 25.184601] 1 lock held by syzkaller778321/3671: [ 25.189322] #0: (sk_lock-AF_INET){+.+.}, at: [<000000009a251ea9>] ip_setsockopt+0x8c/0xb0 [ 25.197786] [ 25.197786] stack backtrace: [ 25.202250] CPU: 1 PID: 3671 Comm: syzkaller778321 Not tainted 4.15.0-rc9+ #283 [ 25.209669] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.218992] Call Trace: [ 25.221547] dump_stack+0x194/0x257 [ 25.225141] ? arch_local_irq_restore+0x53/0x53 [ 25.229782] print_circular_bug.isra.37+0x2cd/0x2dc [ 25.234761] ? save_trace+0xe0/0x2b0 [ 25.238441] __lock_acquire+0x30a8/0x3e00 [ 25.242561] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.247720] ? trace_hardirqs_off+0x10/0x10 [ 25.252007] ? noop_count+0x40/0x40 [ 25.255599] ? trace_hardirqs_off+0x10/0x10 [ 25.259886] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.265043] ? check_noncircular+0x20/0x20 [ 25.269247] ? check_usage+0x22f/0xb60 [ 25.273105] ? trace_raw_output_xdp_redirect_map_err+0x440/0x440 [ 25.279217] ? check_usage+0x22f/0xb60 [ 25.283069] ? check_noncircular+0x20/0x20 [ 25.287279] ? check_noncircular+0x20/0x20 [ 25.291478] ? find_held_lock+0x35/0x1d0 [ 25.295506] ? __bfs+0x2e0/0x750 [ 25.298838] ? __is_insn_slot_addr+0x1fc/0x330 [ 25.303390] lock_acquire+0x1d5/0x580 [ 25.307165] ? lock_acquire+0x1d5/0x580 [ 25.311106] ? rtnl_lock+0x17/0x20 [ 25.314611] ? lock_release+0xa40/0xa40 [ 25.318554] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.324407] ? print_irqtrace_events+0x270/0x270 [ 25.329130] ? idr_get_free_cmn+0x64e/0xfd0 [ 25.333418] ? rcu_note_context_switch+0x710/0x710 [ 25.338315] ? __might_sleep+0x95/0x190 [ 25.342255] ? rtnl_lock+0x17/0x20 [ 25.345761] __mutex_lock+0x16f/0x1a80 [ 25.349614] ? rtnl_lock+0x17/0x20 [ 25.353122] ? rtnl_lock+0x17/0x20 [ 25.356639] ? __lock_acquire+0x664/0x3e00 [ 25.360846] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 25.365914] ? mutex_lock_io_nested+0x1900/0x1900 [ 25.370722] ? trace_hardirqs_on+0xd/0x10 [ 25.374845] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.380001] ? save_stack+0xa3/0xd0 [ 25.383594] ? kasan_kmalloc+0xad/0xe0 [ 25.387450] ? __proc_create+0x21a/0x880 [ 25.391479] ? proc_create_data+0x76/0x180 [ 25.395687] ? clusterip_tg_check+0xe4d/0x1570 [ 25.400238] ? rb_insert_color+0x1580/0x1580 [ 25.404615] ? do_ipt_set_ctl+0x370/0x5f0 [ 25.408728] ? ip_setsockopt+0xa1/0xb0 [ 25.412583] ? raw_setsockopt+0xb7/0xd0 [ 25.416524] ? sock_common_setsockopt+0x95/0xd0 [ 25.421157] ? SyS_setsockopt+0x189/0x360 [ 25.425269] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.430164] ? _find_next_bit+0xee/0x120 [ 25.434195] ? check_noncircular+0x20/0x20 [ 25.438393] ? find_first_zero_bit+0x93/0xe0 [ 25.442768] ? ida_get_new_above+0x421/0x9d0 [ 25.447142] ? print_irqtrace_events+0x270/0x270 [ 25.451866] ? check_noncircular+0x20/0x20 [ 25.456068] ? print_irqtrace_events+0x270/0x270 [ 25.460790] ? ida_simple_get+0x15c/0x220 [ 25.464902] ? lock_downgrade+0x980/0x980 [ 25.469017] ? find_held_lock+0x35/0x1d0 [ 25.473045] mutex_lock_nested+0x16/0x20 [ 25.477074] ? mutex_lock_nested+0x16/0x20 [ 25.481274] rtnl_lock+0x17/0x20 [ 25.484606] register_netdevice_notifier+0xad/0x860 [ 25.489587] ? lock_downgrade+0x980/0x980 [ 25.493701] ? __dev_close_many+0x330/0x330 [ 25.497989] ? ida_simple_get+0x176/0x220 [ 25.502111] ? do_raw_write_trylock+0x190/0x190 [ 25.506744] ? ida_remove+0x3f0/0x3f0 [ 25.510514] ? _raw_write_unlock+0x22/0x30 [ 25.514714] ? proc_register+0x261/0x370 [ 25.518742] ? proc_create_data+0x101/0x180 [ 25.523029] clusterip_tg_check+0xeb9/0x1570 [ 25.527403] ? arp_mangle+0x550/0x550 [ 25.531170] ? xt_find_target+0x150/0x1e0 [ 25.535283] ? lock_downgrade+0x980/0x980 [ 25.539397] ? mutex_unlock+0xd/0x10 [ 25.543078] ? ipv4_hooks_register+0x1fb/0x3e0 [ 25.547625] ? ipv4_conntrack_in+0x90/0x90 [ 25.551832] ? ipv4_conntrack_in+0x90/0x90 [ 25.556036] ? nf_ct_netns_do_get+0x20f/0x340 [ 25.560504] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 25.565313] ? __kernel_text_address+0xd/0x40 [ 25.569775] ? wait_for_completion+0x770/0x770 [ 25.574323] ? nf_ct_netns_get+0x35/0x90 [ 25.578349] ? arp_mangle+0x550/0x550 [ 25.582117] xt_check_target+0x22c/0x7d0 [ 25.586145] ? xt_target_seq_next+0x30/0x30 [ 25.590433] ? mutex_unlock+0xd/0x10 [ 25.594113] ? mutex_unlock+0xd/0x10 [ 25.597795] ? xt_find_target+0x17b/0x1e0 [ 25.601910] find_check_entry.isra.8+0x8c8/0xcb0 [ 25.606660] ? ipt_do_table+0x1860/0x1860 [ 25.610865] ? mark_held_locks+0xaf/0x100 [ 25.614981] ? kfree+0xf0/0x260 [ 25.618226] ? trace_hardirqs_on+0xd/0x10 [ 25.622342] translate_table+0xed1/0x1610 [ 25.626460] ? alloc_counters.isra.11+0x7d0/0x7d0 [ 25.631269] ? kasan_check_write+0x14/0x20 [ 25.635472] ? _copy_from_user+0x99/0x110 [ 25.639592] do_ipt_set_ctl+0x370/0x5f0 [ 25.643535] ? translate_compat_table+0x1b90/0x1b90 [ 25.648521] ? mutex_unlock+0xd/0x10 [ 25.652201] ? nf_sockopt_find.constprop.0+0x1a7/0x220 [ 25.657444] nf_setsockopt+0x67/0xc0 [ 25.661126] ip_setsockopt+0xa1/0xb0 [ 25.664807] raw_setsockopt+0xb7/0xd0 [ 25.668575] sock_common_setsockopt+0x95/0xd0 [ 25.673039] SyS_setsockopt+0x189/0x360 [ 25.676981] ? SyS_recv+0x40/0x40 [ 25.680399] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 25.685206] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.690187] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.694908] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.699630] RIP: 0033:0x445ce9 [ 25.702792] RSP: 002b:00007ffeec309a88 EFLAGS: 00000203 ORIG_RAX: 0000000000000036 [ 25.710465] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 0000000000445ce9 [ 25.717703] RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000005 [ 25.724943] RBP: 00007ffeec309b88 R08: 0000000000000328 R09: 0000000020005000 [ 25.732183] R10: 0000000020397cd8 R11: 0000000000000203 R12: 00007ffeec309b88 [ 25.739420] R13: 00000000004031b0 R14: 0000000000000000 R15: 0000000000000000 [ 25.749059] ipt_CLUSTERIP: ipt_CLUSTERIP is deprecated and it wil