[ 32.984443] audit: type=1800 audit(1580787075.004:33): pid=7152 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op="collect_data" cause="failed(directio)" comm="startpar" name="rc.local" dev="sda1" ino=2465 res=0 [ 33.012638] audit: type=1800 audit(1580787075.004:34): pid=7152 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op="collect_data" cause="failed(directio)" comm="startpar" name="rmnologin" dev="sda1" ino=2456 res=0 Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 38.290486] random: sshd: uninitialized urandom read (32 bytes read) [ 38.693562] audit: type=1400 audit(1580787080.714:35): avc: denied { map } for pid=7325 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 [ 38.746138] random: sshd: uninitialized urandom read (32 bytes read) [ 39.483815] random: sshd: uninitialized urandom read (32 bytes read) [ 39.678261] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.4' (ECDSA) to the list of known hosts. [ 45.248692] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 45.367457] audit: type=1400 audit(1580787087.384:36): avc: denied { map } for pid=7337 comm="syz-executor381" path="/root/syz-executor381519250" dev="sda1" ino=16484 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 [ 45.396466] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 45.452532] netlink: 4 bytes leftover after parsing attributes in process `syz-executor381'. [ 45.466732] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7340 comm=syz-executor381 [ 45.479048] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7340 comm=syz-executor381 [ 45.491250] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7340 comm=syz-executor381 [ 45.503622] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7340 comm=syz-executor381 [ 45.516031] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7340 comm=syz-executor381 [ 45.528803] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7340 comm=syz-executor381 [ 45.541087] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7340 comm=syz-executor381 executing program [ 45.553322] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7340 comm=syz-executor381 [ 45.565592] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7340 comm=syz-executor381 [ 45.577937] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7340 comm=syz-executor381 [ 45.616694] [ 45.618457] ====================================================== [ 45.624754] WARNING: possible circular locking dependency detected [ 45.631084] 4.14.169-syzkaller #0 Not tainted [ 45.635555] ------------------------------------------------------ [ 45.641905] syz-executor381/7343 is trying to acquire lock: [ 45.647710] (rtnl_mutex){+.+.}, at: [] rtnl_lock+0x17/0x20 [ 45.654976] [ 45.654976] but task is already holding lock: [ 45.660939] (&xt[i].mutex){+.+.}, at: [] xt_find_table_lock+0x3c/0x3d0 [ 45.669277] [ 45.669277] which lock already depends on the new lock. [ 45.669277] [ 45.677663] [ 45.677663] the existing dependency chain (in reverse order) is: [ 45.685336] [ 45.685336] -> #1 (&xt[i].mutex){+.+.}: [ 45.690891] lock_acquire+0x16f/0x430 [ 45.695208] __mutex_lock+0xe8/0x1470 [ 45.699647] mutex_lock_nested+0x16/0x20 [ 45.704334] xt_find_target+0x3e/0x1e0 [ 45.707514] netlink: 4 bytes leftover after parsing attributes in process `syz-executor381'. [ 45.708749] xt_request_find_target+0x74/0xe0 [ 45.708759] ipt_init_target+0xce/0x290 [ 45.726941] __tcf_ipt_init+0x48c/0xb50 [ 45.731444] tcf_xt_init+0x4e/0x60 [ 45.735630] tcf_action_init_1+0x53c/0xaa0 [ 45.740407] tcf_action_init+0x2ab/0x480 [ 45.745078] tc_ctl_action+0x30a/0x548 [ 45.749517] rtnetlink_rcv_msg+0x3da/0xb70 [ 45.754278] netlink_rcv_skb+0x14f/0x3c0 [ 45.758899] rtnetlink_rcv+0x1d/0x30 [ 45.763124] netlink_unicast+0x44d/0x650 [ 45.767749] netlink_sendmsg+0x7c4/0xc60 [ 45.772328] sock_sendmsg+0xce/0x110 [ 45.776602] kernel_sendmsg+0x44/0x50 [ 45.780937] sock_no_sendpage+0x107/0x130 [ 45.785597] kernel_sendpage+0x92/0xf0 [ 45.789993] sock_sendpage+0x8b/0xc0 [ 45.794223] pipe_to_sendpage+0x242/0x340 [ 45.799017] __splice_from_pipe+0x348/0x780 [ 45.803976] splice_from_pipe+0xf0/0x150 [ 45.808554] generic_splice_sendpage+0x3c/0x50 [ 45.813885] SyS_splice+0xd92/0x1430 [ 45.818119] do_syscall_64+0x1e8/0x640 [ 45.822541] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 45.828246] [ 45.828246] -> #0 (rtnl_mutex){+.+.}: [ 45.833632] __lock_acquire+0x2cb3/0x4620 [ 45.838291] lock_acquire+0x16f/0x430 [ 45.842606] __mutex_lock+0xe8/0x1470 [ 45.846920] mutex_lock_nested+0x16/0x20 [ 45.851496] rtnl_lock+0x17/0x20 [ 45.855381] unregister_netdevice_notifier+0x5f/0x2c0 [ 45.861085] tee_tg_destroy+0x61/0xc0 [ 45.865446] cleanup_entry+0x1a6/0x260 [ 45.869847] __do_replace+0x3c5/0x5c0 [ 45.874152] do_ip6t_set_ctl+0x296/0x3f4 [ 45.878724] nf_setsockopt+0x67/0xc0 [ 45.882949] ipv6_setsockopt+0x105/0x130 [ 45.887517] udpv6_setsockopt+0x4e/0x90 [ 45.892110] sock_common_setsockopt+0x94/0xd0 [ 45.897229] SyS_setsockopt+0x13c/0x210 [ 45.901892] do_syscall_64+0x1e8/0x640 [ 45.906895] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 45.912701] [ 45.912701] other info that might help us debug this: [ 45.912701] [ 45.921109] Possible unsafe locking scenario: [ 45.921109] [ 45.927260] CPU0 CPU1 [ 45.931911] ---- ---- [ 45.936661] lock(&xt[i].mutex); [ 45.940096] lock(rtnl_mutex); [ 45.945886] lock(&xt[i].mutex); [ 45.951936] lock(rtnl_mutex); [ 45.955384] [ 45.955384] *** DEADLOCK *** [ 45.955384] [ 45.961461] 1 lock held by syz-executor381/7343: [ 45.966214] #0: (&xt[i].mutex){+.+.}, at: [] xt_find_table_lock+0x3c/0x3d0 [ 45.974967] [ 45.974967] stack backtrace: [ 45.979451] CPU: 1 PID: 7343 Comm: syz-executor381 Not tainted 4.14.169-syzkaller #0 [ 45.987316] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 45.996654] Call Trace: [ 45.999234] dump_stack+0x142/0x197 [ 46.002872] print_circular_bug.isra.0.cold+0x1cc/0x28f [ 46.008333] __lock_acquire+0x2cb3/0x4620 [ 46.013089] ? trace_hardirqs_on+0x10/0x10 [ 46.017317] ? __kernel_text_address+0xd/0x40 [ 46.021796] lock_acquire+0x16f/0x430 [ 46.025580] ? rtnl_lock+0x17/0x20 [ 46.029101] ? rtnl_lock+0x17/0x20 [ 46.032640] __mutex_lock+0xe8/0x1470 [ 46.036421] ? rtnl_lock+0x17/0x20 [ 46.039941] ? __lock_acquire+0x5f7/0x4620 [ 46.044170] ? rtnl_lock+0x17/0x20 [ 46.047691] ? trace_hardirqs_on+0x10/0x10 [ 46.051914] ? mutex_trylock+0x1c0/0x1c0 [ 46.056952] ? trace_hardirqs_on+0x10/0x10 [ 46.061273] ? save_trace+0x290/0x290 [ 46.065075] mutex_lock_nested+0x16/0x20 [ 46.069134] ? mutex_lock_nested+0x16/0x20 [ 46.073437] rtnl_lock+0x17/0x20 [ 46.076785] unregister_netdevice_notifier+0x5f/0x2c0 [ 46.081957] ? __lock_is_held+0xb6/0x140 [ 46.086033] ? register_netdevice_notifier+0x520/0x520 [ 46.091298] ? _find_next_bit+0xee/0x120 [ 46.095342] tee_tg_destroy+0x61/0xc0 [ 46.099144] ? tee_tg6+0x160/0x160 [ 46.102683] cleanup_entry+0x1a6/0x260 [ 46.106731] ? cleanup_match+0x140/0x140 [ 46.110779] __do_replace+0x3c5/0x5c0 [ 46.114591] ? compat_do_ip6t_get_ctl+0x870/0x870 [ 46.119581] ? _copy_from_user+0x99/0x110 [ 46.123736] do_ip6t_set_ctl+0x296/0x3f4 [ 46.127798] ? compat_do_ip6t_set_ctl+0x150/0x150 [ 46.132715] ? mutex_unlock+0xd/0x10 [ 46.136413] ? nf_sockopt_find.constprop.0+0x1b7/0x230 [ 46.141678] nf_setsockopt+0x67/0xc0 [ 46.145420] ipv6_setsockopt+0x105/0x130 [ 46.149461] udpv6_setsockopt+0x4e/0x90 [ 46.153417] sock_common_setsockopt+0x94/0xd0 [ 46.157900] SyS_setsockopt+0x13c/0x210 [ 46.161860] ? SyS_recv+0x40/0x40 [ 46.165315] ? do_syscall_64+0x53/0x640 [ 46.169270] ? SyS_recv+0x40/0x40 [ 46.172704] do_syscall_64+0x1e8/0x640 [ 46.176571] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 46.181398] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 46.186585] RIP: 0033:0x447979 [ 46.189775] RSP: 002b:00007fc4b8603d98 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 46.197488] RAX: ffffffffffffffda RBX: 00000000006dcc48 RCX: 0000000000447979 [ 46.205088] RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000003 [ 46.212352] RBP: 00000000006dcc40 R08: 00000000000003e8 R09: 0000000000000000 executing program [ 46.219706] R10: 0000000020000c80 R11: 0000000000000246 R12: 00000000006dcc4c [ 46.226964] R13: 0000000000000000 R14: 0000000000000000 R15: 00007265746c6966 [ 46.235460] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 46.247012] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 46.302551] netlink: 4 bytes leftover after parsing attributes in process `syz-executor381'. executing program [ 46.431143] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 46.485488] netlink: 4 bytes leftover after parsing attributes in process `syz-executor381'. executing program [ 46.614201] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 46.668494] netlink: 4 bytes leftover after parsing attributes in process `syz-executor381'. executing program [ 46.797631] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 46.852586] netlink: 4 bytes leftover after parsing attributes in process `syz-executor381'. executing program [ 46.980605] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 47.035557] netlink: 4 bytes leftover after parsing attributes in process `syz-executor381'. executing program [ 47.165985] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 47.221153] netlink: 4 bytes leftover after parsing attributes in process `syz-executor381'. executing program [ 47.349613] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 47.404523] netlink: 4 bytes leftover after parsing attributes in process `syz-executor381'. executing program [ 47.533249] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 47.587498] netlink: 4 bytes leftover after parsing attributes in process `syz-executor381'. 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 [ 50.546397] net_ratelimit: 17 callbacks suppressed [ 50.546399] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 50.606489] nla_parse: 17 callbacks suppressed [ 50.606492] netlink: 4 bytes leftover after parsing attributes in process `syz-executor381'. [ 50.623226] selinux_nlmsg_perm: 2123 callbacks suppressed [ 50.623231] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7449 comm=syz-executor381 [ 50.641167] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7449 comm=syz-executor381 [ 50.653624] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7449 comm=syz-executor381 [ 50.665904] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7449 comm=syz-executor381 [ 50.678257] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7449 comm=syz-executor381 [ 50.690529] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7449 comm=syz-executor381 executing program [ 50.702718] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7449 comm=syz-executor381 [ 50.715043] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7449 comm=syz-executor381 [ 50.727332] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7449 comm=syz-executor381 [ 50.739686] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7449 comm=syz-executor381 [ 50.778190] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 50.833522] netlink: 4 bytes leftover after parsing attributes in process `syz-executor381'. executing program [ 50.962363] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 51.016552] netlink: 4 bytes leftover after parsing attributes in process `syz-executor381'. executing program [ 51.146159] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 51.200507] netlink: 4 bytes leftover after parsing attributes in process `syz-executor381'. executing program [ 51.329415] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 51.384521] netlink: 4 bytes leftover after parsing attributes in process `syz-executor381'. executing program [ 51.513046] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 51.567591] netlink: 4 bytes leftover after parsing attributes in process `syz-executor381'. executing program [ 51.696956] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 51.751659] netlink: 4 bytes leftover after parsing attributes in process `syz-executor381'. executing program [ 51.879790] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 51.934473] netlink: 4 bytes leftover after parsing attributes in process `syz-executor381'. executing program [ 52.061831] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 52.116526] netlink: 4 bytes leftover after parsing attributes in process `syz-executor381'. executing program [ 52.244639] ip6_tables: ip6tables: counters copy to user failed while replacing table [ 52.299540] netlink: 4 bytes leftover after parsing attributes in process `syz-executor381'. 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 [ 55.586033] net_ratelimit: 19 callbacks suppressed [ 55.586035] ip6_tables: ip6tables: counters copy to user failed while replacing table