syzbot


WARNING in drm_gem_object_handle_put_unlocked

Status: upstream: reported C repro on 2022/06/01 02:19
Reported-by: syzbot+a131cd2269228f91b652@syzkaller.appspotmail.com
First crash: 926d, last: 926d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in drm_gem_object_handle_put_unlocked dri C error 4 27d 454d 0/28 upstream: reported C repro on 2023/09/16 01:22
linux-4.14 WARNING in drm_gem_object_handle_put_unlocked C error 2 836d 928d 0/1 upstream: reported C repro on 2022/05/30 13:12

Sample crash report:
RDX: 0000000020000180 RSI: 00000000c02064b2 RDI: 0000000000000004
RBP: 00007f240acbb194 R08: 0000000000000001 R09: 0000000000000037
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f240acee4cc
R13: 00007f240ac172f0 R14: 00007f240acee4c8 R15: 0000000000000001
------------[ cut here ]------------
WARNING: CPU: 0 PID: 8119 at drivers/gpu/drm/drm_gem.c:228 drm_gem_object_handle_put_unlocked.cold+0x11/0x18 drivers/gpu/drm/drm_gem.c:228
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 8119 Comm: syz-executor183 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_gem_object_handle_put_unlocked.cold+0x11/0x18 drivers/gpu/drm/drm_gem.c:228
Code: ea e8 ff 57 64 f9 48 c7 c7 c0 2b c4 88 e8 5e 89 f5 ff 0f 0b e9 1a f6 d6 fb e8 e7 57 64 f9 48 c7 c7 c0 2b c4 88 e8 46 89 f5 ff <0f> 0b e9 21 f9 d6 fb e8 cf 57 64 f9 48 c7 c7 c0 2b c4 88 e8 2e 89
RSP: 0018:ffff8880938d7a30 EFLAGS: 00010282
RAX: 0000000000000024 RBX: ffff888238956a40 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed101271af38
RBP: ffff8880b3af5a00 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff888238956a40
R13: ffff8880b3af5a08 R14: 0000000000000000 R15: ffff8880b3af5a04
 drm_gem_handle_create_tail+0x2a2/0x310 drivers/gpu/drm/drm_gem.c:429
 vgem_gem_create drivers/gpu/drm/vgem/vgem_drv.c:191 [inline]
 vgem_gem_dumb_create+0x101/0x240 drivers/gpu/drm/vgem/vgem_drv.c:210
 drm_mode_create_dumb+0x27c/0x300 drivers/gpu/drm/drm_dumb_buffers.c:92
 drm_ioctl_kernel+0x208/0x2a0 drivers/gpu/drm/drm_ioctl.c:758
 drm_ioctl+0x5a0/0x9e0 drivers/gpu/drm/drm_ioctl.c:861
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:501 [inline]
 do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688
 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705
 __do_sys_ioctl fs/ioctl.c:712 [inline]
 __se_sys_ioctl fs/ioctl.c:710 [inline]
 __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f240ac6a2e9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f240ac172e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f240acee4c0 RCX: 00007f240ac6a2e9
RDX: 0000000020000180 RSI: 00000000c02064b2 RDI: 0000000000000004
RBP: 00007f240acbb194 R08: 0000000000000001 R09: 0000000000000037
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f240acee4cc
R13: 00007f240ac172f0 R14: 00007f240acee4c8 R15: 0000000000000001
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/06/01 02:19 linux-4.19.y 3f8a27f9e27b 3666edfe .config console log report syz C ci2-linux-4-19 WARNING in drm_gem_object_handle_put_unlocked
* Struck through repros no longer work on HEAD.