[Android 5.15] general protection fault in update_sit_entry

20 views
Skip to first unread message

syzbot

unread,
Nov 23, 2024, 9:28:20 PM11/23/24
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 101e665d55a8 UPSTREAM: netfilter: xtables: fix typo causin..
git tree: android13-5.15-lts
console+strace: https://syzkaller.appspot.com/x/log.txt?x=175a0530580000
kernel config: https://syzkaller.appspot.com/x/.config?x=8f1e93150d070deb
dashboard link: https://syzkaller.appspot.com/bug?extid=74f4db0e3f48b4592d48
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=150f69c0580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=130f69c0580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/43038275e6e0/disk-101e665d.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/78d431c7bb5a/vmlinux-101e665d.xz
kernel image: https://storage.googleapis.com/syzbot-assets/78c6dead6ede/bzImage-101e665d.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/95732d0ab74d/mount_12.gz

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

general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 PID: 1138 Comm: syz-executor348 Not tainted 5.15.168-syzkaller-00719-g101e665d55a8 #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:2930 [inline]
RIP: 0010:update_sit_entry+0x5f3/0x1070 fs/f2fs/segment.c:2241
Code: c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 45 e4 86 ff 4c 8b 33 4c 03 75 a8 4d 89 f4 49 c1 ec 03 49 bd 00 00 00 00 00 fc ff df <43> 0f b6 04 2c 84 c0 0f 85 0d 09 00 00 41 0f b6 1e 41 89 df 8b 45
RSP: 0018:ffffc90002ab6c68 EFLAGS: 00010246
RAX: 1ffff11022f1133a RBX: ffff8881178899d0 RCX: 0000000000000037
RDX: ffff888115b0cf00 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90002ab6cf0 R08: ffffffff822bd7dd R09: ffffffff822bd33c
R10: 0000000000000003 R11: ffff888115b0cf00 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: 1ffff11022f508b0
FS: 00007f25c8ee46c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f25c8ee4d58 CR3: 0000000105d97000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
f2fs_allocate_data_block+0x10df/0x3410 fs/f2fs/segment.c:3442
__allocate_data_block+0x5be/0xb80 fs/f2fs/data.c:1404
f2fs_map_blocks+0x17c0/0x3ab0 fs/f2fs/data.c:1576
f2fs_iomap_begin+0x29d/0xc10 fs/f2fs/data.c:4191
iomap_iter+0x5b5/0xbe0 fs/iomap/iter.c:74
__iomap_dio_rw+0xb3a/0x1ed0 fs/iomap/direct-io.c:597
f2fs_dio_write_iter fs/f2fs/file.c:4586 [inline]
f2fs_file_write_iter+0x1012/0x2920 fs/f2fs/file.c:4718
do_iter_readv_writev+0x58e/0x790
do_iter_write+0x1f1/0x760 fs/read_write.c:855
vfs_writev+0x2ac/0x560 fs/read_write.c:928
do_pwritev fs/read_write.c:1025 [inline]
__do_sys_pwritev2 fs/read_write.c:1084 [inline]
__se_sys_pwritev2+0x1c6/0x2c0 fs/read_write.c:1075
__x64_sys_pwritev2+0xe5/0x100 fs/read_write.c:1075
x64_sys_call+0x8b0/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:329
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f25c8f498c9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 18 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f25c8ee4218 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffda RBX: 00007f25c8fd7718 RCX: 00007f25c8f498c9
RDX: 0000000000000001 RSI: 0000000020000240 RDI: 0000000000000007
RBP: 00007f25c8fd7710 R08: 0000000000000007 R09: 0000000000000003
R10: 0000000000002000 R11: 0000000000000246 R12: 00007f25c8fa360c
R13: 00007f25c8f9e0c0 R14: 0034656c69662f2e R15: 00007ffe6177a268
</TASK>
Modules linked in:
---[ end trace ffbdfd2d7b314dcd ]---
RIP: 0010:f2fs_test_and_set_bit fs/f2fs/f2fs.h:2930 [inline]
RIP: 0010:update_sit_entry+0x5f3/0x1070 fs/f2fs/segment.c:2241
Code: c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 45 e4 86 ff 4c 8b 33 4c 03 75 a8 4d 89 f4 49 c1 ec 03 49 bd 00 00 00 00 00 fc ff df <43> 0f b6 04 2c 84 c0 0f 85 0d 09 00 00 41 0f b6 1e 41 89 df 8b 45
RSP: 0018:ffffc90002ab6c68 EFLAGS: 00010246
RAX: 1ffff11022f1133a RBX: ffff8881178899d0 RCX: 0000000000000037
RDX: ffff888115b0cf00 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90002ab6cf0 R08: ffffffff822bd7dd R09: ffffffff822bd33c
R10: 0000000000000003 R11: ffff888115b0cf00 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: 1ffff11022f508b0
FS: 00007f25c8ee46c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f25c8f031b8 CR3: 0000000105d97000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: c1 e8 03 shr $0x3,%eax
3: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1)
8: 74 08 je 0x12
a: 48 89 df mov %rbx,%rdi
d: e8 45 e4 86 ff call 0xff86e457
12: 4c 8b 33 mov (%rbx),%r14
15: 4c 03 75 a8 add -0x58(%rbp),%r14
19: 4d 89 f4 mov %r14,%r12
1c: 49 c1 ec 03 shr $0x3,%r12
20: 49 bd 00 00 00 00 00 movabs $0xdffffc0000000000,%r13
27: fc ff df
* 2a: 43 0f b6 04 2c movzbl (%r12,%r13,1),%eax <-- trapping instruction
2f: 84 c0 test %al,%al
31: 0f 85 0d 09 00 00 jne 0x944
37: 41 0f b6 1e movzbl (%r14),%ebx
3b: 41 89 df mov %ebx,%r15d
3e: 8b .byte 0x8b
3f: 45 rex.RB


