Date
July 10, 2025, 11:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.999645] ================================================================== [ 15.999731] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x154/0x2e0 [ 15.999788] Read of size 18446744073709551614 at addr fff00000c642ec04 by task kunit_try_catch/180 [ 15.999866] [ 15.999902] CPU: 1 UID: 0 PID: 180 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.000163] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.000214] Hardware name: linux,dummy-virt (DT) [ 16.000252] Call trace: [ 16.000275] show_stack+0x20/0x38 (C) [ 16.000326] dump_stack_lvl+0x8c/0xd0 [ 16.000383] print_report+0x118/0x608 [ 16.000437] kasan_report+0xdc/0x128 [ 16.000483] kasan_check_range+0x100/0x1a8 [ 16.000538] __asan_memmove+0x3c/0x98 [ 16.000582] kmalloc_memmove_negative_size+0x154/0x2e0 [ 16.000638] kunit_try_run_case+0x170/0x3f0 [ 16.000695] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.000747] kthread+0x328/0x630 [ 16.000795] ret_from_fork+0x10/0x20 [ 16.000842] [ 16.000869] Allocated by task 180: [ 16.000896] kasan_save_stack+0x3c/0x68 [ 16.000943] kasan_save_track+0x20/0x40 [ 16.000989] kasan_save_alloc_info+0x40/0x58 [ 16.001029] __kasan_kmalloc+0xd4/0xd8 [ 16.001064] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.001424] kmalloc_memmove_negative_size+0xb0/0x2e0 [ 16.001545] kunit_try_run_case+0x170/0x3f0 [ 16.001591] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.001645] kthread+0x328/0x630 [ 16.001694] ret_from_fork+0x10/0x20 [ 16.001740] [ 16.001832] The buggy address belongs to the object at fff00000c642ec00 [ 16.001832] which belongs to the cache kmalloc-64 of size 64 [ 16.001976] The buggy address is located 4 bytes inside of [ 16.001976] 64-byte region [fff00000c642ec00, fff00000c642ec40) [ 16.002037] [ 16.002058] The buggy address belongs to the physical page: [ 16.002102] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10642e [ 16.002154] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.002203] page_type: f5(slab) [ 16.002425] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 16.002529] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 16.002609] page dumped because: kasan: bad access detected [ 16.002643] [ 16.002661] Memory state around the buggy address: [ 16.002709] fff00000c642eb00: 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc fc [ 16.002886] fff00000c642eb80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 16.003058] >fff00000c642ec00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 16.003143] ^ [ 16.003219] fff00000c642ec80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.003286] fff00000c642ed00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.003360] ==================================================================
[ 12.881591] ================================================================== [ 12.882150] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x171/0x330 [ 12.882600] Read of size 18446744073709551614 at addr ffff888102d67c04 by task kunit_try_catch/197 [ 12.883243] [ 12.883517] CPU: 1 UID: 0 PID: 197 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.883575] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.883586] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.883606] Call Trace: [ 12.883618] <TASK> [ 12.883633] dump_stack_lvl+0x73/0xb0 [ 12.883664] print_report+0xd1/0x650 [ 12.883686] ? __virt_addr_valid+0x1db/0x2d0 [ 12.883722] ? kmalloc_memmove_negative_size+0x171/0x330 [ 12.883747] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.883770] ? kmalloc_memmove_negative_size+0x171/0x330 [ 12.883816] kasan_report+0x141/0x180 [ 12.883838] ? kmalloc_memmove_negative_size+0x171/0x330 [ 12.883868] kasan_check_range+0x10c/0x1c0 [ 12.883891] __asan_memmove+0x27/0x70 [ 12.883911] kmalloc_memmove_negative_size+0x171/0x330 [ 12.883936] ? __pfx_kmalloc_memmove_negative_size+0x10/0x10 [ 12.883963] ? __schedule+0x10cc/0x2b60 [ 12.883986] ? __pfx_read_tsc+0x10/0x10 [ 12.884007] ? ktime_get_ts64+0x86/0x230 [ 12.884031] kunit_try_run_case+0x1a5/0x480 [ 12.884055] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.884078] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.884101] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.884125] ? __kthread_parkme+0x82/0x180 [ 12.884145] ? preempt_count_sub+0x50/0x80 [ 12.884169] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.884199] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.884223] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.884248] kthread+0x337/0x6f0 [ 12.884267] ? trace_preempt_on+0x20/0xc0 [ 12.884290] ? __pfx_kthread+0x10/0x10 [ 12.884311] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.884332] ? calculate_sigpending+0x7b/0xa0 [ 12.884357] ? __pfx_kthread+0x10/0x10 [ 12.884390] ret_from_fork+0x116/0x1d0 [ 12.884409] ? __pfx_kthread+0x10/0x10 [ 12.884429] ret_from_fork_asm+0x1a/0x30 [ 12.884467] </TASK> [ 12.884478] [ 12.895572] Allocated by task 197: [ 12.896075] kasan_save_stack+0x45/0x70 [ 12.896342] kasan_save_track+0x18/0x40 [ 12.896795] kasan_save_alloc_info+0x3b/0x50 [ 12.896986] __kasan_kmalloc+0xb7/0xc0 [ 12.897123] __kmalloc_cache_noprof+0x189/0x420 [ 12.897416] kmalloc_memmove_negative_size+0xac/0x330 [ 12.897666] kunit_try_run_case+0x1a5/0x480 [ 12.898225] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.898508] kthread+0x337/0x6f0 [ 12.898890] ret_from_fork+0x116/0x1d0 [ 12.899102] ret_from_fork_asm+0x1a/0x30 [ 12.899326] [ 12.899436] The buggy address belongs to the object at ffff888102d67c00 [ 12.899436] which belongs to the cache kmalloc-64 of size 64 [ 12.900250] The buggy address is located 4 bytes inside of [ 12.900250] 64-byte region [ffff888102d67c00, ffff888102d67c40) [ 12.900869] [ 12.900989] The buggy address belongs to the physical page: [ 12.901281] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102d67 [ 12.901949] flags: 0x200000000000000(node=0|zone=2) [ 12.902194] page_type: f5(slab) [ 12.902347] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 12.902743] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 12.903085] page dumped because: kasan: bad access detected [ 12.903388] [ 12.903499] Memory state around the buggy address: [ 12.903763] ffff888102d67b00: 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc fc [ 12.904329] ffff888102d67b80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 12.904746] >ffff888102d67c00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 12.905066] ^ [ 12.905205] ffff888102d67c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.905752] ffff888102d67d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.906065] ==================================================================