================================================================== 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 ffff88807dad9020 by task krxrpcio/7001/8930 CPU: 1 PID: 8930 Comm: krxrpcio/7001 Not tainted 6.1.0-syzkaller-13031-g77856d911a8c #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 5740: 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+0xaf/0x190 mm/slab_common.c:981 kmalloc include/linux/slab.h:584 [inline] kzalloc include/linux/slab.h:720 [inline] ieee802_11_parse_elems_full+0xff/0x2ad0 net/mac80211/util.c:1655 ieee802_11_parse_elems_crc net/mac80211/ieee80211_i.h:2260 [inline] ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2267 [inline] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1605 [inline] ieee80211_ibss_rx_queued_mgmt+0x4fa/0x2d00 net/mac80211/ibss.c:1638 ieee80211_iface_process_skb net/mac80211/iface.c:1581 [inline] ieee80211_iface_work+0x773/0xcf0 net/mac80211/iface.c:1635 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 5740: 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 ieee80211_ibss_rx_queued_mgmt+0x1bbf/0x2d00 ieee80211_iface_process_skb net/mac80211/iface.c:1581 [inline] ieee80211_iface_work+0x773/0xcf0 net/mac80211/iface.c:1635 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 sctp_association_free+0x670/0x7b0 net/sctp/associola.c:379 sctp_cmd_delete_tcb net/sctp/sm_sideeffect.c:944 [inline] sctp_cmd_interpreter+0x3dd6/0x5440 net/sctp/sm_sideeffect.c:1328 sctp_side_effects+0x6c/0x1f0 net/sctp/sm_sideeffect.c:1199 sctp_do_sm+0x22c/0x540 net/sctp/sm_sideeffect.c:1170 sctp_assoc_bh_rcv+0x42a/0x680 net/sctp/associola.c:1051 sctp_backlog_rcv+0x16e/0x3c0 net/sctp/input.c:331 sk_backlog_rcv include/net/sock.h:1109 [inline] __release_sock+0x1d8/0x4c0 net/core/sock.c:2928 release_sock+0x5d/0x1c0 net/core/sock.c:3484 sctp_wait_for_connect+0x3f0/0x700 net/sctp/socket.c:9317 __sctp_connect+0xb2d/0xde0 net/sctp/socket.c:1245 sctp_connect+0xab/0x130 net/sctp/socket.c:4805 __sys_connect_file net/socket.c:1976 [inline] __sys_connect+0x29b/0x2d0 net/socket.c:1993 __do_sys_connect net/socket.c:2003 [inline] __se_sys_connect net/socket.c:2000 [inline] __x64_sys_connect+0x76/0x80 net/socket.c:2000 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd 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 ffff88807dad9000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 32 bytes inside of 1024-byte region [ffff88807dad9000, ffff88807dad9400) The buggy address belongs to the physical page: page:ffffea0001f6b600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7dad8 head:ffffea0001f6b600 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 5051, tgid 5048 (syz-fuzzer), ts 135119764270, free_ts 134989367476 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 skb_free_frag include/linux/skbuff.h:3193 [inline] skb_free_head net/core/skbuff.c:820 [inline] skb_release_data+0x5d9/0x710 net/core/skbuff.c:851 skb_release_all net/core/skbuff.c:916 [inline] __kfree_skb+0x5b/0x1d0 net/core/skbuff.c:930 tcp_eat_recv_skb net/ipv4/tcp.c:1638 [inline] tcp_recvmsg_locked+0x14b2/0x25f0 net/ipv4/tcp.c:2633 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 entry_SYSCALL_64_after_hwframe+0x63/0xcd Memory state around the buggy address: ffff88807dad8f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88807dad8f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88807dad9000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88807dad9080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807dad9100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================