syzbot


WARNING in idr_destroy

Status: fixed on 2020/04/15 17:19
Subsystems: dri
[Documentation on labels]
Reported-by: syzbot+05835159fe322770fe3d@syzkaller.appspotmail.com
Fix commit: b216a8e7908c drm/lease: fix WARNING in idr_destroy
First crash: 1514d, last: 1499d
Cause bisection: introduced by (bisect log) :
commit 5b3709793d151e6e12eb6a38a5da3f7fc2923d3a
Author: Thomas Zimmermann <tzimmermann@suse.de>
Date: Wed May 8 08:26:19 2019 +0000

  drm/ast: Convert AST driver to |struct drm_gem_vram_object|

Crash: KASAN: null-ptr-deref Read in batadv_iv_send_outstanding_bat_ogm_packet (log)
Repro: C syz .config
  
Discussions (9)
Title Replies (including bot) Last reply
[PATCH AUTOSEL 5.5 01/28] thunderbolt: Fix error code in tb_port_is_width_supported() 33 (33) 2020/03/27 06:28
[PATCH AUTOSEL 4.19 01/15] drm/bridge: dw-hdmi: fix AVI frame colorimetry 15 (15) 2020/03/26 23:24
[PATCH AUTOSEL 5.4 01/19] drm/bridge: dw-hdmi: fix AVI frame colorimetry 19 (19) 2020/03/26 23:24
[PATCH 5.5 000/119] 5.5.12-rc1 review 126 (126) 2020/03/25 17:54
[PATCH 5.4 000/102] 5.4.28-rc1 review 106 (106) 2020/03/25 05:15
[PATCH 4.19 00/65] 4.19.113-rc1 review 70 (70) 2020/03/25 04:50
[PATCH v2] drm/lease: fix WARNING in idr_destroy 2 (2) 2020/03/18 13:38
WARNING in idr_destroy 4 (9) 2020/03/18 07:19
[PATCH] drm/lease: fix WARNING in idr_destroy 3 (3) 2020/03/17 22:29
Last patch testing requests (14)
Created Duration User Patch Repo Result
2020/03/18 02:18 17m anenbupt@gmail.com https://github.com/hqj/hqjagain_test.git idr_destroy OK
2020/03/17 04:27 17m anenbupt@gmail.com https://github.com/hqj/hqjagain_test.git idr_destroy OK
2020/03/15 23:05 17m anenbupt@gmail.com https://github.com/hqj/hqjagain_test.git idr_destroy OK
2020/03/15 10:10 17m anenbupt@gmail.com https://github.com/hqj/hqjagain_test.git idr_destroy OK
2020/03/15 07:37 9m anenbupt@gmail.com https://github.com/hqj/hqjagain_test.git drm report log
2020/03/15 03:01 10m anenbupt@gmail.com https://github.com/hqj/hqjagain_test.git drm report log
2020/03/15 01:39 9m anenbupt@gmail.com https://github.com/hqj/hqjagain_test.git drm report log
2020/03/15 00:45 9m anenbupt@gmail.com https://github.com/hqj/hqjagain_test.git drm report log
2020/03/15 00:12 10m anenbupt@gmail.com https://github.com/hqj/hqjagain_test.git drm report log
2020/03/14 16:00 9m anenbupt@gmail.com https://github.com/hqj/hqjagain_test.git drm report log
2020/03/14 14:06 9m anenbupt@gmail.com https://github.com/hqj/hqjagain_test.git drm report log
2020/03/14 10:37 10m anenbupt@gmail.com https://github.com/hqj/hqjagain_test.git drm report log
2020/03/14 05:49 9m anenbupt@gmail.com https://github.com/hqj/hqjagain_test.git drm report log
2020/03/14 02:09 9m anenbupt@gmail.com https://github.com/hqj/hqjagain_test.git drm report log

Sample crash report:
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc2c
R13: 00007fc6b3362d90 R14: 0000000000000004 R15: 000000000000002d
------------[ cut here ]------------
WARNING: CPU: 0 PID: 12260 at lib/radix-tree.c:682 radix_tree_free_nodes lib/radix-tree.c:682 [inline]
WARNING: CPU: 0 PID: 12260 at lib/radix-tree.c:682 idr_destroy+0x1ae/0x260 lib/radix-tree.c:1572
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 12260 Comm: syz-executor386 Not tainted 5.6.0-rc3-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+0x1fb/0x318 lib/dump_stack.c:118
 panic+0x264/0x7a9 kernel/panic.c:221
 __warn+0x209/0x210 kernel/panic.c:582
 report_bug+0x1b6/0x2f0 lib/bug.c:195
 fixup_bug arch/x86/kernel/traps.c:174 [inline]
 do_error_trap+0xcf/0x1c0 arch/x86/kernel/traps.c:267
 do_invalid_op+0x36/0x40 arch/x86/kernel/traps.c:286
 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1027
RIP: 0010:radix_tree_free_nodes lib/radix-tree.c:682 [inline]
RIP: 0010:idr_destroy+0x1ae/0x260 lib/radix-tree.c:1572
Code: b5 63 f9 48 89 df 48 c7 c6 c0 0a 13 88 e8 6a ce 50 f9 4c 3b 65 b8 74 57 e8 cf b5 63 f9 4d 89 fc e9 67 ff ff ff e8 c2 b5 63 f9 <0f> 0b eb d5 89 f9 80 e1 07 38 c1 7c 84 e8 c0 de a0 f9 e9 7a ff ff
RSP: 0018:ffffc90005107ba0 EFLAGS: 00010293
RAX: ffffffff881363be RBX: ffff888087dba998 RCX: ffff888094062300
RDX: 0000000000000000 RSI: 0000000000000040 RDI: ffff888087dba988
RBP: ffffc90005107be8 R08: ffffffff88136330 R09: ffffed1012a78181
R10: ffffed1012a78181 R11: 0000000000000000 R12: ffff888087dba980
R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000
 drm_mode_create_lease_ioctl+0x1347/0x1860 drivers/gpu/drm/drm_lease.c:583
 drm_ioctl_kernel+0x2cf/0x410 drivers/gpu/drm/drm_ioctl.c:786
 drm_ioctl+0x52f/0x890 drivers/gpu/drm/drm_ioctl.c:886
 vfs_ioctl fs/ioctl.c:47 [inline]
 ksys_ioctl fs/ioctl.c:763 [inline]
 __do_sys_ioctl fs/ioctl.c:772 [inline]
 __se_sys_ioctl+0x113/0x190 fs/ioctl.c:770
 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:770
 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x44a4b9
Code: e8 0c e8 ff ff 48 83 c4 18 c3 0f 1f 80 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 0f 83 9b cc fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fc6b3362d88 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000006dbc28 RCX: 000000000044a4b9
RDX: 0000000020000040 RSI: ffffffffffffffc6 RDI: 0000000000000003
RBP: 00000000006dbc20 R08: 0000000000000001 R09: 0000000000000039
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc2c
R13: 00007fc6b3362d90 R14: 0000000000000004 R15: 000000000000002d
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/03/03 07:48 upstream 63623fd44972 c88c7b75 .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/03/18 09:38 upstream ac309e7744be 97bc55ce .config console log report ci-upstream-kasan-gce-root
2020/03/18 09:25 upstream ac309e7744be 97bc55ce .config console log report ci-upstream-kasan-gce
2020/03/03 06:11 upstream 63623fd44972 c88c7b75 .config console log report ci-upstream-kasan-gce-smack-root
2020/03/08 07:01 linux-next 770fbb32d34e 2e9971bb .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.