==================================================================
BUG: KASAN: slab-out-of-bounds in tcp_probe_timer net/ipv4/tcp_timer.c:378 [inline]
BUG: KASAN: slab-out-of-bounds in tcp_write_timer_handler net/ipv4/tcp_timer.c:624 [inline]
BUG: KASAN: slab-out-of-bounds in tcp_write_timer_handler+0x998/0x9f0 net/ipv4/tcp_timer.c:594
Read of size 1 at addr ffff88807296e805 by task syz-executor.2/17982
CPU: 1 PID: 17982 Comm: syz-executor.2 Not tainted 6.0.0-syzkaller-05118-g833477fce7a1 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:317 [inline]
print_report.cold+0x2ba/0x6e9 mm/kasan/report.c:433
kasan_report+0xb1/0x1e0 mm/kasan/report.c:495
tcp_probe_timer net/ipv4/tcp_timer.c:378 [inline]
tcp_write_timer_handler net/ipv4/tcp_timer.c:624 [inline]
tcp_write_timer_handler+0x998/0x9f0 net/ipv4/tcp_timer.c:594
tcp_write_timer+0xa2/0x2b0 net/ipv4/tcp_timer.c:637
call_timer_fn+0x1a0/0x6b0 kernel/time/timer.c:1474
expire_timers kernel/time/timer.c:1519 [inline]
__run_timers.part.0+0x674/0xa80 kernel/time/timer.c:1790
__run_timers kernel/time/timer.c:1768 [inline]
run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1803
__do_softirq+0x1d0/0x9c8 kernel/softirq.c:571
invoke_softirq kernel/softirq.c:445 [inline]
__irq_exit_rcu+0x123/0x180 kernel/softirq.c:650
irq_exit_rcu+0x5/0x20 kernel/softirq.c:662
sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1107
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:lock_release+0x3f1/0x780 kernel/locking/lockdep.c:5674
Code: 7e 83 f8 01 0f 85 cb 01 00 00 9c 58 f6 c4 02 0f 85 b6 01 00 00 48 f7 04 24 00 02 00 00 74 01 fb 48 b8 00 00 00 00 00 fc ff df <48> 01 c5 48 c7 45 00 00 00 00 00 c7 45 08 00 00 00 00 48 8b 84 24
RSP: 0018:ffffc90003ebfbe0 EFLAGS: 00000206
RAX: dffffc0000000000 RBX: ffffffffffffffff RCX: ffffc90003ebfc30
RDX: 1ffff11007677d8d RSI: 0000000000000000 RDI: 0000000000000000
RBP: 1ffff920007d7f7e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000001 R14: ffff88803b3bec70 R15: ffff88803b3be200
__might_fault mm/memory.c:5583 [inline]
__might_fault+0x142/0x170 mm/memory.c:5576
do_recvmmsg+0x28b/0x6e0 net/socket.c:2843
__sys_recvmmsg net/socket.c:2916 [inline]
__do_sys_recvmmsg net/socket.c:2939 [inline]
__se_sys_recvmmsg net/socket.c:2932 [inline]
__x64_sys_recvmmsg+0x20b/0x260 net/socket.c:2932
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7feee368a5a9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007feee47d3168 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00007feee37ac050 RCX: 00007feee368a5a9
RDX: 0000000000010106 RSI: 00000000200000c0 RDI: 0000000000000003
RBP: 00007feee36e5580 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd15915abf R14: 00007feee47d3300 R15: 0000000000022000
Allocated by task 17673:
kasan_save_stack+0x1e/0x40 mm/kasan/common.c:38
kasan_set_track mm/kasan/common.c:45 [inline]
set_alloc_info mm/kasan/common.c:437 [inline]
__kasan_slab_alloc+0x85/0xb0 mm/kasan/common.c:470
kasan_slab_alloc include/linux/kasan.h:224 [inline]
slab_post_alloc_hook mm/slab.h:727 [inline]
slab_alloc mm/slab.c:3294 [inline]
__kmem_cache_alloc_lru mm/slab.c:3471 [inline]
kmem_cache_alloc+0x214/0x520 mm/slab.c:3491
mempool_alloc+0x154/0x360 mm/mempool.c:392
bvec_alloc+0x16b/0x200 block/bio.c:206
bio_alloc_bioset+0x421/0x790 block/bio.c:534
bio_alloc include/linux/bio.h:423 [inline]
io_submit_init_bio fs/ext4/page-io.c:400 [inline]
io_submit_add_bh fs/ext4/page-io.c:423 [inline]
ext4_bio_write_page+0xa10/0x29e0 fs/ext4/page-io.c:546
mpage_submit_page+0x11e/0x2a0 fs/ext4/inode.c:2114
mpage_process_page_bufs+0x67b/0x7b0 fs/ext4/inode.c:2228
mpage_prepare_extent_to_map+0xa05/0x1b50 fs/ext4/inode.c:2653
ext4_writepages+0xbd6/0x3b60 fs/ext4/inode.c:2781
do_writepages+0x1ab/0x690 mm/page-writeback.c:2468
filemap_fdatawrite_wbc mm/filemap.c:388 [inline]
filemap_fdatawrite_wbc+0x143/0x1b0 mm/filemap.c:378
__filemap_fdatawrite_range+0xb4/0xf0 mm/filemap.c:421
file_write_and_wait_range+0xb2/0x120 mm/filemap.c:773
ext4_sync_file+0x218/0xfd0 fs/ext4/fsync.c:151
vfs_fsync_range+0x13a/0x220 fs/sync.c:188
generic_write_sync include/linux/fs.h:2869 [inline]
generic_write_sync include/linux/fs.h:2866 [inline]
ext4_buffered_write_iter+0x379/0x460 fs/ext4/file.c:292
ext4_file_write_iter+0x8b8/0x1740 fs/ext4/file.c:694
call_write_iter include/linux/fs.h:2187 [inline]
do_iter_readv_writev+0x20b/0x3b0 fs/read_write.c:735
do_iter_write+0x182/0x700 fs/read_write.c:861
vfs_iter_write+0x70/0xa0 fs/read_write.c:902
iter_file_splice_write+0x718/0xc30 fs/splice.c:686
do_splice_from fs/splice.c:764 [inline]
direct_splice_actor+0x110/0x180 fs/splice.c:931
splice_direct_to_actor+0x331/0x8a0 fs/splice.c:886
do_splice_direct+0x1a7/0x270 fs/splice.c:974
do_sendfile+0xb19/0x1270 fs/read_write.c:1255
__do_sys_sendfile64 fs/read_write.c:1323 [inline]
__se_sys_sendfile64 fs/read_write.c:1309 [inline]
__x64_sys_sendfile64+0x1cc/0x210 fs/read_write.c:1309
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
Freed by task 2939:
kasan_save_stack+0x1e/0x40 mm/kasan/common.c:38
kasan_set_track+0x21/0x30 mm/kasan/common.c:45
kasan_set_free_info+0x20/0x30 mm/kasan/generic.c:370
____kasan_slab_free mm/kasan/common.c:367 [inline]
____kasan_slab_free+0x13d/0x1a0 mm/kasan/common.c:329
kasan_slab_free include/linux/kasan.h:200 [inline]
__cache_free mm/slab.c:3418 [inline]
kmem_cache_free.part.0+0x10f/0x2e0 mm/slab.c:3725
mempool_free+0xe3/0x3b0 mm/mempool.c:501
bvec_free+0xf1/0x110 block/bio.c:163
bio_free+0xaa/0x120 block/bio.c:232
bio_put+0x20e/0x3b0 block/bio.c:755
ext4_end_bio+0x29d/0x560 fs/ext4/page-io.c:367
bio_endio+0x5f9/0x780 block/bio.c:1564
req_bio_endio block/blk-mq.c:695 [inline]
blk_update_request+0x3fc/0x1300 block/blk-mq.c:825
scsi_end_request+0x7a/0x9a0 drivers/scsi/scsi_lib.c:541
scsi_io_completion+0x173/0x1f70 drivers/scsi/scsi_lib.c:971
scsi_complete+0x122/0x3b0 drivers/scsi/scsi_lib.c:1438
blk_complete_reqs+0xad/0xe0 block/blk-mq.c:1022
__do_softirq+0x1d0/0x9c8 kernel/softirq.c:571
The buggy address belongs to the object at ffff88807296ed40
which belongs to the cache biovec-max of size 4096
The buggy address is located 1339 bytes to the left of
4096-byte region [ffff88807296ed40, ffff88807296fd40)
The buggy address belongs to the physical page:
page:ffffea0001ca5b80 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7296e
head:ffffea0001ca5b80 order:1 compound_mapcount:0 compound_pincount:0
flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000010200 ffffea0000e8d188 ffffea0000e8d008 ffff888016b19300
raw: 0000000000000000 ffff88807296ed40 0000000100000001 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 1, migratetype Unmovable, gfp_mask 0x3d2000(__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_THISNODE), pid 17673, tgid 17670 (syz-executor.1), ts 1209738904638, free_ts 1209730982452
prep_new_page mm/page_alloc.c:2532 [inline]
get_page_from_freelist+0x109b/0x2ce0 mm/page_alloc.c:4283
__alloc_pages+0x1c7/0x510 mm/page_alloc.c:5549
__alloc_pages_node include/linux/gfp.h:243 [inline]
kmem_getpages mm/slab.c:1363 [inline]
cache_grow_begin+0x75/0x360 mm/slab.c:2569
cache_alloc_refill+0x27f/0x380 mm/slab.c:2942
____cache_alloc mm/slab.c:3018 [inline]
____cache_alloc mm/slab.c:3001 [inline]
__do_cache_alloc mm/slab.c:3246 [inline]
slab_alloc mm/slab.c:3287 [inline]
__kmem_cache_alloc_lru mm/slab.c:3471 [inline]
kmem_cache_alloc+0x433/0x520 mm/slab.c:3491
mempool_alloc+0x154/0x360 mm/mempool.c:392
bvec_alloc+0x16b/0x200 block/bio.c:206
bio_alloc_bioset+0x421/0x790 block/bio.c:534
bio_alloc include/linux/bio.h:423 [inline]
io_submit_init_bio fs/ext4/page-io.c:400 [inline]
io_submit_add_bh fs/ext4/page-io.c:423 [inline]
ext4_bio_write_page+0xa10/0x29e0 fs/ext4/page-io.c:546
mpage_submit_page+0x11e/0x2a0 fs/ext4/inode.c:2114
mpage_process_page_bufs+0x67b/0x7b0 fs/ext4/inode.c:2228
mpage_prepare_extent_to_map+0xa05/0x1b50 fs/ext4/inode.c:2653
ext4_writepages+0xbd6/0x3b60 fs/ext4/inode.c:2781
do_writepages+0x1ab/0x690 mm/page-writeback.c:2468
filemap_fdatawrite_wbc mm/filemap.c:388 [inline]
filemap_fdatawrite_wbc+0x143/0x1b0 mm/filemap.c:378
__filemap_fdatawrite_range+0xb4/0xf0 mm/filemap.c:421
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1449 [inline]
free_pcp_prepare+0x5e4/0xd20 mm/page_alloc.c:1499
free_unref_page_prepare mm/page_alloc.c:3380 [inline]
free_unref_page+0x19/0x4d0 mm/page_alloc.c:3476
slab_destroy mm/slab.c:1615 [inline]
slabs_destroy+0x89/0xc0 mm/slab.c:1635
cache_flusharray mm/slab.c:3389 [inline]
___cache_free+0x2a8/0x3d0 mm/slab.c:3452
qlink_free mm/kasan/quarantine.c:168 [inline]
qlist_free_all+0x4f/0x1b0 mm/kasan/quarantine.c:187
kasan_quarantine_reduce+0x180/0x200 mm/kasan/quarantine.c:294
__kasan_slab_alloc+0x97/0xb0 mm/kasan/common.c:447
kasan_slab_alloc include/linux/kasan.h:224 [inline]
slab_post_alloc_hook mm/slab.h:727 [inline]
slab_alloc mm/slab.c:3294 [inline]
__do_kmalloc mm/slab.c:3684 [inline]
__kmalloc+0x315/0x4a0 mm/slab.c:3695
kmalloc_array+0x42/0x70 include/linux/slab.h:640
kcalloc include/linux/slab.h:671 [inline]
iter_file_splice_write+0x13f/0xc30 fs/splice.c:625
do_splice_from fs/splice.c:764 [inline]
direct_splice_actor+0x110/0x180 fs/splice.c:931
splice_direct_to_actor+0x331/0x8a0 fs/splice.c:886
do_splice_direct+0x1a7/0x270 fs/splice.c:974
do_sendfile+0xb19/0x1270 fs/read_write.c:1255
__do_sys_sendfile64 fs/read_write.c:1323 [inline]
__se_sys_sendfile64 fs/read_write.c:1309 [inline]
__x64_sys_sendfile64+0x1cc/0x210 fs/read_write.c:1309
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
Memory state around the buggy address:
ffff88807296e700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88807296e780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88807296e800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff88807296e880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88807296e900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
----------------
Code disassembly (best guess):
0: 7e 83 jle 0xffffff85
2: f8 clc
3: 01 0f add %ecx,(%rdi)
5: 85 cb test %ecx,%ebx
7: 01 00 add %eax,(%rax)
9: 00 9c 58 f6 c4 02 0f add %bl,0xf02c4f6(%rax,%rbx,2)
10: 85 b6 01 00 00 48 test %esi,0x48000001(%rsi)
16: f7 04 24 00 02 00 00 testl $0x200,(%rsp)
1d: 74 01 je 0x20
1f: fb sti
20: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
27: fc ff df
* 2a: 48 01 c5 add %rax,%rbp <-- trapping instruction
2d: 48 c7 45 00 00 00 00 movq $0x0,0x0(%rbp)
34: 00
35: c7 45 08 00 00 00 00 movl $0x0,0x8(%rbp)
3c: 48 rex.W
3d: 8b .byte 0x8b
3e: 84 .byte 0x84
3f: 24 .byte 0x24