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

Environment
qemu-arm64
qemu-x86_64

[   31.132030] ==================================================================
[   31.133120] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8
[   31.133976] Write of size 16 at addr fff00000c57c3280 by task kunit_try_catch/155
[   31.134991] 
[   31.135290] CPU: 0 UID: 0 PID: 155 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241126 #1
[   31.136646] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.138653] Hardware name: linux,dummy-virt (DT)
[   31.140577] Call trace:
[   31.142684]  show_stack+0x20/0x38 (C)
[   31.143351]  dump_stack_lvl+0x8c/0xd0
[   31.143924]  print_report+0x118/0x5e0
[   31.144610]  kasan_report+0xc8/0x118
[   31.145239]  __asan_report_store16_noabort+0x20/0x30
[   31.146482]  kmalloc_oob_16+0x3a0/0x3f8
[   31.147101]  kunit_try_run_case+0x14c/0x3d0
[   31.147695]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.148329]  kthread+0x24c/0x2d0
[   31.148921]  ret_from_fork+0x10/0x20
[   31.149519] 
[   31.149846] Allocated by task 155:
[   31.151233]  kasan_save_stack+0x3c/0x68
[   31.151766]  kasan_save_track+0x20/0x40
[   31.152482]  kasan_save_alloc_info+0x40/0x58
[   31.153606]  __kasan_kmalloc+0xd4/0xd8
[   31.154112]  __kmalloc_cache_noprof+0x15c/0x3c8
[   31.154670]  kmalloc_oob_16+0xb4/0x3f8
[   31.155281]  kunit_try_run_case+0x14c/0x3d0
[   31.155829]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.156823]  kthread+0x24c/0x2d0
[   31.157557]  ret_from_fork+0x10/0x20
[   31.158034] 
[   31.158317] The buggy address belongs to the object at fff00000c57c3280
[   31.158317]  which belongs to the cache kmalloc-16 of size 16
[   31.159630] The buggy address is located 0 bytes inside of
[   31.159630]  allocated 13-byte region [fff00000c57c3280, fff00000c57c328d)
[   31.161862] 
[   31.162208] The buggy address belongs to the physical page:
[   31.162859] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1057c3
[   31.163798] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   31.164743] page_type: f5(slab)
[   31.165639] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000
[   31.166500] raw: 0000000000000000 0000000080800080 00000001f5000000 0000000000000000
[   31.167614] page dumped because: kasan: bad access detected
[   31.168127] 
[   31.168513] Memory state around the buggy address:
[   31.169877]  fff00000c57c3180: fa fb fc fc 00 02 fc fc fa fb fc fc fa fb fc fc
[   31.170976]  fff00000c57c3200: fa fb fc fc fa fb fc fc fa fb fc fc 00 04 fc fc
[   31.172052] >fff00000c57c3280: 00 05 fc fc 00 00 fc fc fc fc fc fc fc fc fc fc
[   31.172879]                       ^
[   31.174094]  fff00000c57c3300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   31.175049]  fff00000c57c3380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   31.176114] ==================================================================

[   31.109179] ==================================================================
[   31.110406] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8
[   31.111564] Write of size 16 at addr fff00000c5e08220 by task kunit_try_catch/155
[   31.112506] 
[   31.112965] CPU: 1 UID: 0 PID: 155 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241126 #1
[   31.114751] Tainted: [B]=BAD_PAGE, [N]=TEST
[   31.115446] Hardware name: linux,dummy-virt (DT)
[   31.116218] Call trace:
[   31.116720]  show_stack+0x20/0x38 (C)
[   31.117399]  dump_stack_lvl+0x8c/0xd0
[   31.118188]  print_report+0x118/0x5e0
[   31.119204]  kasan_report+0xc8/0x118
[   31.119869]  __asan_report_store16_noabort+0x20/0x30
[   31.120706]  kmalloc_oob_16+0x3a0/0x3f8
[   31.121377]  kunit_try_run_case+0x14c/0x3d0
[   31.122238]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.123130]  kthread+0x24c/0x2d0
[   31.123681]  ret_from_fork+0x10/0x20
[   31.124387] 
[   31.124852] Allocated by task 155:
[   31.125472]  kasan_save_stack+0x3c/0x68
[   31.126382]  kasan_save_track+0x20/0x40
[   31.127232]  kasan_save_alloc_info+0x40/0x58
[   31.127998]  __kasan_kmalloc+0xd4/0xd8
[   31.128638]  __kmalloc_cache_noprof+0x15c/0x3c8
[   31.129385]  kmalloc_oob_16+0xb4/0x3f8
[   31.129967]  kunit_try_run_case+0x14c/0x3d0
[   31.130984]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   31.131793]  kthread+0x24c/0x2d0
[   31.132460]  ret_from_fork+0x10/0x20
[   31.133067] 
[   31.133570] The buggy address belongs to the object at fff00000c5e08220
[   31.133570]  which belongs to the cache kmalloc-16 of size 16
[   31.135023] The buggy address is located 0 bytes inside of
[   31.135023]  allocated 13-byte region [fff00000c5e08220, fff00000c5e0822d)
[   31.136166] 
[   31.136641] The buggy address belongs to the physical page:
[   31.137407] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105e08
[   31.138644] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   31.139801] page_type: f5(slab)
[   31.140449] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000
[   31.141503] raw: 0000000000000000 0000000080800080 00000001f5000000 0000000000000000
[   31.142735] page dumped because: kasan: bad access detected
[   31.143406] 
[   31.143846] Memory state around the buggy address:
[   31.144614]  fff00000c5e08100: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   31.145492]  fff00000c5e08180: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   31.146986] >fff00000c5e08200: fa fb fc fc 00 05 fc fc 00 00 fc fc fc fc fc fc
[   31.147886]                                   ^
[   31.148601]  fff00000c5e08280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   31.149561]  fff00000c5e08300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   31.151215] ==================================================================

