syzbot


INFO: trying to register non-static key in __flush_work

Status: fixed on 2019/03/28 12:00
Subsystems: dri
[Documentation on labels]
Reported-by: syzbot+12f1b031b6da017e34f8@syzkaller.appspotmail.com
Fix commit: b30b61ff6b1d drm/vkms: Fix flush_work() without INIT_WORK().
First crash: 2180d, last: 2107d
Discussions (5)
Title Replies (including bot) Last reply
[PATCH AUTOSEL 5.0 001/262] CIFS: fix POSIX lock leak and invalid ptr deref 284 (284) 2019/04/04 13:22
[PATCH 5.0 00/52] 5.0.5-stable review 61 (61) 2019/03/27 05:06
INFO: trying to register non-static key in __flush_work 3 (4) 2019/02/25 19:20
[PATCH] drm/vkms: Fix flush_work() without INIT_WORK(). 4 (4) 2019/01/25 16:07
[PATCH] workqueue: Try to catch flush_work() without INIT_WORK(). 7 (7) 2019/01/25 15:31

Sample crash report:
audit: type=1800 audit(1551058447.820:33): pid=7672 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="startpar" name="rc.local" dev="sda1" ino=2432 res=0
kauditd_printk_skb: 2 callbacks suppressed
audit: type=1400 audit(1551058455.750:36): avc:  denied  { map } for  pid=7861 comm="syz-executor144" path="/root/syz-executor144129638" dev="sda1" ino=16483 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
INFO: trying to register non-static key.
the code is fine but needs lockdep annotation.
turning off the locking correctness validator.
CPU: 1 PID: 7861 Comm: syz-executor144 Not tainted 5.0.0-rc7+ #86
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+0x172/0x1f0 lib/dump_stack.c:113
 assign_lock_key kernel/locking/lockdep.c:731 [inline]
 register_lock_class+0x1bdc/0x1bf0 kernel/locking/lockdep.c:757
 __lock_acquire+0x11f/0x4700 kernel/locking/lockdep.c:3224
 lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:3841
 __flush_work+0x640/0x840 kernel/workqueue.c:2935
 flush_work+0x18/0x20 kernel/workqueue.c:2961
 vkms_atomic_crtc_destroy_state drivers/gpu/drm/vkms/vkms_crtc.c:133 [inline]
 vkms_atomic_crtc_destroy_state+0x2d/0x40 drivers/gpu/drm/vkms/vkms_crtc.c:125
 drm_atomic_state_default_clear+0x37c/0xd60 drivers/gpu/drm/drm_atomic.c:171
 drm_atomic_state_clear+0x9d/0xc0 drivers/gpu/drm/drm_atomic.c:240
 __drm_atomic_state_free+0x3c/0xf0 drivers/gpu/drm/drm_atomic.c:256
 kref_put include/linux/kref.h:67 [inline]
 drm_atomic_state_put include/drm/drm_atomic.h:385 [inline]
 drm_atomic_helper_set_config+0xe5/0x160 drivers/gpu/drm/drm_atomic_helper.c:2947
 drm_mode_setcrtc+0x613/0x1490 drivers/gpu/drm/drm_crtc.c:748
 drm_ioctl_kernel+0x23b/0x2e0 drivers/gpu/drm/drm_ioctl.c:758
 drm_ioctl+0x545/0xa50 drivers/gpu/drm/drm_ioctl.c:858
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:509 [inline]
 do_vfs_ioctl+0xd6e/0x1390 fs/ioctl.c:696
 ksys_ioctl+0xab/0xd0 fs/ioctl.c:713
 __do_sys_ioctl fs/ioctl.c:720 [inline]
 __se_sys_ioctl fs/ioctl.c:718 [inline]
 __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:718
 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x443de9
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 7b d8 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffed95d76b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 0000000000443de9
RDX: 0000000020000180 RSI: 00000000c06864a2 RDI: 0000000000000003
RBP: 00000000006ce018

