Date
June 20, 2025, 12:38 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 32.116100] ================================================================== [ 32.116749] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x154/0x2e0 [ 32.117155] Read of size 18446744073709551614 at addr fff00000c596c704 by task kunit_try_catch/191 [ 32.117357] [ 32.117443] CPU: 1 UID: 0 PID: 191 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250620 #1 PREEMPT [ 32.118044] Tainted: [B]=BAD_PAGE, [N]=TEST [ 32.118184] Hardware name: linux,dummy-virt (DT) [ 32.118265] Call trace: [ 32.118770] show_stack+0x20/0x38 (C) [ 32.118996] dump_stack_lvl+0x8c/0xd0 [ 32.119180] print_report+0x118/0x608 [ 32.119361] kasan_report+0xdc/0x128 [ 32.119488] kasan_check_range+0x100/0x1a8 [ 32.120075] __asan_memmove+0x3c/0x98 [ 32.120198] kmalloc_memmove_negative_size+0x154/0x2e0 [ 32.120327] kunit_try_run_case+0x170/0x3f0 [ 32.120557] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.120768] kthread+0x328/0x630 [ 32.121096] ret_from_fork+0x10/0x20 [ 32.121467] [ 32.121529] Allocated by task 191: [ 32.121666] kasan_save_stack+0x3c/0x68 [ 32.121875] kasan_save_track+0x20/0x40 [ 32.121988] kasan_save_alloc_info+0x40/0x58 [ 32.122163] __kasan_kmalloc+0xd4/0xd8 [ 32.122335] __kmalloc_cache_noprof+0x16c/0x3c0 [ 32.122435] kmalloc_memmove_negative_size+0xb0/0x2e0 [ 32.122543] kunit_try_run_case+0x170/0x3f0 [ 32.122654] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.122769] kthread+0x328/0x630 [ 32.123423] ret_from_fork+0x10/0x20 [ 32.124149] [ 32.124363] The buggy address belongs to the object at fff00000c596c700 [ 32.124363] which belongs to the cache kmalloc-64 of size 64 [ 32.125201] The buggy address is located 4 bytes inside of [ 32.125201] 64-byte region [fff00000c596c700, fff00000c596c740) [ 32.125380] [ 32.125564] The buggy address belongs to the physical page: [ 32.125703] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10596c [ 32.125848] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 32.126073] page_type: f5(slab) [ 32.126328] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 32.126846] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 32.127147] page dumped because: kasan: bad access detected [ 32.127496] [ 32.127668] Memory state around the buggy address: [ 32.127798] fff00000c596c600: 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc fc [ 32.128298] fff00000c596c680: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 32.128746] >fff00000c596c700: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 32.129013] ^ [ 32.129292] fff00000c596c780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.129671] fff00000c596c800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.130297] ==================================================================
[ 25.792544] ================================================================== [ 25.793108] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x171/0x330 [ 25.793650] Read of size 18446744073709551614 at addr ffff888102323f04 by task kunit_try_catch/209 [ 25.794608] [ 25.794766] CPU: 0 UID: 0 PID: 209 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250620 #1 PREEMPT(voluntary) [ 25.794857] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.794874] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.794900] Call Trace: [ 25.794918] <TASK> [ 25.794941] dump_stack_lvl+0x73/0xb0 [ 25.794995] print_report+0xd1/0x650 [ 25.795028] ? __virt_addr_valid+0x1db/0x2d0 [ 25.795054] ? kmalloc_memmove_negative_size+0x171/0x330 [ 25.795080] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.795107] ? kmalloc_memmove_negative_size+0x171/0x330 [ 25.795176] kasan_report+0x141/0x180 [ 25.795215] ? kmalloc_memmove_negative_size+0x171/0x330 [ 25.795268] kasan_check_range+0x10c/0x1c0 [ 25.795315] __asan_memmove+0x27/0x70 [ 25.795359] kmalloc_memmove_negative_size+0x171/0x330 [ 25.795410] ? __pfx_kmalloc_memmove_negative_size+0x10/0x10 [ 25.795509] ? __schedule+0x10cc/0x2b60 [ 25.795560] ? __pfx_read_tsc+0x10/0x10 [ 25.795607] ? ktime_get_ts64+0x86/0x230 [ 25.795666] kunit_try_run_case+0x1a5/0x480 [ 25.795724] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.795769] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.795798] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.795823] ? __kthread_parkme+0x82/0x180 [ 25.795847] ? preempt_count_sub+0x50/0x80 [ 25.795873] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.795898] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.795923] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.795947] kthread+0x337/0x6f0 [ 25.795969] ? trace_preempt_on+0x20/0xc0 [ 25.795994] ? __pfx_kthread+0x10/0x10 [ 25.796017] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.796039] ? calculate_sigpending+0x7b/0xa0 [ 25.796065] ? __pfx_kthread+0x10/0x10 [ 25.796088] ret_from_fork+0x116/0x1d0 [ 25.796109] ? __pfx_kthread+0x10/0x10 [ 25.796131] ret_from_fork_asm+0x1a/0x30 [ 25.796196] </TASK> [ 25.796210] [ 25.806695] Allocated by task 209: [ 25.807069] kasan_save_stack+0x45/0x70 [ 25.807430] kasan_save_track+0x18/0x40 [ 25.807665] kasan_save_alloc_info+0x3b/0x50 [ 25.808047] __kasan_kmalloc+0xb7/0xc0 [ 25.808320] __kmalloc_cache_noprof+0x189/0x420 [ 25.808602] kmalloc_memmove_negative_size+0xac/0x330 [ 25.808870] kunit_try_run_case+0x1a5/0x480 [ 25.809099] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.809390] kthread+0x337/0x6f0 [ 25.809600] ret_from_fork+0x116/0x1d0 [ 25.809790] ret_from_fork_asm+0x1a/0x30 [ 25.810175] [ 25.810354] The buggy address belongs to the object at ffff888102323f00 [ 25.810354] which belongs to the cache kmalloc-64 of size 64 [ 25.811286] The buggy address is located 4 bytes inside of [ 25.811286] 64-byte region [ffff888102323f00, ffff888102323f40) [ 25.812074] [ 25.812283] The buggy address belongs to the physical page: [ 25.812695] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102323 [ 25.813072] flags: 0x200000000000000(node=0|zone=2) [ 25.813329] page_type: f5(slab) [ 25.813636] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 25.814249] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 25.814709] page dumped because: kasan: bad access detected [ 25.814990] [ 25.815173] Memory state around the buggy address: [ 25.815419] ffff888102323e00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 25.815663] ffff888102323e80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 25.816190] >ffff888102323f00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 25.816645] ^ [ 25.816871] ffff888102323f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.817346] ffff888102324000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.817711] ==================================================================