syzbot


kernel BUG in dma_buf_release

Status: upstream: reported C repro on 2022/04/02 17:55
Reported-by: syzbot+8952d0e7b5cb7723f5fa@syzkaller.appspotmail.com
First crash: 981d, last: 810d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 kernel BUG at drivers/dma-buf/dma-buf.c:LINE! C inconclusive 9 859d 1742d 0/1 upstream: reported C repro on 2020/03/03 09:29
upstream kernel BUG at drivers/dma-buf/dma-buf.c:LINE! dri media syz error done 11 1488d 1737d 19/28 fixed on 2021/03/10 01:48
linux-4.19 kernel BUG at drivers/dma-buf/dma-buf.c:LINE! syz done 1 1231d 1714d 1/1 fixed on 2021/08/26 13:35

Sample crash report:
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: 8102 Comm: syz-executor205 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
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:ffff888095117df0 EFLAGS: 00010293
RAX: ffff888096f44200 RBX: 0000000000000004 RCX: ffffffff8406f6ec
RDX: 0000000000000000 RSI: ffffffff8406f945 RDI: 0000000000000005
RBP: ffff888099042940 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880b31fa3bc
R13: ffff8880b31fa368 R14: ffffffff8406f600 R15: ffff8880b5b84620
FS:  00005555572d0300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007efda30c0370 CR3: 00000000a4c1a000 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:0x7efda30a9693
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:00007ffd68ed3778 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007efda30a9693
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000003
RBP: 00007ffd68ed3788 R08: 0000000000000000 R09: 00007efda3158e40
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffd68ed3790
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace bdf1b5d6f7d236f8 ]---
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:ffff888095117df0 EFLAGS: 00010293
RAX: ffff888096f44200 RBX: 0000000000000004 RCX: ffffffff8406f6ec
RDX: 0000000000000000 RSI: ffffffff8406f945 RDI: 0000000000000005
RBP: ffff888099042940 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880b31fa3bc
R13: ffff8880b31fa368 R14: ffffffff8406f600 R15: ffff8880b5b84620
FS:  00005555572d0300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007efda30c0370 CR3: 00000000a4c1a000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/08/03 11:50 linux-4.19.y 3f8a27f9e27b 1c9013ac .config console log report syz C ci2-linux-4-19 kernel BUG in dma_buf_release
2022/04/02 18:24 linux-4.19.y 3f8a27f9e27b 79a2a8fc .config console log report syz C ci2-linux-4-19 kernel BUG in dma_buf_release
2022/09/21 09:11 linux-4.19.y 3f8a27f9e27b c4b8ccfd .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in dma_buf_release
2022/08/09 12:50 linux-4.19.y 3f8a27f9e27b da700653 .config console log report info ci2-linux-4-19 kernel BUG in dma_buf_release
2022/04/02 17:55 linux-4.19.y 3f8a27f9e27b 79a2a8fc .config console log report info ci2-linux-4-19 kernel BUG in dma_buf_release
* Struck through repros no longer work on HEAD.