Date
July 22, 2025, 5:13 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.304306] ================================================================== [ 30.304395] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 30.304476] Write of size 16 at addr fff00000c7b7a7c0 by task kunit_try_catch/197 [ 30.304598] [ 30.304634] CPU: 1 UID: 0 PID: 197 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc7-next-20250722 #1 PREEMPT [ 30.304844] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 30.304909] Hardware name: linux,dummy-virt (DT) [ 30.304950] Call trace: [ 30.304972] show_stack+0x20/0x38 (C) [ 30.305041] dump_stack_lvl+0x8c/0xd0 [ 30.305087] print_report+0x118/0x5e8 [ 30.305133] kasan_report+0xdc/0x128 [ 30.305796] __asan_report_store16_noabort+0x20/0x30 [ 30.305875] kmalloc_oob_16+0x3a0/0x3f8 [ 30.306190] kunit_try_run_case+0x170/0x3f0 [ 30.306284] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.306393] kthread+0x328/0x630 [ 30.306778] ret_from_fork+0x10/0x20 [ 30.306873] [ 30.306894] Allocated by task 197: [ 30.307180] kasan_save_stack+0x3c/0x68 [ 30.307251] kasan_save_track+0x20/0x40 [ 30.307304] kasan_save_alloc_info+0x40/0x58 [ 30.307425] __kasan_kmalloc+0xd4/0xd8 [ 30.307561] __kmalloc_cache_noprof+0x16c/0x3c0 [ 30.307681] kmalloc_oob_16+0xb4/0x3f8 [ 30.307795] kunit_try_run_case+0x170/0x3f0 [ 30.307846] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.307923] kthread+0x328/0x630 [ 30.308170] ret_from_fork+0x10/0x20 [ 30.308305] [ 30.308349] The buggy address belongs to the object at fff00000c7b7a7c0 [ 30.308349] which belongs to the cache kmalloc-16 of size 16 [ 30.308785] The buggy address is located 0 bytes inside of [ 30.308785] allocated 13-byte region [fff00000c7b7a7c0, fff00000c7b7a7cd) [ 30.308984] [ 30.309031] The buggy address belongs to the physical page: [ 30.309074] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107b7a [ 30.309144] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 30.309192] page_type: f5(slab) [ 30.309230] raw: 0bfffe0000000000 fff00000c0001640 dead000000000100 dead000000000122 [ 30.309278] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 30.309316] page dumped because: kasan: bad access detected [ 30.309346] [ 30.309363] Memory state around the buggy address: [ 30.309403] fff00000c7b7a680: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 30.309447] fff00000c7b7a700: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 30.309487] >fff00000c7b7a780: fa fb fc fc 00 00 fc fc 00 05 fc fc fa fb fc fc [ 30.309533] ^ [ 30.309567] fff00000c7b7a800: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 30.309613] fff00000c7b7a880: fa fb fc fc 00 00 fc fc fa fb fc fc fa fb fc fc [ 30.309657] ==================================================================
[ 25.091632] ================================================================== [ 25.092085] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 25.092403] Write of size 16 at addr ffff88810585ea80 by task kunit_try_catch/214 [ 25.092748] [ 25.092895] CPU: 1 UID: 0 PID: 214 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250722 #1 PREEMPT(voluntary) [ 25.092943] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.092956] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.092978] Call Trace: [ 25.092991] <TASK> [ 25.093007] dump_stack_lvl+0x73/0xb0 [ 25.093036] print_report+0xd1/0x640 [ 25.093058] ? __virt_addr_valid+0x1db/0x2d0 [ 25.093083] ? kmalloc_oob_16+0x452/0x4a0 [ 25.093122] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.093150] ? kmalloc_oob_16+0x452/0x4a0 [ 25.093182] kasan_report+0x141/0x180 [ 25.093318] ? kmalloc_oob_16+0x452/0x4a0 [ 25.093343] __asan_report_store16_noabort+0x1b/0x30 [ 25.093367] kmalloc_oob_16+0x452/0x4a0 [ 25.093389] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 25.093410] ? __schedule+0x10da/0x2b60 [ 25.093436] ? __pfx_read_tsc+0x10/0x10 [ 25.093470] ? ktime_get_ts64+0x86/0x230 [ 25.093496] kunit_try_run_case+0x1a5/0x480 [ 25.093521] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.093544] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.093568] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.093593] ? __kthread_parkme+0x82/0x180 [ 25.093615] ? preempt_count_sub+0x50/0x80 [ 25.093638] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.093663] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.093687] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.093711] kthread+0x337/0x6f0 [ 25.093731] ? trace_preempt_on+0x20/0xc0 [ 25.093756] ? __pfx_kthread+0x10/0x10 [ 25.093777] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.093800] ? calculate_sigpending+0x7b/0xa0 [ 25.093824] ? __pfx_kthread+0x10/0x10 [ 25.093858] ret_from_fork+0x116/0x1d0 [ 25.093878] ? __pfx_kthread+0x10/0x10 [ 25.093900] ret_from_fork_asm+0x1a/0x30 [ 25.093931] </TASK> [ 25.093942] [ 25.104061] Allocated by task 214: [ 25.104254] kasan_save_stack+0x45/0x70 [ 25.104601] kasan_save_track+0x18/0x40 [ 25.104917] kasan_save_alloc_info+0x3b/0x50 [ 25.105137] __kasan_kmalloc+0xb7/0xc0 [ 25.105499] __kmalloc_cache_noprof+0x189/0x420 [ 25.105803] kmalloc_oob_16+0xa8/0x4a0 [ 25.106013] kunit_try_run_case+0x1a5/0x480 [ 25.106216] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.106787] kthread+0x337/0x6f0 [ 25.106978] ret_from_fork+0x116/0x1d0 [ 25.107337] ret_from_fork_asm+0x1a/0x30 [ 25.107549] [ 25.107805] The buggy address belongs to the object at ffff88810585ea80 [ 25.107805] which belongs to the cache kmalloc-16 of size 16 [ 25.108427] The buggy address is located 0 bytes inside of [ 25.108427] allocated 13-byte region [ffff88810585ea80, ffff88810585ea8d) [ 25.108925] [ 25.109021] The buggy address belongs to the physical page: [ 25.109639] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10585e [ 25.110057] flags: 0x200000000000000(node=0|zone=2) [ 25.110404] page_type: f5(slab) [ 25.110648] raw: 0200000000000000 ffff888100041640 dead000000000100 dead000000000122 [ 25.111223] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 25.111732] page dumped because: kasan: bad access detected [ 25.112096] [ 25.112244] Memory state around the buggy address: [ 25.112661] ffff88810585e980: 00 06 fc fc 00 00 fc fc fa fb fc fc fa fb fc fc [ 25.113103] ffff88810585ea00: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 25.113537] >ffff88810585ea80: 00 05 fc fc 00 00 fc fc fc fc fc fc fc fc fc fc [ 25.113976] ^ [ 25.114157] ffff88810585eb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.114663] ffff88810585eb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.115043] ==================================================================