Date
July 8, 2025, 11:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 33.495346] ================================================================== [ 33.495408] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 33.495464] Read of size 1 at addr fff00000c9a66118 by task kunit_try_catch/288 [ 33.495590] [ 33.495629] CPU: 0 UID: 0 PID: 288 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250708 #1 PREEMPT [ 33.495725] Tainted: [B]=BAD_PAGE, [N]=TEST [ 33.495756] Hardware name: linux,dummy-virt (DT) [ 33.495790] Call trace: [ 33.495827] show_stack+0x20/0x38 (C) [ 33.495882] dump_stack_lvl+0x8c/0xd0 [ 33.495931] print_report+0x118/0x5d0 [ 33.495982] kasan_report+0xdc/0x128 [ 33.496031] __asan_report_load1_noabort+0x20/0x30 [ 33.496082] memcmp+0x198/0x1d8 [ 33.496127] kasan_memcmp+0x16c/0x300 [ 33.496174] kunit_try_run_case+0x170/0x3f0 [ 33.496239] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.496306] kthread+0x328/0x630 [ 33.496352] ret_from_fork+0x10/0x20 [ 33.496402] [ 33.496425] Allocated by task 288: [ 33.496456] kasan_save_stack+0x3c/0x68 [ 33.496499] kasan_save_track+0x20/0x40 [ 33.497150] kasan_save_alloc_info+0x40/0x58 [ 33.497262] __kasan_kmalloc+0xd4/0xd8 [ 33.497368] __kmalloc_cache_noprof+0x16c/0x3c0 [ 33.497446] kasan_memcmp+0xbc/0x300 [ 33.497661] kunit_try_run_case+0x170/0x3f0 [ 33.497704] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.497888] kthread+0x328/0x630 [ 33.498002] ret_from_fork+0x10/0x20 [ 33.498066] [ 33.498163] The buggy address belongs to the object at fff00000c9a66100 [ 33.498163] which belongs to the cache kmalloc-32 of size 32 [ 33.498285] The buggy address is located 0 bytes to the right of [ 33.498285] allocated 24-byte region [fff00000c9a66100, fff00000c9a66118) [ 33.498425] [ 33.498474] The buggy address belongs to the physical page: [ 33.498525] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109a66 [ 33.498640] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 33.498719] page_type: f5(slab) [ 33.498761] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 33.499064] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 33.499134] page dumped because: kasan: bad access detected [ 33.499190] [ 33.499302] Memory state around the buggy address: [ 33.499352] fff00000c9a66000: 00 00 00 fc fc fc fc fc 00 00 00 04 fc fc fc fc [ 33.499446] fff00000c9a66080: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 33.499575] >fff00000c9a66100: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.499635] ^ [ 33.499705] fff00000c9a66180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.500004] fff00000c9a66200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.500084] ==================================================================
[ 25.298016] ================================================================== [ 25.298430] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 25.298653] Read of size 1 at addr ffff8881059cd198 by task kunit_try_catch/305 [ 25.299303] [ 25.299520] CPU: 0 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250708 #1 PREEMPT(voluntary) [ 25.299578] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.299592] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.299617] Call Trace: [ 25.299632] <TASK> [ 25.299654] dump_stack_lvl+0x73/0xb0 [ 25.299686] print_report+0xd1/0x610 [ 25.299713] ? __virt_addr_valid+0x1db/0x2d0 [ 25.299742] ? memcmp+0x1b4/0x1d0 [ 25.299765] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.299795] ? memcmp+0x1b4/0x1d0 [ 25.299875] kasan_report+0x141/0x180 [ 25.299900] ? memcmp+0x1b4/0x1d0 [ 25.299927] __asan_report_load1_noabort+0x18/0x20 [ 25.299954] memcmp+0x1b4/0x1d0 [ 25.299979] kasan_memcmp+0x18f/0x390 [ 25.300001] ? trace_hardirqs_on+0x37/0xe0 [ 25.300028] ? __pfx_kasan_memcmp+0x10/0x10 [ 25.300050] ? finish_task_switch.isra.0+0x153/0x700 [ 25.300074] ? __switch_to+0x47/0xf50 [ 25.300108] ? __pfx_read_tsc+0x10/0x10 [ 25.300134] ? ktime_get_ts64+0x86/0x230 [ 25.300163] kunit_try_run_case+0x1a5/0x480 [ 25.300189] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.300210] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.300233] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.300273] ? __kthread_parkme+0x82/0x180 [ 25.300294] ? preempt_count_sub+0x50/0x80 [ 25.300318] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.300341] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.300368] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.300395] kthread+0x337/0x6f0 [ 25.300417] ? trace_preempt_on+0x20/0xc0 [ 25.300441] ? __pfx_kthread+0x10/0x10 [ 25.300464] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.300492] ? calculate_sigpending+0x7b/0xa0 [ 25.300520] ? __pfx_kthread+0x10/0x10 [ 25.300544] ret_from_fork+0x116/0x1d0 [ 25.300563] ? __pfx_kthread+0x10/0x10 [ 25.300586] ret_from_fork_asm+0x1a/0x30 [ 25.300622] </TASK> [ 25.300634] [ 25.312345] Allocated by task 305: [ 25.312481] kasan_save_stack+0x45/0x70 [ 25.312628] kasan_save_track+0x18/0x40 [ 25.312757] kasan_save_alloc_info+0x3b/0x50 [ 25.313083] __kasan_kmalloc+0xb7/0xc0 [ 25.313445] __kmalloc_cache_noprof+0x189/0x420 [ 25.313909] kasan_memcmp+0xb7/0x390 [ 25.314261] kunit_try_run_case+0x1a5/0x480 [ 25.314641] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.315310] kthread+0x337/0x6f0 [ 25.315627] ret_from_fork+0x116/0x1d0 [ 25.315982] ret_from_fork_asm+0x1a/0x30 [ 25.316470] [ 25.316661] The buggy address belongs to the object at ffff8881059cd180 [ 25.316661] which belongs to the cache kmalloc-32 of size 32 [ 25.317744] The buggy address is located 0 bytes to the right of [ 25.317744] allocated 24-byte region [ffff8881059cd180, ffff8881059cd198) [ 25.318556] [ 25.318626] The buggy address belongs to the physical page: [ 25.318798] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1059cd [ 25.319527] flags: 0x200000000000000(node=0|zone=2) [ 25.320003] page_type: f5(slab) [ 25.320391] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 25.321152] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 25.321422] page dumped because: kasan: bad access detected [ 25.321589] [ 25.321652] Memory state around the buggy address: [ 25.321806] ffff8881059cd080: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 25.322423] ffff8881059cd100: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 25.323075] >ffff8881059cd180: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.323667] ^ [ 25.324040] ffff8881059cd200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.324649] ffff8881059cd280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.325259] ==================================================================