[?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. [ 18.176508] audit: type=1400 audit(1517222877.676: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 Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.15.210' (ECDSA) to the list of known hosts. net.ipv6.conf.syz0.accept_dad = 0 net.ipv6.conf.syz0.router_solicitations = 0 syzkaller login: [ 24.542287] audit: type=1400 audit(1517222884.042:7): avc: denied { map } for pid=4161 comm="syzkaller703253" path="/root/syzkaller703253019" 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 [ 24.953670] 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 [ 25.461436] ipt_CLUSTERIP: ipt_CLUSTERIP is deprecated and it will removed soon, use xt_cluster instead [ 25.475413] [ 25.477059] ====================================================== [ 25.483346] WARNING: possible circular locking dependency detected [ 25.489635] 4.15.0+ #285 Not tainted [ 25.493315] ------------------------------------------------------ [ 25.499604] syzkaller703253/4161 is trying to acquire lock: [ 25.505279] (rtnl_mutex){+.+.}, at: [<00000000ab18d9f0>] rtnl_lock+0x17/0x20 [ 25.512534] [ 25.512534] but task is already holding lock: [ 25.518473] (&xt[i].mutex){+.+.}, at: [<0000000056c729d6>] xt_find_table_lock+0x40/0x3d0 [ 25.526769] [ 25.526769] which lock already depends on the new lock. [ 25.526769] [ 25.535054] [ 25.535054] the existing dependency chain (in reverse order) is: [ 25.542645] [ 25.542645] -> #2 (&xt[i].mutex){+.+.}: [ 25.548080] __mutex_lock+0x16f/0x1a80 [ 25.552461] mutex_lock_nested+0x16/0x20 [ 25.557018] xt_find_target+0x44/0x1e0 [ 25.561407] xt_request_find_target+0x2c/0xb0 [ 25.566393] find_check_entry.isra.7+0x669/0xcf0 [ 25.571637] translate_table+0xf52/0x1690 [ 25.576275] do_ip6t_set_ctl+0x370/0x5f0 [ 25.580829] nf_setsockopt+0x67/0xc0 [ 25.585037] ipv6_setsockopt+0x115/0x150 [ 25.589593] sctp_setsockopt+0x2a0/0x5de0 [ 25.594231] sock_common_setsockopt+0x95/0xd0 [ 25.599214] SyS_setsockopt+0x189/0x360 [ 25.603681] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.608926] [ 25.608926] -> #1 (sk_lock-AF_INET6){+.+.}: [ 25.614702] lock_sock_nested+0xc2/0x110 [ 25.619258] do_ipv6_setsockopt.isra.8+0x3c5/0x39d0 [ 25.624763] ipv6_setsockopt+0xd7/0x150 [ 25.629230] tcp_setsockopt+0x82/0xd0 [ 25.633522] sock_common_setsockopt+0x95/0xd0 [ 25.638507] SyS_setsockopt+0x189/0x360 [ 25.642971] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.648224] [ 25.648224] -> #0 (rtnl_mutex){+.+.}: [ 25.653481] lock_acquire+0x1d5/0x580 [ 25.657780] __mutex_lock+0x16f/0x1a80 [ 25.662157] mutex_lock_nested+0x16/0x20 [ 25.666710] rtnl_lock+0x17/0x20 [ 25.670578] unregister_netdevice_notifier+0x91/0x4e0 [ 25.676260] clusterip_tg_destroy+0x389/0x6e0 [ 25.681245] cleanup_entry+0x218/0x350 [ 25.685632] __do_replace+0x7d7/0xa90 [ 25.689925] do_ipt_set_ctl+0x40f/0x5f0 [ 25.694825] nf_setsockopt+0x67/0xc0 [ 25.699034] ip_setsockopt+0xa1/0xb0 [ 25.703240] tcp_setsockopt+0x82/0xd0 [ 25.707532] sock_common_setsockopt+0x95/0xd0 [ 25.712517] SyS_setsockopt+0x189/0x360 [ 25.716979] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.722219] [ 25.722219] other info that might help us debug this: [ 25.722219] [ 25.730325] Chain exists of: [ 25.730325] rtnl_mutex --> sk_lock-AF_INET6 --> &xt[i].mutex [ 25.730325] [ 25.740612] Possible unsafe locking scenario: [ 25.740612] [ 25.746635] CPU0 CPU1 [ 25.751268] ---- ---- [ 25.755902] lock(&xt[i].mutex); [ 25.759321] lock(sk_lock-AF_INET6); [ 25.765607] lock(&xt[i].mutex); [ 25.771549] lock(rtnl_mutex); [ 25.774796] [ 25.774796] *** DEADLOCK *** [ 25.774796] [ 25.780821] 2 locks held by syzkaller703253/4161: [ 25.785628] #0: (sk_lock-AF_INET){+.+.}, at: [<000000006e164fbe>] ip_setsockopt+0x8c/0xb0 [ 25.794098] #1: (&xt[i].mutex){+.+.}, at: [<0000000056c729d6>] xt_find_table_lock+0x40/0x3d0 [ 25.802821] [ 25.802821] stack backtrace: [ 25.807288] CPU: 1 PID: 4161 Comm: syzkaller703253 Not tainted 4.15.0+ #285 [ 25.814354] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.823675] Call Trace: [ 25.826233] dump_stack+0x194/0x257 [ 25.829827] ? arch_local_irq_restore+0x53/0x53 [ 25.834470] print_circular_bug.isra.37+0x2cd/0x2dc [ 25.839455] ? save_trace+0xe0/0x2b0 [ 25.843139] __lock_acquire+0x30a8/0x3e00 [ 25.847252] ? save_trace+0xe0/0x2b0 [ 25.850935] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.856098] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.861262] ? print_irqtrace_events+0x270/0x270 [ 25.865984] ? __lock_acquire+0x664/0x3e00 [ 25.870187] ? __lock_acquire+0x664/0x3e00 [ 25.874390] ? __is_insn_slot_addr+0x1fc/0x330 [ 25.878939] ? lock_downgrade+0x980/0x980 [ 25.883053] ? lock_release+0xa40/0xa40 [ 25.886997] ? bpf_prog_kallsyms_find+0xbd/0x440 [ 25.891728] ? check_noncircular+0x20/0x20 [ 25.895931] ? trace_raw_output_xdp_redirect_map_err+0x440/0x440 [ 25.902051] ? is_bpf_text_address+0x7b/0x120 [ 25.906516] ? lock_downgrade+0x980/0x980 [ 25.910634] ? __free_insn_slot+0x5c0/0x5c0 [ 25.914924] lock_acquire+0x1d5/0x580 [ 25.918693] ? lock_acquire+0x1d5/0x580 [ 25.922636] ? rtnl_lock+0x17/0x20 [ 25.926145] ? lock_release+0xa40/0xa40 [ 25.930098] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.935952] ? unwind_get_return_address+0x61/0xa0 [ 25.940858] ? rcu_note_context_switch+0x710/0x710 [ 25.945756] ? __might_sleep+0x95/0x190 [ 25.949700] ? rtnl_lock+0x17/0x20 [ 25.953218] __mutex_lock+0x16f/0x1a80 [ 25.957074] ? rtnl_lock+0x17/0x20 [ 25.960584] ? save_trace+0xe0/0x2b0 [ 25.964266] ? rtnl_lock+0x17/0x20 [ 25.967774] ? __lock_acquire+0x36c0/0x3e00 [ 25.972074] ? mutex_lock_io_nested+0x1900/0x1900 [ 25.976896] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.982055] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.987217] ? ipv4_hooks_unregister+0x203/0x340 [ 25.991940] ? lock_downgrade+0x980/0x980 [ 25.996058] ? check_noncircular+0x20/0x20 [ 26.000264] ? is_bpf_text_address+0xa4/0x120 [ 26.004730] ? kernel_text_address+0x102/0x140 [ 26.009290] ? __kernel_text_address+0xd/0x40 [ 26.013754] ? check_noncircular+0x20/0x20 [ 26.017958] ? check_noncircular+0x20/0x20 [ 26.022163] ? check_noncircular+0x20/0x20 [ 26.026370] ? nf_ct_l3proto_module_put+0x191/0x2c0 [ 26.031356] ? lock_downgrade+0x980/0x980 [ 26.035472] ? lock_release+0xa40/0xa40 [ 26.039425] mutex_lock_nested+0x16/0x20 [ 26.043457] ? mutex_lock_nested+0x16/0x20 [ 26.047662] rtnl_lock+0x17/0x20 [ 26.050997] unregister_netdevice_notifier+0x91/0x4e0 [ 26.056161] ? clusterip_tg_destroy+0x36a/0x6e0 [ 26.060800] ? lock_downgrade+0x980/0x980 [ 26.064917] ? register_netdevice_notifier+0x860/0x860 [ 26.070162] ? nf_ct_l4proto_unregister_sysctl.isra.9+0x120/0x120 [ 26.076362] ? mark_held_locks+0xaf/0x100 [ 26.080477] ? do_raw_spin_trylock+0x190/0x190 [ 26.085033] ? __local_bh_enable_ip+0x121/0x230 [ 26.089680] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.094666] ? clusterip_tg_destroy+0x350/0x6e0 [ 26.099305] ? trace_hardirqs_on+0xd/0x10 [ 26.103425] clusterip_tg_destroy+0x389/0x6e0 [ 26.107890] ? free_modinfo_version+0x70/0x70 [ 26.112365] ? clusterip_tg+0xa40/0xa40 [ 26.116311] ? connmark_tg_destroy+0x80/0x80 [ 26.120689] ? cleanup_match+0x198/0x220 [ 26.124720] ? icmp_checkentry+0x80/0x80 [ 26.128759] ? clusterip_tg+0xa40/0xa40 [ 26.132704] cleanup_entry+0x218/0x350 [ 26.136561] ? cleanup_match+0x220/0x220 [ 26.140593] ? find_next_bit+0x27/0x30 [ 26.144455] __do_replace+0x7d7/0xa90 [ 26.148228] ? compat_table_info+0x470/0x470 [ 26.152610] ? kasan_check_write+0x14/0x20 [ 26.156817] ? _copy_from_user+0x99/0x110 [ 26.160934] do_ipt_set_ctl+0x40f/0x5f0 [ 26.164880] ? translate_compat_table+0x1b90/0x1b90 [ 26.169869] ? mutex_unlock+0xd/0x10 [ 26.173554] ? nf_sockopt_find.constprop.0+0x1a7/0x220 [ 26.178801] nf_setsockopt+0x67/0xc0 [ 26.182490] ip_setsockopt+0xa1/0xb0 [ 26.186174] tcp_setsockopt+0x82/0xd0 [ 26.189959] sock_common_setsockopt+0x95/0xd0 [ 26.194424] SyS_setsockopt+0x189/0x360 [ 26.198366] ? SyS_recv+0x40/0x40 [ 26.201790] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 26.206606] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.211593] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.216319] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.221041] RIP: 0033:0x44a23a [ 26.224198] RSP: 002b:00007fff1c7a3c38 EFLAGS: 00000206 ORIG_RAX: 0000000000000036 [ 26.231872] RAX: ffffffffffffffda RBX: 00000000006d3100 RCX: 000000000044a23a [ 26.239113] RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000004 [ 26.246364] RBP: 00000000006d3100 R08: 00000000000002d8 R09: 0000000000c10880 [ 26.253604] R10: 00000000006d3528 R11: 0000000000000206 R12: 0000000000000004 executing program [ 26.260842] R13: 00000000006d60a8 R14: 00000000006d6050 R15: 00000000004a95ac executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program