Date
July 12, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.702035] ================================================================== [ 16.702210] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 16.702286] Write of size 16 at addr fff00000c45d1a40 by task kunit_try_catch/166 [ 16.702592] [ 16.702675] CPU: 1 UID: 0 PID: 166 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.702835] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.702893] Hardware name: linux,dummy-virt (DT) [ 16.702950] Call trace: [ 16.703114] show_stack+0x20/0x38 (C) [ 16.703206] dump_stack_lvl+0x8c/0xd0 [ 16.703260] print_report+0x118/0x5d0 [ 16.703381] kasan_report+0xdc/0x128 [ 16.703426] __asan_report_store16_noabort+0x20/0x30 [ 16.703484] kmalloc_oob_16+0x3a0/0x3f8 [ 16.703528] kunit_try_run_case+0x170/0x3f0 [ 16.703863] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.704032] kthread+0x328/0x630 [ 16.704138] ret_from_fork+0x10/0x20 [ 16.704351] [ 16.704467] Allocated by task 166: [ 16.704497] kasan_save_stack+0x3c/0x68 [ 16.704733] kasan_save_track+0x20/0x40 [ 16.705351] kasan_save_alloc_info+0x40/0x58 [ 16.705545] __kasan_kmalloc+0xd4/0xd8 [ 16.705586] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.705625] kmalloc_oob_16+0xb4/0x3f8 [ 16.705660] kunit_try_run_case+0x170/0x3f0 [ 16.705697] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.705739] kthread+0x328/0x630 [ 16.705770] ret_from_fork+0x10/0x20 [ 16.705804] [ 16.705823] The buggy address belongs to the object at fff00000c45d1a40 [ 16.705823] which belongs to the cache kmalloc-16 of size 16 [ 16.705881] The buggy address is located 0 bytes inside of [ 16.705881] allocated 13-byte region [fff00000c45d1a40, fff00000c45d1a4d) [ 16.705949] [ 16.705968] The buggy address belongs to the physical page: [ 16.705998] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1045d1 [ 16.706054] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.706102] page_type: f5(slab) [ 16.706139] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 16.706403] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 16.706474] page dumped because: kasan: bad access detected [ 16.706522] [ 16.706539] Memory state around the buggy address: [ 16.706581] fff00000c45d1900: 00 00 fc fc 00 00 fc fc 00 00 fc fc fa fb fc fc [ 16.706624] fff00000c45d1980: fa fb fc fc 00 05 fc fc fa fb fc fc fa fb fc fc [ 16.706666] >fff00000c45d1a00: fa fb fc fc fa fb fc fc 00 05 fc fc 00 00 fc fc [ 16.706704] ^ [ 16.706739] fff00000c45d1a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.706781] fff00000c45d1b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.706834] ==================================================================
[ 12.974499] ================================================================== [ 12.975651] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 12.976331] Write of size 16 at addr ffff888102610b40 by task kunit_try_catch/183 [ 12.976973] [ 12.977150] CPU: 1 UID: 0 PID: 183 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.977207] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.977219] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.977241] Call Trace: [ 12.977254] <TASK> [ 12.977286] dump_stack_lvl+0x73/0xb0 [ 12.977317] print_report+0xd1/0x610 [ 12.977340] ? __virt_addr_valid+0x1db/0x2d0 [ 12.977363] ? kmalloc_oob_16+0x452/0x4a0 [ 12.977383] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.977406] ? kmalloc_oob_16+0x452/0x4a0 [ 12.977427] kasan_report+0x141/0x180 [ 12.977448] ? kmalloc_oob_16+0x452/0x4a0 [ 12.977473] __asan_report_store16_noabort+0x1b/0x30 [ 12.977498] kmalloc_oob_16+0x452/0x4a0 [ 12.977519] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 12.977542] ? __schedule+0x10cc/0x2b60 [ 12.977564] ? __pfx_read_tsc+0x10/0x10 [ 12.977585] ? ktime_get_ts64+0x86/0x230 [ 12.977610] kunit_try_run_case+0x1a5/0x480 [ 12.977635] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.977659] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.977686] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.977713] ? __kthread_parkme+0x82/0x180 [ 12.977734] ? preempt_count_sub+0x50/0x80 [ 12.977758] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.977782] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.977806] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.977833] kthread+0x337/0x6f0 [ 12.977851] ? trace_preempt_on+0x20/0xc0 [ 12.977875] ? __pfx_kthread+0x10/0x10 [ 12.977895] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.977916] ? calculate_sigpending+0x7b/0xa0 [ 12.977941] ? __pfx_kthread+0x10/0x10 [ 12.977963] ret_from_fork+0x116/0x1d0 [ 12.977982] ? __pfx_kthread+0x10/0x10 [ 12.978002] ret_from_fork_asm+0x1a/0x30 [ 12.978032] </TASK> [ 12.978042] [ 12.988712] Allocated by task 183: [ 12.989047] kasan_save_stack+0x45/0x70 [ 12.989424] kasan_save_track+0x18/0x40 [ 12.989766] kasan_save_alloc_info+0x3b/0x50 [ 12.990164] __kasan_kmalloc+0xb7/0xc0 [ 12.990532] __kmalloc_cache_noprof+0x189/0x420 [ 12.990952] kmalloc_oob_16+0xa8/0x4a0 [ 12.991311] kunit_try_run_case+0x1a5/0x480 [ 12.991692] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.992168] kthread+0x337/0x6f0 [ 12.992483] ret_from_fork+0x116/0x1d0 [ 12.992831] ret_from_fork_asm+0x1a/0x30 [ 12.993196] [ 12.993358] The buggy address belongs to the object at ffff888102610b40 [ 12.993358] which belongs to the cache kmalloc-16 of size 16 [ 12.994399] The buggy address is located 0 bytes inside of [ 12.994399] allocated 13-byte region [ffff888102610b40, ffff888102610b4d) [ 12.994945] [ 12.995019] The buggy address belongs to the physical page: [ 12.995194] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102610 [ 12.995501] flags: 0x200000000000000(node=0|zone=2) [ 12.995673] page_type: f5(slab) [ 12.995818] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 12.996164] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 12.996479] page dumped because: kasan: bad access detected [ 12.996726] [ 12.996819] Memory state around the buggy address: [ 12.997039] ffff888102610a00: 00 02 fc fc 00 06 fc fc 00 06 fc fc 00 04 fc fc [ 12.997351] ffff888102610a80: 00 04 fc fc 00 01 fc fc 00 01 fc fc 00 04 fc fc [ 12.997618] >ffff888102610b00: 00 04 fc fc fa fb fc fc 00 05 fc fc 00 00 fc fc [ 12.997941] ^ [ 12.998145] ffff888102610b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.998490] ffff888102610c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.998799] ==================================================================