[   25.267952] ==================================================================
[   25.268505] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x454/0x4a0
[   25.268505] Write of size 16 at addr ffff888102611ac0 by task kunit_try_catch/175
[   25.268505] 
[   25.268505] CPU: 1 UID: 0 PID: 175 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241126 #1
[   25.268505] Tainted: [B]=BAD_PAGE, [N]=TEST
[   25.268505] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   25.268505] Call Trace:
[   25.268505]  <TASK>
[   25.268505]  dump_stack_lvl+0x73/0xb0
[   25.268505]  print_report+0xd1/0x640
[   25.268505]  ? __virt_addr_valid+0x1db/0x2d0
[   25.268505]  ? kasan_complete_mode_report_info+0x2a/0x200
[   25.268505]  kasan_report+0x102/0x140
[   25.268505]  ? kmalloc_oob_16+0x454/0x4a0
[   25.268505]  ? kmalloc_oob_16+0x454/0x4a0
[   25.268505]  __asan_report_store16_noabort+0x1b/0x30
[   25.268505]  kmalloc_oob_16+0x454/0x4a0
[   25.268505]  ? __pfx_kmalloc_oob_16+0x10/0x10
[   25.268505]  ? __schedule+0xc3e/0x2790
[   25.268505]  ? ktime_get_ts64+0x84/0x230
[   25.268505]  kunit_try_run_case+0x1b3/0x490
[   25.268505]  ? __pfx_kunit_try_run_case+0x10/0x10
[   25.268505]  ? _raw_spin_lock_irqsave+0xa2/0x110
[   25.268505]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   25.268505]  ? __kthread_parkme+0x82/0x160
[   25.268505]  ? preempt_count_sub+0x50/0x80
[   25.268505]  ? __pfx_kunit_try_run_case+0x10/0x10
[   25.268505]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   25.268505]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   25.268505]  kthread+0x257/0x310
[   25.268505]  ? __pfx_kthread+0x10/0x10
[   25.268505]  ret_from_fork+0x41/0x80
[   25.268505]  ? __pfx_kthread+0x10/0x10
[   25.268505]  ret_from_fork_asm+0x1a/0x30
[   25.268505]  </TASK>
[   25.268505] 
[   25.268505] Allocated by task 175:
[   25.268505]  kasan_save_stack+0x3d/0x60
[   25.268505]  kasan_save_track+0x18/0x40
[   25.268505]  kasan_save_alloc_info+0x3b/0x50
[   25.268505]  __kasan_kmalloc+0xb7/0xc0
[   25.268505]  __kmalloc_cache_noprof+0x184/0x410
[   25.268505]  kmalloc_oob_16+0xa9/0x4a0
[   25.268505]  kunit_try_run_case+0x1b3/0x490
[   25.268505]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   25.268505]  kthread+0x257/0x310
[   25.268505]  ret_from_fork+0x41/0x80
[   25.268505]  ret_from_fork_asm+0x1a/0x30
[   25.268505] 
[   25.268505] The buggy address belongs to the object at ffff888102611ac0
[   25.268505]  which belongs to the cache kmalloc-16 of size 16
[   25.268505] The buggy address is located 0 bytes inside of
[   25.268505]  allocated 13-byte region [ffff888102611ac0, ffff888102611acd)
[   25.268505] 
[   25.268505] The buggy address belongs to the physical page:
[   25.268505] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102611
[   25.268505] flags: 0x200000000000000(node=0|zone=2)
[   25.268505] page_type: f5(slab)
[   25.268505] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000
[   25.268505] raw: 0000000000000000 0000000080800080 00000001f5000000 0000000000000000
[   25.268505] page dumped because: kasan: bad access detected
[   25.268505] 
[   25.268505] Memory state around the buggy address:
[   25.268505]  ffff888102611980: fa fb fc fc 00 02 fc fc 00 05 fc fc 00 02 fc fc
[   25.268505]  ffff888102611a00: 00 02 fc fc 00 02 fc fc 00 02 fc fc fa fb fc fc
[   25.268505] >ffff888102611a80: fa fb fc fc 00 04 fc fc 00 05 fc fc 00 00 fc fc
[   25.268505]                                               ^
[   25.268505]  ffff888102611b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   25.268505]  ffff888102611b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   25.268505] ==================================================================

