Date
July 1, 2025, 12:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.677510] ================================================================== [ 19.677586] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 19.677647] Read of size 1 at addr fff00000c79f3798 by task kunit_try_catch/257 [ 19.677699] [ 19.677741] CPU: 0 UID: 0 PID: 257 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 19.677826] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.677857] Hardware name: linux,dummy-virt (DT) [ 19.677902] Call trace: [ 19.677936] show_stack+0x20/0x38 (C) [ 19.677990] dump_stack_lvl+0x8c/0xd0 [ 19.678039] print_report+0x118/0x608 [ 19.678087] kasan_report+0xdc/0x128 [ 19.678135] __asan_report_load1_noabort+0x20/0x30 [ 19.678189] memcmp+0x198/0x1d8 [ 19.678231] kasan_memcmp+0x16c/0x300 [ 19.678276] kunit_try_run_case+0x170/0x3f0 [ 19.678328] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.678384] kthread+0x328/0x630 [ 19.678434] ret_from_fork+0x10/0x20 [ 19.678793] [ 19.678868] Allocated by task 257: [ 19.678902] kasan_save_stack+0x3c/0x68 [ 19.679104] kasan_save_track+0x20/0x40 [ 19.679159] kasan_save_alloc_info+0x40/0x58 [ 19.679202] __kasan_kmalloc+0xd4/0xd8 [ 19.679241] __kmalloc_cache_noprof+0x16c/0x3c0 [ 19.679284] kasan_memcmp+0xbc/0x300 [ 19.679321] kunit_try_run_case+0x170/0x3f0 [ 19.679359] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.679406] kthread+0x328/0x630 [ 19.679438] ret_from_fork+0x10/0x20 [ 19.679486] [ 19.679509] The buggy address belongs to the object at fff00000c79f3780 [ 19.679509] which belongs to the cache kmalloc-32 of size 32 [ 19.679571] The buggy address is located 0 bytes to the right of [ 19.679571] allocated 24-byte region [fff00000c79f3780, fff00000c79f3798) [ 19.679640] [ 19.679663] The buggy address belongs to the physical page: [ 19.679695] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1079f3 [ 19.679753] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.679805] page_type: f5(slab) [ 19.679844] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 19.679899] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 19.679943] page dumped because: kasan: bad access detected [ 19.679978] [ 19.679997] Memory state around the buggy address: [ 19.680034] fff00000c79f3680: 00 00 00 fc fc fc fc fc 00 00 00 04 fc fc fc fc [ 19.680089] fff00000c79f3700: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 19.680135] >fff00000c79f3780: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.680180] ^ [ 19.680212] fff00000c79f3800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.680258] fff00000c79f3880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.680301] ==================================================================
[ 13.295936] ================================================================== [ 13.297663] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 13.298916] Read of size 1 at addr ffff8881031242d8 by task kunit_try_catch/274 [ 13.299618] [ 13.299742] CPU: 0 UID: 0 PID: 274 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 13.299787] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.299799] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.299820] Call Trace: [ 13.299835] <TASK> [ 13.299850] dump_stack_lvl+0x73/0xb0 [ 13.299878] print_report+0xd1/0x650 [ 13.299901] ? __virt_addr_valid+0x1db/0x2d0 [ 13.299923] ? memcmp+0x1b4/0x1d0 [ 13.299940] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.299962] ? memcmp+0x1b4/0x1d0 [ 13.299981] kasan_report+0x141/0x180 [ 13.300003] ? memcmp+0x1b4/0x1d0 [ 13.300037] __asan_report_load1_noabort+0x18/0x20 [ 13.300061] memcmp+0x1b4/0x1d0 [ 13.300080] kasan_memcmp+0x18f/0x390 [ 13.300100] ? trace_hardirqs_on+0x37/0xe0 [ 13.300123] ? __pfx_kasan_memcmp+0x10/0x10 [ 13.300142] ? finish_task_switch.isra.0+0x153/0x700 [ 13.300163] ? __switch_to+0x47/0xf50 [ 13.300192] ? __pfx_read_tsc+0x10/0x10 [ 13.300212] ? ktime_get_ts64+0x86/0x230 [ 13.300235] kunit_try_run_case+0x1a5/0x480 [ 13.300258] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.300279] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.300300] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.300322] ? __kthread_parkme+0x82/0x180 [ 13.300341] ? preempt_count_sub+0x50/0x80 [ 13.300364] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.300387] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.300410] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.300432] kthread+0x337/0x6f0 [ 13.300450] ? trace_preempt_on+0x20/0xc0 [ 13.300470] ? __pfx_kthread+0x10/0x10 [ 13.300490] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.300511] ? calculate_sigpending+0x7b/0xa0 [ 13.300534] ? __pfx_kthread+0x10/0x10 [ 13.300555] ret_from_fork+0x116/0x1d0 [ 13.300573] ? __pfx_kthread+0x10/0x10 [ 13.300593] ret_from_fork_asm+0x1a/0x30 [ 13.300622] </TASK> [ 13.300633] [ 13.312128] Allocated by task 274: [ 13.312543] kasan_save_stack+0x45/0x70 [ 13.312850] kasan_save_track+0x18/0x40 [ 13.313048] kasan_save_alloc_info+0x3b/0x50 [ 13.313386] __kasan_kmalloc+0xb7/0xc0 [ 13.313578] __kmalloc_cache_noprof+0x189/0x420 [ 13.314069] kasan_memcmp+0xb7/0x390 [ 13.314850] kunit_try_run_case+0x1a5/0x480 [ 13.315344] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.315744] kthread+0x337/0x6f0 [ 13.316136] ret_from_fork+0x116/0x1d0 [ 13.316502] ret_from_fork_asm+0x1a/0x30 [ 13.316648] [ 13.316721] The buggy address belongs to the object at ffff8881031242c0 [ 13.316721] which belongs to the cache kmalloc-32 of size 32 [ 13.317093] The buggy address is located 0 bytes to the right of [ 13.317093] allocated 24-byte region [ffff8881031242c0, ffff8881031242d8) [ 13.317932] [ 13.318051] The buggy address belongs to the physical page: [ 13.318508] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103124 [ 13.318833] flags: 0x200000000000000(node=0|zone=2) [ 13.319055] page_type: f5(slab) [ 13.319227] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 13.319651] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 13.319948] page dumped because: kasan: bad access detected [ 13.320298] [ 13.320389] Memory state around the buggy address: [ 13.320552] ffff888103124180: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 13.320877] ffff888103124200: 00 00 00 fc fc fc fc fc 00 00 00 04 fc fc fc fc [ 13.321155] >ffff888103124280: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 13.321552] ^ [ 13.321788] ffff888103124300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.322314] ffff888103124380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.322634] ==================================================================