================================================================== BUG: KASAN: use-after-free in instrument_atomic_read include/linux/instrumented.h:71 [inline] BUG: KASAN: use-after-free in atomic_read include/linux/atomic/atomic-instrumented.h:27 [inline] BUG: KASAN: use-after-free in refcount_read include/linux/refcount.h:147 [inline] BUG: KASAN: use-after-free in skb_unref include/linux/skbuff.h:1102 [inline] BUG: KASAN: use-after-free in consume_skb+0x35/0x140 net/core/skbuff.c:910 Read of size 4 at addr ffff88806085449c by task kworker/0:3/2364 CPU: 0 PID: 2364 Comm: kworker/0:3 Not tainted 5.15.178-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 Workqueue: events sk_psock_destroy Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 print_address_description+0x63/0x3b0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0x16b/0x1c0 mm/kasan/report.c:451 kasan_check_range+0x27e/0x290 mm/kasan/generic.c:189 instrument_atomic_read include/linux/instrumented.h:71 [inline] atomic_read include/linux/atomic/atomic-instrumented.h:27 [inline] refcount_read include/linux/refcount.h:147 [inline] skb_unref include/linux/skbuff.h:1102 [inline] consume_skb+0x35/0x140 net/core/skbuff.c:910 __sk_msg_free+0x2cd/0x350 net/core/skmsg.c:205 sk_msg_free net/core/skmsg.c:218 [inline] __sk_psock_purge_ingress_msg net/core/skmsg.c:768 [inline] __sk_psock_zap_ingress net/core/skmsg.c:781 [inline] sk_psock_destroy+0x3f4/0x8a0 net/core/skmsg.c:813 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Allocated by task 5329: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0x8e/0xc0 mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x53/0x380 mm/slab.h:519 slab_alloc_node mm/slub.c:3220 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0xf3/0x280 mm/slub.c:3233 skb_clone+0x1bb/0x350 net/core/skbuff.c:1523 sk_psock_verdict_recv+0x51/0x5b0 net/core/skmsg.c:1180 unix_read_sock+0x124/0x360 net/unix/af_unix.c:2421 sk_psock_verdict_data_ready+0x147/0x1a0 net/core/skmsg.c:1223 unix_dgram_sendmsg+0x15fc/0x2090 net/unix/af_unix.c:1935 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] ____sys_sendmsg+0x59e/0x8f0 net/socket.c:2436 ___sys_sendmsg+0x252/0x2e0 net/socket.c:2490 __sys_sendmsg net/socket.c:2519 [inline] __do_sys_sendmsg net/socket.c:2528 [inline] __se_sys_sendmsg+0x19a/0x260 net/socket.c:2526 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Freed by task 2364: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4b/0x80 mm/kasan/common.c:46 kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:360 ____kasan_slab_free+0xd8/0x120 mm/kasan/common.c:366 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1705 [inline] slab_free_freelist_hook+0xdd/0x160 mm/slub.c:1731 slab_free mm/slub.c:3499 [inline] kmem_cache_free+0x91/0x1f0 mm/slub.c:3515 kfree_skb include/linux/skbuff.h:1118 [inline] sock_drop include/linux/skmsg.h:313 [inline] __sk_psock_zap_ingress net/core/skmsg.c:779 [inline] sk_psock_destroy+0x175/0x8a0 net/core/skmsg.c:813 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 The buggy address belongs to the object at ffff8880608543c0 which belongs to the cache skbuff_head_cache of size 232 The buggy address is located 220 bytes inside of 232-byte region [ffff8880608543c0, ffff8880608544a8) The buggy address belongs to the page: page:ffffea0001821500 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x60854 memcg:ffff8880606e9081 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 dead000000000100 dead000000000122 ffff88801c1e7140 raw: 0000000000000000 00000000000c000c 00000001ffffffff ffff8880606e9081 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL), pid 1110, ts 434774356204, free_ts 434761263685 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x3b78/0x3d40 mm/page_alloc.c:4192 __alloc_pages+0x272/0x700 mm/page_alloc.c:5465 alloc_slab_page mm/slub.c:1775 [inline] allocate_slab mm/slub.c:1912 [inline] new_slab+0xbb/0x4b0 mm/slub.c:1975 ___slab_alloc+0x6f6/0xe10 mm/slub.c:3008 __slab_alloc mm/slub.c:3095 [inline] slab_alloc_node mm/slub.c:3186 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x18e/0x280 mm/slub.c:3233 skb_clone+0x1bb/0x350 net/core/skbuff.c:1523 dev_queue_xmit_nit+0x2d6/0xae0 net/core/dev.c:2310 xmit_one net/core/dev.c:3612 [inline] dev_hard_start_xmit+0x137/0x7a0 net/core/dev.c:3633 __dev_queue_xmit+0x1c8e/0x32b0 net/core/dev.c:4256 hsr_xmit net/hsr/hsr_forward.c:338 [inline] hsr_forward_do net/hsr/hsr_forward.c:429 [inline] hsr_forward_skb+0x1310/0x1b20 net/hsr/hsr_forward.c:579 hsr_dev_xmit+0x145/0x1e0 net/hsr/hsr_device.c:223 __netdev_start_xmit include/linux/netdevice.h:5019 [inline] netdev_start_xmit include/linux/netdevice.h:5033 [inline] xmit_one net/core/dev.c:3617 [inline] dev_hard_start_xmit+0x298/0x7a0 net/core/dev.c:3633 __dev_queue_xmit+0x1c8e/0x32b0 net/core/dev.c:4256 neigh_output include/net/neighbour.h:509 [inline] ip6_finish_output2+0xee8/0x15a0 net/ipv6/ip6_output.c:130 dst_output include/net/dst.h:443 [inline] NF_HOOK include/linux/netfilter.h:302 [inline] ndisc_send_skb+0xae0/0x13c0 net/ipv6/ndisc.c:511 addrconf_dad_completed+0x75f/0xc40 net/ipv6/addrconf.c:4278 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0xc34/0xcf0 mm/page_alloc.c:3317 free_unref_page+0x95/0x2d0 mm/page_alloc.c:3396 __vunmap+0x8b3/0xa50 mm/vmalloc.c:2621 free_work+0x57/0x80 mm/vmalloc.c:95 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Memory state around the buggy address: ffff888060854380: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb ffff888060854400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888060854480: fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc ^ ffff888060854500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888060854580: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc ==================================================================