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

Environment
qemu-arm64
qemu-x86_64

[   34.233928] ==================================================================
[   34.235111] BUG: KASAN: slab-out-of-bounds in memchr+0x78/0x88
[   34.235883] Read of size 1 at addr fff00000c58bc6d8 by task kunit_try_catch/244
[   34.236990] 
[   34.237398] CPU: 1 UID: 0 PID: 244 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241126 #1
[   34.238417] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.238895] Hardware name: linux,dummy-virt (DT)
[   34.239668] Call trace:
[   34.240157]  show_stack+0x20/0x38 (C)
[   34.240986]  dump_stack_lvl+0x8c/0xd0
[   34.241992]  print_report+0x118/0x5e0
[   34.242574]  kasan_report+0xc8/0x118
[   34.243449]  __asan_report_load1_noabort+0x20/0x30
[   34.244323]  memchr+0x78/0x88
[   34.245175]  kasan_memchr+0x148/0x2d8
[   34.245755]  kunit_try_run_case+0x14c/0x3d0
[   34.246338]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.247234]  kthread+0x24c/0x2d0
[   34.247755]  ret_from_fork+0x10/0x20
[   34.248408] 
[   34.248986] Allocated by task 244:
[   34.249463]  kasan_save_stack+0x3c/0x68
[   34.250065]  kasan_save_track+0x20/0x40
[   34.250609]  kasan_save_alloc_info+0x40/0x58
[   34.251758]  __kasan_kmalloc+0xd4/0xd8
[   34.252349]  __kmalloc_cache_noprof+0x15c/0x3c8
[   34.253160]  kasan_memchr+0xb0/0x2d8
[   34.253687]  kunit_try_run_case+0x14c/0x3d0
[   34.254262]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.255005]  kthread+0x24c/0x2d0
[   34.255551]  ret_from_fork+0x10/0x20
[   34.256056] 
[   34.256437] The buggy address belongs to the object at fff00000c58bc6c0
[   34.256437]  which belongs to the cache kmalloc-32 of size 32
[   34.258692] The buggy address is located 0 bytes to the right of
[   34.258692]  allocated 24-byte region [fff00000c58bc6c0, fff00000c58bc6d8)
[   34.260028] 
[   34.260621] The buggy address belongs to the physical page:
[   34.261637] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1058bc
[   34.263003] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   34.263761] page_type: f5(slab)
[   34.264345] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000
[   34.265684] raw: 0000000000000000 0000000080400040 00000001f5000000 0000000000000000
[   34.266548] page dumped because: kasan: bad access detected
[   34.267466] 
[   34.268033] Memory state around the buggy address:
[   34.268757]  fff00000c58bc580: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc
[   34.269564]  fff00000c58bc600: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc
[   34.270739] >fff00000c58bc680: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc
[   34.271524]                                                     ^
[   34.272757]  fff00000c58bc700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   34.273972]  fff00000c58bc780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   34.274981] ==================================================================

[   34.258674] ==================================================================
[   34.259919] BUG: KASAN: slab-out-of-bounds in memchr+0x78/0x88
[   34.260826] Read of size 1 at addr fff00000c5ec56d8 by task kunit_try_catch/244
[   34.262267] 
[   34.262716] CPU: 1 UID: 0 PID: 244 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241126 #1
[   34.264140] Tainted: [B]=BAD_PAGE, [N]=TEST
[   34.264815] Hardware name: linux,dummy-virt (DT)
[   34.265604] Call trace:
[   34.266018]  show_stack+0x20/0x38 (C)
[   34.266714]  dump_stack_lvl+0x8c/0xd0
[   34.267768]  print_report+0x118/0x5e0
[   34.268493]  kasan_report+0xc8/0x118
[   34.269106]  __asan_report_load1_noabort+0x20/0x30
[   34.270150]  memchr+0x78/0x88
[   34.270709]  kasan_memchr+0x148/0x2d8
[   34.271285]  kunit_try_run_case+0x14c/0x3d0
[   34.272559]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.273252]  kthread+0x24c/0x2d0
[   34.274140]  ret_from_fork+0x10/0x20
[   34.274732] 
[   34.275105] Allocated by task 244:
[   34.276029]  kasan_save_stack+0x3c/0x68
[   34.276666]  kasan_save_track+0x20/0x40
[   34.277245]  kasan_save_alloc_info+0x40/0x58
[   34.278544]  __kasan_kmalloc+0xd4/0xd8
[   34.279123]  __kmalloc_cache_noprof+0x15c/0x3c8
[   34.279945]  kasan_memchr+0xb0/0x2d8
[   34.280630]  kunit_try_run_case+0x14c/0x3d0
[   34.281457]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   34.282577]  kthread+0x24c/0x2d0
[   34.283197]  ret_from_fork+0x10/0x20
[   34.283673] 
[   34.284013] The buggy address belongs to the object at fff00000c5ec56c0
[   34.284013]  which belongs to the cache kmalloc-32 of size 32
[   34.285192] The buggy address is located 0 bytes to the right of
[   34.285192]  allocated 24-byte region [fff00000c5ec56c0, fff00000c5ec56d8)
[   34.287352] 
[   34.287758] The buggy address belongs to the physical page:
[   34.288319] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105ec5
[   34.290025] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   34.290955] page_type: f5(slab)
[   34.291590] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000
[   34.292378] raw: 0000000000000000 0000000080400040 00000001f5000000 0000000000000000
[   34.293288] page dumped because: kasan: bad access detected
[   34.294756] 
[   34.295097] Memory state around the buggy address:
[   34.295671]  fff00000c5ec5580: 00 00 07 fc fc fc fc fc 00 00 07 fc fc fc fc fc
[   34.296861]  fff00000c5ec5600: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc
[   34.297990] >fff00000c5ec5680: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc
[   34.298793]                                                     ^
[   34.299587]  fff00000c5ec5700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   34.300505]  fff00000c5ec5780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   34.301382] ==================================================================

