[ntfs3?] general protection fault in run_lookup_entry

4 views
Skip to first unread message

syzbot

unread,
Feb 21, 2023, 4:36:42 AM2/21/23
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3ac88fa4605e Merge tag 'net-6.2-final' of git://git.kernel..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=10a9d28b480000
kernel config: https://syzkaller.appspot.com/x/.config?x=7bfeb3e8d4df76ca
dashboard link: https://syzkaller.appspot.com/bug?extid=fe84bc9bd94f9c2a63d7
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
CC: [almaz.ale...@paragon-software.com linux-...@vger.kernel.org linux-...@vger.kernel.org nt...@lists.linux.dev]

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/5e5a5021bb76/disk-3ac88fa4.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/bd0ed3340dc5/vmlinux-3ac88fa4.xz
kernel image: https://storage.googleapis.com/syzbot-assets/e8af7580e527/bzImage-3ac88fa4.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+fe84bc...@syzkaller.appspotmail.com

general protection fault, probably for non-canonical address 0xfff10c05364c7000: 0000 [#1] PREEMPT SMP KASAN
KASAN: maybe wild-memory-access in range [0xff888029b2638000-0xff888029b2638007]
CPU: 0 PID: 13521 Comm: syz-executor.3 Not tainted 6.2.0-rc8-syzkaller-00083-g3ac88fa4605e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
RIP: 0010:run_lookup fs/ntfs3/run.c:49 [inline]
RIP: 0010:run_lookup_entry+0x8c/0x560 fs/ntfs3/run.c:203
Code: 48 89 df e8 d6 6c 0f ff 48 8b 1b 31 ff 48 89 de e8 b9 37 ba fe 48 85 db 74 48 48 89 6c 24 20 48 89 1c 24 4c 89 e8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 92 03 00 00 41 8b 5d 00 89 df 44 89 fe
RSP: 0018:ffffc900051371d8 EFLAGS: 00010a06
RAX: 1ff11005364c7000 RBX: 00000000000001ff RCX: ffff88807ade1d40
RDX: ffffc9000bdb2000 RSI: 00000000000001ff RDI: 0000000000000000
RBP: ffffc90005137500 R08: ffffffff82d19ed7 R09: 0000000000000000
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ff888029b2638000 R14: 0000000000000000 R15: 0000000000000004
FS: 00007fb9ee704700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b32032000 CR3: 000000007de89000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
attr_set_size+0x1e40/0x4290 fs/ntfs3/attrib.c:543
ntfs_set_size+0x161/0x1f0 fs/ntfs3/inode.c:823
ntfs_extend+0x153/0x490 fs/ntfs3/file.c:337
ntfs_file_write_iter+0x308/0x6d0 fs/ntfs3/file.c:1064
do_iter_write+0x6ea/0xc50 fs/read_write.c:861
iter_file_splice_write+0x80a/0xfa0 fs/splice.c:686
do_splice_from fs/splice.c:764 [inline]
direct_splice_actor+0xe7/0x1c0 fs/splice.c:931
splice_direct_to_actor+0x4c4/0xbd0 fs/splice.c:886
do_splice_direct+0x283/0x3d0 fs/splice.c:974
do_sendfile+0x620/0xff0 fs/read_write.c:1255
__do_sys_sendfile64 fs/read_write.c:1323 [inline]
__se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1309
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fb9eda8c0f9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb9ee704168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007fb9edbabf80 RCX: 00007fb9eda8c0f9
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004
RBP: 00007fb9edae7ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000010000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd1ae918bf R14: 00007fb9ee704300 R15: 0000000000022000
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:run_lookup fs/ntfs3/run.c:49 [inline]
RIP: 0010:run_lookup_entry+0x8c/0x560 fs/ntfs3/run.c:203
Code: 48 89 df e8 d6 6c 0f ff 48 8b 1b 31 ff 48 89 de e8 b9 37 ba fe 48 85 db 74 48 48 89 6c 24 20 48 89 1c 24 4c 89 e8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 92 03 00 00 41 8b 5d 00 89 df 44 89 fe
RSP: 0018:ffffc900051371d8 EFLAGS: 00010a06
RAX: 1ff11005364c7000 RBX: 00000000000001ff RCX: ffff88807ade1d40
RDX: ffffc9000bdb2000 RSI: 00000000000001ff RDI: 0000000000000000
RBP: ffffc90005137500 R08: ffffffff82d19ed7 R09: 0000000000000000
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ff888029b2638000 R14: 0000000000000000 R15: 0000000000000004
FS: 00007fb9ee704700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff353e29718 CR3: 000000007de89000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 48 89 df mov %rbx,%rdi
3: e8 d6 6c 0f ff callq 0xff0f6cde
8: 48 8b 1b mov (%rbx),%rbx
b: 31 ff xor %edi,%edi
d: 48 89 de mov %rbx,%rsi
10: e8 b9 37 ba fe callq 0xfeba37ce
15: 48 85 db test %rbx,%rbx
18: 74 48 je 0x62
1a: 48 89 6c 24 20 mov %rbp,0x20(%rsp)
1f: 48 89 1c 24 mov %rbx,(%rsp)
23: 4c 89 e8 mov %r13,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 0f b6 04 20 movzbl (%rax,%r12,1),%eax <-- trapping instruction
2f: 84 c0 test %al,%al
31: 0f 85 92 03 00 00 jne 0x3c9
37: 41 8b 5d 00 mov 0x0(%r13),%ebx
3b: 89 df mov %ebx,%edi
3d: 44 89 fe mov %r15d,%esi


---
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.

syzbot

unread,
May 18, 2023, 5:36:01 AM5/18/23
to syzkaller-upst...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages