[ 36.161785] audit: type=1800 audit(1556137393.564:33): pid=6925 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 [ 36.191124] audit: type=1800 audit(1556137393.564:34): pid=6925 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: [ 47.512218] random: sshd: uninitialized urandom read (32 bytes read) [ 47.837004] audit: type=1400 audit(1556137405.234:35): avc: denied { map } for pid=7099 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 [ 47.891146] random: sshd: uninitialized urandom read (32 bytes read) [ 48.394836] random: sshd: uninitialized urandom read (32 bytes read) [ 68.132811] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.1.39' (ECDSA) to the list of known hosts. [ 73.703467] random: sshd: uninitialized urandom read (32 bytes read) [ 73.825973] audit: type=1400 audit(1556137431.224:36): avc: denied { map } for pid=7111 comm="syz-executor200" path="/root/syz-executor200647371" dev="sda1" ino=1426 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 [ 74.630237] IPVS: ftp: loaded support on port[0] = 21 [ 74.933739] chnl_net:caif_netlink_parms(): no params data found [ 74.964870] bridge0: port 1(bridge_slave_0) entered blocking state [ 74.971748] bridge0: port 1(bridge_slave_0) entered disabled state [ 74.978727] device bridge_slave_0 entered promiscuous mode [ 74.986107] bridge0: port 2(bridge_slave_1) entered blocking state [ 74.992871] bridge0: port 2(bridge_slave_1) entered disabled state [ 74.999745] device bridge_slave_1 entered promiscuous mode [ 75.016411] bond0: Enslaving bond_slave_0 as an active interface with an up link [ 75.025570] bond0: Enslaving bond_slave_1 as an active interface with an up link [ 75.041481] IPv6: ADDRCONF(NETDEV_UP): team_slave_0: link is not ready [ 75.048966] team0: Port device team_slave_0 added [ 75.054535] IPv6: ADDRCONF(NETDEV_UP): team_slave_1: link is not ready [ 75.061846] team0: Port device team_slave_1 added [ 75.066990] IPv6: ADDRCONF(NETDEV_UP): bridge_slave_0: link is not ready [ 75.074665] IPv6: ADDRCONF(NETDEV_UP): bridge_slave_1: link is not ready [ 75.122102] device hsr_slave_0 entered promiscuous mode [ 75.160486] device hsr_slave_1 entered promiscuous mode [ 75.210604] IPv6: ADDRCONF(NETDEV_UP): hsr_slave_0: link is not ready [ 75.217640] IPv6: ADDRCONF(NETDEV_UP): hsr_slave_1: link is not ready [ 75.231175] bridge0: port 2(bridge_slave_1) entered blocking state [ 75.237611] bridge0: port 2(bridge_slave_1) entered forwarding state [ 75.244584] bridge0: port 1(bridge_slave_0) entered blocking state [ 75.251003] bridge0: port 1(bridge_slave_0) entered forwarding state [ 75.281804] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 75.287893] 8021q: adding VLAN 0 to HW filter on device bond0 [ 75.296887] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 75.305830] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 75.325139] bridge0: port 1(bridge_slave_0) entered disabled state [ 75.332401] bridge0: port 2(bridge_slave_1) entered disabled state [ 75.343008] IPv6: ADDRCONF(NETDEV_UP): team0: link is not ready [ 75.349171] 8021q: adding VLAN 0 to HW filter on device team0 [ 75.357898] IPv6: ADDRCONF(NETDEV_CHANGE): bridge_slave_0: link becomes ready [ 75.366098] bridge0: port 1(bridge_slave_0) entered blocking state [ 75.372491] bridge0: port 1(bridge_slave_0) entered forwarding state [ 75.382462] IPv6: ADDRCONF(NETDEV_CHANGE): bridge_slave_1: link becomes ready [ 75.390175] bridge0: port 2(bridge_slave_1) entered blocking state [ 75.396652] bridge0: port 2(bridge_slave_1) entered forwarding state [ 75.411926] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_0: link becomes ready [ 75.420475] IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready [ 75.429127] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_1: link becomes ready [ 75.442881] hsr0: Slave A (hsr_slave_0) is not up; please bring it up to get a fully working HSR network [ 75.453852] hsr0: Slave B (hsr_slave_1) is not up; please bring it up to get a fully working HSR network [ 75.465161] IPv6: ADDRCONF(NETDEV_UP): hsr0: link is not ready [ 75.472099] IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_0: link becomes ready executing program [ 75.479667] IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_1: link becomes ready [ 75.487221] IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready [ 75.499553] IPv6: ADDRCONF(NETDEV_UP): vxcan1: link is not ready [ 75.509717] 8021q: adding VLAN 0 to HW filter on device batadv0 [ 75.536493] ================================================================== [ 75.544187] BUG: KASAN: use-after-free in erspan_build_header+0x392/0x3b0 [ 75.551113] Read of size 2 at addr ffff888095d8200b by task syz-executor200/7112 [ 75.558816] [ 75.560473] CPU: 0 PID: 7112 Comm: syz-executor200 Not tainted 4.14.113 #3 [ 75.567473] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 75.577195] Call Trace: [ 75.582239] dump_stack+0x138/0x19c [ 75.585852] ? erspan_build_header+0x392/0x3b0 [ 75.590472] print_address_description.cold+0x7c/0x1dc [ 75.595873] ? erspan_build_header+0x392/0x3b0 [ 75.600532] kasan_report.cold+0xaf/0x2b5 [ 75.604674] __asan_report_load_n_noabort+0xf/0x20 [ 75.609591] erspan_build_header+0x392/0x3b0 [ 75.614112] ? iptunnel_handle_offloads+0x2f3/0x500 [ 75.619431] erspan_xmit+0x3ec/0x11c0 [ 75.623312] ? __gre_xmit+0x890/0x890 [ 75.627120] ? lock_acquire+0x16f/0x430 [ 75.631087] ? packet_direct_xmit+0x345/0x640 [ 75.635612] packet_direct_xmit+0x438/0x640 [ 75.639965] packet_sendmsg+0x31e1/0x5990 [ 75.644119] ? __might_fault+0x110/0x1d0 [ 75.648170] ? rw_copy_check_uvector+0x1f1/0x290 [ 75.653039] ? packet_notifier+0x770/0x770 [ 75.657869] ? copy_msghdr_from_user+0x292/0x3f0 [ 75.662638] ? security_socket_sendmsg+0x8f/0xc0 [ 75.667474] ? packet_notifier+0x770/0x770 [ 75.671793] sock_sendmsg+0xd0/0x110 [ 75.675496] ___sys_sendmsg+0x70c/0x850 [ 75.679643] ? copy_msghdr_from_user+0x3f0/0x3f0 [ 75.684524] ? lock_downgrade+0x6e0/0x6e0 [ 75.688753] ? kasan_check_write+0x14/0x20 [ 75.692984] ? _copy_from_user+0x99/0x110 [ 75.697125] ? packet_setsockopt+0xe9/0x2830 [ 75.701622] ? sock_has_perm+0x1ed/0x280 [ 75.705714] ? selinux_tun_dev_create+0xc0/0xc0 [ 75.710419] ? __fdget+0x1b/0x20 [ 75.713821] ? sockfd_lookup_light+0xb4/0x160 [ 75.718422] __sys_sendmsg+0xb9/0x140 [ 75.722221] ? SyS_shutdown+0x180/0x180 [ 75.726255] ? security_socket_setsockopt+0x8f/0xc0 [ 75.731961] ? SyS_recv+0x40/0x40 [ 75.735446] SyS_sendmsg+0x2d/0x50 [ 75.738979] ? __sys_sendmsg+0x140/0x140 [ 75.743074] do_syscall_64+0x1eb/0x630 [ 75.746989] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 75.751869] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 75.757052] RIP: 0033:0x441f99 [ 75.760316] RSP: 002b:00007ffc8e56aec8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 75.768118] RAX: ffffffffffffffda RBX: 00007ffc8e56aef0 RCX: 0000000000441f99 [ 75.775417] RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000003 [ 75.782735] RBP: 0000000000000003 R08: 0000000000000400 R09: 0000000000000400 [ 75.789997] R10: 0000000000000004 R11: 0000000000000246 R12: 00000000004a9b30 [ 75.797258] R13: 0000000000403510 R14: 0000000000000000 R15: 0000000000000000 [ 75.804521] [ 75.806130] Allocated by task 6389: [ 75.809751] save_stack_trace+0x16/0x20 [ 75.813751] save_stack+0x45/0xd0 [ 75.817194] kasan_kmalloc+0xce/0xf0 [ 75.820903] kasan_slab_alloc+0xf/0x20 [ 75.825740] kmem_cache_alloc+0x12e/0x780 [ 75.829964] anon_vma_clone+0xde/0x470 [ 75.833840] anon_vma_fork+0x87/0x4d0 [ 75.837692] copy_process.part.0+0x45a0/0x6950 [ 75.842303] _do_fork+0x19e/0xce0 [ 75.846028] SyS_clone+0x37/0x50 [ 75.849385] do_syscall_64+0x1eb/0x630 [ 75.853259] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 75.858568] [ 75.860182] Freed by task 6390: [ 75.863460] save_stack_trace+0x16/0x20 [ 75.867423] save_stack+0x45/0xd0 [ 75.870998] kasan_slab_free+0x75/0xc0 [ 75.874883] kmem_cache_free+0x83/0x2b0 [ 75.879105] unlink_anon_vmas+0x2a4/0x800 [ 75.883239] free_pgtables+0x183/0x2b0 [ 75.887106] exit_mmap+0x294/0x4e0 [ 75.890637] mmput+0x114/0x440 [ 75.893811] flush_old_exec+0x8c0/0x1b50 [ 75.898058] load_elf_binary+0x88e/0x4ba0 [ 75.902238] search_binary_handler+0x14f/0x700 [ 75.906889] do_execveat_common.isra.0+0xffd/0x1dd0 [ 75.911884] SyS_execve+0x39/0x50 [ 75.915466] do_syscall_64+0x1eb/0x630 [ 75.919349] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 75.924532] [ 75.926150] The buggy address belongs to the object at ffff888095d82000 [ 75.926150] which belongs to the cache anon_vma_chain of size 80 [ 75.938963] The buggy address is located 11 bytes inside of [ 75.938963] 80-byte region [ffff888095d82000, ffff888095d82050) [ 75.950640] The buggy address belongs to the page: [ 75.955545] page:ffffea0002576080 count:1 mapcount:0 mapping:ffff888095d82000 index:0x0 [ 75.963670] flags: 0x1fffc0000000100(slab) [ 75.967891] raw: 01fffc0000000100 ffff888095d82000 0000000000000000 0000000100000024 [ 75.975751] raw: ffffea0002539d60 ffffea00024f49a0 ffff8880aa810940 0000000000000000 [ 75.983609] page dumped because: kasan: bad access detected [ 75.989410] [ 75.991016] Memory state around the buggy address: [ 75.995991] ffff888095d81f00: fb fb fb fb fb fb fc fc fc fc fb fb fb fb fb fb [ 76.003336] ffff888095d81f80: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc [ 76.010727] >ffff888095d82000: fb fb fb fb fb fb fb fb fb fb fc fc fc fc fb fb [ 76.018158] ^ [ 76.021837] ffff888095d82080: fb fb fb fb fb fb fb fb fc fc fc fc fb fb fb fb [ 76.029236] ffff888095d82100: fb fb fb fb fb fb fc fc fc fc fb fb fb fb fb fb [ 76.036583] ================================================================== [ 76.043924] Disabling lock debugging due to kernel taint [ 76.049510] Kernel panic - not syncing: panic_on_warn set ... [ 76.049510] [ 76.056870] CPU: 0 PID: 7112 Comm: syz-executor200 Tainted: G B 4.14.113 #3 [ 76.065199] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 76.075064] Call Trace: [ 76.077918] dump_stack+0x138/0x19c [ 76.081573] ? erspan_build_header+0x392/0x3b0 [ 76.086158] panic+0x1f2/0x438 [ 76.089504] ? add_taint.cold+0x16/0x16 [ 76.093608] kasan_end_report+0x47/0x4f [ 76.097749] kasan_report.cold+0x136/0x2b5 [ 76.101983] __asan_report_load_n_noabort+0xf/0x20 [ 76.107094] erspan_build_header+0x392/0x3b0 [ 76.111554] ? iptunnel_handle_offloads+0x2f3/0x500 [ 76.116574] erspan_xmit+0x3ec/0x11c0 [ 76.120493] ? __gre_xmit+0x890/0x890 [ 76.124366] ? lock_acquire+0x16f/0x430 [ 76.128343] ? packet_direct_xmit+0x345/0x640 [ 76.133067] packet_direct_xmit+0x438/0x640 [ 76.137393] packet_sendmsg+0x31e1/0x5990 [ 76.141547] ? __might_fault+0x110/0x1d0 [ 76.145601] ? rw_copy_check_uvector+0x1f1/0x290 [ 76.150443] ? packet_notifier+0x770/0x770 [ 76.155401] ? copy_msghdr_from_user+0x292/0x3f0 [ 76.160372] ? security_socket_sendmsg+0x8f/0xc0 [ 76.165131] ? packet_notifier+0x770/0x770 [ 76.172950] sock_sendmsg+0xd0/0x110 [ 76.176717] ___sys_sendmsg+0x70c/0x850 [ 76.180703] ? copy_msghdr_from_user+0x3f0/0x3f0 [ 76.185444] ? lock_downgrade+0x6e0/0x6e0 [ 76.189595] ? kasan_check_write+0x14/0x20 [ 76.194077] ? _copy_from_user+0x99/0x110 [ 76.198354] ? packet_setsockopt+0xe9/0x2830 [ 76.202765] ? sock_has_perm+0x1ed/0x280 [ 76.206921] ? selinux_tun_dev_create+0xc0/0xc0 [ 76.211763] ? __fdget+0x1b/0x20 [ 76.215427] ? sockfd_lookup_light+0xb4/0x160 [ 76.219919] __sys_sendmsg+0xb9/0x140 [ 76.223716] ? SyS_shutdown+0x180/0x180 [ 76.227675] ? security_socket_setsockopt+0x8f/0xc0 [ 76.232685] ? SyS_recv+0x40/0x40 [ 76.236238] SyS_sendmsg+0x2d/0x50 [ 76.239859] ? __sys_sendmsg+0x140/0x140 [ 76.243919] do_syscall_64+0x1eb/0x630 [ 76.247801] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 76.252863] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 76.258167] RIP: 0033:0x441f99 [ 76.261346] RSP: 002b:00007ffc8e56aec8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 76.269249] RAX: ffffffffffffffda RBX: 00007ffc8e56aef0 RCX: 0000000000441f99 [ 76.276522] RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000003 [ 76.283874] RBP: 0000000000000003 R08: 0000000000000400 R09: 0000000000000400 [ 76.291305] R10: 0000000000000004 R11: 0000000000000246 R12: 00000000004a9b30 [ 76.298569] R13: 0000000000403510 R14: 0000000000000000 R15: 0000000000000000 [ 76.306584] Kernel Offset: disabled [ 76.310350] Rebooting in 86400 seconds..