Date
Nov. 26, 2024, 6:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 34.578973] ================================================================== [ 34.579602] BUG: KASAN: slab-use-after-free in strnlen+0x80/0x88 [ 34.580729] Read of size 1 at addr fff00000c58bc8d0 by task kunit_try_catch/248 [ 34.581585] [ 34.582045] CPU: 1 UID: 0 PID: 248 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241126 #1 [ 34.583277] Tainted: [B]=BAD_PAGE, [N]=TEST [ 34.583866] Hardware name: linux,dummy-virt (DT) [ 34.584523] Call trace: [ 34.585041] show_stack+0x20/0x38 (C) [ 34.585729] dump_stack_lvl+0x8c/0xd0 [ 34.586419] print_report+0x118/0x5e0 [ 34.587073] kasan_report+0xc8/0x118 [ 34.587645] __asan_report_load1_noabort+0x20/0x30 [ 34.588455] strnlen+0x80/0x88 [ 34.589038] kasan_strings+0x380/0x8f8 [ 34.589664] kunit_try_run_case+0x14c/0x3d0 [ 34.590412] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 34.591285] kthread+0x24c/0x2d0 [ 34.591803] ret_from_fork+0x10/0x20 [ 34.592508] [ 34.592929] Allocated by task 248: [ 34.593505] kasan_save_stack+0x3c/0x68 [ 34.594204] kasan_save_track+0x20/0x40 [ 34.595477] kasan_save_alloc_info+0x40/0x58 [ 34.596227] __kasan_kmalloc+0xd4/0xd8 [ 34.596709] __kmalloc_cache_noprof+0x15c/0x3c8 [ 34.597401] kasan_strings+0xb4/0x8f8 [ 34.599094] kunit_try_run_case+0x14c/0x3d0 [ 34.599861] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 34.600797] kthread+0x24c/0x2d0 [ 34.601461] ret_from_fork+0x10/0x20 [ 34.601972] [ 34.602294] Freed by task 248: [ 34.602743] kasan_save_stack+0x3c/0x68 [ 34.603730] kasan_save_track+0x20/0x40 [ 34.604283] kasan_save_free_info+0x4c/0x78 [ 34.604817] __kasan_slab_free+0x6c/0x98 [ 34.605352] kfree+0x114/0x3d0 [ 34.605809] kasan_strings+0x128/0x8f8 [ 34.606863] kunit_try_run_case+0x14c/0x3d0 [ 34.607687] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 34.608585] kthread+0x24c/0x2d0 [ 34.609313] ret_from_fork+0x10/0x20 [ 34.610089] [ 34.610646] The buggy address belongs to the object at fff00000c58bc8c0 [ 34.610646] which belongs to the cache kmalloc-32 of size 32 [ 34.612188] The buggy address is located 16 bytes inside of [ 34.612188] freed 32-byte region [fff00000c58bc8c0, fff00000c58bc8e0) [ 34.613757] [ 34.614195] The buggy address belongs to the physical page: [ 34.614994] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1058bc [ 34.615826] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 34.616751] page_type: f5(slab) [ 34.617325] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 34.618166] raw: 0000000000000000 0000000080400040 00000001f5000000 0000000000000000 [ 34.619064] page dumped because: kasan: bad access detected [ 34.619789] [ 34.620222] Memory state around the buggy address: [ 34.620848] fff00000c58bc780: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 34.621642] fff00000c58bc800: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 34.622545] >fff00000c58bc880: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 34.623416] ^ [ 34.624067] fff00000c58bc900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.624850] fff00000c58bc980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.625582] ==================================================================
[ 34.606267] ================================================================== [ 34.607455] BUG: KASAN: slab-use-after-free in strnlen+0x80/0x88 [ 34.608235] Read of size 1 at addr fff00000c5ec1d10 by task kunit_try_catch/248 [ 34.608931] [ 34.609374] CPU: 0 UID: 0 PID: 248 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241126 #1 [ 34.610667] Tainted: [B]=BAD_PAGE, [N]=TEST [ 34.611143] Hardware name: linux,dummy-virt (DT) [ 34.611835] Call trace: [ 34.612298] show_stack+0x20/0x38 (C) [ 34.612834] dump_stack_lvl+0x8c/0xd0 [ 34.613492] print_report+0x118/0x5e0 [ 34.614120] kasan_report+0xc8/0x118 [ 34.614666] __asan_report_load1_noabort+0x20/0x30 [ 34.615430] strnlen+0x80/0x88 [ 34.616011] kasan_strings+0x380/0x8f8 [ 34.616685] kunit_try_run_case+0x14c/0x3d0 [ 34.617346] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 34.618003] kthread+0x24c/0x2d0 [ 34.618624] ret_from_fork+0x10/0x20 [ 34.619284] [ 34.619685] Allocated by task 248: [ 34.620247] kasan_save_stack+0x3c/0x68 [ 34.620835] kasan_save_track+0x20/0x40 [ 34.621413] kasan_save_alloc_info+0x40/0x58 [ 34.622108] __kasan_kmalloc+0xd4/0xd8 [ 34.622750] __kmalloc_cache_noprof+0x15c/0x3c8 [ 34.623282] kasan_strings+0xb4/0x8f8 [ 34.623928] kunit_try_run_case+0x14c/0x3d0 [ 34.624583] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 34.625366] kthread+0x24c/0x2d0 [ 34.625841] ret_from_fork+0x10/0x20 [ 34.626450] [ 34.626844] Freed by task 248: [ 34.627316] kasan_save_stack+0x3c/0x68 [ 34.627855] kasan_save_track+0x20/0x40 [ 34.628503] kasan_save_free_info+0x4c/0x78 [ 34.629374] __kasan_slab_free+0x6c/0x98 [ 34.629897] kfree+0x114/0x3d0 [ 34.630456] kasan_strings+0x128/0x8f8 [ 34.631085] kunit_try_run_case+0x14c/0x3d0 [ 34.631776] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 34.632500] kthread+0x24c/0x2d0 [ 34.633093] ret_from_fork+0x10/0x20 [ 34.633638] [ 34.634006] The buggy address belongs to the object at fff00000c5ec1d00 [ 34.634006] which belongs to the cache kmalloc-32 of size 32 [ 34.635272] The buggy address is located 16 bytes inside of [ 34.635272] freed 32-byte region [fff00000c5ec1d00, fff00000c5ec1d20) [ 34.636581] [ 34.636968] The buggy address belongs to the physical page: [ 34.637672] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105ec1 [ 34.638627] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 34.639376] page_type: f5(slab) [ 34.639966] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 34.640934] raw: 0000000000000000 0000000080400040 00000001f5000000 0000000000000000 [ 34.641819] page dumped because: kasan: bad access detected [ 34.642513] [ 34.642903] Memory state around the buggy address: [ 34.643583] fff00000c5ec1c00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 34.644379] fff00000c5ec1c80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 34.645252] >fff00000c5ec1d00: fa fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc [ 34.646120] ^ [ 34.646738] fff00000c5ec1d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.647498] fff00000c5ec1e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.648368] ==================================================================
[ 28.795426] ================================================================== [ 28.795864] BUG: KASAN: slab-use-after-free in strnlen+0x73/0x80 [ 28.796118] Read of size 1 at addr ffff88810294c410 by task kunit_try_catch/268 [ 28.796118] [ 28.796118] CPU: 1 UID: 0 PID: 268 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241126 #1 [ 28.797553] Tainted: [B]=BAD_PAGE, [N]=TEST [ 28.797553] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 28.798308] Call Trace: [ 28.800980] <TASK> [ 28.800980] dump_stack_lvl+0x73/0xb0 [ 28.800980] print_report+0xd1/0x640 [ 28.800980] ? __virt_addr_valid+0x1db/0x2d0 [ 28.802768] ? kasan_complete_mode_report_info+0x64/0x200 [ 28.803053] kasan_report+0x102/0x140 [ 28.804311] ? strnlen+0x73/0x80 [ 28.804311] ? strnlen+0x73/0x80 [ 28.804311] __asan_report_load1_noabort+0x18/0x20 [ 28.804311] strnlen+0x73/0x80 [ 28.804311] kasan_strings+0x4cc/0xb60 [ 28.807645] ? __pfx_kasan_strings+0x10/0x10 [ 28.807645] ? __schedule+0xc3e/0x2790 [ 28.808547] ? ktime_get_ts64+0x84/0x230 [ 28.809443] kunit_try_run_case+0x1b3/0x490 [ 28.809443] ? __pfx_kunit_try_run_case+0x10/0x10 [ 28.809443] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 28.809443] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 28.809443] ? __kthread_parkme+0x82/0x160 [ 28.809443] ? preempt_count_sub+0x50/0x80 [ 28.813918] ? __pfx_kunit_try_run_case+0x10/0x10 [ 28.813918] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 28.813918] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 28.813918] kthread+0x257/0x310 [ 28.816867] ? __pfx_kthread+0x10/0x10 [ 28.816867] ret_from_fork+0x41/0x80 [ 28.818019] ? __pfx_kthread+0x10/0x10 [ 28.818019] ret_from_fork_asm+0x1a/0x30 [ 28.818019] </TASK> [ 28.818019] [ 28.818019] Allocated by task 268: [ 28.818019] kasan_save_stack+0x3d/0x60 [ 28.821815] kasan_save_track+0x18/0x40 [ 28.821815] kasan_save_alloc_info+0x3b/0x50 [ 28.821815] __kasan_kmalloc+0xb7/0xc0 [ 28.821815] __kmalloc_cache_noprof+0x184/0x410 [ 28.821815] kasan_strings+0xb3/0xb60 [ 28.821815] kunit_try_run_case+0x1b3/0x490 [ 28.821815] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 28.825750] kthread+0x257/0x310 [ 28.825750] ret_from_fork+0x41/0x80 [ 28.825750] ret_from_fork_asm+0x1a/0x30 [ 28.825750] [ 28.827425] Freed by task 268: [ 28.827425] kasan_save_stack+0x3d/0x60 [ 28.827425] kasan_save_track+0x18/0x40 [ 28.827425] kasan_save_free_info+0x3f/0x60 [ 28.830156] __kasan_slab_free+0x56/0x70 [ 28.830156] kfree+0x123/0x3f0 [ 28.830156] kasan_strings+0x13a/0xb60 [ 28.831491] kunit_try_run_case+0x1b3/0x490 [ 28.832597] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 28.832597] kthread+0x257/0x310 [ 28.832597] ret_from_fork+0x41/0x80 [ 28.834946] ret_from_fork_asm+0x1a/0x30 [ 28.834946] [ 28.834946] The buggy address belongs to the object at ffff88810294c400 [ 28.834946] which belongs to the cache kmalloc-32 of size 32 [ 28.834946] The buggy address is located 16 bytes inside of [ 28.834946] freed 32-byte region [ffff88810294c400, ffff88810294c420) [ 28.837378] [ 28.837378] The buggy address belongs to the physical page: [ 28.837378] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10294c [ 28.837378] flags: 0x200000000000000(node=0|zone=2) [ 28.837378] page_type: f5(slab) [ 28.841629] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 28.841629] raw: 0000000000000000 0000000080400040 00000001f5000000 0000000000000000 [ 28.841629] page dumped because: kasan: bad access detected [ 28.841629] [ 28.843474] Memory state around the buggy address: [ 28.843474] ffff88810294c300: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 28.843474] ffff88810294c380: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 28.845944] >ffff88810294c400: fa fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc [ 28.845944] ^ [ 28.847867] ffff88810294c480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.847867] ffff88810294c500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.847867] ==================================================================
[ 23.644285] ================================================================== [ 23.645278] BUG: KASAN: slab-use-after-free in strnlen+0x73/0x80 [ 23.645712] Read of size 1 at addr ffff8881028c9250 by task kunit_try_catch/266 [ 23.646240] [ 23.646548] CPU: 0 UID: 0 PID: 266 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241126 #1 [ 23.647478] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.647928] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.648816] Call Trace: [ 23.649174] <TASK> [ 23.649412] dump_stack_lvl+0x73/0xb0 [ 23.649950] print_report+0xd1/0x640 [ 23.650291] ? __virt_addr_valid+0x1db/0x2d0 [ 23.650674] ? kasan_complete_mode_report_info+0x64/0x200 [ 23.651030] kasan_report+0x102/0x140 [ 23.651310] ? strnlen+0x73/0x80 [ 23.651703] ? strnlen+0x73/0x80 [ 23.652109] __asan_report_load1_noabort+0x18/0x20 [ 23.652709] strnlen+0x73/0x80 [ 23.653115] kasan_strings+0x4cc/0xb60 [ 23.653612] ? __pfx_kasan_strings+0x10/0x10 [ 23.654134] ? __schedule+0xc3e/0x2790 [ 23.654637] ? __pfx_read_tsc+0x10/0x10 [ 23.655094] ? ktime_get_ts64+0x84/0x230 [ 23.655530] kunit_try_run_case+0x1b3/0x490 [ 23.656088] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.656429] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 23.657007] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.657459] ? __kthread_parkme+0x82/0x160 [ 23.658001] ? preempt_count_sub+0x50/0x80 [ 23.658395] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.658978] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.659515] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.660132] kthread+0x257/0x310 [ 23.660425] ? __pfx_kthread+0x10/0x10 [ 23.660952] ret_from_fork+0x41/0x80 [ 23.661262] ? __pfx_kthread+0x10/0x10 [ 23.661756] ret_from_fork_asm+0x1a/0x30 [ 23.662152] </TASK> [ 23.662447] [ 23.662741] Allocated by task 266: [ 23.663041] kasan_save_stack+0x3d/0x60 [ 23.663318] kasan_save_track+0x18/0x40 [ 23.663706] kasan_save_alloc_info+0x3b/0x50 [ 23.664200] __kasan_kmalloc+0xb7/0xc0 [ 23.664648] __kmalloc_cache_noprof+0x184/0x410 [ 23.665177] kasan_strings+0xb3/0xb60 [ 23.665708] kunit_try_run_case+0x1b3/0x490 [ 23.666075] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.666405] kthread+0x257/0x310 [ 23.666837] ret_from_fork+0x41/0x80 [ 23.667276] ret_from_fork_asm+0x1a/0x30 [ 23.667800] [ 23.668051] Freed by task 266: [ 23.668386] kasan_save_stack+0x3d/0x60 [ 23.668807] kasan_save_track+0x18/0x40 [ 23.669077] kasan_save_free_info+0x3f/0x60 [ 23.669352] __kasan_slab_free+0x56/0x70 [ 23.669787] kfree+0x123/0x3f0 [ 23.670166] kasan_strings+0x13a/0xb60 [ 23.670691] kunit_try_run_case+0x1b3/0x490 [ 23.671163] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.671763] kthread+0x257/0x310 [ 23.672184] ret_from_fork+0x41/0x80 [ 23.672528] ret_from_fork_asm+0x1a/0x30 [ 23.672858] [ 23.673013] The buggy address belongs to the object at ffff8881028c9240 [ 23.673013] which belongs to the cache kmalloc-32 of size 32 [ 23.673879] The buggy address is located 16 bytes inside of [ 23.673879] freed 32-byte region [ffff8881028c9240, ffff8881028c9260) [ 23.674941] [ 23.675173] The buggy address belongs to the physical page: [ 23.675805] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1028c9 [ 23.676308] flags: 0x200000000000000(node=0|zone=2) [ 23.676713] page_type: f5(slab) [ 23.677081] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 23.677879] raw: 0000000000000000 0000000080400040 00000001f5000000 0000000000000000 [ 23.678464] page dumped because: kasan: bad access detected [ 23.678905] [ 23.679133] Memory state around the buggy address: [ 23.679557] ffff8881028c9100: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 23.680110] ffff8881028c9180: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 23.680750] >ffff8881028c9200: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 23.681327] ^ [ 23.681881] ffff8881028c9280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.682471] ffff8881028c9300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.682905] ==================================================================