[....] Starting enhanced syslogd: rsyslogd[ 12.690478] audit: type=1400 audit(1517141028.580:5): avc: denied { syslog } for pid=3530 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.576538] audit: type=1400 audit(1517141033.465:6): avc: denied { map } for pid=3668 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.0.38' (ECDSA) to the list of known hosts. net.ipv6.conf.syz0.accept_dad = 0 net.ipv6.conf.syz0.router_solicitations = 0 [ 23.839446] audit: type=1400 audit(1517141039.729:7): avc: denied { map } for pid=3682 comm="syzkaller300089" path="/root/syzkaller300089476" 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.153678] 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.519309] [ 24.520951] ====================================================== [ 24.527234] WARNING: possible circular locking dependency detected [ 24.533519] 4.15.0-rc9+ #283 Not tainted [ 24.537542] ------------------------------------------------------ [ 24.543851] syzkaller300089/3682 is trying to acquire lock: [ 24.549527] (rtnl_mutex){+.+.}, at: [<000000005875a507>] rtnl_lock+0x17/0x20 [ 24.556776] [ 24.556776] but task is already holding lock: [ 24.562710] (sk_lock-AF_INET){+.+.}, at: [<00000000e88a1ed5>] ip_setsockopt+0x8c/0xb0 [ 24.570734] [ 24.570734] which lock already depends on the new lock. [ 24.570734] [ 24.579021] [ 24.579021] the existing dependency chain (in reverse order) is: [ 24.586604] [ 24.586604] -> #1 (sk_lock-AF_INET){+.+.}: [ 24.592286] lock_sock_nested+0xc2/0x110 [ 24.596836] do_ip_getsockopt+0x1b3/0x2170 [ 24.601556] ip_getsockopt+0x90/0x220 [ 24.605842] tcp_getsockopt+0x82/0xd0 [ 24.610128] sock_common_getsockopt+0x95/0xd0 [ 24.615111] SyS_getsockopt+0x178/0x340 [ 24.619573] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 24.624813] [ 24.624813] -> #0 (rtnl_mutex){+.+.}: [ 24.630062] lock_acquire+0x1d5/0x580 [ 24.634349] __mutex_lock+0x16f/0x1a80 [ 24.638723] mutex_lock_nested+0x16/0x20 [ 24.643271] rtnl_lock+0x17/0x20 [ 24.647123] register_netdevice_notifier+0xad/0x860 [ 24.652625] clusterip_tg_check+0xeb9/0x1570 [ 24.657520] xt_check_target+0x22c/0x7d0 [ 24.662067] find_check_entry.isra.8+0x8c8/0xcb0 [ 24.667311] translate_table+0xed1/0x1610 [ 24.671945] do_ipt_set_ctl+0x370/0x5f0 [ 24.676410] nf_setsockopt+0x67/0xc0 [ 24.680610] ip_setsockopt+0xa1/0xb0 [ 24.684811] raw_setsockopt+0xb7/0xd0 [ 24.689099] sock_common_setsockopt+0x95/0xd0 [ 24.694080] SyS_setsockopt+0x189/0x360 [ 24.698547] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 24.703785] [ 24.703785] other info that might help us debug this: [ 24.703785] [ 24.711896] Possible unsafe locking scenario: [ 24.711896] [ 24.717924] CPU0 CPU1 [ 24.722554] ---- ---- [ 24.727184] lock(sk_lock-AF_INET); [ 24.730863] lock(rtnl_mutex); [ 24.736623] lock(sk_lock-AF_INET); [ 24.742820] lock(rtnl_mutex); [ 24.746065] [ 24.746065] *** DEADLOCK *** [ 24.746065] [ 24.752089] 1 lock held by syzkaller300089/3682: [ 24.756806] #0: (sk_lock-AF_INET){+.+.}, at: [<00000000e88a1ed5>] ip_setsockopt+0x8c/0xb0 [ 24.765265] [ 24.765265] stack backtrace: [ 24.769730] CPU: 0 PID: 3682 Comm: syzkaller300089 Not tainted 4.15.0-rc9+ #283 [ 24.777139] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.786460] Call Trace: [ 24.789018] dump_stack+0x194/0x257 [ 24.792614] ? arch_local_irq_restore+0x53/0x53 [ 24.797254] print_circular_bug.isra.37+0x2cd/0x2dc [ 24.802237] ? save_trace+0xe0/0x2b0 [ 24.805918] __lock_acquire+0x30a8/0x3e00 [ 24.810034] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.815189] ? check_noncircular+0x20/0x20 [ 24.819387] ? trace_hardirqs_off+0x10/0x10 [ 24.823674] ? noop_count+0x40/0x40 [ 24.827268] ? trace_hardirqs_off+0x10/0x10 [ 24.831553] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.836707] ? check_noncircular+0x20/0x20 [ 24.840906] ? check_noncircular+0x20/0x20 [ 24.845108] ? check_usage+0x22f/0xb60 [ 24.848961] ? check_noncircular+0x20/0x20 [ 24.853162] ? __bfs+0x2e0/0x750 [ 24.856497] lock_acquire+0x1d5/0x580 [ 24.860267] ? lock_acquire+0x1d5/0x580 [ 24.864219] ? rtnl_lock+0x17/0x20 [ 24.867728] ? lock_release+0xa40/0xa40 [ 24.871669] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.877520] ? print_irqtrace_events+0x270/0x270 [ 24.882242] ? idr_get_free_cmn+0x64e/0xfd0 [ 24.886533] ? rcu_note_context_switch+0x710/0x710 [ 24.891429] ? __might_sleep+0x95/0x190 [ 24.895372] ? rtnl_lock+0x17/0x20 [ 24.898878] __mutex_lock+0x16f/0x1a80 [ 24.902733] ? rtnl_lock+0x17/0x20 [ 24.906238] ? rtnl_lock+0x17/0x20 [ 24.909746] ? __lock_acquire+0x664/0x3e00 [ 24.913949] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 24.919016] ? mutex_lock_io_nested+0x1900/0x1900 [ 24.923828] ? trace_hardirqs_on+0xd/0x10 [ 24.927944] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.933100] ? save_stack+0xa3/0xd0 [ 24.936691] ? kasan_kmalloc+0xad/0xe0 [ 24.940546] ? __proc_create+0x21a/0x880 [ 24.944571] ? proc_create_data+0x76/0x180 [ 24.948771] ? clusterip_tg_check+0xe4d/0x1570 [ 24.953316] ? rb_insert_color+0x1580/0x1580 [ 24.957689] ? do_ipt_set_ctl+0x370/0x5f0 [ 24.961803] ? ip_setsockopt+0xa1/0xb0 [ 24.965656] ? raw_setsockopt+0xb7/0xd0 [ 24.969594] ? sock_common_setsockopt+0x95/0xd0 [ 24.974228] ? SyS_setsockopt+0x189/0x360 [ 24.978343] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 24.983238] ? _find_next_bit+0xee/0x120 [ 24.987262] ? check_noncircular+0x20/0x20 [ 24.991460] ? find_first_zero_bit+0x93/0xe0 [ 24.995833] ? ida_get_new_above+0x421/0x9d0 [ 25.000207] ? print_irqtrace_events+0x270/0x270 [ 25.004931] ? check_noncircular+0x20/0x20 [ 25.009133] ? print_irqtrace_events+0x270/0x270 [ 25.013855] ? ida_simple_get+0x15c/0x220 [ 25.017975] ? lock_downgrade+0x980/0x980 [ 25.022090] ? find_held_lock+0x35/0x1d0 [ 25.026114] mutex_lock_nested+0x16/0x20 [ 25.030142] ? mutex_lock_nested+0x16/0x20 [ 25.034344] rtnl_lock+0x17/0x20 [ 25.037677] register_netdevice_notifier+0xad/0x860 [ 25.042659] ? lock_downgrade+0x980/0x980 [ 25.046771] ? __dev_close_many+0x330/0x330 [ 25.051057] ? ida_simple_get+0x176/0x220 [ 25.055170] ? do_raw_write_trylock+0x190/0x190 [ 25.059802] ? ida_remove+0x3f0/0x3f0 [ 25.063570] ? _raw_write_unlock+0x22/0x30 [ 25.067770] ? proc_register+0x261/0x370 [ 25.071798] ? proc_create_data+0x101/0x180 [ 25.076087] clusterip_tg_check+0xeb9/0x1570 [ 25.080463] ? arp_mangle+0x550/0x550 [ 25.084231] ? xt_find_target+0x150/0x1e0 [ 25.088346] ? lock_downgrade+0x980/0x980 [ 25.092459] ? mutex_unlock+0xd/0x10 [ 25.096136] ? ipv4_hooks_register+0x1fb/0x3e0 [ 25.100684] ? ipv4_conntrack_in+0x90/0x90 [ 25.104884] ? ipv4_conntrack_in+0x90/0x90 [ 25.109088] ? nf_ct_netns_do_get+0x20f/0x340 [ 25.113548] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 25.118357] ? __kernel_text_address+0xd/0x40 [ 25.122818] ? wait_for_completion+0x770/0x770 [ 25.127365] ? nf_ct_netns_get+0x35/0x90 [ 25.131393] ? arp_mangle+0x550/0x550 [ 25.135160] xt_check_target+0x22c/0x7d0 [ 25.139188] ? xt_target_seq_next+0x30/0x30 [ 25.143474] ? mutex_unlock+0xd/0x10 [ 25.147152] ? mutex_unlock+0xd/0x10 [ 25.150833] ? xt_find_target+0x17b/0x1e0 [ 25.154950] find_check_entry.isra.8+0x8c8/0xcb0 [ 25.159674] ? ipt_do_table+0x1860/0x1860 [ 25.163787] ? mark_held_locks+0xaf/0x100 [ 25.167899] ? kfree+0xf0/0x260 [ 25.171144] ? trace_hardirqs_on+0xd/0x10 [ 25.175261] translate_table+0xed1/0x1610 [ 25.179379] ? alloc_counters.isra.11+0x7d0/0x7d0 [ 25.184186] ? kasan_check_write+0x14/0x20 [ 25.188384] ? _copy_from_user+0x99/0x110 [ 25.192499] do_ipt_set_ctl+0x370/0x5f0 [ 25.196446] ? translate_compat_table+0x1b90/0x1b90 [ 25.201432] ? mutex_unlock+0xd/0x10 [ 25.205199] ? nf_sockopt_find.constprop.0+0x1a7/0x220 [ 25.210446] nf_setsockopt+0x67/0xc0 [ 25.214126] ip_setsockopt+0xa1/0xb0 [ 25.217810] raw_setsockopt+0xb7/0xd0 [ 25.221578] sock_common_setsockopt+0x95/0xd0 [ 25.226037] SyS_setsockopt+0x189/0x360 [ 25.229979] ? SyS_recv+0x40/0x40 [ 25.233399] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 25.238208] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.243202] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.247925] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.252646] RIP: 0033:0x445f99 [ 25.255800] RSP: 002b:00007ffd2d85b418 EFLAGS: 00000203 ORIG_RAX: 0000000000000036 [ 25.263474] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 0000000000445f99 [ 25.270712] RDX: 00