Date
July 20, 2025, 11:12 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.181496] ================================================================== [ 15.181555] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 15.181603] Write of size 1 at addr fff00000c7749f00 by task kunit_try_catch/144 [ 15.181650] [ 15.181696] CPU: 0 UID: 0 PID: 144 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.181774] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.181799] Hardware name: linux,dummy-virt (DT) [ 15.181846] Call trace: [ 15.181869] show_stack+0x20/0x38 (C) [ 15.181915] dump_stack_lvl+0x8c/0xd0 [ 15.181959] print_report+0x118/0x5d0 [ 15.182003] kasan_report+0xdc/0x128 [ 15.182062] __asan_report_store1_noabort+0x20/0x30 [ 15.182124] kmalloc_big_oob_right+0x2a4/0x2f0 [ 15.182170] kunit_try_run_case+0x170/0x3f0 [ 15.182215] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.182275] kthread+0x328/0x630 [ 15.182316] ret_from_fork+0x10/0x20 [ 15.182361] [ 15.182401] Allocated by task 144: [ 15.182429] kasan_save_stack+0x3c/0x68 [ 15.182468] kasan_save_track+0x20/0x40 [ 15.182511] kasan_save_alloc_info+0x40/0x58 [ 15.182550] __kasan_kmalloc+0xd4/0xd8 [ 15.182594] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.182634] kmalloc_big_oob_right+0xb8/0x2f0 [ 15.182679] kunit_try_run_case+0x170/0x3f0 [ 15.182715] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.182756] kthread+0x328/0x630 [ 15.182787] ret_from_fork+0x10/0x20 [ 15.182821] [ 15.182839] The buggy address belongs to the object at fff00000c7748000 [ 15.182839] which belongs to the cache kmalloc-8k of size 8192 [ 15.182894] The buggy address is located 0 bytes to the right of [ 15.182894] allocated 7936-byte region [fff00000c7748000, fff00000c7749f00) [ 15.183125] [ 15.183176] The buggy address belongs to the physical page: [ 15.183208] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107748 [ 15.183261] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 15.183306] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 15.183357] page_type: f5(slab) [ 15.183395] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 15.183443] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 15.183759] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 15.183854] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 15.183903] head: 0bfffe0000000003 ffffc1ffc31dd201 00000000ffffffff 00000000ffffffff [ 15.183952] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 15.183991] page dumped because: kasan: bad access detected [ 15.184076] [ 15.184171] Memory state around the buggy address: [ 15.184211] fff00000c7749e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.184296] fff00000c7749e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.184357] >fff00000c7749f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.184448] ^ [ 15.184517] fff00000c7749f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.184661] fff00000c774a000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.184730] ==================================================================
[ 11.718844] ================================================================== [ 11.719616] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 11.720631] Write of size 1 at addr ffff888102c79f00 by task kunit_try_catch/161 [ 11.721802] [ 11.722058] CPU: 1 UID: 0 PID: 161 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 11.722103] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.722114] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.722133] Call Trace: [ 11.722145] <TASK> [ 11.722160] dump_stack_lvl+0x73/0xb0 [ 11.722191] print_report+0xd1/0x610 [ 11.722211] ? __virt_addr_valid+0x1db/0x2d0 [ 11.722234] ? kmalloc_big_oob_right+0x316/0x370 [ 11.722255] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.722275] ? kmalloc_big_oob_right+0x316/0x370 [ 11.722296] kasan_report+0x141/0x180 [ 11.722316] ? kmalloc_big_oob_right+0x316/0x370 [ 11.722342] __asan_report_store1_noabort+0x1b/0x30 [ 11.722364] kmalloc_big_oob_right+0x316/0x370 [ 11.722385] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 11.722407] ? __schedule+0x10cc/0x2b60 [ 11.722428] ? __pfx_read_tsc+0x10/0x10 [ 11.722448] ? ktime_get_ts64+0x86/0x230 [ 11.722471] kunit_try_run_case+0x1a5/0x480 [ 11.722495] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.722517] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.722538] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.722560] ? __kthread_parkme+0x82/0x180 [ 11.722580] ? preempt_count_sub+0x50/0x80 [ 11.722602] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.722624] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.722646] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.722668] kthread+0x337/0x6f0 [ 11.722697] ? trace_preempt_on+0x20/0xc0 [ 11.722720] ? __pfx_kthread+0x10/0x10 [ 11.722740] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.722770] ? calculate_sigpending+0x7b/0xa0 [ 11.722834] ? __pfx_kthread+0x10/0x10 [ 11.722855] ret_from_fork+0x116/0x1d0 [ 11.722872] ? __pfx_kthread+0x10/0x10 [ 11.723066] ret_from_fork_asm+0x1a/0x30 [ 11.723100] </TASK> [ 11.723111] [ 11.736680] Allocated by task 161: [ 11.737033] kasan_save_stack+0x45/0x70 [ 11.737489] kasan_save_track+0x18/0x40 [ 11.737904] kasan_save_alloc_info+0x3b/0x50 [ 11.738305] __kasan_kmalloc+0xb7/0xc0 [ 11.738705] __kmalloc_cache_noprof+0x189/0x420 [ 11.738954] kmalloc_big_oob_right+0xa9/0x370 [ 11.739465] kunit_try_run_case+0x1a5/0x480 [ 11.739759] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.739944] kthread+0x337/0x6f0 [ 11.740064] ret_from_fork+0x116/0x1d0 [ 11.740195] ret_from_fork_asm+0x1a/0x30 [ 11.740333] [ 11.740575] The buggy address belongs to the object at ffff888102c78000 [ 11.740575] which belongs to the cache kmalloc-8k of size 8192 [ 11.741768] The buggy address is located 0 bytes to the right of [ 11.741768] allocated 7936-byte region [ffff888102c78000, ffff888102c79f00) [ 11.742953] [ 11.743144] The buggy address belongs to the physical page: [ 11.743740] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102c78 [ 11.744293] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 11.744847] flags: 0x200000000000040(head|node=0|zone=2) [ 11.745338] page_type: f5(slab) [ 11.745722] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 11.746181] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 11.746531] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 11.747327] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 11.748277] head: 0200000000000003 ffffea00040b1e01 00000000ffffffff 00000000ffffffff [ 11.748727] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 11.749527] page dumped because: kasan: bad access detected [ 11.749926] [ 11.749999] Memory state around the buggy address: [ 11.750401] ffff888102c79e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.750792] ffff888102c79e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.751017] >ffff888102c79f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.751232] ^ [ 11.751348] ffff888102c79f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.751712] ffff888102c7a000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.752081] ==================================================================