[....] Starting enhanced syslogd: rsyslogd[ 16.586005] audit: type=1400 audit(1517500473.382:5): avc: denied { syslog } for pid=3971 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: [ 22.607973] audit: type=1400 audit(1517500479.404:6): avc: denied { map } for pid=4110 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.25' (ECDSA) to the list of known hosts. net.ipv6.conf.syz0.accept_dad = 0 net.ipv6.conf.syz0.router_solicitations = 0 [ 28.893776] audit: type=1400 audit(1517500485.690:7): avc: denied { map } for pid=4124 comm="syzkaller681093" path="/root/syzkaller681093365" 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 [ 29.204517] 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 [ 29.579772] [ 29.581425] ====================================================== [ 29.587724] WARNING: possible circular locking dependency detected [ 29.594015] 4.15.0+ #290 Not tainted [ 29.597786] ------------------------------------------------------ [ 29.604079] syzkaller681093/4124 is trying to acquire lock: [ 29.609768] (rtnl_mutex){+.+.}, at: [<00000000c3d62391>] rtnl_lock+0x17/0x20 [ 29.617038] [ 29.617038] but task is already holding lock: [ 29.622981] (sk_lock-AF_INET){+.+.}, at: [<0000000051813e83>] ip_setsockopt+0x8c/0xb0 [ 29.631022] [ 29.631022] which lock already depends on the new lock. [ 29.631022] [ 29.639309] [ 29.639309] the existing dependency chain (in reverse order) is: [ 29.646903] [ 29.646903] -> #1 (sk_lock-AF_INET){+.+.}: [ 29.652605] lock_sock_nested+0xc2/0x110 [ 29.657164] do_ip_getsockopt+0x1b3/0x2170 [ 29.661896] ip_getsockopt+0x90/0x220 [ 29.666191] tcp_getsockopt+0x82/0xd0 [ 29.670485] sock_common_getsockopt+0x95/0xd0 [ 29.675476] SyS_getsockopt+0x178/0x340 [ 29.679951] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 29.685389] [ 29.685389] -> #0 (rtnl_mutex){+.+.}: [ 29.690664] lock_acquire+0x1d5/0x580 [ 29.694961] __mutex_lock+0x16f/0x1a80 [ 29.699344] mutex_lock_nested+0x16/0x20 [ 29.703900] rtnl_lock+0x17/0x20 [ 29.707778] register_netdevice_notifier+0xad/0x860 [ 29.713290] tee_tg_check+0x1a0/0x280 [ 29.717596] xt_check_target+0x22c/0x7d0 [ 29.722167] find_check_entry.isra.8+0x8c8/0xcb0 [ 29.727430] translate_table+0xed1/0x1610 [ 29.732076] do_ipt_set_ctl+0x370/0x5f0 [ 29.736562] nf_setsockopt+0x67/0xc0 [ 29.740785] ip_setsockopt+0xa1/0xb0 [ 29.744999] sctp_setsockopt+0x2b6/0x61d0 [ 29.749646] sock_common_setsockopt+0x95/0xd0 [ 29.754636] SyS_setsockopt+0x189/0x360 [ 29.759108] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 29.764355] [ 29.764355] other info that might help us debug this: [ 29.764355] [ 29.772474] Possible unsafe locking scenario: [ 29.772474] [ 29.778506] CPU0 CPU1 [ 29.783145] ---- ---- [ 29.787793] lock(sk_lock-AF_INET); [ 29.791483] lock(rtnl_mutex); [ 29.797263] lock(sk_lock-AF_INET); [ 29.803469] lock(rtnl_mutex); [ 29.806725] [ 29.806725] *** DEADLOCK *** [ 29.806725] [ 29.812772] 1 lock held by syzkaller681093/4124: [ 29.817500] #0: (sk_lock-AF_INET){+.+.}, at: [<0000000051813e83>] ip_setsockopt+0x8c/0xb0 [ 29.825994] [ 29.825994] stack backtrace: [ 29.830468] CPU: 0 PID: 4124 Comm: syzkaller681093 Not tainted 4.15.0+ #290 [ 29.837539] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.846867] Call Trace: [ 29.849440] dump_stack+0x194/0x257 [ 29.853055] ? arch_local_irq_restore+0x53/0x53 [ 29.857716] print_circular_bug.isra.38+0x2cd/0x2dc [ 29.862724] ? save_trace+0xe0/0x2b0 [ 29.866418] __lock_acquire+0x30a8/0x3e00 [ 29.870561] ? print_irqtrace_events+0x270/0x270 [ 29.875313] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.880500] ? print_irqtrace_events+0x270/0x270 [ 29.885239] ? __lock_acquire+0x664/0x3e00 [ 29.889455] ? rcutorture_record_progress+0x10/0x10 [ 29.894456] ? print_irqtrace_events+0x270/0x270 [ 29.899193] ? __lock_acquire+0x664/0x3e00 [ 29.903409] ? __save_stack_trace+0x7e/0xd0 [ 29.908190] ? add_lock_to_list.isra.29+0x24d/0x352 [ 29.913201] ? __lock_acquire+0x664/0x3e00 [ 29.917428] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.922599] ? __lock_acquire+0x664/0x3e00 [ 29.926823] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.931991] lock_acquire+0x1d5/0x580 [ 29.935783] ? lock_acquire+0x1d5/0x580 [ 29.939743] ? rtnl_lock+0x17/0x20 [ 29.943279] ? lock_release+0xa40/0xa40 [ 29.947232] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 29.953109] ? rcu_note_context_switch+0x710/0x710 [ 29.958037] ? find_held_lock+0x35/0x1d0 [ 29.962081] ? __might_sleep+0x95/0x190 [ 29.966038] ? rtnl_lock+0x17/0x20 [ 29.969560] __mutex_lock+0x16f/0x1a80 [ 29.973440] ? rtnl_lock+0x17/0x20 [ 29.976964] ? lock_downgrade+0x980/0x980 [ 29.981108] ? rtnl_lock+0x17/0x20 [ 29.984632] ? check_noncircular+0x20/0x20 [ 29.988861] ? find_held_lock+0x35/0x1d0 [ 29.992917] ? mutex_lock_io_nested+0x1900/0x1900 [ 29.997754] ? is_bpf_text_address+0x7b/0x120 [ 30.002237] ? print_irqtrace_events+0x270/0x270 [ 30.006985] ? depot_save_stack+0x3b5/0x490 [ 30.011289] ? lock_downgrade+0x980/0x980 [ 30.015420] ? lock_release+0xa40/0xa40 [ 30.019381] ? mark_held_locks+0xaf/0x100 [ 30.023518] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 30.028625] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.033719] ? trace_hardirqs_on+0xd/0x10 [ 30.037877] ? depot_save_stack+0x3b5/0x490 [ 30.042190] ? save_stack+0xa3/0xd0 [ 30.045805] ? save_stack+0x43/0xd0 [ 30.049416] ? kasan_kmalloc+0xad/0xe0 [ 30.053291] ? kmem_cache_alloc_trace+0x136/0x750 [ 30.058208] ? tee_tg_check+0xed/0x280 [ 30.062070] ? xt_check_target+0x22c/0x7d0 [ 30.066299] ? find_check_entry.isra.8+0x8c8/0xcb0 [ 30.071217] ? translate_table+0xed1/0x1610 [ 30.075526] ? do_ipt_set_ctl+0x370/0x5f0 [ 30.079660] ? nf_setsockopt+0x67/0xc0 [ 30.083637] ? ip_setsockopt+0xa1/0xb0 [ 30.087515] ? sctp_setsockopt+0x2b6/0x61d0 [ 30.091812] ? sock_common_setsockopt+0x95/0xd0 [ 30.096459] ? SyS_setsockopt+0x189/0x360 [ 30.100598] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 30.105512] mutex_lock_nested+0x16/0x20 [ 30.109565] ? print_irqtrace_events+0x270/0x270 [ 30.114311] ? mutex_lock_nested+0x16/0x20 [ 30.118529] rtnl_lock+0x17/0x20 [ 30.122312] register_netdevice_notifier+0xad/0x860 [ 30.127312] ? __dev_close_many+0x350/0x350 [ 30.131617] ? __lock_is_held+0xb6/0x140 [ 30.135658] ? tee_tg_check+0xed/0x280 [ 30.139526] ? rcu_read_lock_sched_held+0x108/0x120 [ 30.144517] ? kmem_cache_alloc_trace+0x456/0x750 [ 30.149346] ? __kernel_text_address+0xd/0x40 [ 30.153825] ? wait_for_completion+0x770/0x770 [ 30.158385] tee_tg_check+0x1a0/0x280 [ 30.162170] ? tee_tg4+0x170/0x170 [ 30.165700] xt_check_target+0x22c/0x7d0 [ 30.169738] ? xt_target_seq_next+0x30/0x30 [ 30.174036] ? save_stack+0xa3/0xd0 [ 30.177792] ? kasan_slab_free+0x71/0xc0 [ 30.181840] ? kfree+0xd6/0x260 [ 30.185095] ? kvfree+0x36/0x60 [ 30.188348] ? translate_table+0xdd2/0x1610 [ 30.192666] ? mutex_unlock+0xd/0x10 [ 30.196374] ? xt_find_target+0x17b/0x1e0 [ 30.200524] find_check_entry.isra.8+0x8c8/0xcb0 [ 30.205262] ? ipt_do_table+0x1950/0x1950 [ 30.209417] ? mark_held_locks+0xaf/0x100 [ 30.213547] ? kfree+0xf0/0x260 [ 30.216809] ? trace_hardirqs_on+0xd/0x10 [ 30.220953] translate_table+0xed1/0x1610 [ 30.225090] ? alloc_counters.isra.11+0x7d0/0x7d0 [ 30.229917] ? kasan_check_write+0x14/0x20 [ 30.234133] ? _copy_from_user+0x99/0x110 [ 30.238266] do_ipt_set_ctl+0x370/0x5f0 [ 30.242236] ? translate_compat_table+0x1b90/0x1b90 [ 30.247246] ? mutex_unlock+0xd/0x10 [ 30.250950] ? nf_sockopt_find.constprop.0+0x1a7/0x220 [ 30.256231] nf_setsockopt+0x67/0xc0 [ 30.259935] ip_setsockopt+0xa1/0xb0 [ 30.263634] sctp_setsockopt+0x2b6/0x61d0 [ 30.267780] ? sctp_setsockopt_paddr_thresholds+0x550/0x550 [ 30.273476] ? __lock_acquire+0x664/0x3e00 [ 30.277689] ? __lock_acquire+0x664/0x3e00 [ 30.281902] ? is_bpf_text_address+0xa4/0x120 [ 30.286378] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.291551] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.296721] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.301905] ? save_stack+0xa3/0xd0 [ 30.305524] ? check_noncircular+0x20/0x20 [ 30.309736] ? kasan_kmalloc+0xad/0xe0 [ 30.313618] ? kasan_slab_alloc+0x12/0x20 [ 30.317746] ? kmem_cache_alloc+0x12e/0x760 [ 30.322061] ? selinux_file_alloc_security+0xae/0x190 [ 30.327239] ? security_file_alloc+0x6d/0xa0 [ 30.331642] ? get_empty_filp+0x189/0x4f0 [ 30.335766] ? alloc_file+0x26/0x390 [ 30.339458] ? sock_alloc_file+0x1f3/0x560 [ 30.343679] ? sock_map_fd+0x34/0x90 [ 30.347380] ? SyS_socket+0x125/0x1d0 [ 30.351185] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 30.356097] ? kasan_slab_alloc+0x12/0x20 [ 30.360233] ? kmem_cache_alloc+0x12e/0x760 [ 30.364546] ? get_empty_filp+0xfb/0x4f0 [ 30.368587] ? alloc_file+0x26/0x390 [ 30.372291] ? sock_alloc_file+0x1f3/0x560 [ 30.376509] ? find_held_lock+0x35/0x1d0 [ 30.380563] ? avc_has_perm+0x35e/0x680 [ 30.384519] ? lock_downgrade+0x980/0x980 [ 30.388658] ? lock_release+0xa40/0xa40 [ 30.392612] ? __pmd_alloc+0x4e0/0x4e0 [ 30.396474] ? check_noncircular+0x20/0x20 [ 30.400684] ? __lockdep_init_map+0xe4/0x650 [ 30.405069] ? find_held_lock+0x35/0x1d0 [ 30.409110] ? avc_has_perm+0x43e/0x680 [ 30.413064] ? avc_has_perm_noaudit+0x520/0x520 [ 30.417714] ? __do_page_fault+0x5f7/0xc90 [ 30.421930] ? lock_downgrade+0x980/0x980 [ 30.426057] ? handle_mm_fault+0x476/0x930 [ 30.430268] ? down_read_trylock+0xdb/0x170 [ 30.434582] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 30.439144] ? vmacache_find+0x5f/0x280 [ 30.443099] ? sock_has_perm+0x2a4/0x420 [ 30.447140] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 30.452482] ? __do_page_fault+0x3d6/0xc90 [ 30.456699] ? selinux_netlbl_socket_setsockopt+0x10c/0x460 [ 30.462414] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 30.467677] sock_common_setsockopt+0x95/0xd0 [ 30.472150] SyS_setsockopt+0x189/0x360 [ 30.476106] ? SyS_recv+0x40/0x40 [ 30.479537] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 30.484360] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.489355] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 30.494098] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 30.498832] RIP: 0033:0x445bd9 [ 30.501997] RSP: 002b:00007fffdfb6a998 EFLAGS: 00000203 ORIG_RAX: 0000000000000036 [ 30.509681] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 0000000000445bd9 [ 30.516927] RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000005 [ 30.524174] RBP: 00007fffdfb6aa48 R08: 0000000000000318 R09: 0000000000000000 [ 30.531433] R10: 000000002