---
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 syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

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

syzbot

unread,
Nov 29, 2024, 6:40:31 AM11/29/24
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 139a6bb26d9d Revert "bareudp: Pull inner IP header in bare..
git tree: android13-5.10-lts
console output: https://syzkaller.appspot.com/x/log.txt?x=13e6cd30580000
kernel config: https://syzkaller.appspot.com/x/.config?x=4b4a7b8638c3099
dashboard link: https://syzkaller.appspot.com/bug?extid=163873d140f6bf1d2e0e
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=116c900f980000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=122a49e8580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/036acbda9b87/disk-139a6bb2.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/810594279008/vmlinux-139a6bb2.xz
kernel image: https://storage.googleapis.com/syzbot-assets/4fbbdded45d5/bzImage-139a6bb2.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/7156984e59b2/mount_0.gz

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

general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 1 PID: 289 Comm: syz-executor313 Not tainted 5.10.226-syzkaller-00184-g139a6bb26d9d #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:2905 [inline]
RIP: 0010:update_sit_entry+0x5e0/0x1060 fs/f2fs/segment.c:2330
Code: 4d 90 48 8d 5c c8 18 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 ad c8 88 ff 4c 8b 33 4d 01 fe 4d 89 f4 49 c1 ec 03 <43> 0f b6 04 2c 84 c0 0f 85 21 09 00 00 41 0f b6 1e 41 89 df 8b 45
RSP: 0018:ffffc90000b96cf8 EFLAGS: 00010246
RAX: 1ffff1102388e03a RBX: ffff88811c4701d0 RCX: 0000000000000037
RDX: ffff88810cab93c0 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000b96d90 R08: ffffffff821f8cf1 R09: ffffffff821f884d
R10: 0000000000000003 R11: ffff88810cab93c0 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000
FS: 00007f775aad76c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f775aad6ff8 CR3: 000000010c295000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
f2fs_allocate_data_block+0x18ee/0x3150 fs/f2fs/segment.c:3487
__allocate_data_block+0x5a7/0xb10 fs/f2fs/data.c:1407
f2fs_map_blocks+0x18ef/0x3e50 fs/f2fs/data.c:1575
f2fs_iomap_begin+0x270/0x980 fs/f2fs/data.c:4118
iomap_apply+0x116/0x8a0 fs/iomap/apply.c:46
__iomap_dio_rw+0x767/0x10f0 fs/iomap/direct-io.c:525
f2fs_dio_write_iter fs/f2fs/file.c:4710 [inline]
f2fs_file_write_iter+0x12b1/0x2570 fs/f2fs/file.c:4825
call_write_iter include/linux/fs.h:2023 [inline]
new_sync_write fs/read_write.c:518 [inline]
vfs_write+0xb4c/0xe70 fs/read_write.c:605
ksys_write+0x199/0x2c0 fs/read_write.c:658
__do_sys_write fs/read_write.c:670 [inline]
__se_sys_write fs/read_write.c:667 [inline]
__x64_sys_write+0x7b/0x90 fs/read_write.c:667
do_syscall_64+0x34/0x70
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f775ab3a2e9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 17 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f775aad7218 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f775abc66d8 RCX: 00007f775ab3a2e9
RDX: 000000000000003b RSI: 0000000020000080 RDI: 0000000000000004
RBP: 00007f775abc66d0 R08: 00007f775aad6fb7 R09: 0000000000000000
R10: 0000000000000014 R11: 0000000000000246 R12: 0034656c69662f2e
R13: 6e6f697463656a6e R14: 6e695f746c756166 R15: 00007f775ab8e047
Modules linked in:
---[ end trace 5d70ae71844c212e ]---
RIP: 0010:f2fs_test_and_set_bit fs/f2fs/f2fs.h:2905 [inline]
RIP: 0010:update_sit_entry+0x5e0/0x1060 fs/f2fs/segment.c:2330
Code: 4d 90 48 8d 5c c8 18 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 ad c8 88 ff 4c 8b 33 4d 01 fe 4d 89 f4 49 c1 ec 03 <43> 0f b6 04 2c 84 c0 0f 85 21 09 00 00 41 0f b6 1e 41 89 df 8b 45
RSP: 0018:ffffc90000b96cf8 EFLAGS: 00010246
RAX: 1ffff1102388e03a RBX: ffff88811c4701d0 RCX: 0000000000000037
RDX: ffff88810cab93c0 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000b96d90 R08: ffffffff821f8cf1 R09: ffffffff821f884d
R10: 0000000000000003 R11: ffff88810cab93c0 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000
FS: 00007f775aad76c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f775ab8db68 CR3: 000000010c295000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 4d 90 rex.WRB xchg %rax,%r8
2: 48 8d 5c c8 18 lea 0x18(%rax,%rcx,8),%rbx
7: 48 89 d8 mov %rbx,%rax
a: 48 c1 e8 03 shr $0x3,%rax
e: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1)
13: 74 08 je 0x1d
15: 48 89 df mov %rbx,%rdi
18: e8 ad c8 88 ff call 0xff88c8ca
1d: 4c 8b 33 mov (%rbx),%r14
20: 4d 01 fe add %r15,%r14
23: 4d 89 f4 mov %r14,%r12
26: 49 c1 ec 03 shr $0x3,%r12
* 2a: 43 0f b6 04 2c movzbl (%r12,%r13,1),%eax <-- trapping instruction
2f: 84 c0 test %al,%al
31: 0f 85 21 09 00 00 jne 0x958

