protocol 88fb is buggy, dev hsr_slave_0 ================================================================== BUG: KASAN: use-after-free in inet_ctl_sock_destroy include/net/inet_common.h:56 [inline] BUG: KASAN: use-after-free in icmp_sk_exit+0x1ce/0x1f0 net/ipv4/icmp.c:1187 Read of size 8 at addr ffff888048f55968 by task kworker/u4:3/12005 CPU: 0 PID: 12005 Comm: kworker/u4:3 Not tainted 5.0.0-rc7+ #83 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: netns cleanup_net Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x172/0x1f0 lib/dump_stack.c:113 print_address_description.cold+0x7c/0x20d mm/kasan/report.c:187 kasan_report.cold+0x1b/0x40 mm/kasan/report.c:317 __asan_report_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:135 inet_ctl_sock_destroy include/net/inet_common.h:56 [inline] icmp_sk_exit+0x1ce/0x1f0 net/ipv4/icmp.c:1187 ops_exit_list.isra.0+0xb0/0x160 net/core/net_namespace.c:153 cleanup_net+0x3fb/0x960 net/core/net_namespace.c:551 process_one_work+0x98e/0x1790 kernel/workqueue.c:2173 worker_thread+0x98/0xe40 kernel/workqueue.c:2319 kthread+0x357/0x430 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 Allocated by task 7598: save_stack+0x45/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] __kasan_kmalloc mm/kasan/common.c:495 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:468 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:509 __do_kmalloc_node mm/slab.c:3678 [inline] __kmalloc_node_track_caller+0x4e/0x70 mm/slab.c:3692 __kmalloc_reserve.isra.0+0x40/0xf0 net/core/skbuff.c:140 __alloc_skb+0x10b/0x5e0 net/core/skbuff.c:208 alloc_skb_fclone include/linux/skbuff.h:1053 [inline] sk_stream_alloc_skb+0xc8/0x860 net/ipv4/tcp.c:874 tcp_sendmsg_locked+0xc7d/0x34a0 net/ipv4/tcp.c:1286 tcp_sendmsg+0x30/0x50 net/ipv4/tcp.c:1443 inet_sendmsg+0x147/0x5d0 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xdd/0x130 net/socket.c:631 sock_write_iter+0x27c/0x3e0 net/socket.c:900 call_write_iter include/linux/fs.h:1863 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x613/0x8e0 fs/read_write.c:487 vfs_write+0x20c/0x580 fs/read_write.c:549 ksys_write+0xea/0x1f0 fs/read_write.c:598 __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x73/0xb0 fs/read_write.c:607 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 7598: save_stack+0x45/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:457 kasan_slab_free+0xe/0x10 mm/kasan/common.c:465 __cache_free mm/slab.c:3494 [inline] kfree+0xcf/0x230 mm/slab.c:3811 skb_free_head+0x93/0xb0 net/core/skbuff.c:557 skb_release_data+0x57e/0x7b0 net/core/skbuff.c:577 skb_release_all+0x4d/0x60 net/core/skbuff.c:631 __kfree_skb+0x16/0x30 net/core/skbuff.c:645 sk_wmem_free_skb include/net/sock.h:1462 [inline] tcp_rtx_queue_unlink_and_free include/net/tcp.h:1762 [inline] tcp_clean_rtx_queue net/ipv4/tcp_input.c:3141 [inline] tcp_ack+0x1c65/0x5310 net/ipv4/tcp_input.c:3668 tcp_rcv_established+0x18d9/0x1fb0 net/ipv4/tcp_input.c:5573 tcp_v4_do_rcv+0x616/0x8d0 net/ipv4/tcp_ipv4.c:1541 sk_backlog_rcv include/net/sock.h:936 [inline] __release_sock+0x12e/0x3a0 net/core/sock.c:2284 release_sock+0x59/0x1c0 net/core/sock.c:2800 tcp_sendmsg+0x3b/0x50 net/ipv4/tcp.c:1444 inet_sendmsg+0x147/0x5d0 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xdd/0x130 net/socket.c:631 sock_write_iter+0x27c/0x3e0 net/socket.c:900 call_write_iter include/linux/fs.h:1863 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x613/0x8e0 fs/read_write.c:487 vfs_write+0x20c/0x580 fs/read_write.c:549 ksys_write+0xea/0x1f0 fs/read_write.c:598 __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x73/0xb0 fs/read_write.c:607 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff888048f55740 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 552 bytes inside of 2048-byte region [ffff888048f55740, ffff888048f55f40) The buggy address belongs to the page: page:ffffea000123d500 count:1 mapcount:0 mapping:ffff88812c3f0c40 index:0x0 compound_mapcount: 0 flags: 0x1fffc0000010200(slab|head) raw: 01fffc0000010200 ffffea00025eb988 ffffea000259a988 ffff88812c3f0c40 raw: 0000000000000000 ffff888048f54640 0000000100000003 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888048f55800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888048f55880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888048f55900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888048f55980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888048f55a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================