Date
July 16, 2025, 3:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.421592] ================================================================== [ 16.421655] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 16.422369] Write of size 1 at addr fff00000c65fdf00 by task kunit_try_catch/144 [ 16.422482] [ 16.422519] CPU: 1 UID: 0 PID: 144 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 16.422881] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.422919] Hardware name: linux,dummy-virt (DT) [ 16.423035] Call trace: [ 16.423097] show_stack+0x20/0x38 (C) [ 16.423216] dump_stack_lvl+0x8c/0xd0 [ 16.423301] print_report+0x118/0x5d0 [ 16.423398] kasan_report+0xdc/0x128 [ 16.423749] __asan_report_store1_noabort+0x20/0x30 [ 16.423893] kmalloc_big_oob_right+0x2a4/0x2f0 [ 16.423994] kunit_try_run_case+0x170/0x3f0 [ 16.424152] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.424250] kthread+0x328/0x630 [ 16.424410] ret_from_fork+0x10/0x20 [ 16.424519] [ 16.424640] Allocated by task 144: [ 16.424948] kasan_save_stack+0x3c/0x68 [ 16.425017] kasan_save_track+0x20/0x40 [ 16.425139] kasan_save_alloc_info+0x40/0x58 [ 16.425269] __kasan_kmalloc+0xd4/0xd8 [ 16.425378] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.425454] kmalloc_big_oob_right+0xb8/0x2f0 [ 16.425598] kunit_try_run_case+0x170/0x3f0 [ 16.425731] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.425779] kthread+0x328/0x630 [ 16.425874] ret_from_fork+0x10/0x20 [ 16.426090] [ 16.426112] The buggy address belongs to the object at fff00000c65fc000 [ 16.426112] which belongs to the cache kmalloc-8k of size 8192 [ 16.426264] The buggy address is located 0 bytes to the right of [ 16.426264] allocated 7936-byte region [fff00000c65fc000, fff00000c65fdf00) [ 16.426341] [ 16.426381] The buggy address belongs to the physical page: [ 16.426603] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065f8 [ 16.426811] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.426975] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 16.427080] page_type: f5(slab) [ 16.427276] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 16.427413] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 16.427479] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 16.427528] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 16.427576] head: 0bfffe0000000003 ffffc1ffc3197e01 00000000ffffffff 00000000ffffffff [ 16.427932] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 16.427976] page dumped because: kasan: bad access detected [ 16.428017] [ 16.428035] Memory state around the buggy address: [ 16.428066] fff00000c65fde00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.428109] fff00000c65fde80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.428151] >fff00000c65fdf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.428189] ^ [ 16.428215] fff00000c65fdf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.428256] fff00000c65fe000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.428294] ==================================================================
[ 12.029699] ================================================================== [ 12.030329] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 12.030827] Write of size 1 at addr ffff888102b09f00 by task kunit_try_catch/161 [ 12.031057] [ 12.031146] CPU: 0 UID: 0 PID: 161 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.031197] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.031208] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.031229] Call Trace: [ 12.031241] <TASK> [ 12.031256] dump_stack_lvl+0x73/0xb0 [ 12.031285] print_report+0xd1/0x610 [ 12.031307] ? __virt_addr_valid+0x1db/0x2d0 [ 12.031330] ? kmalloc_big_oob_right+0x316/0x370 [ 12.031353] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.031624] ? kmalloc_big_oob_right+0x316/0x370 [ 12.031652] kasan_report+0x141/0x180 [ 12.031674] ? kmalloc_big_oob_right+0x316/0x370 [ 12.031703] __asan_report_store1_noabort+0x1b/0x30 [ 12.031729] kmalloc_big_oob_right+0x316/0x370 [ 12.031766] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 12.031790] ? __schedule+0x10cc/0x2b60 [ 12.031814] ? __pfx_read_tsc+0x10/0x10 [ 12.031835] ? ktime_get_ts64+0x86/0x230 [ 12.031861] kunit_try_run_case+0x1a5/0x480 [ 12.031886] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.031909] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.031933] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.031957] ? __kthread_parkme+0x82/0x180 [ 12.031978] ? preempt_count_sub+0x50/0x80 [ 12.032003] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.032074] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.032101] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.032127] kthread+0x337/0x6f0 [ 12.032176] ? trace_preempt_on+0x20/0xc0 [ 12.032202] ? __pfx_kthread+0x10/0x10 [ 12.032222] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.032244] ? calculate_sigpending+0x7b/0xa0 [ 12.032269] ? __pfx_kthread+0x10/0x10 [ 12.032291] ret_from_fork+0x116/0x1d0 [ 12.032310] ? __pfx_kthread+0x10/0x10 [ 12.032330] ret_from_fork_asm+0x1a/0x30 [ 12.032361] </TASK> [ 12.032372] [ 12.047142] Allocated by task 161: [ 12.047675] kasan_save_stack+0x45/0x70 [ 12.047842] kasan_save_track+0x18/0x40 [ 12.048034] kasan_save_alloc_info+0x3b/0x50 [ 12.048469] __kasan_kmalloc+0xb7/0xc0 [ 12.048912] __kmalloc_cache_noprof+0x189/0x420 [ 12.049460] kmalloc_big_oob_right+0xa9/0x370 [ 12.049879] kunit_try_run_case+0x1a5/0x480 [ 12.050399] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.050809] kthread+0x337/0x6f0 [ 12.050934] ret_from_fork+0x116/0x1d0 [ 12.051355] ret_from_fork_asm+0x1a/0x30 [ 12.051787] [ 12.051955] The buggy address belongs to the object at ffff888102b08000 [ 12.051955] which belongs to the cache kmalloc-8k of size 8192 [ 12.053166] The buggy address is located 0 bytes to the right of [ 12.053166] allocated 7936-byte region [ffff888102b08000, ffff888102b09f00) [ 12.053954] [ 12.054194] The buggy address belongs to the physical page: [ 12.054744] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b08 [ 12.055321] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 12.056020] flags: 0x200000000000040(head|node=0|zone=2) [ 12.056527] page_type: f5(slab) [ 12.056848] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 12.057453] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 12.058059] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 12.058790] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 12.059361] head: 0200000000000003 ffffea00040ac201 00000000ffffffff 00000000ffffffff [ 12.060091] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 12.060324] page dumped because: kasan: bad access detected [ 12.060570] [ 12.060737] Memory state around the buggy address: [ 12.061241] ffff888102b09e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.061954] ffff888102b09e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.062704] >ffff888102b09f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.063337] ^ [ 12.063515] ffff888102b09f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.064282] ffff888102b0a000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.064787] ==================================================================