Date
July 23, 2025, 2:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.676938] ================================================================== [ 17.677114] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 17.677217] Read of size 1 at addr fff00000c3f8c358 by task kunit_try_catch/257 [ 17.677324] [ 17.677392] CPU: 0 UID: 0 PID: 257 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7 #1 PREEMPT [ 17.677495] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.677526] Hardware name: linux,dummy-virt (DT) [ 17.677558] Call trace: [ 17.677582] show_stack+0x20/0x38 (C) [ 17.677980] dump_stack_lvl+0x8c/0xd0 [ 17.678136] print_report+0x118/0x5d0 [ 17.678196] kasan_report+0xdc/0x128 [ 17.678257] __asan_report_load1_noabort+0x20/0x30 [ 17.678312] memcmp+0x198/0x1d8 [ 17.678357] kasan_memcmp+0x16c/0x300 [ 17.678404] kunit_try_run_case+0x170/0x3f0 [ 17.678465] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.678520] kthread+0x328/0x630 [ 17.678798] ret_from_fork+0x10/0x20 [ 17.678869] [ 17.678890] Allocated by task 257: [ 17.678925] kasan_save_stack+0x3c/0x68 [ 17.679485] kasan_save_track+0x20/0x40 [ 17.679648] kasan_save_alloc_info+0x40/0x58 [ 17.680011] __kasan_kmalloc+0xd4/0xd8 [ 17.680201] __kmalloc_cache_noprof+0x16c/0x3c0 [ 17.680326] kasan_memcmp+0xbc/0x300 [ 17.680461] kunit_try_run_case+0x170/0x3f0 [ 17.680546] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.680878] kthread+0x328/0x630 [ 17.680928] ret_from_fork+0x10/0x20 [ 17.681144] [ 17.681201] The buggy address belongs to the object at fff00000c3f8c340 [ 17.681201] which belongs to the cache kmalloc-32 of size 32 [ 17.681358] The buggy address is located 0 bytes to the right of [ 17.681358] allocated 24-byte region [fff00000c3f8c340, fff00000c3f8c358) [ 17.681520] [ 17.681590] The buggy address belongs to the physical page: [ 17.682051] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103f8c [ 17.682172] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.682328] page_type: f5(slab) [ 17.682397] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 17.682500] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 17.682546] page dumped because: kasan: bad access detected [ 17.682957] [ 17.683237] Memory state around the buggy address: [ 17.683400] fff00000c3f8c200: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 17.683532] fff00000c3f8c280: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc [ 17.683706] >fff00000c3f8c300: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 17.683781] ^ [ 17.683901] fff00000c3f8c380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.684015] fff00000c3f8c400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.684112] ==================================================================
[ 14.438361] ================================================================== [ 14.438776] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 14.439034] Read of size 1 at addr ffff8881025e0998 by task kunit_try_catch/274 [ 14.439331] [ 14.439519] CPU: 1 UID: 0 PID: 274 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7 #1 PREEMPT(voluntary) [ 14.439566] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.439578] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.439599] Call Trace: [ 14.439611] <TASK> [ 14.439625] dump_stack_lvl+0x73/0xb0 [ 14.439653] print_report+0xd1/0x610 [ 14.439675] ? __virt_addr_valid+0x1db/0x2d0 [ 14.439696] ? memcmp+0x1b4/0x1d0 [ 14.439714] ? kasan_complete_mode_report_info+0x2a/0x200 [ 14.439736] ? memcmp+0x1b4/0x1d0 [ 14.439755] kasan_report+0x141/0x180 [ 14.439776] ? memcmp+0x1b4/0x1d0 [ 14.439799] __asan_report_load1_noabort+0x18/0x20 [ 14.439837] memcmp+0x1b4/0x1d0 [ 14.439857] kasan_memcmp+0x18f/0x390 [ 14.439877] ? trace_hardirqs_on+0x37/0xe0 [ 14.439900] ? __pfx_kasan_memcmp+0x10/0x10 [ 14.439920] ? finish_task_switch.isra.0+0x153/0x700 [ 14.439943] ? __switch_to+0x47/0xf50 [ 14.439972] ? __pfx_read_tsc+0x10/0x10 [ 14.439992] ? ktime_get_ts64+0x86/0x230 [ 14.440015] kunit_try_run_case+0x1a5/0x480 [ 14.440039] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.440061] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.440085] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.440108] ? __kthread_parkme+0x82/0x180 [ 14.440129] ? preempt_count_sub+0x50/0x80 [ 14.440151] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.440187] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.440260] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.440286] kthread+0x337/0x6f0 [ 14.440305] ? trace_preempt_on+0x20/0xc0 [ 14.440328] ? __pfx_kthread+0x10/0x10 [ 14.440348] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.440370] ? calculate_sigpending+0x7b/0xa0 [ 14.440393] ? __pfx_kthread+0x10/0x10 [ 14.440414] ret_from_fork+0x116/0x1d0 [ 14.440433] ? __pfx_kthread+0x10/0x10 [ 14.440453] ret_from_fork_asm+0x1a/0x30 [ 14.440483] </TASK> [ 14.440493] [ 14.448222] Allocated by task 274: [ 14.448407] kasan_save_stack+0x45/0x70 [ 14.448611] kasan_save_track+0x18/0x40 [ 14.448862] kasan_save_alloc_info+0x3b/0x50 [ 14.449060] __kasan_kmalloc+0xb7/0xc0 [ 14.449469] __kmalloc_cache_noprof+0x189/0x420 [ 14.449686] kasan_memcmp+0xb7/0x390 [ 14.449868] kunit_try_run_case+0x1a5/0x480 [ 14.450076] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.450449] kthread+0x337/0x6f0 [ 14.450594] ret_from_fork+0x116/0x1d0 [ 14.450786] ret_from_fork_asm+0x1a/0x30 [ 14.450959] [ 14.451033] The buggy address belongs to the object at ffff8881025e0980 [ 14.451033] which belongs to the cache kmalloc-32 of size 32 [ 14.451728] The buggy address is located 0 bytes to the right of [ 14.451728] allocated 24-byte region [ffff8881025e0980, ffff8881025e0998) [ 14.452334] [ 14.452417] The buggy address belongs to the physical page: [ 14.452594] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1025e0 [ 14.452853] flags: 0x200000000000000(node=0|zone=2) [ 14.453018] page_type: f5(slab) [ 14.453160] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.453499] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 14.454188] page dumped because: kasan: bad access detected [ 14.454563] [ 14.454660] Memory state around the buggy address: [ 14.454892] ffff8881025e0880: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.455217] ffff8881025e0900: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc [ 14.455530] >ffff8881025e0980: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.455747] ^ [ 14.455897] ffff8881025e0a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.456424] ffff8881025e0a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.456746] ==================================================================