Date
July 6, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.020246] ================================================================== [ 18.020441] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 18.020495] Write of size 16 at addr fff00000c1cea8c0 by task kunit_try_catch/166 [ 18.020618] [ 18.020739] CPU: 1 UID: 0 PID: 166 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 18.020827] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.020855] Hardware name: linux,dummy-virt (DT) [ 18.020954] Call trace: [ 18.021025] show_stack+0x20/0x38 (C) [ 18.021174] dump_stack_lvl+0x8c/0xd0 [ 18.021236] print_report+0x118/0x608 [ 18.021281] kasan_report+0xdc/0x128 [ 18.021410] __asan_report_store16_noabort+0x20/0x30 [ 18.021462] kmalloc_oob_16+0x3a0/0x3f8 [ 18.021835] kunit_try_run_case+0x170/0x3f0 [ 18.021938] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.022099] kthread+0x328/0x630 [ 18.022143] ret_from_fork+0x10/0x20 [ 18.022526] [ 18.022671] Allocated by task 166: [ 18.022754] kasan_save_stack+0x3c/0x68 [ 18.022920] kasan_save_track+0x20/0x40 [ 18.022990] kasan_save_alloc_info+0x40/0x58 [ 18.023030] __kasan_kmalloc+0xd4/0xd8 [ 18.023247] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.023337] kmalloc_oob_16+0xb4/0x3f8 [ 18.023384] kunit_try_run_case+0x170/0x3f0 [ 18.023517] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.023767] kthread+0x328/0x630 [ 18.023886] ret_from_fork+0x10/0x20 [ 18.024007] [ 18.024028] The buggy address belongs to the object at fff00000c1cea8c0 [ 18.024028] which belongs to the cache kmalloc-16 of size 16 [ 18.024288] The buggy address is located 0 bytes inside of [ 18.024288] allocated 13-byte region [fff00000c1cea8c0, fff00000c1cea8cd) [ 18.024392] [ 18.024430] The buggy address belongs to the physical page: [ 18.024460] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101cea [ 18.024541] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.024608] page_type: f5(slab) [ 18.024654] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 18.024703] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 18.024742] page dumped because: kasan: bad access detected [ 18.024780] [ 18.024798] Memory state around the buggy address: [ 18.024838] fff00000c1cea780: fa fb fc fc fa fb fc fc 00 07 fc fc fa fb fc fc [ 18.024890] fff00000c1cea800: fa fb fc fc 00 04 fc fc fa fb fc fc fa fb fc fc [ 18.024938] >fff00000c1cea880: fa fb fc fc fa fb fc fc 00 05 fc fc 00 00 fc fc [ 18.024975] ^ [ 18.025014] fff00000c1cea900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.025054] fff00000c1cea980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.025090] ==================================================================
[ 11.608547] ================================================================== [ 11.609019] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 11.609297] Write of size 16 at addr ffff888101e8f440 by task kunit_try_catch/183 [ 11.609610] [ 11.609976] CPU: 0 UID: 0 PID: 183 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 11.610026] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.610038] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.610060] Call Trace: [ 11.610086] <TASK> [ 11.610103] dump_stack_lvl+0x73/0xb0 [ 11.610134] print_report+0xd1/0x650 [ 11.610157] ? __virt_addr_valid+0x1db/0x2d0 [ 11.610179] ? kmalloc_oob_16+0x452/0x4a0 [ 11.610200] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.610222] ? kmalloc_oob_16+0x452/0x4a0 [ 11.610243] kasan_report+0x141/0x180 [ 11.610265] ? kmalloc_oob_16+0x452/0x4a0 [ 11.610290] __asan_report_store16_noabort+0x1b/0x30 [ 11.610310] kmalloc_oob_16+0x452/0x4a0 [ 11.610331] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 11.610353] ? __schedule+0x10cc/0x2b60 [ 11.610375] ? __pfx_read_tsc+0x10/0x10 [ 11.610395] ? ktime_get_ts64+0x86/0x230 [ 11.610420] kunit_try_run_case+0x1a5/0x480 [ 11.610444] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.610484] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.610507] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.610530] ? __kthread_parkme+0x82/0x180 [ 11.610551] ? preempt_count_sub+0x50/0x80 [ 11.610574] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.610597] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.610619] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.610641] kthread+0x337/0x6f0 [ 11.610660] ? trace_preempt_on+0x20/0xc0 [ 11.610684] ? __pfx_kthread+0x10/0x10 [ 11.610704] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.610724] ? calculate_sigpending+0x7b/0xa0 [ 11.610748] ? __pfx_kthread+0x10/0x10 [ 11.610769] ret_from_fork+0x116/0x1d0 [ 11.610787] ? __pfx_kthread+0x10/0x10 [ 11.610807] ret_from_fork_asm+0x1a/0x30 [ 11.610836] </TASK> [ 11.610848] [ 11.618392] Allocated by task 183: [ 11.618614] kasan_save_stack+0x45/0x70 [ 11.618814] kasan_save_track+0x18/0x40 [ 11.619023] kasan_save_alloc_info+0x3b/0x50 [ 11.619248] __kasan_kmalloc+0xb7/0xc0 [ 11.619419] __kmalloc_cache_noprof+0x189/0x420 [ 11.619673] kmalloc_oob_16+0xa8/0x4a0 [ 11.619856] kunit_try_run_case+0x1a5/0x480 [ 11.620046] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.620491] kthread+0x337/0x6f0 [ 11.620691] ret_from_fork+0x116/0x1d0 [ 11.620874] ret_from_fork_asm+0x1a/0x30 [ 11.621042] [ 11.621141] The buggy address belongs to the object at ffff888101e8f440 [ 11.621141] which belongs to the cache kmalloc-16 of size 16 [ 11.621786] The buggy address is located 0 bytes inside of [ 11.621786] allocated 13-byte region [ffff888101e8f440, ffff888101e8f44d) [ 11.622303] [ 11.622380] The buggy address belongs to the physical page: [ 11.622558] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101e8f [ 11.622799] flags: 0x200000000000000(node=0|zone=2) [ 11.623047] page_type: f5(slab) [ 11.623344] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 11.623781] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 11.624019] page dumped because: kasan: bad access detected [ 11.624190] [ 11.624262] Memory state around the buggy address: [ 11.624488] ffff888101e8f300: fa fb fc fc 00 02 fc fc 00 05 fc fc 00 02 fc fc [ 11.624821] ffff888101e8f380: 00 02 fc fc 00 02 fc fc 00 02 fc fc fa fb fc fc [ 11.625152] >ffff888101e8f400: fa fb fc fc fa fb fc fc 00 05 fc fc 00 00 fc fc [ 11.625471] ^ [ 11.625759] ffff888101e8f480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.626358] ffff888101e8f500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.626605] ==================================================================