Date
July 19, 2025, 11:11 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.384224] ================================================================== [ 15.384290] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x154/0x2e0 [ 15.384340] Read of size 18446744073709551614 at addr fff00000c63bcf04 by task kunit_try_catch/181 [ 15.384418] [ 15.384449] CPU: 1 UID: 0 PID: 181 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.384540] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.384566] Hardware name: linux,dummy-virt (DT) [ 15.384597] Call trace: [ 15.384620] show_stack+0x20/0x38 (C) [ 15.384667] dump_stack_lvl+0x8c/0xd0 [ 15.384711] print_report+0x118/0x5d0 [ 15.384756] kasan_report+0xdc/0x128 [ 15.384800] kasan_check_range+0x100/0x1a8 [ 15.384846] __asan_memmove+0x3c/0x98 [ 15.385427] kmalloc_memmove_negative_size+0x154/0x2e0 [ 15.385504] kunit_try_run_case+0x170/0x3f0 [ 15.385596] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.385650] kthread+0x328/0x630 [ 15.385691] ret_from_fork+0x10/0x20 [ 15.385765] [ 15.385783] Allocated by task 181: [ 15.385811] kasan_save_stack+0x3c/0x68 [ 15.385851] kasan_save_track+0x20/0x40 [ 15.385887] kasan_save_alloc_info+0x40/0x58 [ 15.385925] __kasan_kmalloc+0xd4/0xd8 [ 15.385961] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.386197] kmalloc_memmove_negative_size+0xb0/0x2e0 [ 15.386241] kunit_try_run_case+0x170/0x3f0 [ 15.386277] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.386319] kthread+0x328/0x630 [ 15.386350] ret_from_fork+0x10/0x20 [ 15.386388] [ 15.386409] The buggy address belongs to the object at fff00000c63bcf00 [ 15.386409] which belongs to the cache kmalloc-64 of size 64 [ 15.386483] The buggy address is located 4 bytes inside of [ 15.386483] 64-byte region [fff00000c63bcf00, fff00000c63bcf40) [ 15.386694] [ 15.386718] The buggy address belongs to the physical page: [ 15.386817] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1063bc [ 15.386904] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.386988] page_type: f5(slab) [ 15.387027] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 15.387078] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 15.387117] page dumped because: kasan: bad access detected [ 15.387151] [ 15.387169] Memory state around the buggy address: [ 15.387226] fff00000c63bce00: 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc fc [ 15.387276] fff00000c63bce80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 15.387328] >fff00000c63bcf00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 15.387375] ^ [ 15.387410] fff00000c63bcf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.387451] fff00000c63bd000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.387505] ==================================================================
[ 12.275664] ================================================================== [ 12.276235] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x171/0x330 [ 12.276717] Read of size 18446744073709551614 at addr ffff8881027ea204 by task kunit_try_catch/198 [ 12.277103] [ 12.277293] CPU: 0 UID: 0 PID: 198 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.277361] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.277388] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.277412] Call Trace: [ 12.277425] <TASK> [ 12.277442] dump_stack_lvl+0x73/0xb0 [ 12.277474] print_report+0xd1/0x610 [ 12.277507] ? __virt_addr_valid+0x1db/0x2d0 [ 12.277531] ? kmalloc_memmove_negative_size+0x171/0x330 [ 12.277555] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.277577] ? kmalloc_memmove_negative_size+0x171/0x330 [ 12.277621] kasan_report+0x141/0x180 [ 12.277642] ? kmalloc_memmove_negative_size+0x171/0x330 [ 12.277670] kasan_check_range+0x10c/0x1c0 [ 12.277693] __asan_memmove+0x27/0x70 [ 12.277733] kmalloc_memmove_negative_size+0x171/0x330 [ 12.277758] ? __pfx_kmalloc_memmove_negative_size+0x10/0x10 [ 12.277783] ? __schedule+0x10cc/0x2b60 [ 12.277806] ? __pfx_read_tsc+0x10/0x10 [ 12.277826] ? ktime_get_ts64+0x86/0x230 [ 12.277852] kunit_try_run_case+0x1a5/0x480 [ 12.277876] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.277913] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.277937] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.277961] ? __kthread_parkme+0x82/0x180 [ 12.277983] ? preempt_count_sub+0x50/0x80 [ 12.278008] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.278030] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.278212] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.278239] kthread+0x337/0x6f0 [ 12.278258] ? trace_preempt_on+0x20/0xc0 [ 12.278281] ? __pfx_kthread+0x10/0x10 [ 12.278300] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.278321] ? calculate_sigpending+0x7b/0xa0 [ 12.278345] ? __pfx_kthread+0x10/0x10 [ 12.278365] ret_from_fork+0x116/0x1d0 [ 12.278383] ? __pfx_kthread+0x10/0x10 [ 12.278402] ret_from_fork_asm+0x1a/0x30 [ 12.278432] </TASK> [ 12.278443] [ 12.286938] Allocated by task 198: [ 12.287211] kasan_save_stack+0x45/0x70 [ 12.287534] kasan_save_track+0x18/0x40 [ 12.287724] kasan_save_alloc_info+0x3b/0x50 [ 12.287921] __kasan_kmalloc+0xb7/0xc0 [ 12.288180] __kmalloc_cache_noprof+0x189/0x420 [ 12.288370] kmalloc_memmove_negative_size+0xac/0x330 [ 12.288618] kunit_try_run_case+0x1a5/0x480 [ 12.288828] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.289033] kthread+0x337/0x6f0 [ 12.289319] ret_from_fork+0x116/0x1d0 [ 12.289484] ret_from_fork_asm+0x1a/0x30 [ 12.289702] [ 12.289773] The buggy address belongs to the object at ffff8881027ea200 [ 12.289773] which belongs to the cache kmalloc-64 of size 64 [ 12.290309] The buggy address is located 4 bytes inside of [ 12.290309] 64-byte region [ffff8881027ea200, ffff8881027ea240) [ 12.290942] [ 12.291056] The buggy address belongs to the physical page: [ 12.291397] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1027ea [ 12.291700] flags: 0x200000000000000(node=0|zone=2) [ 12.291862] page_type: f5(slab) [ 12.291982] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 12.292297] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 12.292632] page dumped because: kasan: bad access detected [ 12.292930] [ 12.293000] Memory state around the buggy address: [ 12.293152] ffff8881027ea100: 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc fc [ 12.293427] ffff8881027ea180: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 12.293757] >ffff8881027ea200: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 12.294321] ^ [ 12.294509] ffff8881027ea280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.294850] ffff8881027ea300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.295237] ==================================================================