Date
July 9, 2025, 2:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.726672] ================================================================== [ 16.726748] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 16.726806] Write of size 1 at addr fff00000c448df00 by task kunit_try_catch/144 [ 16.727175] [ 16.727243] CPU: 0 UID: 0 PID: 144 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.727337] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.727363] Hardware name: linux,dummy-virt (DT) [ 16.727405] Call trace: [ 16.727748] show_stack+0x20/0x38 (C) [ 16.727819] dump_stack_lvl+0x8c/0xd0 [ 16.727926] print_report+0x118/0x608 [ 16.728005] kasan_report+0xdc/0x128 [ 16.728057] __asan_report_store1_noabort+0x20/0x30 [ 16.728151] kmalloc_big_oob_right+0x2a4/0x2f0 [ 16.728406] kunit_try_run_case+0x170/0x3f0 [ 16.728560] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.728637] kthread+0x328/0x630 [ 16.728680] ret_from_fork+0x10/0x20 [ 16.728729] [ 16.728835] Allocated by task 144: [ 16.729107] kasan_save_stack+0x3c/0x68 [ 16.729192] kasan_save_track+0x20/0x40 [ 16.729249] kasan_save_alloc_info+0x40/0x58 [ 16.729290] __kasan_kmalloc+0xd4/0xd8 [ 16.729326] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.729468] kmalloc_big_oob_right+0xb8/0x2f0 [ 16.729807] kunit_try_run_case+0x170/0x3f0 [ 16.729906] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.730037] kthread+0x328/0x630 [ 16.730126] ret_from_fork+0x10/0x20 [ 16.730163] [ 16.730183] The buggy address belongs to the object at fff00000c448c000 [ 16.730183] which belongs to the cache kmalloc-8k of size 8192 [ 16.730247] The buggy address is located 0 bytes to the right of [ 16.730247] allocated 7936-byte region [fff00000c448c000, fff00000c448df00) [ 16.730314] [ 16.730334] The buggy address belongs to the physical page: [ 16.730366] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104488 [ 16.730721] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.730847] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 16.731024] page_type: f5(slab) [ 16.731118] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 16.731479] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 16.731620] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 16.731756] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 16.731842] head: 0bfffe0000000003 ffffc1ffc3112201 00000000ffffffff 00000000ffffffff [ 16.731928] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 16.732245] page dumped because: kasan: bad access detected [ 16.732362] [ 16.732423] Memory state around the buggy address: [ 16.732530] fff00000c448de00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.732649] fff00000c448de80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.732756] >fff00000c448df00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.732795] ^ [ 16.732893] fff00000c448df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.733179] fff00000c448e000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.733323] ==================================================================
[ 12.207630] ================================================================== [ 12.208798] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 12.209492] Write of size 1 at addr ffff888102035f00 by task kunit_try_catch/161 [ 12.209930] [ 12.210027] CPU: 1 UID: 0 PID: 161 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.210074] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.210085] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.210106] Call Trace: [ 12.210120] <TASK> [ 12.210137] dump_stack_lvl+0x73/0xb0 [ 12.210168] print_report+0xd1/0x650 [ 12.210192] ? __virt_addr_valid+0x1db/0x2d0 [ 12.210216] ? kmalloc_big_oob_right+0x316/0x370 [ 12.210237] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.210260] ? kmalloc_big_oob_right+0x316/0x370 [ 12.210282] kasan_report+0x141/0x180 [ 12.210304] ? kmalloc_big_oob_right+0x316/0x370 [ 12.210331] __asan_report_store1_noabort+0x1b/0x30 [ 12.210356] kmalloc_big_oob_right+0x316/0x370 [ 12.210379] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 12.210402] ? __schedule+0x10cc/0x2b60 [ 12.210425] ? __pfx_read_tsc+0x10/0x10 [ 12.210446] ? ktime_get_ts64+0x86/0x230 [ 12.210473] kunit_try_run_case+0x1a5/0x480 [ 12.210501] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.210524] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.210550] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.210573] ? __kthread_parkme+0x82/0x180 [ 12.210607] ? preempt_count_sub+0x50/0x80 [ 12.210632] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.210657] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.210681] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.210706] kthread+0x337/0x6f0 [ 12.210726] ? trace_preempt_on+0x20/0xc0 [ 12.210751] ? __pfx_kthread+0x10/0x10 [ 12.210771] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.210792] ? calculate_sigpending+0x7b/0xa0 [ 12.210817] ? __pfx_kthread+0x10/0x10 [ 12.210844] ret_from_fork+0x116/0x1d0 [ 12.210863] ? __pfx_kthread+0x10/0x10 [ 12.210883] ret_from_fork_asm+0x1a/0x30 [ 12.210916] </TASK> [ 12.210926] [ 12.219188] Allocated by task 161: [ 12.219361] kasan_save_stack+0x45/0x70 [ 12.219562] kasan_save_track+0x18/0x40 [ 12.219749] kasan_save_alloc_info+0x3b/0x50 [ 12.220376] __kasan_kmalloc+0xb7/0xc0 [ 12.220567] __kmalloc_cache_noprof+0x189/0x420 [ 12.221118] kmalloc_big_oob_right+0xa9/0x370 [ 12.221532] kunit_try_run_case+0x1a5/0x480 [ 12.222005] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.222310] kthread+0x337/0x6f0 [ 12.222469] ret_from_fork+0x116/0x1d0 [ 12.222654] ret_from_fork_asm+0x1a/0x30 [ 12.223298] [ 12.223577] The buggy address belongs to the object at ffff888102034000 [ 12.223577] which belongs to the cache kmalloc-8k of size 8192 [ 12.224489] The buggy address is located 0 bytes to the right of [ 12.224489] allocated 7936-byte region [ffff888102034000, ffff888102035f00) [ 12.225244] [ 12.225478] The buggy address belongs to the physical page: [ 12.225750] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102030 [ 12.226242] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 12.226545] flags: 0x200000000000040(head|node=0|zone=2) [ 12.227011] page_type: f5(slab) [ 12.227264] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 12.227898] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 12.228346] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 12.228684] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 12.229432] head: 0200000000000003 ffffea0004080c01 00000000ffffffff 00000000ffffffff [ 12.230095] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 12.230615] page dumped because: kasan: bad access detected [ 12.231274] [ 12.231656] Memory state around the buggy address: [ 12.231959] ffff888102035e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.232453] ffff888102035e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.233077] >ffff888102035f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.233369] ^ [ 12.233521] ffff888102035f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.234100] ffff888102036000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.234533] ==================================================================