Date
July 8, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 21.474570] ================================================================== [ 21.474637] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 21.474697] Read of size 1 at addr fff00000c63c9658 by task kunit_try_catch/257 [ 21.474749] [ 21.474786] CPU: 0 UID: 0 PID: 257 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 21.474870] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.474907] Hardware name: linux,dummy-virt (DT) [ 21.474941] Call trace: [ 21.474967] show_stack+0x20/0x38 (C) [ 21.475019] dump_stack_lvl+0x8c/0xd0 [ 21.475069] print_report+0x118/0x608 [ 21.475116] kasan_report+0xdc/0x128 [ 21.475179] __asan_report_load1_noabort+0x20/0x30 [ 21.475233] memcmp+0x198/0x1d8 [ 21.475276] kasan_memcmp+0x16c/0x300 [ 21.475331] kunit_try_run_case+0x170/0x3f0 [ 21.475383] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.475436] kthread+0x328/0x630 [ 21.475486] ret_from_fork+0x10/0x20 [ 21.475675] [ 21.475939] Allocated by task 257: [ 21.476202] kasan_save_stack+0x3c/0x68 [ 21.476267] kasan_save_track+0x20/0x40 [ 21.476312] kasan_save_alloc_info+0x40/0x58 [ 21.476353] __kasan_kmalloc+0xd4/0xd8 [ 21.476860] __kmalloc_cache_noprof+0x16c/0x3c0 [ 21.476939] kasan_memcmp+0xbc/0x300 [ 21.477188] kunit_try_run_case+0x170/0x3f0 [ 21.477466] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.477703] kthread+0x328/0x630 [ 21.477855] ret_from_fork+0x10/0x20 [ 21.477937] [ 21.477985] The buggy address belongs to the object at fff00000c63c9640 [ 21.477985] which belongs to the cache kmalloc-32 of size 32 [ 21.478189] The buggy address is located 0 bytes to the right of [ 21.478189] allocated 24-byte region [fff00000c63c9640, fff00000c63c9658) [ 21.478270] [ 21.478294] The buggy address belongs to the physical page: [ 21.478631] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1063c9 [ 21.478767] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 21.478883] page_type: f5(slab) [ 21.479095] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 21.479372] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 21.479508] page dumped because: kasan: bad access detected [ 21.479614] [ 21.479775] Memory state around the buggy address: [ 21.479826] fff00000c63c9500: 00 00 00 fc fc fc fc fc 00 00 00 04 fc fc fc fc [ 21.479881] fff00000c63c9580: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 21.479949] >fff00000c63c9600: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 21.480332] ^ [ 21.480416] fff00000c63c9680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.480692] fff00000c63c9700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.480870] ==================================================================
[ 14.407789] ================================================================== [ 14.408239] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 14.408547] Read of size 1 at addr ffff88810267d758 by task kunit_try_catch/275 [ 14.408845] [ 14.408957] CPU: 1 UID: 0 PID: 275 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 14.409005] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.409018] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.409040] Call Trace: [ 14.409053] <TASK> [ 14.409072] dump_stack_lvl+0x73/0xb0 [ 14.409104] print_report+0xd1/0x650 [ 14.409132] ? __virt_addr_valid+0x1db/0x2d0 [ 14.409158] ? memcmp+0x1b4/0x1d0 [ 14.409176] ? kasan_complete_mode_report_info+0x2a/0x200 [ 14.409201] ? memcmp+0x1b4/0x1d0 [ 14.409219] kasan_report+0x141/0x180 [ 14.409241] ? memcmp+0x1b4/0x1d0 [ 14.409264] __asan_report_load1_noabort+0x18/0x20 [ 14.409289] memcmp+0x1b4/0x1d0 [ 14.409310] kasan_memcmp+0x18f/0x390 [ 14.409331] ? trace_hardirqs_on+0x37/0xe0 [ 14.409358] ? __pfx_kasan_memcmp+0x10/0x10 [ 14.409379] ? finish_task_switch.isra.0+0x153/0x700 [ 14.409404] ? __switch_to+0x47/0xf50 [ 14.409435] ? __pfx_read_tsc+0x10/0x10 [ 14.409457] ? ktime_get_ts64+0x86/0x230 [ 14.409483] kunit_try_run_case+0x1a5/0x480 [ 14.409512] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.409535] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.409561] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.409586] ? __kthread_parkme+0x82/0x180 [ 14.409632] ? preempt_count_sub+0x50/0x80 [ 14.409657] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.409683] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.409712] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.409738] kthread+0x337/0x6f0 [ 14.409757] ? trace_preempt_on+0x20/0xc0 [ 14.409781] ? __pfx_kthread+0x10/0x10 [ 14.409803] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.409826] ? calculate_sigpending+0x7b/0xa0 [ 14.409851] ? __pfx_kthread+0x10/0x10 [ 14.409873] ret_from_fork+0x116/0x1d0 [ 14.409892] ? __pfx_kthread+0x10/0x10 [ 14.409912] ret_from_fork_asm+0x1a/0x30 [ 14.409957] </TASK> [ 14.409970] [ 14.417677] Allocated by task 275: [ 14.417854] kasan_save_stack+0x45/0x70 [ 14.418003] kasan_save_track+0x18/0x40 [ 14.418167] kasan_save_alloc_info+0x3b/0x50 [ 14.418553] __kasan_kmalloc+0xb7/0xc0 [ 14.418777] __kmalloc_cache_noprof+0x189/0x420 [ 14.418986] kasan_memcmp+0xb7/0x390 [ 14.419205] kunit_try_run_case+0x1a5/0x480 [ 14.419465] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.419707] kthread+0x337/0x6f0 [ 14.419829] ret_from_fork+0x116/0x1d0 [ 14.420031] ret_from_fork_asm+0x1a/0x30 [ 14.420294] [ 14.420490] The buggy address belongs to the object at ffff88810267d740 [ 14.420490] which belongs to the cache kmalloc-32 of size 32 [ 14.421050] The buggy address is located 0 bytes to the right of [ 14.421050] allocated 24-byte region [ffff88810267d740, ffff88810267d758) [ 14.421589] [ 14.421705] The buggy address belongs to the physical page: [ 14.421881] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10267d [ 14.422125] flags: 0x200000000000000(node=0|zone=2) [ 14.422421] page_type: f5(slab) [ 14.422688] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.423297] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 14.423691] page dumped because: kasan: bad access detected [ 14.424044] [ 14.424133] Memory state around the buggy address: [ 14.424285] ffff88810267d600: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.424496] ffff88810267d680: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.424791] >ffff88810267d700: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.425196] ^ [ 14.425482] ffff88810267d780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.425937] ffff88810267d800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.426300] ==================================================================