Date
Nov. 26, 2024, 6:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 34.439237] ================================================================== [ 34.440106] BUG: KASAN: slab-use-after-free in strcmp+0xc0/0xc8 [ 34.440895] Read of size 1 at addr fff00000c58bc8d0 by task kunit_try_catch/248 [ 34.441545] [ 34.442612] CPU: 1 UID: 0 PID: 248 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241126 #1 [ 34.443678] Tainted: [B]=BAD_PAGE, [N]=TEST [ 34.444457] Hardware name: linux,dummy-virt (DT) [ 34.445052] Call trace: [ 34.445477] show_stack+0x20/0x38 (C) [ 34.446073] dump_stack_lvl+0x8c/0xd0 [ 34.446852] print_report+0x118/0x5e0 [ 34.447548] kasan_report+0xc8/0x118 [ 34.448281] __asan_report_load1_noabort+0x20/0x30 [ 34.449108] strcmp+0xc0/0xc8 [ 34.449736] kasan_strings+0x248/0x8f8 [ 34.450364] kunit_try_run_case+0x14c/0x3d0 [ 34.451083] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 34.451859] kthread+0x24c/0x2d0 [ 34.452468] ret_from_fork+0x10/0x20 [ 34.453092] [ 34.453497] Allocated by task 248: [ 34.454026] kasan_save_stack+0x3c/0x68 [ 34.454591] kasan_save_track+0x20/0x40 [ 34.455263] kasan_save_alloc_info+0x40/0x58 [ 34.455974] __kasan_kmalloc+0xd4/0xd8 [ 34.456627] __kmalloc_cache_noprof+0x15c/0x3c8 [ 34.457286] kasan_strings+0xb4/0x8f8 [ 34.457948] kunit_try_run_case+0x14c/0x3d0 [ 34.458575] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 34.459394] kthread+0x24c/0x2d0 [ 34.459861] ret_from_fork+0x10/0x20 [ 34.460478] [ 34.460841] Freed by task 248: [ 34.461328] kasan_save_stack+0x3c/0x68 [ 34.462019] kasan_save_track+0x20/0x40 [ 34.462608] kasan_save_free_info+0x4c/0x78 [ 34.463326] __kasan_slab_free+0x6c/0x98 [ 34.463895] kfree+0x114/0x3d0 [ 34.464505] kasan_strings+0x128/0x8f8 [ 34.465170] kunit_try_run_case+0x14c/0x3d0 [ 34.465812] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 34.466648] kthread+0x24c/0x2d0 [ 34.467262] ret_from_fork+0x10/0x20 [ 34.467793] [ 34.468203] The buggy address belongs to the object at fff00000c58bc8c0 [ 34.468203] which belongs to the cache kmalloc-32 of size 32 [ 34.469480] The buggy address is located 16 bytes inside of [ 34.469480] freed 32-byte region [fff00000c58bc8c0, fff00000c58bc8e0) [ 34.470788] [ 34.471218] The buggy address belongs to the physical page: [ 34.471837] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1058bc [ 34.472874] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 34.473678] page_type: f5(slab) [ 34.474260] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 34.475194] raw: 0000000000000000 0000000080400040 00000001f5000000 0000000000000000 [ 34.476125] page dumped because: kasan: bad access detected [ 34.476810] [ 34.477167] Memory state around the buggy address: [ 34.477840] fff00000c58bc780: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 34.478674] fff00000c58bc800: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 34.479589] >fff00000c58bc880: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 34.480430] ^ [ 34.481131] fff00000c58bc900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.482002] fff00000c58bc980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.482846] ==================================================================
[ 34.459407] ================================================================== [ 34.460897] BUG: KASAN: slab-use-after-free in strcmp+0xc0/0xc8 [ 34.461728] Read of size 1 at addr fff00000c5ec1d10 by task kunit_try_catch/248 [ 34.463756] [ 34.464340] CPU: 0 UID: 0 PID: 248 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241126 #1 [ 34.465731] Tainted: [B]=BAD_PAGE, [N]=TEST [ 34.466308] Hardware name: linux,dummy-virt (DT) [ 34.466935] Call trace: [ 34.467388] show_stack+0x20/0x38 (C) [ 34.468021] dump_stack_lvl+0x8c/0xd0 [ 34.468649] print_report+0x118/0x5e0 [ 34.469332] kasan_report+0xc8/0x118 [ 34.470227] __asan_report_load1_noabort+0x20/0x30 [ 34.470871] strcmp+0xc0/0xc8 [ 34.471436] kasan_strings+0x248/0x8f8 [ 34.472045] kunit_try_run_case+0x14c/0x3d0 [ 34.472697] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 34.473404] kthread+0x24c/0x2d0 [ 34.474155] ret_from_fork+0x10/0x20 [ 34.474848] [ 34.475230] Allocated by task 248: [ 34.475810] kasan_save_stack+0x3c/0x68 [ 34.476393] kasan_save_track+0x20/0x40 [ 34.477028] kasan_save_alloc_info+0x40/0x58 [ 34.477984] __kasan_kmalloc+0xd4/0xd8 [ 34.478587] __kmalloc_cache_noprof+0x15c/0x3c8 [ 34.479168] kasan_strings+0xb4/0x8f8 [ 34.479811] kunit_try_run_case+0x14c/0x3d0 [ 34.480497] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 34.481187] kthread+0x24c/0x2d0 [ 34.482246] ret_from_fork+0x10/0x20 [ 34.482869] [ 34.483202] Freed by task 248: [ 34.483747] kasan_save_stack+0x3c/0x68 [ 34.484335] kasan_save_track+0x20/0x40 [ 34.485905] kasan_save_free_info+0x4c/0x78 [ 34.486600] __kasan_slab_free+0x6c/0x98 [ 34.487184] kfree+0x114/0x3d0 [ 34.487791] kasan_strings+0x128/0x8f8 [ 34.488321] kunit_try_run_case+0x14c/0x3d0 [ 34.489079] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 34.489995] kthread+0x24c/0x2d0 [ 34.490592] ret_from_fork+0x10/0x20 [ 34.490964] [ 34.491385] The buggy address belongs to the object at fff00000c5ec1d00 [ 34.491385] which belongs to the cache kmalloc-32 of size 32 [ 34.492735] The buggy address is located 16 bytes inside of [ 34.492735] freed 32-byte region [fff00000c5ec1d00, fff00000c5ec1d20) [ 34.494461] [ 34.494799] The buggy address belongs to the physical page: [ 34.495710] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105ec1 [ 34.496869] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 34.497942] page_type: f5(slab) [ 34.498415] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 34.499376] raw: 0000000000000000 0000000080400040 00000001f5000000 0000000000000000 [ 34.500323] page dumped because: kasan: bad access detected [ 34.501023] [ 34.501439] Memory state around the buggy address: [ 34.502421] fff00000c5ec1c00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 34.503569] fff00000c5ec1c80: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 34.504639] >fff00000c5ec1d00: fa fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc [ 34.505568] ^ [ 34.506466] fff00000c5ec1d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.507349] fff00000c5ec1e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.508274] ==================================================================
[ 28.636131] ================================================================== [ 28.636640] BUG: KASAN: slab-use-after-free in strcmp+0xb0/0xc0 [ 28.636640] Read of size 1 at addr ffff88810294c410 by task kunit_try_catch/268 [ 28.636640] [ 28.636640] CPU: 1 UID: 0 PID: 268 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241126 #1 [ 28.636640] Tainted: [B]=BAD_PAGE, [N]=TEST [ 28.636640] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 28.636640] Call Trace: [ 28.636640] <TASK> [ 28.636640] dump_stack_lvl+0x73/0xb0 [ 28.636640] print_report+0xd1/0x640 [ 28.636640] ? __virt_addr_valid+0x1db/0x2d0 [ 28.636640] ? kasan_complete_mode_report_info+0x64/0x200 [ 28.636640] kasan_report+0x102/0x140 [ 28.636640] ? strcmp+0xb0/0xc0 [ 28.636640] ? strcmp+0xb0/0xc0 [ 28.636640] __asan_report_load1_noabort+0x18/0x20 [ 28.636640] strcmp+0xb0/0xc0 [ 28.636640] kasan_strings+0x2e9/0xb60 [ 28.636640] ? __pfx_kasan_strings+0x10/0x10 [ 28.636640] ? __schedule+0xc3e/0x2790 [ 28.636640] ? ktime_get_ts64+0x84/0x230 [ 28.636640] kunit_try_run_case+0x1b3/0x490 [ 28.636640] ? __pfx_kunit_try_run_case+0x10/0x10 [ 28.636640] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 28.636640] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 28.636640] ? __kthread_parkme+0x82/0x160 [ 28.636640] ? preempt_count_sub+0x50/0x80 [ 28.636640] ? __pfx_kunit_try_run_case+0x10/0x10 [ 28.636640] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 28.636640] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 28.636640] kthread+0x257/0x310 [ 28.636640] ? __pfx_kthread+0x10/0x10 [ 28.636640] ret_from_fork+0x41/0x80 [ 28.636640] ? __pfx_kthread+0x10/0x10 [ 28.636640] ret_from_fork_asm+0x1a/0x30 [ 28.636640] </TASK> [ 28.636640] [ 28.636640] Allocated by task 268: [ 28.636640] kasan_save_stack+0x3d/0x60 [ 28.636640] kasan_save_track+0x18/0x40 [ 28.636640] kasan_save_alloc_info+0x3b/0x50 [ 28.636640] __kasan_kmalloc+0xb7/0xc0 [ 28.636640] __kmalloc_cache_noprof+0x184/0x410 [ 28.636640] kasan_strings+0xb3/0xb60 [ 28.636640] kunit_try_run_case+0x1b3/0x490 [ 28.636640] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 28.636640] kthread+0x257/0x310 [ 28.636640] ret_from_fork+0x41/0x80 [ 28.636640] ret_from_fork_asm+0x1a/0x30 [ 28.636640] [ 28.636640] Freed by task 268: [ 28.636640] kasan_save_stack+0x3d/0x60 [ 28.636640] kasan_save_track+0x18/0x40 [ 28.636640] kasan_save_free_info+0x3f/0x60 [ 28.636640] __kasan_slab_free+0x56/0x70 [ 28.636640] kfree+0x123/0x3f0 [ 28.636640] kasan_strings+0x13a/0xb60 [ 28.636640] kunit_try_run_case+0x1b3/0x490 [ 28.636640] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 28.636640] kthread+0x257/0x310 [ 28.636640] ret_from_fork+0x41/0x80 [ 28.636640] ret_from_fork_asm+0x1a/0x30 [ 28.636640] [ 28.636640] The buggy address belongs to the object at ffff88810294c400 [ 28.636640] which belongs to the cache kmalloc-32 of size 32 [ 28.636640] The buggy address is located 16 bytes inside of [ 28.636640] freed 32-byte region [ffff88810294c400, ffff88810294c420) [ 28.636640] [ 28.636640] The buggy address belongs to the physical page: [ 28.636640] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10294c [ 28.636640] flags: 0x200000000000000(node=0|zone=2) [ 28.636640] page_type: f5(slab) [ 28.636640] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 28.636640] raw: 0000000000000000 0000000080400040 00000001f5000000 0000000000000000 [ 28.636640] page dumped because: kasan: bad access detected [ 28.636640] [ 28.636640] Memory state around the buggy address: [ 28.636640] ffff88810294c300: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 28.636640] ffff88810294c380: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 28.636640] >ffff88810294c400: fa fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc [ 28.636640] ^ [ 28.636640] ffff88810294c480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.636640] ffff88810294c500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.636640] ==================================================================
[ 23.515878] ================================================================== [ 23.516392] BUG: KASAN: slab-use-after-free in strcmp+0xb0/0xc0 [ 23.516933] Read of size 1 at addr ffff8881028c9250 by task kunit_try_catch/266 [ 23.518286] [ 23.518623] CPU: 0 UID: 0 PID: 266 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241126 #1 [ 23.519501] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.519956] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.520437] Call Trace: [ 23.520821] <TASK> [ 23.521103] dump_stack_lvl+0x73/0xb0 [ 23.521561] print_report+0xd1/0x640 [ 23.522036] ? __virt_addr_valid+0x1db/0x2d0 [ 23.522429] ? kasan_complete_mode_report_info+0x64/0x200 [ 23.522852] kasan_report+0x102/0x140 [ 23.523131] ? strcmp+0xb0/0xc0 [ 23.523392] ? strcmp+0xb0/0xc0 [ 23.523831] __asan_report_load1_noabort+0x18/0x20 [ 23.524324] strcmp+0xb0/0xc0 [ 23.524779] kasan_strings+0x2e9/0xb60 [ 23.525268] ? __pfx_kasan_strings+0x10/0x10 [ 23.527280] ? __schedule+0xc3e/0x2790 [ 23.527723] ? __pfx_read_tsc+0x10/0x10 [ 23.528165] ? ktime_get_ts64+0x84/0x230 [ 23.529281] kunit_try_run_case+0x1b3/0x490 [ 23.529829] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.530185] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 23.530517] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.530914] ? __kthread_parkme+0x82/0x160 [ 23.531334] ? preempt_count_sub+0x50/0x80 [ 23.531833] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.532161] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.532544] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.533148] kthread+0x257/0x310 [ 23.533567] ? __pfx_kthread+0x10/0x10 [ 23.534030] ret_from_fork+0x41/0x80 [ 23.534457] ? __pfx_kthread+0x10/0x10 [ 23.534859] ret_from_fork_asm+0x1a/0x30 [ 23.535369] </TASK> [ 23.535632] [ 23.535864] Allocated by task 266: [ 23.536238] kasan_save_stack+0x3d/0x60 [ 23.536623] kasan_save_track+0x18/0x40 [ 23.536909] kasan_save_alloc_info+0x3b/0x50 [ 23.537198] __kasan_kmalloc+0xb7/0xc0 [ 23.537667] __kmalloc_cache_noprof+0x184/0x410 [ 23.538144] kasan_strings+0xb3/0xb60 [ 23.538555] kunit_try_run_case+0x1b3/0x490 [ 23.539048] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.539619] kthread+0x257/0x310 [ 23.539996] ret_from_fork+0x41/0x80 [ 23.540391] ret_from_fork_asm+0x1a/0x30 [ 23.540753] [ 23.540969] Freed by task 266: [ 23.541300] kasan_save_stack+0x3d/0x60 [ 23.541644] kasan_save_track+0x18/0x40 [ 23.541921] kasan_save_free_info+0x3f/0x60 [ 23.542338] __kasan_slab_free+0x56/0x70 [ 23.542821] kfree+0x123/0x3f0 [ 23.543185] kasan_strings+0x13a/0xb60 [ 23.543662] kunit_try_run_case+0x1b3/0x490 [ 23.544110] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.544707] kthread+0x257/0x310 [ 23.545084] ret_from_fork+0x41/0x80 [ 23.545429] ret_from_fork_asm+0x1a/0x30 [ 23.545794] [ 23.546010] The buggy address belongs to the object at ffff8881028c9240 [ 23.546010] which belongs to the cache kmalloc-32 of size 32 [ 23.547097] The buggy address is located 16 bytes inside of [ 23.547097] freed 32-byte region [ffff8881028c9240, ffff8881028c9260) [ 23.547828] [ 23.547995] The buggy address belongs to the physical page: [ 23.548299] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1028c9 [ 23.548982] flags: 0x200000000000000(node=0|zone=2) [ 23.549469] page_type: f5(slab) [ 23.549907] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 23.550655] raw: 0000000000000000 0000000080400040 00000001f5000000 0000000000000000 [ 23.551312] page dumped because: kasan: bad access detected [ 23.551867] [ 23.552086] Memory state around the buggy address: [ 23.552388] ffff8881028c9100: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 23.553030] ffff8881028c9180: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 23.553400] >ffff8881028c9200: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 23.554097] ^ [ 23.554680] ffff8881028c9280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.555323] ffff8881028c9300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.555812] ==================================================================