WARNING in drm_format_info

5 views
Skip to first unread message

syzbot

unread,
May 21, 2021, 8:08:20 AM5/21/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3c8c2309 Linux 4.19.190
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=154375d7d00000
kernel config: https://syzkaller.appspot.com/x/.config?x=d3c2572d41264a3d
dashboard link: https://syzkaller.appspot.com/bug?extid=34d6aecf920e1930bdc3

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+34d6ae...@syzkaller.appspotmail.com

------------[ cut here ]------------
WARNING: CPU: 0 PID: 26050 at drivers/gpu/drm/drm_fourcc.c:204 drm_format_info.part.0+0x11/0x14 drivers/gpu/drm/drm_fourcc.c:204
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 26050 Comm: syz-executor.3 Not tainted 4.19.190-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:186
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_format_info.part.0+0x11/0x14 drivers/gpu/drm/drm_fourcc.c:204
Code: fb e8 2e 7b 65 f9 48 c7 c7 e0 73 c4 88 e8 47 83 f5 ff 0f 0b e9 cd 5b d9 fb e8 16 7b 65 f9 48 c7 c7 c0 7b c4 88 e8 2f 83 f5 ff <0f> 0b c3 e8 02 7b 65 f9 45 31 e4 e8 df ff ff ff e9 0c 86 d9 fb e8
RSP: 0018:ffff8880b36ef990 EFLAGS: 00010282
RAX: 0000000000000024 RBX: 0000000000000044 RCX: 0000000000000000
RDX: 000000000000a1d0 RSI: ffffffff814dde61 RDI: ffffed10166ddf24
RBP: 0000000056555941 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000000
R13: 00000000b0334142 R14: dffffc0000000000 R15: ffff8880b36efc58
drm_format_info drivers/gpu/drm/drm_fourcc.c:204 [inline]
drm_get_format_info drivers/gpu/drm/drm_fourcc.c:228 [inline]
drm_get_format_info.cold+0xd/0x12 drivers/gpu/drm/drm_fourcc.c:219
framebuffer_check drivers/gpu/drm/drm_framebuffer.c:178 [inline]
drm_internal_framebuffer_create+0x32d/0xf00 drivers/gpu/drm/drm_framebuffer.c:303
drm_mode_addfb2+0x97/0x300 drivers/gpu/drm/drm_framebuffer.c:340
drm_ioctl_kernel+0x208/0x2a0 drivers/gpu/drm/drm_ioctl.c:757
drm_ioctl+0x507/0x9c0 drivers/gpu/drm/drm_ioctl.c:857
caif:caif_disconnect_client(): nothing to disconnect
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:0x4665d9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fc0d3879188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9
RDX: 0000000020000040 RSI: 00000000c06864b8 RDI: 0000000000000003
RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80
R13: 00007ffe36538fff R14: 00007fc0d3879300 R15: 0000000000022000
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,
May 21, 2021, 8:22:15 AM5/21/21
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 3c8c2309 Linux 4.19.190
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1390a7add00000
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10a20fc7d00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=140b2ed1d00000

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

------------[ cut here ]------------
WARNING: CPU: 1 PID: 8099 at drivers/gpu/drm/drm_fourcc.c:204 drm_format_info.part.0+0x11/0x14 drivers/gpu/drm/drm_fourcc.c:204
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 8099 Comm: syz-executor279 Not tainted 4.19.190-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:186
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_format_info.part.0+0x11/0x14 drivers/gpu/drm/drm_fourcc.c:204
Code: fb e8 2e 7b 65 f9 48 c7 c7 e0 73 c4 88 e8 47 83 f5 ff 0f 0b e9 cd 5b d9 fb e8 16 7b 65 f9 48 c7 c7 c0 7b c4 88 e8 2f 83 f5 ff <0f> 0b c3 e8 02 7b 65 f9 45 31 e4 e8 df ff ff ff e9 0c 86 d9 fb e8
RSP: 0018:ffff8880a56b7990 EFLAGS: 00010282
RAX: 0000000000000024 RBX: 0000000000000044 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dde61 RDI: ffffed1014ad6f24
RBP: 0000000056555941 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000000
R13: 00000000b0334142 R14: dffffc0000000000 R15: ffff8880a56b7c58
drm_format_info drivers/gpu/drm/drm_fourcc.c:204 [inline]
drm_get_format_info drivers/gpu/drm/drm_fourcc.c:228 [inline]
drm_get_format_info.cold+0xd/0x12 drivers/gpu/drm/drm_fourcc.c:219
framebuffer_check drivers/gpu/drm/drm_framebuffer.c:178 [inline]
drm_internal_framebuffer_create+0x32d/0xf00 drivers/gpu/drm/drm_framebuffer.c:303
drm_mode_addfb2+0x97/0x300 drivers/gpu/drm/drm_framebuffer.c:340
drm_ioctl_kernel+0x208/0x2a0 drivers/gpu/drm/drm_ioctl.c:757
drm_ioctl+0x507/0x9c0 drivers/gpu/drm/drm_ioctl.c:857
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:0x443539
Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 00 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffce0cf8508 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000004004a0 RCX: 0000000000443539
RDX: 0000000020000040 RSI: 00000000c06864b8 RDI: 0000000000000003
RBP: 00000000004030e0 R08: 0023647261632f69 R09: 00000000004004a0
R10: 000000000000001f R11: 0000000000000246 R12: 0000000000403170
R13: 0000000000000000 R14: 00000000004b1018 R15: 00000000004004a0
Reply all
Reply to author
Forward
0 new messages