Hello,
syzbot found the following issue on:
HEAD commit: 58485ff1a74f Linux 6.1.141
git tree: linux-6.1.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=162f1182580000
kernel config:
https://syzkaller.appspot.com/x/.config?x=c186557a18643a0b
dashboard link:
https://syzkaller.appspot.com/bug?extid=36ed63974f7313c022a9
compiler: Debian clang version 20.1.6 (++20250514063057+1e4d39e07757-1~exp1~20250514183223.118), Debian LLD 20.1.6
Unfortunately, I don't have any reproducer for this issue yet.
Downloadable assets:
disk image:
https://storage.googleapis.com/syzbot-assets/467cd5b7e60b/disk-58485ff1.raw.xz
vmlinux:
https://storage.googleapis.com/syzbot-assets/df87a7313b47/vmlinux-58485ff1.xz
kernel image:
https://storage.googleapis.com/syzbot-assets/597ae3da22ce/bzImage-58485ff1.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+36ed63...@syzkaller.appspotmail.com
==================================================================
BUG: KASAN: slab-out-of-bounds in instrument_atomic_write include/linux/instrumented.h:87 [inline]
BUG: KASAN: slab-out-of-bounds in clear_bit include/asm-generic/bitops/instrumented-atomic.h:41 [inline]
BUG: KASAN: slab-out-of-bounds in clear_ti_thread_flag include/linux/thread_info.h:94 [inline]
BUG: KASAN: slab-out-of-bounds in clear_tsk_thread_flag include/linux/sched.h:2024 [inline]
BUG: KASAN: slab-out-of-bounds in clear_tsk_need_resched include/linux/sched.h:2055 [inline]
BUG: KASAN: slab-out-of-bounds in __schedule+0x72f/0x40d0 kernel/sched/core.c:6525
Write of size 8 at addr ffff88802eefd93f by task syz.4.573/6699
CPU: 1 PID: 6699 Comm: syz.4.573 Not tainted 6.1.141-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Call Trace:
<TASK>
dump_stack_lvl+0x168/0x22e lib/dump_stack.c:106
print_address_description mm/kasan/report.c:316 [inline]
print_report+0xa8/0x220 mm/kasan/report.c:427
kasan_report+0x10b/0x140 mm/kasan/report.c:531
check_region_inline mm/kasan/generic.c:-1 [inline]
kasan_check_range+0x27b/0x290 mm/kasan/generic.c:189
instrument_atomic_write include/linux/instrumented.h:87 [inline]
clear_bit include/asm-generic/bitops/instrumented-atomic.h:41 [inline]
clear_ti_thread_flag include/linux/thread_info.h:94 [inline]
clear_tsk_thread_flag include/linux/sched.h:2024 [inline]
clear_tsk_need_resched include/linux/sched.h:2055 [inline]
__schedule+0x72f/0x40d0 kernel/sched/core.c:6525
preempt_schedule_irq+0xb1/0x150 kernel/sched/core.c:6873
irqentry_exit+0x63/0x70 kernel/entry/common.c:439
asm_sysvec_reschedule_ipi+0x16/0x20 arch/x86/include/asm/idtentry.h:696
RIP: 0010:filemap_get_pages mm/filemap.c:2667 [inline]
RIP: 0010:filemap_read+0x602/0x2f80 mm/filemap.c:2759
Code: 00 00 00 48 8b bc 24 10 01 00 00 31 f6 e8 e6 5d 26 00 48 8d bc 24 c0 01 00 00 48 8b b4 24 30 01 00 00 e8 a1 f9 02 00 4c 89 f7 <4c> 89 ee 48 8b 94 24 90 00 00 00 48 8d 8c 24 20 02 00 00 e8 46 b4
RSP: 0018:ffffc90004c5e920 EFLAGS: 00000286
RAX: 0000000000400040 RBX: 0000000000000000 RCX: 1ffff9200098bcfc
RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffff888071a5ce38
RBP: ffffc90004c5ec30 R08: dffffc0000000000 R09: ffffed100e34b9d3
R10: ffffed100e34b9d3 R11: 1ffff1100e34b9d2 R12: dffffc0000000000
R13: 0000000000000000 R14: ffff888071a5ce38 R15: 0000000000000000
generic_file_read_iter+0x115/0x670 mm/filemap.c:2914
__kernel_read+0x2dc/0x6b0 fs/read_write.c:428
integrity_kernel_read+0x86/0xd0 security/integrity/iint.c:228
ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:485 [inline]
ima_calc_file_shash security/integrity/ima/ima_crypto.c:516 [inline]
ima_calc_file_hash+0x96b/0x17c0 security/integrity/ima/ima_crypto.c:573
ima_collect_measurement+0x4b3/0xac0 security/integrity/ima/ima_api.c:293
process_measurement+0xfae/0x1a10 security/integrity/ima/ima_main.c:351
ima_file_check+0xc2/0x100 security/integrity/ima/ima_main.c:534
do_open fs/namei.c:3628 [inline]
path_openat+0x2679/0x2e70 fs/namei.c:3783
do_filp_open+0x1c1/0x3c0 fs/namei.c:3810
do_sys_openat2+0x142/0x490 fs/open.c:1318
do_sys_open fs/open.c:1334 [inline]
__do_sys_openat fs/open.c:1350 [inline]
__se_sys_openat fs/open.c:1345 [inline]
__x64_sys_openat+0x135/0x160 fs/open.c:1345
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f89f2b8e929
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f89f3977038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f89f2db6160 RCX: 00007f89f2b8e929
RDX: 0000000000143042 RSI: 00002000000000c0 RDI: ffffffffffffff9c
RBP: 00007f89f2c10b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f89f2db6160 R15: 00007ffd1ae1c3d8
</TASK>
Allocated by task 6406:
kasan_save_stack mm/kasan/common.c:45 [inline]
kasan_set_track+0x4b/0x70 mm/kasan/common.c:52
__kasan_slab_alloc+0x6b/0x80 mm/kasan/common.c:328
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook+0x4b/0x480 mm/slab.h:737
slab_alloc_node mm/slub.c:3398 [inline]
kmem_cache_alloc_node+0x14d/0x320 mm/slub.c:3443
alloc_task_struct_node kernel/fork.c:172 [inline]
dup_task_struct+0x57/0x6b0 kernel/fork.c:981
copy_process+0x5bd/0x4020 kernel/fork.c:2181
kernel_clone+0x225/0x8b0 kernel/fork.c:2757
__do_sys_clone3 kernel/fork.c:3056 [inline]
__se_sys_clone3+0x2dc/0x360 kernel/fork.c:3040
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
Last potentially related work creation:
kasan_save_stack+0x3a/0x60 mm/kasan/common.c:45
__kasan_record_aux_stack+0xb2/0xc0 mm/kasan/generic.c:486
call_rcu+0x14b/0x970 kernel/rcu/tree.c:2845
context_switch kernel/sched/core.c:5247 [inline]
__schedule+0x10f1/0x40d0 kernel/sched/core.c:6561
schedule+0xb9/0x180 kernel/sched/core.c:6637
futex_wait_queue+0x134/0x1b0 kernel/futex/waitwake.c:355
futex_wait+0x19b/0x530 kernel/futex/waitwake.c:656
do_futex+0x310/0x320 kernel/futex/syscalls.c:106
__do_sys_futex kernel/futex/syscalls.c:183 [inline]
__se_sys_futex+0x14a/0x440 kernel/futex/syscalls.c:164
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
Second to last potentially related work creation:
kasan_save_stack+0x3a/0x60 mm/kasan/common.c:45
__kasan_record_aux_stack+0xb2/0xc0 mm/kasan/generic.c:486
call_rcu+0x14b/0x970 kernel/rcu/tree.c:2845
context_switch kernel/sched/core.c:5247 [inline]
__schedule+0x10f1/0x40d0 kernel/sched/core.c:6561
preempt_schedule_common+0x82/0xd0 kernel/sched/core.c:6730
preempt_schedule+0xa7/0xb0 kernel/sched/core.c:6754
preempt_schedule_thunk+0x16/0x18 arch/x86/entry/thunk_64.S:34
__raw_spin_unlock include/linux/spinlock_api_smp.h:143 [inline]
_raw_spin_unlock+0x36/0x40 kernel/locking/spinlock.c:186
spin_unlock include/linux/spinlock.h:391 [inline]
filemap_remove_folio+0x1aa/0x2c0 mm/filemap.c:259
truncate_inode_folio+0x59/0x70 mm/truncate.c:195
shmem_undo_range+0x4d2/0x2050 mm/shmem.c:942
shmem_truncate_range mm/shmem.c:1062 [inline]
shmem_evict_inode+0x248/0xa40 mm/shmem.c:1171
evict+0x485/0x870 fs/inode.c:705
__dentry_kill+0x431/0x650 fs/dcache.c:611
dentry_kill+0xb8/0x290 fs/dcache.c:-1
dput+0xfa/0x1d0 fs/dcache.c:918
__fput+0x5e0/0x920 fs/file_table.c:328
task_work_run+0x1ca/0x250 kernel/task_work.c:203
exit_task_work include/linux/task_work.h:39 [inline]
do_exit+0x936/0x2400 kernel/exit.c:871
do_group_exit+0x217/0x2d0 kernel/exit.c:1021
get_signal+0x1272/0x1350 kernel/signal.c:2871
arch_do_signal_or_restart+0xb0/0x1230 arch/x86/kernel/signal.c:871
exit_to_user_mode_loop+0x70/0x110 kernel/entry/common.c:174
exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210
__syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline]
syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:303
do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:87
entry_SYSCALL_64_after_hwframe+0x68/0xd2
The buggy address belongs to the object at ffff88802eefbb80
which belongs to the cache task_struct of size 7360
The buggy address is located 255 bytes to the right of
7360-byte region [ffff88802eefbb80, ffff88802eefd840)
The buggy address belongs to the physical page:
page:ffffea0000bbbe00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2eef8
head:ffffea0000bbbe00 order:3 compound_mapcount:0 compound_pincount:0
memcg:ffff888058fa0c41
flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000010200 ffffea0000b8d600 dead000000000002 ffff888140008500
raw: 0000000000000000 0000000080040004 00000001ffffffff ffff888058fa0c41
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 2, tgid 2 (kthreadd), ts 20087214904, free_ts 0
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2532
prep_new_page mm/page_alloc.c:2539 [inline]
get_page_from_freelist+0x1a26/0x1ac0 mm/page_alloc.c:4328
__alloc_pages+0x1df/0x4e0 mm/page_alloc.c:5614
__alloc_pages_node include/linux/gfp.h:237 [inline]
alloc_slab_page+0x4f/0x160 mm/slub.c:1796
allocate_slab mm/slub.c:1939 [inline]
new_slab+0x87/0x2c0 mm/slub.c:1992
___slab_alloc+0xbc6/0x1220 mm/slub.c:3180
__slab_alloc mm/slub.c:3279 [inline]
slab_alloc_node mm/slub.c:3364 [inline]
kmem_cache_alloc_node+0x1e5/0x320 mm/slub.c:3443
alloc_task_struct_node kernel/fork.c:172 [inline]
dup_task_struct+0x57/0x6b0 kernel/fork.c:981
copy_process+0x5bd/0x4020 kernel/fork.c:2181
kernel_clone+0x225/0x8b0 kernel/fork.c:2757
kernel_thread+0xe5/0x140 kernel/fork.c:2817
create_kthread kernel/kthread.c:399 [inline]
kthreadd+0x536/0x6e0 kernel/kthread.c:748
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
page_owner free stack trace missing
Memory state around the buggy address:
ffff88802eefd800: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
ffff88802eefd880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88802eefd900: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00
^
ffff88802eefd980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88802eefda00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================
----------------
Code disassembly (best guess):
0: 00 00 add %al,(%rax)
2: 00 48 8b add %cl,-0x75(%rax)
5: bc 24 10 01 00 mov $0x11024,%esp
a: 00 31 add %dh,(%rcx)
c: f6 e8 imul %al
e: e6 5d out %al,$0x5d
10: 26 00 48 8d es add %cl,-0x73(%rax)
14: bc 24 c0 01 00 mov $0x1c024,%esp
19: 00 48 8b add %cl,-0x75(%rax)
1c: b4 24 mov $0x24,%ah
1e: 30 01 xor %al,(%rcx)
20: 00 00 add %al,(%rax)
22: e8 a1 f9 02 00 call 0x2f9c8
27: 4c 89 f7 mov %r14,%rdi
* 2a: 4c 89 ee mov %r13,%rsi <-- trapping instruction
2d: 48 8b 94 24 90 00 00 mov 0x90(%rsp),%rdx
34: 00
35: 48 8d 8c 24 20 02 00 lea 0x220(%rsp),%rcx
3c: 00
3d: e8 .byte 0xe8
3e: 46 rex.RX
3f: b4 .byte 0xb4
---
This report is generated by a bot. It may contain errors.
See
https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at
syzk...@googlegroups.com.
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title
If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup