Hay
Date
Nov. 26, 2024, 6:09 a.m.

Environment
qemu-arm64
qemu-x86_64

[   34.484898] ==================================================================
[   34.485710] BUG: KASAN: slab-use-after-free in kasan_strings+0x858/0x8f8
[   34.486641] Read of size 1 at addr fff00000c58bc8d0 by task kunit_try_catch/248
[   34.487865] 
[   34.488553] CPU: 1 UID: 0 PID: 248 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241126 #1
[   34.489891] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.490402] Hardware name: linux,dummy-virt (DT)
[   34.491156] Call trace:
[   34.491516]  show_stack+0x20/0x38 (C)
[   34.492334]  dump_stack_lvl+0x8c/0xd0
[   34.493043]  print_report+0x118/0x5e0
[   34.493727]  kasan_report+0xc8/0x118
[   34.494341]  __asan_report_load1_noabort+0x20/0x30
[   34.495148]  kasan_strings+0x858/0x8f8
[   34.495805]  kunit_try_run_case+0x14c/0x3d0
[   34.496462]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.497311]  kthread+0x24c/0x2d0
[   34.497979]  ret_from_fork+0x10/0x20
[   34.498601] 
[   34.498986] Allocated by task 248:
[   34.499587]  kasan_save_stack+0x3c/0x68
[   34.500197]  kasan_save_track+0x20/0x40
[   34.500855]  kasan_save_alloc_info+0x40/0x58
[   34.501449]  __kasan_kmalloc+0xd4/0xd8
[   34.502111]  __kmalloc_cache_noprof+0x15c/0x3c8
[   34.502747]  kasan_strings+0xb4/0x8f8
[   34.503411]  kunit_try_run_case+0x14c/0x3d0
[   34.503982]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.504784]  kthread+0x24c/0x2d0
[   34.505397]  ret_from_fork+0x10/0x20
[   34.506063] 
[   34.506434] Freed by task 248:
[   34.506990]  kasan_save_stack+0x3c/0x68
[   34.507667]  kasan_save_track+0x20/0x40
[   34.508234]  kasan_save_free_info+0x4c/0x78
[   34.508946]  __kasan_slab_free+0x6c/0x98
[   34.509568]  kfree+0x114/0x3d0
[   34.510174]  kasan_strings+0x128/0x8f8
[   34.510760]  kunit_try_run_case+0x14c/0x3d0
[   34.511481]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.512201]  kthread+0x24c/0x2d0
[   34.512807]  ret_from_fork+0x10/0x20
[   34.513428] 
[   34.513888] The buggy address belongs to the object at fff00000c58bc8c0
[   34.513888]  which belongs to the cache kmalloc-32 of size 32
[   34.515140] The buggy address is located 16 bytes inside of
[   34.515140]  freed 32-byte region [fff00000c58bc8c0, fff00000c58bc8e0)
[   34.516412] 
[   34.516818] The buggy address belongs to the physical page:
[   34.517464] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1058bc
[   34.518506] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   34.519419] page_type: f5(slab)
[   34.519988] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000
[   34.520867] raw: 0000000000000000 0000000080400040 00000001f5000000 0000000000000000
[   34.521804] page dumped because: kasan: bad access detected
[   34.522481] 
[   34.522893] Memory state around the buggy address:
[   34.523512]  fff00000c58bc780: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc
[   34.524459]  fff00000c58bc800: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   34.525380] >fff00000c58bc880: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   34.526204]                                                  ^
[   34.526996]  fff00000c58bc900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   34.527846]  fff00000c58bc980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   34.528690] ==================================================================

