[....] Starting enhanced syslogd: rsyslogd[ 16.597325] audit: type=1400 audit(1517433597.539:5): avc: denied { syslog } for pid=4000 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.012802] audit: type=1400 audit(1517433603.954:6): avc: denied { map } for pid=4140 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.6' (ECDSA) to the list of known hosts. net.ipv6.conf.syz0.accept_dad = 0 net.ipv6.conf.syz0.router_solicitations = 0 [ 29.309877] audit: type=1400 audit(1517433610.251:7): avc: denied { map } for pid=4154 comm="syzkaller698222" path="/root/syzkaller698222061" 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.692678] 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 [ 30.027907] [ 30.029554] ====================================================== [ 30.035842] WARNING: possible circular locking dependency detected [ 30.042131] 4.15.0+ #288 Not tainted [ 30.045810] ------------------------------------------------------ [ 30.052094] syzkaller698222/4154 is trying to acquire lock: [ 30.057768] (rtnl_mutex){+.+.}, at: [<00000000ffacbbec>] rtnl_lock+0x17/0x20 [ 30.065023] [ 30.065023] but task is already holding lock: [ 30.070960] (sk_lock-AF_INET){+.+.}, at: [<000000001282285b>] ip_setsockopt+0x8c/0xb0 [ 30.078987] [ 30.078987] which lock already depends on the new lock. [ 30.078987] [ 30.087273] [ 30.087273] the existing dependency chain (in reverse order) is: [ 30.094863] [ 30.094863] -> #1 (sk_lock-AF_INET){+.+.}: [ 30.100559] lock_sock_nested+0xc2/0x110 [ 30.105120] do_ip_setsockopt.isra.12+0x1d9/0x32e0 [ 30.110539] ip_setsockopt+0x3a/0xb0 [ 30.114742] tcp_setsockopt+0x82/0xd0 [ 30.119035] sock_common_setsockopt+0x95/0xd0 [ 30.124022] SyS_setsockopt+0x189/0x360 [ 30.128488] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 30.133729] [ 30.133729] -> #0 (rtnl_mutex){+.+.}: [ 30.138981] lock_acquire+0x1d5/0x580 [ 30.143268] __mutex_lock+0x16f/0x1a80 [ 30.147645] mutex_lock_nested+0x16/0x20 [ 30.152196] rtnl_lock+0x17/0x20 [ 30.156053] register_netdevice_notifier+0xad/0x860 [ 30.161560] tee_tg_check+0x1a0/0x280 [ 30.165848] xt_check_target+0x22c/0x7d0 [ 30.170406] find_check_entry.isra.8+0x8c8/0xcb0 [ 30.175655] translate_table+0xed1/0x1610 [ 30.180300] do_ipt_set_ctl+0x370/0x5f0 [ 30.184768] nf_setsockopt+0x67/0xc0 [ 30.188971] ip_setsockopt+0xa1/0xb0 [ 30.193174] sctp_setsockopt+0x2a0/0x5de0 [ 30.197810] sock_common_setsockopt+0x95/0xd0 [ 30.202794] SyS_setsockopt+0x189/0x360 [ 30.207257] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 30.212500] [ 30.212500] other info that might help us debug this: [ 30.212500] [ 30.220616] Possible unsafe locking scenario: [ 30.220616] [ 30.226640] CPU0 CPU1 [ 30.231271] ---- ---- [ 30.235904] lock(sk_lock-AF_INET); [ 30.239594] lock(rtnl_mutex); [ 30.245359] lock(sk_lock-AF_INET); [ 30.251556] lock(rtnl_mutex); [ 30.254802] [ 30.254802] *** DEADLOCK *** [ 30.254802] [ 30.260829] 1 lock held by syzkaller698222/4154: [ 30.265550] #0: (sk_lock-AF_INET){+.+.}, at: [<000000001282285b>] ip_setsockopt+0x8c/0xb0 [ 30.274016] [ 30.274016] stack backtrace: [ 30.278491] CPU: 1 PID: 4154 Comm: syzkaller698222 Not tainted 4.15.0+ #288 [ 30.285563] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.294892] Call Trace: [ 30.297452] dump_stack+0x194/0x257 [ 30.301051] ? arch_local_irq_restore+0x53/0x53 [ 30.305694] print_circular_bug.isra.38+0x2cd/0x2dc [ 30.310677] ? save_trace+0xe0/0x2b0 [ 30.314362] __lock_acquire+0x30a8/0x3e00 [ 30.318479] ? print_irqtrace_events+0x270/0x270 [ 30.323205] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.328362] ? print_irqtrace_events+0x270/0x270 [ 30.333087] ? __lock_acquire+0x664/0x3e00 [ 30.337291] ? rcutorture_record_progress+0x10/0x10 [ 30.342276] ? print_irqtrace_events+0x270/0x270 [ 30.347003] ? __lock_acquire+0x664/0x3e00 [ 30.351212] ? add_lock_to_list.isra.29+0x24d/0x352 [ 30.356200] ? __lock_acquire+0x664/0x3e00 [ 30.360404] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.365565] ? __lock_acquire+0x664/0x3e00 [ 30.369769] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.374930] lock_acquire+0x1d5/0x580 [ 30.378698] ? lock_acquire+0x1d5/0x580 [ 30.382648] ? rtnl_lock+0x17/0x20 [ 30.386161] ? lock_release+0xa40/0xa40 [ 30.390104] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 30.395958] ? rcu_note_context_switch+0x710/0x710 [ 30.400858] ? find_held_lock+0x35/0x1d0 [ 30.404893] ? __might_sleep+0x95/0x190 [ 30.408834] ? rtnl_lock+0x17/0x20 [ 30.412360] __mutex_lock+0x16f/0x1a80 [ 30.416215] ? rtnl_lock+0x17/0x20 [ 30.419730] ? lock_downgrade+0x980/0x980 [ 30.423850] ? rtnl_lock+0x17/0x20 [ 30.427359] ? check_noncircular+0x20/0x20 [ 30.431562] ? find_held_lock+0x35/0x1d0 [ 30.435592] ? mutex_lock_io_nested+0x1900/0x1900 [ 30.440407] ? is_bpf_text_address+0x7b/0x120 [ 30.444878] ? print_irqtrace_events+0x270/0x270 [ 30.449603] ? depot_save_stack+0x3b5/0x490 [ 30.453892] ? lock_downgrade+0x980/0x980 [ 30.458015] ? lock_release+0xa40/0xa40 [ 30.461967] ? mark_held_locks+0xaf/0x100 [ 30.466086] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 30.471156] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.476139] ? trace_hardirqs_on+0xd/0x10 [ 30.480263] ? depot_save_stack+0x3b5/0x490 [ 30.484554] ? save_stack+0xa3/0xd0 [ 30.488155] ? save_stack+0x43/0xd0 [ 30.491757] ? kasan_kmalloc+0xad/0xe0 [ 30.495613] ? kmem_cache_alloc_trace+0x136/0x750 [ 30.500427] ? tee_tg_check+0xed/0x280 [ 30.504292] ? xt_check_target+0x22c/0x7d0 [ 30.508496] ? find_check_entry.isra.8+0x8c8/0xcb0 [ 30.513400] ? translate_table+0xed1/0x1610 [ 30.517688] ? do_ipt_set_ctl+0x370/0x5f0 [ 30.521804] ? nf_setsockopt+0x67/0xc0 [ 30.525659] ? ip_setsockopt+0xa1/0xb0 [ 30.529517] ? sctp_setsockopt+0x2a0/0x5de0 [ 30.533807] ? sock_common_setsockopt+0x95/0xd0 [ 30.538445] ? SyS_setsockopt+0x189/0x360 [ 30.542563] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 30.547463] mutex_lock_nested+0x16/0x20 [ 30.551496] ? print_irqtrace_events+0x270/0x270 [ 30.556220] ? mutex_lock_nested+0x16/0x20 [ 30.560425] rtnl_lock+0x17/0x20 [ 30.563761] register_netdevice_notifier+0xad/0x860 [ 30.568748] ? __dev_close_many+0x330/0x330 [ 30.573042] ? __lock_is_held+0xb6/0x140 [ 30.577078] ? tee_tg_check+0xed/0x280 [ 30.580934] ? rcu_read_lock_sched_held+0x108/0x120 [ 30.585928] ? kmem_cache_alloc_trace+0x456/0x750 [ 30.590742] ? __kernel_text_address+0xd/0x40 [ 30.595210] ? wait_for_completion+0x770/0x770 [ 30.599765] tee_tg_check+0x1a0/0x280 [ 30.603535] ? tee_tg4+0x170/0x170 [ 30.607046] xt_check_target+0x22c/0x7d0 [ 30.611086] ? xt_target_seq_next+0x30/0x30 [ 30.615376] ? save_stack+0xa3/0xd0 [ 30.618972] ? kasan_slab_free+0x71/0xc0 [ 30.623002] ? kfree+0xd6/0x260 [ 30.626256] ? kvfree+0x36/0x60 [ 30.629506] ? translate_table+0xdd2/0x1610 [ 30.633803] ? mutex_unlock+0xd/0x10 [ 30.637492] ? xt_find_target+0x17b/0x1e0 [ 30.641613] find_check_entry.isra.8+0x8c8/0xcb0 [ 30.646347] ? ipt_do_table+0x1950/0x1950 [ 30.650464] ? mark_held_locks+0xaf/0x100 [ 30.654581] ? kfree+0xf0/0x260 [ 30.657832] ? trace_hardirqs_on+0xd/0x10 [ 30.661951] translate_table+0xed1/0x1610 [ 30.666071] ? alloc_counters.isra.11+0x7d0/0x7d0 [ 30.670887] ? kasan_check_write+0x14/0x20 [ 30.675097] ? _copy_from_user+0x99/0x110 [ 30.679215] do_ipt_set_ctl+0x370/0x5f0 [ 30.683158] ? translate_compat_table+0x1b90/0x1b90 [ 30.688145] ? mutex_unlock+0xd/0x10 [ 30.691829] ? nf_sockopt_find.constprop.0+0x1a7/0x220 [ 30.697077] nf_setsockopt+0x67/0xc0 [ 30.700762] ip_setsockopt+0xa1/0xb0 [ 30.704445] sctp_setsockopt+0x2a0/0x5de0 [ 30.708562] ? sctp_setsockopt_paddr_thresholds+0x550/0x550 [ 30.714241] ? __thp_get_unmapped_area+0x130/0x130 [ 30.719138] ? __lock_acquire+0x664/0x3e00 [ 30.723344] ? __lock_acquire+0x664/0x3e00 [ 30.727550] ? is_bpf_text_address+0xa4/0x120 [ 30.732023] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.737183] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.742344] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.747502] ? save_stack+0xa3/0xd0 [ 30.751099] ? check_noncircular+0x20/0x20 [ 30.755301] ? kasan_kmalloc+0xad/0xe0 [ 30.759161] ? kasan_slab_alloc+0x12/0x20 [ 30.763278] ? kmem_cache_alloc+0x12e/0x760 [ 30.767569] ? selinux_file_alloc_security+0xae/0x190 [ 30.772727] ? security_file_alloc+0x6d/0xa0 [ 30.777103] ? get_empty_filp+0x189/0x4f0 [ 30.781229] ? alloc_file+0x26/0x390 [ 30.784912] ? sock_alloc_file+0x1f3/0x560 [ 30.789112] ? sock_map_fd+0x34/0x90 [ 30.792792] ? SyS_socket+0x125/0x1d0 [ 30.796562] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 30.801463] ? kasan_slab_alloc+0x12/0x20 [ 30.805580] ? kmem_cache_alloc+0x12e/0x760 [ 30.809870] ? get_empty_filp+0xfb/0x4f0 [ 30.813903] ? alloc_file+0x26/0x390 [ 30.817586] ? sock_alloc_file+0x1f3/0x560 [ 30.821791] ? find_held_lock+0x35/0x1d0 [ 30.825823] ? avc_has_perm+0x35e/0x680 [ 30.829771] ? lock_downgrade+0x980/0x980 [ 30.833887] ? lock_release+0xa40/0xa40 [ 30.837831] ? __pmd_alloc+0x4e0/0x4e0 [ 30.841685] ? check_noncircular+0x20/0x20 [ 30.845886] ? __lockdep_init_map+0xe4/0x650 [ 30.850273] ? find_held_lock+0x35/0x1d0 [ 30.854307] ? avc_has_perm+0x43e/0x680 [ 30.858249] ? avc_has_perm_noaudit+0x520/0x520 [ 30.862891] ? __do_page_fault+0x5f7/0xc90 [ 30.867095] ? lock_downgrade+0x980/0x980 [ 30.871211] ? handle_mm_fault+0x410/0x8d0 [ 30.875413] ? down_read_trylock+0xdb/0x170 [ 30.879703] ? __do_page_fault+0x32d/0xc90 [ 30.883905] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 30.888453] ? vmacache_find+0x5f/0x280 [ 30.892398] ? sock_has_perm+0x2a4/0x420 [ 30.896427] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 30.901758] ? __do_page_fault+0x3d6/0xc90 [ 30.905962] ? selinux_netlbl_socket_setsockopt+0x10c/0x460 [ 30.911642] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 30.916892] sock_common_setsockopt+0x95/0xd0 [ 30.921357] SyS_setsockopt+0x189/0x360 [ 30.925300] ? SyS_recv+0x40/0x40 [ 30.928721] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 30.933536] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.938522] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 30.943249] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 30.947971] RIP: 0033:0x445d19 [ 30.951128] RSP: 002b:00007fffa1483d38 EFLAGS: 00000203 ORIG_RAX: 0000000000000036 [ 30.958801] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 0000000000445d19 [ 30.966041] RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000005 [ 30.973284] RBP: 00007fffa1483de8 R08: 00000000000002e0 R09: 0000000000000000 [ 30.980531] R10: