]> git.baikalelectronics.ru Git - kernel.git/commit
drm: udl: Properly check framebuffer mmap offsets
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Mar 2018 15:45:53 +0000 (16:45 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 22 Mar 2018 06:59:01 +0000 (07:59 +0100)
commit3c8b1cec19699892907e992d047aa03c1194cc1d
treed3b7f0f528c93bad7f2ab77e18d19322e5a165a6
parent83fc7a0b5313a6fe027f20a20cac8eb0bd4dbf48
drm: udl: Properly check framebuffer mmap offsets

The memmap options sent to the udl framebuffer driver were not being
checked for all sets of possible crazy values.  Fix this up by properly
bounding the allowed values.

Reported-by: Eyal Itkin <eyalit@checkpoint.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20180321154553.GA18454@kroah.com
drivers/gpu/drm/udl/udl_fb.c