[....] Starting enhanced syslogd: rsyslogd[ 16.745401] audit: type=1400 audit(1517499152.057: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: [ 23.133419] audit: type=1400 audit(1517499158.445:6): avc: denied { map } for pid=4147 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.2' (ECDSA) to the list of known hosts. net.ipv6.conf.syz0.accept_dad = 0 net.ipv6.conf.syz0.router_solicitations = 0 [ 29.472486] audit: type=1400 audit(1517499164.784:7): avc: denied { map } for pid=4161 comm="syzkaller406971" path="/root/syzkaller406971052" 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 [ 29.852477] 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 [ 30.174548] [ 30.176196] ====================================================== [ 30.182484] WARNING: possible circular locking dependency detected [ 30.188769] 4.15.0+ #219 Not tainted [ 30.192448] ------------------------------------------------------ [ 30.198731] syzkaller406971/4161 is trying to acquire lock: [ 30.204415] (rtnl_mutex){+.+.}, at: [<000000006703a6f8>] rtnl_lock+0x17/0x20 [ 30.211664] [ 30.211664] but task is already holding lock: [ 30.217600] (sk_lock-AF_INET){+.+.}, at: [<0000000035947986>] ip_setsockopt+0x8c/0xb0 [ 30.225629] [ 30.225629] which lock already depends on the new lock. [ 30.225629] [ 30.233910] [ 30.233910] the existing dependency chain (in reverse order) is: [ 30.241498] [ 30.241498] -> #1 (sk_lock-AF_INET){+.+.}: [ 30.247187] lock_sock_nested+0xc2/0x110 [ 30.251748] do_ip_getsockopt+0x1b3/0x2170 [ 30.256471] ip_getsockopt+0x90/0x220 [ 30.260760] tcp_getsockopt+0x82/0xd0 [ 30.265050] sock_common_getsockopt+0x95/0xd0 [ 30.270036] SyS_getsockopt+0x178/0x340 [ 30.274500] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 30.279741] [ 30.279741] -> #0 (rtnl_mutex){+.+.}: [ 30.284993] lock_acquire+0x1d5/0x580 [ 30.289287] __mutex_lock+0x16f/0x1a80 [ 30.293661] mutex_lock_nested+0x16/0x20 [ 30.298209] rtnl_lock+0x17/0x20 [ 30.302065] register_netdevice_notifier+0xad/0x860 [ 30.307569] tee_tg_check+0x1a0/0x280 [ 30.311859] xt_check_target+0x22c/0x7d0 [ 30.316409] find_check_entry.isra.8+0x8c8/0xcb0 [ 30.321662] translate_table+0xed1/0x1610 [ 30.326297] do_ipt_set_ctl+0x370/0x5f0 [ 30.330761] nf_setsockopt+0x67/0xc0 [ 30.334972] ip_setsockopt+0xa1/0xb0 [ 30.339178] sctp_setsockopt+0x2b6/0x61d0 [ 30.343816] sock_common_setsockopt+0x95/0xd0 [ 30.348810] SyS_setsockopt+0x189/0x360 [ 30.353275] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 30.358517] [ 30.358517] other info that might help us debug this: [ 30.358517] [ 30.366635] Possible unsafe locking scenario: [ 30.366635] [ 30.372660] CPU0 CPU1 [ 30.377292] ---- ---- [ 30.381927] lock(sk_lock-AF_INET); [ 30.385610] lock(rtnl_mutex); [ 30.391384] lock(sk_lock-AF_INET); [ 30.397580] lock(rtnl_mutex); [ 30.400827] [ 30.400827] *** DEADLOCK *** [ 30.400827] [ 30.406852] 1 lock held by syzkaller406971/4161: [ 30.411584] #0: (sk_lock-AF_INET){+.+.}, at: [<0000000035947986>] ip_setsockopt+0x8c/0xb0 [ 30.420055] [ 30.420055] stack backtrace: [ 30.424520] CPU: 1 PID: 4161 Comm: syzkaller406971 Not tainted 4.15.0+ #219 [ 30.431588] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.440909] Call Trace: [ 30.443470] dump_stack+0x194/0x257 [ 30.447071] ? arch_local_irq_restore+0x53/0x53 [ 30.451714] print_circular_bug.isra.38+0x2cd/0x2dc [ 30.456714] ? save_trace+0xe0/0x2b0 [ 30.460397] __lock_acquire+0x30a8/0x3e00 [ 30.464513] ? print_irqtrace_events+0x270/0x270 [ 30.469249] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.474408] ? print_irqtrace_events+0x270/0x270 [ 30.479131] ? __lock_acquire+0x664/0x3e00 [ 30.483336] ? rcutorture_record_progress+0x10/0x10 [ 30.488323] ? print_irqtrace_events+0x270/0x270 [ 30.493058] ? __lock_acquire+0x664/0x3e00 [ 30.497261] ? add_lock_to_list.isra.29+0x24d/0x352 [ 30.502255] ? __lock_acquire+0x664/0x3e00 [ 30.506460] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.511629] ? __lock_acquire+0x664/0x3e00 [ 30.515844] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.521005] lock_acquire+0x1d5/0x580 [ 30.524788] ? lock_acquire+0x1d5/0x580 [ 30.528732] ? rtnl_lock+0x17/0x20 [ 30.532244] ? lock_release+0xa40/0xa40 [ 30.536187] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 30.542040] ? rcu_note_context_switch+0x710/0x710 [ 30.546950] ? find_held_lock+0x35/0x1d0 [ 30.550979] ? __might_sleep+0x95/0x190 [ 30.554920] ? rtnl_lock+0x17/0x20 [ 30.558440] __mutex_lock+0x16f/0x1a80 [ 30.562295] ? rtnl_lock+0x17/0x20 [ 30.565804] ? lock_downgrade+0x980/0x980 [ 30.569921] ? rtnl_lock+0x17/0x20 [ 30.573433] ? check_noncircular+0x20/0x20 [ 30.577634] ? find_held_lock+0x35/0x1d0 [ 30.581663] ? mutex_lock_io_nested+0x1900/0x1900 [ 30.586476] ? is_bpf_text_address+0x7b/0x120 [ 30.590939] ? print_irqtrace_events+0x270/0x270 [ 30.595667] ? depot_save_stack+0x3b5/0x490 [ 30.599958] ? lock_downgrade+0x980/0x980 [ 30.604084] ? lock_release+0xa40/0xa40 [ 30.608032] ? mark_held_locks+0xaf/0x100 [ 30.612150] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 30.617221] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.622213] ? trace_hardirqs_on+0xd/0x10 [ 30.626330] ? depot_save_stack+0x3b5/0x490 [ 30.630622] ? save_stack+0xa3/0xd0 [ 30.634216] ? save_stack+0x43/0xd0 [ 30.637811] ? kasan_kmalloc+0xad/0xe0 [ 30.641665] ? kmem_cache_alloc_trace+0x136/0x750 [ 30.646484] ? tee_tg_check+0xed/0x280 [ 30.650339] ? xt_check_target+0x22c/0x7d0 [ 30.654543] ? find_check_entry.isra.8+0x8c8/0xcb0 [ 30.659440] ? translate_table+0xed1/0x1610 [ 30.663729] ? do_ipt_set_ctl+0x370/0x5f0 [ 30.667854] ? nf_setsockopt+0x67/0xc0 [ 30.671711] ? ip_setsockopt+0xa1/0xb0 [ 30.675566] ? sctp_setsockopt+0x2b6/0x61d0 [ 30.679863] ? sock_common_setsockopt+0x95/0xd0 [ 30.684500] ? SyS_setsockopt+0x189/0x360 [ 30.688615] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 30.693515] mutex_lock_nested+0x16/0x20 [ 30.697545] ? print_irqtrace_events+0x270/0x270 [ 30.702268] ? mutex_lock_nested+0x16/0x20 [ 30.706470] rtnl_lock+0x17/0x20 [ 30.709805] register_netdevice_notifier+0xad/0x860 [ 30.714791] ? __dev_close_many+0x350/0x350 [ 30.719085] ? __lock_is_held+0xb6/0x140 [ 30.723124] ? tee_tg_check+0xed/0x280 [ 30.726979] ? rcu_read_lock_sched_held+0x108/0x120 [ 30.731965] ? kmem_cache_alloc_trace+0x456/0x750 [ 30.736778] ? __kernel_text_address+0xd/0x40 [ 30.741242] ? wait_for_completion+0x770/0x770 [ 30.745793] tee_tg_check+0x1a0/0x280 [ 30.749562] ? tee_tg4+0x170/0x170 [ 30.753071] xt_check_target+0x22c/0x7d0 [ 30.757102] ? xt_target_seq_next+0x30/0x30 [ 30.761399] ? save_stack+0xa3/0xd0 [ 30.765006] ? kasan_slab_free+0x71/0xc0 [ 30.769040] ? kfree+0xd6/0x260 [ 30.772286] ? kvfree+0x36/0x60 [ 30.775554] ? translate_table+0xdd2/0x1610 [ 30.779843] ? mutex_unlock+0xd/0x10 [ 30.783524] ? xt_find_target+0x17b/0x1e0 [ 30.787653] find_check_entry.isra.8+0x8c8/0xcb0 [ 30.792379] ? ipt_do_table+0x1950/0x1950 [ 30.796495] ? mark_held_locks+0xaf/0x100 [ 30.800611] ? kfree+0xf0/0x260 [ 30.803869] ? trace_hardirqs_on+0xd/0x10 [ 30.807995] translate_table+0xed1/0x1610 [ 30.812123] ? alloc_counters.isra.11+0x7d0/0x7d0 [ 30.816943] ? kasan_check_write+0x14/0x20 [ 30.821145] ? _copy_from_user+0x99/0x110 [ 30.825261] do_ipt_set_ctl+0x370/0x5f0 [ 30.829204] ? translate_compat_table+0x1b90/0x1b90 [ 30.834189] ? mutex_unlock+0xd/0x10 [ 30.837883] ? nf_sockopt_find.constprop.0+0x1a7/0x220 [ 30.843129] nf_setsockopt+0x67/0xc0 [ 30.846821] ip_setsockopt+0xa1/0xb0 [ 30.850505] sctp_setsockopt+0x2b6/0x61d0 [ 30.854622] ? sctp_setsockopt_paddr_thresholds+0x550/0x550 [ 30.860303] ? __lock_acquire+0x664/0x3e00 [ 30.864505] ? __lock_acquire+0x664/0x3e00 [ 30.868718] ? is_bpf_text_address+0xa4/0x120 [ 30.873184] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.878345] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.883506] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.888663] ? save_stack+0xa3/0xd0 [ 30.892259] ? check_noncircular+0x20/0x20 [ 30.896473] ? kasan_kmalloc+0xad/0xe0 [ 30.900330] ? kasan_slab_alloc+0x12/0x20 [ 30.904446] ? kmem_cache_alloc+0x12e/0x760 [ 30.908736] ? selinux_file_alloc_security+0xae/0x190 [ 30.913892] ? security_file_alloc+0x6d/0xa0 [ 30.918271] ? get_empty_filp+0x189/0x4f0 [ 30.922385] ? alloc_file+0x26/0x390 [ 30.926075] ? sock_alloc_file+0x1f3/0x560 [ 30.930276] ? sock_map_fd+0x34/0x90 [ 30.933957] ? SyS_socket+0x125/0x1d0 [ 30.937726] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 30.942632] ? kasan_slab_alloc+0x12/0x20 [ 30.946746] ? kmem_cache_alloc+0x12e/0x760 [ 30.951034] ? get_empty_filp+0xfb/0x4f0 [ 30.955064] ? alloc_file+0x26/0x390 [ 30.958744] ? sock_alloc_file+0x1f3/0x560 [ 30.962946] ? find_held_lock+0x35/0x1d0 [ 30.966976] ? avc_has_perm+0x35e/0x680 [ 30.970918] ? lock_downgrade+0x980/0x980 [ 30.975035] ? lock_release+0xa40/0xa40 [ 30.978986] ? __pmd_alloc+0x4e0/0x4e0 [ 30.982842] ? check_noncircular+0x20/0x20 [ 30.987043] ? __lockdep_init_map+0xe4/0x650 [ 30.991422] ? find_held_lock+0x35/0x1d0 [ 30.995454] ? avc_has_perm+0x43e/0x680 [ 30.999397] ? avc_has_perm_noaudit+0x520/0x520 [ 31.004040] ? __do_page_fault+0x5f7/0xc90 [ 31.008241] ? lock_downgrade+0x980/0x980 [ 31.012358] ? handle_mm_fault+0x410/0x8d0 [ 31.016560] ? down_read_trylock+0xdb/0x170 [ 31.020850] ? __do_page_fault+0x32d/0xc90 [ 31.025053] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 31.029601] ? vmacache_find+0x5f/0x280 [ 31.033544] ? sock_has_perm+0x2a4/0x420 [ 31.037586] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 31.042916] ? __do_page_fault+0x3d6/0xc90 [ 31.047122] ? selinux_netlbl_socket_setsockopt+0x10c/0x460 [ 31.052801] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 31.058049] sock_common_setsockopt+0x95/0xd0 [ 31.062512] SyS_setsockopt+0x189/0x360 [ 31.066459] ? SyS_recv+0x40/0x40 [ 31.069894] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 31.074708] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.079694] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 31.084430] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 31.089164] RIP: 0033:0x445bd9 [ 31.092324] RSP: 002b:00007ffd8197a038 EFLAGS: 00000203 ORIG_RAX: 0000000000000036 [ 31.099999] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 0000000000445bd9 [ 31.107242] RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000005 [ 31.114481] RBP: 00007ffd8197a0e8 R08: 0000000000000318 R09: 0000000000000000 [ 31.121720] R10: 0000000020df6000 R11: 0000000000000203 R12: 00007ffd8197a0e