Date
May 15, 2025, 10:38 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.089477] ================================================================== [ 20.089728] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 20.089845] Read of size 1 at addr fff00000c7833ad8 by task kunit_try_catch/257 [ 20.089990] [ 20.090044] CPU: 0 UID: 0 PID: 257 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250515 #1 PREEMPT [ 20.090379] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.090414] Hardware name: linux,dummy-virt (DT) [ 20.090464] Call trace: [ 20.090519] show_stack+0x20/0x38 (C) [ 20.090644] dump_stack_lvl+0x8c/0xd0 [ 20.090721] print_report+0x118/0x608 [ 20.090850] kasan_report+0xdc/0x128 [ 20.090939] __asan_report_load1_noabort+0x20/0x30 [ 20.091019] memcmp+0x198/0x1d8 [ 20.091065] kasan_memcmp+0x16c/0x300 [ 20.091339] kunit_try_run_case+0x170/0x3f0 [ 20.091485] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.091552] kthread+0x328/0x630 [ 20.091616] ret_from_fork+0x10/0x20 [ 20.091696] [ 20.091727] Allocated by task 257: [ 20.091757] kasan_save_stack+0x3c/0x68 [ 20.091819] kasan_save_track+0x20/0x40 [ 20.091886] kasan_save_alloc_info+0x40/0x58 [ 20.092008] __kasan_kmalloc+0xd4/0xd8 [ 20.092086] __kmalloc_cache_noprof+0x15c/0x3c0 [ 20.092129] kasan_memcmp+0xbc/0x300 [ 20.092176] kunit_try_run_case+0x170/0x3f0 [ 20.092213] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.092279] kthread+0x328/0x630 [ 20.092316] ret_from_fork+0x10/0x20 [ 20.092371] [ 20.092391] The buggy address belongs to the object at fff00000c7833ac0 [ 20.092391] which belongs to the cache kmalloc-32 of size 32 [ 20.092452] The buggy address is located 0 bytes to the right of [ 20.092452] allocated 24-byte region [fff00000c7833ac0, fff00000c7833ad8) [ 20.092528] [ 20.092551] The buggy address belongs to the physical page: [ 20.092600] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107833 [ 20.092657] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.092718] page_type: f5(slab) [ 20.092761] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 20.092814] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 20.092872] page dumped because: kasan: bad access detected [ 20.092907] [ 20.092943] Memory state around the buggy address: [ 20.092978] fff00000c7833980: 00 00 00 fc fc fc fc fc 00 00 00 04 fc fc fc fc [ 20.093024] fff00000c7833a00: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 20.093087] >fff00000c7833a80: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 20.093127] ^ [ 20.093581] fff00000c7833b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.093656] fff00000c7833b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.093824] ==================================================================
[ 16.175949] ================================================================== [ 16.176355] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 16.176721] Read of size 1 at addr ffff888102b6e1d8 by task kunit_try_catch/275 [ 16.177280] [ 16.177431] CPU: 0 UID: 0 PID: 275 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250515 #1 PREEMPT(voluntary) [ 16.177529] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.177547] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.177573] Call Trace: [ 16.177589] <TASK> [ 16.177611] dump_stack_lvl+0x73/0xb0 [ 16.177646] print_report+0xd1/0x650 [ 16.177679] ? __virt_addr_valid+0x1db/0x2d0 [ 16.177716] ? memcmp+0x1b4/0x1d0 [ 16.177749] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.177790] ? memcmp+0x1b4/0x1d0 [ 16.177827] kasan_report+0x141/0x180 [ 16.177874] ? memcmp+0x1b4/0x1d0 [ 16.177930] __asan_report_load1_noabort+0x18/0x20 [ 16.177975] memcmp+0x1b4/0x1d0 [ 16.178013] kasan_memcmp+0x18f/0x390 [ 16.178049] ? trace_hardirqs_on+0x37/0xe0 [ 16.178095] ? __pfx_kasan_memcmp+0x10/0x10 [ 16.178135] ? finish_task_switch.isra.0+0x153/0x700 [ 16.178179] ? __switch_to+0x47/0xf50 [ 16.178252] ? __pfx_read_tsc+0x10/0x10 [ 16.178299] ? ktime_get_ts64+0x86/0x230 [ 16.178355] kunit_try_run_case+0x1a5/0x480 [ 16.178414] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.178447] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.178473] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.178496] ? __kthread_parkme+0x82/0x180 [ 16.178518] ? preempt_count_sub+0x50/0x80 [ 16.178541] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.178565] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.178587] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.178610] kthread+0x337/0x6f0 [ 16.178629] ? trace_preempt_on+0x20/0xc0 [ 16.178650] ? __pfx_kthread+0x10/0x10 [ 16.178670] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.178691] ? calculate_sigpending+0x7b/0xa0 [ 16.178715] ? __pfx_kthread+0x10/0x10 [ 16.178735] ret_from_fork+0x116/0x1d0 [ 16.178752] ? __pfx_kthread+0x10/0x10 [ 16.178773] ret_from_fork_asm+0x1a/0x30 [ 16.178804] </TASK> [ 16.178817] [ 16.186728] Allocated by task 275: [ 16.186950] kasan_save_stack+0x45/0x70 [ 16.187149] kasan_save_track+0x18/0x40 [ 16.187437] kasan_save_alloc_info+0x3b/0x50 [ 16.187696] __kasan_kmalloc+0xb7/0xc0 [ 16.187882] __kmalloc_cache_noprof+0x189/0x420 [ 16.188212] kasan_memcmp+0xb7/0x390 [ 16.188437] kunit_try_run_case+0x1a5/0x480 [ 16.188655] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.188895] kthread+0x337/0x6f0 [ 16.189116] ret_from_fork+0x116/0x1d0 [ 16.189292] ret_from_fork_asm+0x1a/0x30 [ 16.189578] [ 16.189718] The buggy address belongs to the object at ffff888102b6e1c0 [ 16.189718] which belongs to the cache kmalloc-32 of size 32 [ 16.190315] The buggy address is located 0 bytes to the right of [ 16.190315] allocated 24-byte region [ffff888102b6e1c0, ffff888102b6e1d8) [ 16.190812] [ 16.190926] The buggy address belongs to the physical page: [ 16.191278] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b6e [ 16.191658] flags: 0x200000000000000(node=0|zone=2) [ 16.191865] page_type: f5(slab) [ 16.192033] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 16.192329] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 16.192803] page dumped because: kasan: bad access detected [ 16.193174] [ 16.193339] Memory state around the buggy address: [ 16.193686] ffff888102b6e080: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 16.194052] ffff888102b6e100: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 16.194374] >ffff888102b6e180: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 16.194739] ^ [ 16.195029] ffff888102b6e200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.195326] ffff888102b6e280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.195726] ==================================================================