Date
June 26, 2025, 11:12 a.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 |
[ 27.374201] ================================================================== [ 27.383687] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x150/0x2f8 [ 27.390888] Write of size 2 at addr ffff000802d02b77 by task kunit_try_catch/221 [ 27.398266] [ 27.399752] CPU: 0 UID: 0 PID: 221 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc3 #1 PREEMPT [ 27.399806] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.399824] Hardware name: WinLink E850-96 board (DT) [ 27.399846] Call trace: [ 27.399858] show_stack+0x20/0x38 (C) [ 27.399896] dump_stack_lvl+0x8c/0xd0 [ 27.399935] print_report+0x118/0x608 [ 27.399965] kasan_report+0xdc/0x128 [ 27.399994] kasan_check_range+0x100/0x1a8 [ 27.400026] __asan_memset+0x34/0x78 [ 27.400057] kmalloc_oob_memset_2+0x150/0x2f8 [ 27.400091] kunit_try_run_case+0x170/0x3f0 [ 27.400128] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 27.400169] kthread+0x328/0x630 [ 27.400205] ret_from_fork+0x10/0x20 [ 27.400241] [ 27.465625] Allocated by task 221: [ 27.469013] kasan_save_stack+0x3c/0x68 [ 27.472830] kasan_save_track+0x20/0x40 [ 27.476649] kasan_save_alloc_info+0x40/0x58 [ 27.480902] __kasan_kmalloc+0xd4/0xd8 [ 27.484635] __kmalloc_cache_noprof+0x16c/0x3c0 [ 27.489149] kmalloc_oob_memset_2+0xb0/0x2f8 [ 27.493402] kunit_try_run_case+0x170/0x3f0 [ 27.497569] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 27.503039] kthread+0x328/0x630 [ 27.506249] ret_from_fork+0x10/0x20 [ 27.509808] [ 27.511286] The buggy address belongs to the object at ffff000802d02b00 [ 27.511286] which belongs to the cache kmalloc-128 of size 128 [ 27.523786] The buggy address is located 119 bytes inside of [ 27.523786] allocated 120-byte region [ffff000802d02b00, ffff000802d02b78) [ 27.536371] [ 27.537850] The buggy address belongs to the physical page: [ 27.543407] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x882d02 [ 27.551391] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 27.559028] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 27.565972] page_type: f5(slab) [ 27.569112] raw: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000 [ 27.576828] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 27.584556] head: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000 [ 27.592366] head: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 27.600179] head: 0bfffe0000000001 fffffdffe00b4081 00000000ffffffff 00000000ffffffff [ 27.607991] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 [ 27.615796] page dumped because: kasan: bad access detected [ 27.621353] [ 27.622829] Memory state around the buggy address: [ 27.627606] ffff000802d02a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.634810] ffff000802d02a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.642017] >ffff000802d02b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 27.649216] ^ [ 27.656338] ffff000802d02b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.663544] ffff000802d02c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.670743] ==================================================================
[ 18.026108] ================================================================== [ 18.026172] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x150/0x2f8 [ 18.026230] Write of size 2 at addr fff00000c5bdc877 by task kunit_try_catch/174 [ 18.026280] [ 18.026314] CPU: 0 UID: 0 PID: 174 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc3 #1 PREEMPT [ 18.026403] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.026462] Hardware name: linux,dummy-virt (DT) [ 18.026494] Call trace: [ 18.026518] show_stack+0x20/0x38 (C) [ 18.026568] dump_stack_lvl+0x8c/0xd0 [ 18.026616] print_report+0x118/0x608 [ 18.026659] kasan_report+0xdc/0x128 [ 18.026701] kasan_check_range+0x100/0x1a8 [ 18.026746] __asan_memset+0x34/0x78 [ 18.026790] kmalloc_oob_memset_2+0x150/0x2f8 [ 18.026836] kunit_try_run_case+0x170/0x3f0 [ 18.026896] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.026958] kthread+0x328/0x630 [ 18.027003] ret_from_fork+0x10/0x20 [ 18.027049] [ 18.027068] Allocated by task 174: [ 18.027094] kasan_save_stack+0x3c/0x68 [ 18.027137] kasan_save_track+0x20/0x40 [ 18.027178] kasan_save_alloc_info+0x40/0x58 [ 18.027215] __kasan_kmalloc+0xd4/0xd8 [ 18.027254] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.027302] kmalloc_oob_memset_2+0xb0/0x2f8 [ 18.027341] kunit_try_run_case+0x170/0x3f0 [ 18.027387] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.027430] kthread+0x328/0x630 [ 18.027466] ret_from_fork+0x10/0x20 [ 18.027502] [ 18.027521] The buggy address belongs to the object at fff00000c5bdc800 [ 18.027521] which belongs to the cache kmalloc-128 of size 128 [ 18.027577] The buggy address is located 119 bytes inside of [ 18.027577] allocated 120-byte region [fff00000c5bdc800, fff00000c5bdc878) [ 18.027637] [ 18.027657] The buggy address belongs to the physical page: [ 18.027688] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105bdc [ 18.027740] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.027801] page_type: f5(slab) [ 18.027843] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 18.027904] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 18.027945] page dumped because: kasan: bad access detected [ 18.027976] [ 18.027993] Memory state around the buggy address: [ 18.028025] fff00000c5bdc700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.028068] fff00000c5bdc780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.028112] >fff00000c5bdc800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 18.028151] ^ [ 18.028189] fff00000c5bdc880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.028399] fff00000c5bdc900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.028569] ==================================================================
[ 10.960199] ================================================================== [ 10.960659] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x166/0x330 [ 10.961088] Write of size 2 at addr ffff888102f60677 by task kunit_try_catch/191 [ 10.961394] [ 10.961498] CPU: 1 UID: 0 PID: 191 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc3 #1 PREEMPT(voluntary) [ 10.961546] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.961558] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.961580] Call Trace: [ 10.961593] <TASK> [ 10.961613] dump_stack_lvl+0x73/0xb0 [ 10.961642] print_report+0xd1/0x650 [ 10.961665] ? __virt_addr_valid+0x1db/0x2d0 [ 10.961689] ? kmalloc_oob_memset_2+0x166/0x330 [ 10.961710] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.961732] ? kmalloc_oob_memset_2+0x166/0x330 [ 10.961754] kasan_report+0x141/0x180 [ 10.961776] ? kmalloc_oob_memset_2+0x166/0x330 [ 10.961802] kasan_check_range+0x10c/0x1c0 [ 10.961822] __asan_memset+0x27/0x50 [ 10.961842] kmalloc_oob_memset_2+0x166/0x330 [ 10.961864] ? __pfx_kmalloc_oob_memset_2+0x10/0x10 [ 10.961888] ? __schedule+0x10cc/0x2b60 [ 10.961911] ? __pfx_read_tsc+0x10/0x10 [ 10.961944] ? ktime_get_ts64+0x86/0x230 [ 10.961971] kunit_try_run_case+0x1a5/0x480 [ 10.961997] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.962018] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.962043] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.962066] ? __kthread_parkme+0x82/0x180 [ 10.962089] ? preempt_count_sub+0x50/0x80 [ 10.962115] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.962138] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.962160] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.962182] kthread+0x337/0x6f0 [ 10.962198] ? trace_preempt_on+0x20/0xc0 [ 10.962223] ? __pfx_kthread+0x10/0x10 [ 10.962240] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.962261] ? calculate_sigpending+0x7b/0xa0 [ 10.962282] ? __pfx_kthread+0x10/0x10 [ 10.962300] ret_from_fork+0x41/0x80 [ 10.962320] ? __pfx_kthread+0x10/0x10 [ 10.962338] ret_from_fork_asm+0x1a/0x30 [ 10.962369] </TASK> [ 10.962380] [ 10.972970] Allocated by task 191: [ 10.973164] kasan_save_stack+0x45/0x70 [ 10.973373] kasan_save_track+0x18/0x40 [ 10.973577] kasan_save_alloc_info+0x3b/0x50 [ 10.973844] __kasan_kmalloc+0xb7/0xc0 [ 10.974031] __kmalloc_cache_noprof+0x189/0x420 [ 10.974208] kmalloc_oob_memset_2+0xac/0x330 [ 10.974406] kunit_try_run_case+0x1a5/0x480 [ 10.974609] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.974895] kthread+0x337/0x6f0 [ 10.975029] ret_from_fork+0x41/0x80 [ 10.975159] ret_from_fork_asm+0x1a/0x30 [ 10.975297] [ 10.975390] The buggy address belongs to the object at ffff888102f60600 [ 10.975390] which belongs to the cache kmalloc-128 of size 128 [ 10.975873] The buggy address is located 119 bytes inside of [ 10.975873] allocated 120-byte region [ffff888102f60600, ffff888102f60678) [ 10.976456] [ 10.976532] The buggy address belongs to the physical page: [ 10.977203] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102f60 [ 10.977595] flags: 0x200000000000000(node=0|zone=2) [ 10.977962] page_type: f5(slab) [ 10.978148] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 10.978383] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 10.978720] page dumped because: kasan: bad access detected [ 10.978978] [ 10.979046] Memory state around the buggy address: [ 10.979201] ffff888102f60500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 10.979566] ffff888102f60580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.980053] >ffff888102f60600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 10.980376] ^ [ 10.980608] ffff888102f60680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.980938] ffff888102f60700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.981252] ==================================================================