================================================================== BUG: KASAN: slab-out-of-bounds in tcp_retransmit_timer+0x2a66/0x2e80 net/ipv4/tcp_timer.c:500 Read of size 8 at addr ffff8880856a42d0 by task syz-executor.3/6389 CPU: 0 PID: 6389 Comm: syz-executor.3 Not tainted 5.7.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x188/0x20d lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xd3/0x413 mm/kasan/report.c:382 __kasan_report.cold+0x20/0x38 mm/kasan/report.c:511 kasan_report+0x33/0x50 mm/kasan/common.c:625 tcp_retransmit_timer+0x2a66/0x2e80 net/ipv4/tcp_timer.c:500 tcp_write_timer_handler+0x686/0x8a0 net/ipv4/tcp_timer.c:611 tcp_write_timer+0xa2/0x2b0 net/ipv4/tcp_timer.c:631 call_timer_fn+0x1ac/0x780 kernel/time/timer.c:1404 expire_timers kernel/time/timer.c:1449 [inline] __run_timers kernel/time/timer.c:1773 [inline] __run_timers kernel/time/timer.c:1740 [inline] run_timer_softirq+0x623/0x1600 kernel/time/timer.c:1786 __do_softirq+0x26c/0x9f7 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x192/0x1d0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:546 [inline] smp_apic_timer_interrupt+0x19e/0x600 arch/x86/kernel/apic/apic.c:1140 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 RIP: 0010:__sanitizer_cov_trace_pc+0x37/0x50 kernel/kcov.c:192 Code: ea 8e 7e 81 e2 00 01 1f 00 48 8b 34 24 75 2b 8b 90 d8 13 00 00 83 fa 02 75 20 48 8b 88 e0 13 00 00 8b 80 dc 13 00 00 48 8b 11 <48> 83 c2 01 48 39 d0 76 07 48 89 34 d1 48 89 11 c3 0f 1f 84 00 00 RSP: 0018:ffffc900019c70d8 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 0000000000040000 RBX: ffff8880464a38c8 RCX: ffffc90001fd9000 RDX: 000000000003ffff RSI: ffffffff87576a89 RDI: 0000000000000005 RBP: 0000000000000008 R08: ffff888063778600 R09: fffffbfff15146f9 R10: ffffffff8a8a37c7 R11: fffffbfff15146f8 R12: 0000000000000112 R13: 0000000000000018 R14: ffff88804e3631c0 R15: dffffc0000000000 wiphy_share_dfs_chan_state net/wireless/reg.c:2700 [inline] wiphy_all_share_dfs_chan_state+0x289/0x5e0 net/wireless/reg.c:2716 wiphy_register+0x1cb1/0x2760 net/wireless/core.c:901 ieee80211_register_hw+0x2295/0x3960 net/mac80211/main.c:1270 mac80211_hwsim_new_radio+0x2246/0x44a0 drivers/net/wireless/mac80211_hwsim.c:3119 hwsim_new_radio_nl+0x8fe/0xf50 drivers/net/wireless/mac80211_hwsim.c:3680 genl_family_rcv_msg_doit net/netlink/genetlink.c:673 [inline] genl_family_rcv_msg net/netlink/genetlink.c:718 [inline] genl_rcv_msg+0x627/0xdf0 net/netlink/genetlink.c:735 netlink_rcv_skb+0x15a/0x410 net/netlink/af_netlink.c:2469 genl_rcv+0x24/0x40 net/netlink/genetlink.c:746 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline] netlink_unicast+0x537/0x740 net/netlink/af_netlink.c:1329 netlink_sendmsg+0x882/0xe10 net/netlink/af_netlink.c:1918 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:672 ____sys_sendmsg+0x6e6/0x810 net/socket.c:2352 ___sys_sendmsg+0x100/0x170 net/socket.c:2406 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2439 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x45ca29 Code: 0d b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fd46bc9dc78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000500d80 RCX: 000000000045ca29 RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000009 RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000009fd R14: 00000000004ccd59 R15: 00007fd46bc9e6d4 Allocated by task 3458: save_stack+0x1b/0x40 mm/kasan/common.c:49 set_track mm/kasan/common.c:57 [inline] __kasan_kmalloc mm/kasan/common.c:495 [inline] __kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:468 slab_post_alloc_hook mm/slab.h:586 [inline] slab_alloc mm/slab.c:3320 [inline] kmem_cache_alloc+0x11b/0x740 mm/slab.c:3484 getname_flags fs/namei.c:138 [inline] getname_flags+0xd2/0x5b0 fs/namei.c:128 getname fs/namei.c:209 [inline] __do_sys_unlink fs/namei.c:3920 [inline] __se_sys_unlink fs/namei.c:3918 [inline] __x64_sys_unlink+0x31/0x50 fs/namei.c:3918 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 Freed by task 3458: save_stack+0x1b/0x40 mm/kasan/common.c:49 set_track mm/kasan/common.c:57 [inline] kasan_set_free_info mm/kasan/common.c:317 [inline] __kasan_slab_free+0xf7/0x140 mm/kasan/common.c:456 __cache_free mm/slab.c:3426 [inline] kmem_cache_free+0x7f/0x320 mm/slab.c:3694 putname+0xe1/0x120 fs/namei.c:259 do_unlinkat+0x12b/0x680 fs/namei.c:3894 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 The buggy address belongs to the object at ffff8880856a4980 which belongs to the cache names_cache of size 4096 The buggy address is located 1712 bytes to the left of 4096-byte region [ffff8880856a4980, ffff8880856a5980) The buggy address belongs to the page: page:ffffea000215a900 refcount:1 mapcount:0 mapping:00000000c1cf7e7e index:0x0 head:ffffea000215a900 order:1 compound_mapcount:0 flags: 0xfffe0000010200(slab|head) raw: 00fffe0000010200 ffffea0001b24888 ffffea00013fc108 ffff8880aa1ec000 raw: 0000000000000000 ffff8880856a4980 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880856a4180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880856a4200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880856a4280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880856a4300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880856a4380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================