================================================================== BUG: KASAN: use-after-free in tcp_probe_timer net/ipv4/tcp_timer.c:384 [inline] BUG: KASAN: use-after-free in tcp_write_timer_handler+0x78c/0x8a8 net/ipv4/tcp_timer.c:648 Read of size 1 at addr ffff000164773b0d by task syz-executor.0/22579 CPU: 1 PID: 22579 Comm: syz-executor.0 Not tainted 5.15.152-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 print_address_description+0x7c/0x3f0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0x174/0x1e4 mm/kasan/report.c:451 __asan_report_load1_noabort+0x44/0x50 mm/kasan/report_generic.c:306 tcp_probe_timer net/ipv4/tcp_timer.c:384 [inline] tcp_write_timer_handler+0x78c/0x8a8 net/ipv4/tcp_timer.c:648 tcp_write_timer+0x178/0x318 net/ipv4/tcp_timer.c:664 call_timer_fn+0x19c/0x8f0 kernel/time/timer.c:1421 expire_timers kernel/time/timer.c:1466 [inline] __run_timers+0x554/0x718 kernel/time/timer.c:1737 run_timer_softirq+0x7c/0x114 kernel/time/timer.c:1750 __do_softirq+0x344/0xdb0 kernel/softirq.c:558 do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] invoke_softirq kernel/softirq.c:439 [inline] __irq_exit_rcu+0x264/0x4d4 kernel/softirq.c:637 irq_exit+0x14/0x88 kernel/softirq.c:661 handle_domain_irq+0xf4/0x178 kernel/irq/irqdesc.c:710 gic_handle_irq+0x78/0x1c8 drivers/irqchip/irq-gic-v3.c:758 call_on_irq_stack+0x24/0x4c arch/arm64/kernel/entry.S:899 do_interrupt_handler+0x74/0x94 arch/arm64/kernel/entry-common.c:267 el1_interrupt+0x30/0x58 arch/arm64/kernel/entry-common.c:454 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:470 el1h_64_irq+0x78/0x7c arch/arm64/kernel/entry.S:580 arch_local_irq_enable arch/arm64/include/asm/irqflags.h:35 [inline] lookup_bh_lru fs/buffer.c:1294 [inline] __find_get_block+0x1d8/0xdd4 fs/buffer.c:1306 __getblk_gfp+0x48/0x700 fs/buffer.c:1332 sb_getblk include/linux/buffer_head.h:361 [inline] ext4_getblk+0x1f4/0x688 fs/ext4/inode.c:853 ext4_bread_batch+0x84/0x448 fs/ext4/inode.c:920 __ext4_find_entry+0xc84/0x1614 fs/ext4/namei.c:1670 ext4_lookup_entry fs/ext4/namei.c:1771 [inline] ext4_lookup+0x328/0x8c8 fs/ext4/namei.c:1839 lookup_one_qstr_excl+0x108/0x230 fs/namei.c:1563 filename_create+0x230/0x468 fs/namei.c:3836 do_symlinkat+0xd8/0x6b0 fs/namei.c:4448 __do_sys_symlinkat fs/namei.c:4475 [inline] __se_sys_symlinkat fs/namei.c:4472 [inline] __arm64_sys_symlinkat+0xa4/0xbc fs/namei.c:4472 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Allocated by task 11132: 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+0x8c/0xcc mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x74/0x3f4 mm/slab.h:519 slab_alloc_node mm/slub.c:3220 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x1dc/0x45c mm/slub.c:3233 kmem_cache_zalloc include/linux/slab.h:711 [inline] net_alloc net/core/net_namespace.c:405 [inline] copy_net_ns+0x128/0x5e4 net/core/net_namespace.c:460 create_new_namespaces+0x330/0x61c kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0x108/0x158 kernel/nsproxy.c:226 ksys_unshare+0x45c/0x874 kernel/fork.c:3101 __do_sys_unshare kernel/fork.c:3175 [inline] __se_sys_unshare kernel/fork.c:3173 [inline] __arm64_sys_unshare+0x3c/0x50 kernel/fork.c:3173 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 The buggy address belongs to the object at ffff000164773480 which belongs to the cache net_namespace of size 6464 The buggy address is located 1677 bytes inside of 6464-byte region [ffff000164773480, ffff000164774dc0) The buggy address belongs to the page: page:00000000a587e058 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff000164773480 pfn:0x1a4770 head:00000000a587e058 order:3 compound_mapcount:0 compound_pincount:0 memcg:ffff00015b470b01 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 0000000000000000 0000000100000001 ffff0000c0840000 raw: ffff000164773480 0000000080040003 00000001ffffffff ffff00015b470b01 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff000164773a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff000164773a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff000164773b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff000164773b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff000164773c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================