general protection fault in sysfs_do_create_link_sd

10 views
Skip to first unread message

syzbot

unread,
Jun 30, 2019, 8:48:05 PM6/30/19
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: f4cc0ed9 Linux 4.14.131
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=15ce694da00000
kernel config: https://syzkaller.appspot.com/x/.config?x=ab1953b2cdac00f5
dashboard link: https://syzkaller.appspot.com/bug?extid=40fcbdf1b54a91ee4004
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+40fcbd...@syzkaller.appspotmail.com

RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f6924fb36d4
R13: 00000000004c2bc6 R14: 00000000004d5f30 R15: 0000000000000005
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: 0 PID: 10161 Comm: syz-executor.0 Not tainted 4.14.131 #25
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
task: ffff888097464480 task.stack: ffff88804d450000
RIP: 0010:sysfs_do_create_link_sd.isra.0+0x57/0x120 fs/sysfs/symlink.c:35
RSP: 0018:ffff88804d457b30 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000040 RCX: 00000000b505c7d3
RDX: 0000000000000008 RSI: ffff888097464d28 RDI: ffffffff87860ee4
RBP: ffff88804d457b58 R08: 000000000000296c R09: ffffffff88c8cfa0
R10: ffff888097464d28 R11: ffff888097464480 R12: ffffffff869bf5e0
R13: ffff888093c8c380 R14: ffff88809418c9a0 R15: 0000000000000001
FS: 00007f6924fb3700(0000) GS:ffff8880aee00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000289e978 CR3: 00000000a00bf000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
sysfs_do_create_link fs/sysfs/symlink.c:80 [inline]
sysfs_create_link+0x65/0xc0 fs/sysfs/symlink.c:92
device_add_disk+0xa3b/0xe30 block/genhd.c:688
add_disk include/linux/genhd.h:396 [inline]
loop_add+0x638/0x850 drivers/block/loop.c:1893
loop_control_ioctl+0x10c/0x2f0 drivers/block/loop.c:1990
vfs_ioctl fs/ioctl.c:46 [inline]
file_ioctl fs/ioctl.c:500 [inline]
do_vfs_ioctl+0x7ae/0x1060 fs/ioctl.c:684
SYSC_ioctl fs/ioctl.c:701 [inline]
SyS_ioctl+0x8f/0xc0 fs/ioctl.c:692
do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x459519
RSP: 002b:00007f6924fb2c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f6924fb2c90 RCX: 0000000000459519
RDX: 0000000000000000 RSI: 0000000000004c80 RDI: 0000000000000004
RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f6924fb36d4
R13: 00000000004c2bc6 R14: 00000000004d5f30 R15: 0000000000000005
Code: 4d 85 ed 0f 84 9e 00 00 00 e8 16 51 b2 ff 48 c7 c7 e0 0e 86 87 e8 ca
1b 70 04 48 89 da 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00
0f 85 a8 00 00 00 4c 8b 33 4d 85 f6 74 51 e8 e2 50
RIP: sysfs_do_create_link_sd.isra.0+0x57/0x120 fs/sysfs/symlink.c:35 RSP:
ffff88804d457b30
---[ end trace 7e4f7c8455a1af66 ]---


---
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,
Jun 30, 2019, 8:55:04 PM6/30/19
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following crash on:

HEAD commit: f4cc0ed9 Linux 4.14.131
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12a3b8f5a00000
kernel config: https://syzkaller.appspot.com/x/.config?x=ab1953b2cdac00f5
dashboard link: https://syzkaller.appspot.com/bug?extid=40fcbdf1b54a91ee4004
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15af8c2ba00000

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

