Date
July 9, 2025, 11:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.993555] ================================================================== [ 16.993619] BUG: KASAN: slab-use-after-free in ksize_uaf+0x598/0x5f8 [ 16.993680] Read of size 1 at addr fff00000c638be00 by task kunit_try_catch/196 [ 16.993731] [ 16.993776] CPU: 1 UID: 0 PID: 196 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.993856] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.993882] Hardware name: linux,dummy-virt (DT) [ 16.993920] Call trace: [ 16.993941] show_stack+0x20/0x38 (C) [ 16.994003] dump_stack_lvl+0x8c/0xd0 [ 16.994058] print_report+0x118/0x608 [ 16.994125] kasan_report+0xdc/0x128 [ 16.994171] __asan_report_load1_noabort+0x20/0x30 [ 16.994371] ksize_uaf+0x598/0x5f8 [ 16.994418] kunit_try_run_case+0x170/0x3f0 [ 16.994526] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.994624] kthread+0x328/0x630 [ 16.994672] ret_from_fork+0x10/0x20 [ 16.994787] [ 16.994807] Allocated by task 196: [ 16.994845] kasan_save_stack+0x3c/0x68 [ 16.994885] kasan_save_track+0x20/0x40 [ 16.994940] kasan_save_alloc_info+0x40/0x58 [ 16.994987] __kasan_kmalloc+0xd4/0xd8 [ 16.995022] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.995079] ksize_uaf+0xb8/0x5f8 [ 16.995133] kunit_try_run_case+0x170/0x3f0 [ 16.995172] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.995221] kthread+0x328/0x630 [ 16.995254] ret_from_fork+0x10/0x20 [ 16.995289] [ 16.995306] Freed by task 196: [ 16.995342] kasan_save_stack+0x3c/0x68 [ 16.995402] kasan_save_track+0x20/0x40 [ 16.995448] kasan_save_free_info+0x4c/0x78 [ 16.995494] __kasan_slab_free+0x6c/0x98 [ 16.995539] kfree+0x214/0x3c8 [ 16.995581] ksize_uaf+0x11c/0x5f8 [ 16.995614] kunit_try_run_case+0x170/0x3f0 [ 16.995952] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.996035] kthread+0x328/0x630 [ 16.996179] ret_from_fork+0x10/0x20 [ 16.996268] [ 16.996296] The buggy address belongs to the object at fff00000c638be00 [ 16.996296] which belongs to the cache kmalloc-128 of size 128 [ 16.996356] The buggy address is located 0 bytes inside of [ 16.996356] freed 128-byte region [fff00000c638be00, fff00000c638be80) [ 16.996423] [ 16.996453] The buggy address belongs to the physical page: [ 16.996485] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10638b [ 16.996557] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.996635] page_type: f5(slab) [ 16.996709] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 16.996795] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.996873] page dumped because: kasan: bad access detected [ 16.996906] [ 16.996924] Memory state around the buggy address: [ 16.996955] fff00000c638bd00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.996998] fff00000c638bd80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.997038] >fff00000c638be00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.997369] ^ [ 16.997403] fff00000c638be80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.997547] fff00000c638bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.997622] ================================================================== [ 16.987637] ================================================================== [ 16.987734] BUG: KASAN: slab-use-after-free in ksize_uaf+0x168/0x5f8 [ 16.987902] Read of size 1 at addr fff00000c638be00 by task kunit_try_catch/196 [ 16.987961] [ 16.987997] CPU: 1 UID: 0 PID: 196 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.988103] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.988141] Hardware name: linux,dummy-virt (DT) [ 16.988174] Call trace: [ 16.988196] show_stack+0x20/0x38 (C) [ 16.988246] dump_stack_lvl+0x8c/0xd0 [ 16.988295] print_report+0x118/0x608 [ 16.988340] kasan_report+0xdc/0x128 [ 16.988386] __kasan_check_byte+0x54/0x70 [ 16.988432] ksize+0x30/0x88 [ 16.988474] ksize_uaf+0x168/0x5f8 [ 16.988515] kunit_try_run_case+0x170/0x3f0 [ 16.988563] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.988691] kthread+0x328/0x630 [ 16.988779] ret_from_fork+0x10/0x20 [ 16.988876] [ 16.988982] Allocated by task 196: [ 16.989040] kasan_save_stack+0x3c/0x68 [ 16.989128] kasan_save_track+0x20/0x40 [ 16.989228] kasan_save_alloc_info+0x40/0x58 [ 16.989318] __kasan_kmalloc+0xd4/0xd8 [ 16.989434] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.989507] ksize_uaf+0xb8/0x5f8 [ 16.989549] kunit_try_run_case+0x170/0x3f0 [ 16.989587] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.989630] kthread+0x328/0x630 [ 16.989661] ret_from_fork+0x10/0x20 [ 16.989698] [ 16.989717] Freed by task 196: [ 16.989742] kasan_save_stack+0x3c/0x68 [ 16.989789] kasan_save_track+0x20/0x40 [ 16.989825] kasan_save_free_info+0x4c/0x78 [ 16.989864] __kasan_slab_free+0x6c/0x98 [ 16.989899] kfree+0x214/0x3c8 [ 16.989933] ksize_uaf+0x11c/0x5f8 [ 16.989966] kunit_try_run_case+0x170/0x3f0 [ 16.990005] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.990049] kthread+0x328/0x630 [ 16.990081] ret_from_fork+0x10/0x20 [ 16.990563] [ 16.990654] The buggy address belongs to the object at fff00000c638be00 [ 16.990654] which belongs to the cache kmalloc-128 of size 128 [ 16.990802] The buggy address is located 0 bytes inside of [ 16.990802] freed 128-byte region [fff00000c638be00, fff00000c638be80) [ 16.990897] [ 16.990919] The buggy address belongs to the physical page: [ 16.990951] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10638b [ 16.991004] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.991051] page_type: f5(slab) [ 16.991090] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 16.991148] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.991189] page dumped because: kasan: bad access detected [ 16.991261] [ 16.991290] Memory state around the buggy address: [ 16.991348] fff00000c638bd00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.991448] fff00000c638bd80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.991514] >fff00000c638be00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.991569] ^ [ 16.991598] fff00000c638be80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.991646] fff00000c638bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.991742] ================================================================== [ 16.998023] ================================================================== [ 16.998072] BUG: KASAN: slab-use-after-free in ksize_uaf+0x544/0x5f8 [ 16.998135] Read of size 1 at addr fff00000c638be78 by task kunit_try_catch/196 [ 16.998185] [ 16.998224] CPU: 1 UID: 0 PID: 196 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.998304] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.998330] Hardware name: linux,dummy-virt (DT) [ 16.998360] Call trace: [ 16.998389] show_stack+0x20/0x38 (C) [ 16.998436] dump_stack_lvl+0x8c/0xd0 [ 16.998490] print_report+0x118/0x608 [ 16.998536] kasan_report+0xdc/0x128 [ 16.998580] __asan_report_load1_noabort+0x20/0x30 [ 16.998630] ksize_uaf+0x544/0x5f8 [ 16.998679] kunit_try_run_case+0x170/0x3f0 [ 16.998732] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.998785] kthread+0x328/0x630 [ 16.998831] ret_from_fork+0x10/0x20 [ 16.998876] [ 16.998894] Allocated by task 196: [ 16.998921] kasan_save_stack+0x3c/0x68 [ 16.998958] kasan_save_track+0x20/0x40 [ 16.999005] kasan_save_alloc_info+0x40/0x58 [ 16.999046] __kasan_kmalloc+0xd4/0xd8 [ 16.999081] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.999129] ksize_uaf+0xb8/0x5f8 [ 16.999162] kunit_try_run_case+0x170/0x3f0 [ 16.999199] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.999241] kthread+0x328/0x630 [ 16.999280] ret_from_fork+0x10/0x20 [ 16.999316] [ 16.999334] Freed by task 196: [ 16.999366] kasan_save_stack+0x3c/0x68 [ 16.999402] kasan_save_track+0x20/0x40 [ 16.999439] kasan_save_free_info+0x4c/0x78 [ 16.999491] __kasan_slab_free+0x6c/0x98 [ 16.999529] kfree+0x214/0x3c8 [ 16.999571] ksize_uaf+0x11c/0x5f8 [ 16.999605] kunit_try_run_case+0x170/0x3f0 [ 16.999640] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.999691] kthread+0x328/0x630 [ 16.999722] ret_from_fork+0x10/0x20 [ 16.999758] [ 16.999777] The buggy address belongs to the object at fff00000c638be00 [ 16.999777] which belongs to the cache kmalloc-128 of size 128 [ 16.999856] The buggy address is located 120 bytes inside of [ 16.999856] freed 128-byte region [fff00000c638be00, fff00000c638be80) [ 16.999920] [ 16.999939] The buggy address belongs to the physical page: [ 16.999970] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10638b [ 17.000094] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.000154] page_type: f5(slab) [ 17.000189] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 17.000239] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 17.000280] page dumped because: kasan: bad access detected [ 17.000317] [ 17.000334] Memory state around the buggy address: [ 17.000364] fff00000c638bd00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 17.002155] fff00000c638bd80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.002244] >fff00000c638be00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 17.002287] ^ [ 17.002327] fff00000c638be80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.002387] fff00000c638bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.002480] ==================================================================
[ 13.046694] ================================================================== [ 13.047002] BUG: KASAN: slab-use-after-free in ksize_uaf+0x5fe/0x6c0 [ 13.047544] Read of size 1 at addr ffff8881031dbc00 by task kunit_try_catch/213 [ 13.047778] [ 13.047892] CPU: 0 UID: 0 PID: 213 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 13.047933] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.047944] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.047964] Call Trace: [ 13.047979] <TASK> [ 13.047993] dump_stack_lvl+0x73/0xb0 [ 13.048022] print_report+0xd1/0x650 [ 13.048239] ? __virt_addr_valid+0x1db/0x2d0 [ 13.048266] ? ksize_uaf+0x5fe/0x6c0 [ 13.048286] ? kasan_complete_mode_report_info+0x64/0x200 [ 13.048308] ? ksize_uaf+0x5fe/0x6c0 [ 13.048335] kasan_report+0x141/0x180 [ 13.048357] ? ksize_uaf+0x5fe/0x6c0 [ 13.048381] __asan_report_load1_noabort+0x18/0x20 [ 13.048406] ksize_uaf+0x5fe/0x6c0 [ 13.048426] ? __pfx_ksize_uaf+0x10/0x10 [ 13.048449] ? __pfx_ksize_uaf+0x10/0x10 [ 13.048473] kunit_try_run_case+0x1a5/0x480 [ 13.048496] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.048518] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.048543] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.048567] ? __kthread_parkme+0x82/0x180 [ 13.048586] ? preempt_count_sub+0x50/0x80 [ 13.048609] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.048633] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.048656] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.048681] kthread+0x337/0x6f0 [ 13.048699] ? trace_preempt_on+0x20/0xc0 [ 13.048734] ? __pfx_kthread+0x10/0x10 [ 13.048754] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.048775] ? calculate_sigpending+0x7b/0xa0 [ 13.048799] ? __pfx_kthread+0x10/0x10 [ 13.048819] ret_from_fork+0x116/0x1d0 [ 13.048838] ? __pfx_kthread+0x10/0x10 [ 13.048858] ret_from_fork_asm+0x1a/0x30 [ 13.048887] </TASK> [ 13.048897] [ 13.055730] Allocated by task 213: [ 13.055857] kasan_save_stack+0x45/0x70 [ 13.055997] kasan_save_track+0x18/0x40 [ 13.056129] kasan_save_alloc_info+0x3b/0x50 [ 13.056384] __kasan_kmalloc+0xb7/0xc0 [ 13.056571] __kmalloc_cache_noprof+0x189/0x420 [ 13.056803] ksize_uaf+0xaa/0x6c0 [ 13.056974] kunit_try_run_case+0x1a5/0x480 [ 13.057339] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.057651] kthread+0x337/0x6f0 [ 13.057819] ret_from_fork+0x116/0x1d0 [ 13.058001] ret_from_fork_asm+0x1a/0x30 [ 13.058149] [ 13.058219] Freed by task 213: [ 13.058329] kasan_save_stack+0x45/0x70 [ 13.058463] kasan_save_track+0x18/0x40 [ 13.058859] kasan_save_free_info+0x3f/0x60 [ 13.059191] __kasan_slab_free+0x56/0x70 [ 13.059387] kfree+0x222/0x3f0 [ 13.059555] ksize_uaf+0x12c/0x6c0 [ 13.059813] kunit_try_run_case+0x1a5/0x480 [ 13.060113] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.060384] kthread+0x337/0x6f0 [ 13.060544] ret_from_fork+0x116/0x1d0 [ 13.060700] ret_from_fork_asm+0x1a/0x30 [ 13.060870] [ 13.060938] The buggy address belongs to the object at ffff8881031dbc00 [ 13.060938] which belongs to the cache kmalloc-128 of size 128 [ 13.061408] The buggy address is located 0 bytes inside of [ 13.061408] freed 128-byte region [ffff8881031dbc00, ffff8881031dbc80) [ 13.061891] [ 13.061961] The buggy address belongs to the physical page: [ 13.062128] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1031db [ 13.062360] flags: 0x200000000000000(node=0|zone=2) [ 13.062800] page_type: f5(slab) [ 13.062978] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 13.063488] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 13.063778] page dumped because: kasan: bad access detected [ 13.063948] [ 13.064017] Memory state around the buggy address: [ 13.064167] ffff8881031dbb00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 13.064478] ffff8881031dbb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.064824] >ffff8881031dbc00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 13.065183] ^ [ 13.065583] ffff8881031dbc80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.066240] ffff8881031dbd00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.066490] ================================================================== [ 13.026228] ================================================================== [ 13.027139] BUG: KASAN: slab-use-after-free in ksize_uaf+0x19d/0x6c0 [ 13.027562] Read of size 1 at addr ffff8881031dbc00 by task kunit_try_catch/213 [ 13.027896] [ 13.027999] CPU: 0 UID: 0 PID: 213 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 13.028043] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.028054] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.028074] Call Trace: [ 13.028086] <TASK> [ 13.028102] dump_stack_lvl+0x73/0xb0 [ 13.028134] print_report+0xd1/0x650 [ 13.028157] ? __virt_addr_valid+0x1db/0x2d0 [ 13.028180] ? ksize_uaf+0x19d/0x6c0 [ 13.028200] ? kasan_complete_mode_report_info+0x64/0x200 [ 13.028223] ? ksize_uaf+0x19d/0x6c0 [ 13.028243] kasan_report+0x141/0x180 [ 13.028264] ? ksize_uaf+0x19d/0x6c0 [ 13.028286] ? ksize_uaf+0x19d/0x6c0 [ 13.028306] __kasan_check_byte+0x3d/0x50 [ 13.028332] ksize+0x20/0x60 [ 13.028353] ksize_uaf+0x19d/0x6c0 [ 13.028372] ? __pfx_ksize_uaf+0x10/0x10 [ 13.028395] ? __pfx_ksize_uaf+0x10/0x10 [ 13.028419] kunit_try_run_case+0x1a5/0x480 [ 13.028444] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.028467] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.028491] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.028514] ? __kthread_parkme+0x82/0x180 [ 13.028535] ? preempt_count_sub+0x50/0x80 [ 13.028559] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.028583] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.028607] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.028631] kthread+0x337/0x6f0 [ 13.028650] ? trace_preempt_on+0x20/0xc0 [ 13.028673] ? __pfx_kthread+0x10/0x10 [ 13.028693] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.028806] ? calculate_sigpending+0x7b/0xa0 [ 13.028832] ? __pfx_kthread+0x10/0x10 [ 13.028853] ret_from_fork+0x116/0x1d0 [ 13.028873] ? __pfx_kthread+0x10/0x10 [ 13.028893] ret_from_fork_asm+0x1a/0x30 [ 13.028924] </TASK> [ 13.028934] [ 13.036010] Allocated by task 213: [ 13.036219] kasan_save_stack+0x45/0x70 [ 13.036411] kasan_save_track+0x18/0x40 [ 13.036545] kasan_save_alloc_info+0x3b/0x50 [ 13.036693] __kasan_kmalloc+0xb7/0xc0 [ 13.036833] __kmalloc_cache_noprof+0x189/0x420 [ 13.037050] ksize_uaf+0xaa/0x6c0 [ 13.037217] kunit_try_run_case+0x1a5/0x480 [ 13.037425] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.037864] kthread+0x337/0x6f0 [ 13.038162] ret_from_fork+0x116/0x1d0 [ 13.038299] ret_from_fork_asm+0x1a/0x30 [ 13.038437] [ 13.038505] Freed by task 213: [ 13.038614] kasan_save_stack+0x45/0x70 [ 13.038792] kasan_save_track+0x18/0x40 [ 13.038966] kasan_save_free_info+0x3f/0x60 [ 13.039285] __kasan_slab_free+0x56/0x70 [ 13.039450] kfree+0x222/0x3f0 [ 13.039565] ksize_uaf+0x12c/0x6c0 [ 13.039687] kunit_try_run_case+0x1a5/0x480 [ 13.039844] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.040142] kthread+0x337/0x6f0 [ 13.040399] ret_from_fork+0x116/0x1d0 [ 13.040627] ret_from_fork_asm+0x1a/0x30 [ 13.040832] [ 13.040923] The buggy address belongs to the object at ffff8881031dbc00 [ 13.040923] which belongs to the cache kmalloc-128 of size 128 [ 13.041506] The buggy address is located 0 bytes inside of [ 13.041506] freed 128-byte region [ffff8881031dbc00, ffff8881031dbc80) [ 13.041939] [ 13.042034] The buggy address belongs to the physical page: [ 13.042306] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1031db [ 13.042664] flags: 0x200000000000000(node=0|zone=2) [ 13.042907] page_type: f5(slab) [ 13.043118] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 13.043429] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 13.043679] page dumped because: kasan: bad access detected [ 13.043858] [ 13.043936] Memory state around the buggy address: [ 13.044367] ffff8881031dbb00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 13.044686] ffff8881031dbb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.044938] >ffff8881031dbc00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 13.045352] ^ [ 13.045563] ffff8881031dbc80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.045786] ffff8881031dbd00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.046140] ================================================================== [ 13.066947] ================================================================== [ 13.067464] BUG: KASAN: slab-use-after-free in ksize_uaf+0x5e4/0x6c0 [ 13.067775] Read of size 1 at addr ffff8881031dbc78 by task kunit_try_catch/213 [ 13.067995] [ 13.068169] CPU: 0 UID: 0 PID: 213 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 13.068208] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.068219] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.068239] Call Trace: [ 13.068249] <TASK> [ 13.068263] dump_stack_lvl+0x73/0xb0 [ 13.068290] print_report+0xd1/0x650 [ 13.068312] ? __virt_addr_valid+0x1db/0x2d0 [ 13.068341] ? ksize_uaf+0x5e4/0x6c0 [ 13.068361] ? kasan_complete_mode_report_info+0x64/0x200 [ 13.068384] ? ksize_uaf+0x5e4/0x6c0 [ 13.068404] kasan_report+0x141/0x180 [ 13.068425] ? ksize_uaf+0x5e4/0x6c0 [ 13.068449] __asan_report_load1_noabort+0x18/0x20 [ 13.068474] ksize_uaf+0x5e4/0x6c0 [ 13.068494] ? __pfx_ksize_uaf+0x10/0x10 [ 13.068516] ? __pfx_ksize_uaf+0x10/0x10 [ 13.068541] kunit_try_run_case+0x1a5/0x480 [ 13.068564] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.068586] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.068610] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.068634] ? __kthread_parkme+0x82/0x180 [ 13.068655] ? preempt_count_sub+0x50/0x80 [ 13.068678] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.068712] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.068736] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.068761] kthread+0x337/0x6f0 [ 13.068779] ? trace_preempt_on+0x20/0xc0 [ 13.068803] ? __pfx_kthread+0x10/0x10 [ 13.068823] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.068844] ? calculate_sigpending+0x7b/0xa0 [ 13.068867] ? __pfx_kthread+0x10/0x10 [ 13.068888] ret_from_fork+0x116/0x1d0 [ 13.068906] ? __pfx_kthread+0x10/0x10 [ 13.068926] ret_from_fork_asm+0x1a/0x30 [ 13.068956] </TASK> [ 13.068965] [ 13.075684] Allocated by task 213: [ 13.075837] kasan_save_stack+0x45/0x70 [ 13.075981] kasan_save_track+0x18/0x40 [ 13.076300] kasan_save_alloc_info+0x3b/0x50 [ 13.076490] __kasan_kmalloc+0xb7/0xc0 [ 13.076621] __kmalloc_cache_noprof+0x189/0x420 [ 13.076785] ksize_uaf+0xaa/0x6c0 [ 13.076960] kunit_try_run_case+0x1a5/0x480 [ 13.077328] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.077578] kthread+0x337/0x6f0 [ 13.077743] ret_from_fork+0x116/0x1d0 [ 13.077874] ret_from_fork_asm+0x1a/0x30 [ 13.078011] [ 13.078294] Freed by task 213: [ 13.078596] kasan_save_stack+0x45/0x70 [ 13.078827] kasan_save_track+0x18/0x40 [ 13.079005] kasan_save_free_info+0x3f/0x60 [ 13.079261] __kasan_slab_free+0x56/0x70 [ 13.079402] kfree+0x222/0x3f0 [ 13.079518] ksize_uaf+0x12c/0x6c0 [ 13.079641] kunit_try_run_case+0x1a5/0x480 [ 13.079797] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.079973] kthread+0x337/0x6f0 [ 13.080134] ret_from_fork+0x116/0x1d0 [ 13.080328] ret_from_fork_asm+0x1a/0x30 [ 13.080525] [ 13.080618] The buggy address belongs to the object at ffff8881031dbc00 [ 13.080618] which belongs to the cache kmalloc-128 of size 128 [ 13.081399] The buggy address is located 120 bytes inside of [ 13.081399] freed 128-byte region [ffff8881031dbc00, ffff8881031dbc80) [ 13.081772] [ 13.081843] The buggy address belongs to the physical page: [ 13.083654] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1031db [ 13.083993] flags: 0x200000000000000(node=0|zone=2) [ 13.084352] page_type: f5(slab) [ 13.084509] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 13.084846] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 13.085489] page dumped because: kasan: bad access detected [ 13.085695] [ 13.085935] Memory state around the buggy address: [ 13.086320] ffff8881031dbb00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 13.086700] ffff8881031dbb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.087246] >ffff8881031dbc00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 13.087626] ^ [ 13.087933] ffff8881031dbc80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.088406] ffff8881031dbd00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.088815] ==================================================================