Hay
Date
July 3, 2025, 10:10 a.m.

Environment
dragonboard-845c
qemu-arm64
qemu-x86_64

[   52.827617] ==================================================================
[   52.851775] BUG: KASAN: slab-use-after-free in strcmp+0xc0/0xc8
[   52.857783] Read of size 1 at addr ffff000085584210 by task kunit_try_catch/368
[   52.865188] 
[   52.866726] CPU: 3 UID: 0 PID: 368 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250703 #1 PREEMPT 
[   52.866758] Tainted: [B]=BAD_PAGE, [N]=TEST
[   52.866767] Hardware name: Thundercomm Dragonboard 845c (DT)
[   52.866779] Call trace:
[   52.866789]  show_stack+0x20/0x38 (C)
[   52.866808]  dump_stack_lvl+0x8c/0xd0
[   52.866830]  print_report+0x118/0x608
[   52.866851]  kasan_report+0xdc/0x128
[   52.866870]  __asan_report_load1_noabort+0x20/0x30
[   52.866889]  strcmp+0xc0/0xc8
[   52.866905]  kasan_strings+0x340/0xb00
[   52.866922]  kunit_try_run_case+0x170/0x3f0
[   52.866942]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   52.866965]  kthread+0x328/0x630
[   52.866980]  ret_from_fork+0x10/0x20
[   52.866998] 
[   52.935262] Allocated by task 368:
[   52.938730]  kasan_save_stack+0x3c/0x68
[   52.942643]  kasan_save_track+0x20/0x40
[   52.946554]  kasan_save_alloc_info+0x40/0x58
[   52.950894]  __kasan_kmalloc+0xd4/0xd8
[   52.954706]  __kmalloc_cache_noprof+0x16c/0x3c0
[   52.959322]  kasan_strings+0xc8/0xb00
[   52.963048]  kunit_try_run_case+0x170/0x3f0
[   52.967304]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   52.972878]  kthread+0x328/0x630
[   52.976171]  ret_from_fork+0x10/0x20
[   52.979812] 
[   52.981344] Freed by task 368:
[   52.984460]  kasan_save_stack+0x3c/0x68
[   52.988372]  kasan_save_track+0x20/0x40
[   52.992284]  kasan_save_free_info+0x4c/0x78
[   52.996539]  __kasan_slab_free+0x6c/0x98
[   53.000537]  kfree+0x214/0x3c8
[   53.003660]  kasan_strings+0x24c/0xb00
[   53.007473]  kunit_try_run_case+0x170/0x3f0
[   53.011727]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   53.017302]  kthread+0x328/0x630
[   53.020596]  ret_from_fork+0x10/0x20
[   53.024236] 
[   53.025767] The buggy address belongs to the object at ffff000085584200
[   53.025767]  which belongs to the cache kmalloc-32 of size 32
[   53.038255] The buggy address is located 16 bytes inside of
[   53.038255]  freed 32-byte region [ffff000085584200, ffff000085584220)
[   53.050484] 
[   53.052021] The buggy address belongs to the physical page:
[   53.057672] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105584
[   53.065787] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   53.072414] page_type: f5(slab)
[   53.075623] raw: 0bfffe0000000000 ffff000080002780 dead000000000122 0000000000000000
[   53.083474] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000
[   53.091320] page dumped because: kasan: bad access detected
[   53.096970] 
[   53.098502] Memory state around the buggy address:
[   53.103366]  ffff000085584100: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc
[   53.110685]  ffff000085584180: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc
[   53.118003] >ffff000085584200: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   53.125319]                          ^
[   53.129137]  ffff000085584280: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc
[   53.136455]  ffff000085584300: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   53.143772] ==================================================================

