Date
July 4, 2025, 3:11 p.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 |
[ 27.960873] ================================================================== [ 27.974646] BUG: KASAN: slab-use-after-free in kmalloc_double_kzfree+0x168/0x308 [ 27.982018] Read of size 1 at addr ffff000800cad020 by task kunit_try_catch/241 [ 27.989309] [ 27.990796] CPU: 6 UID: 0 PID: 241 Comm: kunit_try_catch Tainted: G B N 6.15.5-rc2 #1 PREEMPT [ 27.990850] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.990870] Hardware name: WinLink E850-96 board (DT) [ 27.990894] Call trace: [ 27.990906] show_stack+0x20/0x38 (C) [ 27.990943] dump_stack_lvl+0x8c/0xd0 [ 27.990979] print_report+0x118/0x608 [ 27.991009] kasan_report+0xdc/0x128 [ 27.991037] __kasan_check_byte+0x54/0x70 [ 27.991066] kfree_sensitive+0x30/0xb0 [ 27.991097] kmalloc_double_kzfree+0x168/0x308 [ 27.991134] kunit_try_run_case+0x170/0x3f0 [ 27.991172] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 27.991210] kthread+0x328/0x630 [ 27.991244] ret_from_fork+0x10/0x20 [ 27.991278] [ 28.056844] Allocated by task 241: [ 28.060231] kasan_save_stack+0x3c/0x68 [ 28.064047] kasan_save_track+0x20/0x40 [ 28.067867] kasan_save_alloc_info+0x40/0x58 [ 28.072120] __kasan_kmalloc+0xd4/0xd8 [ 28.075852] __kmalloc_cache_noprof+0x16c/0x3c0 [ 28.080366] kmalloc_double_kzfree+0xb8/0x308 [ 28.084708] kunit_try_run_case+0x170/0x3f0 [ 28.088873] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 28.094342] kthread+0x328/0x630 [ 28.097553] ret_from_fork+0x10/0x20 [ 28.101113] [ 28.102590] Freed by task 241: [ 28.105628] kasan_save_stack+0x3c/0x68 [ 28.109446] kasan_save_track+0x20/0x40 [ 28.113265] kasan_save_free_info+0x4c/0x78 [ 28.117432] __kasan_slab_free+0x6c/0x98 [ 28.121338] kfree+0x214/0x3c8 [ 28.124376] kfree_sensitive+0x80/0xb0 [ 28.128109] kmalloc_double_kzfree+0x11c/0x308 [ 28.132536] kunit_try_run_case+0x170/0x3f0 [ 28.136704] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 28.142171] kthread+0x328/0x630 [ 28.145383] ret_from_fork+0x10/0x20 [ 28.148942] [ 28.150419] The buggy address belongs to the object at ffff000800cad020 [ 28.150419] which belongs to the cache kmalloc-16 of size 16 [ 28.162747] The buggy address is located 0 bytes inside of [ 28.162747] freed 16-byte region [ffff000800cad020, ffff000800cad030) [ 28.174722] [ 28.176201] The buggy address belongs to the physical page: [ 28.181758] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x880cad [ 28.189743] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 28.196251] page_type: f5(slab) [ 28.199390] raw: 0bfffe0000000000 ffff000800002640 dead000000000122 0000000000000000 [ 28.207107] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 28.214827] page dumped because: kasan: bad access detected [ 28.220381] [ 28.221857] Memory state around the buggy address: [ 28.226640] ffff000800cacf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.233840] ffff000800cacf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.241047] >ffff000800cad000: 00 04 fc fc fa fb fc fc fc fc fc fc fc fc fc fc [ 28.248246] ^ [ 28.252503] ffff000800cad080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.259708] ffff000800cad100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.266911] ==================================================================
[ 15.722957] ================================================================== [ 15.723021] BUG: KASAN: slab-use-after-free in kmalloc_double_kzfree+0x168/0x308 [ 15.723555] Read of size 1 at addr fff00000c6271320 by task kunit_try_catch/197 [ 15.723773] [ 15.723848] CPU: 0 UID: 0 PID: 197 Comm: kunit_try_catch Tainted: G B N 6.15.5-rc2 #1 PREEMPT [ 15.724089] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.724124] Hardware name: linux,dummy-virt (DT) [ 15.724157] Call trace: [ 15.724196] show_stack+0x20/0x38 (C) [ 15.724588] dump_stack_lvl+0x8c/0xd0 [ 15.724943] print_report+0x118/0x608 [ 15.725035] kasan_report+0xdc/0x128 [ 15.725189] __kasan_check_byte+0x54/0x70 [ 15.725294] kfree_sensitive+0x30/0xb0 [ 15.725447] kmalloc_double_kzfree+0x168/0x308 [ 15.725555] kunit_try_run_case+0x170/0x3f0 [ 15.725669] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.726062] kthread+0x328/0x630 [ 15.726189] ret_from_fork+0x10/0x20 [ 15.726378] [ 15.726477] Allocated by task 197: [ 15.726610] kasan_save_stack+0x3c/0x68 [ 15.726698] kasan_save_track+0x20/0x40 [ 15.726753] kasan_save_alloc_info+0x40/0x58 [ 15.727079] __kasan_kmalloc+0xd4/0xd8 [ 15.727159] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.727347] kmalloc_double_kzfree+0xb8/0x308 [ 15.727516] kunit_try_run_case+0x170/0x3f0 [ 15.727728] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.727807] kthread+0x328/0x630 [ 15.727889] ret_from_fork+0x10/0x20 [ 15.728189] [ 15.728312] Freed by task 197: [ 15.728389] kasan_save_stack+0x3c/0x68 [ 15.728507] kasan_save_track+0x20/0x40 [ 15.728722] kasan_save_free_info+0x4c/0x78 [ 15.728807] __kasan_slab_free+0x6c/0x98 [ 15.728935] kfree+0x214/0x3c8 [ 15.729057] kfree_sensitive+0x80/0xb0 [ 15.729274] kmalloc_double_kzfree+0x11c/0x308 [ 15.729428] kunit_try_run_case+0x170/0x3f0 [ 15.729524] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.729732] kthread+0x328/0x630 [ 15.729925] ret_from_fork+0x10/0x20 [ 15.729998] [ 15.730319] The buggy address belongs to the object at fff00000c6271320 [ 15.730319] which belongs to the cache kmalloc-16 of size 16 [ 15.730399] The buggy address is located 0 bytes inside of [ 15.730399] freed 16-byte region [fff00000c6271320, fff00000c6271330) [ 15.730601] [ 15.730717] The buggy address belongs to the physical page: [ 15.730854] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106271 [ 15.730948] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.731314] page_type: f5(slab) [ 15.731501] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 15.731679] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 15.731734] page dumped because: kasan: bad access detected [ 15.731800] [ 15.731818] Memory state around the buggy address: [ 15.731894] fff00000c6271200: fa fb fc fc fa fb fc fc 00 04 fc fc fa fb fc fc [ 15.732134] fff00000c6271280: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 15.732679] >fff00000c6271300: fa fb fc fc fa fb fc fc fc fc fc fc fc fc fc fc [ 15.732814] ^ [ 15.732871] fff00000c6271380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.732971] fff00000c6271400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.733291] ==================================================================
[ 14.698798] ================================================================== [ 14.699495] BUG: KASAN: slab-use-after-free in kmalloc_double_kzfree+0x19c/0x350 [ 14.699999] Read of size 1 at addr ffff8881024d25e0 by task kunit_try_catch/213 [ 14.700417] [ 14.700579] CPU: 0 UID: 0 PID: 213 Comm: kunit_try_catch Tainted: G B N 6.15.5-rc2 #1 PREEMPT(voluntary) [ 14.700682] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.700709] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.700753] Call Trace: [ 14.700776] <TASK> [ 14.700844] dump_stack_lvl+0x73/0xb0 [ 14.700927] print_report+0xd1/0x650 [ 14.700975] ? __virt_addr_valid+0x1db/0x2d0 [ 14.701038] ? kmalloc_double_kzfree+0x19c/0x350 [ 14.701080] ? kasan_complete_mode_report_info+0x64/0x200 [ 14.701130] ? kmalloc_double_kzfree+0x19c/0x350 [ 14.701170] kasan_report+0x141/0x180 [ 14.701256] ? kmalloc_double_kzfree+0x19c/0x350 [ 14.701310] ? kmalloc_double_kzfree+0x19c/0x350 [ 14.701366] __kasan_check_byte+0x3d/0x50 [ 14.701417] kfree_sensitive+0x22/0x90 [ 14.701467] kmalloc_double_kzfree+0x19c/0x350 [ 14.701569] ? __pfx_kmalloc_double_kzfree+0x10/0x10 [ 14.701617] ? __schedule+0x10cc/0x2b60 [ 14.701672] ? __pfx_read_tsc+0x10/0x10 [ 14.701718] ? ktime_get_ts64+0x86/0x230 [ 14.701778] kunit_try_run_case+0x1a5/0x480 [ 14.701832] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.701872] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.701918] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.701965] ? __kthread_parkme+0x82/0x180 [ 14.702046] ? preempt_count_sub+0x50/0x80 [ 14.702123] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.702176] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.702253] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.702296] kthread+0x337/0x6f0 [ 14.702360] ? trace_preempt_on+0x20/0xc0 [ 14.702407] ? __pfx_kthread+0x10/0x10 [ 14.702439] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.702476] ? calculate_sigpending+0x7b/0xa0 [ 14.702514] ? __pfx_kthread+0x10/0x10 [ 14.702545] ret_from_fork+0x41/0x80 [ 14.702581] ? __pfx_kthread+0x10/0x10 [ 14.702613] ret_from_fork_asm+0x1a/0x30 [ 14.702673] </TASK> [ 14.702694] [ 14.717409] Allocated by task 213: [ 14.718088] kasan_save_stack+0x45/0x70 [ 14.719045] kasan_save_track+0x18/0x40 [ 14.719624] kasan_save_alloc_info+0x3b/0x50 [ 14.719908] __kasan_kmalloc+0xb7/0xc0 [ 14.720440] __kmalloc_cache_noprof+0x189/0x420 [ 14.720906] kmalloc_double_kzfree+0xa9/0x350 [ 14.721283] kunit_try_run_case+0x1a5/0x480 [ 14.721886] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.722789] kthread+0x337/0x6f0 [ 14.723141] ret_from_fork+0x41/0x80 [ 14.723351] ret_from_fork_asm+0x1a/0x30 [ 14.723747] [ 14.723931] Freed by task 213: [ 14.724414] kasan_save_stack+0x45/0x70 [ 14.724697] kasan_save_track+0x18/0x40 [ 14.725050] kasan_save_free_info+0x3f/0x60 [ 14.725446] __kasan_slab_free+0x56/0x70 [ 14.726017] kfree+0x222/0x3f0 [ 14.726218] kfree_sensitive+0x67/0x90 [ 14.726643] kmalloc_double_kzfree+0x12b/0x350 [ 14.726936] kunit_try_run_case+0x1a5/0x480 [ 14.727939] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.728519] kthread+0x337/0x6f0 [ 14.728790] ret_from_fork+0x41/0x80 [ 14.729079] ret_from_fork_asm+0x1a/0x30 [ 14.729377] [ 14.729555] The buggy address belongs to the object at ffff8881024d25e0 [ 14.729555] which belongs to the cache kmalloc-16 of size 16 [ 14.730401] The buggy address is located 0 bytes inside of [ 14.730401] freed 16-byte region [ffff8881024d25e0, ffff8881024d25f0) [ 14.731210] [ 14.731551] The buggy address belongs to the physical page: [ 14.731790] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1024d2 [ 14.732308] flags: 0x200000000000000(node=0|zone=2) [ 14.733621] page_type: f5(slab) [ 14.733826] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 14.734501] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 14.735032] page dumped because: kasan: bad access detected [ 14.735505] [ 14.735740] Memory state around the buggy address: [ 14.736241] ffff8881024d2480: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 14.736663] ffff8881024d2500: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 14.738537] >ffff8881024d2580: fa fb fc fc 00 05 fc fc fa fb fc fc fa fb fc fc [ 14.738825] ^ [ 14.739052] ffff8881024d2600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.739284] ffff8881024d2680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.739983] ==================================================================