[ 26.278466] audit: type=1800 audit(1537972344.999:27): pid=5242 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="restorecond" dev="sda1" ino=2436 res=0 [ 26.298482] audit: type=1800 audit(1537972344.999:28): pid=5242 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="ssh" dev="sda1" ino=2417 res=0 [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 27.029815] audit: type=1800 audit(1537972345.819:29): pid=5242 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="rc.local" dev="sda1" ino=2432 res=0 [ 27.050263] audit: type=1800 audit(1537972345.829:30): pid=5242 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="rmnologin" dev="sda1" ino=2423 res=0 Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 31.150668] sshd (5382) used greatest stack depth: 15992 bytes left Warning: Permanently added '10.128.10.28' (ECDSA) to the list of known hosts. [ 37.827551] IPVS: ftp: loaded support on port[0] = 21 [ 37.999524] bridge0: port 1(bridge_slave_0) entered blocking state [ 38.006489] bridge0: port 1(bridge_slave_0) entered disabled state [ 38.014033] device bridge_slave_0 entered promiscuous mode [ 38.033122] bridge0: port 2(bridge_slave_1) entered blocking state [ 38.039595] bridge0: port 2(bridge_slave_1) entered disabled state [ 38.046953] device bridge_slave_1 entered promiscuous mode [ 38.064952] IPv6: ADDRCONF(NETDEV_UP): veth0_to_bridge: link is not ready [ 38.083257] IPv6: ADDRCONF(NETDEV_UP): veth1_to_bridge: link is not ready [ 38.136741] bond0: Enslaving bond_slave_0 as an active interface with an up link [ 38.156417] bond0: Enslaving bond_slave_1 as an active interface with an up link [ 38.230615] IPv6: ADDRCONF(NETDEV_UP): team_slave_0: link is not ready [ 38.238028] team0: Port device team_slave_0 added [ 38.254839] IPv6: ADDRCONF(NETDEV_UP): team_slave_1: link is not ready [ 38.261942] team0: Port device team_slave_1 added [ 38.279284] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_0: link becomes ready [ 38.298790] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_1: link becomes ready [ 38.317346] IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_bridge: link becomes ready [ 38.337091] IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_bridge: link becomes ready RTNETLINK answers: Operation not supported RTNETLINK answers: No buffer space available RTNETLINK answers: Operation not supported [ 38.481404] bridge0: port 2(bridge_slave_1) entered blocking state [ 38.487894] bridge0: port 2(bridge_slave_1) entered forwarding state [ 38.494875] bridge0: port 1(bridge_slave_0) entered blocking state [ 38.501242] bridge0: port 1(bridge_slave_0) entered forwarding state 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 [ 39.019502] 8021q: adding VLAN 0 to HW filter on device bond0 [ 39.073371] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 39.126483] IPv6: ADDRCONF(NETDEV_UP): veth1: link is not ready [ 39.133527] IPv6: ADDRCONF(NETDEV_CHANGE): veth1: link becomes ready [ 39.140889] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 39.195531] 8021q: adding VLAN 0 to HW filter on device team0 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 [ 39.535500] ================================================================== [ 39.543117] BUG: KASAN: use-after-free in tcf_block_find+0x9d1/0xb90 [ 39.549981] Read of size 4 at addr ffff8801bb3ea078 by task syz-executor323/5657 [ 39.557521] [ 39.559162] CPU: 1 PID: 5657 Comm: syz-executor323 Not tainted 4.19.0-rc5+ #232 [ 39.566696] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 39.576038] Call Trace: [ 39.578623] dump_stack+0x1c4/0x2b4 [ 39.582243] ? dump_stack_print_info.cold.2+0x52/0x52 [ 39.587422] ? printk+0xa7/0xcf [ 39.590815] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 39.595584] print_address_description.cold.8+0x9/0x1ff [ 39.600983] kasan_report.cold.9+0x242/0x309 [ 39.605397] ? tcf_block_find+0x9d1/0xb90 [ 39.609550] __asan_report_load4_noabort+0x14/0x20 [ 39.614478] tcf_block_find+0x9d1/0xb90 [ 39.618446] tc_del_tfilter+0x42b/0x1290 [ 39.622601] ? tc_get_tfilter+0xa90/0xa90 [ 39.626745] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.632279] ? check_preemption_disabled+0x48/0x200 [ 39.637289] ? check_preemption_disabled+0x48/0x200 [ 39.642304] ? __lock_is_held+0xb5/0x140 [ 39.646434] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 39.651966] ? rtnl_get_link+0x170/0x370 [ 39.656026] ? tc_get_tfilter+0xa90/0xa90 [ 39.660165] rtnetlink_rcv_msg+0x46a/0xc20 [ 39.664393] ? rtnetlink_put_metrics+0x690/0x690 [ 39.669145] netlink_rcv_skb+0x172/0x440 [ 39.673198] ? rtnetlink_put_metrics+0x690/0x690 [ 39.677941] ? netlink_ack+0xb80/0xb80 [ 39.681824] rtnetlink_rcv+0x1c/0x20 [ 39.685534] netlink_unicast+0x5a5/0x760 [ 39.689605] ? netlink_attachskb+0x9a0/0x9a0 [ 39.694071] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.699603] ? __sanitizer_cov_trace_cmp4+0x16/0x20 [ 39.704612] netlink_sendmsg+0xa18/0xfc0 [ 39.708670] ? netlink_unicast+0x760/0x760 [ 39.712895] ? aa_sock_msg_perm.isra.12+0xba/0x160 [ 39.717821] ? apparmor_socket_sendmsg+0x29/0x30 [ 39.722577] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.728120] ? security_socket_sendmsg+0x94/0xc0 [ 39.732956] ? netlink_unicast+0x760/0x760 [ 39.737198] sock_sendmsg+0xd5/0x120 [ 39.740921] ___sys_sendmsg+0x7fd/0x930 [ 39.744893] ? graph_lock+0x170/0x170 [ 39.748687] ? copy_msghdr_from_user+0x580/0x580 [ 39.753431] ? graph_lock+0x170/0x170 [ 39.757223] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 39.762448] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.767978] ? __fget_light+0x2e9/0x430 [ 39.771949] ? fget_raw+0x20/0x20 [ 39.775404] ? find_held_lock+0x36/0x1c0 [ 39.779477] ? routing_ioctl+0x890/0x890 [ 39.783540] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.789068] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 39.794592] ? sockfd_lookup_light+0xc5/0x160 [ 39.799078] __sys_sendmsg+0x11d/0x280 [ 39.802957] ? __ia32_sys_shutdown+0x80/0x80 [ 39.807402] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.812936] ? do_syscall_64+0x9a/0x820 [ 39.816902] ? do_syscall_64+0x9a/0x820 [ 39.820871] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 39.826309] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.831834] ? ksys_ioctl+0x81/0xd0 [ 39.835452] __x64_sys_sendmsg+0x78/0xb0 [ 39.839502] do_syscall_64+0x1b9/0x820 [ 39.843376] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 39.848734] ? syscall_return_slowpath+0x5e0/0x5e0 [ 39.853652] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 39.858485] ? trace_hardirqs_on_caller+0x310/0x310 [ 39.863489] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 39.868496] ? prepare_exit_to_usermode+0x291/0x3b0 [ 39.873502] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 39.878349] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.883533] RIP: 0033:0x441a79 [ 39.886716] Code: e8 0c ac 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 fb 04 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 39.905604] RSP: 002b:00007ffd04da35a8 EFLAGS: 00000213 ORIG_RAX: 000000000000002e [ 39.913301] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441a79 [ 39.920556] RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000003 [ 39.927812] RBP: 0000000000009a52 R08: 0000000000000000 R09: 0000000000000000 [ 39.935068] R10: 0000000000000000 R11: 0000000000000213 R12: 0000000000000000 [ 39.942332] R13: 0000000000402490 R14: 0000000000000000 R15: 0000000000000000 [ 39.949607] [ 39.951220] Allocated by task 5433: [ 39.954832] save_stack+0x43/0xd0 [ 39.958273] kasan_kmalloc+0xc7/0xe0 [ 39.961978] __kmalloc_node+0x47/0x70 [ 39.965768] qdisc_alloc+0x10f/0xb50 [ 39.969470] qdisc_create_dflt+0x7a/0x1e0 [ 39.973604] dev_activate+0x82f/0xcb0 [ 39.977453] __dev_open+0x2cb/0x410 [ 39.981112] dev_open+0xf2/0x1b0 [ 39.984469] bond_enslave+0xfca/0x5f90 [ 39.988341] do_set_master+0x1c9/0x220 [ 39.992212] do_setlink+0xbe6/0x3f20 [ 39.995921] rtnl_newlink+0x136f/0x1d40 [ 39.999885] rtnetlink_rcv_msg+0x46a/0xc20 [ 40.004145] netlink_rcv_skb+0x172/0x440 [ 40.008212] rtnetlink_rcv+0x1c/0x20 [ 40.011918] netlink_unicast+0x5a5/0x760 [ 40.015972] netlink_sendmsg+0xa18/0xfc0 [ 40.020039] sock_sendmsg+0xd5/0x120 [ 40.023743] ___sys_sendmsg+0x7fd/0x930 [ 40.027718] __sys_sendmsg+0x11d/0x280 [ 40.031602] __x64_sys_sendmsg+0x78/0xb0 [ 40.035690] do_syscall_64+0x1b9/0x820 [ 40.039562] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.044729] [ 40.046340] Freed by task 5656: [ 40.049622] save_stack+0x43/0xd0 [ 40.053083] __kasan_slab_free+0x102/0x150 [ 40.057355] kasan_slab_free+0xe/0x10 [ 40.061162] kfree+0xcf/0x230 [ 40.064255] qdisc_free+0x89/0x100 [ 40.067779] qdisc_free_cb+0x19/0x20 [ 40.071542] rcu_process_callbacks+0xf23/0x2670 [ 40.076205] __do_softirq+0x30b/0xad8 [ 40.079984] [ 40.081601] The buggy address belongs to the object at ffff8801bb3ea040 [ 40.081601] which belongs to the cache kmalloc-1024 of size 1024 [ 40.094443] The buggy address is located 56 bytes inside of [ 40.094443] 1024-byte region [ffff8801bb3ea040, ffff8801bb3ea440) [ 40.106341] The buggy address belongs to the page: [ 40.111287] page:ffffea0006ecfa80 count:1 mapcount:0 mapping:ffff8801da800ac0 index:0x0 compound_mapcount: 0 [ 40.121261] flags: 0x2fffc0000008100(slab|head) [ 40.125926] raw: 02fffc0000008100 ffffea0007600288 ffffea0006eb0908 ffff8801da800ac0 [ 40.133789] raw: 0000000000000000 ffff8801bb3ea040 0000000100000007 0000000000000000 [ 40.141648] page dumped because: kasan: bad access detected [ 40.147336] [ 40.148959] Memory state around the buggy address: [ 40.153868] ffff8801bb3e9f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 40.161222] ffff8801bb3e9f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 40.168569] >ffff8801bb3ea000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 40.175910] ^ [ 40.183166] ffff8801bb3ea080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.190508] ffff8801bb3ea100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.197850] ================================================================== [ 40.205191] Disabling lock debugging due to kernel taint [ 40.212084] Kernel panic - not syncing: panic_on_warn set ... [ 40.212084] [ 40.219485] CPU: 1 PID: 5657 Comm: syz-executor323 Tainted: G B 4.19.0-rc5+ #232 [ 40.228374] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.237818] Call Trace: [ 40.240415] dump_stack+0x1c4/0x2b4 [ 40.244030] ? dump_stack_print_info.cold.2+0x52/0x52 [ 40.249207] panic+0x238/0x4e7 [ 40.252385] ? add_taint.cold.5+0x16/0x16 [ 40.256594] ? preempt_schedule+0x4d/0x60 [ 40.260733] ? ___preempt_schedule+0x16/0x18 [ 40.265124] ? trace_hardirqs_on+0xb4/0x310 [ 40.269427] kasan_end_report+0x47/0x4f [ 40.273487] kasan_report.cold.9+0x76/0x309 [ 40.277822] ? tcf_block_find+0x9d1/0xb90 [ 40.282057] __asan_report_load4_noabort+0x14/0x20 [ 40.286984] tcf_block_find+0x9d1/0xb90 [ 40.290946] tc_del_tfilter+0x42b/0x1290 [ 40.295038] ? tc_get_tfilter+0xa90/0xa90 [ 40.299176] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.304701] ? check_preemption_disabled+0x48/0x200 [ 40.309703] ? check_preemption_disabled+0x48/0x200 [ 40.314722] ? __lock_is_held+0xb5/0x140 [ 40.318788] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 40.324332] ? rtnl_get_link+0x170/0x370 [ 40.328383] ? tc_get_tfilter+0xa90/0xa90 [ 40.332513] rtnetlink_rcv_msg+0x46a/0xc20 [ 40.336854] ? rtnetlink_put_metrics+0x690/0x690 [ 40.341602] netlink_rcv_skb+0x172/0x440 [ 40.345653] ? rtnetlink_put_metrics+0x690/0x690 [ 40.350394] ? netlink_ack+0xb80/0xb80 [ 40.354273] rtnetlink_rcv+0x1c/0x20 [ 40.357976] netlink_unicast+0x5a5/0x760 [ 40.362026] ? netlink_attachskb+0x9a0/0x9a0 [ 40.366420] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.371946] ? __sanitizer_cov_trace_cmp4+0x16/0x20 [ 40.376950] netlink_sendmsg+0xa18/0xfc0 [ 40.381000] ? netlink_unicast+0x760/0x760 [ 40.385287] ? aa_sock_msg_perm.isra.12+0xba/0x160 [ 40.390223] ? apparmor_socket_sendmsg+0x29/0x30 [ 40.394975] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.400510] ? security_socket_sendmsg+0x94/0xc0 [ 40.405263] ? netlink_unicast+0x760/0x760 [ 40.409486] sock_sendmsg+0xd5/0x120 [ 40.413194] ___sys_sendmsg+0x7fd/0x930 [ 40.417149] ? graph_lock+0x170/0x170 [ 40.420957] ? copy_msghdr_from_user+0x580/0x580 [ 40.425694] ? graph_lock+0x170/0x170 [ 40.429477] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 40.434673] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.440211] ? __fget_light+0x2e9/0x430 [ 40.444181] ? fget_raw+0x20/0x20 [ 40.447618] ? find_held_lock+0x36/0x1c0 [ 40.451688] ? routing_ioctl+0x890/0x890 [ 40.455737] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.461284] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 40.466833] ? sockfd_lookup_light+0xc5/0x160 [ 40.471377] __sys_sendmsg+0x11d/0x280 [ 40.475298] ? __ia32_sys_shutdown+0x80/0x80 [ 40.479698] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.485222] ? do_syscall_64+0x9a/0x820 [ 40.489190] ? do_syscall_64+0x9a/0x820 [ 40.493251] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 40.498716] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.504268] ? ksys_ioctl+0x81/0xd0 [ 40.507908] __x64_sys_sendmsg+0x78/0xb0 [ 40.511970] do_syscall_64+0x1b9/0x820 [ 40.515845] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 40.521196] ? syscall_return_slowpath+0x5e0/0x5e0 [ 40.526113] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 40.530948] ? trace_hardirqs_on_caller+0x310/0x310 [ 40.535963] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 40.540964] ? prepare_exit_to_usermode+0x291/0x3b0 [ 40.545968] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 40.550794] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.555963] RIP: 0033:0x441a79 [ 40.559145] Code: e8 0c ac 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 fb 04 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 40.578030] RSP: 002b:00007ffd04da35a8 EFLAGS: 00000213 ORIG_RAX: 000000000000002e [ 40.585723] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441a79 [ 40.592997] RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000003 [ 40.600251] RBP: 0000000000009a52 R08: 0000000000000000 R09: 0000000000000000 [ 40.607502] R10: 0000000000000000 R11: 0000000000000213 R12: 0000000000000000 [ 40.614769] R13: 0000000000402490 R14: 0000000000000000 R15: 0000000000000000 [ 40.622785] Kernel Offset: disabled [ 40.626413] Rebooting in 86400 seconds..