Hello,
syzbot found the following crash on:
HEAD commit: 1ffaddd029c8 Linux 4.18-rc8
git tree: upstream
console output:
https://syzkaller.appspot.com/x/log.txt?x=16438672400000
kernel config:
https://syzkaller.appspot.com/x/.config?x=152cb8ccd35b1f70
dashboard link:
https://syzkaller.appspot.com/bug?extid=176315a818fe834a8d1b
compiler: gcc (GCC) 8.0.1 20180413 (experimental)
CC: [
dhow...@redhat.com jmo...@namei.org
keyr...@vger.kernel.org linux-...@vger.kernel.org
linux-secu...@vger.kernel.org se...@hallyn.com]
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+176315...@syzkaller.appspotmail.com
F2FS-fs (loop3): Failed to get valid F2FS checkpoint
F2FS-fs (loop3): Magic Mismatch, valid(0xf2f52010) - read(0x0)
F2FS-fs (loop3): Can't find valid F2FS filesystem in 1th superblock
------------[ cut here ]------------
attempt to access beyond end of device
kernel BUG at security/keys/keyring.c:1214!
invalid opcode: 0000 [#1] SMP KASAN
loop3: rw=12288, want=8200, limit=20
CPU: 0 PID: 17872 Comm: syz-executor7 Not tainted 4.18.0-rc8+ #179
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
F2FS-fs (loop3): invalid crc value
RIP: 0010:__key_link_begin+0x23a/0x300 security/keys/keyring.c:1214
Code: fe 48 c7 c7 60
attempt to access beyond end of device
e5 23 88 e8 23 03 47 fe eb ac e8 1c 55 65 fe 48 c7
loop3: rw=12288, want=12296, limit=20
c7 60 e5 23 88
F2FS-fs (loop3): invalid crc value
e8 60 e5 93 03 e9 e3 fe ff ff e8 06 55 65
F2FS-fs (loop3): Failed to get valid F2FS checkpoint
fe <0f> 0b e8 ff 54 65 fe 48 8d bb ce 00 00 00 48 b8 00 00 00 00 00 fc
RSP: 0018:ffff88019a6b7b10 EFLAGS: 00010212
RAX: 0000000000040000 RBX: ffff8801ac094ac0 RCX: ffffc90007668000
RDX: 000000000000062a RSI: ffffffff8316c34a RDI: 0000000000000007
RBP: ffff88019a6b7b40 R08: ffff880192c82040 R09: fffffbfff1047b8c
R10: fffffbfff1047b8c R11: ffffffff8823dc63 R12: ffff88019a6b7c48
R13: 0000000000000000 R14: ffff8801ac094340 R15: ffff8801ac094ac0
FS: 00007f81c0578700(0000) GS:ffff8801db000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff09247b9c CR3: 00000001bb15f000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
construct_alloc_key security/keys/request_key.c:389 [inline]
construct_key_and_link security/keys/request_key.c:480 [inline]
request_key_and_link+0x737/0x17a0 security/keys/request_key.c:593
__do_sys_request_key security/keys/keyctl.c:213 [inline]
__se_sys_request_key security/keys/keyctl.c:158 [inline]
__x64_sys_request_key+0x31c/0x420 security/keys/keyctl.c:158
do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x456cb9
Code: fd b4 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 b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f81c0577c78 EFLAGS: 00000246 ORIG_RAX: 00000000000000f9
RAX: ffffffffffffffda RBX: 00007f81c05786d4 RCX: 0000000000456cb9
RDX: 0000000020000480 RSI: 0000000020000140 RDI: 0000000020000280
RBP: 00000000009300a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000004d2fe8 R14: 00000000004c7f0f R15: 0000000000000000
Modules linked in:
Dumping ftrace buffer:
(ftrace buffer empty)
---[ end trace ea1a94149ee85274 ]---
RIP: 0010:__key_link_begin+0x23a/0x300 security/keys/keyring.c:1214
Code: fe 48 c7 c7 60 e5 23 88 e8 23 03 47 fe eb ac e8 1c 55 65 fe 48 c7 c7
60 e5 23 88 e8 60 e5 93 03 e9 e3 fe ff ff e8 06 55 65 fe <0f> 0b e8 ff 54
65 fe 48 8d bb ce 00 00 00 48 b8 00 00 00 00 00 fc
RSP: 0018:ffff88019a6b7b10 EFLAGS: 00010212
RAX: 0000000000040000 RBX: ffff8801ac094ac0 RCX: ffffc90007668000
RDX: 000000000000062a RSI: ffffffff8316c34a RDI: 0000000000000007
RBP: ffff88019a6b7b40 R08: ffff880192c82040 R09: fffffbfff1047b8c
R10: fffffbfff1047b8c R11: ffffffff8823dc63 R12: ffff88019a6b7c48
R13: 0000000000000000 R14: ffff8801ac094340 R15: ffff8801ac094ac0
FS: 00007f81c0578700(0000) GS:ffff8801db000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff09247b9c CR3: 00000001bb15f000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
---
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#bug-status-tracking for how to communicate with
syzbot.