Crashes (5255):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/02/25 01:36 upstream c3619a482e15 7a06e792 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2019/02/24 20:17 upstream c3619a482e15 7a06e792 .config console log report syz C ci-upstream-kasan-gce-root
2019/02/24 18:27 upstream e60b5f79bd75 7a06e792 .config console log report syz C ci-upstream-kasan-gce
2019/02/24 17:38 upstream e60b5f79bd75 7a06e792 .config console log report syz C ci-upstream-kasan-gce-smack-root
2019/02/15 10:10 upstream cb5b020a8d38 76dd003f .config console log report syz C ci-upstream-kasan-gce
2019/02/15 09:51 upstream cb5b020a8d38 76dd003f .config console log report syz C ci-upstream-kasan-gce-selinux-root
2019/02/10 01:57 upstream e8b50608f666 d75f7686 .config console log report syz C ci-upstream-kasan-gce-smack-root
2019/02/10 01:06 upstream e8b50608f666 d75f7686 .config console log report syz C ci-upstream-kasan-gce-root
2019/02/10 00:14 upstream e8b50608f666 d75f7686 .config console log report syz C ci-upstream-kasan-gce
2019/02/10 00:01 upstream e8b50608f666 d75f7686 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2019/01/31 13:05 upstream af0c9af1b3f6 aa432daf .config console log report syz C ci-upstream-kasan-gce-root
2019/01/31 11:31 upstream af0c9af1b3f6 aa432daf .config console log report syz C ci-upstream-kasan-gce-selinux-root
2019/01/31 10:46 upstream af0c9af1b3f6 aa432daf .config console log report syz C ci-upstream-kasan-gce
2019/01/31 10:05 upstream af0c9af1b3f6 aa432daf .config console log report syz C ci-upstream-kasan-gce-smack-root
2019/01/07 05:02 upstream 574823bfab82 ee332608 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2019/01/07 02:18 upstream 574823bfab82 ee332608 .config console log report syz C ci-upstream-kasan-gce-root
2019/01/07 02:18 upstream 574823bfab82 ee332608 .config console log report syz C ci-upstream-kasan-gce-smack-root
2019/01/07 02:17 upstream 574823bfab82 ee332608 .config console log report syz C ci-upstream-kasan-gce
2018/12/26 16:03 upstream 5694cecdb092 8a41a0ad .config console log report syz C ci-upstream-kasan-gce-root
2018/12/26 12:59 upstream d8924c0d76aa 8a41a0ad .config console log report syz C ci-upstream-kasan-gce-smack-root
2019/01/07 00:58 linux-next a4983672f9ca ee332608 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/12/25 09:33 linux-next 6a1d293238c1 8a41a0ad .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/03/07 19:39 upstream f90d64483ebd 8c085c5e .config console log report ci-upstream-kasan-gce-smack-root
2019/03/07 18:28 upstream f90d64483ebd 8c085c5e .config console log report ci-upstream-kasan-gce-smack-root
2019/03/07 17:04 upstream f90d64483ebd 8c085c5e .config console log report ci-upstream-kasan-gce-smack-root
2019/03/07 15:12 upstream f90d64483ebd 8c085c5e .config console log report ci-upstream-kasan-gce
2019/03/07 14:11 upstream f90d64483ebd 8c085c5e .config console log report ci-upstream-kasan-gce-smack-root
2019/03/07 12:37 upstream f90d64483ebd 8c085c5e .config console log report ci-upstream-kasan-gce
2019/03/07 11:15 upstream f90d64483ebd 8c085c5e .config console log report ci-upstream-kasan-gce-smack-root
2019/03/07 10:14 upstream f90d64483ebd 8c085c5e .config console log report ci-upstream-kasan-gce-smack-root
2019/03/07 08:30 upstream afe6fe7036c6 18215b8d .config console log report ci-upstream-kasan-gce
2019/03/07 07:01 upstream afe6fe7036c6 18215b8d .config console log report ci-upstream-kasan-gce
2019/03/07 05:46 upstream afe6fe7036c6 18215b8d .config console log report ci-upstream-kasan-gce-smack-root
2019/03/07 04:23 upstream afe6fe7036c6 18215b8d .config console log report ci-upstream-kasan-gce
2019/03/07 01:28 upstream afe6fe7036c6 18215b8d .config console log report ci-upstream-kasan-gce
2019/03/06 23:17 upstream afe6fe7036c6 18215b8d .config console log report ci-upstream-kasan-gce-smack-root
2019/03/06 22:59 upstream afe6fe7036c6 18215b8d .config console log report ci-upstream-kasan-gce-smack-root
2019/03/06 21:54 upstream afe6fe7036c6 18215b8d .config console log report ci-upstream-kasan-gce
2019/03/06 19:53 upstream 3717f613f48d 05cf83bf .config console log report ci-upstream-kasan-gce
2019/03/06 18:34 upstream 3717f613f48d 05cf83bf .config console log report ci-upstream-kasan-gce-smack-root
2019/03/06 17:28 upstream 3717f613f48d 05cf83bf .config console log report ci-upstream-kasan-gce-selinux-root
2019/03/06 16:34 upstream 3717f613f48d 05cf83bf .config console log report ci-upstream-kasan-gce-smack-root
2019/03/06 15:30 upstream 3717f613f48d 05cf83bf .config console log report ci-upstream-kasan-gce
2019/03/06 14:14 upstream 3717f613f48d 05cf83bf .config console log report ci-upstream-kasan-gce-smack-root
2019/03/06 13:05 upstream 3717f613f48d 05cf83bf .config console log report ci-upstream-kasan-gce-smack-root
2019/03/06 09:54 upstream 3717f613f48d 05cf83bf .config console log report ci-upstream-kasan-gce-selinux-root
2019/03/06 09:27 upstream 3717f613f48d 05cf83bf .config console log report ci-upstream-kasan-gce-smack-root
2019/03/06 08:22 upstream 3717f613f48d 05cf83bf .config console log report ci-upstream-kasan-gce
2019/03/06 07:19 upstream 63bdf4284c38 16559f86 .config console log report ci-upstream-kasan-gce-smack-root
2019/03/06 06:50 upstream 63bdf4284c38 16559f86 .config console log report ci-upstream-kasan-gce
2019/03/06 05:37 upstream 63bdf4284c38 16559f86 .config console log report ci-upstream-kasan-gce-smack-root
2019/03/06 04:13 upstream 63bdf4284c38 16559f86 .config console log report ci-upstream-kasan-gce
2019/03/06 03:03 upstream 63bdf4284c38 16559f86 .config console log report ci-upstream-kasan-gce
2019/03/06 01:41 upstream 63bdf4284c38 16559f86 .config console log report ci-upstream-kasan-gce
2019/03/05 21:55 upstream 63bdf4284c38 16559f86 .config console log report ci-upstream-kasan-gce-smack-root
2019/03/05 21:54 upstream 63bdf4284c38 16559f86 .config console log report ci-upstream-kasan-gce-root
2019/03/05 19:51 upstream 63bdf4284c38 16559f86 .config console log report ci-upstream-kasan-gce-smack-root
2019/03/05 18:44 upstream 63bdf4284c38 16559f86 .config console log report ci-upstream-kasan-gce-smack-root
2019/03/05 17:44 upstream cd2a3bf02625 bb91cf81 .config console log report ci-upstream-kasan-gce-root
2019/03/05 16:17 upstream cd2a3bf02625 bb91cf81 .config console log report ci-upstream-kasan-gce-root
2019/03/05 15:32 upstream 736706bee329 bb91cf81 .config console log report ci-upstream-kasan-gce
2019/03/05 14:11 upstream cd2a3bf02625 bb91cf81 .config console log report ci-upstream-kasan-gce-selinux-root
2019/03/05 13:56 upstream cd2a3bf02625 bb91cf81 .config console log report ci-upstream-kasan-gce-root
2019/03/05 11:51 upstream cd2a3bf02625 bb91cf81 .config console log report ci-upstream-kasan-gce-smack-root
2019/03/05 08:14 upstream 736706bee329 bb91cf81 .config console log report ci-upstream-kasan-gce
2019/03/05 07:38 upstream cd2a3bf02625 bb91cf81 .config console log report ci-upstream-kasan-gce-smack-root
2019/03/05 04:43 upstream 736706bee329 7c693b52 .config console log report ci-upstream-kasan-gce
2019/03/05 03:36 upstream 736706bee329 7c693b52 .config console log report ci-upstream-kasan-gce-selinux-root
2019/03/05 01:59 upstream 736706bee329 7c693b52 .config console log report ci-upstream-kasan-gce-smack-root
2019/03/05 01:58 upstream 736706bee329 7c693b52 .config console log report ci-upstream-kasan-gce
2019/03/05 00:13 upstream 736706bee329 7c693b52 .config console log report ci-upstream-kasan-gce
2019/01/24 21:28 linux-next 755d01d17697 bfab9cd8 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/25 08:19 linux-next 6a1d293238c1 8a41a0ad .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.