[....] Starting enhanced syslogd: rsyslogd[ 13.407893] audit: type=1400 audit(1517073271.009:5): avc: denied { syslog } for pid=3529 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 file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 19.136157] audit: type=1400 audit(1517073276.737: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.15.221' (ECDSA) to the list of known hosts. net.ipv6.conf.syz0.accept_dad = 0 net.ipv6.conf.syz0.router_solicitations = 0 [ 25.857047] audit: type=1400 audit(1517073283.458:7): avc: denied { map } for pid=3682 comm="syzkaller897089" path="/root/syzkaller897089284" 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 [ 26.223333] ip (3748) used greatest stack depth: 16224 bytes left [ 26.260458] 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.611613] [ 26.613277] ====================================================== [ 26.619562] WARNING: possible circular locking dependency detected [ 26.625847] 4.15.0-rc9+ #283 Not tainted [ 26.629875] ------------------------------------------------------ [ 26.636160] syzkaller897089/3682 is trying to acquire lock: [ 26.641835] (rtnl_mutex){+.+.}, at: [<0000000063bf249c>] rtnl_lock+0x17/0x20 [ 26.649097] [ 26.649097] but task is already holding lock: [ 26.655035] (sk_lock-AF_INET){+.+.}, at: [<00000000b1cd7c10>] ip_setsockopt+0x8c/0xb0 [ 26.663066] [ 26.663066] which lock already depends on the new lock. [ 26.663066] [ 26.671348] [ 26.671348] the existing dependency chain (in reverse order) is: [ 26.678936] [ 26.678936] -> #1 (sk_lock-AF_INET){+.+.}: [ 26.684623] lock_sock_nested+0xc2/0x110 [ 26.689174] do_ip_setsockopt.isra.12+0x1d9/0x32e0 [ 26.694603] ip_setsockopt+0x3a/0xb0 [ 26.698808] udp_setsockopt+0x45/0x80 [ 26.703101] sock_common_setsockopt+0x95/0xd0 [ 26.708095] SyS_setsockopt+0x189/0x360 [ 26.712560] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.717803] [ 26.717803] -> #0 (rtnl_mutex){+.+.}: [ 26.723065] lock_acquire+0x1d5/0x580 [ 26.727365] __mutex_lock+0x16f/0x1a80 [ 26.731753] mutex_lock_nested+0x16/0x20 [ 26.736312] rtnl_lock+0x17/0x20 [ 26.740178] register_netdevice_notifier+0xad/0x860 [ 26.745687] clusterip_tg_check+0xeb9/0x1570 [ 26.750587] xt_check_target+0x22c/0x7d0 [ 26.755148] find_check_entry.isra.8+0x8c8/0xcb0 [ 26.760394] translate_table+0xed1/0x1610 [ 26.765036] do_ipt_set_ctl+0x370/0x5f0 [ 26.769513] nf_setsockopt+0x67/0xc0 [ 26.773721] ip_setsockopt+0xa1/0xb0 [ 26.777924] raw_setsockopt+0xb7/0xd0 [ 26.782224] sock_common_setsockopt+0x95/0xd0 [ 26.787207] SyS_setsockopt+0x189/0x360 [ 26.791674] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.796916] [ 26.796916] other info that might help us debug this: [ 26.796916] [ 26.805029] Possible unsafe locking scenario: [ 26.805029] [ 26.811061] CPU0 CPU1 [ 26.815694] ---- ---- [ 26.820327] lock(sk_lock-AF_INET); [ 26.824013] lock(rtnl_mutex); [ 26.829782] lock(sk_lock-AF_INET); [ 26.835987] lock(rtnl_mutex); [ 26.839236] [ 26.839236] *** DEADLOCK *** [ 26.839236] [ 26.845263] 1 lock held by syzkaller897089/3682: [ 26.849983] #0: (sk_lock-AF_INET){+.+.}, at: [<00000000b1cd7c10>] ip_setsockopt+0x8c/0xb0 [ 26.858452] [ 26.858452] stack backtrace: [ 26.862922] CPU: 1 PID: 3682 Comm: syzkaller897089 Not tainted 4.15.0-rc9+ #283 [ 26.870347] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.879671] Call Trace: [ 26.882236] dump_stack+0x194/0x257 [ 26.885840] ? arch_local_irq_restore+0x53/0x53 [ 26.890504] print_circular_bug.isra.37+0x2cd/0x2dc [ 26.895491] ? save_trace+0xe0/0x2b0 [ 26.899176] __lock_acquire+0x30a8/0x3e00 [ 26.903295] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.908460] ? trace_hardirqs_off+0x10/0x10 [ 26.912764] ? __is_insn_slot_addr+0x1fc/0x330 [ 26.917316] ? lock_downgrade+0x980/0x980 [ 26.921435] ? lock_release+0xa40/0xa40 [ 26.925378] ? bpf_prog_kallsyms_find+0xbd/0x440 [ 26.930103] ? modules_open+0xa0/0xa0 [ 26.933879] ? trace_raw_output_xdp_redirect_map_err+0x440/0x440 [ 26.939993] ? is_bpf_text_address+0x7b/0x120 [ 26.944463] ? lock_downgrade+0x980/0x980 [ 26.948591] ? lock_release+0xa40/0xa40 [ 26.952534] ? __free_insn_slot+0x5c0/0x5c0 [ 26.956823] ? check_noncircular+0x20/0x20 [ 26.961036] ? kernel_text_address+0x102/0x140 [ 26.965588] lock_acquire+0x1d5/0x580 [ 26.969360] ? lock_acquire+0x1d5/0x580 [ 26.973307] ? rtnl_lock+0x17/0x20 [ 26.976831] ? lock_release+0xa40/0xa40 [ 26.980778] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.986632] ? print_irqtrace_events+0x270/0x270 [ 26.991368] ? idr_get_free_cmn+0x64e/0xfd0 [ 26.995661] ? rcu_note_context_switch+0x710/0x710 [ 27.000561] ? __might_sleep+0x95/0x190 [ 27.004508] ? rtnl_lock+0x17/0x20 [ 27.008023] __mutex_lock+0x16f/0x1a80 [ 27.011882] ? rtnl_lock+0x17/0x20 [ 27.015393] ? rtnl_lock+0x17/0x20 [ 27.018912] ? __lock_acquire+0x664/0x3e00 [ 27.023119] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 27.028201] ? mutex_lock_io_nested+0x1900/0x1900 [ 27.033014] ? trace_hardirqs_on+0xd/0x10 [ 27.037137] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 27.042298] ? save_stack+0xa3/0xd0 [ 27.045895] ? kasan_kmalloc+0xad/0xe0 [ 27.049755] ? __proc_create+0x21a/0x880 [ 27.053802] ? proc_create_data+0x76/0x180 [ 27.058021] ? clusterip_tg_check+0xe4d/0x1570 [ 27.062591] ? rb_insert_color+0x1580/0x1580 [ 27.066969] ? do_ipt_set_ctl+0x370/0x5f0 [ 27.071089] ? ip_setsockopt+0xa1/0xb0 [ 27.074946] ? raw_setsockopt+0xb7/0xd0 [ 27.078891] ? sock_common_setsockopt+0x95/0xd0 [ 27.083529] ? SyS_setsockopt+0x189/0x360 [ 27.087648] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 27.092549] ? _find_next_bit+0xee/0x120 [ 27.096583] ? check_noncircular+0x20/0x20 [ 27.100788] ? find_first_zero_bit+0x93/0xe0 [ 27.105171] ? ida_get_new_above+0x421/0x9d0 [ 27.109548] ? print_irqtrace_events+0x270/0x270 [ 27.114276] ? check_noncircular+0x20/0x20 [ 27.118481] ? print_irqtrace_events+0x270/0x270 [ 27.123207] ? ida_simple_get+0x15c/0x220 [ 27.127344] ? lock_downgrade+0x980/0x980 [ 27.131467] ? find_held_lock+0x35/0x1d0 [ 27.135502] mutex_lock_nested+0x16/0x20 [ 27.139532] ? mutex_lock_nested+0x16/0x20 [ 27.143740] rtnl_lock+0x17/0x20 [ 27.147077] register_netdevice_notifier+0xad/0x860 [ 27.152062] ? lock_downgrade+0x980/0x980 [ 27.156180] ? __dev_close_many+0x330/0x330 [ 27.160472] ? ida_simple_get+0x176/0x220 [ 27.164588] ? do_raw_write_trylock+0x190/0x190 [ 27.169225] ? ida_remove+0x3f0/0x3f0 [ 27.173009] ? _raw_write_unlock+0x22/0x30 [ 27.177231] ? proc_register+0x261/0x370 [ 27.181272] ? proc_create_data+0x101/0x180 [ 27.185567] clusterip_tg_check+0xeb9/0x1570 [ 27.189949] ? arp_mangle+0x550/0x550 [ 27.193719] ? xt_find_target+0x150/0x1e0 [ 27.197835] ? lock_downgrade+0x980/0x980 [ 27.201958] ? rcu_read_lock_sched_held+0x108/0x120 [ 27.206946] ? pcpu_alloc+0x146/0x10e0 [ 27.210807] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 27.215638] ? pcpu_free_area+0xa00/0xa00 [ 27.219776] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 27.224595] ? __kernel_text_address+0xd/0x40 [ 27.229062] ? wait_for_completion+0x770/0x770 [ 27.233616] ? trace_hardirqs_off+0xd/0x10 [ 27.237822] ? arp_mangle+0x550/0x550 [ 27.241595] xt_check_target+0x22c/0x7d0 [ 27.245628] ? xt_target_seq_next+0x30/0x30 [ 27.249921] ? mutex_unlock+0xd/0x10 [ 27.253603] ? mutex_unlock+0xd/0x10 [ 27.257286] ? xt_find_target+0x17b/0x1e0 [ 27.261410] find_check_entry.isra.8+0x8c8/0xcb0 [ 27.266146] ? ipt_do_table+0x1860/0x1860 [ 27.270274] ? mark_held_locks+0xaf/0x100 [ 27.274397] ? kfree+0xf0/0x260 [ 27.277646] ? trace_hardirqs_on+0xd/0x10 [ 27.281774] translate_table+0xed1/0x1610 [ 27.285896] ? alloc_counters.isra.11+0x7d0/0x7d0 [ 27.290709] ? kasan_check_write+0x14/0x20 [ 27.294916] ? _copy_from_user+0x99/0x110 [ 27.299036] do_ipt_set_ctl+0x370/0x5f0 [ 27.302990] ? translate_compat_table+0x1b90/0x1b90 [ 27.307983] ? mutex_unlock+0xd/0x10 [ 27.311669] ? nf_sockopt_find.constprop.0+0x1a7/0x220 [ 27.316925] nf_setsockopt+0x67/0xc0 [ 27.320613] ip_setsockopt+0xa1/0xb0 [ 27.324300] raw_setsockopt+0xb7/0xd0 [ 27.328074] sock_common_setsockopt+0x95/0xd0 [ 27.332549] SyS_setsockopt+0x189/0x360 [ 27.336494] ? SyS_recv+0x40/0x40 [ 27.339926] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 27.344741] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.349728] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.355160] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 27.359885] RIP: 0033:0x445d99 [ 27.363045] RSP: 002b:00007fff4e6f78c8 EFLAGS: 00000203 ORIG_RAX: 0000000000000036 [ 27.370728] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 0000000000445d99 [ 27.377968] RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000005 [ 27.385216] RBP: 00007fff4e6f79c8 R08: 00000000000002f8 R09: 0000000020007f10 [ 27.392457] R10: 000000002000b000 R11: 0000000000000203 R12: 00007fff4e6f79c8 [ 27.399696] R13: 0000000000403260 R14: 0000000000000000 R15: 0000000000000000