Date
May 13, 2025, 12:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 21.424940] ================================================================== [ 21.425063] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 21.425200] Read of size 1 at addr fff00000c7794ad8 by task kunit_try_catch/257 [ 21.425278] [ 21.425339] CPU: 1 UID: 0 PID: 257 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250513 #1 PREEMPT [ 21.425454] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.425745] Hardware name: linux,dummy-virt (DT) [ 21.425952] Call trace: [ 21.426064] show_stack+0x20/0x38 (C) [ 21.426508] dump_stack_lvl+0x8c/0xd0 [ 21.426842] print_report+0x118/0x608 [ 21.427112] kasan_report+0xdc/0x128 [ 21.427237] __asan_report_load1_noabort+0x20/0x30 [ 21.427343] memcmp+0x198/0x1d8 [ 21.427396] kasan_memcmp+0x16c/0x300 [ 21.427473] kunit_try_run_case+0x170/0x3f0 [ 21.427531] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.427618] kthread+0x328/0x630 [ 21.427674] ret_from_fork+0x10/0x20 [ 21.427731] [ 21.427940] Allocated by task 257: [ 21.427988] kasan_save_stack+0x3c/0x68 [ 21.428144] kasan_save_track+0x20/0x40 [ 21.428214] kasan_save_alloc_info+0x40/0x58 [ 21.428281] __kasan_kmalloc+0xd4/0xd8 [ 21.428321] __kmalloc_cache_noprof+0x15c/0x3c0 [ 21.428367] kasan_memcmp+0xbc/0x300 [ 21.428406] kunit_try_run_case+0x170/0x3f0 [ 21.428449] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.428494] kthread+0x328/0x630 [ 21.428535] ret_from_fork+0x10/0x20 [ 21.428575] [ 21.428737] The buggy address belongs to the object at fff00000c7794ac0 [ 21.428737] which belongs to the cache kmalloc-32 of size 32 [ 21.428894] The buggy address is located 0 bytes to the right of [ 21.428894] allocated 24-byte region [fff00000c7794ac0, fff00000c7794ad8) [ 21.428998] [ 21.429055] The buggy address belongs to the physical page: [ 21.429345] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107794 [ 21.429423] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 21.429501] page_type: f5(slab) [ 21.429561] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 21.429638] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 21.429692] page dumped because: kasan: bad access detected [ 21.429732] [ 21.429769] Memory state around the buggy address: [ 21.429840] fff00000c7794980: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 21.429897] fff00000c7794a00: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc [ 21.429951] >fff00000c7794a80: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 21.430007] ^ [ 21.430057] fff00000c7794b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.430109] fff00000c7794b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.430156] ==================================================================
[ 13.007686] ================================================================== [ 13.008729] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 13.009791] Read of size 1 at addr ffff8881039e3718 by task kunit_try_catch/274 [ 13.010503] [ 13.010925] CPU: 1 UID: 0 PID: 274 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250513 #1 PREEMPT(voluntary) [ 13.010995] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.011013] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.011036] Call Trace: [ 13.011050] <TASK> [ 13.011068] dump_stack_lvl+0x73/0xb0 [ 13.011101] print_report+0xd1/0x650 [ 13.011127] ? __virt_addr_valid+0x1db/0x2d0 [ 13.011152] ? memcmp+0x1b4/0x1d0 [ 13.011174] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.011311] ? memcmp+0x1b4/0x1d0 [ 13.011335] kasan_report+0x141/0x180 [ 13.011359] ? memcmp+0x1b4/0x1d0 [ 13.011386] __asan_report_load1_noabort+0x18/0x20 [ 13.011408] memcmp+0x1b4/0x1d0 [ 13.011441] kasan_memcmp+0x18f/0x390 [ 13.011462] ? trace_hardirqs_on+0x37/0xe0 [ 13.011488] ? __pfx_kasan_memcmp+0x10/0x10 [ 13.011508] ? finish_task_switch.isra.0+0x153/0x700 [ 13.011566] ? __switch_to+0x47/0xf50 [ 13.011620] ? __pfx_read_tsc+0x10/0x10 [ 13.011642] ? ktime_get_ts64+0x86/0x230 [ 13.011668] kunit_try_run_case+0x1a5/0x480 [ 13.011694] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.011716] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.011739] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.011762] ? __kthread_parkme+0x82/0x180 [ 13.011786] ? preempt_count_sub+0x50/0x80 [ 13.011810] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.011835] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.011859] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.011883] kthread+0x337/0x6f0 [ 13.011903] ? trace_preempt_on+0x20/0xc0 [ 13.011926] ? __pfx_kthread+0x10/0x10 [ 13.011947] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.011968] ? calculate_sigpending+0x7b/0xa0 [ 13.011994] ? __pfx_kthread+0x10/0x10 [ 13.012017] ret_from_fork+0x116/0x1d0 [ 13.012035] ? __pfx_kthread+0x10/0x10 [ 13.012056] ret_from_fork_asm+0x1a/0x30 [ 13.012088] </TASK> [ 13.012101] [ 13.027079] Allocated by task 274: [ 13.027232] kasan_save_stack+0x45/0x70 [ 13.027628] kasan_save_track+0x18/0x40 [ 13.028056] kasan_save_alloc_info+0x3b/0x50 [ 13.028571] __kasan_kmalloc+0xb7/0xc0 [ 13.029110] __kmalloc_cache_noprof+0x189/0x420 [ 13.029655] kasan_memcmp+0xb7/0x390 [ 13.030015] kunit_try_run_case+0x1a5/0x480 [ 13.030289] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.030518] kthread+0x337/0x6f0 [ 13.030962] ret_from_fork+0x116/0x1d0 [ 13.031376] ret_from_fork_asm+0x1a/0x30 [ 13.031718] [ 13.031797] The buggy address belongs to the object at ffff8881039e3700 [ 13.031797] which belongs to the cache kmalloc-32 of size 32 [ 13.032149] The buggy address is located 0 bytes to the right of [ 13.032149] allocated 24-byte region [ffff8881039e3700, ffff8881039e3718) [ 13.033438] [ 13.033836] The buggy address belongs to the physical page: [ 13.034387] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039e3 [ 13.035263] flags: 0x200000000000000(node=0|zone=2) [ 13.035748] page_type: f5(slab) [ 13.035879] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 13.036117] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 13.036780] page dumped because: kasan: bad access detected [ 13.037487] [ 13.037675] Memory state around the buggy address: [ 13.038203] ffff8881039e3600: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 13.039009] ffff8881039e3680: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc [ 13.039513] >ffff8881039e3700: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.040101] ^ [ 13.040245] ffff8881039e3780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.041041] ffff8881039e3800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.041744] ==================================================================