linux_dsm_epyc7002/drivers/gpu/drm/vkms
Tetsuo Handa b30b61ff6b drm/vkms: Fix flush_work() without INIT_WORK().
syzbot is hitting a lockdep warning [1] because flush_work() is called
without INIT_WORK() after kzalloc() at vkms_atomic_crtc_reset().

Commit 6c234fe37c ("drm/vkms: Implement CRC debugfs API") added
INIT_WORK() to only vkms_atomic_crtc_duplicate_state() side. Assuming
that lifecycle of crc_work is appropriately managed, fix this problem
by adding INIT_WORK() to vkms_atomic_crtc_reset() side.

[1] https://syzkaller.appspot.com/bug?id=a5954455fcfa51c29ca2ab55b203076337e1c770

Reported-and-tested-by: syzbot <syzbot+12f1b031b6da017e34f8@syzkaller.appspotmail.com>
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Reviewed-by: Shayenne Moura <shayenneluzmoura@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/1547829823-9877-1-git-send-email-penguin-kernel@I-love.SAKURA.ne.jp
2019-01-24 10:47:38 +01:00
..
Makefile drm/vkms: Implement CRC debugfs API 2018-08-03 14:52:58 -04:00
vkms_crc.c drm/vkms: Fix possible memory leak in _vkms_get_crc() 2018-09-21 10:50:45 +02:00
vkms_crtc.c drm/vkms: Fix flush_work() without INIT_WORK(). 2019-01-24 10:47:38 +01:00
vkms_drv.c drm/vkms: set preferred depth to 24 2018-12-17 10:51:20 +01:00
vkms_drv.h drm/vkms: Drop custom vkms_dumb_map(). 2018-11-27 12:23:32 -08:00
vkms_gem.c drm/vkms: Drop custom vkms_dumb_map(). 2018-11-27 12:23:32 -08:00
vkms_output.c drm/vkms: Enable/Disable cursor support with module option 2018-09-11 19:57:32 +02:00
vkms_plane.c drm/vkms: Remove set but not used variable 'vkms_obj' 2018-12-04 11:47:27 +01:00