[   33.296285] ==================================================================
[   33.296694] BUG: KASAN: slab-use-after-free in strcmp+0xc0/0xc8
[   33.296767] Read of size 1 at addr fff00000c5a8ac90 by task kunit_try_catch/291
[   33.297147] 
[   33.297188] CPU: 0 UID: 0 PID: 291 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250703 #1 PREEMPT 
[   33.297358] Tainted: [B]=BAD_PAGE, [N]=TEST
[   33.297658] Hardware name: linux,dummy-virt (DT)
[   33.297799] Call trace:
[   33.297887]  show_stack+0x20/0x38 (C)
[   33.297988]  dump_stack_lvl+0x8c/0xd0
[   33.298061]  print_report+0x118/0x608
[   33.298299]  kasan_report+0xdc/0x128
[   33.298348]  __asan_report_load1_noabort+0x20/0x30
[   33.298400]  strcmp+0xc0/0xc8
[   33.298444]  kasan_strings+0x340/0xb00
[   33.298489]  kunit_try_run_case+0x170/0x3f0
[   33.298581]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.298705]  kthread+0x328/0x630
[   33.299372]  ret_from_fork+0x10/0x20
[   33.299436] 
[   33.299457] Allocated by task 291:
[   33.299504]  kasan_save_stack+0x3c/0x68
[   33.299751]  kasan_save_track+0x20/0x40
[   33.299959]  kasan_save_alloc_info+0x40/0x58
[   33.300003]  __kasan_kmalloc+0xd4/0xd8
[   33.300044]  __kmalloc_cache_noprof+0x16c/0x3c0
[   33.300090]  kasan_strings+0xc8/0xb00
[   33.300129]  kunit_try_run_case+0x170/0x3f0
[   33.300180]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.300231]  kthread+0x328/0x630
[   33.300674]  ret_from_fork+0x10/0x20
[   33.300723] 
[   33.300745] Freed by task 291:
[   33.300776]  kasan_save_stack+0x3c/0x68
[   33.300857]  kasan_save_track+0x20/0x40
[   33.301235]  kasan_save_free_info+0x4c/0x78
[   33.301363]  __kasan_slab_free+0x6c/0x98
[   33.301409]  kfree+0x214/0x3c8
[   33.301503]  kasan_strings+0x24c/0xb00
[   33.301542]  kunit_try_run_case+0x170/0x3f0
[   33.301933]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   33.302091]  kthread+0x328/0x630
[   33.302308]  ret_from_fork+0x10/0x20
[   33.302348] 
[   33.302521] The buggy address belongs to the object at fff00000c5a8ac80
[   33.302521]  which belongs to the cache kmalloc-32 of size 32
[   33.302623] The buggy address is located 16 bytes inside of
[   33.302623]  freed 32-byte region [fff00000c5a8ac80, fff00000c5a8aca0)
[   33.302782] 
[   33.302872] The buggy address belongs to the physical page:
[   33.302917] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105a8a
[   33.303111] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   33.303172] page_type: f5(slab)
[   33.303297] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000
[   33.303401] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000
[   33.303489] page dumped because: kasan: bad access detected
[   33.303600] 
[   33.303620] Memory state around the buggy address:
[   33.303731]  fff00000c5a8ab80: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc
[   33.303777]  fff00000c5a8ac00: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc
[   33.303823] >fff00000c5a8ac80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   33.303875]                          ^
[   33.303909]  fff00000c5a8ad00: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc
[   33.303957]  fff00000c5a8ad80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   33.303999] ==================================================================

