Date
July 20, 2025, 8:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 14.871707] ================================================================== [ 14.871964] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x2ec/0x320 [ 14.872080] Read of size 1 at addr fff00000c60866bf by task kunit_try_catch/139 [ 14.872134] [ 14.872165] CPU: 1 UID: 0 PID: 139 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 14.872263] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.872349] Hardware name: linux,dummy-virt (DT) [ 14.872428] Call trace: [ 14.872468] show_stack+0x20/0x38 (C) [ 14.872551] dump_stack_lvl+0x8c/0xd0 [ 14.872598] print_report+0x118/0x5d0 [ 14.872662] kasan_report+0xdc/0x128 [ 14.872726] __asan_report_load1_noabort+0x20/0x30 [ 14.872941] kmalloc_oob_left+0x2ec/0x320 [ 14.873105] kunit_try_run_case+0x170/0x3f0 [ 14.873232] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 14.873385] kthread+0x328/0x630 [ 14.873447] ret_from_fork+0x10/0x20 [ 14.873494] [ 14.873741] Allocated by task 26: [ 14.873778] kasan_save_stack+0x3c/0x68 [ 14.873821] kasan_save_track+0x20/0x40 [ 14.873900] kasan_save_alloc_info+0x40/0x58 [ 14.874009] __kasan_kmalloc+0xd4/0xd8 [ 14.874146] __kmalloc_node_track_caller_noprof+0x194/0x4b8 [ 14.874283] kstrdup+0x54/0xc8 [ 14.874341] devtmpfs_work_loop+0x6f8/0xa58 [ 14.874382] devtmpfsd+0x50/0x58 [ 14.874428] kthread+0x328/0x630 [ 14.874478] ret_from_fork+0x10/0x20 [ 14.874537] [ 14.874588] Freed by task 26: [ 14.874626] kasan_save_stack+0x3c/0x68 [ 14.874663] kasan_save_track+0x20/0x40 [ 14.874861] kasan_save_free_info+0x4c/0x78 [ 14.874950] __kasan_slab_free+0x6c/0x98 [ 14.875059] kfree+0x214/0x3c8 [ 14.875157] devtmpfs_work_loop+0x804/0xa58 [ 14.875290] devtmpfsd+0x50/0x58 [ 14.875341] kthread+0x328/0x630 [ 14.875390] ret_from_fork+0x10/0x20 [ 14.875739] [ 14.875851] The buggy address belongs to the object at fff00000c60866a0 [ 14.875851] which belongs to the cache kmalloc-16 of size 16 [ 14.875981] The buggy address is located 15 bytes to the right of [ 14.875981] allocated 16-byte region [fff00000c60866a0, fff00000c60866b0) [ 14.876073] [ 14.876093] The buggy address belongs to the physical page: [ 14.876122] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106086 [ 14.876384] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 14.876503] page_type: f5(slab) [ 14.876654] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 14.876732] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 14.876809] page dumped because: kasan: bad access detected [ 14.876933] [ 14.876987] Memory state around the buggy address: [ 14.877019] fff00000c6086580: 00 04 fc fc 00 04 fc fc fa fb fc fc 00 05 fc fc [ 14.877065] fff00000c6086600: 00 05 fc fc 00 00 fc fc 00 06 fc fc 00 06 fc fc [ 14.877105] >fff00000c6086680: 00 00 fc fc fa fb fc fc 00 07 fc fc fc fc fc fc [ 14.877141] ^ [ 14.877174] fff00000c6086700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.877223] fff00000c6086780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.877276] ==================================================================
[ 12.274687] ================================================================== [ 12.275249] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x361/0x3c0 [ 12.275597] Read of size 1 at addr ffff888102641a5f by task kunit_try_catch/156 [ 12.275981] [ 12.276377] CPU: 1 UID: 0 PID: 156 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.276427] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.276439] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.276462] Call Trace: [ 12.276487] <TASK> [ 12.276505] dump_stack_lvl+0x73/0xb0 [ 12.276540] print_report+0xd1/0x610 [ 12.276563] ? __virt_addr_valid+0x1db/0x2d0 [ 12.276588] ? kmalloc_oob_left+0x361/0x3c0 [ 12.276608] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.276630] ? kmalloc_oob_left+0x361/0x3c0 [ 12.276651] kasan_report+0x141/0x180 [ 12.276673] ? kmalloc_oob_left+0x361/0x3c0 [ 12.276699] __asan_report_load1_noabort+0x18/0x20 [ 12.276722] kmalloc_oob_left+0x361/0x3c0 [ 12.276744] ? __pfx_kmalloc_oob_left+0x10/0x10 [ 12.276767] ? __schedule+0x10c6/0x2b60 [ 12.277045] ? __pfx_read_tsc+0x10/0x10 [ 12.277069] ? ktime_get_ts64+0x86/0x230 [ 12.277095] kunit_try_run_case+0x1a5/0x480 [ 12.277122] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.277144] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.277168] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.277191] ? __kthread_parkme+0x82/0x180 [ 12.277213] ? preempt_count_sub+0x50/0x80 [ 12.277236] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.277260] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.277283] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.277306] kthread+0x337/0x6f0 [ 12.277325] ? trace_preempt_on+0x20/0xc0 [ 12.277349] ? __pfx_kthread+0x10/0x10 [ 12.277369] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.277391] ? calculate_sigpending+0x7b/0xa0 [ 12.277415] ? __pfx_kthread+0x10/0x10 [ 12.277436] ret_from_fork+0x116/0x1d0 [ 12.277455] ? __pfx_kthread+0x10/0x10 [ 12.277488] ret_from_fork_asm+0x1a/0x30 [ 12.277518] </TASK> [ 12.277530] [ 12.289166] Allocated by task 1: [ 12.289389] kasan_save_stack+0x45/0x70 [ 12.289555] kasan_save_track+0x18/0x40 [ 12.289697] kasan_save_alloc_info+0x3b/0x50 [ 12.289858] __kasan_kmalloc+0xb7/0xc0 [ 12.289993] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 12.290186] kstrdup+0x3e/0xa0 [ 12.290310] kstrdup_const+0x2c/0x40 [ 12.290443] __kernfs_new_node+0xa7/0x6d0 [ 12.291543] kernfs_new_node+0x140/0x1e0 [ 12.292071] __kernfs_create_file+0x2d/0x290 [ 12.292623] sysfs_add_bin_file_mode_ns+0x13f/0x4f0 [ 12.293366] sysfs_create_bin_file+0x150/0x200 [ 12.294018] pci_create_attr+0x1e2/0x460 [ 12.294587] pci_create_resource_files+0xb0/0x160 [ 12.295376] pci_sysfs_init+0x32/0x90 [ 12.296015] do_one_initcall+0xd8/0x370 [ 12.296732] kernel_init_freeable+0x420/0x6f0 [ 12.297458] kernel_init+0x23/0x1e0 [ 12.298121] ret_from_fork+0x116/0x1d0 [ 12.298634] ret_from_fork_asm+0x1a/0x30 [ 12.299265] [ 12.299366] The buggy address belongs to the object at ffff888102641a40 [ 12.299366] which belongs to the cache kmalloc-16 of size 16 [ 12.299746] The buggy address is located 21 bytes to the right of [ 12.299746] allocated 10-byte region [ffff888102641a40, ffff888102641a4a) [ 12.301751] [ 12.302118] The buggy address belongs to the physical page: [ 12.303056] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102641 [ 12.303727] flags: 0x200000000000000(node=0|zone=2) [ 12.304315] page_type: f5(slab) [ 12.304512] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 12.305059] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 12.305527] page dumped because: kasan: bad access detected [ 12.305958] [ 12.306295] Memory state around the buggy address: [ 12.306545] ffff888102641900: 00 05 fc fc 00 05 fc fc 00 02 fc fc 00 03 fc fc [ 12.307033] ffff888102641980: fa fb fc fc 00 02 fc fc 00 05 fc fc 00 02 fc fc [ 12.307695] >ffff888102641a00: 00 02 fc fc 00 02 fc fc 00 02 fc fc 00 07 fc fc [ 12.308253] ^ [ 12.308528] ffff888102641a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.309158] ffff888102641b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.309535] ==================================================================