Date
July 9, 2025, 2:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.668580] ================================================================== [ 16.668674] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x2ec/0x320 [ 16.668944] Read of size 1 at addr fff00000c3f1d6df by task kunit_try_catch/138 [ 16.669238] [ 16.669274] CPU: 0 UID: 0 PID: 138 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.669362] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.669500] Hardware name: linux,dummy-virt (DT) [ 16.669555] Call trace: [ 16.669577] show_stack+0x20/0x38 (C) [ 16.669634] dump_stack_lvl+0x8c/0xd0 [ 16.669682] print_report+0x118/0x608 [ 16.669729] kasan_report+0xdc/0x128 [ 16.669775] __asan_report_load1_noabort+0x20/0x30 [ 16.669826] kmalloc_oob_left+0x2ec/0x320 [ 16.669878] kunit_try_run_case+0x170/0x3f0 [ 16.670651] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.670739] kthread+0x328/0x630 [ 16.670781] ret_from_fork+0x10/0x20 [ 16.670830] [ 16.670848] Allocated by task 26: [ 16.670878] kasan_save_stack+0x3c/0x68 [ 16.670918] kasan_save_track+0x20/0x40 [ 16.670955] kasan_save_alloc_info+0x40/0x58 [ 16.670994] __kasan_kmalloc+0xd4/0xd8 [ 16.671030] __kmalloc_node_track_caller_noprof+0x194/0x4b8 [ 16.671073] kstrdup+0x54/0xc8 [ 16.671117] devtmpfs_work_loop+0x6f8/0xa58 [ 16.671160] devtmpfsd+0x50/0x58 [ 16.671194] kthread+0x328/0x630 [ 16.671289] ret_from_fork+0x10/0x20 [ 16.671326] [ 16.671365] Freed by task 26: [ 16.671570] kasan_save_stack+0x3c/0x68 [ 16.671633] kasan_save_track+0x20/0x40 [ 16.671734] kasan_save_free_info+0x4c/0x78 [ 16.671938] __kasan_slab_free+0x6c/0x98 [ 16.672043] kfree+0x214/0x3c8 [ 16.672246] devtmpfs_work_loop+0x804/0xa58 [ 16.672304] devtmpfsd+0x50/0x58 [ 16.672337] kthread+0x328/0x630 [ 16.672650] ret_from_fork+0x10/0x20 [ 16.672836] [ 16.672945] The buggy address belongs to the object at fff00000c3f1d6c0 [ 16.672945] which belongs to the cache kmalloc-16 of size 16 [ 16.673004] The buggy address is located 15 bytes to the right of [ 16.673004] allocated 16-byte region [fff00000c3f1d6c0, fff00000c3f1d6d0) [ 16.673102] [ 16.673279] The buggy address belongs to the physical page: [ 16.673334] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103f1d [ 16.673391] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.673440] page_type: f5(slab) [ 16.673481] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 16.673531] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 16.673571] page dumped because: kasan: bad access detected [ 16.673608] [ 16.673625] Memory state around the buggy address: [ 16.673657] fff00000c3f1d580: 00 00 fc fc 00 00 fc fc 00 00 fc fc 00 00 fc fc [ 16.673768] fff00000c3f1d600: 00 00 fc fc 00 00 fc fc 00 00 fc fc 00 02 fc fc [ 16.673811] >fff00000c3f1d680: 00 02 fc fc fa fb fc fc fa fb fc fc 00 07 fc fc [ 16.673895] ^ [ 16.673967] fff00000c3f1d700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.674009] fff00000c3f1d780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.674047] ==================================================================
[ 12.071556] ================================================================== [ 12.072485] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x361/0x3c0 [ 12.073091] Read of size 1 at addr ffff8881019029df by task kunit_try_catch/155 [ 12.073545] [ 12.074019] CPU: 1 UID: 0 PID: 155 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.074072] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.074083] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.074104] Call Trace: [ 12.074119] <TASK> [ 12.074138] dump_stack_lvl+0x73/0xb0 [ 12.074173] print_report+0xd1/0x650 [ 12.074197] ? __virt_addr_valid+0x1db/0x2d0 [ 12.074222] ? kmalloc_oob_left+0x361/0x3c0 [ 12.074242] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.074265] ? kmalloc_oob_left+0x361/0x3c0 [ 12.074285] kasan_report+0x141/0x180 [ 12.074306] ? kmalloc_oob_left+0x361/0x3c0 [ 12.074331] __asan_report_load1_noabort+0x18/0x20 [ 12.074356] kmalloc_oob_left+0x361/0x3c0 [ 12.074378] ? __pfx_kmalloc_oob_left+0x10/0x10 [ 12.074400] ? __schedule+0x10cc/0x2b60 [ 12.074422] ? __pfx_read_tsc+0x10/0x10 [ 12.074443] ? ktime_get_ts64+0x86/0x230 [ 12.074468] kunit_try_run_case+0x1a5/0x480 [ 12.074493] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.074515] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.074539] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.074562] ? __kthread_parkme+0x82/0x180 [ 12.074583] ? preempt_count_sub+0x50/0x80 [ 12.074623] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.074646] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.074670] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.074694] kthread+0x337/0x6f0 [ 12.074712] ? trace_preempt_on+0x20/0xc0 [ 12.074736] ? __pfx_kthread+0x10/0x10 [ 12.074756] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.074777] ? calculate_sigpending+0x7b/0xa0 [ 12.074834] ? __pfx_kthread+0x10/0x10 [ 12.074855] ret_from_fork+0x116/0x1d0 [ 12.074874] ? __pfx_kthread+0x10/0x10 [ 12.074894] ret_from_fork_asm+0x1a/0x30 [ 12.074925] </TASK> [ 12.074935] [ 12.086110] Allocated by task 1: [ 12.086630] kasan_save_stack+0x45/0x70 [ 12.086831] kasan_save_track+0x18/0x40 [ 12.087295] kasan_save_alloc_info+0x3b/0x50 [ 12.087649] __kasan_kmalloc+0xb7/0xc0 [ 12.087926] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 12.088402] kstrdup+0x3e/0xa0 [ 12.088701] kstrdup_const+0x2c/0x40 [ 12.088862] __kernfs_new_node+0xa7/0x6d0 [ 12.089207] kernfs_new_node+0x140/0x1e0 [ 12.089646] __kernfs_create_file+0x2d/0x290 [ 12.090056] sysfs_add_bin_file_mode_ns+0x13f/0x4f0 [ 12.090330] sysfs_create_bin_file+0x150/0x200 [ 12.090484] pci_create_attr+0x1e2/0x460 [ 12.091123] pci_create_resource_files+0xb0/0x160 [ 12.091552] pci_sysfs_init+0x32/0x90 [ 12.091958] do_one_initcall+0xd8/0x370 [ 12.092316] kernel_init_freeable+0x420/0x6f0 [ 12.092618] kernel_init+0x23/0x1e0 [ 12.092746] ret_from_fork+0x116/0x1d0 [ 12.093164] ret_from_fork_asm+0x1a/0x30 [ 12.093556] [ 12.093721] The buggy address belongs to the object at ffff8881019029c0 [ 12.093721] which belongs to the cache kmalloc-16 of size 16 [ 12.094885] The buggy address is located 21 bytes to the right of [ 12.094885] allocated 10-byte region [ffff8881019029c0, ffff8881019029ca) [ 12.095401] [ 12.095474] The buggy address belongs to the physical page: [ 12.095663] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101902 [ 12.096239] flags: 0x200000000000000(node=0|zone=2) [ 12.096700] page_type: f5(slab) [ 12.097082] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 12.097885] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 12.098634] page dumped because: kasan: bad access detected [ 12.099221] [ 12.099408] Memory state around the buggy address: [ 12.099894] ffff888101902880: 00 05 fc fc 00 05 fc fc 00 02 fc fc 00 03 fc fc [ 12.100672] ffff888101902900: fa fb fc fc 00 02 fc fc 00 05 fc fc 00 02 fc fc [ 12.101274] >ffff888101902980: 00 02 fc fc 00 02 fc fc 00 02 fc fc 00 07 fc fc [ 12.101485] ^ [ 12.101682] ffff888101902a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.102241] ffff888101902a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.102950] ==================================================================