[....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 26.684309] kauditd_printk_skb: 7 callbacks suppressed [ 26.684323] audit: type=1800 audit(1537959945.736:29): pid=5233 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 [ 26.711702] audit: type=1800 audit(1537959945.736:30): pid=5233 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: [ 30.259160] sshd (5370) used greatest stack depth: 15688 bytes left Warning: Permanently added '10.128.0.72' (ECDSA) to the list of known hosts. [ 36.794287] IPVS: ftp: loaded support on port[0] = 21 [ 36.958786] bridge0: port 1(bridge_slave_0) entered blocking state [ 36.965529] bridge0: port 1(bridge_slave_0) entered disabled state [ 36.973059] device bridge_slave_0 entered promiscuous mode [ 36.991251] bridge0: port 2(bridge_slave_1) entered blocking state [ 36.997940] bridge0: port 2(bridge_slave_1) entered disabled state [ 37.005233] device bridge_slave_1 entered promiscuous mode [ 37.031230] IPv6: ADDRCONF(NETDEV_UP): veth0_to_bridge: link is not ready [ 37.049091] IPv6: ADDRCONF(NETDEV_UP): veth1_to_bridge: link is not ready [ 37.100588] bond0: Enslaving bond_slave_0 as an active interface with an up link [ 37.121410] bond0: Enslaving bond_slave_1 as an active interface with an up link [ 37.198579] IPv6: ADDRCONF(NETDEV_UP): team_slave_0: link is not ready [ 37.206374] team0: Port device team_slave_0 added [ 37.223151] IPv6: ADDRCONF(NETDEV_UP): team_slave_1: link is not ready [ 37.230301] team0: Port device team_slave_1 added [ 37.248335] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_0: link becomes ready [ 37.268631] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_1: link becomes ready [ 37.288067] IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_bridge: link becomes ready [ 37.307931] 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 [ 37.448794] bridge0: port 2(bridge_slave_1) entered blocking state [ 37.455260] bridge0: port 2(bridge_slave_1) entered forwarding state [ 37.462187] bridge0: port 1(bridge_slave_0) entered blocking state [ 37.468539] 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 [ 37.981394] 8021q: adding VLAN 0 to HW filter on device bond0 [ 38.034727] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 38.087244] IPv6: ADDRCONF(NETDEV_UP): veth1: link is not ready [ 38.093534] IPv6: ADDRCONF(NETDEV_CHANGE): veth1: link becomes ready [ 38.100725] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 38.155222] 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 executing program [ 38.494389] ================================================================== [ 38.501885] BUG: KASAN: use-after-free in tcf_block_find+0x9d1/0xb90 [ 38.508388] Read of size 4 at addr ffff8801cc126978 by task syz-executor002/5646 [ 38.515923] [ 38.517561] CPU: 1 PID: 5646 Comm: syz-executor002 Not tainted 4.19.0-rc5+ #232 [ 38.525001] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.534346] Call Trace: [ 38.536943] dump_stack+0x1c4/0x2b4 [ 38.540566] ? dump_stack_print_info.cold.2+0x52/0x52 [ 38.545757] ? printk+0xa7/0xcf [ 38.549031] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 38.553802] print_address_description.cold.8+0x9/0x1ff [ 38.559161] kasan_report.cold.9+0x242/0x309 [ 38.563610] ? tcf_block_find+0x9d1/0xb90 [ 38.567749] __asan_report_load4_noabort+0x14/0x20 [ 38.572668] tcf_block_find+0x9d1/0xb90 [ 38.576633] tc_new_tfilter+0x497/0x1d20 [ 38.580690] ? mutex_trylock+0x2b0/0x2b0 [ 38.584757] ? tc_del_tfilter+0x1290/0x1290 [ 38.589083] ? refcount_inc_not_zero_checked+0x2f0/0x2f0 [ 38.594524] ? refcount_inc_not_zero_checked+0x2f0/0x2f0 [ 38.599969] ? graph_lock+0x170/0x170 [ 38.603764] ? graph_lock+0x170/0x170 [ 38.607556] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.613087] ? check_preemption_disabled+0x48/0x200 [ 38.618097] ? check_preemption_disabled+0x48/0x200 [ 38.623109] ? __lock_is_held+0xb5/0x140 [ 38.627176] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.632733] ? rtnl_get_link+0x170/0x370 [ 38.636807] ? tc_del_tfilter+0x1290/0x1290 [ 38.641399] rtnetlink_rcv_msg+0x46a/0xc20 [ 38.645630] ? rtnetlink_put_metrics+0x690/0x690 [ 38.650383] netlink_rcv_skb+0x172/0x440 [ 38.654452] ? rtnetlink_put_metrics+0x690/0x690 [ 38.659216] ? netlink_ack+0xb80/0xb80 [ 38.663117] rtnetlink_rcv+0x1c/0x20 [ 38.666835] netlink_unicast+0x5a5/0x760 [ 38.670895] ? netlink_attachskb+0x9a0/0x9a0 [ 38.675302] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.680829] ? __sanitizer_cov_trace_cmp4+0x16/0x20 [ 38.685847] netlink_sendmsg+0xa18/0xfc0 [ 38.689924] ? netlink_unicast+0x760/0x760 [ 38.694162] ? aa_sock_msg_perm.isra.12+0xba/0x160 [ 38.699087] ? apparmor_socket_sendmsg+0x29/0x30 [ 38.703863] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.709392] ? security_socket_sendmsg+0x94/0xc0 [ 38.714148] ? netlink_unicast+0x760/0x760 [ 38.718386] sock_sendmsg+0xd5/0x120 [ 38.722110] ___sys_sendmsg+0x7fd/0x930 [ 38.726083] ? graph_lock+0x170/0x170 [ 38.729884] ? copy_msghdr_from_user+0x580/0x580 [ 38.734631] ? graph_lock+0x170/0x170 [ 38.738420] ? graph_lock+0x170/0x170 [ 38.742212] ? graph_lock+0x170/0x170 [ 38.746018] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.751560] ? __fget_light+0x2e9/0x430 [ 38.755529] ? fget_raw+0x20/0x20 [ 38.758982] ? find_held_lock+0x36/0x1c0 [ 38.763040] ? lock_downgrade+0x900/0x900 [ 38.767180] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 38.772729] ? sockfd_lookup_light+0xc5/0x160 [ 38.777215] __sys_sendmsg+0x11d/0x280 [ 38.781100] ? __ia32_sys_shutdown+0x80/0x80 [ 38.785500] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.791029] ? do_syscall_64+0x9a/0x820 [ 38.794990] ? do_syscall_64+0x9a/0x820 [ 38.798958] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 38.804402] __x64_sys_sendmsg+0x78/0xb0 [ 38.808457] do_syscall_64+0x1b9/0x820 [ 38.812334] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 38.817692] ? syscall_return_slowpath+0x5e0/0x5e0 [ 38.822619] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.827464] ? trace_hardirqs_on_caller+0x310/0x310 [ 38.832469] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 38.837489] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.843025] ? prepare_exit_to_usermode+0x291/0x3b0 [ 38.848032] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.852876] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.858053] RIP: 0033:0x441979 [ 38.861244] 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 [ 38.880143] RSP: 002b:00007ffd8b1e9178 EFLAGS: 00000213 ORIG_RAX: 000000000000002e [ 38.887857] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441979 [ 38.895127] RDX: 0000000000000000 RSI: 0000000020000100 RDI: 0000000000000003 [ 38.902403] RBP: 0000000000009641 R08: 0000000000000000 R09: 0000000000000000 [ 38.909675] R10: 0000000001bb6880 R11: 0000000000000213 R12: 0000000000000000 [ 38.916957] R13: 0000000000402390 R14: 0000000000000000 R15: 0000000000000000 [ 38.924224] [ 38.925844] Allocated by task 5522: [ 38.929467] save_stack+0x43/0xd0 [ 38.932907] kasan_kmalloc+0xc7/0xe0 [ 38.936608] __kmalloc_node+0x47/0x70 [ 38.940397] qdisc_alloc+0x10f/0xb50 [ 38.944104] qdisc_create_dflt+0x7a/0x1e0 [ 38.948239] dev_activate+0x82f/0xcb0 [ 38.952045] __dev_open+0x2cb/0x410 [ 38.955683] __dev_change_flags+0x730/0x9b0 [ 38.960016] dev_change_flags+0x89/0x150 [ 38.964087] do_setlink+0xb5f/0x3f20 [ 38.967800] rtnl_newlink+0x136f/0x1d40 [ 38.971765] rtnetlink_rcv_msg+0x46a/0xc20 [ 38.975989] netlink_rcv_skb+0x172/0x440 [ 38.980036] rtnetlink_rcv+0x1c/0x20 [ 38.983737] netlink_unicast+0x5a5/0x760 [ 38.987782] netlink_sendmsg+0xa18/0xfc0 [ 38.991831] sock_sendmsg+0xd5/0x120 [ 38.995544] ___sys_sendmsg+0x7fd/0x930 [ 38.999503] __sys_sendmsg+0x11d/0x280 [ 39.003381] __x64_sys_sendmsg+0x78/0xb0 [ 39.007431] do_syscall_64+0x1b9/0x820 [ 39.011309] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.016477] [ 39.018110] Freed by task 0: [ 39.021118] save_stack+0x43/0xd0 [ 39.024564] __kasan_slab_free+0x102/0x150 [ 39.028801] kasan_slab_free+0xe/0x10 [ 39.032588] kfree+0xcf/0x230 [ 39.035681] qdisc_free+0x89/0x100 [ 39.039215] qdisc_free_cb+0x19/0x20 [ 39.042932] rcu_process_callbacks+0xf23/0x2670 [ 39.047598] __do_softirq+0x30b/0xad8 [ 39.051376] [ 39.052989] The buggy address belongs to the object at ffff8801cc126940 [ 39.052989] which belongs to the cache kmalloc-1024 of size 1024 [ 39.065806] The buggy address is located 56 bytes inside of [ 39.065806] 1024-byte region [ffff8801cc126940, ffff8801cc126d40) [ 39.077665] The buggy address belongs to the page: [ 39.082594] page:ffffea0007304980 count:1 mapcount:0 mapping:ffff8801da800ac0 index:0x0 compound_mapcount: 0 [ 39.092549] flags: 0x2fffc0000008100(slab|head) [ 39.097225] raw: 02fffc0000008100 ffffea0007304808 ffffea0007302788 ffff8801da800ac0 [ 39.105098] raw: 0000000000000000 ffff8801cc126040 0000000100000007 0000000000000000 [ 39.112962] page dumped because: kasan: bad access detected [ 39.118653] [ 39.120270] Memory state around the buggy address: [ 39.125224] ffff8801cc126800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 39.132591] ffff8801cc126880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 39.139951] >ffff8801cc126900: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 39.147291] ^ [ 39.154549] ffff8801cc126980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.161902] ffff8801cc126a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.169275] ================================================================== [ 39.176617] Disabling lock debugging due to kernel taint [ 39.186572] Kernel panic - not syncing: panic_on_warn set ... [ 39.186572] [ 39.193943] CPU: 1 PID: 5646 Comm: syz-executor002 Tainted: G B 4.19.0-rc5+ #232 [ 39.202757] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 39.212096] Call Trace: [ 39.214672] dump_stack+0x1c4/0x2b4 [ 39.218287] ? dump_stack_print_info.cold.2+0x52/0x52 [ 39.223467] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 39.228210] panic+0x238/0x4e7 [ 39.231388] ? add_taint.cold.5+0x16/0x16 [ 39.235532] ? preempt_schedule+0x4d/0x60 [ 39.239675] ? ___preempt_schedule+0x16/0x18 [ 39.244081] ? trace_hardirqs_on+0xb4/0x310 [ 39.248394] kasan_end_report+0x47/0x4f [ 39.252371] kasan_report.cold.9+0x76/0x309 [ 39.256678] ? tcf_block_find+0x9d1/0xb90 [ 39.260815] __asan_report_load4_noabort+0x14/0x20 [ 39.265746] tcf_block_find+0x9d1/0xb90 [ 39.269712] tc_new_tfilter+0x497/0x1d20 [ 39.273775] ? mutex_trylock+0x2b0/0x2b0 [ 39.277825] ? tc_del_tfilter+0x1290/0x1290 [ 39.282147] ? refcount_inc_not_zero_checked+0x2f0/0x2f0 [ 39.287587] ? refcount_inc_not_zero_checked+0x2f0/0x2f0 [ 39.293026] ? graph_lock+0x170/0x170 [ 39.296813] ? graph_lock+0x170/0x170 [ 39.300611] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.307270] ? check_preemption_disabled+0x48/0x200 [ 39.312272] ? check_preemption_disabled+0x48/0x200 [ 39.317278] ? __lock_is_held+0xb5/0x140 [ 39.321330] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.326858] ? rtnl_get_link+0x170/0x370 [ 39.330912] ? tc_del_tfilter+0x1290/0x1290 [ 39.335219] rtnetlink_rcv_msg+0x46a/0xc20 [ 39.339443] ? rtnetlink_put_metrics+0x690/0x690 [ 39.344201] netlink_rcv_skb+0x172/0x440 [ 39.348263] ? rtnetlink_put_metrics+0x690/0x690 [ 39.353025] ? netlink_ack+0xb80/0xb80 [ 39.356899] rtnetlink_rcv+0x1c/0x20 [ 39.360597] netlink_unicast+0x5a5/0x760 [ 39.364646] ? netlink_attachskb+0x9a0/0x9a0 [ 39.369057] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.374597] ? __sanitizer_cov_trace_cmp4+0x16/0x20 [ 39.379601] netlink_sendmsg+0xa18/0xfc0 [ 39.383650] ? netlink_unicast+0x760/0x760 [ 39.387889] ? aa_sock_msg_perm.isra.12+0xba/0x160 [ 39.392830] ? apparmor_socket_sendmsg+0x29/0x30 [ 39.397578] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.403117] ? security_socket_sendmsg+0x94/0xc0 [ 39.407862] ? netlink_unicast+0x760/0x760 [ 39.412090] sock_sendmsg+0xd5/0x120 [ 39.415792] ___sys_sendmsg+0x7fd/0x930 [ 39.419770] ? graph_lock+0x170/0x170 [ 39.423559] ? copy_msghdr_from_user+0x580/0x580 [ 39.428300] ? graph_lock+0x170/0x170 [ 39.432102] ? graph_lock+0x170/0x170 [ 39.435886] ? graph_lock+0x170/0x170 [ 39.439692] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.445218] ? __fget_light+0x2e9/0x430 [ 39.449177] ? fget_raw+0x20/0x20 [ 39.452637] ? find_held_lock+0x36/0x1c0 [ 39.456689] ? lock_downgrade+0x900/0x900 [ 39.460857] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 39.466381] ? sockfd_lookup_light+0xc5/0x160 [ 39.470885] __sys_sendmsg+0x11d/0x280 [ 39.474765] ? __ia32_sys_shutdown+0x80/0x80 [ 39.479162] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.484698] ? do_syscall_64+0x9a/0x820 [ 39.488656] ? do_syscall_64+0x9a/0x820 [ 39.492639] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 39.498085] __x64_sys_sendmsg+0x78/0xb0 [ 39.502136] do_syscall_64+0x1b9/0x820 [ 39.506039] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 39.511390] ? syscall_return_slowpath+0x5e0/0x5e0 [ 39.516325] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 39.521169] ? trace_hardirqs_on_caller+0x310/0x310 [ 39.526194] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 39.531244] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.536766] ? prepare_exit_to_usermode+0x291/0x3b0 [ 39.541786] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 39.546617] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.551806] RIP: 0033:0x441979 [ 39.555014] 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.573901] RSP: 002b:00007ffd8b1e9178 EFLAGS: 00000213 ORIG_RAX: 000000000000002e [ 39.581594] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441979 [ 39.588873] RDX: 0000000000000000 RSI: 0000000020000100 RDI: 0000000000000003 [ 39.596162] RBP: 0000000000009641 R08: 0000000000000000 R09: 0000000000000000 [ 39.603429] R10: 0000000001bb6880 R11: 0000000000000213 R12: 0000000000000000 [ 39.610693] R13: 0000000000402390 R14: 0000000000000000 R15: 0000000000000000 [ 39.618848] Kernel Offset: disabled [ 39.622471] Rebooting in 86400 seconds..