[   28.407457] ==================================================================
[   28.408148] BUG: KASAN: slab-out-of-bounds in memchr+0x79/0x90
[   28.408148] Read of size 1 at addr ffff88810294c258 by task kunit_try_catch/264
[   28.408148] 
[   28.408148] CPU: 1 UID: 0 PID: 264 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241126 #1
[   28.408148] Tainted: [B]=BAD_PAGE, [N]=TEST
[   28.408148] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   28.408148] Call Trace:
[   28.408148]  <TASK>
[   28.408148]  dump_stack_lvl+0x73/0xb0
[   28.408148]  print_report+0xd1/0x640
[   28.408148]  ? __virt_addr_valid+0x1db/0x2d0
[   28.408148]  ? kasan_complete_mode_report_info+0x2a/0x200
[   28.408148]  kasan_report+0x102/0x140
[   28.408148]  ? memchr+0x79/0x90
[   28.408148]  ? memchr+0x79/0x90
[   28.408148]  __asan_report_load1_noabort+0x18/0x20
[   28.408148]  memchr+0x79/0x90
[   28.408148]  kasan_memchr+0x163/0x320
[   28.408148]  ? __pfx_kasan_memchr+0x10/0x10
[   28.408148]  ? __schedule+0xc3e/0x2790
[   28.408148]  ? ktime_get_ts64+0x84/0x230
[   28.408148]  kunit_try_run_case+0x1b3/0x490
[   28.408148]  ? __pfx_kunit_try_run_case+0x10/0x10
[   28.408148]  ? _raw_spin_lock_irqsave+0xa2/0x110
[   28.408148]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   28.408148]  ? __kthread_parkme+0x82/0x160
[   28.408148]  ? preempt_count_sub+0x50/0x80
[   28.408148]  ? __pfx_kunit_try_run_case+0x10/0x10
[   28.408148]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   28.408148]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.408148]  kthread+0x257/0x310
[   28.408148]  ? __pfx_kthread+0x10/0x10
[   28.408148]  ret_from_fork+0x41/0x80
[   28.408148]  ? __pfx_kthread+0x10/0x10
[   28.408148]  ret_from_fork_asm+0x1a/0x30
[   28.408148]  </TASK>
[   28.408148] 
[   28.408148] Allocated by task 264:
[   28.408148]  kasan_save_stack+0x3d/0x60
[   28.408148]  kasan_save_track+0x18/0x40
[   28.408148]  kasan_save_alloc_info+0x3b/0x50
[   28.408148]  __kasan_kmalloc+0xb7/0xc0
[   28.408148]  __kmalloc_cache_noprof+0x184/0x410
[   28.408148]  kasan_memchr+0xad/0x320
[   28.408148]  kunit_try_run_case+0x1b3/0x490
[   28.408148]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   28.408148]  kthread+0x257/0x310
[   28.408148]  ret_from_fork+0x41/0x80
[   28.408148]  ret_from_fork_asm+0x1a/0x30
[   28.408148] 
[   28.408148] The buggy address belongs to the object at ffff88810294c240
[   28.408148]  which belongs to the cache kmalloc-32 of size 32
[   28.408148] The buggy address is located 0 bytes to the right of
[   28.408148]  allocated 24-byte region [ffff88810294c240, ffff88810294c258)
[   28.408148] 
[   28.408148] The buggy address belongs to the physical page:
[   28.408148] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10294c
[   28.408148] flags: 0x200000000000000(node=0|zone=2)
[   28.408148] page_type: f5(slab)
[   28.408148] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000
[   28.408148] raw: 0000000000000000 0000000080400040 00000001f5000000 0000000000000000
[   28.408148] page dumped because: kasan: bad access detected
[   28.408148] 
[   28.408148] Memory state around the buggy address:
[   28.408148]  ffff88810294c100: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc
[   28.408148]  ffff88810294c180: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc
[   28.408148] >ffff88810294c200: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc
[   28.408148]                                                     ^
[   28.408148]  ffff88810294c280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   28.408148]  ffff88810294c300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   28.408148] ==================================================================

