Hay
Date
June 26, 2025, 11:12 a.m.

Environment
e850-96
qemu-arm64
qemu-x86_64

[   19.877356] ==================================================================
[   19.886405] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x2ec/0x320
[   19.893257] Read of size 1 at addr ffff000800d6203f by task kunit_try_catch/187
[   19.900547] 
[   19.902038] CPU: 7 UID: 0 PID: 187 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc3 #1 PREEMPT 
[   19.902096] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.902112] Hardware name: WinLink E850-96 board (DT)
[   19.902134] Call trace:
[   19.902147]  show_stack+0x20/0x38 (C)
[   19.902183]  dump_stack_lvl+0x8c/0xd0
[   19.902221]  print_report+0x118/0x608
[   19.902251]  kasan_report+0xdc/0x128
[   19.902284]  __asan_report_load1_noabort+0x20/0x30
[   19.902322]  kmalloc_oob_left+0x2ec/0x320
[   19.902354]  kunit_try_run_case+0x170/0x3f0
[   19.902390]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.902431]  kthread+0x328/0x630
[   19.902468]  ret_from_fork+0x10/0x20
[   19.902503] 
[   19.964696] Allocated by task 55:
[   19.967999]  kasan_save_stack+0x3c/0x68
[   19.971814]  kasan_save_track+0x20/0x40
[   19.975633]  kasan_save_alloc_info+0x40/0x58
[   19.979886]  __kasan_kmalloc+0xd4/0xd8
[   19.983619]  __kmalloc_node_track_caller_noprof+0x194/0x4b8
[   19.989175]  kvasprintf+0xe0/0x180
[   19.992560]  __kthread_create_on_node+0x16c/0x350
[   19.997247]  kthread_create_on_node+0xe4/0x130
[   20.001676]  create_worker+0x380/0x6b8
[   20.005407]  worker_thread+0x808/0xf38
[   20.009140]  kthread+0x328/0x630
[   20.012351]  ret_from_fork+0x10/0x20
[   20.015910] 
[   20.017387] The buggy address belongs to the object at ffff000800d62020
[   20.017387]  which belongs to the cache kmalloc-16 of size 16
[   20.029714] The buggy address is located 18 bytes to the right of
[   20.029714]  allocated 13-byte region [ffff000800d62020, ffff000800d6202d)
[   20.042646] 
[   20.044126] The buggy address belongs to the physical page:
[   20.049681] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x880d62
[   20.057667] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   20.064175] page_type: f5(slab)
[   20.067314] raw: 0bfffe0000000000 ffff000800002640 dead000000000122 0000000000000000
[   20.075031] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   20.082749] page dumped because: kasan: bad access detected
[   20.088306] 
[   20.089782] Memory state around the buggy address:
[   20.094563]  ffff000800d61f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   20.101763]  ffff000800d61f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   20.108969] >ffff000800d62000: 00 04 fc fc 00 05 fc fc 00 07 fc fc fc fc fc fc
[   20.116169]                                         ^
[   20.121209]  ffff000800d62080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   20.128412]  ffff000800d62100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   20.135615] ==================================================================

[   17.622700] ==================================================================
[   17.622761] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x2ec/0x320
[   17.622817] Read of size 1 at addr fff00000c59e553f by task kunit_try_catch/140
[   17.622893] 
[   17.622937] CPU: 0 UID: 0 PID: 140 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc3 #1 PREEMPT 
[   17.623021] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.623048] Hardware name: linux,dummy-virt (DT)
[   17.623080] Call trace:
[   17.623111]  show_stack+0x20/0x38 (C)
[   17.623166]  dump_stack_lvl+0x8c/0xd0
[   17.623212]  print_report+0x118/0x608
[   17.623256]  kasan_report+0xdc/0x128
[   17.623307]  __asan_report_load1_noabort+0x20/0x30
[   17.623357]  kmalloc_oob_left+0x2ec/0x320
[   17.623404]  kunit_try_run_case+0x170/0x3f0
[   17.623451]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.623503]  kthread+0x328/0x630
[   17.623547]  ret_from_fork+0x10/0x20
[   17.623594] 
[   17.623611] Allocated by task 9:
[   17.623637]  kasan_save_stack+0x3c/0x68
[   17.623675]  kasan_save_track+0x20/0x40
[   17.623709]  kasan_save_alloc_info+0x40/0x58
[   17.623746]  __kasan_kmalloc+0xd4/0xd8
[   17.623781]  __kmalloc_node_track_caller_noprof+0x194/0x4b8
[   17.623822]  kvasprintf+0xe0/0x180
[   17.624682]  __kthread_create_on_node+0x16c/0x350
[   17.624948]  kthread_create_on_node+0xe4/0x130
[   17.625059]  create_worker+0x380/0x6b8
[   17.625097]  worker_thread+0x808/0xf38
[   17.625262]  kthread+0x328/0x630
[   17.625305]  ret_from_fork+0x10/0x20
[   17.625340] 
[   17.625367] The buggy address belongs to the object at fff00000c59e5520
[   17.625367]  which belongs to the cache kmalloc-16 of size 16
[   17.625424] The buggy address is located 19 bytes to the right of
[   17.625424]  allocated 12-byte region [fff00000c59e5520, fff00000c59e552c)
[   17.625558] 
[   17.625770] The buggy address belongs to the physical page:
[   17.625933] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1059e5
[   17.625988] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff)
[   17.626159] page_type: f5(slab)
[   17.626347] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000
[   17.626402] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   17.626582] page dumped because: kasan: bad access detected
[   17.626769] 
[   17.626809] Memory state around the buggy address:
[   17.626842]  fff00000c59e5400: 00 02 fc fc 00 05 fc fc fa fb fc fc 00 02 fc fc
[   17.627032]  fff00000c59e5480: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc
[   17.627185] >fff00000c59e5500: fa fb fc fc 00 04 fc fc 00 07 fc fc fc fc fc fc
[   17.627227]                                         ^
[   17.627413]  fff00000c59e5580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   17.627462]  fff00000c59e5600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   17.627557] ==================================================================

