WARNING in drm_prime_destroy_file_private

5 views
Skip to first unread message

syzbot

unread,
Dec 23, 2020, 2:13:22 AM12/23/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3f2ecb86 Linux 4.14.212
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11c30e93500000
kernel config: https://syzkaller.appspot.com/x/.config?x=80549830ca6ffbb2
dashboard link: https://syzkaller.appspot.com/bug?extid=efcb3da669bcf6f29d06
compiler: gcc (GCC) 10.1.0-syz 20200507
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17675077500000

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

Bluetooth: hci0 command 0x041b tx timeout
Bluetooth: hci0 command 0x040f tx timeout
Bluetooth: hci0 command 0x0419 tx timeout
------------[ cut here ]------------
WARNING: CPU: 0 PID: 14628 at drivers/gpu/drm/drm_prime.c:898 drm_prime_destroy_file_private+0x3e/0x50 drivers/gpu/drm/drm_prime.c:898
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 14628 Comm: syz-executor.0 Not tainted 4.14.212-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x1b2/0x283 lib/dump_stack.c:58
panic+0x1f9/0x42d kernel/panic.c:183
__warn.cold+0x20/0x4b kernel/panic.c:547
report_bug+0x208/0x249 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:177 [inline]
fixup_bug arch/x86/kernel/traps.c:172 [inline]
do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:964
RIP: 0010:drm_prime_destroy_file_private+0x3e/0x50 drivers/gpu/drm/drm_prime.c:898
RSP: 0018:ffff8880afaffd60 EFLAGS: 00010297
RAX: ffff8880b058c680 RBX: ffff8880b3cd5938 RCX: 1ffff110160b19e5
RDX: 0000000000000000 RSI: ffff8880b058cf08 RDI: ffff8880b3cd59b8
RBP: ffffffff838852d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880b3cd56c0
R13: ffff8882384c0e80 R14: ffff8880b3cd5878 R15: ffff8880b3cd58a0
drm_release+0xaf9/0xfa0 drivers/gpu/drm/drm_file.c:427
__fput+0x25f/0x7a0 fs/file_table.c:210
task_work_run+0x11f/0x190 kernel/task_work.c:113
tracehook_notify_resume include/linux/tracehook.h:191 [inline]
exit_to_usermode_loop+0x1ad/0x200 arch/x86/entry/common.c:164
prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline]
syscall_return_slowpath arch/x86/entry/common.c:270 [inline]
do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x45e149
RSP: 002b:00007f7092411c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: 0000000000000000 RBX: 0000000000000003 RCX: 000000000045e149
RDX: 0000000020000140 RSI: 00000000c10c5541 RDI: 0000000000000003
RBP: 000000000119bfc0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119bf8c
R13: 00007ffe93e7747f R14: 00007f70924129c0 R15: 000000000119bf8c
Kernel Offset: disabled
Rebooting in 86400 seconds..


---
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 can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches

syzbot

unread,
Apr 29, 2022, 4:42:21 AM4/29/22
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: e3a56aaade89 Linux 4.14.277
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1294cd3cf00000
kernel config: https://syzkaller.appspot.com/x/.config?x=24efab1c7c06be56
dashboard link: https://syzkaller.appspot.com/bug?extid=efcb3da669bcf6f29d06
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1316939af00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10d10f58f00000

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

------------[ cut here ]------------
WARNING: CPU: 1 PID: 8453 at drivers/gpu/drm/drm_prime.c:898 drm_prime_destroy_file_private+0x3e/0x50 drivers/gpu/drm/drm_prime.c:898
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 8453 Comm: syz-executor167 Not tainted 4.14.277-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x1b2/0x281 lib/dump_stack.c:58
panic+0x1f9/0x42d kernel/panic.c:183
__warn.cold+0x20/0x44 kernel/panic.c:547
report_bug+0x208/0x250 lib/bug.c:183
fixup_bug arch/x86/kernel/traps.c:177 [inline]
fixup_bug arch/x86/kernel/traps.c:172 [inline]
do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:964
RIP: 0010:drm_prime_destroy_file_private+0x3e/0x50 drivers/gpu/drm/drm_prime.c:898
RSP: 0018:ffff888097f279a0 EFLAGS: 00010297
RAX: ffff888096a6e500 RBX: ffff8880988a3db8 RCX: 1ffff11012d4ddb5
RDX: 0000000000000000 RSI: ffff888096a6ed88 RDI: ffff8880988a3e38
RBP: ffffffff837e8380 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880988a3b40
R13: ffff88823851cdc0 R14: ffff8880988a3cf8 R15: ffff8880988a3d20
drm_release+0xaf9/0xfa0 drivers/gpu/drm/drm_file.c:427
__fput+0x25f/0x7a0 fs/file_table.c:210
task_work_run+0x11f/0x190 kernel/task_work.c:113
exit_task_work include/linux/task_work.h:22 [inline]
do_exit+0xa44/0x2850 kernel/exit.c:868
do_group_exit+0x100/0x2e0 kernel/exit.c:965
get_signal+0x38d/0x1ca0 kernel/signal.c:2412
do_signal+0x7c/0x1550 arch/x86/kernel/signal.c:792
exit_to_usermode_loop+0x160/0x200 arch/x86/entry/common.c:160
prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline]
syscall_return_slowpath arch/x86/entry/common.c:270 [inline]
do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7feab69a2129
RSP: 002b:00007feab692e2f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007feab6a25430 RCX: 00007feab69a2129
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007feab6a25438
RBP: 00007feab6a2543c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007feab69f3074
R13: 6972642f7665642f R14: 65732f636f72702f R15: 00007feab6a25438
Reply all
Reply to author
Forward
0 new messages