Date
June 26, 2025, 11:12 a.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 |
[ 28.861701] ================================================================== [ 28.871684] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x154/0x2e0 [ 28.879583] Read of size 64 at addr ffff000800d61584 by task kunit_try_catch/231 [ 28.886960] [ 28.888447] CPU: 7 UID: 0 PID: 231 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc3 #1 PREEMPT [ 28.888504] Tainted: [B]=BAD_PAGE, [N]=TEST [ 28.888522] Hardware name: WinLink E850-96 board (DT) [ 28.888545] Call trace: [ 28.888559] show_stack+0x20/0x38 (C) [ 28.888599] dump_stack_lvl+0x8c/0xd0 [ 28.888637] print_report+0x118/0x608 [ 28.888669] kasan_report+0xdc/0x128 [ 28.888698] kasan_check_range+0x100/0x1a8 [ 28.888732] __asan_memmove+0x3c/0x98 [ 28.888765] kmalloc_memmove_invalid_size+0x154/0x2e0 [ 28.888802] kunit_try_run_case+0x170/0x3f0 [ 28.888840] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 28.888880] kthread+0x328/0x630 [ 28.888916] ret_from_fork+0x10/0x20 [ 28.888949] [ 28.955100] Allocated by task 231: [ 28.958489] kasan_save_stack+0x3c/0x68 [ 28.962304] kasan_save_track+0x20/0x40 [ 28.966123] kasan_save_alloc_info+0x40/0x58 [ 28.970377] __kasan_kmalloc+0xd4/0xd8 [ 28.974109] __kmalloc_cache_noprof+0x16c/0x3c0 [ 28.978623] kmalloc_memmove_invalid_size+0xb0/0x2e0 [ 28.983571] kunit_try_run_case+0x170/0x3f0 [ 28.987737] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 28.993206] kthread+0x328/0x630 [ 28.996418] ret_from_fork+0x10/0x20 [ 28.999977] [ 29.001454] The buggy address belongs to the object at ffff000800d61580 [ 29.001454] which belongs to the cache kmalloc-64 of size 64 [ 29.013782] The buggy address is located 4 bytes inside of [ 29.013782] allocated 64-byte region [ffff000800d61580, ffff000800d615c0) [ 29.026105] [ 29.027585] The buggy address belongs to the physical page: [ 29.033140] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x880d61 [ 29.041124] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 29.047635] page_type: f5(slab) [ 29.050772] raw: 0bfffe0000000000 ffff0008000028c0 dead000000000122 0000000000000000 [ 29.058490] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 29.066208] page dumped because: kasan: bad access detected [ 29.071765] [ 29.073241] Memory state around the buggy address: [ 29.078020] ffff000800d61480: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 29.085223] ffff000800d61500: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 29.092428] >ffff000800d61580: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 29.099628] ^ [ 29.104927] ffff000800d61600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.112132] ffff000800d61680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.119333] ==================================================================
[ 18.093784] ================================================================== [ 18.094137] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x154/0x2e0 [ 18.094366] Read of size 64 at addr fff00000c6759f84 by task kunit_try_catch/184 [ 18.094419] [ 18.094453] CPU: 0 UID: 0 PID: 184 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc3 #1 PREEMPT [ 18.094585] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.094612] Hardware name: linux,dummy-virt (DT) [ 18.094643] Call trace: [ 18.094907] show_stack+0x20/0x38 (C) [ 18.095041] dump_stack_lvl+0x8c/0xd0 [ 18.095094] print_report+0x118/0x608 [ 18.095138] kasan_report+0xdc/0x128 [ 18.095274] kasan_check_range+0x100/0x1a8 [ 18.095361] __asan_memmove+0x3c/0x98 [ 18.095422] kmalloc_memmove_invalid_size+0x154/0x2e0 [ 18.095673] kunit_try_run_case+0x170/0x3f0 [ 18.095726] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.095840] kthread+0x328/0x630 [ 18.096494] ret_from_fork+0x10/0x20 [ 18.096581] [ 18.096604] Allocated by task 184: [ 18.096947] kasan_save_stack+0x3c/0x68 [ 18.097024] kasan_save_track+0x20/0x40 [ 18.097090] kasan_save_alloc_info+0x40/0x58 [ 18.097289] __kasan_kmalloc+0xd4/0xd8 [ 18.097538] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.097610] kmalloc_memmove_invalid_size+0xb0/0x2e0 [ 18.098021] kunit_try_run_case+0x170/0x3f0 [ 18.098102] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.098190] kthread+0x328/0x630 [ 18.098409] ret_from_fork+0x10/0x20 [ 18.098492] [ 18.098628] The buggy address belongs to the object at fff00000c6759f80 [ 18.098628] which belongs to the cache kmalloc-64 of size 64 [ 18.098745] The buggy address is located 4 bytes inside of [ 18.098745] allocated 64-byte region [fff00000c6759f80, fff00000c6759fc0) [ 18.099157] [ 18.099211] The buggy address belongs to the physical page: [ 18.099395] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106759 [ 18.099545] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.099658] page_type: f5(slab) [ 18.099706] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 18.100092] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 18.100177] page dumped because: kasan: bad access detected [ 18.100342] [ 18.100384] Memory state around the buggy address: [ 18.100435] fff00000c6759e80: 00 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc [ 18.100536] fff00000c6759f00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 18.100583] >fff00000c6759f80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 18.100924] ^ [ 18.100990] fff00000c675a000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.101108] fff00000c675a080: fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.101196] ==================================================================
[ 11.125956] ================================================================== [ 11.127437] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x16f/0x330 [ 11.128493] Read of size 64 at addr ffff8881029fb004 by task kunit_try_catch/201 [ 11.129644] [ 11.129841] CPU: 0 UID: 0 PID: 201 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc3 #1 PREEMPT(voluntary) [ 11.129895] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.129908] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.129943] Call Trace: [ 11.129958] <TASK> [ 11.129980] dump_stack_lvl+0x73/0xb0 [ 11.130014] print_report+0xd1/0x650 [ 11.130039] ? __virt_addr_valid+0x1db/0x2d0 [ 11.130063] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 11.130084] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.130113] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 11.130134] kasan_report+0x141/0x180 [ 11.130156] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 11.130351] kasan_check_range+0x10c/0x1c0 [ 11.130380] __asan_memmove+0x27/0x70 [ 11.130401] kmalloc_memmove_invalid_size+0x16f/0x330 [ 11.130422] ? __pfx_kmalloc_memmove_invalid_size+0x10/0x10 [ 11.130443] ? __schedule+0x10cc/0x2b60 [ 11.130468] ? __pfx_read_tsc+0x10/0x10 [ 11.130489] ? ktime_get_ts64+0x86/0x230 [ 11.130516] kunit_try_run_case+0x1a5/0x480 [ 11.130543] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.130564] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.130589] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.130611] ? __kthread_parkme+0x82/0x180 [ 11.130634] ? preempt_count_sub+0x50/0x80 [ 11.130660] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.130685] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.130708] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.130730] kthread+0x337/0x6f0 [ 11.130747] ? trace_preempt_on+0x20/0xc0 [ 11.130771] ? __pfx_kthread+0x10/0x10 [ 11.130789] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.130810] ? calculate_sigpending+0x7b/0xa0 [ 11.130832] ? __pfx_kthread+0x10/0x10 [ 11.130849] ret_from_fork+0x41/0x80 [ 11.130870] ? __pfx_kthread+0x10/0x10 [ 11.130887] ret_from_fork_asm+0x1a/0x30 [ 11.130929] </TASK> [ 11.130942] [ 11.142744] Allocated by task 201: [ 11.143077] kasan_save_stack+0x45/0x70 [ 11.143458] kasan_save_track+0x18/0x40 [ 11.143824] kasan_save_alloc_info+0x3b/0x50 [ 11.144042] __kasan_kmalloc+0xb7/0xc0 [ 11.144221] __kmalloc_cache_noprof+0x189/0x420 [ 11.144439] kmalloc_memmove_invalid_size+0xac/0x330 [ 11.145056] kunit_try_run_case+0x1a5/0x480 [ 11.145374] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.145963] kthread+0x337/0x6f0 [ 11.146153] ret_from_fork+0x41/0x80 [ 11.146322] ret_from_fork_asm+0x1a/0x30 [ 11.146497] [ 11.146869] The buggy address belongs to the object at ffff8881029fb000 [ 11.146869] which belongs to the cache kmalloc-64 of size 64 [ 11.147602] The buggy address is located 4 bytes inside of [ 11.147602] allocated 64-byte region [ffff8881029fb000, ffff8881029fb040) [ 11.148188] [ 11.148291] The buggy address belongs to the physical page: [ 11.148525] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029fb [ 11.149316] flags: 0x200000000000000(node=0|zone=2) [ 11.149851] page_type: f5(slab) [ 11.150161] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 11.150706] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 11.151323] page dumped because: kasan: bad access detected [ 11.151568] [ 11.151656] Memory state around the buggy address: [ 11.152261] ffff8881029faf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.152570] ffff8881029faf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.152911] >ffff8881029fb000: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 11.153194] ^ [ 11.153419] ffff8881029fb080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.154259] ffff8881029fb100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.154683] ==================================================================