Date
July 17, 2025, 11:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.438597] ================================================================== [ 15.438942] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x154/0x2e0 [ 15.439055] Read of size 18446744073709551614 at addr fff00000c7891784 by task kunit_try_catch/181 [ 15.439523] [ 15.439615] CPU: 0 UID: 0 PID: 181 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.439930] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.439992] Hardware name: linux,dummy-virt (DT) [ 15.440156] Call trace: [ 15.440183] show_stack+0x20/0x38 (C) [ 15.440287] dump_stack_lvl+0x8c/0xd0 [ 15.440368] print_report+0x118/0x5d0 [ 15.440474] kasan_report+0xdc/0x128 [ 15.440616] kasan_check_range+0x100/0x1a8 [ 15.440699] __asan_memmove+0x3c/0x98 [ 15.440912] kmalloc_memmove_negative_size+0x154/0x2e0 [ 15.441149] kunit_try_run_case+0x170/0x3f0 [ 15.441330] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.441408] kthread+0x328/0x630 [ 15.441593] ret_from_fork+0x10/0x20 [ 15.441801] [ 15.441943] Allocated by task 181: [ 15.442028] kasan_save_stack+0x3c/0x68 [ 15.442179] kasan_save_track+0x20/0x40 [ 15.442273] kasan_save_alloc_info+0x40/0x58 [ 15.443279] __kasan_kmalloc+0xd4/0xd8 [ 15.443351] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.443861] kmalloc_memmove_negative_size+0xb0/0x2e0 [ 15.443966] kunit_try_run_case+0x170/0x3f0 [ 15.444017] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.444081] kthread+0x328/0x630 [ 15.444114] ret_from_fork+0x10/0x20 [ 15.444150] [ 15.444191] The buggy address belongs to the object at fff00000c7891780 [ 15.444191] which belongs to the cache kmalloc-64 of size 64 [ 15.444251] The buggy address is located 4 bytes inside of [ 15.444251] 64-byte region [fff00000c7891780, fff00000c78917c0) [ 15.444311] [ 15.444345] The buggy address belongs to the physical page: [ 15.444388] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107891 [ 15.444458] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.444514] page_type: f5(slab) [ 15.444569] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 15.444620] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 15.444661] page dumped because: kasan: bad access detected [ 15.444722] [ 15.444740] Memory state around the buggy address: [ 15.444781] fff00000c7891680: 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc fc [ 15.445086] fff00000c7891700: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 15.445158] >fff00000c7891780: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 15.445430] ^ [ 15.445503] fff00000c7891800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.445731] fff00000c7891880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.445835] ==================================================================
[ 13.243855] ================================================================== [ 13.244735] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x171/0x330 [ 13.245096] Read of size 18446744073709551614 at addr ffff8881025cf084 by task kunit_try_catch/197 [ 13.245945] [ 13.246191] CPU: 1 UID: 0 PID: 197 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 13.246348] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.246363] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.246396] Call Trace: [ 13.246408] <TASK> [ 13.246424] dump_stack_lvl+0x73/0xb0 [ 13.246492] print_report+0xd1/0x610 [ 13.246517] ? __virt_addr_valid+0x1db/0x2d0 [ 13.246560] ? kmalloc_memmove_negative_size+0x171/0x330 [ 13.246586] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.246609] ? kmalloc_memmove_negative_size+0x171/0x330 [ 13.246656] kasan_report+0x141/0x180 [ 13.246678] ? kmalloc_memmove_negative_size+0x171/0x330 [ 13.246709] kasan_check_range+0x10c/0x1c0 [ 13.246732] __asan_memmove+0x27/0x70 [ 13.246752] kmalloc_memmove_negative_size+0x171/0x330 [ 13.246778] ? __pfx_kmalloc_memmove_negative_size+0x10/0x10 [ 13.246805] ? __schedule+0x10cc/0x2b60 [ 13.246826] ? __pfx_read_tsc+0x10/0x10 [ 13.246847] ? ktime_get_ts64+0x86/0x230 [ 13.246871] kunit_try_run_case+0x1a5/0x480 [ 13.246895] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.246918] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.246941] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.246964] ? __kthread_parkme+0x82/0x180 [ 13.246985] ? preempt_count_sub+0x50/0x80 [ 13.247008] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.247032] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.247057] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.247082] kthread+0x337/0x6f0 [ 13.247100] ? trace_preempt_on+0x20/0xc0 [ 13.247123] ? __pfx_kthread+0x10/0x10 [ 13.247144] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.247165] ? calculate_sigpending+0x7b/0xa0 [ 13.247190] ? __pfx_kthread+0x10/0x10 [ 13.247211] ret_from_fork+0x116/0x1d0 [ 13.247230] ? __pfx_kthread+0x10/0x10 [ 13.247266] ret_from_fork_asm+0x1a/0x30 [ 13.247297] </TASK> [ 13.247309] [ 13.255634] Allocated by task 197: [ 13.255833] kasan_save_stack+0x45/0x70 [ 13.256028] kasan_save_track+0x18/0x40 [ 13.256220] kasan_save_alloc_info+0x3b/0x50 [ 13.256530] __kasan_kmalloc+0xb7/0xc0 [ 13.256725] __kmalloc_cache_noprof+0x189/0x420 [ 13.256954] kmalloc_memmove_negative_size+0xac/0x330 [ 13.257167] kunit_try_run_case+0x1a5/0x480 [ 13.257461] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.257732] kthread+0x337/0x6f0 [ 13.257903] ret_from_fork+0x116/0x1d0 [ 13.258086] ret_from_fork_asm+0x1a/0x30 [ 13.258266] [ 13.258338] The buggy address belongs to the object at ffff8881025cf080 [ 13.258338] which belongs to the cache kmalloc-64 of size 64 [ 13.258698] The buggy address is located 4 bytes inside of [ 13.258698] 64-byte region [ffff8881025cf080, ffff8881025cf0c0) [ 13.259493] [ 13.259684] The buggy address belongs to the physical page: [ 13.259900] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1025cf [ 13.260154] flags: 0x200000000000000(node=0|zone=2) [ 13.260583] page_type: f5(slab) [ 13.260797] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 13.261181] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 13.261615] page dumped because: kasan: bad access detected [ 13.261792] [ 13.261860] Memory state around the buggy address: [ 13.262084] ffff8881025cef80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.262592] ffff8881025cf000: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 13.263043] >ffff8881025cf080: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 13.263497] ^ [ 13.263652] ffff8881025cf100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.264070] ffff8881025cf180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.264289] ==================================================================