[....] Starting enhanced syslogd: rsyslogd[ 16.991465] audit: type=1400 audit(1517396899.065:5): avc: denied { syslog } for pid=4006 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 mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] 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.324234] audit: type=1400 audit(1517396904.397:6): avc: denied { map } for pid=4146 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.29' (ECDSA) to the list of known hosts. net.ipv6.conf.syz0.accept_dad = 0 net.ipv6.conf.syz0.router_solicitations = 0 [ 28.610842] audit: type=1400 audit(1517396910.684:7): avc: denied { map } for pid=4160 comm="syzkaller474696" path="/root/syzkaller474696020" 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 [ 28.997410] 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 [ 29.318802] [ 29.320464] ====================================================== [ 29.326759] WARNING: possible circular locking dependency detected [ 29.333043] 4.15.0-rc9+ #217 Not tainted [ 29.337070] ------------------------------------------------------ [ 29.343356] syzkaller474696/4160 is trying to acquire lock: [ 29.349031] (rtnl_mutex){+.+.}, at: [<00000000eb543e28>] rtnl_lock+0x17/0x20 [ 29.356284] [ 29.356284] but task is already holding lock: [ 29.362220] (sk_lock-AF_INET){+.+.}, at: [<00000000c33001cf>] ip_setsockopt+0x8c/0xb0 [ 29.370254] [ 29.370254] which lock already depends on the new lock. [ 29.370254] [ 29.378538] [ 29.378538] the existing dependency chain (in reverse order) is: [ 29.386125] [ 29.386125] -> #1 (sk_lock-AF_INET){+.+.}: [ 29.391823] lock_sock_nested+0xc2/0x110 [ 29.396390] do_ip_getsockopt+0x1b3/0x2170 [ 29.401114] ip_getsockopt+0x90/0x220 [ 29.405405] udp_getsockopt+0x45/0x80 [ 29.409708] sock_common_getsockopt+0x95/0xd0 [ 29.414701] SyS_getsockopt+0x178/0x340 [ 29.419166] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 29.424408] [ 29.424408] -> #0 (rtnl_mutex){+.+.}: [ 29.429666] lock_acquire+0x1d5/0x580 [ 29.433955] __mutex_lock+0x16f/0x1a80 [ 29.438334] mutex_lock_nested+0x16/0x20 [ 29.442884] rtnl_lock+0x17/0x20 [ 29.446750] register_netdevice_notifier+0xad/0x860 [ 29.452264] tee_tg_check+0x1a0/0x280 [ 29.456564] xt_check_target+0x22c/0x7d0 [ 29.461124] find_check_entry.isra.8+0x8c8/0xcb0 [ 29.466368] translate_table+0xed1/0x1610 [ 29.471004] do_ipt_set_ctl+0x370/0x5f0 [ 29.475473] nf_setsockopt+0x67/0xc0 [ 29.479676] ip_setsockopt+0xa1/0xb0 [ 29.483879] sctp_setsockopt+0x2b6/0x61d0 [ 29.488518] sock_common_setsockopt+0x95/0xd0 [ 29.493503] SyS_setsockopt+0x189/0x360 [ 29.497967] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 29.503217] [ 29.503217] other info that might help us debug this: [ 29.503217] [ 29.511326] Possible unsafe locking scenario: [ 29.511326] [ 29.517350] CPU0 CPU1 [ 29.521983] ---- ---- [ 29.526615] lock(sk_lock-AF_INET); [ 29.530297] lock(rtnl_mutex); [ 29.536063] lock(sk_lock-AF_INET); [ 29.542272] lock(rtnl_mutex); [ 29.545519] [ 29.545519] *** DEADLOCK *** [ 29.545519] [ 29.551556] 1 lock held by syzkaller474696/4160: [ 29.556289] #0: (sk_lock-AF_INET){+.+.}, at: [<00000000c33001cf>] ip_setsockopt+0x8c/0xb0 [ 29.564752] [ 29.564752] stack backtrace: [ 29.569224] CPU: 1 PID: 4160 Comm: syzkaller474696 Not tainted 4.15.0-rc9+ #217 [ 29.576647] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.585967] Call Trace: [ 29.588538] dump_stack+0x194/0x257 [ 29.592145] ? arch_local_irq_restore+0x53/0x53 [ 29.596784] print_circular_bug.isra.37+0x2cd/0x2dc [ 29.601769] ? save_trace+0xe0/0x2b0 [ 29.605451] __lock_acquire+0x30a8/0x3e00 [ 29.609570] ? print_irqtrace_events+0x270/0x270 [ 29.614299] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.619458] ? check_noncircular+0x20/0x20 [ 29.623662] ? print_irqtrace_events+0x270/0x270 [ 29.628397] ? __lock_acquire+0x664/0x3e00 [ 29.632602] ? __debug_object_init+0x235/0x1040 [ 29.637240] ? lock_downgrade+0x980/0x980 [ 29.641360] ? print_irqtrace_events+0x270/0x270 [ 29.646084] ? __lock_acquire+0x664/0x3e00 [ 29.650287] ? lock_downgrade+0x980/0x980 [ 29.654407] ? check_noncircular+0x20/0x20 [ 29.658610] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.663771] ? __lock_acquire+0x664/0x3e00 [ 29.667977] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.673135] lock_acquire+0x1d5/0x580 [ 29.676904] ? lock_acquire+0x1d5/0x580 [ 29.680859] ? rtnl_lock+0x17/0x20 [ 29.684370] ? lock_release+0xa40/0xa40 [ 29.688313] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 29.694177] ? rcu_note_context_switch+0x710/0x710 [ 29.699076] ? find_held_lock+0x35/0x1d0 [ 29.703112] ? __might_sleep+0x95/0x190 [ 29.707064] ? rtnl_lock+0x17/0x20 [ 29.710585] __mutex_lock+0x16f/0x1a80 [ 29.714455] ? rtnl_lock+0x17/0x20 [ 29.717969] ? check_noncircular+0x20/0x20 [ 29.722176] ? lock_downgrade+0x980/0x980 [ 29.726310] ? rtnl_lock+0x17/0x20 [ 29.729835] ? find_held_lock+0x35/0x1d0 [ 29.733871] ? mutex_lock_io_nested+0x1900/0x1900 [ 29.738689] ? is_bpf_text_address+0x7b/0x120 [ 29.743158] ? print_irqtrace_events+0x270/0x270 [ 29.747892] ? depot_save_stack+0x3b5/0x490 [ 29.752184] ? lock_downgrade+0x980/0x980 [ 29.756301] ? lock_release+0xa40/0xa40 [ 29.760245] ? mark_held_locks+0xaf/0x100 [ 29.764376] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 29.769448] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.774445] ? trace_hardirqs_on+0xd/0x10 [ 29.778572] ? depot_save_stack+0x3b5/0x490 [ 29.782865] ? save_stack+0xa3/0xd0 [ 29.786469] ? save_stack+0x43/0xd0 [ 29.790062] ? kasan_kmalloc+0xad/0xe0 [ 29.793917] ? kmem_cache_alloc_trace+0x136/0x750 [ 29.798744] ? tee_tg_check+0xed/0x280 [ 29.802599] ? xt_check_target+0x22c/0x7d0 [ 29.806802] ? find_check_entry.isra.8+0x8c8/0xcb0 [ 29.811703] ? translate_table+0xed1/0x1610 [ 29.815992] ? do_ipt_set_ctl+0x370/0x5f0 [ 29.820113] ? nf_setsockopt+0x67/0xc0 [ 29.823978] ? ip_setsockopt+0xa1/0xb0 [ 29.827845] ? sctp_setsockopt+0x2b6/0x61d0 [ 29.832137] ? sock_common_setsockopt+0x95/0xd0 [ 29.836773] ? SyS_setsockopt+0x189/0x360 [ 29.840888] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 29.845796] mutex_lock_nested+0x16/0x20 [ 29.849844] ? print_irqtrace_events+0x270/0x270 [ 29.854567] ? mutex_lock_nested+0x16/0x20 [ 29.858771] rtnl_lock+0x17/0x20 [ 29.862107] register_netdevice_notifier+0xad/0x860 [ 29.867101] ? __dev_close_many+0x350/0x350 [ 29.871392] ? __lock_is_held+0xb6/0x140 [ 29.875425] ? tee_tg_check+0xed/0x280 [ 29.879280] ? rcu_read_lock_sched_held+0x108/0x120 [ 29.884264] ? kmem_cache_alloc_trace+0x456/0x750 [ 29.889075] ? wait_for_completion+0x770/0x770 [ 29.893625] tee_tg_check+0x1a0/0x280 [ 29.897392] ? tee_tg4+0x170/0x170 [ 29.900902] xt_check_target+0x22c/0x7d0 [ 29.904940] ? xt_target_seq_next+0x30/0x30 [ 29.909228] ? mutex_unlock+0xd/0x10 [ 29.912909] ? mutex_unlock+0xd/0x10 [ 29.916601] ? xt_find_target+0x17b/0x1e0 [ 29.920719] find_check_entry.isra.8+0x8c8/0xcb0 [ 29.925448] ? ipt_do_table+0x1860/0x1860 [ 29.929566] ? mark_held_locks+0xaf/0x100 [ 29.933685] ? kfree+0xf0/0x260 [ 29.936932] ? trace_hardirqs_on+0xd/0x10 [ 29.941048] translate_table+0xed1/0x1610 [ 29.945170] ? alloc_counters.isra.11+0x7d0/0x7d0 [ 29.949981] ? kasan_check_write+0x14/0x20 [ 29.954197] ? _copy_from_user+0x99/0x110 [ 29.958325] do_ipt_set_ctl+0x370/0x5f0 [ 29.962269] ? translate_compat_table+0x1b90/0x1b90 [ 29.967257] ? mutex_unlock+0xd/0x10 [ 29.970939] ? nf_sockopt_find.constprop.0+0x1a7/0x220 [ 29.976185] nf_setsockopt+0x67/0xc0 [ 29.979869] ip_setsockopt+0xa1/0xb0 [ 29.983561] sctp_setsockopt+0x2b6/0x61d0 [ 29.987679] ? sctp_setsockopt_paddr_thresholds+0x550/0x550 [ 29.993367] ? __free_insn_slot+0x5c0/0x5c0 [ 29.997658] ? rcutorture_record_progress+0x10/0x10 [ 30.002643] ? is_bpf_text_address+0xa4/0x120 [ 30.007110] ? __lock_acquire+0x664/0x3e00 [ 30.011325] ? unwind_get_return_address+0x61/0xa0 [ 30.016232] ? __save_stack_trace+0x7e/0xd0 [ 30.020526] ? check_noncircular+0x20/0x20 [ 30.024728] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.029887] ? save_stack+0xa3/0xd0 [ 30.033483] ? save_stack+0x43/0xd0 [ 30.037085] ? kasan_kmalloc+0xad/0xe0 [ 30.040941] ? kasan_slab_alloc+0x12/0x20 [ 30.045056] ? kmem_cache_alloc+0x12e/0x760 [ 30.049347] ? selinux_file_alloc_security+0xae/0x190 [ 30.054507] ? security_file_alloc+0x6d/0xa0 [ 30.058889] ? get_empty_filp+0x189/0x4f0 [ 30.063004] ? alloc_file+0x26/0x390 [ 30.066691] ? sock_alloc_file+0x1f3/0x560 [ 30.070894] ? sock_map_fd+0x34/0x90 [ 30.074586] ? SyS_socket+0x125/0x1d0 [ 30.078358] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 30.083257] ? kasan_slab_alloc+0x12/0x20 [ 30.087372] ? kmem_cache_alloc+0x12e/0x760 [ 30.091669] ? get_empty_filp+0xfb/0x4f0 [ 30.095698] ? alloc_file+0x26/0x390 [ 30.099387] ? sock_alloc_file+0x1f3/0x560 [ 30.103592] ? find_held_lock+0x35/0x1d0 [ 30.107623] ? avc_has_perm+0x35e/0x680 [ 30.111564] ? lock_downgrade+0x980/0x980 [ 30.115693] ? debug_mutex_init+0x1c/0x60 [ 30.119814] ? lock_release+0xa40/0xa40 [ 30.123766] ? __lockdep_init_map+0xe4/0x650 [ 30.128147] ? avc_has_perm+0x43e/0x680 [ 30.132090] ? avc_has_perm_noaudit+0x520/0x520 [ 30.136738] ? __fd_install+0x25f/0x740 [ 30.140690] ? lock_downgrade+0x980/0x980 [ 30.144811] ? __lock_is_held+0xb6/0x140 [ 30.148844] ? sock_has_perm+0x2a4/0x420 [ 30.152877] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 30.158219] ? selinux_netlbl_socket_setsockopt+0x10c/0x460 [ 30.163898] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 30.169141] ? alloc_file+0x27e/0x390 [ 30.172913] sock_common_setsockopt+0x95/0xd0 [ 30.177390] SyS_setsockopt+0x189/0x360 [ 30.181342] ? SyS_recv+0x40/0x40 [ 30.184774] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 30.189585] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.194572] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 30.199703] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 30.204433] RIP: 0033:0x445c69 [ 30.207591] RSP: 002b:00007fffceec89d8 EFLAGS: 00000203 ORIG_RAX: 0000000000000036 [ 30.215275] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 0000000000445c69 [