[   23.317239] ==================================================================
[   23.318089] BUG: KASAN: slab-out-of-bounds in memchr+0x79/0x90
[   23.319558] Read of size 1 at addr ffff888102ba3f18 by task kunit_try_catch/262
[   23.319927] 
[   23.320611] CPU: 1 UID: 0 PID: 262 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241126 #1
[   23.321532] Tainted: [B]=BAD_PAGE, [N]=TEST
[   23.321996] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   23.322763] Call Trace:
[   23.322973]  <TASK>
[   23.323273]  dump_stack_lvl+0x73/0xb0
[   23.323732]  print_report+0xd1/0x640
[   23.324294]  ? __virt_addr_valid+0x1db/0x2d0
[   23.325378]  ? kasan_complete_mode_report_info+0x2a/0x200
[   23.326141]  kasan_report+0x102/0x140
[   23.326508]  ? memchr+0x79/0x90
[   23.327252]  ? memchr+0x79/0x90
[   23.327550]  __asan_report_load1_noabort+0x18/0x20
[   23.328051]  memchr+0x79/0x90
[   23.328427]  kasan_memchr+0x163/0x320
[   23.329459]  ? __pfx_kasan_memchr+0x10/0x10
[   23.329966]  ? __schedule+0xc3e/0x2790
[   23.331064]  ? __pfx_read_tsc+0x10/0x10
[   23.331415]  ? ktime_get_ts64+0x84/0x230
[   23.331826]  kunit_try_run_case+0x1b3/0x490
[   23.332933]  ? __pfx_kunit_try_run_case+0x10/0x10
[   23.333550]  ? _raw_spin_lock_irqsave+0xa2/0x110
[   23.334577]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   23.335174]  ? __kthread_parkme+0x82/0x160
[   23.335613]  ? preempt_count_sub+0x50/0x80
[   23.336133]  ? __pfx_kunit_try_run_case+0x10/0x10
[   23.337510]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   23.338381]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.339178]  kthread+0x257/0x310
[   23.339512]  ? __pfx_kthread+0x10/0x10
[   23.340370]  ret_from_fork+0x41/0x80
[   23.341010]  ? __pfx_kthread+0x10/0x10
[   23.341582]  ret_from_fork_asm+0x1a/0x30
[   23.342407]  </TASK>
[   23.342735] 
[   23.342931] Allocated by task 262:
[   23.343364]  kasan_save_stack+0x3d/0x60
[   23.344560]  kasan_save_track+0x18/0x40
[   23.345059]  kasan_save_alloc_info+0x3b/0x50
[   23.345809]  __kasan_kmalloc+0xb7/0xc0
[   23.346302]  __kmalloc_cache_noprof+0x184/0x410
[   23.346649]  kasan_memchr+0xad/0x320
[   23.347223]  kunit_try_run_case+0x1b3/0x490
[   23.347757]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   23.348572]  kthread+0x257/0x310
[   23.349054]  ret_from_fork+0x41/0x80
[   23.349319]  ret_from_fork_asm+0x1a/0x30
[   23.349876] 
[   23.350144] The buggy address belongs to the object at ffff888102ba3f00
[   23.350144]  which belongs to the cache kmalloc-32 of size 32
[   23.351321] The buggy address is located 0 bytes to the right of
[   23.351321]  allocated 24-byte region [ffff888102ba3f00, ffff888102ba3f18)
[   23.352858] 
[   23.353675] The buggy address belongs to the physical page:
[   23.354354] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102ba3
[   23.355253] flags: 0x200000000000000(node=0|zone=2)
[   23.355943] page_type: f5(slab)
[   23.356341] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000
[   23.357295] raw: 0000000000000000 0000000080400040 00000001f5000000 0000000000000000
[   23.357965] page dumped because: kasan: bad access detected
[   23.358638] 
[   23.358987] Memory state around the buggy address:
[   23.359630]  ffff888102ba3e00: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc
[   23.360322]  ffff888102ba3e80: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc
[   23.361033] >ffff888102ba3f00: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc
[   23.361765]                             ^
[   23.362029]  ffff888102ba3f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   23.362876]  ffff888102ba4000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   23.363407] ==================================================================