Date
July 10, 2025, 11:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.719364] ================================================================== [ 15.719425] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 15.719539] Write of size 1 at addr fff00000c65a5f00 by task kunit_try_catch/144 [ 15.719613] [ 15.719650] CPU: 1 UID: 0 PID: 144 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 15.719956] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.719984] Hardware name: linux,dummy-virt (DT) [ 15.720032] Call trace: [ 15.720075] show_stack+0x20/0x38 (C) [ 15.720154] dump_stack_lvl+0x8c/0xd0 [ 15.720221] print_report+0x118/0x608 [ 15.720277] kasan_report+0xdc/0x128 [ 15.720373] __asan_report_store1_noabort+0x20/0x30 [ 15.720451] kmalloc_big_oob_right+0x2a4/0x2f0 [ 15.720517] kunit_try_run_case+0x170/0x3f0 [ 15.720566] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.720638] kthread+0x328/0x630 [ 15.720697] ret_from_fork+0x10/0x20 [ 15.720763] [ 15.720788] Allocated by task 144: [ 15.720865] kasan_save_stack+0x3c/0x68 [ 15.720912] kasan_save_track+0x20/0x40 [ 15.720949] kasan_save_alloc_info+0x40/0x58 [ 15.720989] __kasan_kmalloc+0xd4/0xd8 [ 15.721041] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.721336] kmalloc_big_oob_right+0xb8/0x2f0 [ 15.721394] kunit_try_run_case+0x170/0x3f0 [ 15.721433] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.721514] kthread+0x328/0x630 [ 15.721551] ret_from_fork+0x10/0x20 [ 15.721649] [ 15.721689] The buggy address belongs to the object at fff00000c65a4000 [ 15.721689] which belongs to the cache kmalloc-8k of size 8192 [ 15.721762] The buggy address is located 0 bytes to the right of [ 15.721762] allocated 7936-byte region [fff00000c65a4000, fff00000c65a5f00) [ 15.721933] [ 15.722022] The buggy address belongs to the physical page: [ 15.722158] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065a0 [ 15.722213] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 15.722258] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 15.722330] page_type: f5(slab) [ 15.722368] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 15.722416] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 15.722704] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 15.722851] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 15.722983] head: 0bfffe0000000003 ffffc1ffc3196801 00000000ffffffff 00000000ffffffff [ 15.723129] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 15.723228] page dumped because: kasan: bad access detected [ 15.723315] [ 15.723431] Memory state around the buggy address: [ 15.723500] fff00000c65a5e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.723574] fff00000c65a5e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.723713] >fff00000c65a5f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.723750] ^ [ 15.723787] fff00000c65a5f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.724125] fff00000c65a6000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.724192] ==================================================================
[ 12.235639] ================================================================== [ 12.236160] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 12.236505] Write of size 1 at addr ffff8881038e1f00 by task kunit_try_catch/161 [ 12.236808] [ 12.236917] CPU: 0 UID: 0 PID: 161 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.236958] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.236969] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.236988] Call Trace: [ 12.236999] <TASK> [ 12.237015] dump_stack_lvl+0x73/0xb0 [ 12.237046] print_report+0xd1/0x650 [ 12.237069] ? __virt_addr_valid+0x1db/0x2d0 [ 12.237274] ? kmalloc_big_oob_right+0x316/0x370 [ 12.237297] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.237320] ? kmalloc_big_oob_right+0x316/0x370 [ 12.237343] kasan_report+0x141/0x180 [ 12.237373] ? kmalloc_big_oob_right+0x316/0x370 [ 12.237400] __asan_report_store1_noabort+0x1b/0x30 [ 12.237427] kmalloc_big_oob_right+0x316/0x370 [ 12.237461] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 12.237484] ? __schedule+0x10cc/0x2b60 [ 12.237507] ? __pfx_read_tsc+0x10/0x10 [ 12.237528] ? ktime_get_ts64+0x86/0x230 [ 12.237552] kunit_try_run_case+0x1a5/0x480 [ 12.237577] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.237600] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.237623] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.237646] ? __kthread_parkme+0x82/0x180 [ 12.237666] ? preempt_count_sub+0x50/0x80 [ 12.237702] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.237902] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.237932] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.237957] kthread+0x337/0x6f0 [ 12.237976] ? trace_preempt_on+0x20/0xc0 [ 12.237999] ? __pfx_kthread+0x10/0x10 [ 12.238019] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.238040] ? calculate_sigpending+0x7b/0xa0 [ 12.238063] ? __pfx_kthread+0x10/0x10 [ 12.238084] ret_from_fork+0x116/0x1d0 [ 12.238101] ? __pfx_kthread+0x10/0x10 [ 12.238121] ret_from_fork_asm+0x1a/0x30 [ 12.238152] </TASK> [ 12.238161] [ 12.245757] Allocated by task 161: [ 12.245913] kasan_save_stack+0x45/0x70 [ 12.246125] kasan_save_track+0x18/0x40 [ 12.246316] kasan_save_alloc_info+0x3b/0x50 [ 12.246502] __kasan_kmalloc+0xb7/0xc0 [ 12.246927] __kmalloc_cache_noprof+0x189/0x420 [ 12.247137] kmalloc_big_oob_right+0xa9/0x370 [ 12.247286] kunit_try_run_case+0x1a5/0x480 [ 12.247444] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.247684] kthread+0x337/0x6f0 [ 12.247848] ret_from_fork+0x116/0x1d0 [ 12.248051] ret_from_fork_asm+0x1a/0x30 [ 12.248306] [ 12.248382] The buggy address belongs to the object at ffff8881038e0000 [ 12.248382] which belongs to the cache kmalloc-8k of size 8192 [ 12.249172] The buggy address is located 0 bytes to the right of [ 12.249172] allocated 7936-byte region [ffff8881038e0000, ffff8881038e1f00) [ 12.249768] [ 12.249984] The buggy address belongs to the physical page: [ 12.250247] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1038e0 [ 12.250665] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 12.250907] flags: 0x200000000000040(head|node=0|zone=2) [ 12.251185] page_type: f5(slab) [ 12.251351] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 12.251866] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 12.252201] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 12.252733] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 12.253070] head: 0200000000000003 ffffea00040e3801 00000000ffffffff 00000000ffffffff [ 12.253397] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 12.253760] page dumped because: kasan: bad access detected [ 12.253961] [ 12.254065] Memory state around the buggy address: [ 12.254285] ffff8881038e1e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.254667] ffff8881038e1e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.255020] >ffff8881038e1f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.255464] ^ [ 12.255649] ffff8881038e1f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.255969] ffff8881038e2000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.256283] ==================================================================