general protection fault in dma_buf_release

19 views
Skip to first unread message

syzbot

unread,
Jul 9, 2020, 7:36:22 PM7/9/20
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 43cb8834 ANDROID: GKI: update ABI due to power supply chan..
git tree: android-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=10844d8f100000
kernel config: https://syzkaller.appspot.com/x/.config?x=4feb8b178295857b
dashboard link: https://syzkaller.appspot.com/bug?extid=fb5a27655d329967477b
compiler: Android (6032204 based on r370808) clang version 10.0.1 (https://android.googlesource.com/toolchain/llvm-project 6e765c10313d15c02ab29977a82938f66742c3a9)

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+fb5a27...@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: 7540 Comm: syz-executor.1 Not tainted 5.4.51-syzkaller-00087-g43cb883475a5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:dma_buf_release+0x44/0x2f0 drivers/dma-buf/dma-buf.c:63
Code: fe 48 83 c3 78 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 4b 5c 08 ff 4c 8b 23 49 8d 5c 24 48 48 89 d8 48 c1 e8 03 <42> 8a 04 28 84 c0 0f 85 2b 02 00 00 8b 1b 31 ff 89 de e8 a5 31 da
RSP: 0018:ffff8881c5a377e0 EFLAGS: 00010206
RAX: 0000000000000009 RBX: 0000000000000048 RCX: 0000000000040000
RDX: ffffc90001628000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: dffffc0000000000 R08: ffffffff817b45ff R09: 0000000000000003
R10: ffffed1038b46ee5 R11: 0000000000000004 R12: 0000000000000000
R13: dffffc0000000000 R14: 1ffff11033191aee R15: 1ffff11033191b00
FS: 00007fa1d51fc700(0000) GS:ffff8881db800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000517180 CR3: 00000001d3a55001 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__dentry_kill+0x41b/0x5a0 fs/dcache.c:584
dentry_kill fs/dcache.c:673 [inline]
dput+0x2e1/0x5e0 fs/dcache.c:859
path_put+0x35/0x60 fs/namei.c:495
alloc_file_pseudo+0x2ac/0x340 fs/file_table.c:235
dma_buf_getfile drivers/dma-buf/dma-buf.c:441 [inline]
dma_buf_export+0x4c2/0x770 drivers/dma-buf/dma-buf.c:550
ion_dmabuf_alloc+0x199/0x230 drivers/staging/android/ion/ion_dma_buf.c:379
ion_alloc_fd drivers/staging/android/ion/ion.c:54 [inline]
ion_ioctl+0x2e8/0x9c0 drivers/staging/android/ion/ion.c:194
do_vfs_ioctl+0x770/0x1750 fs/ioctl.c:47
ksys_ioctl fs/ioctl.c:714 [inline]
__do_sys_ioctl fs/ioctl.c:721 [inline]
__se_sys_ioctl fs/ioctl.c:719 [inline]
__x64_sys_ioctl+0xd4/0x110 fs/ioctl.c:719
do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45cba9
Code: 8d b6 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 5b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fa1d51fbc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000004e78c0 RCX: 000000000045cba9
RDX: 0000000020000180 RSI: 00000000c0184900 RDI: 0000000000000003
RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000006
R13: 0000000000000379 R14: 00000000004c6236 R15: 00007fa1d51fc6d4
Modules linked in:
---[ end trace 353e9734704f5f2c ]---
RIP: 0010:dma_buf_release+0x44/0x2f0 drivers/dma-buf/dma-buf.c:63
Code: fe 48 83 c3 78 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 4b 5c 08 ff 4c 8b 23 49 8d 5c 24 48 48 89 d8 48 c1 e8 03 <42> 8a 04 28 84 c0 0f 85 2b 02 00 00 8b 1b 31 ff 89 de e8 a5 31 da
RSP: 0018:ffff8881c5a377e0 EFLAGS: 00010206
RAX: 0000000000000009 RBX: 0000000000000048 RCX: 0000000000040000
RDX: ffffc90001628000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: dffffc0000000000 R08: ffffffff817b45ff R09: 0000000000000003
R10: ffffed1038b46ee5 R11: 0000000000000004 R12: 0000000000000000
R13: dffffc0000000000 R14: 1ffff11033191aee R15: 1ffff11033191b00
FS: 00007fa1d51fc700(0000) GS:ffff8881db800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f554a375000 CR3: 00000001d3a55004 CR4: 00000000001606f0
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#status for how to communicate with syzbot.

syzbot

unread,
Jul 9, 2020, 7:47:23 PM7/9/20
to syzkaller-a...@googlegroups.com
syzbot has found a reproducer for the following crash on:

HEAD commit: 43cb8834 ANDROID: GKI: update ABI due to power supply chan..
git tree: android-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=138bd947100000
kernel config: https://syzkaller.appspot.com/x/.config?x=4feb8b178295857b
dashboard link: https://syzkaller.appspot.com/bug?extid=fb5a27655d329967477b
compiler: Android (6032204 based on r370808) clang version 10.0.1 (https://android.googlesource.com/toolchain/llvm-project 6e765c10313d15c02ab29977a82938f66742c3a9)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=109102fb100000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=117d3bb7100000

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

general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 422 Comm: syz-executor252 Not tainted 5.4.51-syzkaller-00087-g43cb883475a5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:dma_buf_release+0x44/0x2f0 drivers/dma-buf/dma-buf.c:63
Code: fe 48 83 c3 78 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 4b 5c 08 ff 4c 8b 23 49 8d 5c 24 48 48 89 d8 48 c1 e8 03 <42> 8a 04 28 84 c0 0f 85 2b 02 00 00 8b 1b 31 ff 89 de e8 a5 31 da
RSP: 0018:ffff8881cd7977e0 EFLAGS: 00010206
RAX: 0000000000000009 RBX: 0000000000000048 RCX: ffff8881cc395d00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8881d3d54880
RBP: dffffc0000000000 R08: ffffffff817b45ff R09: 0000000000000003
R10: ffffed1039af2ee5 R11: 0000000000000004 R12: 0000000000000000
R13: dffffc0000000000 R14: 1ffff1103a7aa910 R15: 1ffff1103a7aa922
FS: 00007fd527f4f700(0000) GS:ffff8881db900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd527fb1e78 CR3: 00000001ce341005 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__dentry_kill+0x41b/0x5a0 fs/dcache.c:584
dentry_kill fs/dcache.c:673 [inline]
dput+0x2e1/0x5e0 fs/dcache.c:859
path_put+0x35/0x60 fs/namei.c:495
alloc_file_pseudo+0x2ac/0x340 fs/file_table.c:235
dma_buf_getfile drivers/dma-buf/dma-buf.c:441 [inline]
dma_buf_export+0x4c2/0x770 drivers/dma-buf/dma-buf.c:550
ion_dmabuf_alloc+0x199/0x230 drivers/staging/android/ion/ion_dma_buf.c:379
ion_alloc_fd drivers/staging/android/ion/ion.c:54 [inline]
ion_ioctl+0x2e8/0x9c0 drivers/staging/android/ion/ion.c:194
do_vfs_ioctl+0x770/0x1750 fs/ioctl.c:47
ksys_ioctl fs/ioctl.c:714 [inline]
__do_sys_ioctl fs/ioctl.c:721 [inline]
__se_sys_ioctl fs/ioctl.c:719 [inline]
__x64_sys_ioctl+0xd4/0x110 fs/ioctl.c:719
do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x446929
Code: e8 0c e8 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 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 07 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fd527f4ed88 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000006dbc78 RCX: 0000000000446929
RDX: 0000000020000180 RSI: 00000000c0184900 RDI: 0000000000000007
RBP: 00000000006dbc70 R08: 0000000000000001 R09: 0000000000000038
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc7c
R13: 00007fd527f4ed90 R14: 0000000000000008 R15: 0000000000000001
Modules linked in:
---[ end trace 01009cb57b7b5fd5 ]---
RIP: 0010:dma_buf_release+0x44/0x2f0 drivers/dma-buf/dma-buf.c:63
Code: fe 48 83 c3 78 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 4b 5c 08 ff 4c 8b 23 49 8d 5c 24 48 48 89 d8 48 c1 e8 03 <42> 8a 04 28 84 c0 0f 85 2b 02 00 00 8b 1b 31 ff 89 de e8 a5 31 da
RSP: 0018:ffff8881cd7977e0 EFLAGS: 00010206
RAX: 0000000000000009 RBX: 0000000000000048 RCX: ffff8881cc395d00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8881d3d54880
RBP: dffffc0000000000 R08: ffffffff817b45ff R09: 0000000000000003
R10: ffffed1039af2ee5 R11: 0000000000000004 R12: 0000000000000000
R13: dffffc0000000000 R14: 1ffff1103a7aa910 R15: 1ffff1103a7aa922
FS: 00007fd527f4f700(0000) GS:ffff8881db800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000180 CR3: 00000001ce341004 CR4: 00000000001606f0

syzbot

unread,
Apr 16, 2023, 1:56:34 PM4/16/23
to syzkaller-a...@googlegroups.com
Auto-closing this bug as obsolete.
No recent activity, existing reproducers are no longer triggering the issue.
Reply all
Reply to author
Forward
0 new messages