Date
July 5, 2025, 11:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.125739] ================================================================== [ 18.125936] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x154/0x2e0 [ 18.126004] Read of size 64 at addr fff00000c65bec04 by task kunit_try_catch/182 [ 18.126074] [ 18.126482] CPU: 0 UID: 0 PID: 182 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 18.126573] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.126600] Hardware name: linux,dummy-virt (DT) [ 18.126680] Call trace: [ 18.126705] show_stack+0x20/0x38 (C) [ 18.126772] dump_stack_lvl+0x8c/0xd0 [ 18.126903] print_report+0x118/0x608 [ 18.126966] kasan_report+0xdc/0x128 [ 18.127016] kasan_check_range+0x100/0x1a8 [ 18.127369] __asan_memmove+0x3c/0x98 [ 18.127440] kmalloc_memmove_invalid_size+0x154/0x2e0 [ 18.127511] kunit_try_run_case+0x170/0x3f0 [ 18.127633] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.127738] kthread+0x328/0x630 [ 18.127790] ret_from_fork+0x10/0x20 [ 18.127838] [ 18.127993] Allocated by task 182: [ 18.128044] kasan_save_stack+0x3c/0x68 [ 18.128090] kasan_save_track+0x20/0x40 [ 18.128301] kasan_save_alloc_info+0x40/0x58 [ 18.128376] __kasan_kmalloc+0xd4/0xd8 [ 18.128547] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.128682] kmalloc_memmove_invalid_size+0xb0/0x2e0 [ 18.128770] kunit_try_run_case+0x170/0x3f0 [ 18.128903] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.128948] kthread+0x328/0x630 [ 18.128987] ret_from_fork+0x10/0x20 [ 18.129023] [ 18.129043] The buggy address belongs to the object at fff00000c65bec00 [ 18.129043] which belongs to the cache kmalloc-64 of size 64 [ 18.129161] The buggy address is located 4 bytes inside of [ 18.129161] allocated 64-byte region [fff00000c65bec00, fff00000c65bec40) [ 18.129234] [ 18.129268] The buggy address belongs to the physical page: [ 18.129308] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065be [ 18.129359] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.129408] page_type: f5(slab) [ 18.129454] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 18.129506] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 18.129545] page dumped because: kasan: bad access detected [ 18.129576] [ 18.129594] Memory state around the buggy address: [ 18.129635] fff00000c65beb00: 00 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc [ 18.129686] fff00000c65beb80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 18.129727] >fff00000c65bec00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 18.129765] ^ [ 18.129808] fff00000c65bec80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.129851] fff00000c65bed00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.129898] ==================================================================
[ 13.803607] ================================================================== [ 13.804650] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x16f/0x330 [ 13.805768] Read of size 64 at addr ffff8881029fb184 by task kunit_try_catch/200 [ 13.806541] [ 13.806665] CPU: 1 UID: 0 PID: 200 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 13.806733] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.806753] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.806801] Call Trace: [ 13.806818] <TASK> [ 13.806839] dump_stack_lvl+0x73/0xb0 [ 13.806883] print_report+0xd1/0x650 [ 13.806910] ? __virt_addr_valid+0x1db/0x2d0 [ 13.806940] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 13.806970] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.806998] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 13.807029] kasan_report+0x141/0x180 [ 13.807054] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 13.807101] kasan_check_range+0x10c/0x1c0 [ 13.807129] __asan_memmove+0x27/0x70 [ 13.807152] kmalloc_memmove_invalid_size+0x16f/0x330 [ 13.807181] ? __pfx_kmalloc_memmove_invalid_size+0x10/0x10 [ 13.807212] ? __schedule+0x10cc/0x2b60 [ 13.807239] ? __pfx_read_tsc+0x10/0x10 [ 13.807380] ? ktime_get_ts64+0x86/0x230 [ 13.807416] kunit_try_run_case+0x1a5/0x480 [ 13.807449] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.807476] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.807506] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.807533] ? __kthread_parkme+0x82/0x180 [ 13.807560] ? preempt_count_sub+0x50/0x80 [ 13.807589] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.807617] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.807645] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.807673] kthread+0x337/0x6f0 [ 13.807696] ? trace_preempt_on+0x20/0xc0 [ 13.807723] ? __pfx_kthread+0x10/0x10 [ 13.807747] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.807773] ? calculate_sigpending+0x7b/0xa0 [ 13.807813] ? __pfx_kthread+0x10/0x10 [ 13.807838] ret_from_fork+0x116/0x1d0 [ 13.807860] ? __pfx_kthread+0x10/0x10 [ 13.807884] ret_from_fork_asm+0x1a/0x30 [ 13.807921] </TASK> [ 13.807935] [ 13.826202] Allocated by task 200: [ 13.826644] kasan_save_stack+0x45/0x70 [ 13.827103] kasan_save_track+0x18/0x40 [ 13.827458] kasan_save_alloc_info+0x3b/0x50 [ 13.827716] __kasan_kmalloc+0xb7/0xc0 [ 13.828226] __kmalloc_cache_noprof+0x189/0x420 [ 13.828562] kmalloc_memmove_invalid_size+0xac/0x330 [ 13.828759] kunit_try_run_case+0x1a5/0x480 [ 13.828946] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.829241] kthread+0x337/0x6f0 [ 13.829712] ret_from_fork+0x116/0x1d0 [ 13.830208] ret_from_fork_asm+0x1a/0x30 [ 13.830477] [ 13.830690] The buggy address belongs to the object at ffff8881029fb180 [ 13.830690] which belongs to the cache kmalloc-64 of size 64 [ 13.831335] The buggy address is located 4 bytes inside of [ 13.831335] allocated 64-byte region [ffff8881029fb180, ffff8881029fb1c0) [ 13.831750] [ 13.831855] The buggy address belongs to the physical page: [ 13.832156] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029fb [ 13.832569] flags: 0x200000000000000(node=0|zone=2) [ 13.832832] page_type: f5(slab) [ 13.833056] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 13.833420] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 13.833897] page dumped because: kasan: bad access detected [ 13.834155] [ 13.834253] Memory state around the buggy address: [ 13.834650] ffff8881029fb080: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 13.834942] ffff8881029fb100: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 13.835320] >ffff8881029fb180: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 13.835641] ^ [ 13.835949] ffff8881029fb200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.836210] ffff8881029fb280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.836670] ==================================================================