[   10.221629] ==================================================================
[   10.222933] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x361/0x3c0
[   10.223579] Read of size 1 at addr ffff8881025a7f3f by task kunit_try_catch/157
[   10.224463] 
[   10.224594] CPU: 1 UID: 0 PID: 157 Comm: kunit_try_catch Tainted: G    B            N  6.15.4-rc3 #1 PREEMPT(voluntary) 
[   10.224668] Tainted: [B]=BAD_PAGE, [N]=TEST
[   10.224695] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   10.224724] Call Trace:
[   10.224738]  <TASK>
[   10.224759]  dump_stack_lvl+0x73/0xb0
[   10.224790]  print_report+0xd1/0x650
[   10.224813]  ? __virt_addr_valid+0x1db/0x2d0
[   10.224836]  ? kmalloc_oob_left+0x361/0x3c0
[   10.224857]  ? kasan_complete_mode_report_info+0x64/0x200
[   10.224879]  ? kmalloc_oob_left+0x361/0x3c0
[   10.224901]  kasan_report+0x141/0x180
[   10.224933]  ? kmalloc_oob_left+0x361/0x3c0
[   10.224959]  __asan_report_load1_noabort+0x18/0x20
[   10.224979]  kmalloc_oob_left+0x361/0x3c0
[   10.225001]  ? __pfx_kmalloc_oob_left+0x10/0x10
[   10.225023]  ? __schedule+0x10cc/0x2b60
[   10.225046]  ? __pfx_read_tsc+0x10/0x10
[   10.225066]  ? ktime_get_ts64+0x86/0x230
[   10.225092]  kunit_try_run_case+0x1a5/0x480
[   10.225118]  ? __pfx_kunit_try_run_case+0x10/0x10
[   10.225139]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   10.225163]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   10.225185]  ? __kthread_parkme+0x82/0x180
[   10.225208]  ? preempt_count_sub+0x50/0x80
[   10.225233]  ? __pfx_kunit_try_run_case+0x10/0x10
[   10.225256]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   10.225278]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   10.225300]  kthread+0x337/0x6f0
[   10.225316]  ? trace_preempt_on+0x20/0xc0
[   10.225340]  ? __pfx_kthread+0x10/0x10
[   10.225357]  ? _raw_spin_unlock_irq+0x47/0x80
[   10.225378]  ? calculate_sigpending+0x7b/0xa0
[   10.225399]  ? __pfx_kthread+0x10/0x10
[   10.225416]  ret_from_fork+0x41/0x80
[   10.225436]  ? __pfx_kthread+0x10/0x10
[   10.225453]  ret_from_fork_asm+0x1a/0x30
[   10.225484]  </TASK>
[   10.225495] 
[   10.239347] Allocated by task 48:
[   10.239795]  kasan_save_stack+0x45/0x70
[   10.240218]  kasan_save_track+0x18/0x40
[   10.240365]  kasan_save_alloc_info+0x3b/0x50
[   10.240508]  __kasan_kmalloc+0xb7/0xc0
[   10.240972]  __kmalloc_node_track_caller_noprof+0x1cb/0x500
[   10.241492]  kvasprintf+0xc5/0x150
[   10.241909]  kasprintf+0xb6/0xf0
[   10.242241]  input_devnode+0x46/0x80
[   10.242414]  device_get_devnode+0x145/0x2a0
[   10.242906]  dev_uevent+0x41c/0x730
[   10.243180]  kobject_uevent_env+0x50d/0xff0
[   10.243328]  kobject_uevent+0xf/0x20
[   10.243456]  device_add+0xe4c/0x1820
[   10.243581]  cdev_device_add+0xab/0x1c0
[   10.244087]  evdev_connect+0x356/0x480
[   10.244444]  input_attach_handler.isra.0+0x117/0x1f0
[   10.244992]  input_register_device+0x722/0xe10
[   10.245405]  psmouse_connect+0x6ed/0xe30
[   10.245864]  serio_driver_probe+0x7a/0xb0
[   10.246193]  really_probe+0x1d4/0x920
[   10.246330]  __driver_probe_device+0x18f/0x3e0
[   10.246484]  driver_probe_device+0x4f/0x130
[   10.246854]  __driver_attach+0x1eb/0x4b0
[   10.247237]  bus_for_each_dev+0x10f/0x1a0
[   10.247604]  driver_attach+0x41/0x60
[   10.248047]  serio_handle_event+0x254/0x940
[   10.248467]  process_one_work+0x5ee/0xf60
[   10.248960]  worker_thread+0x758/0x1220
[   10.249155]  kthread+0x337/0x6f0
[   10.249280]  ret_from_fork+0x41/0x80
[   10.249415]  ret_from_fork_asm+0x1a/0x30
[   10.249555] 
[   10.249819] Freed by task 48:
[   10.250188]  kasan_save_stack+0x45/0x70
[   10.250561]  kasan_save_track+0x18/0x40
[   10.251054]  kasan_save_free_info+0x3f/0x60
[   10.251433]  __kasan_slab_free+0x56/0x70
[   10.251864]  kfree+0x222/0x3f0
[   10.252161]  dev_uevent+0x466/0x730
[   10.252480]  kobject_uevent_env+0x50d/0xff0
[   10.252627]  kobject_uevent+0xf/0x20
[   10.252887]  device_add+0xe4c/0x1820
[   10.253235]  cdev_device_add+0xab/0x1c0
[   10.253567]  evdev_connect+0x356/0x480
[   10.253930]  input_attach_handler.isra.0+0x117/0x1f0
[   10.254100]  input_register_device+0x722/0xe10
[   10.254247]  psmouse_connect+0x6ed/0xe30
[   10.254385]  serio_driver_probe+0x7a/0xb0
[   10.254523]  really_probe+0x1d4/0x920
[   10.254781]  __driver_probe_device+0x18f/0x3e0
[   10.255241]  driver_probe_device+0x4f/0x130
[   10.255647]  __driver_attach+0x1eb/0x4b0
[   10.256084]  bus_for_each_dev+0x10f/0x1a0
[   10.256441]  driver_attach+0x41/0x60
[   10.256844]  serio_handle_event+0x254/0x940
[   10.257225]  process_one_work+0x5ee/0xf60
[   10.257605]  worker_thread+0x758/0x1220
[   10.258040]  kthread+0x337/0x6f0
[   10.258339]  ret_from_fork+0x41/0x80
[   10.258695]  ret_from_fork_asm+0x1a/0x30
[   10.259035] 
[   10.259118] The buggy address belongs to the object at ffff8881025a7f20
[   10.259118]  which belongs to the cache kmalloc-16 of size 16
[   10.259479] The buggy address is located 15 bytes to the right of
[   10.259479]  allocated 16-byte region [ffff8881025a7f20, ffff8881025a7f30)
[   10.260636] 
[   10.260832] The buggy address belongs to the physical page:
[   10.261344] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1025a7
[   10.262125] flags: 0x200000000000000(node=0|zone=2)
[   10.262641] page_type: f5(slab)
[   10.262857] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000
[   10.263099] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000
[   10.263317] page dumped because: kasan: bad access detected
[   10.263481] 
[   10.263555] Memory state around the buggy address:
[   10.263706]  ffff8881025a7e00: fa fb fc fc 00 06 fc fc 00 06 fc fc fa fb fc fc
[   10.263913]  ffff8881025a7e80: 00 06 fc fc 00 06 fc fc 00 00 fc fc fa fb fc fc
[   10.264625] >ffff8881025a7f00: fa fb fc fc fa fb fc fc 00 07 fc fc fc fc fc fc
[   10.265344]                                         ^
[   10.265909]  ffff8881025a7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   10.266637]  ffff8881025a8000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   10.267377] ==================================================================