Date
July 5, 2025, 5:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.340245] ================================================================== [ 20.340575] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 20.340660] Read of size 1 at addr fff00000c77d82d8 by task kunit_try_catch/257 [ 20.340771] [ 20.340814] CPU: 0 UID: 0 PID: 257 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 20.340954] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.340989] Hardware name: linux,dummy-virt (DT) [ 20.341049] Call trace: [ 20.341102] show_stack+0x20/0x38 (C) [ 20.341165] dump_stack_lvl+0x8c/0xd0 [ 20.341243] print_report+0x118/0x608 [ 20.341441] kasan_report+0xdc/0x128 [ 20.341529] __asan_report_load1_noabort+0x20/0x30 [ 20.341610] memcmp+0x198/0x1d8 [ 20.341663] kasan_memcmp+0x16c/0x300 [ 20.341712] kunit_try_run_case+0x170/0x3f0 [ 20.341786] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.341842] kthread+0x328/0x630 [ 20.342085] ret_from_fork+0x10/0x20 [ 20.342142] [ 20.342230] Allocated by task 257: [ 20.342352] kasan_save_stack+0x3c/0x68 [ 20.342407] kasan_save_track+0x20/0x40 [ 20.342471] kasan_save_alloc_info+0x40/0x58 [ 20.342518] __kasan_kmalloc+0xd4/0xd8 [ 20.342585] __kmalloc_cache_noprof+0x16c/0x3c0 [ 20.342671] kasan_memcmp+0xbc/0x300 [ 20.342712] kunit_try_run_case+0x170/0x3f0 [ 20.342760] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.343062] kthread+0x328/0x630 [ 20.343114] ret_from_fork+0x10/0x20 [ 20.343155] [ 20.343179] The buggy address belongs to the object at fff00000c77d82c0 [ 20.343179] which belongs to the cache kmalloc-32 of size 32 [ 20.343478] The buggy address is located 0 bytes to the right of [ 20.343478] allocated 24-byte region [fff00000c77d82c0, fff00000c77d82d8) [ 20.343604] [ 20.343670] The buggy address belongs to the physical page: [ 20.343725] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077d8 [ 20.343800] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.343894] page_type: f5(slab) [ 20.344088] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 20.344209] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 20.344299] page dumped because: kasan: bad access detected [ 20.344388] [ 20.344461] Memory state around the buggy address: [ 20.344496] fff00000c77d8180: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 20.344686] fff00000c77d8200: 00 00 00 fc fc fc fc fc 00 00 00 04 fc fc fc fc [ 20.344752] >fff00000c77d8280: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 20.344793] ^ [ 20.344833] fff00000c77d8300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.344933] fff00000c77d8380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.344976] ==================================================================
[ 13.452652] ================================================================== [ 13.453101] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 13.453349] Read of size 1 at addr ffff8881038e97d8 by task kunit_try_catch/275 [ 13.453957] [ 13.454054] CPU: 1 UID: 0 PID: 275 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 13.454100] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.454113] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.454134] Call Trace: [ 13.454146] <TASK> [ 13.454162] dump_stack_lvl+0x73/0xb0 [ 13.454189] print_report+0xd1/0x650 [ 13.454212] ? __virt_addr_valid+0x1db/0x2d0 [ 13.454235] ? memcmp+0x1b4/0x1d0 [ 13.454252] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.454274] ? memcmp+0x1b4/0x1d0 [ 13.454294] kasan_report+0x141/0x180 [ 13.454316] ? memcmp+0x1b4/0x1d0 [ 13.454338] __asan_report_load1_noabort+0x18/0x20 [ 13.454363] memcmp+0x1b4/0x1d0 [ 13.454383] kasan_memcmp+0x18f/0x390 [ 13.454404] ? trace_hardirqs_on+0x37/0xe0 [ 13.454426] ? __pfx_kasan_memcmp+0x10/0x10 [ 13.454447] ? finish_task_switch.isra.0+0x153/0x700 [ 13.454483] ? __switch_to+0x47/0xf50 [ 13.454514] ? __pfx_read_tsc+0x10/0x10 [ 13.454534] ? ktime_get_ts64+0x86/0x230 [ 13.454558] kunit_try_run_case+0x1a5/0x480 [ 13.454582] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.454604] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.454627] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.454650] ? __kthread_parkme+0x82/0x180 [ 13.454671] ? preempt_count_sub+0x50/0x80 [ 13.454694] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.454718] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.454740] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.454764] kthread+0x337/0x6f0 [ 13.454783] ? trace_preempt_on+0x20/0xc0 [ 13.454805] ? __pfx_kthread+0x10/0x10 [ 13.454825] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.454847] ? calculate_sigpending+0x7b/0xa0 [ 13.454871] ? __pfx_kthread+0x10/0x10 [ 13.454891] ret_from_fork+0x116/0x1d0 [ 13.454909] ? __pfx_kthread+0x10/0x10 [ 13.454930] ret_from_fork_asm+0x1a/0x30 [ 13.454961] </TASK> [ 13.454972] [ 13.466154] Allocated by task 275: [ 13.466575] kasan_save_stack+0x45/0x70 [ 13.466912] kasan_save_track+0x18/0x40 [ 13.467110] kasan_save_alloc_info+0x3b/0x50 [ 13.467525] __kasan_kmalloc+0xb7/0xc0 [ 13.467905] __kmalloc_cache_noprof+0x189/0x420 [ 13.468251] kasan_memcmp+0xb7/0x390 [ 13.468436] kunit_try_run_case+0x1a5/0x480 [ 13.468635] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.469110] kthread+0x337/0x6f0 [ 13.469450] ret_from_fork+0x116/0x1d0 [ 13.469953] ret_from_fork_asm+0x1a/0x30 [ 13.470161] [ 13.470482] The buggy address belongs to the object at ffff8881038e97c0 [ 13.470482] which belongs to the cache kmalloc-32 of size 32 [ 13.471090] The buggy address is located 0 bytes to the right of [ 13.471090] allocated 24-byte region [ffff8881038e97c0, ffff8881038e97d8) [ 13.472302] [ 13.472560] The buggy address belongs to the physical page: [ 13.473054] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1038e9 [ 13.473596] flags: 0x200000000000000(node=0|zone=2) [ 13.474139] page_type: f5(slab) [ 13.474411] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 13.475075] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 13.475528] page dumped because: kasan: bad access detected [ 13.475891] [ 13.475991] Memory state around the buggy address: [ 13.476400] ffff8881038e9680: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 13.476837] ffff8881038e9700: 00 00 00 fc fc fc fc fc 00 00 00 04 fc fc fc fc [ 13.477133] >ffff8881038e9780: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 13.477671] ^ [ 13.478125] ffff8881038e9800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.478692] ffff8881038e9880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.479012] ==================================================================