Date
May 12, 2025, 6:12 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.792458] ================================================================== [ 17.793191] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x2ec/0x320 [ 17.793885] Read of size 1 at addr fff00000c59b84df by task kunit_try_catch/127 [ 17.794488] [ 17.794823] CPU: 1 UID: 0 PID: 127 Comm: kunit_try_catch Tainted: G B N 6.14.7-rc1 #1 [ 17.795018] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.795083] Hardware name: linux,dummy-virt (DT) [ 17.795157] Call trace: [ 17.795209] show_stack+0x20/0x38 (C) [ 17.795342] dump_stack_lvl+0x8c/0xd0 [ 17.795448] print_report+0x118/0x608 [ 17.795546] kasan_report+0xdc/0x128 [ 17.795647] __asan_report_load1_noabort+0x20/0x30 [ 17.795807] kmalloc_oob_left+0x2ec/0x320 [ 17.795934] kunit_try_run_case+0x170/0x3f0 [ 17.796028] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.796142] kthread+0x318/0x620 [ 17.796230] ret_from_fork+0x10/0x20 [ 17.796317] [ 17.801572] Allocated by task 29: [ 17.801971] kasan_save_stack+0x3c/0x68 [ 17.802339] kasan_save_track+0x20/0x40 [ 17.803296] kasan_save_alloc_info+0x40/0x58 [ 17.803786] __kasan_kmalloc+0xd4/0xd8 [ 17.804238] __kmalloc_node_track_caller_noprof+0x18c/0x4c0 [ 17.804807] kstrdup+0x54/0xc8 [ 17.805113] devtmpfs_work_loop+0x398/0x5b0 [ 17.805502] devtmpfsd+0x50/0x58 [ 17.805864] kthread+0x318/0x620 [ 17.806192] ret_from_fork+0x10/0x20 [ 17.807485] [ 17.807725] Freed by task 29: [ 17.808120] kasan_save_stack+0x3c/0x68 [ 17.808565] kasan_save_track+0x20/0x40 [ 17.808938] kasan_save_free_info+0x4c/0x78 [ 17.809405] __kasan_slab_free+0x6c/0x98 [ 17.809830] kfree+0x214/0x3c8 [ 17.810230] devtmpfs_work_loop+0x4b8/0x5b0 [ 17.811168] devtmpfsd+0x50/0x58 [ 17.811514] kthread+0x318/0x620 [ 17.811929] ret_from_fork+0x10/0x20 [ 17.812335] [ 17.812583] The buggy address belongs to the object at fff00000c59b84c0 [ 17.812583] which belongs to the cache kmalloc-16 of size 16 [ 17.813424] The buggy address is located 15 bytes to the right of [ 17.813424] allocated 16-byte region [fff00000c59b84c0, fff00000c59b84d0) [ 17.814324] [ 17.815471] The buggy address belongs to the physical page: [ 17.815777] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1059b8 [ 17.816501] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.816931] page_type: f5(slab) [ 17.817323] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 17.817997] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 17.819030] page dumped because: kasan: bad access detected [ 17.819464] [ 17.819666] Memory state around the buggy address: [ 17.820127] fff00000c59b8380: 00 02 fc fc 00 02 fc fc fa fb fc fc 00 00 fc fc [ 17.820677] fff00000c59b8400: fa fb fc fc 00 03 fc fc 00 03 fc fc 00 00 fc fc [ 17.821282] >fff00000c59b8480: fa fb fc fc fa fb fc fc fa fb fc fc 00 07 fc fc [ 17.821838] ^ [ 17.822314] fff00000c59b8500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.823684] fff00000c59b8580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.824268] ==================================================================
[ 11.713243] ================================================================== [ 11.713692] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x363/0x3c0 [ 11.714237] Read of size 1 at addr ffff888101a9cf7f by task kunit_try_catch/146 [ 11.714533] [ 11.714645] CPU: 1 UID: 0 PID: 146 Comm: kunit_try_catch Tainted: G B N 6.14.7-rc1 #1 [ 11.714693] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.714705] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.714728] Call Trace: [ 11.714742] <TASK> [ 11.714764] dump_stack_lvl+0x73/0xb0 [ 11.714795] print_report+0xd1/0x650 [ 11.714817] ? __virt_addr_valid+0x1db/0x2d0 [ 11.714854] ? kmalloc_oob_left+0x363/0x3c0 [ 11.714873] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.714898] ? kmalloc_oob_left+0x363/0x3c0 [ 11.714917] kasan_report+0x140/0x180 [ 11.714938] ? kmalloc_oob_left+0x363/0x3c0 [ 11.714962] __asan_report_load1_noabort+0x18/0x20 [ 11.714985] kmalloc_oob_left+0x363/0x3c0 [ 11.715269] ? __pfx_kmalloc_oob_left+0x10/0x10 [ 11.715302] ? __pfx_kmalloc_oob_left+0x10/0x10 [ 11.715327] kunit_try_run_case+0x1a6/0x480 [ 11.715353] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.715374] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 11.715396] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.715421] ? __kthread_parkme+0x82/0x160 [ 11.715444] ? preempt_count_sub+0x50/0x80 [ 11.715471] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.715493] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.715518] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.715542] kthread+0x324/0x6e0 [ 11.715563] ? trace_preempt_on+0x20/0xc0 [ 11.715588] ? __pfx_kthread+0x10/0x10 [ 11.715610] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.715632] ? calculate_sigpending+0x7b/0xa0 [ 11.715653] ? __pfx_kthread+0x10/0x10 [ 11.715675] ret_from_fork+0x41/0x80 [ 11.715696] ? __pfx_kthread+0x10/0x10 [ 11.715717] ret_from_fork_asm+0x1a/0x30 [ 11.715749] </TASK> [ 11.715760] [ 11.724968] Allocated by task 1: [ 11.725167] kasan_save_stack+0x45/0x70 [ 11.725426] kasan_save_track+0x18/0x40 [ 11.725585] kasan_save_alloc_info+0x3b/0x50 [ 11.725753] __kasan_kmalloc+0xb7/0xc0 [ 11.725953] __kmalloc_node_track_caller_noprof+0x1cc/0x510 [ 11.726358] kvasprintf+0xc6/0x150 [ 11.726489] __kthread_create_on_node+0x18c/0x3a0 [ 11.726852] kthread_create_on_node+0xac/0xe0 [ 11.727084] create_worker+0x3e7/0x7b0 [ 11.727289] alloc_unbound_pwq+0x8ea/0xdb0 [ 11.727607] apply_wqattrs_prepare+0x332/0xd40 [ 11.727811] apply_workqueue_attrs_locked+0x4d/0xa0 [ 11.728110] alloc_workqueue+0xcc8/0x1ad0 [ 11.728300] latency_fsnotify_init+0x1b/0x50 [ 11.728531] do_one_initcall+0xd9/0x370 [ 11.728729] kernel_init_freeable+0x425/0x6f0 [ 11.728927] kernel_init+0x23/0x1e0 [ 11.729135] ret_from_fork+0x41/0x80 [ 11.729414] ret_from_fork_asm+0x1a/0x30 [ 11.729612] [ 11.729683] The buggy address belongs to the object at ffff888101a9cf60 [ 11.729683] which belongs to the cache kmalloc-16 of size 16 [ 11.730160] The buggy address is located 18 bytes to the right of [ 11.730160] allocated 13-byte region [ffff888101a9cf60, ffff888101a9cf6d) [ 11.730956] [ 11.731058] The buggy address belongs to the physical page: [ 11.731414] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101a9c [ 11.731648] flags: 0x200000000000000(node=0|zone=2) [ 11.732060] page_type: f5(slab) [ 11.732266] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 11.732645] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 11.733006] page dumped because: kasan: bad access detected [ 11.733319] [ 11.733463] Memory state around the buggy address: [ 11.733668] ffff888101a9ce00: fa fb fc fc 00 04 fc fc 00 00 fc fc 00 04 fc fc [ 11.733998] ffff888101a9ce80: 00 04 fc fc 00 00 fc fc fa fb fc fc fa fb fc fc [ 11.734317] >ffff888101a9cf00: fa fb fc fc fa fb fc fc fa fb fc fc 00 05 fc fc [ 11.734620] ^ [ 11.734924] ffff888101a9cf80: 00 07 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.735133] ffff888101a9d000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.735477] ==================================================================