[   34.509790] ==================================================================
[   34.510660] BUG: KASAN: slab-use-after-free in kasan_strings+0x858/0x8f8
[   34.511411] Read of size 1 at addr fff00000c5ec1d10 by task kunit_try_catch/248
[   34.512064] 
[   34.512484] CPU: 0 UID: 0 PID: 248 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241126 #1
[   34.514782] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.515489] Hardware name: linux,dummy-virt (DT)
[   34.516337] Call trace:
[   34.516771]  show_stack+0x20/0x38 (C)
[   34.517311]  dump_stack_lvl+0x8c/0xd0
[   34.518302]  print_report+0x118/0x5e0
[   34.518942]  kasan_report+0xc8/0x118
[   34.519679]  __asan_report_load1_noabort+0x20/0x30
[   34.520416]  kasan_strings+0x858/0x8f8
[   34.521125]  kunit_try_run_case+0x14c/0x3d0
[   34.521778]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.522720]  kthread+0x24c/0x2d0
[   34.523278]  ret_from_fork+0x10/0x20
[   34.524194] 
[   34.524602] Allocated by task 248:
[   34.525215]  kasan_save_stack+0x3c/0x68
[   34.526155]  kasan_save_track+0x20/0x40
[   34.526787]  kasan_save_alloc_info+0x40/0x58
[   34.527439]  __kasan_kmalloc+0xd4/0xd8
[   34.528037]  __kmalloc_cache_noprof+0x15c/0x3c8
[   34.528796]  kasan_strings+0xb4/0x8f8
[   34.529418]  kunit_try_run_case+0x14c/0x3d0
[   34.530868]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.531569]  kthread+0x24c/0x2d0
[   34.532088]  ret_from_fork+0x10/0x20
[   34.533040] 
[   34.533393] Freed by task 248:
[   34.533964]  kasan_save_stack+0x3c/0x68
[   34.534845]  kasan_save_track+0x20/0x40
[   34.535498]  kasan_save_free_info+0x4c/0x78
[   34.536069]  __kasan_slab_free+0x6c/0x98
[   34.536687]  kfree+0x114/0x3d0
[   34.537244]  kasan_strings+0x128/0x8f8
[   34.538129]  kunit_try_run_case+0x14c/0x3d0
[   34.538742]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.539562]  kthread+0x24c/0x2d0
[   34.540159]  ret_from_fork+0x10/0x20
[   34.540832] 
[   34.541216] The buggy address belongs to the object at fff00000c5ec1d00
[   34.541216]  which belongs to the cache kmalloc-32 of size 32
[   34.542776] The buggy address is located 16 bytes inside of
[   34.542776]  freed 32-byte region [fff00000c5ec1d00, fff00000c5ec1d20)
[   34.544089] 
[   34.544428] The buggy address belongs to the physical page:
[   34.544996] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105ec1
[   34.546276] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   34.547027] page_type: f5(slab)
[   34.547612] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000
[   34.548463] raw: 0000000000000000 0000000080400040 00000001f5000000 0000000000000000
[   34.549392] page dumped because: kasan: bad access detected
[   34.550780] 
[   34.551126] Memory state around the buggy address:
[   34.551821]  fff00000c5ec1c00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   34.552511]  fff00000c5ec1c80: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc
[   34.553630] >fff00000c5ec1d00: fa fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc
[   34.554415]                          ^
[   34.555327]  fff00000c5ec1d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   34.556117]  fff00000c5ec1e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   34.557033] ==================================================================

