WARNING in drm_prime_destroy_file_private (2)

6 views
Skip to first unread message

syzbot

unread,
Apr 29, 2022, 3:43:24 AM4/29/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=1708a926f00000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=bef218b44977b8287cc3
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+bef218...@syzkaller.appspotmail.com

netlink: 40 bytes leftover after parsing attributes in process `syz-executor.5'.
------------[ cut here ]------------
WARNING: CPU: 1 PID: 20610 at drivers/gpu/drm/drm_prime.c:982 drm_prime_destroy_file_private.cold+0x11/0x18 drivers/gpu/drm/drm_prime.c:982
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 20610 Comm: syz-executor.5 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
panic+0x26a/0x50e kernel/panic.c:186
__warn.cold+0x20/0x5a kernel/panic.c:541
report_bug+0x262/0x2b0 lib/bug.c:183
fixup_bug arch/x86/kernel/traps.c:178 [inline]
fixup_bug arch/x86/kernel/traps.c:173 [inline]
do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:drm_prime_destroy_file_private.cold+0x11/0x18 drivers/gpu/drm/drm_prime.c:982
Code: 64 f9 48 c7 c7 80 93 c5 88 e8 a7 81 f5 ff 0f 0b 41 83 cc ff e9 4e 97 da fb e8 2c 50 64 f9 48 c7 c7 80 93 c5 88 e8 8b 81 f5 ff <0f> 0b e9 7a a2 da fb e8 14 50 64 f9 48 c7 c7 60 95 c5 88 e8 73 81
RSP: 0018:ffff8880ae85fd58 EFLAGS: 00010282
RAX: 0000000000000024 RBX: ffff8880aadffb10 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed1015d0bf9d
RBP: ffffffff83e99a40 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880aedf8d80
R13: ffff8880aedf8fc0 R14: ffff8880aedf8fd0 R15: ffff8880aedf8fa8
drm_file_free.part.0+0xa15/0xd30 drivers/gpu/drm/drm_file.c:257
drm_file_free drivers/gpu/drm/drm_file.c:215 [inline]
drm_release+0x210/0x360 drivers/gpu/drm/drm_file.c:480
__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:0x7f5081c0fd2b
Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 63 fc ff ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 fc ff ff 8b 44
RSP: 002b:00007ffec9ee0220 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007f5081c0fd2b
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000003
RBP: 00007f5081d71960 R08: 0000000000000000 R09: 00007f5081d74db8
R10: 0000000000000000 R11: 0000000000000293 R12: 00000000000a4faf
R13: 00007ffec9ee0320 R14: 00007f5081d70100 R15: 0000000000000032
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

unread,
Apr 29, 2022, 4:11:31 AM4/29/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=1110d882f00000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=bef218b44977b8287cc3
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13669d02f00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=170f9e02f00000

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

------------[ cut here ]------------
WARNING: CPU: 0 PID: 9716 at drivers/gpu/drm/drm_prime.c:982 drm_prime_destroy_file_private.cold+0x11/0x18 drivers/gpu/drm/drm_prime.c:982
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 9716 Comm: syz-executor302 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
panic+0x26a/0x50e kernel/panic.c:186
__warn.cold+0x20/0x5a kernel/panic.c:541
report_bug+0x262/0x2b0 lib/bug.c:183
fixup_bug arch/x86/kernel/traps.c:178 [inline]
fixup_bug arch/x86/kernel/traps.c:173 [inline]
do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:drm_prime_destroy_file_private.cold+0x11/0x18 drivers/gpu/drm/drm_prime.c:982
Code: 64 f9 48 c7 c7 80 93 c5 88 e8 a7 81 f5 ff 0f 0b 41 83 cc ff e9 4e 97 da fb e8 2c 50 64 f9 48 c7 c7 80 93 c5 88 e8 8b 81 f5 ff <0f> 0b e9 7a a2 da fb e8 14 50 64 f9 48 c7 c7 60 95 c5 88 e8 73 81
RSP: 0018:ffff88809bdcf968 EFLAGS: 00010286
RAX: 0000000000000024 RBX: ffff8880aa605290 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed10137b9f1f
RBP: ffffffff83e99a40 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff888092b2cdc0
R13: ffff888092b2d000 R14: ffff888092b2d010 R15: ffff888092b2cfe8
drm_file_free.part.0+0xa15/0xd30 drivers/gpu/drm/drm_file.c:257
drm_file_free drivers/gpu/drm/drm_file.c:215 [inline]
drm_release+0x210/0x360 drivers/gpu/drm/drm_file.c:480
__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 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:0x7f37712ef129
Code: Bad RIP value.
RSP: 002b:00007f377127b2f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007f3771372430 RCX: 00007f37712ef129
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f3771372438
RBP: 00007f377137243c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f3771340074
R13: 6972642f7665642f R14: 65732f636f72702f R15: 00007f3771372438
Reply all
Reply to author
Forward
0 new messages