general protection fault in proto_seq_show

10 views
Skip to first unread message

syzbot

unread,
May 25, 2019, 7:57:06 PM5/25/19
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 8b2fc005 Linux 4.19.46
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1338d436a00000
kernel config: https://syzkaller.appspot.com/x/.config?x=6cad9a0b204b8583
dashboard link: https://syzkaller.appspot.com/bug?extid=ee53b027ca0d9275c8a6
compiler: gcc (GCC) 9.0.0 20181231 (experimental)

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

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

hrtimer: interrupt took 28607 ns
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: 1 PID: 8721 Comm: syz-executor.0 Not tainted 4.19.46 #18
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
RIP: 0010:proto_seq_printf net/core/sock.c:3422 [inline]
RIP: 0010:proto_seq_show+0x52/0x8e0 net/core/sock.c:3439
Code: 00 00 e8 a1 56 0c fc 48 8d bb 50 ff ff ff 48 8d 83 70 fe ff ff 48 89
fa 48 89 45 c8 48 c1 ea 03 48 b8 00 00 00 00 00 fc ff df <80> 3c 02 00 0f
85 d2 07 00 00 48 83 bb 50 ff ff ff 01 19 c0 83 e0
RSP: 0018:ffff8880777c73d0 EFLAGS: 00010a06
RAX: dffffc0000000000 RBX: dead000000000100 RCX: ffffc90005e6f000
RDX: 1bd5a0000000000a RSI: ffffffff855ea8df RDI: dead000000000050
RBP: ffff8880777c7460 R08: ffff888094134300 R09: ffffed1014ad38cb
R10: ffffed1014ad38ca R11: ffff8880a569c653 R12: 00000000000002d4
R13: dead000000000100 R14: ffffffff87dc6ae0 R15: 0000000000001000
FS: 00007fd053f15700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000075c000 CR3: 0000000077474000 CR4: 00000000001406e0
Call Trace:
seq_read+0xaae/0x1110 fs/seq_file.c:268
proc_reg_read+0x1f8/0x2b0 fs/proc/inode.c:231
do_loop_readv_writev fs/read_write.c:701 [inline]
do_loop_readv_writev fs/read_write.c:688 [inline]
do_iter_read+0x490/0x640 fs/read_write.c:925
vfs_readv+0xf0/0x160 fs/read_write.c:987
kernel_readv fs/splice.c:362 [inline]
default_file_splice_read+0x478/0x890 fs/splice.c:417
do_splice_to+0x127/0x180 fs/splice.c:881
splice_direct_to_actor+0x256/0x890 fs/splice.c:953
do_splice_direct+0x1da/0x2a0 fs/splice.c:1062
do_sendfile+0x597/0xce0 fs/read_write.c:1447
__do_sys_sendfile64 fs/read_write.c:1508 [inline]
__se_sys_sendfile64 fs/read_write.c:1494 [inline]
__x64_sys_sendfile64+0x1dd/0x220 fs/read_write.c:1494
do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x459279
Code: fd b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fd053f14c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000000459279
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000008000 R11: 0000000000000246 R12: 00007fd053f156d4
R13: 00000000004c65f3 R14: 00000000004db268 R15: 00000000ffffffff
Modules linked in:
---[ end trace a6c630a5d39a79f2 ]---
RIP: 0010:proto_seq_printf net/core/sock.c:3422 [inline]
RIP: 0010:proto_seq_show+0x52/0x8e0 net/core/sock.c:3439
Code: 00 00 e8 a1 56 0c fc 48 8d bb 50 ff ff ff 48 8d 83 70 fe ff ff 48 89
fa 48 89 45 c8 48 c1 ea 03 48 b8 00 00 00 00 00 fc ff df <80> 3c 02 00 0f
85 d2 07 00 00 48 83 bb 50 ff ff ff 01 19 c0 83 e0
RSP: 0018:ffff8880777c73d0 EFLAGS: 00010a06
RAX: dffffc0000000000 RBX: dead000000000100 RCX: ffffc90005e6f000
RDX: 1bd5a0000000000a RSI: ffffffff855ea8df RDI: dead000000000050
RBP: ffff8880777c7460 R08: ffff888094134300 R09: ffffed1014ad38cb
R10: ffffed1014ad38ca R11: ffff8880a569c653 R12: 00000000000002d4
R13: dead000000000100 R14: ffffffff87dc6ae0 R15: 0000000000001000
FS: 00007fd053f15700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000075c000 CR3: 0000000077474000 CR4: 00000000001406e0


