dev_remove_pack: ffff8801d9360780 not found ================================================================== BUG: KASAN: use-after-free in debug_spin_lock_before kernel/locking/spinlock_debug.c:83 [inline] at addr ffff8801d936014c BUG: KASAN: use-after-free in do_raw_spin_lock+0x1ac/0x1e0 kernel/locking/spinlock_debug.c:112 at addr ffff8801d936014c Read of size 4 by task sshd/3282 CPU: 0 PID: 3282 Comm: sshd Not tainted 4.9.50-gf7d2974 #47 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801ce9fee10 ffffffff81d92fc9 ffff8801da002000 ffff8801d9360000 ffff8801d9360800 ffffed003b26c029 ffff8801d936014c ffff8801ce9fee38 ffffffff8153cbcc ffffed003b26c029 ffff8801da002000 0000000000000000 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 [] debug_spin_lock_before kernel/locking/spinlock_debug.c:83 [inline] [] do_raw_spin_lock+0x1ac/0x1e0 kernel/locking/spinlock_debug.c:112 [] __raw_spin_lock_bh include/linux/spinlock_api_smp.h:138 [inline] [] _raw_spin_lock_bh+0x42/0x50 kernel/locking/spinlock.c:175 [] spin_lock_bh include/linux/spinlock.h:307 [inline] [] packet_rcv_has_room+0x25/0xb0 net/packet/af_packet.c:1300 [] fanout_demux_rollover+0x26f/0x4d0 net/packet/af_packet.c:1380 [] packet_rcv_fanout+0x4ce/0x620 net/packet/af_packet.c:1482 [] deliver_skb net/core/dev.c:1834 [inline] [] dev_queue_xmit_nit+0x1b9/0x870 net/core/dev.c:1890 [] xmit_one net/core/dev.c:2940 [inline] [] dev_hard_start_xmit+0xa6/0x8a0 net/core/dev.c:2960 [] sch_direct_xmit+0x2bc/0x5d0 net/sched/sch_generic.c:182 [] __dev_xmit_skb net/core/dev.c:3129 [inline] [] __dev_queue_xmit+0x15fd/0x1e60 net/core/dev.c:3389 [] dev_queue_xmit+0x17/0x20 net/core/dev.c:3454 [] neigh_hh_output include/net/neighbour.h:468 [inline] [] dst_neigh_output include/net/dst.h:468 [inline] [] ip_finish_output2+0xbe8/0x1060 net/ipv4/ip_output.c:225 [] ip_finish_output+0x6b1/0xa00 net/ipv4/ip_output.c:313 [] NF_HOOK_COND include/linux/netfilter.h:246 [inline] [] ip_output+0x1ca/0x610 net/ipv4/ip_output.c:401 [] dst_output include/net/dst.h:507 [inline] [] ip_local_out+0x95/0x170 net/ipv4/ip_output.c:124 [] ip_queue_xmit+0x884/0x1760 net/ipv4/ip_output.c:500 [] tcp_transmit_skb+0x1782/0x2d80 net/ipv4/tcp_output.c:1036 [] tcp_write_xmit+0xbd6/0x4a00 net/ipv4/tcp_output.c:2178 [] __tcp_push_pending_frames+0xa0/0x240 net/ipv4/tcp_output.c:2359 [] tcp_push+0x3fc/0x5d0 net/ipv4/tcp.c:682 [] tcp_sendmsg+0xb89/0x2e30 net/ipv4/tcp.c:1324 [] inet_sendmsg+0x2bc/0x4c0 net/ipv4/af_inet.c:753 [] sock_sendmsg_nosec net/socket.c:635 [inline] [] sock_sendmsg+0xca/0x110 net/socket.c:645 [] sock_write_iter+0x226/0x3b0 net/socket.c:843 [] new_sync_write fs/read_write.c:499 [inline] [] __vfs_write+0x4bf/0x680 fs/read_write.c:512 [] vfs_write+0x170/0x4e0 fs/read_write.c:560 [] SYSC_write fs/read_write.c:607 [inline] [] SyS_write+0xd9/0x1b0 fs/read_write.c:599 [] entry_SYSCALL_64_fastpath+0x23/0xc6 Object at ffff8801d9360000, in cache kmalloc-2048 size: 2048 Allocated: PID = 4026 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 __kmalloc+0x11d/0x310 mm/slub.c:3741 kmalloc include/linux/slab.h:495 [inline] sk_prot_alloc+0x101/0x2a0 net/core/sock.c:1338 sk_alloc+0x3a/0x3a0 net/core/sock.c:1394 packet_create+0xf0/0x8e0 net/packet/af_packet.c:3205 __sock_create+0x3ab/0x640 net/socket.c:1182 sock_create net/socket.c:1222 [inline] SYSC_socket net/socket.c:1252 [inline] SyS_socket+0xf0/0x1b0 net/socket.c:1232 entry_SYSCALL_64_fastpath+0x23/0xc6 Freed: PID = 4024 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_slab_free+0x73/0xc0 mm/kasan/kasan.c:571 slab_free_hook mm/slub.c:1355 [inline] slab_free_freelist_hook mm/slub.c:1377 [inline] slab_free mm/slub.c:2958 [inline] kfree+0xf0/0x2f0 mm/slub.c:3878 sk_prot_free net/core/sock.c:1377 [inline] __sk_destruct+0x47f/0x570 net/core/sock.c:1455 sk_destruct+0x47/0x80 net/core/sock.c:1463 __sk_free+0x57/0x230 net/core/sock.c:1471 sk_free+0x23/0x30 net/core/sock.c:1482 sock_put include/net/sock.h:1592 [inline] packet_release+0x732/0xa20 net/packet/af_packet.c:3041 sock_release+0x8d/0x1e0 net/socket.c:599 sock_close+0x16/0x20 net/socket.c:1046 __fput+0x28c/0x6e0 fs/file_table.c:208 ____fput+0x15/0x20 fs/file_table.c:244 task_work_run+0x115/0x190 kernel/task_work.c:116 exit_task_work include/linux/task_work.h:21 [inline] do_exit+0x82e/0x2a50 kernel/exit.c:833 do_group_exit+0x108/0x320 kernel/exit.c:937 get_signal+0x55c/0x1600 kernel/signal.c:2315 do_signal+0x87/0x1960 arch/x86/kernel/signal.c:807 exit_to_usermode_loop+0xe5/0x130 arch/x86/entry/common.c:156 prepare_exit_to_usermode arch/x86/entry/common.c:190 [inline] syscall_return_slowpath+0x1a0/0x1e0 arch/x86/entry/common.c:259 entry_SYSCALL_64_fastpath+0xc4/0xc6 Memory state around the buggy address: ffff8801d9360000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801d9360080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8801d9360100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8801d9360180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801d9360200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: use-after-free in debug_spin_lock_before kernel/locking/spinlock_debug.c:84 [inline] at addr ffff8801d9360158 BUG: KASAN: use-after-free in do_raw_spin_lock+0x1d3/0x1e0 kernel/locking/spinlock_debug.c:112 at addr ffff8801d9360158 Read of size 8 by task sshd/3282 CPU: 0 PID: 3282 Comm: sshd Tainted: G B 4.9.50-gf7d2974 #47 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801ce9fee10 ffffffff81d92fc9 ffff8801da002000 ffff8801d9360000 ffff8801d9360800 ffffed003b26c02b ffff8801d9360158 ffff8801ce9fee38 ffffffff8153cbcc ffffed003b26c02b ffff8801da002000 0000000000000000 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] kasan_report mm/kasan/report.c:330 [inline] [] __asan_report_load8_noabort+0x29/0x30 mm/kasan/report.c:330 [] debug_spin_lock_before kernel/locking/spinlock_debug.c:84 [inline] [] do_raw_spin_lock+0x1d3/0x1e0 kernel/locking/spinlock_debug.c:112 [] __raw_spin_lock_bh include/linux/spinlock_api_smp.h:138 [inline] [] _raw_spin_lock_bh+0x42/0x50 kernel/locking/spinlock.c:175 [] spin_lock_bh include/linux/spinlock.h:307 [inline] [] packet_rcv_has_room+0x25/0xb0 net/packet/af_packet.c:1300 [] fanout_demux_rollover+0x26f/0x4d0 net/packet/af_packet.c:1380 [] packet_rcv_fanout+0x4ce/0x620 net/packet/af_packet.c:1482 [] deliver_skb net/core/dev.c:1834 [inline] [] dev_queue_xmit_nit+0x1b9/0x870 net/core/dev.c:1890 [] xmit_one net/core/dev.c:2940 [inline] [] dev_hard_start_xmit+0xa6/0x8a0 net/core/dev.c:2960 [] sch_direct_xmit+0x2bc/0x5d0 net/sched/sch_generic.c:182 [] __dev_xmit_skb net/core/dev.c:3129 [inline] [] __dev_queue_xmit+0x15fd/0x1e60 net/core/dev.c:3389 [] dev_queue_xmit+0x17/0x20 net/core/dev.c:3454 [] neigh_hh_output include/net/neighbour.h:468 [inline] [] dst_neigh_output include/net/dst.h:468 [inline] [] ip_finish_output2+0xbe8/0x1060 net/ipv4/ip_output.c:225 [] ip_finish_output+0x6b1/0xa00 net/ipv4/ip_output.c:313 [] NF_HOOK_COND include/linux/netfilter.h:246 [inline] [] ip_output+0x1ca/0x610 net/ipv4/ip_output.c:401 [] dst_output include/net/dst.h:507 [inline] [] ip_local_out+0x95/0x170 net/ipv4/ip_output.c:124 [] ip_queue_xmit+0x884/0x1760 net/ipv4/ip_output.c:500 [] tcp_transmit_skb+0x1782/0x2d80 net/ipv4/tcp_output.c:1036