Date
July 23, 2025, 2:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.362916] ================================================================== [ 15.363297] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 15.363362] Write of size 16 at addr fff00000c3ec40c0 by task kunit_try_catch/166 [ 15.363416] [ 15.363764] CPU: 1 UID: 0 PID: 166 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7 #1 PREEMPT [ 15.364241] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.364529] Hardware name: linux,dummy-virt (DT) [ 15.364580] Call trace: [ 15.364603] show_stack+0x20/0x38 (C) [ 15.365039] dump_stack_lvl+0x8c/0xd0 [ 15.365198] print_report+0x118/0x5d0 [ 15.365283] kasan_report+0xdc/0x128 [ 15.365377] __asan_report_store16_noabort+0x20/0x30 [ 15.365503] kmalloc_oob_16+0x3a0/0x3f8 [ 15.365618] kunit_try_run_case+0x170/0x3f0 [ 15.365721] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.365785] kthread+0x328/0x630 [ 15.366114] ret_from_fork+0x10/0x20 [ 15.366320] [ 15.366346] Allocated by task 166: [ 15.366424] kasan_save_stack+0x3c/0x68 [ 15.366840] kasan_save_track+0x20/0x40 [ 15.367046] kasan_save_alloc_info+0x40/0x58 [ 15.367102] __kasan_kmalloc+0xd4/0xd8 [ 15.367317] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.367417] kmalloc_oob_16+0xb4/0x3f8 [ 15.367484] kunit_try_run_case+0x170/0x3f0 [ 15.367789] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.367921] kthread+0x328/0x630 [ 15.368110] ret_from_fork+0x10/0x20 [ 15.368207] [ 15.368597] The buggy address belongs to the object at fff00000c3ec40c0 [ 15.368597] which belongs to the cache kmalloc-16 of size 16 [ 15.368842] The buggy address is located 0 bytes inside of [ 15.368842] allocated 13-byte region [fff00000c3ec40c0, fff00000c3ec40cd) [ 15.369083] [ 15.369293] The buggy address belongs to the physical page: [ 15.369387] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103ec4 [ 15.369467] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.369640] page_type: f5(slab) [ 15.369867] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 15.370082] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 15.370407] page dumped because: kasan: bad access detected [ 15.370521] [ 15.370566] Memory state around the buggy address: [ 15.370628] fff00000c3ec3f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.370974] fff00000c3ec4000: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 15.371130] >fff00000c3ec4080: fa fb fc fc fa fb fc fc 00 05 fc fc 00 00 fc fc [ 15.371171] ^ [ 15.371229] fff00000c3ec4100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.371634] fff00000c3ec4180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.371814] ==================================================================
[ 12.618136] ================================================================== [ 12.619069] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 12.619444] Write of size 16 at addr ffff888102539fe0 by task kunit_try_catch/183 [ 12.619725] [ 12.619825] CPU: 1 UID: 0 PID: 183 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7 #1 PREEMPT(voluntary) [ 12.619869] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.619880] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.619901] Call Trace: [ 12.619913] <TASK> [ 12.619927] dump_stack_lvl+0x73/0xb0 [ 12.619956] print_report+0xd1/0x610 [ 12.619977] ? __virt_addr_valid+0x1db/0x2d0 [ 12.619999] ? kmalloc_oob_16+0x452/0x4a0 [ 12.620018] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.620040] ? kmalloc_oob_16+0x452/0x4a0 [ 12.620060] kasan_report+0x141/0x180 [ 12.620081] ? kmalloc_oob_16+0x452/0x4a0 [ 12.620106] __asan_report_store16_noabort+0x1b/0x30 [ 12.620130] kmalloc_oob_16+0x452/0x4a0 [ 12.620151] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 12.620172] ? __schedule+0x10c6/0x2b60 [ 12.620250] ? __pfx_read_tsc+0x10/0x10 [ 12.620272] ? ktime_get_ts64+0x86/0x230 [ 12.620296] kunit_try_run_case+0x1a5/0x480 [ 12.620320] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.620342] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.620365] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.620387] ? __kthread_parkme+0x82/0x180 [ 12.620407] ? preempt_count_sub+0x50/0x80 [ 12.620430] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.620454] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.620477] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.620499] kthread+0x337/0x6f0 [ 12.620518] ? trace_preempt_on+0x20/0xc0 [ 12.620540] ? __pfx_kthread+0x10/0x10 [ 12.620560] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.620580] ? calculate_sigpending+0x7b/0xa0 [ 12.620604] ? __pfx_kthread+0x10/0x10 [ 12.620624] ret_from_fork+0x116/0x1d0 [ 12.620642] ? __pfx_kthread+0x10/0x10 [ 12.620662] ret_from_fork_asm+0x1a/0x30 [ 12.620692] </TASK> [ 12.620701] [ 12.628798] Allocated by task 183: [ 12.628953] kasan_save_stack+0x45/0x70 [ 12.629128] kasan_save_track+0x18/0x40 [ 12.629323] kasan_save_alloc_info+0x3b/0x50 [ 12.629756] __kasan_kmalloc+0xb7/0xc0 [ 12.629984] __kmalloc_cache_noprof+0x189/0x420 [ 12.630241] kmalloc_oob_16+0xa8/0x4a0 [ 12.630498] kunit_try_run_case+0x1a5/0x480 [ 12.630698] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.631059] kthread+0x337/0x6f0 [ 12.631233] ret_from_fork+0x116/0x1d0 [ 12.631420] ret_from_fork_asm+0x1a/0x30 [ 12.631624] [ 12.631721] The buggy address belongs to the object at ffff888102539fe0 [ 12.631721] which belongs to the cache kmalloc-16 of size 16 [ 12.632183] The buggy address is located 0 bytes inside of [ 12.632183] allocated 13-byte region [ffff888102539fe0, ffff888102539fed) [ 12.632922] [ 12.633055] The buggy address belongs to the physical page: [ 12.633332] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102539 [ 12.633793] flags: 0x200000000000000(node=0|zone=2) [ 12.634023] page_type: f5(slab) [ 12.634149] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 12.634614] raw: 0000000000000000 0000000000800080 00000000f5000000 0000000000000000 [ 12.634850] page dumped because: kasan: bad access detected [ 12.635493] [ 12.635604] Memory state around the buggy address: [ 12.635842] ffff888102539e80: fa fb fc fc 00 05 fc fc 00 05 fc fc 00 00 fc fc [ 12.636183] ffff888102539f00: 00 06 fc fc 00 06 fc fc 00 00 fc fc fa fb fc fc [ 12.636587] >ffff888102539f80: fa fb fc fc fa fb fc fc fa fb fc fc 00 05 fc fc [ 12.636893] ^ [ 12.637097] ffff88810253a000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.637433] ffff88810253a080: fb fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb [ 12.637780] ==================================================================