syzbot


kernel BUG at drivers/dma-buf/dma-buf.c:LINE!

Status: fixed on 2021/08/26 13:35
Reported-by: syzbot+ff5fdc7631dd7c04c65b@syzkaller.appspotmail.com
Fix commit: 020a44cc54d6 drm: Return -ENOTTY for non-drm ioctls
First crash: 1433d, last: 950d
Fix bisection: fixed by (bisect log) :
commit 020a44cc54d65e673a13195e96fc0addbfd3a601
Author: Charles Baylis <cb-kernel@fishzet.co.uk>
Date: Fri Jul 16 16:43:12 2021 +0000

  drm: Return -ENOTTY for non-drm ioctls

  
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG at drivers/dma-buf/dma-buf.c:LINE! media dri syz error done 11 1207d 1456d 19/26 fixed on 2021/03/10 01:48
linux-4.14 kernel BUG at drivers/dma-buf/dma-buf.c:LINE! C inconclusive 9 578d 1461d 0/1 upstream: reported C repro on 2020/03/03 09:29
linux-4.19 kernel BUG in dma_buf_release C error 5 529d 700d 0/1 upstream: reported C repro on 2022/04/02 17:55
Fix bisection attempts (17)
Created Duration User Patch Repo Result
2021/08/25 19:34 3h51m bisect fix linux-4.19.y job log (1)
2021/07/26 18:38 28m bisect fix linux-4.19.y job log (0) log
2021/06/26 18:07 31m bisect fix linux-4.19.y job log (0) log
2021/05/27 17:35 32m bisect fix linux-4.19.y job log (0) log
2021/04/27 14:10 28m bisect fix linux-4.19.y job log (0) log
2021/03/28 13:21 23m bisect fix linux-4.19.y job log (0) log
2021/02/26 12:35 23m bisect fix linux-4.19.y job log (0) log
2021/01/27 10:15 31m bisect fix linux-4.19.y job log (0) log
2020/12/28 01:05 26m bisect fix linux-4.19.y job log (0) log
2020/11/28 00:41 24m bisect fix linux-4.19.y job log (0) log
2020/10/29 00:17 24m bisect fix linux-4.19.y job log (0) log
2020/09/28 23:51 25m bisect fix linux-4.19.y job log (0) log
2020/08/29 11:31 26m bisect fix linux-4.19.y job log (0) log
2020/07/29 04:42 26m bisect fix linux-4.19.y job log (0) log
2020/06/29 04:18 23m bisect fix linux-4.19.y job log (0) log
2020/05/30 03:42 24m bisect fix linux-4.19.y job log (0) log
2020/04/30 01:19 27m bisect fix linux-4.19.y job log (0) log

Sample crash report:
IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready
audit: type=1400 audit(1585616012.898:41): avc:  denied  { associate } for  pid=8016 comm="syz-executor.0" name="syz0" scontext=unconfined_u:object_r:unlabeled_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=filesystem permissive=1
------------[ cut here ]------------
kernel BUG at drivers/dma-buf/dma-buf.c:68!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8051 Comm: syz-executor.0 Not tainted 4.19.113-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 af 63 49 fd 48 89 ef e8 f7 7b 88 fd e8 72 da 52 fd 44 89 e0 48 83 c4 10 5b 5d 41 5c 41 5d 41 5e 41 5f c3 e8 5b da 52 fd <0f> 0b e8 54 da 52 fd e8 ff 91 40 fd 48 8d bd 38 02 00 00 48 b8 00
RSP: 0018:ffff88807e84fdf8 EFLAGS: 00010293
RAX: ffff8880988de6c0 RBX: 0000000000000004 RCX: ffffffff8414c5ec
RDX: 0000000000000000 RSI: ffffffff8414c845 RDI: 0000000000000005
RBP: ffff8880980e8d80 R08: ffff8880988de6c0 R09: 0000000000000000
R10: ffff88807e84fe40 R11: 0000000000000000 R12: ffff888092eb13bc
R13: ffff888092eb1368 R14: ffffffff8414c500 R15: ffff88821b6b6820
FS:  0000000001555940(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff0b6590db8 CR3: 00000000a0188000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __fput+0x2cd/0x890 fs/file_table.c:278
 task_work_run+0x13f/0x1b0 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:193 [inline]
 exit_to_usermode_loop+0x25a/0x2b0 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:0x4163e1
Code: 75 14 b8 03 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 04 1b 00 00 c3 48 83 ec 08 e8 0a fc ff ff 48 89 04 24 b8 03 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 53 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01
RSP: 002b:00007ffd79643c40 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000008 RCX: 00000000004163e1
RDX: 0000000000000000 RSI: 0000000000000081 RDI: 0000000000000007
RBP: 0000000000000000 R08: 0000000000000000 R09: 01ffffffffffffff
R10: 00000000007708c0 R11: 0000000000000293 R12: 000000000076bf00
R13: 00000000007708d0 R14: 0000000000000000 R15: 000000000076bf0c
Modules linked in:
---[ end trace 5b687ef3a3f54b29 ]---
RIP: 0010:dma_buf_release+0x345/0x630 drivers/dma-buf/dma-buf.c:68
Code: e4 e8 af 63 49 fd 48 89 ef e8 f7 7b 88 fd e8 72 da 52 fd 44 89 e0 48 83 c4 10 5b 5d 41 5c 41 5d 41 5e 41 5f c3 e8 5b da 52 fd <0f> 0b e8 54 da 52 fd e8 ff 91 40 fd 48 8d bd 38 02 00 00 48 b8 00
RSP: 0018:ffff88807e84fdf8 EFLAGS: 00010293
RAX: ffff8880988de6c0 RBX: 0000000000000004 RCX: ffffffff8414c5ec
RDX: 0000000000000000 RSI: ffffffff8414c845 RDI: 0000000000000005
RBP: ffff8880980e8d80 R08: ffff8880988de6c0 R09: 0000000000000000
R10: ffff88807e84fe40 R11: 0000000000000000 R12: ffff888092eb13bc
R13: ffff888092eb1368 R14: ffffffff8414c500 R15: ffff88821b6b6820
FS:  0000000001555940(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff0b6590db8 CR3: 00000000a0188000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/03/31 00:56 linux-4.19.y 54b4fa6d3955 c8d1cc20 .config console log report syz ci2-linux-4-19
* Struck through repros no longer work on HEAD.