Date
July 9, 2025, 1:08 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.424336] ================================================================== [ 29.424405] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x154/0x2e0 [ 29.424469] Read of size 18446744073709551614 at addr fff00000c598c784 by task kunit_try_catch/212 [ 29.424703] [ 29.424743] CPU: 0 UID: 0 PID: 212 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250709 #1 PREEMPT [ 29.424917] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.424951] Hardware name: linux,dummy-virt (DT) [ 29.424982] Call trace: [ 29.425005] show_stack+0x20/0x38 (C) [ 29.425068] dump_stack_lvl+0x8c/0xd0 [ 29.425141] print_report+0x118/0x5d0 [ 29.425185] kasan_report+0xdc/0x128 [ 29.425227] kasan_check_range+0x100/0x1a8 [ 29.425272] __asan_memmove+0x3c/0x98 [ 29.425316] kmalloc_memmove_negative_size+0x154/0x2e0 [ 29.425434] kunit_try_run_case+0x170/0x3f0 [ 29.425486] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.425539] kthread+0x328/0x630 [ 29.425595] ret_from_fork+0x10/0x20 [ 29.425641] [ 29.425659] Allocated by task 212: [ 29.425689] kasan_save_stack+0x3c/0x68 [ 29.425729] kasan_save_track+0x20/0x40 [ 29.425901] kasan_save_alloc_info+0x40/0x58 [ 29.426143] __kasan_kmalloc+0xd4/0xd8 [ 29.426250] __kmalloc_cache_noprof+0x16c/0x3c0 [ 29.426294] kmalloc_memmove_negative_size+0xb0/0x2e0 [ 29.426362] kunit_try_run_case+0x170/0x3f0 [ 29.426401] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.426470] kthread+0x328/0x630 [ 29.426505] ret_from_fork+0x10/0x20 [ 29.426557] [ 29.426618] The buggy address belongs to the object at fff00000c598c780 [ 29.426618] which belongs to the cache kmalloc-64 of size 64 [ 29.426715] The buggy address is located 4 bytes inside of [ 29.426715] 64-byte region [fff00000c598c780, fff00000c598c7c0) [ 29.426774] [ 29.426803] The buggy address belongs to the physical page: [ 29.426852] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10598c [ 29.426903] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 29.426947] page_type: f5(slab) [ 29.426986] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 29.427034] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 29.427083] page dumped because: kasan: bad access detected [ 29.427123] [ 29.427142] Memory state around the buggy address: [ 29.427174] fff00000c598c680: 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc fc [ 29.427216] fff00000c598c700: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 29.427257] >fff00000c598c780: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 29.427301] ^ [ 29.427327] fff00000c598c800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.427368] fff00000c598c880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.427415] ==================================================================
[ 24.282189] ================================================================== [ 24.282682] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x171/0x330 [ 24.283145] Read of size 18446744073709551614 at addr ffff8881058cb384 by task kunit_try_catch/230 [ 24.283629] [ 24.283759] CPU: 0 UID: 0 PID: 230 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc5-next-20250709 #1 PREEMPT(voluntary) [ 24.283827] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 24.283841] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.283874] Call Trace: [ 24.283888] <TASK> [ 24.283908] dump_stack_lvl+0x73/0xb0 [ 24.283940] print_report+0xd1/0x610 [ 24.283963] ? __virt_addr_valid+0x1db/0x2d0 [ 24.283987] ? kmalloc_memmove_negative_size+0x171/0x330 [ 24.284052] ? kasan_complete_mode_report_info+0x2a/0x200 [ 24.284080] ? kmalloc_memmove_negative_size+0x171/0x330 [ 24.284153] kasan_report+0x141/0x180 [ 24.284179] ? kmalloc_memmove_negative_size+0x171/0x330 [ 24.284208] kasan_check_range+0x10c/0x1c0 [ 24.284231] __asan_memmove+0x27/0x70 [ 24.284254] kmalloc_memmove_negative_size+0x171/0x330 [ 24.284289] ? __pfx_kmalloc_memmove_negative_size+0x10/0x10 [ 24.284315] ? __pfx_kmalloc_memmove_negative_size+0x10/0x10 [ 24.284354] kunit_try_run_case+0x1a5/0x480 [ 24.284378] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.284398] ? _raw_spin_lock_irqsave+0xf9/0x100 [ 24.284423] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.284455] ? __kthread_parkme+0x82/0x180 [ 24.284476] ? preempt_count_sub+0x50/0x80 [ 24.284500] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.284531] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.284556] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.284580] kthread+0x337/0x6f0 [ 24.284600] ? trace_preempt_on+0x20/0xc0 [ 24.284624] ? __pfx_kthread+0x10/0x10 [ 24.284644] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.284665] ? calculate_sigpending+0x7b/0xa0 [ 24.284689] ? __pfx_kthread+0x10/0x10 [ 24.284721] ret_from_fork+0x116/0x1d0 [ 24.284741] ? __pfx_kthread+0x10/0x10 [ 24.284762] ret_from_fork_asm+0x1a/0x30 [ 24.284803] </TASK> [ 24.284815] [ 24.292568] Allocated by task 230: [ 24.292788] kasan_save_stack+0x45/0x70 [ 24.292960] kasan_save_track+0x18/0x40 [ 24.293158] kasan_save_alloc_info+0x3b/0x50 [ 24.293568] __kasan_kmalloc+0xb7/0xc0 [ 24.293800] __kmalloc_cache_noprof+0x189/0x420 [ 24.294026] kmalloc_memmove_negative_size+0xac/0x330 [ 24.294345] kunit_try_run_case+0x1a5/0x480 [ 24.294576] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.294837] kthread+0x337/0x6f0 [ 24.295057] ret_from_fork+0x116/0x1d0 [ 24.295190] ret_from_fork_asm+0x1a/0x30 [ 24.295323] [ 24.295390] The buggy address belongs to the object at ffff8881058cb380 [ 24.295390] which belongs to the cache kmalloc-64 of size 64 [ 24.295948] The buggy address is located 4 bytes inside of [ 24.295948] 64-byte region [ffff8881058cb380, ffff8881058cb3c0) [ 24.296526] [ 24.296594] The buggy address belongs to the physical page: [ 24.296770] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1058cb [ 24.297330] flags: 0x200000000000000(node=0|zone=2) [ 24.297600] page_type: f5(slab) [ 24.297773] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 24.298202] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 24.298490] page dumped because: kasan: bad access detected [ 24.298767] [ 24.298842] Memory state around the buggy address: [ 24.299179] ffff8881058cb280: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 24.299459] ffff8881058cb300: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 24.299754] >ffff8881058cb380: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 24.300268] ^ [ 24.300452] ffff8881058cb400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.300790] ffff8881058cb480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.301154] ==================================================================