general protection fault in unix_bind

4 views
Skip to first unread message

syzbot

unread,
Mar 16, 2022, 12:03:20 AM3/16/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=15c47491700000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=ee97ac34229c41ff6d26
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

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

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

audit: type=1804 audit(1647403366.678:195): pid=20270 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.2" name="/root/syzkaller-testdir2766160968/syzkaller.wsugt3/217/bus" dev="sda1" ino=14733 res=1
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 20184 Comm: syz-executor.1 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:unix_bind+0x5b1/0xa40 net/unix/af_unix.c:1088
Code: df 48 c1 ea 03 80 3c 02 00 0f 85 36 04 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b 64 24 58 49 8d 7c 24 40 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 78 04 00 00 41 0f b6 44 24 40 48 c7 c7 80 77 f0
RSP: 0018:ffff88804ea4fcc8 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 1ffff11009d49fa0 RCX: ffffffff8700df67
RDX: 0000000000000008 RSI: ffffffff8700df79 RDI: 0000000000000040
RBP: ffff88804ea4fdc8 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 00000000ac2ce7de R12: 0000000000000000
R13: 000000000000000d R14: ffff8880a161c5e8 R15: ffff8880a161c0c0
FS: 00007fa60f358700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c01007fd08 CR3: 0000000044619000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__sys_bind+0x1e9/0x250 net/socket.c:1594
__do_sys_bind net/socket.c:1605 [inline]
__se_sys_bind net/socket.c:1603 [inline]
__x64_sys_bind+0x6f/0xb0 net/socket.c:1603
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fa6109e3049
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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fa60f358168 EFLAGS: 00000246 ORIG_RAX: 0000000000000031
RAX: ffffffffffffffda RBX: 00007fa610af5f60 RCX: 00007fa6109e3049
RDX: 0000000000000056 RSI: 00000000200001c0 RDI: 0000000000000004
RBP: 00007fa610a3d08d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff710dc9af R14: 00007fa60f358300 R15: 0000000000022000
Modules linked in:
---[ end trace 0c0f2d86fecf3280 ]---
RIP: 0010:unix_bind+0x5b1/0xa40 net/unix/af_unix.c:1088
Code: df 48 c1 ea 03 80 3c 02 00 0f 85 36 04 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b 64 24 58 49 8d 7c 24 40 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 78 04 00 00 41 0f b6 44 24 40 48 c7 c7 80 77 f0
RSP: 0018:ffff88804ea4fcc8 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 1ffff11009d49fa0 RCX: ffffffff8700df67
RDX: 0000000000000008 RSI: ffffffff8700df79 RDI: 0000000000000040
RBP: ffff88804ea4fdc8 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 00000000ac2ce7de R12: 0000000000000000
R13: 000000000000000d R14: ffff8880a161c5e8 R15: ffff8880a161c0c0
FS: 00007fa60f358700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe08957c000 CR3: 0000000044619000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 1 bytes skipped:
0: 48 c1 ea 03 shr $0x3,%rdx
4: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1)
8: 0f 85 36 04 00 00 jne 0x444
e: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
15: fc ff df
18: 4d 8b 64 24 58 mov 0x58(%r12),%r12
1d: 49 8d 7c 24 40 lea 0x40(%r12),%rdi
22: 48 89 fa mov %rdi,%rdx
25: 48 c1 ea 03 shr $0x3,%rdx
* 29: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction
2d: 0f 85 78 04 00 00 jne 0x4ab
33: 41 0f b6 44 24 40 movzbl 0x40(%r12),%eax
39: 48 rex.W
3a: c7 .byte 0xc7
3b: c7 .byte 0xc7
3c: 80 .byte 0x80
3d: 77 f0 ja 0x2f


---
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,
Mar 16, 2022, 12:40:20 AM3/16/22
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=15b72f7e700000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=ee97ac34229c41ff6d26
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=127d1e61700000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12dbae23700000

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

UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2020/09/19 18:44 (1000)
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8089 Comm: syz-executor408 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:unix_bind+0x5b1/0xa40 net/unix/af_unix.c:1088
Code: df 48 c1 ea 03 80 3c 02 00 0f 85 36 04 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b 64 24 58 49 8d 7c 24 40 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 78 04 00 00 41 0f b6 44 24 40 48 c7 c7 80 77 f0
RSP: 0018:ffff8880a2eb7cc8 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 1ffff110145d6fa0 RCX: ffffffff8700df67
RDX: 0000000000000008 RSI: ffffffff8700df79 RDI: 0000000000000040
RBP: ffff8880a2eb7dc8 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 00000000ac2ce7de R12: 0000000000000000
R13: 000000000000000d R14: ffff8880a19e75a8 R15: ffff8880a19e7080
FS: 00005555572df300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000564c8839b068 CR3: 00000000aa836000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__sys_bind+0x1e9/0x250 net/socket.c:1594
__do_sys_bind net/socket.c:1605 [inline]
__se_sys_bind net/socket.c:1603 [inline]
__x64_sys_bind+0x6f/0xb0 net/socket.c:1603
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fde20a6a459
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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffa10e2f88 EFLAGS: 00000246 ORIG_RAX: 0000000000000031
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007fde20a6a459
RDX: 0000000000000056 RSI: 00000000200001c0 RDI: 0000000000000003
RBP: 00007fde20a29cf0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fde20a29d80
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 18c7f903bc39fafb ]---
RIP: 0010:unix_bind+0x5b1/0xa40 net/unix/af_unix.c:1088
Code: df 48 c1 ea 03 80 3c 02 00 0f 85 36 04 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b 64 24 58 49 8d 7c 24 40 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 78 04 00 00 41 0f b6 44 24 40 48 c7 c7 80 77 f0
RSP: 0018:ffff8880a2eb7cc8 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 1ffff110145d6fa0 RCX: ffffffff8700df67
RDX: 0000000000000008 RSI: ffffffff8700df79 RDI: 0000000000000040
RBP: ffff8880a2eb7dc8 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 00000000ac2ce7de R12: 0000000000000000
R13: 000000000000000d R14: ffff8880a19e75a8 R15: ffff8880a19e7080
FS: 00005555572df300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000564c8837a120 CR3: 00000000aa836000 CR4: 00000000003406f0
Reply all
Reply to author
Forward
0 new messages