Date
June 25, 2025, 8:08 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 26.335272] ================================================================== [ 26.335583] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 26.335755] Write of size 1 at addr fff00000c7931f00 by task kunit_try_catch/156 [ 26.335805] [ 26.335839] CPU: 1 UID: 0 PID: 156 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250625 #1 PREEMPT [ 26.335932] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.336009] Hardware name: linux,dummy-virt (DT) [ 26.336247] Call trace: [ 26.336274] show_stack+0x20/0x38 (C) [ 26.336354] dump_stack_lvl+0x8c/0xd0 [ 26.336414] print_report+0x118/0x608 [ 26.336602] kasan_report+0xdc/0x128 [ 26.336827] __asan_report_store1_noabort+0x20/0x30 [ 26.336882] kmalloc_big_oob_right+0x2a4/0x2f0 [ 26.337040] kunit_try_run_case+0x170/0x3f0 [ 26.337087] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 26.337172] kthread+0x328/0x630 [ 26.337246] ret_from_fork+0x10/0x20 [ 26.337307] [ 26.337392] Allocated by task 156: [ 26.337429] kasan_save_stack+0x3c/0x68 [ 26.337469] kasan_save_track+0x20/0x40 [ 26.337657] kasan_save_alloc_info+0x40/0x58 [ 26.337931] __kasan_kmalloc+0xd4/0xd8 [ 26.337977] __kmalloc_cache_noprof+0x16c/0x3c0 [ 26.338019] kmalloc_big_oob_right+0xb8/0x2f0 [ 26.338070] kunit_try_run_case+0x170/0x3f0 [ 26.338113] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 26.338157] kthread+0x328/0x630 [ 26.338480] ret_from_fork+0x10/0x20 [ 26.338622] [ 26.338668] The buggy address belongs to the object at fff00000c7930000 [ 26.338668] which belongs to the cache kmalloc-8k of size 8192 [ 26.338725] The buggy address is located 0 bytes to the right of [ 26.338725] allocated 7936-byte region [fff00000c7930000, fff00000c7931f00) [ 26.338985] [ 26.339097] The buggy address belongs to the physical page: [ 26.339137] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107930 [ 26.339199] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 26.339388] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 26.339631] page_type: f5(slab) [ 26.339753] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 26.340019] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 26.340232] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 26.340286] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 26.340332] head: 0bfffe0000000003 ffffc1ffc31e4c01 00000000ffffffff 00000000ffffffff [ 26.340378] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 26.340427] page dumped because: kasan: bad access detected [ 26.340458] [ 26.340477] Memory state around the buggy address: [ 26.340509] fff00000c7931e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.340571] fff00000c7931e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.340613] >fff00000c7931f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.340649] ^ [ 26.340814] fff00000c7931f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.341108] fff00000c7932000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.341148] ==================================================================
[ 21.346174] ================================================================== [ 21.346654] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 21.347239] Write of size 1 at addr ffff888103991f00 by task kunit_try_catch/173 [ 21.347479] [ 21.347586] CPU: 1 UID: 0 PID: 173 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250625 #1 PREEMPT(voluntary) [ 21.347633] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.347645] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 21.347666] Call Trace: [ 21.347678] <TASK> [ 21.347694] dump_stack_lvl+0x73/0xb0 [ 21.347721] print_report+0xd1/0x650 [ 21.347740] ? __virt_addr_valid+0x1db/0x2d0 [ 21.347762] ? kmalloc_big_oob_right+0x316/0x370 [ 21.347781] ? kasan_complete_mode_report_info+0x2a/0x200 [ 21.347805] ? kmalloc_big_oob_right+0x316/0x370 [ 21.347898] kasan_report+0x141/0x180 [ 21.347918] ? kmalloc_big_oob_right+0x316/0x370 [ 21.347956] __asan_report_store1_noabort+0x1b/0x30 [ 21.347979] kmalloc_big_oob_right+0x316/0x370 [ 21.347999] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 21.348020] ? __schedule+0x10cc/0x2b60 [ 21.348043] ? __pfx_read_tsc+0x10/0x10 [ 21.348063] ? ktime_get_ts64+0x86/0x230 [ 21.348085] kunit_try_run_case+0x1a5/0x480 [ 21.348110] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.348132] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 21.348151] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 21.348174] ? __kthread_parkme+0x82/0x180 [ 21.348193] ? preempt_count_sub+0x50/0x80 [ 21.348215] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.348237] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 21.348259] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 21.348282] kthread+0x337/0x6f0 [ 21.348300] ? trace_preempt_on+0x20/0xc0 [ 21.348321] ? __pfx_kthread+0x10/0x10 [ 21.348344] ? _raw_spin_unlock_irq+0x47/0x80 [ 21.348365] ? calculate_sigpending+0x7b/0xa0 [ 21.348386] ? __pfx_kthread+0x10/0x10 [ 21.348406] ret_from_fork+0x116/0x1d0 [ 21.348423] ? __pfx_kthread+0x10/0x10 [ 21.348441] ret_from_fork_asm+0x1a/0x30 [ 21.348470] </TASK> [ 21.348480] [ 21.358646] Allocated by task 173: [ 21.358782] kasan_save_stack+0x45/0x70 [ 21.359470] kasan_save_track+0x18/0x40 [ 21.360016] kasan_save_alloc_info+0x3b/0x50 [ 21.360562] __kasan_kmalloc+0xb7/0xc0 [ 21.361109] __kmalloc_cache_noprof+0x189/0x420 [ 21.361723] kmalloc_big_oob_right+0xa9/0x370 [ 21.362141] kunit_try_run_case+0x1a5/0x480 [ 21.362638] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 21.363282] kthread+0x337/0x6f0 [ 21.363559] ret_from_fork+0x116/0x1d0 [ 21.363703] ret_from_fork_asm+0x1a/0x30 [ 21.364041] [ 21.364306] The buggy address belongs to the object at ffff888103990000 [ 21.364306] which belongs to the cache kmalloc-8k of size 8192 [ 21.365761] The buggy address is located 0 bytes to the right of [ 21.365761] allocated 7936-byte region [ffff888103990000, ffff888103991f00) [ 21.366977] [ 21.367054] The buggy address belongs to the physical page: [ 21.367717] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103990 [ 21.368756] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 21.369517] flags: 0x200000000000040(head|node=0|zone=2) [ 21.370213] page_type: f5(slab) [ 21.370599] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 21.371050] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 21.372080] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 21.372647] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 21.373087] head: 0200000000000003 ffffea00040e6401 00000000ffffffff 00000000ffffffff [ 21.373933] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 21.374958] page dumped because: kasan: bad access detected [ 21.375704] [ 21.375949] Memory state around the buggy address: [ 21.376435] ffff888103991e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.376668] ffff888103991e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.376877] >ffff888103991f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.377091] ^ [ 21.377258] ffff888103991f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.377476] ffff888103992000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.378093] ==================================================================