Date
July 17, 2025, 10:12 a.m.
Environment | |
---|---|
qemu-x86_64 |
[ 27.527846] ================================================================== [ 27.528222] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 27.529109] Read of size 1 at addr ffff888105ffbf18 by task kunit_try_catch/306 [ 27.529819] [ 27.530004] CPU: 1 UID: 0 PID: 306 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250717 #1 PREEMPT(voluntary) [ 27.530054] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.530066] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 27.530100] Call Trace: [ 27.530112] <TASK> [ 27.530127] dump_stack_lvl+0x73/0xb0 [ 27.530157] print_report+0xd1/0x610 [ 27.530180] ? __virt_addr_valid+0x1db/0x2d0 [ 27.530203] ? memcmp+0x1b4/0x1d0 [ 27.530221] ? kasan_complete_mode_report_info+0x2a/0x200 [ 27.530246] ? memcmp+0x1b4/0x1d0 [ 27.530264] kasan_report+0x141/0x180 [ 27.530286] ? memcmp+0x1b4/0x1d0 [ 27.530385] __asan_report_load1_noabort+0x18/0x20 [ 27.530410] memcmp+0x1b4/0x1d0 [ 27.530430] kasan_memcmp+0x18f/0x390 [ 27.530449] ? trace_hardirqs_on+0x37/0xe0 [ 27.530471] ? __pfx_kasan_memcmp+0x10/0x10 [ 27.530491] ? finish_task_switch.isra.0+0x153/0x700 [ 27.530512] ? __switch_to+0x47/0xf80 [ 27.530541] ? __pfx_read_tsc+0x10/0x10 [ 27.530564] ? ktime_get_ts64+0x86/0x230 [ 27.530589] kunit_try_run_case+0x1a5/0x480 [ 27.530613] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.530634] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 27.530656] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 27.530679] ? __kthread_parkme+0x82/0x180 [ 27.530702] ? preempt_count_sub+0x50/0x80 [ 27.530725] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.530747] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.530770] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 27.530793] kthread+0x337/0x6f0 [ 27.530811] ? trace_preempt_on+0x20/0xc0 [ 27.530833] ? __pfx_kthread+0x10/0x10 [ 27.530854] ? _raw_spin_unlock_irq+0x47/0x80 [ 27.530874] ? calculate_sigpending+0x7b/0xa0 [ 27.530897] ? __pfx_kthread+0x10/0x10 [ 27.530918] ret_from_fork+0x116/0x1d0 [ 27.530937] ? __pfx_kthread+0x10/0x10 [ 27.530956] ret_from_fork_asm+0x1a/0x30 [ 27.530988] </TASK> [ 27.530998] [ 27.538502] Allocated by task 306: [ 27.538679] kasan_save_stack+0x45/0x70 [ 27.538872] kasan_save_track+0x18/0x40 [ 27.539053] kasan_save_alloc_info+0x3b/0x50 [ 27.539218] __kasan_kmalloc+0xb7/0xc0 [ 27.539646] __kmalloc_cache_noprof+0x189/0x420 [ 27.539843] kasan_memcmp+0xb7/0x390 [ 27.539967] kunit_try_run_case+0x1a5/0x480 [ 27.540118] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.540450] kthread+0x337/0x6f0 [ 27.540612] ret_from_fork+0x116/0x1d0 [ 27.540794] ret_from_fork_asm+0x1a/0x30 [ 27.540990] [ 27.541098] The buggy address belongs to the object at ffff888105ffbf00 [ 27.541098] which belongs to the cache kmalloc-32 of size 32 [ 27.541658] The buggy address is located 0 bytes to the right of [ 27.541658] allocated 24-byte region [ffff888105ffbf00, ffff888105ffbf18) [ 27.542119] [ 27.542215] The buggy address belongs to the physical page: [ 27.542502] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105ffb [ 27.542770] flags: 0x200000000000000(node=0|zone=2) [ 27.542927] page_type: f5(slab) [ 27.543041] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 27.543275] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 27.543563] page dumped because: kasan: bad access detected [ 27.543802] [ 27.543908] Memory state around the buggy address: [ 27.544132] ffff888105ffbe00: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 27.544584] ffff888105ffbe80: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc [ 27.544885] >ffff888105ffbf00: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.545257] ^ [ 27.545384] ffff888105ffbf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.545589] ffff888105ffc000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.545792] ==================================================================