Date
July 9, 2025, 2:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.724989] ================================================================== [ 17.725058] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x154/0x2e0 [ 17.725138] Read of size 64 at addr fff00000c7708904 by task kunit_try_catch/182 [ 17.725191] [ 17.725230] CPU: 0 UID: 0 PID: 182 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc5 #1 PREEMPT [ 17.725545] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 17.725769] Hardware name: linux,dummy-virt (DT) [ 17.725806] Call trace: [ 17.725832] show_stack+0x20/0x38 (C) [ 17.725924] dump_stack_lvl+0x8c/0xd0 [ 17.725978] print_report+0x118/0x608 [ 17.726026] kasan_report+0xdc/0x128 [ 17.726122] kasan_check_range+0x100/0x1a8 [ 17.726179] __asan_memmove+0x3c/0x98 [ 17.726242] kmalloc_memmove_invalid_size+0x154/0x2e0 [ 17.726294] kunit_try_run_case+0x170/0x3f0 [ 17.726782] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.726849] kthread+0x328/0x630 [ 17.726894] ret_from_fork+0x10/0x20 [ 17.726947] [ 17.726966] Allocated by task 182: [ 17.727000] kasan_save_stack+0x3c/0x68 [ 17.727044] kasan_save_track+0x20/0x40 [ 17.727098] kasan_save_alloc_info+0x40/0x58 [ 17.727140] __kasan_kmalloc+0xd4/0xd8 [ 17.727178] __kmalloc_cache_noprof+0x16c/0x3c0 [ 17.727220] kmalloc_memmove_invalid_size+0xb0/0x2e0 [ 17.727262] kunit_try_run_case+0x170/0x3f0 [ 17.727303] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.727349] kthread+0x328/0x630 [ 17.727381] ret_from_fork+0x10/0x20 [ 17.727419] [ 17.727439] The buggy address belongs to the object at fff00000c7708900 [ 17.727439] which belongs to the cache kmalloc-64 of size 64 [ 17.727499] The buggy address is located 4 bytes inside of [ 17.727499] allocated 64-byte region [fff00000c7708900, fff00000c7708940) [ 17.727563] [ 17.727582] The buggy address belongs to the physical page: [ 17.727615] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107708 [ 17.727671] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.727722] page_type: f5(slab) [ 17.727766] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 17.727821] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 17.727865] page dumped because: kasan: bad access detected [ 17.727898] [ 17.727918] Memory state around the buggy address: [ 17.727951] fff00000c7708800: 00 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc [ 17.727996] fff00000c7708880: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 17.728047] >fff00000c7708900: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 17.728094] ^ [ 17.728130] fff00000c7708980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.728173] fff00000c7708a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.728212] ==================================================================
[ 12.988855] ================================================================== [ 12.989999] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x16f/0x330 [ 12.991086] Read of size 64 at addr ffff888102c36a84 by task kunit_try_catch/199 [ 12.991333] [ 12.991438] CPU: 1 UID: 0 PID: 199 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.991489] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.991501] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.991526] Call Trace: [ 12.991542] <TASK> [ 12.991565] dump_stack_lvl+0x73/0xb0 [ 12.991614] print_report+0xd1/0x650 [ 12.991637] ? __virt_addr_valid+0x1db/0x2d0 [ 12.991663] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 12.991687] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.991710] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 12.991735] kasan_report+0x141/0x180 [ 12.991756] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 12.991792] kasan_check_range+0x10c/0x1c0 [ 12.991815] __asan_memmove+0x27/0x70 [ 12.991836] kmalloc_memmove_invalid_size+0x16f/0x330 [ 12.991860] ? __pfx_kmalloc_memmove_invalid_size+0x10/0x10 [ 12.991886] ? __schedule+0x10cc/0x2b60 [ 12.991908] ? __pfx_read_tsc+0x10/0x10 [ 12.991931] ? ktime_get_ts64+0x86/0x230 [ 12.991957] kunit_try_run_case+0x1a5/0x480 [ 12.991984] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.992006] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.992030] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.992054] ? __kthread_parkme+0x82/0x180 [ 12.992076] ? preempt_count_sub+0x50/0x80 [ 12.992100] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.992124] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.992148] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.992173] kthread+0x337/0x6f0 [ 12.992191] ? trace_preempt_on+0x20/0xc0 [ 12.992215] ? __pfx_kthread+0x10/0x10 [ 12.992235] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.992256] ? calculate_sigpending+0x7b/0xa0 [ 12.992281] ? __pfx_kthread+0x10/0x10 [ 12.992301] ret_from_fork+0x116/0x1d0 [ 12.992319] ? __pfx_kthread+0x10/0x10 [ 12.992339] ret_from_fork_asm+0x1a/0x30 [ 12.992372] </TASK> [ 12.992383] [ 13.007329] Allocated by task 199: [ 13.007485] kasan_save_stack+0x45/0x70 [ 13.007659] kasan_save_track+0x18/0x40 [ 13.007853] kasan_save_alloc_info+0x3b/0x50 [ 13.008321] __kasan_kmalloc+0xb7/0xc0 [ 13.008698] __kmalloc_cache_noprof+0x189/0x420 [ 13.009298] kmalloc_memmove_invalid_size+0xac/0x330 [ 13.009798] kunit_try_run_case+0x1a5/0x480 [ 13.010343] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.010708] kthread+0x337/0x6f0 [ 13.010991] ret_from_fork+0x116/0x1d0 [ 13.011438] ret_from_fork_asm+0x1a/0x30 [ 13.011666] [ 13.011739] The buggy address belongs to the object at ffff888102c36a80 [ 13.011739] which belongs to the cache kmalloc-64 of size 64 [ 13.012811] The buggy address is located 4 bytes inside of [ 13.012811] allocated 64-byte region [ffff888102c36a80, ffff888102c36ac0) [ 13.013585] [ 13.013681] The buggy address belongs to the physical page: [ 13.014093] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102c36 [ 13.014795] flags: 0x200000000000000(node=0|zone=2) [ 13.015317] page_type: f5(slab) [ 13.015755] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 13.016390] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 13.016626] page dumped because: kasan: bad access detected [ 13.016802] [ 13.017145] Memory state around the buggy address: [ 13.017614] ffff888102c36980: 00 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc [ 13.018485] ffff888102c36a00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 13.019234] >ffff888102c36a80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 13.019609] ^ [ 13.019969] ffff888102c36b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.020281] ffff888102c36b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.020558] ==================================================================