---
This bug 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 bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
May 26, 2019, 5:29:06 AM5/26/19
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 44a05cd8 Linux 4.14.122
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=178da480a00000
kernel config: https://syzkaller.appspot.com/x/.config?x=564f2504e232480a
dashboard link: https://syzkaller.appspot.com/bug?extid=7c7dccee0ad089794282
compiler: gcc (GCC) 9.0.0 20181231 (experimental)

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

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

audit: type=1400 audit(1558859291.467:39): avc: denied { map } for
pid=7799 comm="syz-executor.5"
path=2F6D656D66643A2D42D54E49C56ABA707070F00884A26D202864656C6574656429
dev="tmpfs" ino=27785
scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023
tcontext=unconfined_u:object_r:tmpfs_t:s0 tclass=file permissive=1
hrtimer: interrupt took 26733 ns
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
Modules linked in:
CPU: 1 PID: 7802 Comm: syz-executor.5 Not tainted 4.14.122 #16
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
task: ffff88808c2e62c0 task.stack: ffff88808c210000
RIP: 0010:proto_seq_printf net/core/sock.c:3307 [inline]
RIP: 0010:proto_seq_show+0x52/0x8c0 net/core/sock.c:3324
RSP: 0018:ffff88808c217478 EFLAGS: 00010a06
RAX: dffffc0000000000 RBX: dead000000000100 RCX: ffffc9000604e000
RDX: 1bd5a0000000000c RSI: ffffffff84cc751f RDI: dead000000000060
RBP: ffff88808c217508 R08: ffff888087929008 R09: ffffed10123e48c4
R10: ffffed10123e48c3 R11: ffff888091f2461d R12: dffffc0000000000
R13: dead000000000100 R14: 0000000000000004 R15: ffffffff86ee3b20
FS: 00007fc756782700(0000) GS:ffff8880aef00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b3352a000 CR3: 00000000a58ea000 CR4: 00000000001406e0
Call Trace:
seq_read+0xb46/0x1280 fs/seq_file.c:272
proc_reg_read+0xfa/0x170 fs/proc/inode.c:217
do_loop_readv_writev fs/read_write.c:694 [inline]
do_loop_readv_writev fs/read_write.c:681 [inline]
do_iter_read+0x3e2/0x5b0 fs/read_write.c:918
vfs_readv+0xd3/0x130 fs/read_write.c:980
kernel_readv fs/splice.c:361 [inline]
default_file_splice_read+0x421/0x7b0 fs/splice.c:416
do_splice_to+0x105/0x170 fs/splice.c:880
splice_direct_to_actor+0x222/0x7b0 fs/splice.c:952
do_splice_direct+0x18d/0x230 fs/splice.c:1061
do_sendfile+0x4db/0xbd0 fs/read_write.c:1440
SYSC_sendfile64 fs/read_write.c:1501 [inline]
SyS_sendfile64+0x102/0x110 fs/read_write.c:1487
do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x459279
RSP: 002b:00007fc756781c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000000459279
RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000007
RBP: 000000000075bfc0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000008000 R11: 0000000000000246 R12: 00007fc7567826d4
R13: 00000000004c65f3 R14: 00000000004db268 R15: 00000000ffffffff
Code: 06 00 00 e8 61 2e 90 fc 48 8d bb 60 ff ff ff 48 8d 83 90 fe ff ff 48
89 fa 48 89 45 c8 48 c1 ea 03 48 b8 00 00 00 00 00 fc ff df <80> 3c 02 00
0f 85 b3 07 00 00 48 83 bb 60 ff ff ff 01 19 c0 83
RIP: proto_seq_printf net/core/sock.c:3307 [inline] RSP: ffff88808c217478
RIP: proto_seq_show+0x52/0x8c0 net/core/sock.c:3324 RSP: ffff88808c217478
---[ end trace 4779a018e8244534 ]---

syzbot

unread,
Oct 25, 2019, 4:38:07 AM10/25/19
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.

syzbot

unread,
Oct 25, 2019, 4:39:06 AM10/25/19
to syzkaller...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages