kernel BUG in dma_buf_release

5 views
Skip to first unread message

syzbot

unread,
Apr 2, 2022, 1:55:22 PM4/2/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12b71787700000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=8952d0e7b5cb7723f5fa
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

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

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

------------[ cut here ]------------
kernel BUG at drivers/dma-buf/dma-buf.c:68!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 17960 Comm: syz-executor.0 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:dma_buf_release+0x345/0x630 drivers/dma-buf/dma-buf.c:68
Code: e4 e8 9f 29 52 fd 48 89 ef e8 e7 3a 91 fd e8 42 8c 5b fd 44 89 e0 48 83 c4 10 5b 5d 41 5c 41 5d 41 5e 41 5f c3 e8 2b 8c 5b fd <0f> 0b e8 24 8c 5b fd e8 9f a4 49 fd 48 8d bd 38 02 00 00 48 b8 00
RSP: 0018:ffff888097217a08 EFLAGS: 00010293
RAX: ffff8880a55fa540 RBX: 0000000000000004 RCX: ffffffff8406f6ec
RDX: 0000000000000000 RSI: ffffffff8406f945 RDI: 0000000000000005
RBP: ffff8880949684c0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff888091383a7c
R13: ffff888091383a28 R14: ffffffff8406f600 R15: ffff8880b59c5820
FS: 00007fb319917700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f515b161923 CR3: 00000000a9d55000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__fput+0x2ce/0x890 fs/file_table.c:278
task_work_run+0x148/0x1c0 kernel/task_work.c:113
exit_task_work include/linux/task_work.h:22 [inline]
do_exit+0xbf3/0x2be0 kernel/exit.c:870
do_group_exit+0x125/0x310 kernel/exit.c:967
get_signal+0x3f2/0x1f70 kernel/signal.c:2589
do_signal+0x8f/0x1670 arch/x86/kernel/signal.c:799
exit_to_usermode_loop+0x204/0x2a0 arch/x86/entry/common.c:163
prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
syscall_return_slowpath+0x3f0/0x4a0 arch/x86/entry/common.c:271
ret_from_fork+0x15/0x30 arch/x86/entry/entry_64.S:407
RIP: 0033:0x7fb31afe5471
Code: Bad RIP value.
RSP: 002b:00007fb3199172f0 EFLAGS: 00000206 ORIG_RAX: 0000000000000038
RAX: 0000000000000000 RBX: 00007fb319917700 RCX: 00007fb31afe5471
RDX: 00007fb3199179d0 RSI: 00007fb3199172f0 RDI: 00000000003d0f00
RBP: 00007ffc01babec0 R08: 00007fb319917700 R09: 00007fb319917700
R10: 00007fb3199179d0 R11: 0000000000000206 R12: 00007ffc01babd2e
R13: 00007ffc01babd2f R14: 00007fb319917300 R15: 0000000000022000
Modules linked in:
---[ end trace 0b8ea020afed8ba7 ]---
RIP: 0010:dma_buf_release+0x345/0x630 drivers/dma-buf/dma-buf.c:68
Code: e4 e8 9f 29 52 fd 48 89 ef e8 e7 3a 91 fd e8 42 8c 5b fd 44 89 e0 48 83 c4 10 5b 5d 41 5c 41 5d 41 5e 41 5f c3 e8 2b 8c 5b fd <0f> 0b e8 24 8c 5b fd e8 9f a4 49 fd 48 8d bd 38 02 00 00 48 b8 00
RSP: 0018:ffff888097217a08 EFLAGS: 00010293
RAX: ffff8880a55fa540 RBX: 0000000000000004 RCX: ffffffff8406f6ec
RDX: 0000000000000000 RSI: ffffffff8406f945 RDI: 0000000000000005
RBP: ffff8880949684c0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff888091383a7c
R13: ffff888091383a28 R14: ffffffff8406f600 R15: ffff8880b59c5820
FS: 00007fb319917700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c0272db000 CR3: 000000008f9ae000 CR4: 00000000003426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


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

syzbot

unread,
Apr 2, 2022, 2:25:20 PM4/2/22
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12663727700000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=8952d0e7b5cb7723f5fa
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=122d9f9b700000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11c6415b700000

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

IPVS: ftp: loaded support on port[0] = 21
------------[ cut here ]------------
kernel BUG at drivers/dma-buf/dma-buf.c:68!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8105 Comm: syz-executor297 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:dma_buf_release+0x345/0x630 drivers/dma-buf/dma-buf.c:68
Code: e4 e8 9f 29 52 fd 48 89 ef e8 e7 3a 91 fd e8 42 8c 5b fd 44 89 e0 48 83 c4 10 5b 5d 41 5c 41 5d 41 5e 41 5f c3 e8 2b 8c 5b fd <0f> 0b e8 24 8c 5b fd e8 9f a4 49 fd 48 8d bd 38 02 00 00 48 b8 00
RSP: 0018:ffff888095287df0 EFLAGS: 00010293
RAX: ffff8880b148e280 RBX: 0000000000000004 RCX: ffffffff8406f6ec
RDX: 0000000000000000 RSI: ffffffff8406f945 RDI: 0000000000000005
RBP: ffff8880b258d6c0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880b40cbafc
R13: ffff8880b40cbaa8 R14: ffffffff8406f600 R15: ffff8880b5b84820
FS: 0000555556532300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f43ac2cc6c0 CR3: 00000000aa8f0000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__fput+0x2ce/0x890 fs/file_table.c:278
task_work_run+0x148/0x1c0 kernel/task_work.c:113
tracehook_notify_resume include/linux/tracehook.h:193 [inline]
exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167
prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f509e1105a3
Code: c7 c2 c0 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb ba 0f 1f 00 64 8b 04 25 18 00 00 00 85 c0 75 14 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8
RSP: 002b:00007ffc7505af08 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007f509e1105a3
RDX: 0000000020000000 RSI: 00000000c00464b4 RDI: 0000000000000003
RBP: 00007ffc7505af18 R08: 00007f509e1bfe40 R09: 00007f509e1bfe40
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffc7505af20
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 51a4d24e0ad6d90f ]---
RIP: 0010:dma_buf_release+0x345/0x630 drivers/dma-buf/dma-buf.c:68
Code: e4 e8 9f 29 52 fd 48 89 ef e8 e7 3a 91 fd e8 42 8c 5b fd 44 89 e0 48 83 c4 10 5b 5d 41 5c 41 5d 41 5e 41 5f c3 e8 2b 8c 5b fd <0f> 0b e8 24 8c 5b fd e8 9f a4 49 fd 48 8d bd 38 02 00 00 48 b8 00
RSP: 0018:ffff888095287df0 EFLAGS: 00010293
RAX: ffff8880b148e280 RBX: 0000000000000004 RCX: ffffffff8406f6ec
RDX: 0000000000000000 RSI: ffffffff8406f945 RDI: 0000000000000005
RBP: ffff8880b258d6c0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880b40cbafc
R13: ffff8880b40cbaa8 R14: ffffffff8406f600 R15: ffff8880b5b84820
FS: 0000555556532300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f43ac2cc6c0 CR3: 00000000aa8f0000 CR4: 00000000003406f0
Reply all
Reply to author
Forward
0 new messages