syzbot

unread,
Dec 8, 2024, 1:16:25 PM12/8/24
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: c276c53965a8 ANDROID: GKI: Update symbol list for mtk
git tree: android14-6.1
console+strace: https://syzkaller.appspot.com/x/log.txt?x=13502820580000
kernel config: https://syzkaller.appspot.com/x/.config?x=c1a81d4ee887f8df
dashboard link: https://syzkaller.appspot.com/bug?extid=5befe124e5915c6e2b0f
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11fb43e8580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16c614df980000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/c619c96522f2/disk-c276c539.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/f72381731325/vmlinux-c276c539.xz
kernel image: https://storage.googleapis.com/syzbot-assets/169b668d3be1/bzImage-c276c539.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/a5420dec93bf/mount_0.gz

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

syz-executor164: attempt to access beyond end of device
loop0: rw=2049, sector=45224, nr_sectors = 128 limit=40427
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 1 PID: 297 Comm: syz-executor164 Not tainted 6.1.115-syzkaller-00006-gc276c53965a8 #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:2940 [inline]
RIP: 0010:update_sit_entry+0x5db/0x1020 fs/f2fs/segment.c:2351
Code: 4d 98 48 8d 5c c8 18 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 e2 0e 83 ff 4c 8b 3b 4d 01 e7 4d 89 fc 49 c1 ec 03 <43> 0f b6 04 2c 84 c0 0f 85 d4 08 00 00 41 0f b6 1f 41 89 de 8b 45
RSP: 0018:ffffc90000ed6448 EFLAGS: 00010247
RAX: 1ffff110222c4b12 RBX: ffff888111625890 RCX: 000000000000000f
RDX: ffff888110b95100 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000ed64d0 R08: ffffffff8239e5bb R09: ffffffff8239e11e
R10: 0000000000000003 R11: ffff888110b95100 R12: 0000000000000000
R13: dffffc0000000000 R14: ffff888109fb0000 R15: 0000000000000004
FS: 00007fc50c83e6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc50c81e000 CR3: 0000000124b66000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
f2fs_allocate_data_block+0x1558/0x3ad0 fs/f2fs/segment.c:3368
do_write_page+0x257/0xc30 fs/f2fs/segment.c:3470
f2fs_outplace_write_data+0x1ec/0x460 fs/f2fs/segment.c:3546
f2fs_do_write_data_page+0xf11/0x1670 fs/f2fs/data.c:2799
f2fs_write_single_data_page+0xb4a/0x1c70 fs/f2fs/data.c:2916
f2fs_write_cache_pages fs/f2fs/data.c:3168 [inline]
__f2fs_write_data_pages fs/f2fs/data.c:3318 [inline]
f2fs_write_data_pages+0x1676/0x2af0 fs/f2fs/data.c:3345
do_writepages+0x385/0x620 mm/page-writeback.c:2494
filemap_fdatawrite_wbc+0x153/0x1b0 mm/filemap.c:408
__filemap_fdatawrite_range mm/filemap.c:441 [inline]
filemap_write_and_wait_range+0x1a4/0x290 mm/filemap.c:694
f2fs_flush_buffered_write fs/f2fs/file.c:4705 [inline]
f2fs_file_write_iter+0x785/0x27c0 fs/f2fs/file.c:4905
do_iter_write+0x6e6/0xc40 fs/read_write.c:861
vfs_iter_write+0x7c/0xa0 fs/read_write.c:902
iter_file_splice_write+0x7f8/0xf90 fs/splice.c:685
do_splice_from fs/splice.c:763 [inline]
direct_splice_actor+0xff/0x130 fs/splice.c:930
splice_direct_to_actor+0x4b4/0xbb0 fs/splice.c:885
do_splice_direct+0x27f/0x3c0 fs/splice.c:973
do_sendfile+0x613/0xfe0 fs/read_write.c:1255
__do_sys_sendfile64 fs/read_write.c:1323 [inline]
__se_sys_sendfile64 fs/read_write.c:1309 [inline]
__x64_sys_sendfile64+0x1ce/0x230 fs/read_write.c:1309
x64_sys_call+0x140/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:41
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:0x7fc50c880169
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 17 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fc50c83e218 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007fc50c90c608 RCX: 00007fc50c880169
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000005
RBP: 00007fc50c90c600 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000fffe80 R11: 0000000000000246 R12: 00007fc50c8d9784
R13: 0031656c69662f2e R14: 00007fc50c8d4060 R15: 00007fc50c8d4270
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:f2fs_test_and_set_bit fs/f2fs/f2fs.h:2940 [inline]
RIP: 0010:update_sit_entry+0x5db/0x1020 fs/f2fs/segment.c:2351
Code: 4d 98 48 8d 5c c8 18 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 e2 0e 83 ff 4c 8b 3b 4d 01 e7 4d 89 fc 49 c1 ec 03 <43> 0f b6 04 2c 84 c0 0f 85 d4 08 00 00 41 0f b6 1f 41 89 de 8b 45
RSP: 0018:ffffc90000ed6448 EFLAGS: 00010247
RAX: 1ffff110222c4b12 RBX: ffff888111625890 RCX: 000000000000000f
RDX: ffff888110b95100 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000ed64d0 R08: ffffffff8239e5bb R09: ffffffff8239e11e
R10: 0000000000000003 R11: ffff888110b95100 R12: 0000000000000000
R13: dffffc0000000000 R14: ffff888109fb0000 R15: 0000000000000004
FS: 00007fc50c83e6c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc50c8d39e8 CR3: 0000000124b66000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 4d 98 rex.WRB cltq
2: 48 8d 5c c8 18 lea 0x18(%rax,%rcx,8),%rbx
7: 48 89 d8 mov %rbx,%rax
a: 48 c1 e8 03 shr $0x3,%rax
e: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1)
13: 74 08 je 0x1d
15: 48 89 df mov %rbx,%rdi
18: e8 e2 0e 83 ff call 0xff830eff
1d: 4c 8b 3b mov (%rbx),%r15
20: 4d 01 e7 add %r12,%r15
23: 4d 89 fc mov %r15,%r12
26: 49 c1 ec 03 shr $0x3,%r12
* 2a: 43 0f b6 04 2c movzbl (%r12,%r13,1),%eax <-- trapping instruction
2f: 84 c0 test %al,%al
31: 0f 85 d4 08 00 00 jne 0x90b
37: 41 0f b6 1f movzbl (%r15),%ebx
3b: 41 89 de mov %ebx,%r14d

syzbot

unread,
Dec 8, 2024, 11:35:11 PM12/8/24
to syzkaller-a...@googlegroups.com
Bug presence analysis results: the bug reproduces only on Android 6.1.

syzbot has run the reproducer on other relevant kernel trees and got
the following results:

android14-6.1 (commit c276c53965a8) on 2024/12/09:
general protection fault in update_sit_entry
Report: https://syzkaller.appspot.com/x/report.txt?x=10d39944580000

lts (commit 0d968ced7330) on 2024/12/09:
Didn't crash.

upstream (commit fac04efc5c79) on 2024/12/09:
Didn't crash.

More details can be found at:
https://syzkaller.appspot.com/bug?extid=5befe124e5915c6e2b0f
Reply all
Reply to author
Forward
0 new messages