Date
June 3, 2025, 7:38 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.681317] ================================================================== [ 20.681388] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 20.681477] Read of size 1 at addr fff00000c58a7e98 by task kunit_try_catch/257 [ 20.681746] [ 20.681783] CPU: 1 UID: 0 PID: 257 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250603 #1 PREEMPT [ 20.682184] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.682213] Hardware name: linux,dummy-virt (DT) [ 20.682318] Call trace: [ 20.682342] show_stack+0x20/0x38 (C) [ 20.682398] dump_stack_lvl+0x8c/0xd0 [ 20.682755] print_report+0x118/0x608 [ 20.682845] kasan_report+0xdc/0x128 [ 20.682895] __asan_report_load1_noabort+0x20/0x30 [ 20.682945] memcmp+0x198/0x1d8 [ 20.682992] kasan_memcmp+0x16c/0x300 [ 20.683040] kunit_try_run_case+0x170/0x3f0 [ 20.683759] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.684035] kthread+0x328/0x630 [ 20.684087] ret_from_fork+0x10/0x20 [ 20.684141] [ 20.684161] Allocated by task 257: [ 20.684222] kasan_save_stack+0x3c/0x68 [ 20.684418] kasan_save_track+0x20/0x40 [ 20.684477] kasan_save_alloc_info+0x40/0x58 [ 20.684573] __kasan_kmalloc+0xd4/0xd8 [ 20.684653] __kmalloc_cache_noprof+0x16c/0x3c0 [ 20.684721] kasan_memcmp+0xbc/0x300 [ 20.684796] kunit_try_run_case+0x170/0x3f0 [ 20.684943] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.684990] kthread+0x328/0x630 [ 20.685029] ret_from_fork+0x10/0x20 [ 20.685067] [ 20.685091] The buggy address belongs to the object at fff00000c58a7e80 [ 20.685091] which belongs to the cache kmalloc-32 of size 32 [ 20.685190] The buggy address is located 0 bytes to the right of [ 20.685190] allocated 24-byte region [fff00000c58a7e80, fff00000c58a7e98) [ 20.685497] [ 20.685546] The buggy address belongs to the physical page: [ 20.685582] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1058a7 [ 20.685847] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.686068] page_type: f5(slab) [ 20.686399] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 20.686474] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 20.686624] page dumped because: kasan: bad access detected [ 20.686787] [ 20.686810] Memory state around the buggy address: [ 20.686922] fff00000c58a7d80: 00 00 00 fc fc fc fc fc 00 00 00 04 fc fc fc fc [ 20.686980] fff00000c58a7e00: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 20.687119] >fff00000c58a7e80: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.687177] ^ [ 20.687209] fff00000c58a7f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.687436] fff00000c58a7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.687699] ==================================================================
[ 16.784983] ================================================================== [ 16.785448] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 16.785905] Read of size 1 at addr ffff888103349898 by task kunit_try_catch/274 [ 16.786905] [ 16.787166] CPU: 1 UID: 0 PID: 274 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250603 #1 PREEMPT(voluntary) [ 16.787238] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.787260] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.787288] Call Trace: [ 16.787306] <TASK> [ 16.787332] dump_stack_lvl+0x73/0xb0 [ 16.787406] print_report+0xd1/0x650 [ 16.787435] ? __virt_addr_valid+0x1db/0x2d0 [ 16.787479] ? memcmp+0x1b4/0x1d0 [ 16.787502] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.787573] ? memcmp+0x1b4/0x1d0 [ 16.787645] kasan_report+0x141/0x180 [ 16.787734] ? memcmp+0x1b4/0x1d0 [ 16.787774] __asan_report_load1_noabort+0x18/0x20 [ 16.787801] memcmp+0x1b4/0x1d0 [ 16.787825] kasan_memcmp+0x18f/0x390 [ 16.787851] ? __pfx_kasan_memcmp+0x10/0x10 [ 16.787874] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 16.787911] ? __pfx_kasan_memcmp+0x10/0x10 [ 16.787942] kunit_try_run_case+0x1a5/0x480 [ 16.787967] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.787989] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.788017] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.788044] ? __kthread_parkme+0x82/0x180 [ 16.788069] ? preempt_count_sub+0x50/0x80 [ 16.788095] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.788118] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.788144] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.788171] kthread+0x337/0x6f0 [ 16.788192] ? trace_preempt_on+0x20/0xc0 [ 16.788239] ? __pfx_kthread+0x10/0x10 [ 16.788267] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.788293] ? calculate_sigpending+0x7b/0xa0 [ 16.788321] ? __pfx_kthread+0x10/0x10 [ 16.788345] ret_from_fork+0x116/0x1d0 [ 16.788369] ? __pfx_kthread+0x10/0x10 [ 16.788393] ret_from_fork_asm+0x1a/0x30 [ 16.788429] </TASK> [ 16.788444] [ 16.797137] Allocated by task 274: [ 16.797509] kasan_save_stack+0x45/0x70 [ 16.797936] kasan_save_track+0x18/0x40 [ 16.798149] kasan_save_alloc_info+0x3b/0x50 [ 16.798431] __kasan_kmalloc+0xb7/0xc0 [ 16.798674] __kmalloc_cache_noprof+0x189/0x420 [ 16.799026] kasan_memcmp+0xb7/0x390 [ 16.799207] kunit_try_run_case+0x1a5/0x480 [ 16.799518] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.800475] kthread+0x337/0x6f0 [ 16.800633] ret_from_fork+0x116/0x1d0 [ 16.800749] ret_from_fork_asm+0x1a/0x30 [ 16.801473] [ 16.801601] The buggy address belongs to the object at ffff888103349880 [ 16.801601] which belongs to the cache kmalloc-32 of size 32 [ 16.802302] The buggy address is located 0 bytes to the right of [ 16.802302] allocated 24-byte region [ffff888103349880, ffff888103349898) [ 16.802854] [ 16.803020] The buggy address belongs to the physical page: [ 16.803269] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103349 [ 16.803519] flags: 0x200000000000000(node=0|zone=2) [ 16.803902] page_type: f5(slab) [ 16.804062] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 16.804476] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 16.805111] page dumped because: kasan: bad access detected [ 16.805406] [ 16.805514] Memory state around the buggy address: [ 16.805640] ffff888103349780: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 16.806090] ffff888103349800: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc [ 16.806394] >ffff888103349880: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.806710] ^ [ 16.806824] ffff888103349900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.807421] ffff888103349980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.807672] ==================================================================