[   20.294745] ==================================================================
[   20.295586] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x454/0x4a0
[   20.295983] Write of size 16 at addr ffff8881028a7040 by task kunit_try_catch/173
[   20.296537] 
[   20.297167] CPU: 0 UID: 0 PID: 173 Comm: kunit_try_catch Tainted: G    B            N 6.12.0-next-20241126 #1
[   20.298919] Tainted: [B]=BAD_PAGE, [N]=TEST
[   20.299522] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   20.300617] Call Trace:
[   20.300816]  <TASK>
[   20.301467]  dump_stack_lvl+0x73/0xb0
[   20.302357]  print_report+0xd1/0x640
[   20.302849]  ? __virt_addr_valid+0x1db/0x2d0
[   20.303379]  ? kasan_complete_mode_report_info+0x2a/0x200
[   20.304190]  kasan_report+0x102/0x140
[   20.304700]  ? kmalloc_oob_16+0x454/0x4a0
[   20.305220]  ? kmalloc_oob_16+0x454/0x4a0
[   20.305686]  __asan_report_store16_noabort+0x1b/0x30
[   20.306831]  kmalloc_oob_16+0x454/0x4a0
[   20.307216]  ? __pfx_kmalloc_oob_16+0x10/0x10
[   20.307803]  ? __schedule+0xc3e/0x2790
[   20.308611]  ? __pfx_read_tsc+0x10/0x10
[   20.309193]  ? ktime_get_ts64+0x84/0x230
[   20.309634]  kunit_try_run_case+0x1b3/0x490
[   20.310172]  ? __pfx_kunit_try_run_case+0x10/0x10
[   20.310599]  ? _raw_spin_lock_irqsave+0xa2/0x110
[   20.311153]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   20.312123]  ? __kthread_parkme+0x82/0x160
[   20.312883]  ? preempt_count_sub+0x50/0x80
[   20.313466]  ? __pfx_kunit_try_run_case+0x10/0x10
[   20.314029]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   20.314733]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   20.315178]  kthread+0x257/0x310
[   20.315820]  ? __pfx_kthread+0x10/0x10
[   20.316462]  ret_from_fork+0x41/0x80
[   20.317203]  ? __pfx_kthread+0x10/0x10
[   20.317448]  ret_from_fork_asm+0x1a/0x30
[   20.318271]  </TASK>
[   20.318613] 
[   20.318843] Allocated by task 173:
[   20.319378]  kasan_save_stack+0x3d/0x60
[   20.319867]  kasan_save_track+0x18/0x40
[   20.320616]  kasan_save_alloc_info+0x3b/0x50
[   20.321077]  __kasan_kmalloc+0xb7/0xc0
[   20.321785]  __kmalloc_cache_noprof+0x184/0x410
[   20.322407]  kmalloc_oob_16+0xa9/0x4a0
[   20.322974]  kunit_try_run_case+0x1b3/0x490
[   20.323308]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   20.323855]  kthread+0x257/0x310
[   20.324147]  ret_from_fork+0x41/0x80
[   20.324861]  ret_from_fork_asm+0x1a/0x30
[   20.325347] 
[   20.325531] The buggy address belongs to the object at ffff8881028a7040
[   20.325531]  which belongs to the cache kmalloc-16 of size 16
[   20.326847] The buggy address is located 0 bytes inside of
[   20.326847]  allocated 13-byte region [ffff8881028a7040, ffff8881028a704d)
[   20.327844] 
[   20.328308] The buggy address belongs to the physical page:
[   20.329200] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1028a7
[   20.329888] flags: 0x200000000000000(node=0|zone=2)
[   20.330631] page_type: f5(slab)
[   20.330946] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000
[   20.331908] raw: 0000000000000000 0000000080800080 00000001f5000000 0000000000000000
[   20.332546] page dumped because: kasan: bad access detected
[   20.333268] 
[   20.333519] Memory state around the buggy address:
[   20.334312]  ffff8881028a6f00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   20.335215]  ffff8881028a6f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   20.335717] >ffff8881028a7000: fa fb fc fc fa fb fc fc 00 05 fc fc 00 00 fc fc
[   20.336576]                                               ^
[   20.336939]  ffff8881028a7080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   20.338131]  ffff8881028a7100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   20.338773] ==================================================================