linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* general protection fault in fuse_dev_do_write
@ 2018-10-02 10:55 syzbot
  2018-10-02 11:43 ` syzbot
  2018-10-02 11:44 ` Kirill Tkhai
  0 siblings, 2 replies; 7+ messages in thread
From: syzbot @ 2018-10-02 10:55 UTC (permalink / raw)
  To: linux-fsdevel, linux-kernel, miklos, syzkaller-bugs

Hello,

syzbot found the following crash on:

HEAD commit:    62f3d25900c9 Add linux-next specific files for 20181002
git tree:       linux-next
console output: https://syzkaller.appspot.com/x/log.txt?x=147d5eb9400000
kernel config:  https://syzkaller.appspot.com/x/.config?x=77a6dfae97d4b496
dashboard link: https://syzkaller.appspot.com/bug?extid=c1e36d30ee3416289cc0
compiler:       gcc (GCC) 8.0.1 20180413 (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+c1e36d30ee3416289cc0@syzkaller.appspotmail.com

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: 20304 Comm: syz-executor1 Not tainted 4.19.0-rc6-next-20181002+  
#85
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS  
Google 01/01/2011
RIP: 0010:fuse_retrieve fs/fuse/dev.c:1741 [inline]
RIP: 0010:fuse_notify_retrieve fs/fuse/dev.c:1801 [inline]
RIP: 0010:fuse_notify fs/fuse/dev.c:1834 [inline]
RIP: 0010:fuse_dev_do_write+0x1dc2/0x3810 fs/fuse/dev.c:1913
Code: 00 48 c1 e0 2a 80 3c 02 00 0f 85 dc 17 00 00 49 8b 9d 58 01 00 00 b8  
ff ff 37 00 48 c1 e0 2a 48 8d 7b 04 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48  
89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 82
RSP: 0018:ffff88019bd474b8 EFLAGS: 00010247
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90003e76000
RDX: 0000000000000000 RSI: ffffffff8287fbd3 RDI: 0000000000000004
RBP: ffff88019bd47a50 R08: ffff8801c0552500 R09: ffffed0039ae937e
R10: ffffed0039ae937e R11: ffff8801cd749bf3 R12: 0000000000000000
R13: ffff8801cd749bd0 R14: 0000000000000000 R15: 0000000000000030
FS:  00007f5740db7700(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000625208 CR3: 00000001c4109000 CR4: 00000000001406e0
Call Trace:
  fuse_dev_write+0x19a/0x240 fs/fuse/dev.c:1997
  call_write_iter include/linux/fs.h:1844 [inline]
  new_sync_write fs/read_write.c:474 [inline]
  __vfs_write+0x6b8/0x9f0 fs/read_write.c:487
  vfs_write+0x1fc/0x560 fs/read_write.c:549
  ksys_write+0x101/0x260 fs/read_write.c:598
  __do_sys_write fs/read_write.c:610 [inline]
  __se_sys_write fs/read_write.c:607 [inline]
  __x64_sys_write+0x73/0xb0 fs/read_write.c:607
  do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
  entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x457579
Code: 1d 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 eb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f5740db6c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457579
RDX: 0000000000000030 RSI: 0000000020000080 RDI: 0000000000000004
RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f5740db76d4
R13: 00000000004c50c5 R14: 00000000004d8718 R15: 00000000ffffffff
Modules linked in:
---[ end trace 8b37456f1c1100bc ]---
RIP: 0010:fuse_retrieve fs/fuse/dev.c:1741 [inline]
RIP: 0010:fuse_notify_retrieve fs/fuse/dev.c:1801 [inline]
RIP: 0010:fuse_notify fs/fuse/dev.c:1834 [inline]
RIP: 0010:fuse_dev_do_write+0x1dc2/0x3810 fs/fuse/dev.c:1913
Code: 00 48 c1 e0 2a 80 3c 02 00 0f 85 dc 17 00 00 49 8b 9d 58 01 00 00 b8  
ff ff 37 00 48 c1 e0 2a 48 8d 7b 04 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48  
89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 82
RSP: 0018:ffff88019bd474b8 EFLAGS: 00010247
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90003e76000
RDX: 0000000000000000 RSI: ffffffff8287fbd3 RDI: 0000000000000004
RBP: ffff88019bd47a50 R08: ffff8801c0552500 R09: ffffed0039ae937e
kobject: 'loop5' (0000000025425302): kobject_uevent_env
R10: ffffed0039ae937e R11: ffff8801cd749bf3 R12: 0000000000000000
kobject: 'loop5' (0000000025425302): fill_kobj_path: path  
= '/devices/virtual/block/loop5'
R13: ffff8801cd749bd0 R14: 0000000000000000 R15: 0000000000000030
FS:  00007f5740db7700(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
kobject: 'loop3' (000000006439d2fe): kobject_uevent_env
kobject: 'loop3' (000000006439d2fe): fill_kobj_path: path  
= '/devices/virtual/block/loop3'
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
kobject: 'loop5' (0000000025425302): kobject_uevent_env
kobject: 'loop5' (0000000025425302): fill_kobj_path: path  
= '/devices/virtual/block/loop5'
CR2: 0000001b2f541000 CR3: 00000001c4109000 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 syzkaller@googlegroups.com.

syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#bug-status-tracking for how to communicate with  
syzbot.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: general protection fault in fuse_dev_do_write
  2018-10-02 10:55 general protection fault in fuse_dev_do_write syzbot
@ 2018-10-02 11:43 ` syzbot
  2019-01-10 14:39   ` Miklos Szeredi
  2018-10-02 11:44 ` Kirill Tkhai
  1 sibling, 1 reply; 7+ messages in thread
From: syzbot @ 2018-10-02 11:43 UTC (permalink / raw)
  To: linux-fsdevel, linux-kernel, miklos, syzkaller-bugs

syzbot has found a reproducer for the following crash on:

HEAD commit:    62f3d25900c9 Add linux-next specific files for 20181002
git tree:       linux-next
console output: https://syzkaller.appspot.com/x/log.txt?x=16e2a94e400000
kernel config:  https://syzkaller.appspot.com/x/.config?x=77a6dfae97d4b496
dashboard link: https://syzkaller.appspot.com/bug?extid=c1e36d30ee3416289cc0
compiler:       gcc (GCC) 8.0.1 20180413 (experimental)
syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=10b46781400000
C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=13a54b81400000

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

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: 6059 Comm: syz-executor343 Not tainted  
4.19.0-rc6-next-20181002+ #85
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS  
Google 01/01/2011
RIP: 0010:fuse_retrieve fs/fuse/dev.c:1741 [inline]
RIP: 0010:fuse_notify_retrieve fs/fuse/dev.c:1801 [inline]
RIP: 0010:fuse_notify fs/fuse/dev.c:1834 [inline]
RIP: 0010:fuse_dev_do_write+0x1dc2/0x3810 fs/fuse/dev.c:1913
Code: 00 48 c1 e0 2a 80 3c 02 00 0f 85 dc 17 00 00 49 8b 9d 58 01 00 00 b8  
ff ff 37 00 48 c1 e0 2a 48 8d 7b 04 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48  
89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 82
RSP: 0018:ffff8801bb6ff4b8 EFLAGS: 00010247
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff8287fbc1
RDX: 0000000000000000 RSI: ffffffff8287fbd3 RDI: 0000000000000004
RBP: ffff8801bb6ffa50 R08: ffff8801bb5d4500 R09: ffffed003a915b7e
R10: ffffed003a915b7e R11: ffff8801d48adbf3 R12: 0000000000000000
R13: ffff8801d48adbd0 R14: 0000000000000000 R15: 0000000000000030
FS:  0000000002337880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000455080 CR3: 00000001d3b53000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
  fuse_dev_write+0x19a/0x240 fs/fuse/dev.c:1997
  call_write_iter include/linux/fs.h:1844 [inline]
  new_sync_write fs/read_write.c:474 [inline]
  __vfs_write+0x6b8/0x9f0 fs/read_write.c:487
  vfs_write+0x1fc/0x560 fs/read_write.c:549
  ksys_write+0x101/0x260 fs/read_write.c:598
  __do_sys_write fs/read_write.c:610 [inline]
  __se_sys_write fs/read_write.c:607 [inline]
  __x64_sys_write+0x73/0xb0 fs/read_write.c:607
  do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
  entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x440299
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 0f 83 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffef8f938a8 EFLAGS: 00000213 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440299
RDX: 0000000000000030 RSI: 0000000020000080 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8
R10: 00000000004002c8 R11: 0000000000000213 R12: 0000000000401b20
R13: 0000000000401bb0 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 6ca075609cbc5a19 ]---
RIP: 0010:fuse_retrieve fs/fuse/dev.c:1741 [inline]
RIP: 0010:fuse_notify_retrieve fs/fuse/dev.c:1801 [inline]
RIP: 0010:fuse_notify fs/fuse/dev.c:1834 [inline]
RIP: 0010:fuse_dev_do_write+0x1dc2/0x3810 fs/fuse/dev.c:1913
Code: 00 48 c1 e0 2a 80 3c 02 00 0f 85 dc 17 00 00 49 8b 9d 58 01 00 00 b8  
ff ff 37 00 48 c1 e0 2a 48 8d 7b 04 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48  
89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 82
RSP: 0018:ffff8801bb6ff4b8 EFLAGS: 00010247
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff8287fbc1
RDX: 0000000000000000 RSI: ffffffff8287fbd3 RDI: 0000000000000004
RBP: ffff8801bb6ffa50 R08: ffff8801bb5d4500 R09: ffffed003a915b7e
R10: ffffed003a915b7e R11: ffff8801d48adbf3 R12: 0000000000000000
R13: ffff8801d48adbd0 R14: 0000000000000000 R15: 0000000000000030
FS:  0000000002337880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000455080 CR3: 00000001d3b53000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: general protection fault in fuse_dev_do_write
  2018-10-02 10:55 general protection fault in fuse_dev_do_write syzbot
  2018-10-02 11:43 ` syzbot
@ 2018-10-02 11:44 ` Kirill Tkhai
  1 sibling, 0 replies; 7+ messages in thread
From: Kirill Tkhai @ 2018-10-02 11:44 UTC (permalink / raw)
  To: syzbot, linux-fsdevel, linux-kernel, miklos, syzkaller-bugs

On 02.10.2018 13:55, syzbot wrote:
> Hello,
> 
> syzbot found the following crash on:
> 
> HEAD commit:    62f3d25900c9 Add linux-next specific files for 20181002
> git tree:       linux-next
> console output: https://syzkaller.appspot.com/x/log.txt?x=147d5eb9400000
> kernel config:  https://syzkaller.appspot.com/x/.config?x=77a6dfae97d4b496
> dashboard link: https://syzkaller.appspot.com/bug?extid=c1e36d30ee3416289cc0
> compiler:       gcc (GCC) 8.0.1 20180413 (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+c1e36d30ee3416289cc0@syzkaller.appspotmail.com
> 
> 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: 20304 Comm: syz-executor1 Not tainted 4.19.0-rc6-next-20181002+ #85
> Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
> RIP: 0010:fuse_retrieve fs/fuse/dev.c:1741 [inline]

It looks like both num and offset are 0, so num_pages == 0 and req->page_descs == NULL.
Possible, we should ignore requests with such the parameters, but I'm not sure...

> RIP: 0010:fuse_notify_retrieve fs/fuse/dev.c:1801 [inline]
> RIP: 0010:fuse_notify fs/fuse/dev.c:1834 [inline]
> RIP: 0010:fuse_dev_do_write+0x1dc2/0x3810 fs/fuse/dev.c:1913
> Code: 00 48 c1 e0 2a 80 3c 02 00 0f 85 dc 17 00 00 49 8b 9d 58 01 00 00 b8 ff ff 37 00 48 c1 e0 2a 48 8d 7b 04 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 82
> RSP: 0018:ffff88019bd474b8 EFLAGS: 00010247
> RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90003e76000
> RDX: 0000000000000000 RSI: ffffffff8287fbd3 RDI: 0000000000000004
> RBP: ffff88019bd47a50 R08: ffff8801c0552500 R09: ffffed0039ae937e
> R10: ffffed0039ae937e R11: ffff8801cd749bf3 R12: 0000000000000000
> R13: ffff8801cd749bd0 R14: 0000000000000000 R15: 0000000000000030
> FS:  00007f5740db7700(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
> CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> CR2: 0000000000625208 CR3: 00000001c4109000 CR4: 00000000001406e0
> Call Trace:
>  fuse_dev_write+0x19a/0x240 fs/fuse/dev.c:1997
>  call_write_iter include/linux/fs.h:1844 [inline]
>  new_sync_write fs/read_write.c:474 [inline]
>  __vfs_write+0x6b8/0x9f0 fs/read_write.c:487
>  vfs_write+0x1fc/0x560 fs/read_write.c:549
>  ksys_write+0x101/0x260 fs/read_write.c:598
>  __do_sys_write fs/read_write.c:610 [inline]
>  __se_sys_write fs/read_write.c:607 [inline]
>  __x64_sys_write+0x73/0xb0 fs/read_write.c:607
>  do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
>  entry_SYSCALL_64_after_hwframe+0x49/0xbe
> RIP: 0033:0x457579
> Code: 1d 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 eb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
> RSP: 002b:00007f5740db6c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
> RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457579
> RDX: 0000000000000030 RSI: 0000000020000080 RDI: 0000000000000004
> RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000
> R10: 0000000000000000 R11: 0000000000000246 R12: 00007f5740db76d4
> R13: 00000000004c50c5 R14: 00000000004d8718 R15: 00000000ffffffff
> Modules linked in:
> ---[ end trace 8b37456f1c1100bc ]---
> RIP: 0010:fuse_retrieve fs/fuse/dev.c:1741 [inline]
> RIP: 0010:fuse_notify_retrieve fs/fuse/dev.c:1801 [inline]
> RIP: 0010:fuse_notify fs/fuse/dev.c:1834 [inline]
> RIP: 0010:fuse_dev_do_write+0x1dc2/0x3810 fs/fuse/dev.c:1913
> Code: 00 48 c1 e0 2a 80 3c 02 00 0f 85 dc 17 00 00 49 8b 9d 58 01 00 00 b8 ff ff 37 00 48 c1 e0 2a 48 8d 7b 04 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 82
> RSP: 0018:ffff88019bd474b8 EFLAGS: 00010247
> RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90003e76000
> RDX: 0000000000000000 RSI: ffffffff8287fbd3 RDI: 0000000000000004
> RBP: ffff88019bd47a50 R08: ffff8801c0552500 R09: ffffed0039ae937e
> kobject: 'loop5' (0000000025425302): kobject_uevent_env
> R10: ffffed0039ae937e R11: ffff8801cd749bf3 R12: 0000000000000000
> kobject: 'loop5' (0000000025425302): fill_kobj_path: path = '/devices/virtual/block/loop5'
> R13: ffff8801cd749bd0 R14: 0000000000000000 R15: 0000000000000030
> FS:  00007f5740db7700(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
> kobject: 'loop3' (000000006439d2fe): kobject_uevent_env
> kobject: 'loop3' (000000006439d2fe): fill_kobj_path: path = '/devices/virtual/block/loop3'
> CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> kobject: 'loop5' (0000000025425302): kobject_uevent_env
> kobject: 'loop5' (0000000025425302): fill_kobj_path: path = '/devices/virtual/block/loop5'
> CR2: 0000001b2f541000 CR3: 00000001c4109000 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 syzkaller@googlegroups.com.
> 
> syzbot will keep track of this bug report. See:
> https://goo.gl/tpsmEJ#bug-status-tracking for how to communicate with syzbot.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: general protection fault in fuse_dev_do_write
  2018-10-02 11:43 ` syzbot
@ 2019-01-10 14:39   ` Miklos Szeredi
  2019-01-10 14:39     ` Miklos Szeredi
  2019-01-10 14:52     ` syzbot
  0 siblings, 2 replies; 7+ messages in thread
From: Miklos Szeredi @ 2019-01-10 14:39 UTC (permalink / raw)
  To: syzbot; +Cc: linux-fsdevel, linux-kernel, syzkaller-bugs

#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git 9c6432f41365

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: general protection fault in fuse_dev_do_write
  2019-01-10 14:39   ` Miklos Szeredi
@ 2019-01-10 14:39     ` Miklos Szeredi
  2019-01-10 14:52     ` syzbot
  1 sibling, 0 replies; 7+ messages in thread
From: Miklos Szeredi @ 2019-01-10 14:39 UTC (permalink / raw)
  To: syzbot; +Cc: linux-fsdevel, linux-kernel, syzkaller-bugs

#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git 9c6432f41365

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: general protection fault in fuse_dev_do_write
  2019-01-10 14:39   ` Miklos Szeredi
  2019-01-10 14:39     ` Miklos Szeredi
@ 2019-01-10 14:52     ` syzbot
  2019-01-10 14:52       ` syzbot
  1 sibling, 1 reply; 7+ messages in thread
From: syzbot @ 2019-01-10 14:52 UTC (permalink / raw)
  To: linux-fsdevel, linux-kernel, miklos, syzkaller-bugs

Hello,

syzbot has tested the proposed patch but the reproducer still triggered  
crash:
general protection fault in fuse_dev_do_write

8021q: adding VLAN 0 to HW filter on device team0
8021q: adding VLAN 0 to HW filter on device team0
8021q: adding VLAN 0 to HW filter on device team0
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: 7047 Comm: syz-executor3 Not tainted 5.0.0-rc1+ #1
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS  
Google 01/01/2011
RIP: 0010:fuse_retrieve fs/fuse/dev.c:1769 [inline]
RIP: 0010:fuse_notify_retrieve fs/fuse/dev.c:1831 [inline]
RIP: 0010:fuse_notify fs/fuse/dev.c:1864 [inline]
RIP: 0010:fuse_dev_do_write+0x2040/0x3690 fs/fuse/dev.c:1944
Code: 00 48 c1 e0 2a 80 3c 02 00 0f 85 9b 15 00 00 49 8b 9e 58 01 00 00 b8  
ff ff 37 00 48 c1 e0 2a 48 8d 7b 04 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48  
89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 5d
kobject: 'loop4' (00000000b4b3d7a3): kobject_uevent_env
RSP: 0018:ffff8881ba16f6d0 EFLAGS: 00010247
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff828bbe06
RDX: 0000000000000000 RSI: ffffffff828bbe18 RDI: 0000000000000004
kobject: '0:45' (0000000085bf2112): kobject_add_internal: parent: 'bdi',  
set: 'devices'
RBP: ffff8881ba16faa8 R08: ffff8881cc1b8040 R09: ffffed1037b3837f
R10: ffffed1037b3837e R11: ffff8881bd9c1bf3 R12: 0000000000000000
R13: 0000000000000000 R14: ffff8881bd9c1bd0 R15: 0000000000000030
FS:  00007f3f82f69700(0000) GS:ffff8881dae00000(0000) knlGS:0000000000000000
kobject: 'loop4' (00000000b4b3d7a3): fill_kobj_path: path  
= '/devices/virtual/block/loop4'
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
kobject: '0:45' (0000000085bf2112): kobject_uevent_env
CR2: 00000000004dac7b CR3: 00000001c8a55000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
kobject: '0:45' (0000000085bf2112): fill_kobj_path: path  
= '/devices/virtual/bdi/0:45'
Call Trace:
kobject: '0:46' (00000000ccc2aed9): kobject_add_internal: parent: 'bdi',  
set: 'devices'
kobject: '0:46' (00000000ccc2aed9): kobject_uevent_env
kobject: '0:46' (00000000ccc2aed9): fill_kobj_path: path  
= '/devices/virtual/bdi/0:46'
kobject: 'loop5' (0000000005a3b0d2): kobject_uevent_env
kobject: 'loop5' (0000000005a3b0d2): fill_kobj_path: path  
= '/devices/virtual/block/loop5'
kobject: '0:47' (000000005bbd81cf): kobject_add_internal: parent: 'bdi',  
set: 'devices'
kobject: '0:47' (000000005bbd81cf): kobject_uevent_env
kobject: '0:47' (000000005bbd81cf): fill_kobj_path: path  
= '/devices/virtual/bdi/0:47'
  fuse_dev_write+0x191/0x240 fs/fuse/dev.c:2025
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
  call_write_iter include/linux/fs.h:1862 [inline]
  new_sync_write fs/read_write.c:474 [inline]
  __vfs_write+0x764/0xb40 fs/read_write.c:487
  vfs_write+0x20c/0x580 fs/read_write.c:549
  ksys_write+0x105/0x260 fs/read_write.c:598
  __do_sys_write fs/read_write.c:610 [inline]
  __se_sys_write fs/read_write.c:607 [inline]
  __x64_sys_write+0x73/0xb0 fs/read_write.c:607
  do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290
  entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x457579
Code: 1d 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 eb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f3f82f68c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457579
RDX: 0000000000000030 RSI: 0000000020000080 RDI: 0000000000000003
RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f3f82f696d4
R13: 00000000004c50c5 R14: 00000000004d8718 R15: 00000000ffffffff
Modules linked in:
general protection fault: 0000 [#2] PREEMPT SMP KASAN
CPU: 1 PID: 7077 Comm: syz-executor5 Tainted: G      D           5.0.0-rc1+  
#1
---[ end trace 66e9b609cb2a2e29 ]---
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS  
Google 01/01/2011
RIP: 0010:fuse_retrieve fs/fuse/dev.c:1769 [inline]
RIP: 0010:fuse_notify_retrieve fs/fuse/dev.c:1831 [inline]
RIP: 0010:fuse_notify fs/fuse/dev.c:1864 [inline]
RIP: 0010:fuse_dev_do_write+0x2040/0x3690 fs/fuse/dev.c:1944
Code: 00 48 c1 e0 2a 80 3c 02 00 0f 85 9b 15 00 00 49 8b 9e 58 01 00 00 b8  
ff ff 37 00 48 c1 e0 2a 48 8d 7b 04 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48  
89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 5d
RIP: 0010:fuse_retrieve fs/fuse/dev.c:1769 [inline]
RIP: 0010:fuse_notify_retrieve fs/fuse/dev.c:1831 [inline]
RIP: 0010:fuse_notify fs/fuse/dev.c:1864 [inline]
RIP: 0010:fuse_dev_do_write+0x2040/0x3690 fs/fuse/dev.c:1944
RSP: 0018:ffff8881b85876d0 EFLAGS: 00010247
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff828bbe06
RDX: 0000000000000000 RSI: ffffffff828bbe18 RDI: 0000000000000004
RBP: ffff8881b8587aa8 R08: ffff8881cb40c040 R09: ffffed103a778501
R10: ffffed103a778500 R11: ffff8881d3bc2803 R12: 0000000000000000
R13: 0000000000000000 R14: ffff8881d3bc27e0 R15: 0000000000000030
Code: 00 48 c1 e0 2a 80 3c 02 00 0f 85 9b 15 00 00 49 8b 9e 58 01 00 00 b8  
ff ff 37 00 48 c1 e0 2a 48 8d 7b 04 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48  
89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 5d
FS:  00007f5ec4d1b700(0000) GS:ffff8881daf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f79aba6e000 CR3: 00000001ba466000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
RSP: 0018:ffff8881ba16f6d0 EFLAGS: 00010247
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff828bbe06
RDX: 0000000000000000 RSI: ffffffff828bbe18 RDI: 0000000000000004
  fuse_dev_write+0x191/0x240 fs/fuse/dev.c:2025
  call_write_iter include/linux/fs.h:1862 [inline]
  new_sync_write fs/read_write.c:474 [inline]
  __vfs_write+0x764/0xb40 fs/read_write.c:487
RBP: ffff8881ba16faa8 R08: ffff8881cc1b8040 R09: ffffed1037b3837f
  vfs_write+0x20c/0x580 fs/read_write.c:549
  ksys_write+0x105/0x260 fs/read_write.c:598
  __do_sys_write fs/read_write.c:610 [inline]
  __se_sys_write fs/read_write.c:607 [inline]
  __x64_sys_write+0x73/0xb0 fs/read_write.c:607
R10: ffffed1037b3837e R11: ffff8881bd9c1bf3 R12: 0000000000000000
  do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290
  entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x457579
Code: 1d 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 eb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f5ec4d1ac78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457579
RDX: 0000000000000030 RSI: 0000000020000080 RDI: 0000000000000003
RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f5ec4d1b6d4
R13: 00000000004c50c5 R14: 00000000004d8718 R15: 00000000ffffffff
Modules linked in:
R13: 0000000000000000 R14: ffff8881bd9c1bd0 R15: 0000000000000030
---[ end trace 66e9b609cb2a2e2a ]---
FS:  00007f3f82f69700(0000) GS:ffff8881dae00000(0000) knlGS:0000000000000000
kobject: '0:46' (00000000ccc2aed9): kobject_uevent_env
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
kobject: 'loop2' (00000000da33663a): kobject_uevent_env
CR2: 00007f31375f41b0 CR3: 00000001c8a55000 CR4: 00000000001406f0
kobject: '0:46' (00000000ccc2aed9): fill_kobj_path: path  
= '/devices/virtual/bdi/0:46'
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
kobject: 'loop2' (00000000da33663a): fill_kobj_path: path  
= '/devices/virtual/block/loop2'
RIP: 0010:fuse_retrieve fs/fuse/dev.c:1769 [inline]
RIP: 0010:fuse_notify_retrieve fs/fuse/dev.c:1831 [inline]
RIP: 0010:fuse_notify fs/fuse/dev.c:1864 [inline]
RIP: 0010:fuse_dev_do_write+0x2040/0x3690 fs/fuse/dev.c:1944
kobject: '0:48' (00000000202d68fd): kobject_add_internal: parent: 'bdi',  
set: 'devices'
Code: 00 48 c1 e0 2a 80 3c 02 00 0f 85 9b 15 00 00 49 8b 9e 58 01 00 00 b8  
ff ff 37 00 48 c1 e0 2a 48 8d 7b 04 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48  
89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 5d
kobject: '0:48' (00000000202d68fd): kobject_uevent_env
RSP: 0018:ffff8881ba16f6d0 EFLAGS: 00010247
kobject: '0:46' (00000000ccc2aed9): kobject_cleanup, parent           (null)
kobject: '0:49' (000000005ce0ce9e): kobject_add_internal: parent: 'bdi',  
set: 'devices'
kobject: '0:48' (00000000202d68fd): fill_kobj_path: path  
= '/devices/virtual/bdi/0:48'
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
kobject: '0:46' (00000000ccc2aed9): calling ktype release
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff828bbe06
kobject: '0:46': free name
RDX: 0000000000000000 RSI: ffffffff828bbe18 RDI: 0000000000000004
kobject: 'loop1' (000000001048627e): kobject_uevent_env
kobject: '0:49' (000000005ce0ce9e): kobject_uevent_env
kobject: 'loop1' (000000001048627e): fill_kobj_path: path  
= '/devices/virtual/block/loop1'
kasan: CONFIG_KASAN_INLINE enabled
RBP: ffff8881ba16faa8 R08: ffff8881cc1b8040 R09: ffffed1037b3837f
kasan: GPF could be caused by NULL-ptr deref or user memory access


Tested on:

commit:         9c6432f41365 fuse: use atomic64_t for khctr
git tree:        
git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git
console output: https://syzkaller.appspot.com/x/log.txt?x=125205e8c00000
kernel config:  https://syzkaller.appspot.com/x/.config?x=3a1071b8d4184257
compiler:       gcc (GCC) 9.0.0 20181231 (experimental)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: general protection fault in fuse_dev_do_write
  2019-01-10 14:52     ` syzbot
@ 2019-01-10 14:52       ` syzbot
  0 siblings, 0 replies; 7+ messages in thread
From: syzbot @ 2019-01-10 14:52 UTC (permalink / raw)
  To: linux-fsdevel, linux-kernel, miklos, syzkaller-bugs

Hello,

syzbot has tested the proposed patch but the reproducer still triggered  
crash:
general protection fault in fuse_dev_do_write

8021q: adding VLAN 0 to HW filter on device team0
8021q: adding VLAN 0 to HW filter on device team0
8021q: adding VLAN 0 to HW filter on device team0
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: 7047 Comm: syz-executor3 Not tainted 5.0.0-rc1+ #1
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS  
Google 01/01/2011
RIP: 0010:fuse_retrieve fs/fuse/dev.c:1769 [inline]
RIP: 0010:fuse_notify_retrieve fs/fuse/dev.c:1831 [inline]
RIP: 0010:fuse_notify fs/fuse/dev.c:1864 [inline]
RIP: 0010:fuse_dev_do_write+0x2040/0x3690 fs/fuse/dev.c:1944
Code: 00 48 c1 e0 2a 80 3c 02 00 0f 85 9b 15 00 00 49 8b 9e 58 01 00 00 b8  
ff ff 37 00 48 c1 e0 2a 48 8d 7b 04 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48  
89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 5d
kobject: 'loop4' (00000000b4b3d7a3): kobject_uevent_env
RSP: 0018:ffff8881ba16f6d0 EFLAGS: 00010247
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff828bbe06
RDX: 0000000000000000 RSI: ffffffff828bbe18 RDI: 0000000000000004
kobject: '0:45' (0000000085bf2112): kobject_add_internal: parent: 'bdi',  
set: 'devices'
RBP: ffff8881ba16faa8 R08: ffff8881cc1b8040 R09: ffffed1037b3837f
R10: ffffed1037b3837e R11: ffff8881bd9c1bf3 R12: 0000000000000000
R13: 0000000000000000 R14: ffff8881bd9c1bd0 R15: 0000000000000030
FS:  00007f3f82f69700(0000) GS:ffff8881dae00000(0000) knlGS:0000000000000000
kobject: 'loop4' (00000000b4b3d7a3): fill_kobj_path: path  
= '/devices/virtual/block/loop4'
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
kobject: '0:45' (0000000085bf2112): kobject_uevent_env
CR2: 00000000004dac7b CR3: 00000001c8a55000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
kobject: '0:45' (0000000085bf2112): fill_kobj_path: path  
= '/devices/virtual/bdi/0:45'
Call Trace:
kobject: '0:46' (00000000ccc2aed9): kobject_add_internal: parent: 'bdi',  
set: 'devices'
kobject: '0:46' (00000000ccc2aed9): kobject_uevent_env
kobject: '0:46' (00000000ccc2aed9): fill_kobj_path: path  
= '/devices/virtual/bdi/0:46'
kobject: 'loop5' (0000000005a3b0d2): kobject_uevent_env
kobject: 'loop5' (0000000005a3b0d2): fill_kobj_path: path  
= '/devices/virtual/block/loop5'
kobject: '0:47' (000000005bbd81cf): kobject_add_internal: parent: 'bdi',  
set: 'devices'
kobject: '0:47' (000000005bbd81cf): kobject_uevent_env
kobject: '0:47' (000000005bbd81cf): fill_kobj_path: path  
= '/devices/virtual/bdi/0:47'
  fuse_dev_write+0x191/0x240 fs/fuse/dev.c:2025
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
  call_write_iter include/linux/fs.h:1862 [inline]
  new_sync_write fs/read_write.c:474 [inline]
  __vfs_write+0x764/0xb40 fs/read_write.c:487
  vfs_write+0x20c/0x580 fs/read_write.c:549
  ksys_write+0x105/0x260 fs/read_write.c:598
  __do_sys_write fs/read_write.c:610 [inline]
  __se_sys_write fs/read_write.c:607 [inline]
  __x64_sys_write+0x73/0xb0 fs/read_write.c:607
  do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290
  entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x457579
Code: 1d 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 eb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f3f82f68c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457579
RDX: 0000000000000030 RSI: 0000000020000080 RDI: 0000000000000003
RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f3f82f696d4
R13: 00000000004c50c5 R14: 00000000004d8718 R15: 00000000ffffffff
Modules linked in:
general protection fault: 0000 [#2] PREEMPT SMP KASAN
CPU: 1 PID: 7077 Comm: syz-executor5 Tainted: G      D           5.0.0-rc1+  
#1
---[ end trace 66e9b609cb2a2e29 ]---
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS  
Google 01/01/2011
RIP: 0010:fuse_retrieve fs/fuse/dev.c:1769 [inline]
RIP: 0010:fuse_notify_retrieve fs/fuse/dev.c:1831 [inline]
RIP: 0010:fuse_notify fs/fuse/dev.c:1864 [inline]
RIP: 0010:fuse_dev_do_write+0x2040/0x3690 fs/fuse/dev.c:1944
Code: 00 48 c1 e0 2a 80 3c 02 00 0f 85 9b 15 00 00 49 8b 9e 58 01 00 00 b8  
ff ff 37 00 48 c1 e0 2a 48 8d 7b 04 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48  
89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 5d
RIP: 0010:fuse_retrieve fs/fuse/dev.c:1769 [inline]
RIP: 0010:fuse_notify_retrieve fs/fuse/dev.c:1831 [inline]
RIP: 0010:fuse_notify fs/fuse/dev.c:1864 [inline]
RIP: 0010:fuse_dev_do_write+0x2040/0x3690 fs/fuse/dev.c:1944
RSP: 0018:ffff8881b85876d0 EFLAGS: 00010247
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff828bbe06
RDX: 0000000000000000 RSI: ffffffff828bbe18 RDI: 0000000000000004
RBP: ffff8881b8587aa8 R08: ffff8881cb40c040 R09: ffffed103a778501
R10: ffffed103a778500 R11: ffff8881d3bc2803 R12: 0000000000000000
R13: 0000000000000000 R14: ffff8881d3bc27e0 R15: 0000000000000030
Code: 00 48 c1 e0 2a 80 3c 02 00 0f 85 9b 15 00 00 49 8b 9e 58 01 00 00 b8  
ff ff 37 00 48 c1 e0 2a 48 8d 7b 04 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48  
89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 5d
FS:  00007f5ec4d1b700(0000) GS:ffff8881daf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f79aba6e000 CR3: 00000001ba466000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
RSP: 0018:ffff8881ba16f6d0 EFLAGS: 00010247
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff828bbe06
RDX: 0000000000000000 RSI: ffffffff828bbe18 RDI: 0000000000000004
  fuse_dev_write+0x191/0x240 fs/fuse/dev.c:2025
  call_write_iter include/linux/fs.h:1862 [inline]
  new_sync_write fs/read_write.c:474 [inline]
  __vfs_write+0x764/0xb40 fs/read_write.c:487
RBP: ffff8881ba16faa8 R08: ffff8881cc1b8040 R09: ffffed1037b3837f
  vfs_write+0x20c/0x580 fs/read_write.c:549
  ksys_write+0x105/0x260 fs/read_write.c:598
  __do_sys_write fs/read_write.c:610 [inline]
  __se_sys_write fs/read_write.c:607 [inline]
  __x64_sys_write+0x73/0xb0 fs/read_write.c:607
R10: ffffed1037b3837e R11: ffff8881bd9c1bf3 R12: 0000000000000000
  do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290
  entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x457579
Code: 1d 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 eb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f5ec4d1ac78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457579
RDX: 0000000000000030 RSI: 0000000020000080 RDI: 0000000000000003
RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f5ec4d1b6d4
R13: 00000000004c50c5 R14: 00000000004d8718 R15: 00000000ffffffff
Modules linked in:
R13: 0000000000000000 R14: ffff8881bd9c1bd0 R15: 0000000000000030
---[ end trace 66e9b609cb2a2e2a ]---
FS:  00007f3f82f69700(0000) GS:ffff8881dae00000(0000) knlGS:0000000000000000
kobject: '0:46' (00000000ccc2aed9): kobject_uevent_env
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
kobject: 'loop2' (00000000da33663a): kobject_uevent_env
CR2: 00007f31375f41b0 CR3: 00000001c8a55000 CR4: 00000000001406f0
kobject: '0:46' (00000000ccc2aed9): fill_kobj_path: path  
= '/devices/virtual/bdi/0:46'
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
kobject: 'loop2' (00000000da33663a): fill_kobj_path: path  
= '/devices/virtual/block/loop2'
RIP: 0010:fuse_retrieve fs/fuse/dev.c:1769 [inline]
RIP: 0010:fuse_notify_retrieve fs/fuse/dev.c:1831 [inline]
RIP: 0010:fuse_notify fs/fuse/dev.c:1864 [inline]
RIP: 0010:fuse_dev_do_write+0x2040/0x3690 fs/fuse/dev.c:1944
kobject: '0:48' (00000000202d68fd): kobject_add_internal: parent: 'bdi',  
set: 'devices'
Code: 00 48 c1 e0 2a 80 3c 02 00 0f 85 9b 15 00 00 49 8b 9e 58 01 00 00 b8  
ff ff 37 00 48 c1 e0 2a 48 8d 7b 04 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48  
89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 5d
kobject: '0:48' (00000000202d68fd): kobject_uevent_env
RSP: 0018:ffff8881ba16f6d0 EFLAGS: 00010247
kobject: '0:46' (00000000ccc2aed9): kobject_cleanup, parent           (null)
kobject: '0:49' (000000005ce0ce9e): kobject_add_internal: parent: 'bdi',  
set: 'devices'
kobject: '0:48' (00000000202d68fd): fill_kobj_path: path  
= '/devices/virtual/bdi/0:48'
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
kobject: '0:46' (00000000ccc2aed9): calling ktype release
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff828bbe06
kobject: '0:46': free name
RDX: 0000000000000000 RSI: ffffffff828bbe18 RDI: 0000000000000004
kobject: 'loop1' (000000001048627e): kobject_uevent_env
kobject: '0:49' (000000005ce0ce9e): kobject_uevent_env
kobject: 'loop1' (000000001048627e): fill_kobj_path: path  
= '/devices/virtual/block/loop1'
kasan: CONFIG_KASAN_INLINE enabled
RBP: ffff8881ba16faa8 R08: ffff8881cc1b8040 R09: ffffed1037b3837f
kasan: GPF could be caused by NULL-ptr deref or user memory access


Tested on:

commit:         9c6432f41365 fuse: use atomic64_t for khctr
git tree:        
git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git
console output: https://syzkaller.appspot.com/x/log.txt?x=125205e8c00000
kernel config:  https://syzkaller.appspot.com/x/.config?x=3a1071b8d4184257
compiler:       gcc (GCC) 9.0.0 20181231 (experimental)


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-01-10 14:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-02 10:55 general protection fault in fuse_dev_do_write syzbot
2018-10-02 11:43 ` syzbot
2019-01-10 14:39   ` Miklos Szeredi
2019-01-10 14:39     ` Miklos Szeredi
2019-01-10 14:52     ` syzbot
2019-01-10 14:52       ` syzbot
2018-10-02 11:44 ` Kirill Tkhai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).