================================================================== BUG: KASAN: use-after-free in __hlist_del include/linux/list.h:884 [inline] BUG: KASAN: use-after-free in hlist_del_init_rcu include/linux/rculist.h:184 [inline] BUG: KASAN: use-after-free in rxrpc_destroy_local+0x104/0x290 net/rxrpc/local_object.c:389 Write of size 8 at addr ffff8880263fd820 by task krxrpcio/7001/5114 CPU: 1 PID: 5114 Comm: krxrpcio/7001 Not tainted 6.1.0-syzkaller-13822-g6feb57c2fd7c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 print_address_description+0x74/0x340 mm/kasan/report.c:306 print_report+0x107/0x220 mm/kasan/report.c:417 kasan_report+0x139/0x170 mm/kasan/report.c:517 __hlist_del include/linux/list.h:884 [inline] hlist_del_init_rcu include/linux/rculist.h:184 [inline] rxrpc_destroy_local+0x104/0x290 net/rxrpc/local_object.c:389 rxrpc_io_thread+0x1d28/0x1f30 net/rxrpc/io_thread.c:492 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Allocated by task 22127: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x70 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:371 [inline] __kasan_kmalloc+0x97/0xb0 mm/kasan/common.c:380 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:968 [inline] __kmalloc_node_track_caller+0xad/0x190 mm/slab_common.c:988 kmalloc_reserve net/core/skbuff.c:492 [inline] __alloc_skb+0x12c/0x2c0 net/core/skbuff.c:565 __netdev_alloc_skb+0xfc/0x510 net/core/skbuff.c:630 __netdev_alloc_skb_ip_align include/linux/skbuff.h:3178 [inline] netdev_alloc_skb_ip_align include/linux/skbuff.h:3188 [inline] batadv_iv_ogm_aggregate_new net/batman-adv/bat_iv_ogm.c:559 [inline] batadv_iv_ogm_queue_add+0x6d9/0xc20 net/batman-adv/bat_iv_ogm.c:671 batadv_iv_ogm_schedule_buff net/batman-adv/bat_iv_ogm.c:850 [inline] batadv_iv_ogm_schedule+0xc27/0x1050 net/batman-adv/bat_iv_ogm.c:869 batadv_iv_send_outstanding_bat_ogm_packet+0x741/0x850 net/batman-adv/bat_iv_ogm.c:1713 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Freed by task 20468: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x70 mm/kasan/common.c:52 kasan_save_free_info+0x27/0x40 mm/kasan/generic.c:518 ____kasan_slab_free+0xd6/0x120 mm/kasan/common.c:236 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1781 [inline] slab_free_freelist_hook+0x12e/0x1a0 mm/slub.c:1807 slab_free mm/slub.c:3787 [inline] __kmem_cache_free+0x71/0x110 mm/slub.c:3800 skb_free_head net/core/skbuff.c:822 [inline] skb_release_data+0x4f6/0x710 net/core/skbuff.c:851 skb_release_all net/core/skbuff.c:916 [inline] __kfree_skb+0x5b/0x1d0 net/core/skbuff.c:930 batadv_forw_packet_free+0x5f/0x1f0 net/batman-adv/send.c:471 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Last potentially related work creation: kasan_save_stack+0x3b/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xb0/0xc0 mm/kasan/generic.c:488 __call_rcu_common kernel/rcu/tree.c:2753 [inline] call_rcu+0x163/0xab0 kernel/rcu/tree.c:2866 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Second to last potentially related work creation: kasan_save_stack+0x3b/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xb0/0xc0 mm/kasan/generic.c:488 __call_rcu_common kernel/rcu/tree.c:2753 [inline] call_rcu+0x163/0xab0 kernel/rcu/tree.c:2866 rxrpc_clean_up_connection+0x316/0x380 net/rxrpc/conn_object.c:318 rxrpc_discard_expired_client_conns+0x39b/0x4d0 net/rxrpc/conn_client.c:1059 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 The buggy address belongs to the object at ffff8880263fd800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 32 bytes inside of 1024-byte region [ffff8880263fd800, ffff8880263fdc00) The buggy address belongs to the physical page: page:ffffea000098fe00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x263f8 head:ffffea000098fe00 order:3 compound_mapcount:0 subpages_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffff888012841dc0 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5050, tgid 5047 (syz-fuzzer), ts 138493653589, free_ts 138127131417 prep_new_page mm/page_alloc.c:2531 [inline] get_page_from_freelist+0x72b/0x7a0 mm/page_alloc.c:4283 __alloc_pages+0x259/0x560 mm/page_alloc.c:5549 alloc_slab_page+0xbd/0x190 mm/slub.c:1851 allocate_slab+0x5e/0x3c0 mm/slub.c:1998 new_slab mm/slub.c:2051 [inline] ___slab_alloc+0x7f4/0xeb0 mm/slub.c:3193 __slab_alloc mm/slub.c:3292 [inline] __slab_alloc_node mm/slub.c:3345 [inline] slab_alloc_node mm/slub.c:3442 [inline] __kmem_cache_alloc_node+0x25b/0x340 mm/slub.c:3491 __do_kmalloc_node mm/slab_common.c:967 [inline] __kmalloc_node_track_caller+0x9c/0x190 mm/slab_common.c:988 kmalloc_reserve net/core/skbuff.c:492 [inline] __alloc_skb+0x12c/0x2c0 net/core/skbuff.c:565 alloc_skb include/linux/skbuff.h:1270 [inline] __tcp_send_ack+0x98/0x5f0 net/ipv4/tcp_output.c:3957 tcp_cleanup_rbuf net/ipv4/tcp.c:1628 [inline] tcp_recvmsg_locked+0x1cf8/0x25f0 net/ipv4/tcp.c:2649 tcp_recvmsg+0x22b/0x8b0 net/ipv4/tcp.c:2679 inet_recvmsg+0x13a/0x250 net/ipv4/af_inet.c:861 sock_recvmsg_nosec net/socket.c:995 [inline] sock_recvmsg net/socket.c:1013 [inline] sock_read_iter+0x3fa/0x530 net/socket.c:1086 call_read_iter include/linux/fs.h:2180 [inline] new_sync_read fs/read_write.c:389 [inline] vfs_read+0x7cf/0xbc0 fs/read_write.c:470 ksys_read+0x19b/0x2c0 fs/read_write.c:613 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1446 [inline] free_pcp_prepare+0x751/0x780 mm/page_alloc.c:1496 free_unref_page_prepare mm/page_alloc.c:3369 [inline] free_unref_page+0x19/0x4c0 mm/page_alloc.c:3464 page_to_skb+0x661/0xb80 drivers/net/virtio_net.c:558 receive_mergeable+0x34e/0x26e0 drivers/net/virtio_net.c:1126 receive_buf+0x153/0x1d10 drivers/net/virtio_net.c:1265 virtnet_receive drivers/net/virtio_net.c:1560 [inline] virtnet_poll+0x64e/0x12a0 drivers/net/virtio_net.c:1678 __napi_poll+0xbe/0x4b0 net/core/dev.c:6485 napi_poll net/core/dev.c:6552 [inline] net_rx_action+0x76c/0x1100 net/core/dev.c:6663 __do_softirq+0x277/0x75b kernel/softirq.c:571 Memory state around the buggy address: ffff8880263fd700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880263fd780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880263fd800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880263fd880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880263fd900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================