Date
June 16, 2025, 7:07 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.690697] ================================================================== [ 18.690868] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x2ec/0x320 [ 18.691169] Read of size 1 at addr fff00000c63970ff by task kunit_try_catch/147 [ 18.691346] [ 18.691437] CPU: 0 UID: 0 PID: 147 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250616 #1 PREEMPT [ 18.691637] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.691694] Hardware name: linux,dummy-virt (DT) [ 18.691756] Call trace: [ 18.691805] show_stack+0x20/0x38 (C) [ 18.691944] dump_stack_lvl+0x8c/0xd0 [ 18.692133] print_report+0x118/0x608 [ 18.692341] kasan_report+0xdc/0x128 [ 18.692459] __asan_report_load1_noabort+0x20/0x30 [ 18.692569] kmalloc_oob_left+0x2ec/0x320 [ 18.692673] kunit_try_run_case+0x170/0x3f0 [ 18.692777] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.693168] kthread+0x328/0x630 [ 18.693409] ret_from_fork+0x10/0x20 [ 18.693879] [ 18.693934] Allocated by task 11: [ 18.694021] kasan_save_stack+0x3c/0x68 [ 18.694130] kasan_save_track+0x20/0x40 [ 18.694205] kasan_save_alloc_info+0x40/0x58 [ 18.694352] __kasan_kmalloc+0xd4/0xd8 [ 18.694438] __kmalloc_node_track_caller_noprof+0x194/0x4b8 [ 18.694604] kvasprintf+0xe0/0x180 [ 18.694794] __kthread_create_on_node+0x16c/0x350 [ 18.694996] kthread_create_on_node+0xe4/0x130 [ 18.695192] create_worker+0x380/0x6b8 [ 18.695373] worker_thread+0x808/0xf38 [ 18.695510] kthread+0x328/0x630 [ 18.695726] ret_from_fork+0x10/0x20 [ 18.696000] [ 18.696134] The buggy address belongs to the object at fff00000c63970e0 [ 18.696134] which belongs to the cache kmalloc-16 of size 16 [ 18.696283] The buggy address is located 19 bytes to the right of [ 18.696283] allocated 12-byte region [fff00000c63970e0, fff00000c63970ec) [ 18.696648] [ 18.696721] The buggy address belongs to the physical page: [ 18.697004] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106397 [ 18.697196] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.697510] page_type: f5(slab) [ 18.697616] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 18.697822] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 18.698075] page dumped because: kasan: bad access detected [ 18.698171] [ 18.698313] Memory state around the buggy address: [ 18.698426] fff00000c6396f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.698589] fff00000c6397000: 00 05 fc fc fa fb fc fc 00 02 fc fc fa fb fc fc [ 18.699039] >fff00000c6397080: fa fb fc fc fa fb fc fc fa fb fc fc 00 04 fc fc [ 18.699163] ^ [ 18.699268] fff00000c6397100: 00 07 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.699516] fff00000c6397180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.699728] ==================================================================
[ 10.739478] ================================================================== [ 10.740031] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x361/0x3c0 [ 10.740344] Read of size 1 at addr ffff888102225d7f by task kunit_try_catch/163 [ 10.740601] [ 10.740703] CPU: 0 UID: 0 PID: 163 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250616 #1 PREEMPT(voluntary) [ 10.740748] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.740759] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.740779] Call Trace: [ 10.740791] <TASK> [ 10.740806] dump_stack_lvl+0x73/0xb0 [ 10.740848] print_report+0xd1/0x650 [ 10.740869] ? __virt_addr_valid+0x1db/0x2d0 [ 10.740903] ? kmalloc_oob_left+0x361/0x3c0 [ 10.740923] ? kasan_complete_mode_report_info+0x64/0x200 [ 10.740957] ? kmalloc_oob_left+0x361/0x3c0 [ 10.740978] kasan_report+0x141/0x180 [ 10.740998] ? kmalloc_oob_left+0x361/0x3c0 [ 10.741023] __asan_report_load1_noabort+0x18/0x20 [ 10.741046] kmalloc_oob_left+0x361/0x3c0 [ 10.741067] ? __pfx_kmalloc_oob_left+0x10/0x10 [ 10.741088] ? __schedule+0x10cc/0x2b60 [ 10.741109] ? __pfx_read_tsc+0x10/0x10 [ 10.741129] ? ktime_get_ts64+0x86/0x230 [ 10.741153] kunit_try_run_case+0x1a5/0x480 [ 10.741176] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.741197] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.741218] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.741240] ? __kthread_parkme+0x82/0x180 [ 10.741259] ? preempt_count_sub+0x50/0x80 [ 10.741281] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.741303] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.741325] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.741347] kthread+0x337/0x6f0 [ 10.741365] ? trace_preempt_on+0x20/0xc0 [ 10.741387] ? __pfx_kthread+0x10/0x10 [ 10.741407] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.741426] ? calculate_sigpending+0x7b/0xa0 [ 10.741449] ? __pfx_kthread+0x10/0x10 [ 10.741470] ret_from_fork+0x116/0x1d0 [ 10.741487] ? __pfx_kthread+0x10/0x10 [ 10.741517] ret_from_fork_asm+0x1a/0x30 [ 10.741547] </TASK> [ 10.741556] [ 10.747971] Allocated by task 26: [ 10.748127] kasan_save_stack+0x45/0x70 [ 10.748284] kasan_save_track+0x18/0x40 [ 10.748451] kasan_save_alloc_info+0x3b/0x50 [ 10.748647] __kasan_kmalloc+0xb7/0xc0 [ 10.748872] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 10.749101] kstrdup+0x3e/0xa0 [ 10.749229] devtmpfs_work_loop+0x96d/0xf30 [ 10.749371] devtmpfsd+0x3b/0x40 [ 10.749485] kthread+0x337/0x6f0 [ 10.749599] ret_from_fork+0x116/0x1d0 [ 10.749735] ret_from_fork_asm+0x1a/0x30 [ 10.749924] [ 10.750037] Freed by task 26: [ 10.750212] kasan_save_stack+0x45/0x70 [ 10.750401] kasan_save_track+0x18/0x40 [ 10.750569] kasan_save_free_info+0x3f/0x60 [ 10.750708] __kasan_slab_free+0x56/0x70 [ 10.750839] kfree+0x222/0x3f0 [ 10.750963] devtmpfs_work_loop+0xacb/0xf30 [ 10.751102] devtmpfsd+0x3b/0x40 [ 10.751400] kthread+0x337/0x6f0 [ 10.751563] ret_from_fork+0x116/0x1d0 [ 10.751747] ret_from_fork_asm+0x1a/0x30 [ 10.751966] [ 10.752084] The buggy address belongs to the object at ffff888102225d60 [ 10.752084] which belongs to the cache kmalloc-16 of size 16 [ 10.752787] The buggy address is located 15 bytes to the right of [ 10.752787] allocated 16-byte region [ffff888102225d60, ffff888102225d70) [ 10.753194] [ 10.753259] The buggy address belongs to the physical page: [ 10.753447] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102225 [ 10.753802] flags: 0x200000000000000(node=0|zone=2) [ 10.754037] page_type: f5(slab) [ 10.754196] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 10.754504] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 10.754803] page dumped because: kasan: bad access detected [ 10.754981] [ 10.755044] Memory state around the buggy address: [ 10.755191] ffff888102225c00: 00 05 fc fc 00 02 fc fc 00 02 fc fc 00 02 fc fc [ 10.755398] ffff888102225c80: 00 02 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 10.755807] >ffff888102225d00: 00 05 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 10.756135] ^ [ 10.756423] ffff888102225d80: 00 07 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.756629] ffff888102225e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.756833] ==================================================================