Date
July 9, 2025, 11:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.402071] ================================================================== [ 16.402540] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 16.402654] Write of size 1 at addr fff00000c7709f00 by task kunit_try_catch/144 [ 16.402752] [ 16.402790] CPU: 1 UID: 0 PID: 144 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.403205] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.403293] Hardware name: linux,dummy-virt (DT) [ 16.403339] Call trace: [ 16.403519] show_stack+0x20/0x38 (C) [ 16.403590] dump_stack_lvl+0x8c/0xd0 [ 16.403738] print_report+0x118/0x608 [ 16.403997] kasan_report+0xdc/0x128 [ 16.404072] __asan_report_store1_noabort+0x20/0x30 [ 16.404134] kmalloc_big_oob_right+0x2a4/0x2f0 [ 16.404180] kunit_try_run_case+0x170/0x3f0 [ 16.404227] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.404278] kthread+0x328/0x630 [ 16.404319] ret_from_fork+0x10/0x20 [ 16.404367] [ 16.404385] Allocated by task 144: [ 16.404728] kasan_save_stack+0x3c/0x68 [ 16.404779] kasan_save_track+0x20/0x40 [ 16.404881] kasan_save_alloc_info+0x40/0x58 [ 16.405237] __kasan_kmalloc+0xd4/0xd8 [ 16.405325] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.405485] kmalloc_big_oob_right+0xb8/0x2f0 [ 16.405728] kunit_try_run_case+0x170/0x3f0 [ 16.406206] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.406308] kthread+0x328/0x630 [ 16.406437] ret_from_fork+0x10/0x20 [ 16.406505] [ 16.406753] The buggy address belongs to the object at fff00000c7708000 [ 16.406753] which belongs to the cache kmalloc-8k of size 8192 [ 16.406907] The buggy address is located 0 bytes to the right of [ 16.406907] allocated 7936-byte region [fff00000c7708000, fff00000c7709f00) [ 16.407023] [ 16.407054] The buggy address belongs to the physical page: [ 16.407102] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107708 [ 16.407170] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.407216] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 16.407283] page_type: f5(slab) [ 16.407348] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 16.407418] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 16.407475] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 16.407521] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 16.407568] head: 0bfffe0000000003 ffffc1ffc31dc201 00000000ffffffff 00000000ffffffff [ 16.407614] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 16.407654] page dumped because: kasan: bad access detected [ 16.408010] [ 16.408034] Memory state around the buggy address: [ 16.408068] fff00000c7709e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.408110] fff00000c7709e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.408164] >fff00000c7709f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.408200] ^ [ 16.408227] fff00000c7709f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.408268] fff00000c770a000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.408304] ==================================================================
[ 12.025820] ================================================================== [ 12.026325] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 12.026651] Write of size 1 at addr ffff888103889f00 by task kunit_try_catch/161 [ 12.027453] [ 12.027845] CPU: 1 UID: 0 PID: 161 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.027890] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.027902] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.027921] Call Trace: [ 12.027933] <TASK> [ 12.027949] dump_stack_lvl+0x73/0xb0 [ 12.027979] print_report+0xd1/0x650 [ 12.028001] ? __virt_addr_valid+0x1db/0x2d0 [ 12.028055] ? kmalloc_big_oob_right+0x316/0x370 [ 12.028089] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.028112] ? kmalloc_big_oob_right+0x316/0x370 [ 12.028135] kasan_report+0x141/0x180 [ 12.028157] ? kmalloc_big_oob_right+0x316/0x370 [ 12.028184] __asan_report_store1_noabort+0x1b/0x30 [ 12.028209] kmalloc_big_oob_right+0x316/0x370 [ 12.028231] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 12.028254] ? __schedule+0x10cc/0x2b60 [ 12.028276] ? __pfx_read_tsc+0x10/0x10 [ 12.028296] ? ktime_get_ts64+0x86/0x230 [ 12.028324] kunit_try_run_case+0x1a5/0x480 [ 12.028348] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.028370] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.028392] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.028416] ? __kthread_parkme+0x82/0x180 [ 12.028436] ? preempt_count_sub+0x50/0x80 [ 12.028459] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.028483] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.028506] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.028532] kthread+0x337/0x6f0 [ 12.028550] ? trace_preempt_on+0x20/0xc0 [ 12.028573] ? __pfx_kthread+0x10/0x10 [ 12.028593] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.028614] ? calculate_sigpending+0x7b/0xa0 [ 12.028637] ? __pfx_kthread+0x10/0x10 [ 12.028658] ret_from_fork+0x116/0x1d0 [ 12.028676] ? __pfx_kthread+0x10/0x10 [ 12.028696] ret_from_fork_asm+0x1a/0x30 [ 12.028738] </TASK> [ 12.028748] [ 12.046136] Allocated by task 161: [ 12.046271] kasan_save_stack+0x45/0x70 [ 12.046422] kasan_save_track+0x18/0x40 [ 12.046557] kasan_save_alloc_info+0x3b/0x50 [ 12.046844] __kasan_kmalloc+0xb7/0xc0 [ 12.047509] __kmalloc_cache_noprof+0x189/0x420 [ 12.048097] kmalloc_big_oob_right+0xa9/0x370 [ 12.048617] kunit_try_run_case+0x1a5/0x480 [ 12.049190] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.049860] kthread+0x337/0x6f0 [ 12.050357] ret_from_fork+0x116/0x1d0 [ 12.050859] ret_from_fork_asm+0x1a/0x30 [ 12.051359] [ 12.051497] The buggy address belongs to the object at ffff888103888000 [ 12.051497] which belongs to the cache kmalloc-8k of size 8192 [ 12.052112] The buggy address is located 0 bytes to the right of [ 12.052112] allocated 7936-byte region [ffff888103888000, ffff888103889f00) [ 12.052493] [ 12.052567] The buggy address belongs to the physical page: [ 12.052755] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103888 [ 12.052994] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 12.053220] flags: 0x200000000000040(head|node=0|zone=2) [ 12.053398] page_type: f5(slab) [ 12.053520] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 12.053837] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 12.054513] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 12.055288] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 12.056291] head: 0200000000000003 ffffea00040e2201 00000000ffffffff 00000000ffffffff [ 12.057071] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 12.057861] page dumped because: kasan: bad access detected [ 12.058478] [ 12.058665] Memory state around the buggy address: [ 12.059208] ffff888103889e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.060019] ffff888103889e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.060875] >ffff888103889f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.061647] ^ [ 12.061995] ffff888103889f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.062685] ffff88810388a000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.063430] ==================================================================