R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000c16914
R13: 00000000004c2bc6 R14: 00000000004d5f30 R15: 0000000000000005
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: 7441 Comm: syz-executor.0 Not tainted 4.14.131 #25
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
task: ffff88808f83c700 task.stack: ffff8880971c8000
RIP: 0010:sysfs_do_create_link_sd.isra.0+0x57/0x120 fs/sysfs/symlink.c:35
RSP: 0018:ffff8880971cfb30 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000040 RCX: 0000000040baca70
RDX: 0000000000000008 RSI: ffff88808f83cfa8 RDI: ffffffff87860ee4
RBP: ffff8880971cfb58 R08: 000000000000499e R09: ffffffff88c9d130
R10: ffff88808f83cfa8 R11: ffff88808f83c700 R12: ffffffff869bf5e0
R13: ffff88809659e1c0 R14: ffff88808e9760a0 R15: 0000000000000001
FS: 0000000000c16940(0000) GS:ffff8880aef00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f50b6bee000 CR3: 000000009207b000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
sysfs_do_create_link fs/sysfs/symlink.c:80 [inline]
sysfs_create_link+0x65/0xc0 fs/sysfs/symlink.c:92
device_add_disk+0xa3b/0xe30 block/genhd.c:688
add_disk include/linux/genhd.h:396 [inline]
loop_add+0x638/0x850 drivers/block/loop.c:1893
loop_control_ioctl+0x10c/0x2f0 drivers/block/loop.c:1990
vfs_ioctl fs/ioctl.c:46 [inline]
file_ioctl fs/ioctl.c:500 [inline]
do_vfs_ioctl+0x7ae/0x1060 fs/ioctl.c:684
SYSC_ioctl fs/ioctl.c:701 [inline]
SyS_ioctl+0x8f/0xc0 fs/ioctl.c:692
do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x459519
RSP: 002b:00007ffc9cf987b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ffc9cf987d0 RCX: 0000000000459519
RDX: 0000000000000000 RSI: 0000000000004c80 RDI: 0000000000000004
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000c16914
R13: 00000000004c2bc6 R14: 00000000004d5f30 R15: 0000000000000005
Code: 4d 85 ed 0f 84 9e 00 00 00 e8 16 51 b2 ff 48 c7 c7 e0 0e 86 87 e8 ca
1b 70 04 48 89 da 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00
0f 85 a8 00 00 00 4c 8b 33 4d 85 f6 74 51 e8 e2 50
RIP: sysfs_do_create_link_sd.isra.0+0x57/0x120 fs/sysfs/symlink.c:35 RSP:
ffff8880971cfb30
---[ end trace d68d987d91e0255b ]---

syzbot

unread,
Aug 23, 2019, 7:14:07 PM8/23/19
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following crash on:

HEAD commit: 45f092f9 Linux 4.14.139
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12885f22600000
kernel config: https://syzkaller.appspot.com/x/.config?x=56ab4cf14cc8892d
dashboard link: https://syzkaller.appspot.com/bug?extid=40fcbdf1b54a91ee4004
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12f74dac600000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15aa25ac600000

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

R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
R13: 00007ffe34686fa0 R14: 0000000000000000 R15: 0000000000000000
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: 0 PID: 7425 Comm: syz-executor159 Not tainted 4.14.139 #35
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
task: ffff88809bd783c0 task.stack: ffff8880a8958000
RIP: 0010:sysfs_do_create_link_sd.isra.0+0x57/0x120 fs/sysfs/symlink.c:35
RSP: 0018:ffff8880a895fb30 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000040 RCX: 000000005cb43632
RDX: 0000000000000008 RSI: ffff88809bd78c68 RDI: ffffffff87861364
RBP: ffff8880a895fb58 R08: 0000000000005f42 R09: ffffffff88caee50
R10: ffff88809bd78c68 R11: ffff88809bd783c0 R12: ffffffff869bf720
R13: ffff8880a00aa620 R14: ffff888087801460 R15: 0000000000000001
FS: 0000000002589880(0000) GS:ffff8880aee00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe34686f5c CR3: 000000008c056000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
sysfs_do_create_link fs/sysfs/symlink.c:80 [inline]
sysfs_create_link+0x65/0xc0 fs/sysfs/symlink.c:92
device_add_disk+0xa3b/0xe30 block/genhd.c:688
add_disk include/linux/genhd.h:396 [inline]
loop_add+0x638/0x850 drivers/block/loop.c:1893
loop_control_ioctl+0x10c/0x2f0 drivers/block/loop.c:1990
vfs_ioctl fs/ioctl.c:46 [inline]
file_ioctl fs/ioctl.c:500 [inline]
do_vfs_ioctl+0x7ae/0x1060 fs/ioctl.c:684
SYSC_ioctl fs/ioctl.c:701 [inline]
SyS_ioctl+0x8f/0xc0 fs/ioctl.c:692
do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x443e09
RSP: 002b:00007ffe34686f48 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000443e09
RDX: 0000000000000000 RSI: 0000000000004c80 RDI: 0000000000000003
RBP: ffffffffffffffff R08: 0000000000000002 R09: 00000000004ab482
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
R13: 00007ffe34686fa0 R14: 0000000000000000 R15: 0000000000000000
Code: 4d 85 ed 0f 84 9e 00 00 00 e8 d6 43 b2 ff 48 c7 c7 60 13 86 87 e8 0a
66 71 04 48 89 da 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00
0f 85 a8 00 00 00 4c 8b 33 4d 85 f6 74 51 e8 a2 43
RIP: sysfs_do_create_link_sd.isra.0+0x57/0x120 fs/sysfs/symlink.c:35 RSP:
ffff8880a895fb30
---[ end trace 6290c60c3147e6ab ]---

Reply all
Reply to author
Forward
0 new messages