[   28.689005] ==================================================================
[   28.689510] BUG: KASAN: slab-use-after-free in kasan_strings+0xa0f/0xb60
[   28.689522] Read of size 1 at addr ffff88810294c410 by task kunit_try_catch/268
[   28.689522] 
[   28.689522] CPU: 1 UID: 0 PID: 268 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241126 #1
[   28.689522] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.689522] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   28.689522] Call Trace:
[   28.694621]  <TASK>
[   28.694621]  dump_stack_lvl+0x73/0xb0
[   28.694621]  print_report+0xd1/0x640
[   28.696274]  ? __virt_addr_valid+0x1db/0x2d0
[   28.696274]  ? kasan_complete_mode_report_info+0x64/0x200
[   28.696274]  kasan_report+0x102/0x140
[   28.698613]  ? kasan_strings+0xa0f/0xb60
[   28.698613]  ? kasan_strings+0xa0f/0xb60
[   28.698613]  __asan_report_load1_noabort+0x18/0x20
[   28.698613]  kasan_strings+0xa0f/0xb60
[   28.698613]  ? __pfx_kasan_strings+0x10/0x10
[   28.698613]  ? __schedule+0xc3e/0x2790
[   28.698613]  ? ktime_get_ts64+0x84/0x230
[   28.703059]  kunit_try_run_case+0x1b3/0x490
[   28.703059]  ? __pfx_kunit_try_run_case+0x10/0x10
[   28.703059]  ? _raw_spin_lock_irqsave+0xa2/0x110
[   28.703059]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   28.703059]  ? __kthread_parkme+0x82/0x160
[   28.703059]  ? preempt_count_sub+0x50/0x80
[   28.703059]  ? __pfx_kunit_try_run_case+0x10/0x10
[   28.703059]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   28.703059]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.703059]  kthread+0x257/0x310
[   28.703059]  ? __pfx_kthread+0x10/0x10
[   28.703059]  ret_from_fork+0x41/0x80
[   28.703059]  ? __pfx_kthread+0x10/0x10
[   28.703059]  ret_from_fork_asm+0x1a/0x30
[   28.703059]  </TASK>
[   28.703059] 
[   28.703059] Allocated by task 268:
[   28.711736]  kasan_save_stack+0x3d/0x60
[   28.712535]  kasan_save_track+0x18/0x40
[   28.712535]  kasan_save_alloc_info+0x3b/0x50
[   28.712535]  __kasan_kmalloc+0xb7/0xc0
[   28.712535]  __kmalloc_cache_noprof+0x184/0x410
[   28.714273]  kasan_strings+0xb3/0xb60
[   28.715602]  kunit_try_run_case+0x1b3/0x490
[   28.715602]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.715602]  kthread+0x257/0x310
[   28.716912]  ret_from_fork+0x41/0x80
[   28.716912]  ret_from_fork_asm+0x1a/0x30
[   28.716912] 
[   28.716912] Freed by task 268:
[   28.716912]  kasan_save_stack+0x3d/0x60
[   28.718512]  kasan_save_track+0x18/0x40
[   28.718512]  kasan_save_free_info+0x3f/0x60
[   28.718512]  __kasan_slab_free+0x56/0x70
[   28.718512]  kfree+0x123/0x3f0
[   28.721375]  kasan_strings+0x13a/0xb60
[   28.721375]  kunit_try_run_case+0x1b3/0x490
[   28.721375]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.721375]  kthread+0x257/0x310
[   28.721375]  ret_from_fork+0x41/0x80
[   28.721375]  ret_from_fork_asm+0x1a/0x30
[   28.721375] 
[   28.721375] The buggy address belongs to the object at ffff88810294c400
[   28.721375]  which belongs to the cache kmalloc-32 of size 32
[   28.721375] The buggy address is located 16 bytes inside of
[   28.721375]  freed 32-byte region [ffff88810294c400, ffff88810294c420)
[   28.726758] 
[   28.726758] The buggy address belongs to the physical page:
[   28.726758] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10294c
[   28.727984] flags: 0x200000000000000(node=0|zone=2)
[   28.727984] page_type: f5(slab)
[   28.730350] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000
[   28.730350] raw: 0000000000000000 0000000080400040 00000001f5000000 0000000000000000
[   28.732277] page dumped because: kasan: bad access detected
[   28.732277] 
[   28.732277] Memory state around the buggy address:
[   28.733899]  ffff88810294c300: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc
[   28.733899]  ffff88810294c380: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc
[   28.733899] >ffff88810294c400: fa fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc
[   28.736185]                          ^
[   28.736185]  ffff88810294c480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   28.736185]  ffff88810294c500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   28.737839] ==================================================================

