Date
July 22, 2025, 5:13 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.074731] ================================================================== [ 30.074795] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 30.074881] Write of size 1 at addr fff00000c9b09f00 by task kunit_try_catch/175 [ 30.074965] [ 30.075013] CPU: 1 UID: 0 PID: 175 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc7-next-20250722 #1 PREEMPT [ 30.075100] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 30.075127] Hardware name: linux,dummy-virt (DT) [ 30.075156] Call trace: [ 30.075177] show_stack+0x20/0x38 (C) [ 30.075365] dump_stack_lvl+0x8c/0xd0 [ 30.075437] print_report+0x118/0x5e8 [ 30.075483] kasan_report+0xdc/0x128 [ 30.075532] __asan_report_store1_noabort+0x20/0x30 [ 30.075579] kmalloc_big_oob_right+0x2a4/0x2f0 [ 30.075645] kunit_try_run_case+0x170/0x3f0 [ 30.075710] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.075766] kthread+0x328/0x630 [ 30.075873] ret_from_fork+0x10/0x20 [ 30.075923] [ 30.075959] Allocated by task 175: [ 30.075986] kasan_save_stack+0x3c/0x68 [ 30.076040] kasan_save_track+0x20/0x40 [ 30.076075] kasan_save_alloc_info+0x40/0x58 [ 30.076225] __kasan_kmalloc+0xd4/0xd8 [ 30.076396] __kmalloc_cache_noprof+0x16c/0x3c0 [ 30.076475] kmalloc_big_oob_right+0xb8/0x2f0 [ 30.076523] kunit_try_run_case+0x170/0x3f0 [ 30.076569] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.076611] kthread+0x328/0x630 [ 30.076645] ret_from_fork+0x10/0x20 [ 30.076680] [ 30.076699] The buggy address belongs to the object at fff00000c9b08000 [ 30.076699] which belongs to the cache kmalloc-8k of size 8192 [ 30.076841] The buggy address is located 0 bytes to the right of [ 30.076841] allocated 7936-byte region [fff00000c9b08000, fff00000c9b09f00) [ 30.077134] [ 30.077162] The buggy address belongs to the physical page: [ 30.077212] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109b08 [ 30.077337] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 30.077397] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 30.077466] page_type: f5(slab) [ 30.077504] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 30.077780] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 30.077914] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 30.078081] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 30.078296] head: 0bfffe0000000003 ffffc1ffc326c201 00000000ffffffff 00000000ffffffff [ 30.078424] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 30.078546] page dumped because: kasan: bad access detected [ 30.078618] [ 30.078636] Memory state around the buggy address: [ 30.078679] fff00000c9b09e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.078883] fff00000c9b09e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.079140] >fff00000c9b09f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.079252] ^ [ 30.079322] fff00000c9b09f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.079361] fff00000c9b0a000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.079596] ==================================================================
[ 24.592856] ================================================================== [ 24.593843] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 24.594654] Write of size 1 at addr ffff8881061f9f00 by task kunit_try_catch/192 [ 24.595485] [ 24.595688] CPU: 0 UID: 0 PID: 192 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250722 #1 PREEMPT(voluntary) [ 24.595738] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.595752] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.595772] Call Trace: [ 24.595785] <TASK> [ 24.595800] dump_stack_lvl+0x73/0xb0 [ 24.595844] print_report+0xd1/0x640 [ 24.595867] ? __virt_addr_valid+0x1db/0x2d0 [ 24.595891] ? kmalloc_big_oob_right+0x316/0x370 [ 24.595913] ? kasan_complete_mode_report_info+0x2a/0x200 [ 24.595939] ? kmalloc_big_oob_right+0x316/0x370 [ 24.595961] kasan_report+0x141/0x180 [ 24.595995] ? kmalloc_big_oob_right+0x316/0x370 [ 24.596022] __asan_report_store1_noabort+0x1b/0x30 [ 24.596047] kmalloc_big_oob_right+0x316/0x370 [ 24.596081] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 24.596104] ? __schedule+0x10da/0x2b60 [ 24.596129] ? __pfx_read_tsc+0x10/0x10 [ 24.596151] ? ktime_get_ts64+0x86/0x230 [ 24.596186] kunit_try_run_case+0x1a5/0x480 [ 24.596211] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.596233] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.596258] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.596283] ? __kthread_parkme+0x82/0x180 [ 24.596303] ? preempt_count_sub+0x50/0x80 [ 24.596326] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.596350] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.596374] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.596397] kthread+0x337/0x6f0 [ 24.596417] ? trace_preempt_on+0x20/0xc0 [ 24.596440] ? __pfx_kthread+0x10/0x10 [ 24.596488] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.596511] ? calculate_sigpending+0x7b/0xa0 [ 24.596535] ? __pfx_kthread+0x10/0x10 [ 24.596556] ret_from_fork+0x116/0x1d0 [ 24.596576] ? __pfx_kthread+0x10/0x10 [ 24.596596] ret_from_fork_asm+0x1a/0x30 [ 24.596627] </TASK> [ 24.596638] [ 24.610745] Allocated by task 192: [ 24.611229] kasan_save_stack+0x45/0x70 [ 24.611673] kasan_save_track+0x18/0x40 [ 24.612049] kasan_save_alloc_info+0x3b/0x50 [ 24.612256] __kasan_kmalloc+0xb7/0xc0 [ 24.612744] __kmalloc_cache_noprof+0x189/0x420 [ 24.613159] kmalloc_big_oob_right+0xa9/0x370 [ 24.613321] kunit_try_run_case+0x1a5/0x480 [ 24.613470] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.613664] kthread+0x337/0x6f0 [ 24.614011] ret_from_fork+0x116/0x1d0 [ 24.614368] ret_from_fork_asm+0x1a/0x30 [ 24.614797] [ 24.614980] The buggy address belongs to the object at ffff8881061f8000 [ 24.614980] which belongs to the cache kmalloc-8k of size 8192 [ 24.616277] The buggy address is located 0 bytes to the right of [ 24.616277] allocated 7936-byte region [ffff8881061f8000, ffff8881061f9f00) [ 24.617541] [ 24.617663] The buggy address belongs to the physical page: [ 24.617860] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1061f8 [ 24.618631] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 24.619431] flags: 0x200000000000040(head|node=0|zone=2) [ 24.620027] page_type: f5(slab) [ 24.620383] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 24.620717] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 24.621384] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 24.622195] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 24.622878] head: 0200000000000003 ffffea0004187e01 00000000ffffffff 00000000ffffffff [ 24.623401] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 24.624171] page dumped because: kasan: bad access detected [ 24.624667] [ 24.624824] Memory state around the buggy address: [ 24.625217] ffff8881061f9e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.625756] ffff8881061f9e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.626016] >ffff8881061f9f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.626536] ^ [ 24.626863] ffff8881061f9f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.627616] ffff8881061fa000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.628176] ==================================================================