[   25.066263] ==================================================================
[   25.067894] BUG: KASAN: slab-use-after-free in strcmp+0xb0/0xc0
[   25.068741] Read of size 1 at addr ffff888105ec6450 by task kunit_try_catch/308
[   25.069065] 
[   25.069150] CPU: 1 UID: 0 PID: 308 Comm: kunit_try_catch Tainted: G    B            N  6.16.0-rc4-next-20250703 #1 PREEMPT(voluntary) 
[   25.069200] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.069214] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   25.069236] Call Trace:
[   25.069248]  <TASK>
[   25.069265]  dump_stack_lvl+0x73/0xb0
[   25.069294]  print_report+0xd1/0x650
[   25.069319]  ? __virt_addr_valid+0x1db/0x2d0
[   25.069343]  ? strcmp+0xb0/0xc0
[   25.069363]  ? kasan_complete_mode_report_info+0x64/0x200
[   25.069391]  ? strcmp+0xb0/0xc0
[   25.069411]  kasan_report+0x141/0x180
[   25.069433]  ? strcmp+0xb0/0xc0
[   25.069471]  __asan_report_load1_noabort+0x18/0x20
[   25.069496]  strcmp+0xb0/0xc0
[   25.069518]  kasan_strings+0x431/0xe80
[   25.069537]  ? trace_hardirqs_on+0x37/0xe0
[   25.069561]  ? __pfx_kasan_strings+0x10/0x10
[   25.069582]  ? finish_task_switch.isra.0+0x153/0x700
[   25.069605]  ? __switch_to+0x47/0xf50
[   25.069633]  ? __schedule+0x10cc/0x2b60
[   25.069658]  ? __pfx_read_tsc+0x10/0x10
[   25.069680]  ? ktime_get_ts64+0x86/0x230
[   25.069706]  kunit_try_run_case+0x1a5/0x480
[   25.069732]  ? __pfx_kunit_try_run_case+0x10/0x10
[   25.069756]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   25.069778]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   25.069804]  ? __kthread_parkme+0x82/0x180
[   25.069825]  ? preempt_count_sub+0x50/0x80
[   25.069854]  ? __pfx_kunit_try_run_case+0x10/0x10
[   25.069879]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   25.069903]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   25.069927]  kthread+0x337/0x6f0
[   25.069947]  ? trace_preempt_on+0x20/0xc0
[   25.069968]  ? __pfx_kthread+0x10/0x10
[   25.069989]  ? _raw_spin_unlock_irq+0x47/0x80
[   25.070012]  ? calculate_sigpending+0x7b/0xa0
[   25.070037]  ? __pfx_kthread+0x10/0x10
[   25.070059]  ret_from_fork+0x116/0x1d0
[   25.070078]  ? __pfx_kthread+0x10/0x10
[   25.070099]  ret_from_fork_asm+0x1a/0x30
[   25.070131]  </TASK>
[   25.070143] 
[   25.077154] Allocated by task 308:
[   25.077364]  kasan_save_stack+0x45/0x70
[   25.077640]  kasan_save_track+0x18/0x40
[   25.077820]  kasan_save_alloc_info+0x3b/0x50
[   25.078042]  __kasan_kmalloc+0xb7/0xc0
[   25.078268]  __kmalloc_cache_noprof+0x189/0x420
[   25.078489]  kasan_strings+0xc0/0xe80
[   25.078743]  kunit_try_run_case+0x1a5/0x480
[   25.078951]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   25.079390]  kthread+0x337/0x6f0
[   25.079555]  ret_from_fork+0x116/0x1d0
[   25.079762]  ret_from_fork_asm+0x1a/0x30
[   25.079905] 
[   25.079971] Freed by task 308:
[   25.080078]  kasan_save_stack+0x45/0x70
[   25.080210]  kasan_save_track+0x18/0x40
[   25.080337]  kasan_save_free_info+0x3f/0x60
[   25.080523]  __kasan_slab_free+0x56/0x70
[   25.080961]  kfree+0x222/0x3f0
[   25.081125]  kasan_strings+0x2aa/0xe80
[   25.081303]  kunit_try_run_case+0x1a5/0x480
[   25.081703]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   25.082162]  kthread+0x337/0x6f0
[   25.082286]  ret_from_fork+0x116/0x1d0
[   25.082412]  ret_from_fork_asm+0x1a/0x30
[   25.082555] 
[   25.082620] The buggy address belongs to the object at ffff888105ec6440
[   25.082620]  which belongs to the cache kmalloc-32 of size 32
[   25.083078] The buggy address is located 16 bytes inside of
[   25.083078]  freed 32-byte region [ffff888105ec6440, ffff888105ec6460)
[   25.083681] 
[   25.083769] The buggy address belongs to the physical page:
[   25.084010] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105ec6
[   25.084484] flags: 0x200000000000000(node=0|zone=2)
[   25.084710] page_type: f5(slab)
[   25.084869] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000
[   25.085226] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000
[   25.085679] page dumped because: kasan: bad access detected
[   25.085861] 
[   25.085927] Memory state around the buggy address:
[   25.086190]  ffff888105ec6300: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   25.086512]  ffff888105ec6380: 00 00 00 fc fc fc fc fc 00 00 00 04 fc fc fc fc
[   25.086823] >ffff888105ec6400: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc
[   25.087128]                                                  ^
[   25.087332]  ffff888105ec6480: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
[   25.087834]  ffff888105ec6500: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc
[   25.088129] ==================================================================