================================================================== 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+0x2ad/0x2f0 net/rxrpc/local_object.c:389 Write of size 8 at addr ffff88804ba04820 by task krxrpcio/7001/3683 CPU: 0 PID: 3683 Comm: krxrpcio/7001 Not tainted 6.1.0-rc7-syzkaller-01810-gc9f8d73645b6 #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+0xd1/0x138 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:284 [inline] print_report+0x15e/0x45d mm/kasan/report.c:395 kasan_report+0xbf/0x1f0 mm/kasan/report.c:495 __hlist_del include/linux/list.h:884 [inline] hlist_del_init_rcu include/linux/rculist.h:184 [inline] rxrpc_destroy_local+0x2ad/0x2f0 net/rxrpc/local_object.c:389 rxrpc_io_thread+0xcde/0xfa0 net/rxrpc/io_thread.c:492 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 The buggy address belongs to the physical page: page:ffffea00012e8100 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x4ba04 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000100 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000100000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 2, migratetype Unmovable, gfp_mask 0x1d2a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 10413, tgid 10412 (syz-executor.3), ts 390641678980, free_ts 400811042991 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x10b5/0x2d50 mm/page_alloc.c:4291 __alloc_pages+0x1cb/0x5b0 mm/page_alloc.c:5558 alloc_pages+0x1aa/0x270 mm/mempolicy.c:2285 alloc_slab_page mm/slub.c:1794 [inline] allocate_slab+0x213/0x300 mm/slub.c:1939 new_slab mm/slub.c:1992 [inline] ___slab_alloc+0xa91/0x1400 mm/slub.c:3180 __slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3279 slab_alloc_node mm/slub.c:3364 [inline] __kmem_cache_alloc_node+0x199/0x3e0 mm/slub.c:3437 __do_kmalloc_node mm/slab_common.c:954 [inline] __kmalloc_node_track_caller+0x4b/0xc0 mm/slab_common.c:975 kmalloc_reserve net/core/skbuff.c:438 [inline] pskb_expand_head+0x211/0x1110 net/core/skbuff.c:1845 skb_ensure_writable net/core/skbuff.c:5755 [inline] skb_ensure_writable+0x2cb/0x450 net/core/skbuff.c:5747 __bpf_try_make_writable net/core/filter.c:1657 [inline] bpf_try_make_writable net/core/filter.c:1663 [inline] bpf_try_make_head_writable net/core/filter.c:1671 [inline] ____bpf_clone_redirect net/core/filter.c:2430 [inline] bpf_clone_redirect+0x129/0x420 net/core/filter.c:2408 0xffffffffa0001fed bpf_dispatcher_nop_func include/linux/bpf.h:1082 [inline] __bpf_prog_run include/linux/filter.h:600 [inline] bpf_prog_run include/linux/filter.h:607 [inline] bpf_test_run+0x381/0x9d0 net/bpf/test_run.c:402 bpf_prog_test_run_skb+0xb62/0x1e10 net/bpf/test_run.c:1180 bpf_prog_test_run kernel/bpf/syscall.c:3644 [inline] __sys_bpf+0x1599/0x4ff0 kernel/bpf/syscall.c:4997 __do_sys_bpf kernel/bpf/syscall.c:5083 [inline] __se_sys_bpf kernel/bpf/syscall.c:5081 [inline] __x64_sys_bpf+0x79/0xc0 kernel/bpf/syscall.c:5081 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1459 [inline] free_pcp_prepare+0x65c/0xd90 mm/page_alloc.c:1509 free_unref_page_prepare mm/page_alloc.c:3387 [inline] free_unref_page+0x1d/0x4d0 mm/page_alloc.c:3483 __unfreeze_partials+0x17c/0x1a0 mm/slub.c:2586 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x6a/0x170 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x184/0x210 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x66/0x90 mm/kasan/common.c:302 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slab.h:737 [inline] slab_alloc_node mm/slub.c:3398 [inline] slab_alloc mm/slub.c:3406 [inline] __kmem_cache_alloc_lru mm/slub.c:3413 [inline] kmem_cache_alloc+0x2b4/0x3d0 mm/slub.c:3422 kmem_cache_zalloc include/linux/slab.h:679 [inline] alloc_buffer_head+0x24/0x150 fs/buffer.c:2899 alloc_page_buffers+0x284/0x790 fs/buffer.c:829 grow_dev_page fs/buffer.c:965 [inline] grow_buffers fs/buffer.c:1011 [inline] __getblk_slow+0x505/0x1030 fs/buffer.c:1038 __getblk_gfp+0x72/0x80 fs/buffer.c:1333 __getblk include/linux/buffer_head.h:411 [inline] jbd2_journal_get_descriptor_buffer+0x10e/0x410 fs/jbd2/journal.c:1019 journal_submit_commit_record.part.0+0x8b/0x9e0 fs/jbd2/commit.c:133 journal_submit_commit_record fs/jbd2/commit.c:130 [inline] jbd2_journal_commit_transaction+0x4007/0x6de0 fs/jbd2/commit.c:914 kjournald2+0x1d4/0x890 fs/jbd2/journal.c:210 kthread+0x2e8/0x3a0 kernel/kthread.c:376 Memory state around the buggy address: ffff88804ba04700: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88804ba04780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88804ba04800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88804ba04880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88804ba04900: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================