==================================================================
BUG: KASAN: use-after-free in tcp_probe_timer net/ipv4/tcp_timer.c:360 [inline]
BUG: KASAN: use-after-free in tcp_write_timer_handler+0x8c6/0x8d0 net/ipv4/tcp_timer.c:596
Read of size 4 at addr ffff88808d02e614 by task swapper/0/0
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.3.0-rc3+ #129
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+0x172/0x1f0 lib/dump_stack.c:113
print_address_description.cold+0xd4/0x306 mm/kasan/report.c:351
__kasan_report.cold+0x1b/0x36 mm/kasan/report.c:482
kasan_report+0x12/0x17 mm/kasan/common.c:612
__asan_report_load4_noabort+0x14/0x20 mm/kasan/generic_report.c:131
tcp_probe_timer net/ipv4/tcp_timer.c:360 [inline]
tcp_write_timer_handler+0x8c6/0x8d0 net/ipv4/tcp_timer.c:596
tcp_write_timer+0xa8/0x1e0 net/ipv4/tcp_timer.c:612
call_timer_fn+0x1ac/0x780 kernel/time/timer.c:1322
expire_timers kernel/time/timer.c:1366 [inline]
__run_timers kernel/time/timer.c:1685 [inline]
__run_timers kernel/time/timer.c:1653 [inline]
run_timer_softirq+0x697/0x17a0 kernel/time/timer.c:1698
__do_softirq+0x262/0x98c kernel/softirq.c:292
invoke_softirq kernel/softirq.c:373 [inline]
irq_exit+0x19b/0x1e0 kernel/softirq.c:413
exiting_irq arch/x86/include/asm/apic.h:537 [inline]
smp_apic_timer_interrupt+0x1a3/0x610 arch/x86/kernel/apic/apic.c:1095
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:830
RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline]
RIP: 0010:_raw_spin_unlock_irq+0x54/0x90 kernel/locking/spinlock.c:199
Code: c0 20 f3 d2 88 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 75 33 48 83 3d 85 4e 94 01 00 74 20 fb 66 0f 1f 44 00 00 01 00 00 00 e8 c2 1a 10 fa 65 8b 05 53 59 c3 78 85 c0 74 06 41
RSP: 0018:ffffffff88c07bf8 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13
RAX: 1ffffffff11a5e64 RBX: ffffffff88c7a1c0 RCX: 1ffffffff134b6ee
RDX: dffffc0000000000 RSI: ffffffff817805de RDI: ffffffff873ea478
RBP: ffffffff88c07c00 R08: ffffffff88c7a1c0 R09: ffffed1015d06ae1
R10: ffffed1015d06ae0 R11: ffff8880ae835703 R12: ffff8880ae835700
R13: ffff88805cd86180 R14: 0000000000000000 R15: 0000000000000001
finish_lock_switch kernel/sched/core.c:3004 [inline]
finish_task_switch+0x147/0x720 kernel/sched/core.c:3104
context_switch kernel/sched/core.c:3257 [inline]
__schedule+0x75d/0x1580 kernel/sched/core.c:3880
schedule_idle+0x58/0x90 kernel/sched/core.c:3972
do_idle+0x34d/0x760 kernel/sched/idle.c:287
cpu_startup_entry+0x1b/0x20 kernel/sched/idle.c:354
rest_init+0x245/0x37b init/main.c:451
arch_call_rest_init+0xe/0x1b
start_kernel+0x912/0x951 init/main.c:785
x86_64_start_reservations+0x29/0x2b arch/x86/kernel/head64.c:472
x86_64_start_kernel+0x77/0x7b arch/x86/kernel/head64.c:453
secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:241
Allocated by task 25781:
save_stack+0x23/0x90 mm/kasan/common.c:69
set_track mm/kasan/common.c:77 [inline]
__kasan_kmalloc mm/kasan/common.c:487 [inline]
__kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:460
kasan_slab_alloc+0xf/0x20 mm/kasan/common.c:495
slab_post_alloc_hook mm/slab.h:520 [inline]
slab_alloc mm/slab.c:3319 [inline]
kmem_cache_alloc+0x121/0x710 mm/slab.c:3483
bvec_alloc+0x14d/0x2f0 block/bio.c:222
bio_alloc_bioset+0x465/0x680 block/bio.c:497
bio_alloc include/linux/bio.h:400 [inline]
ext4_mpage_readpages+0xedf/0x1c70 fs/ext4/readpage.c:251
ext4_readpages+0xe7/0x130 fs/ext4/inode.c:3388
read_pages+0x108/0x540 mm/readahead.c:126
__do_page_cache_readahead+0x4e0/0x5d0 mm/readahead.c:212
ra_submit mm/internal.h:62 [inline]
ondemand_readahead+0x561/0xd40 mm/readahead.c:492
page_cache_async_readahead mm/readahead.c:574 [inline]
page_cache_async_readahead+0x43c/0x7c0 mm/readahead.c:547
generic_file_buffered_read mm/filemap.c:2079 [inline]
generic_file_read_iter+0x1239/0x1ce0 mm/filemap.c:2344
ext4_file_read_iter fs/ext4/file.c:77 [inline]
ext4_file_read_iter+0x1d6/0x420 fs/ext4/file.c:65
call_read_iter include/linux/fs.h:1864 [inline]
new_sync_read+0x4d7/0x800 fs/read_write.c:414
__vfs_read+0xe1/0x110 fs/read_write.c:427
integrity_kernel_read+0x157/0x210 security/integrity/iint.c:200
ima_calc_file_hash_tfm+0x2e3/0x3e0 security/integrity/ima/ima_crypto.c:352
ima_calc_file_shash security/integrity/ima/ima_crypto.c:381 [inline]
ima_calc_file_hash+0x1aa/0x570 security/integrity/ima/ima_crypto.c:446
ima_collect_measurement+0x50f/0x5c0 security/integrity/ima/ima_api.c:239
process_measurement+0xcc9/0x16a0 security/integrity/ima/ima_main.c:311
ima_file_check+0xc5/0x110 security/integrity/ima/ima_main.c:422
do_last fs/namei.c:3420 [inline]
path_openat+0x1142/0x4630 fs/namei.c:3533
do_filp_open+0x1a1/0x280 fs/namei.c:3563
do_sys_open+0x3fe/0x5d0 fs/open.c:1089
__do_sys_openat fs/open.c:1116 [inline]
__se_sys_openat fs/open.c:1110 [inline]
__x64_sys_openat+0x9d/0x100 fs/open.c:1110
do_syscall_64+0xfd/0x6a0 arch/x86/entry/common.c:296
entry_SYSCALL_64_after_hwframe+0x49/0xbe
Freed by task 25781:
save_stack+0x23/0x90 mm/kasan/common.c:69
set_track mm/kasan/common.c:77 [inline]
__kasan_slab_free+0x102/0x150 mm/kasan/common.c:449
kasan_slab_free+0xe/0x10 mm/kasan/common.c:457
__cache_free mm/slab.c:3425 [inline]
kmem_cache_free+0x86/0x320 mm/slab.c:3693
bvec_free+0x8a/0xc0 block/bio.c:165
bio_free+0x230/0x420 block/bio.c:247
bio_put+0xda/0x110 block/bio.c:549
mpage_end_io+0xa0/0x6b0 fs/ext4/readpage.c:96
bio_endio+0x611/0xaf0 block/bio.c:1830
req_bio_endio block/blk-core.c:239 [inline]
blk_update_request+0x32e/0xc10 block/blk-core.c:1424
scsi_end_request+0x7f/0x840 drivers/scsi/scsi_lib.c:579
scsi_io_completion+0x20a/0x1420 drivers/scsi/scsi_lib.c:963
scsi_finish_command+0x3b7/0x670 drivers/scsi/scsi.c:228
scsi_softirq_done+0x326/0x3b0 drivers/scsi/scsi_lib.c:1465
blk_done_softirq+0x2fe/0x4d0 block/blk-softirq.c:37
__do_softirq+0x262/0x98c kernel/softirq.c:292
The buggy address belongs to the object at ffff88808d02e4c0
which belongs to the cache biovec-64 of size 1024
The buggy address is located 340 bytes inside of
1024-byte region [ffff88808d02e4c0, ffff88808d02e8c0)
The buggy address belongs to the page:
page:ffffea0002340b80 refcount:1 mapcount:0 mapping:ffff8880a99f2380 index:0x0 compound_mapcount: 0
flags: 0x1fffc0000010200(slab|head)
raw: 01fffc0000010200 ffff8880a7868448 ffffea0002a1b288 ffff8880a99f2380
raw: 0000000000000000 ffff88808d02e040 0000000100000007 0000000000000000
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff88808d02e500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88808d02e580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff88808d02e600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88808d02e680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88808d02e700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================