[....] Starting enhanced syslogd: rsyslogd[ 16.161211] audit: type=1400 audit(1517300713.728:5): avc: denied { syslog } for pid=3995 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: [ 18.817758] audit: type=1400 audit(1517300716.385:6): avc: denied { map } for pid=4133 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.225' (ECDSA) to the list of known hosts. net.ipv6.conf.syz0.accept_dad = 0 net.ipv6.conf.syz0.router_solicitations = 0 [ 25.151056] audit: type=1400 audit(1517300722.718:7): avc: denied { map } for pid=4148 comm="syzkaller445676" path="/root/syzkaller445676482" 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 [ 25.536652] 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 [ 25.854660] [ 25.856299] ====================================================== [ 25.862584] WARNING: possible circular locking dependency detected [ 25.868868] 4.15.0-rc9+ #216 Not tainted [ 25.872893] ------------------------------------------------------ [ 25.879176] syzkaller445676/4148 is trying to acquire lock: [ 25.884851] (rtnl_mutex){+.+.}, at: [<00000000ce80f956>] rtnl_lock+0x17/0x20 [ 25.892100] [ 25.892100] but task is already holding lock: [ 25.898035] (sk_lock-AF_INET){+.+.}, at: [<0000000013a75acd>] ip_setsockopt+0x8c/0xb0 [ 25.906061] [ 25.906061] which lock already depends on the new lock. [ 25.906061] [ 25.914342] [ 25.914342] the existing dependency chain (in reverse order) is: [ 25.921927] [ 25.921927] -> #1 (sk_lock-AF_INET){+.+.}: [ 25.927611] lock_sock_nested+0xc2/0x110 [ 25.932163] do_ip_getsockopt+0x1b3/0x2170 [ 25.936885] ip_getsockopt+0x90/0x220 [ 25.941174] tcp_getsockopt+0x82/0xd0 [ 25.945465] sock_common_getsockopt+0x95/0xd0 [ 25.950445] SyS_getsockopt+0x178/0x340 [ 25.954908] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.960148] [ 25.960148] -> #0 (rtnl_mutex){+.+.}: [ 25.965397] lock_acquire+0x1d5/0x580 [ 25.969685] __mutex_lock+0x16f/0x1a80 [ 25.974061] mutex_lock_nested+0x16/0x20 [ 25.978612] rtnl_lock+0x17/0x20 [ 25.982464] register_netdevice_notifier+0xad/0x860 [ 25.987968] tee_tg_check+0x1a0/0x280 [ 25.992258] xt_check_target+0x22c/0x7d0 [ 25.996807] find_check_entry.isra.8+0x8c8/0xcb0 [ 26.002048] translate_table+0xed1/0x1610 [ 26.006685] do_ipt_set_ctl+0x370/0x5f0 [ 26.011145] nf_setsockopt+0x67/0xc0 [ 26.015344] ip_setsockopt+0xa1/0xb0 [ 26.019544] dccp_setsockopt+0x85/0xd0 [ 26.023920] sock_common_setsockopt+0x95/0xd0 [ 26.028905] SyS_setsockopt+0x189/0x360 [ 26.033367] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.038609] [ 26.038609] other info that might help us debug this: [ 26.038609] [ 26.046714] Possible unsafe locking scenario: [ 26.046714] [ 26.052734] CPU0 CPU1 [ 26.057365] ---- ---- [ 26.061996] lock(sk_lock-AF_INET); [ 26.065680] lock(rtnl_mutex); [ 26.071443] lock(sk_lock-AF_INET); [ 26.077639] lock(rtnl_mutex); [ 26.080882] [ 26.080882] *** DEADLOCK *** [ 26.080882] [ 26.086905] 1 lock held by syzkaller445676/4148: [ 26.091625] #0: (sk_lock-AF_INET){+.+.}, at: [<0000000013a75acd>] ip_setsockopt+0x8c/0xb0 [ 26.100086] [ 26.100086] stack backtrace: [ 26.104548] CPU: 1 PID: 4148 Comm: syzkaller445676 Not tainted 4.15.0-rc9+ #216 [ 26.111960] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.121286] Call Trace: [ 26.123842] dump_stack+0x194/0x257 [ 26.127437] ? arch_local_irq_restore+0x53/0x53 [ 26.132078] print_circular_bug.isra.37+0x2cd/0x2dc [ 26.137059] ? save_trace+0xe0/0x2b0 [ 26.140741] __lock_acquire+0x30a8/0x3e00 [ 26.144855] ? print_irqtrace_events+0x270/0x270 [ 26.149581] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.154741] ? print_irqtrace_events+0x270/0x270 [ 26.159463] ? __lock_acquire+0x664/0x3e00 [ 26.163675] ? rcutorture_record_progress+0x10/0x10 [ 26.168658] ? print_irqtrace_events+0x270/0x270 [ 26.173469] ? __lock_acquire+0x664/0x3e00 [ 26.177674] ? __save_stack_trace+0x7e/0xd0 [ 26.181963] ? add_lock_to_list.isra.28+0x24d/0x352 [ 26.186946] ? check_noncircular+0x20/0x20 [ 26.191148] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.196304] ? __lock_acquire+0x664/0x3e00 [ 26.200507] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.205666] lock_acquire+0x1d5/0x580 [ 26.209433] ? lock_acquire+0x1d5/0x580 [ 26.213377] ? rtnl_lock+0x17/0x20 [ 26.216885] ? lock_release+0xa40/0xa40 [ 26.220827] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.226679] ? rcu_note_context_switch+0x710/0x710 [ 26.231573] ? find_held_lock+0x35/0x1d0 [ 26.235602] ? __might_sleep+0x95/0x190 [ 26.239545] ? rtnl_lock+0x17/0x20 [ 26.243052] __mutex_lock+0x16f/0x1a80 [ 26.246907] ? rtnl_lock+0x17/0x20 [ 26.250413] ? check_noncircular+0x20/0x20 [ 26.255027] ? lock_downgrade+0x980/0x980 [ 26.259147] ? rtnl_lock+0x17/0x20 [ 26.262655] ? find_held_lock+0x35/0x1d0 [ 26.266682] ? mutex_lock_io_nested+0x1900/0x1900 [ 26.271494] ? is_bpf_text_address+0x7b/0x120 [ 26.275956] ? print_irqtrace_events+0x270/0x270 [ 26.280685] ? depot_save_stack+0x3b5/0x490 [ 26.284974] ? lock_downgrade+0x980/0x980 [ 26.289087] ? lock_release+0xa40/0xa40 [ 26.293032] ? mark_held_locks+0xaf/0x100 [ 26.297147] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 26.302218] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.307199] ? trace_hardirqs_on+0xd/0x10 [ 26.311315] ? depot_save_stack+0x3b5/0x490 [ 26.315607] ? save_stack+0xa3/0xd0 [ 26.319200] ? save_stack+0x43/0xd0 [ 26.322794] ? kasan_kmalloc+0xad/0xe0 [ 26.326649] ? kmem_cache_alloc_trace+0x136/0x750 [ 26.331462] ? tee_tg_check+0xed/0x280 [ 26.335325] ? xt_check_target+0x22c/0x7d0 [ 26.339529] ? find_check_entry.isra.8+0x8c8/0xcb0 [ 26.344425] ? translate_table+0xed1/0x1610 [ 26.348712] ? do_ipt_set_ctl+0x370/0x5f0 [ 26.352833] ? nf_setsockopt+0x67/0xc0 [ 26.356689] ? ip_setsockopt+0xa1/0xb0 [ 26.360547] ? dccp_setsockopt+0x85/0xd0 [ 26.364575] ? sock_common_setsockopt+0x95/0xd0 [ 26.369211] ? SyS_setsockopt+0x189/0x360 [ 26.373326] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.378224] mutex_lock_nested+0x16/0x20 [ 26.382253] ? print_irqtrace_events+0x270/0x270 [ 26.386996] ? mutex_lock_nested+0x16/0x20 [ 26.391212] rtnl_lock+0x17/0x20 [ 26.394556] register_netdevice_notifier+0xad/0x860 [ 26.399560] ? __dev_close_many+0x350/0x350 [ 26.403871] ? __lock_is_held+0xb6/0x140 [ 26.407915] ? tee_tg_check+0xed/0x280 [ 26.411778] ? rcu_read_lock_sched_held+0x108/0x120 [ 26.416764] ? kmem_cache_alloc_trace+0x456/0x750 [ 26.421581] ? __kernel_text_address+0xd/0x40 [ 26.426046] ? wait_for_completion+0x770/0x770 [ 26.430599] tee_tg_check+0x1a0/0x280 [ 26.434364] ? tee_tg4+0x170/0x170 [ 26.437870] xt_check_target+0x22c/0x7d0 [ 26.441896] ? xt_target_seq_next+0x30/0x30 [ 26.446183] ? save_stack+0xa3/0xd0 [ 26.449779] ? kasan_slab_free+0x71/0xc0 [ 26.453804] ? kfree+0xd6/0x260 [ 26.457049] ? kvfree+0x36/0x60 [ 26.460297] ? translate_table+0xdd2/0x1610 [ 26.464587] ? mutex_unlock+0xd/0x10 [ 26.468267] ? xt_find_target+0x17b/0x1e0 [ 26.472387] find_check_entry.isra.8+0x8c8/0xcb0 [ 26.477116] ? ipt_do_table+0x1860/0x1860 [ 26.481233] ? mark_held_locks+0xaf/0x100 [ 26.485347] ? kfree+0xf0/0x260 [ 26.488629] ? trace_hardirqs_on+0xd/0x10 [ 26.492747] translate_table+0xed1/0x1610 [ 26.496866] ? alloc_counters.isra.11+0x7d0/0x7d0 [ 26.501677] ? kasan_check_write+0x14/0x20 [ 26.505878] ? _copy_from_user+0x99/0x110 [ 26.509991] do_ipt_set_ctl+0x370/0x5f0 [ 26.513933] ? translate_compat_table+0x1b90/0x1b90 [ 26.518917] ? mutex_unlock+0xd/0x10 [ 26.522597] ? nf_sockopt_find.constprop.0+0x1a7/0x220 [ 26.527840] nf_setsockopt+0x67/0xc0 [ 26.531522] ip_setsockopt+0xa1/0xb0 [ 26.535209] dccp_setsockopt+0x85/0xd0 [ 26.539088] sock_common_setsockopt+0x95/0xd0 [ 26.543554] SyS_setsockopt+0x189/0x360 [ 26.547497] ? SyS_recv+0x40/0x40 [ 26.550917] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 26.555727] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.560710] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.565432] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.570153] RIP: 0033:0x4458f9 [ 26.573312] RSP: 002b:00007fff44e0d218 EFLAGS: 00000203 ORIG_RAX: 0000000000000036 [ 26.580988] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 00000000004458f9 [ 26.588225] RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000005 [ 26.595467] RBP: 00007fff44e0d2c8 R08: 00000000000002f8 R09: 0000000000000000 [ 26.602704] R10: 0000000020004000 R11: 0000000000000203 R