[   23.559830] ==================================================================
[   23.560578] BUG: KASAN: slab-use-after-free in kasan_strings+0xa0f/0xb60
[   23.561385] Read of size 1 at addr ffff8881028c9250 by task kunit_try_catch/266
[   23.562076] 
[   23.562344] CPU: 0 UID: 0 PID: 266 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241126 #1
[   23.562947] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.563203] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   23.563713] Call Trace:
[   23.563928]  <TASK>
[   23.564123]  dump_stack_lvl+0x73/0xb0
[   23.564414]  print_report+0xd1/0x640
[   23.564931]  ? __virt_addr_valid+0x1db/0x2d0
[   23.565520]  ? kasan_complete_mode_report_info+0x64/0x200
[   23.566128]  kasan_report+0x102/0x140
[   23.566636]  ? kasan_strings+0xa0f/0xb60
[   23.567111]  ? kasan_strings+0xa0f/0xb60
[   23.567620]  __asan_report_load1_noabort+0x18/0x20
[   23.568176]  kasan_strings+0xa0f/0xb60
[   23.568885]  ? __pfx_kasan_strings+0x10/0x10
[   23.569357]  ? __schedule+0xc3e/0x2790
[   23.570980]  ? __pfx_read_tsc+0x10/0x10
[   23.571421]  ? ktime_get_ts64+0x84/0x230
[   23.571970]  kunit_try_run_case+0x1b3/0x490
[   23.572504]  ? __pfx_kunit_try_run_case+0x10/0x10
[   23.573018]  ? _raw_spin_lock_irqsave+0xa2/0x110
[   23.573526]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   23.574098]  ? __kthread_parkme+0x82/0x160
[   23.574639]  ? preempt_count_sub+0x50/0x80
[   23.574978]  ? __pfx_kunit_try_run_case+0x10/0x10
[   23.575557]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   23.576167]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.576536]  kthread+0x257/0x310
[   23.576984]  ? __pfx_kthread+0x10/0x10
[   23.577447]  ret_from_fork+0x41/0x80
[   23.577931]  ? __pfx_kthread+0x10/0x10
[   23.578401]  ret_from_fork_asm+0x1a/0x30
[   23.578820]  </TASK>
[   23.579021] 
[   23.579174] Allocated by task 266:
[   23.579408]  kasan_save_stack+0x3d/0x60
[   23.579904]  kasan_save_track+0x18/0x40
[   23.580347]  kasan_save_alloc_info+0x3b/0x50
[   23.580858]  __kasan_kmalloc+0xb7/0xc0
[   23.581273]  __kmalloc_cache_noprof+0x184/0x410
[   23.581838]  kasan_strings+0xb3/0xb60
[   23.582218]  kunit_try_run_case+0x1b3/0x490
[   23.582523]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.582902]  kthread+0x257/0x310
[   23.583154]  ret_from_fork+0x41/0x80
[   23.583616]  ret_from_fork_asm+0x1a/0x30
[   23.584054] 
[   23.584273] Freed by task 266:
[   23.584674]  kasan_save_stack+0x3d/0x60
[   23.585145]  kasan_save_track+0x18/0x40
[   23.585702]  kasan_save_free_info+0x3f/0x60
[   23.586159]  __kasan_slab_free+0x56/0x70
[   23.586618]  kfree+0x123/0x3f0
[   23.586994]  kasan_strings+0x13a/0xb60
[   23.587315]  kunit_try_run_case+0x1b3/0x490
[   23.589130]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.590344]  kthread+0x257/0x310
[   23.590927]  ret_from_fork+0x41/0x80
[   23.591197]  ret_from_fork_asm+0x1a/0x30
[   23.591463] 
[   23.591696] The buggy address belongs to the object at ffff8881028c9240
[   23.591696]  which belongs to the cache kmalloc-32 of size 32
[   23.592272] The buggy address is located 16 bytes inside of
[   23.592272]  freed 32-byte region [ffff8881028c9240, ffff8881028c9260)
[   23.593313] 
[   23.593647] The buggy address belongs to the physical page:
[   23.594180] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1028c9
[   23.594971] flags: 0x200000000000000(node=0|zone=2)
[   23.595568] page_type: f5(slab)
[   23.595989] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000
[   23.596771] raw: 0000000000000000 0000000080400040 00000001f5000000 0000000000000000
[   23.597439] page dumped because: kasan: bad access detected
[   23.598004] 
[   23.598206] Memory state around the buggy address:
[   23.598512]  ffff8881028c9100: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc
[   23.598935]  ffff8881028c9180: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   23.599666] >ffff8881028c9200: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   23.600305]                                                  ^
[   23.600915]  ffff8881028c9280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   23.601479]  ffff8881028c9300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   23.602120] ==================================================================