Hello,
syzbot found the following issue on:
HEAD commit: 7dc732d24ff7 Linux 6.1.123
git tree: linux-6.1.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=15b25edf980000
kernel config:
https://syzkaller.appspot.com/x/.config?x=b700290711767e0c
dashboard link:
https://syzkaller.appspot.com/bug?extid=fd9d30bfbd5d4a966056
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
Unfortunately, I don't have any reproducer for this issue yet.
Downloadable assets:
disk image:
https://storage.googleapis.com/syzbot-assets/7ad136b42edb/disk-7dc732d2.raw.xz
vmlinux:
https://storage.googleapis.com/syzbot-assets/859a37ce3517/vmlinux-7dc732d2.xz
kernel image:
https://storage.googleapis.com/syzbot-assets/6d506d0fa6c0/bzImage-7dc732d2.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+fd9d30...@syzkaller.appspotmail.com
general protection fault, probably for non-canonical address 0xdffffc0000000005: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000028-0x000000000000002f]
CPU: 0 PID: 4775 Comm: syz.2.89 Not tainted 6.1.123-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:f2fs_test_and_set_bit fs/f2fs/f2fs.h:2927 [inline]
RIP: 0010:update_sit_entry+0x67f/0x10d0 fs/f2fs/segment.c:2227
Code: 24 30 48 8d 5c 08 20 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 3e 44 04 fe 4c 8b 33 4d 01 ee 4c 89 f3 48 c1 eb 03 <42> 0f b6 04 3b 84 c0 4d 89 fd 0f 85 8a 08 00 00 41 0f b6 2e 41 89
RSP: 0018:ffffc900036e6f30 EFLAGS: 00010206
RAX: 1ffff11029a48616 RBX: 0000000000000005 RCX: 0000000000000090
RDX: ffff88802e2a5940 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000080 R08: ffffffff83ddea38 R09: ffffffff83dde58a
R10: 0000000000000003 R11: ffff88802e2a5940 R12: 0000000000000001
R13: 000000000000002a R14: 000000000000002a R15: dffffc0000000000
FS: 00007fa0c752a6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa0c7527f70 CR3: 00000000589cb000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
f2fs_allocate_data_block+0x149a/0x3310 fs/f2fs/segment.c:3275
__allocate_data_block+0x5b8/0xb50 fs/f2fs/data.c:1424
f2fs_map_blocks+0x178c/0x3ab0 fs/f2fs/data.c:1593
f2fs_preallocate_blocks fs/f2fs/file.c:4627 [inline]
f2fs_file_write_iter+0xe0f/0x2490 fs/f2fs/file.c:4830
do_iter_write+0x6e6/0xc40 fs/read_write.c:861
iter_file_splice_write+0x830/0xfc0 fs/splice.c:685
do_splice_from fs/splice.c:763 [inline]
direct_splice_actor+0xe3/0x1c0 fs/splice.c:950
splice_direct_to_actor+0x4c7/0xc30 fs/splice.c:896
do_splice_direct+0x2a5/0x3e0 fs/splice.c:1002
do_sendfile+0x619/0xff0 fs/read_write.c:1255
__do_sys_sendfile64 fs/read_write.c:1323 [inline]
__se_sys_sendfile64+0x178/0x1e0 fs/read_write.c:1309
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fa0c6785d29
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:00007fa0c752a038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007fa0c6976080 RCX: 00007fa0c6785d29
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000008
RBP: 00007fa0c6801b08 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000080000002 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fa0c6976080 R15: 00007fffdee75f58
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:f2fs_test_and_set_bit fs/f2fs/f2fs.h:2927 [inline]
RIP: 0010:update_sit_entry+0x67f/0x10d0 fs/f2fs/segment.c:2227
Code: 24 30 48 8d 5c 08 20 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 3e 44 04 fe 4c 8b 33 4d 01 ee 4c 89 f3 48 c1 eb 03 <42> 0f b6 04 3b 84 c0 4d 89 fd 0f 85 8a 08 00 00 41 0f b6 2e 41 89
RSP: 0018:ffffc900036e6f30 EFLAGS: 00010206
RAX: 1ffff11029a48616 RBX: 0000000000000005 RCX: 0000000000000090
RDX: ffff88802e2a5940 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000080 R08: ffffffff83ddea38 R09: ffffffff83dde58a
R10: 0000000000000003 R11: ffff88802e2a5940 R12: 0000000000000001
R13: 000000000000002a R14: 000000000000002a R15: dffffc0000000000
FS: 00007fa0c752a6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000000589cb000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 24 30 and $0x30,%al
2: 48 8d 5c 08 20 lea 0x20(%rax,%rcx,1),%rbx
7: 48 89 d8 mov %rbx,%rax
a: 48 c1 e8 03 shr $0x3,%rax
e: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1)
13: 74 08 je 0x1d
15: 48 89 df mov %rbx,%rdi
18: e8 3e 44 04 fe call 0xfe04445b
1d: 4c 8b 33 mov (%rbx),%r14
20: 4d 01 ee add %r13,%r14
23: 4c 89 f3 mov %r14,%rbx
26: 48 c1 eb 03 shr $0x3,%rbx
* 2a: 42 0f b6 04 3b movzbl (%rbx,%r15,1),%eax <-- trapping instruction
2f: 84 c0 test %al,%al
31: 4d 89 fd mov %r15,%r13
34: 0f 85 8a 08 00 00 jne 0x8c4
3a: 41 0f b6 2e movzbl (%r14),%ebp
3e: 41 rex.B
3f: 89 .byte 0x89
---
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