Date
June 20, 2025, 12:38 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 35.080163] ================================================================== [ 35.080383] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 35.080557] Read of size 1 at addr fff00000c7699b18 by task kunit_try_catch/268 [ 35.081151] [ 35.081275] CPU: 0 UID: 0 PID: 268 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250620 #1 PREEMPT [ 35.081701] Tainted: [B]=BAD_PAGE, [N]=TEST [ 35.081888] Hardware name: linux,dummy-virt (DT) [ 35.082075] Call trace: [ 35.082158] show_stack+0x20/0x38 (C) [ 35.082686] dump_stack_lvl+0x8c/0xd0 [ 35.083009] print_report+0x118/0x608 [ 35.083443] kasan_report+0xdc/0x128 [ 35.083802] __asan_report_load1_noabort+0x20/0x30 [ 35.084015] memcmp+0x198/0x1d8 [ 35.084168] kasan_memcmp+0x16c/0x300 [ 35.084298] kunit_try_run_case+0x170/0x3f0 [ 35.084413] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 35.084524] kthread+0x328/0x630 [ 35.084640] ret_from_fork+0x10/0x20 [ 35.085059] [ 35.085444] Allocated by task 268: [ 35.085823] kasan_save_stack+0x3c/0x68 [ 35.086181] kasan_save_track+0x20/0x40 [ 35.086302] kasan_save_alloc_info+0x40/0x58 [ 35.086686] __kasan_kmalloc+0xd4/0xd8 [ 35.087032] __kmalloc_cache_noprof+0x16c/0x3c0 [ 35.087226] kasan_memcmp+0xbc/0x300 [ 35.087389] kunit_try_run_case+0x170/0x3f0 [ 35.087791] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 35.088167] kthread+0x328/0x630 [ 35.088468] ret_from_fork+0x10/0x20 [ 35.088727] [ 35.088790] The buggy address belongs to the object at fff00000c7699b00 [ 35.088790] which belongs to the cache kmalloc-32 of size 32 [ 35.088960] The buggy address is located 0 bytes to the right of [ 35.088960] allocated 24-byte region [fff00000c7699b00, fff00000c7699b18) [ 35.089143] [ 35.089209] The buggy address belongs to the physical page: [ 35.089304] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107699 [ 35.089505] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 35.089931] page_type: f5(slab) [ 35.090418] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 35.090672] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 35.090830] page dumped because: kasan: bad access detected [ 35.090942] [ 35.091063] Memory state around the buggy address: [ 35.091159] fff00000c7699a00: 00 00 00 fc fc fc fc fc 00 00 00 04 fc fc fc fc [ 35.091285] fff00000c7699a80: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 35.091402] >fff00000c7699b00: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.091526] ^ [ 35.091625] fff00000c7699b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.091767] fff00000c7699c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.091873] ==================================================================
[ 27.786290] ================================================================== [ 27.786769] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 27.787042] Read of size 1 at addr ffff888100a31058 by task kunit_try_catch/286 [ 27.787289] [ 27.787894] CPU: 1 UID: 0 PID: 286 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250620 #1 PREEMPT(voluntary) [ 27.788022] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.788051] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 27.788096] Call Trace: [ 27.788121] <TASK> [ 27.788155] dump_stack_lvl+0x73/0xb0 [ 27.788212] print_report+0xd1/0x650 [ 27.788249] ? __virt_addr_valid+0x1db/0x2d0 [ 27.788290] ? memcmp+0x1b4/0x1d0 [ 27.788368] ? kasan_complete_mode_report_info+0x2a/0x200 [ 27.788417] ? memcmp+0x1b4/0x1d0 [ 27.788466] kasan_report+0x141/0x180 [ 27.788528] ? memcmp+0x1b4/0x1d0 [ 27.788571] __asan_report_load1_noabort+0x18/0x20 [ 27.788613] memcmp+0x1b4/0x1d0 [ 27.788651] kasan_memcmp+0x18f/0x390 [ 27.788691] ? trace_hardirqs_on+0x37/0xe0 [ 27.788743] ? __pfx_kasan_memcmp+0x10/0x10 [ 27.788788] ? finish_task_switch.isra.0+0x153/0x700 [ 27.788840] ? __switch_to+0x47/0xf50 [ 27.788907] ? __pfx_read_tsc+0x10/0x10 [ 27.788958] ? ktime_get_ts64+0x86/0x230 [ 27.789019] kunit_try_run_case+0x1a5/0x480 [ 27.789075] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.789123] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 27.789165] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 27.789205] ? __kthread_parkme+0x82/0x180 [ 27.789235] ? preempt_count_sub+0x50/0x80 [ 27.789258] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.789283] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.789308] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 27.789333] kthread+0x337/0x6f0 [ 27.789354] ? trace_preempt_on+0x20/0xc0 [ 27.789377] ? __pfx_kthread+0x10/0x10 [ 27.789400] ? _raw_spin_unlock_irq+0x47/0x80 [ 27.789422] ? calculate_sigpending+0x7b/0xa0 [ 27.789474] ? __pfx_kthread+0x10/0x10 [ 27.789500] ret_from_fork+0x116/0x1d0 [ 27.789521] ? __pfx_kthread+0x10/0x10 [ 27.789543] ret_from_fork_asm+0x1a/0x30 [ 27.789578] </TASK> [ 27.789592] [ 27.800324] Allocated by task 286: [ 27.800725] kasan_save_stack+0x45/0x70 [ 27.801095] kasan_save_track+0x18/0x40 [ 27.801359] kasan_save_alloc_info+0x3b/0x50 [ 27.801706] __kasan_kmalloc+0xb7/0xc0 [ 27.801903] __kmalloc_cache_noprof+0x189/0x420 [ 27.802127] kasan_memcmp+0xb7/0x390 [ 27.802993] kunit_try_run_case+0x1a5/0x480 [ 27.803453] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.803912] kthread+0x337/0x6f0 [ 27.804108] ret_from_fork+0x116/0x1d0 [ 27.804822] ret_from_fork_asm+0x1a/0x30 [ 27.805417] [ 27.805544] The buggy address belongs to the object at ffff888100a31040 [ 27.805544] which belongs to the cache kmalloc-32 of size 32 [ 27.806220] The buggy address is located 0 bytes to the right of [ 27.806220] allocated 24-byte region [ffff888100a31040, ffff888100a31058) [ 27.807204] [ 27.807427] The buggy address belongs to the physical page: [ 27.807685] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x100a31 [ 27.808168] flags: 0x200000000000000(node=0|zone=2) [ 27.808432] page_type: f5(slab) [ 27.808762] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 27.809165] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 27.809719] page dumped because: kasan: bad access detected [ 27.809980] [ 27.810171] Memory state around the buggy address: [ 27.810727] ffff888100a30f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.811124] ffff888100a30f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.811635] >ffff888100a31000: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 27.812063] ^ [ 27.812510] ffff888100a31080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.812770] ffff888100a31100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.813356] ==================================================================