]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/vkms: Fix plane duplicate_state
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 28 Nov 2018 10:10:33 +0000 (11:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2019 20:09:57 +0000 (21:09 +0100)
commit94b2aec76d682dd8c0cb2356169cb399eaafdc9e
tree3226b731e39c9df717afef28a0824525c67cf270
parentf3631a8b2fcb27648453dce4bec25123160095fa
drm/vkms: Fix plane duplicate_state

commit 7cdf33ab02e01300e7e6289acbac9cd8759f8712 upstream.

We need to handle allocation failures and bail out. While at it, tune
the allocation failures down to debug level.

syzbot injected an allocation failure and then hit this WARN_ON.

Reported-by: syzbot+eb6e5365f23c02517dda@syzkaller.appspotmail.com
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Cc: Haneen Mohammed <hamohammed.sa@gmail.com>
Cc: Sean Paul <seanpaul@chromium.org>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
Cc: Gustavo Padovan <gustavo.padovan@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20181128101033.4840-1-daniel.vetter@ffwll.ch
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/vkms/vkms_plane.c