From: Daniel Vetter <hidden> Date: 2018-08-22 08:54:17
This was only added for the drm's fbdev emulation support, so that it
would try harder to show the Oops.
Unfortunately this never really worked reliably, and in practice ended
up pushing the real Oops off the screen due to plentyfull locking,
sleep-while-atomic and other issues. So we removed all that support
from the fbdev emulation a while back. Aside: We've also removed the
kgdb support, for similar reasons.
Since it's such a small patch I figured I don't split this up into the
usual 3-phase removal.
Cc: Ben Skeggs <redacted>
Cc: Bartlomiej Zolnierkiewicz <redacted>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Hans de Goede <redacted>
Cc: Daniel Vetter <redacted>
Cc: Alexander Kapshuk <redacted>
Cc: Kees Cook <redacted>
Cc: Thierry Reding <redacted>
Cc: David Lechner <david@lechnology.com>
Cc: nouveau@lists.freedesktop.org
Cc: linux-fbdev@vger.kernel.org
Signed-off-by: Daniel Vetter <redacted>
---
drivers/gpu/drm/nouveau/nouveau_fbcon.c | 1 -
drivers/staging/vboxvideo/vbox_fb.c | 3 +--
drivers/video/fbdev/core/fbcon.c | 1 -
include/linux/fb.h | 4 ----
4 files changed, 1 insertion(+), 8 deletions(-)
@@ -457,10 +457,6 @@ struct fb_tile_ops {*/#define FBINFO_BE_MATH 0x100000-/* report to the VT layer that this fb driver can accept forced console-outputlikeoopses*/-#define FBINFO_CAN_FORCE_OUTPUT 0x200000-structfb_info{atomic_tcount;intnode;
From: Daniel Vetter <hidden> Date: 2018-08-22 08:54:32
DRM drivers really, really, really don't want random userspace to
share buffer behind it's back, bypassing the dma-buf buffer sharing
machanism. For that reason we've ruthlessly rejected any IOCTL
exposing the physical address of any graphics buffer.
Unfortunately fbdev comes with that built-in. We could just set
smem_start to 0, but that means we'd have to hand-roll our own fb_mmap
implementation. For good reasons many drivers do that, but
smem_start/length is still super convenient.
Hence instead just stop the leak in the ioctl, to keep fb mmap working
as-is. A second patch will set this flag for all drm drivers.
Cc: Bartlomiej Zolnierkiewicz <redacted>
Cc: Kees Cook <redacted>
Cc: Daniel Vetter <redacted>
Cc: linux-fbdev@vger.kernel.org
Signed-off-by: Daniel Vetter <redacted>
---
drivers/video/fbdev/core/fbmem.c | 4 ++++
include/linux/fb.h | 7 +++++++
2 files changed, 11 insertions(+)
From: Daniel Vetter <hidden> Date: 2018-09-03 16:48:54
On Wed, Aug 22, 2018 at 10:54:04AM +0200, Daniel Vetter wrote:
DRM drivers really, really, really don't want random userspace to
share buffer behind it's back, bypassing the dma-buf buffer sharing
machanism. For that reason we've ruthlessly rejected any IOCTL
exposing the physical address of any graphics buffer.
Unfortunately fbdev comes with that built-in. We could just set
smem_start to 0, but that means we'd have to hand-roll our own fb_mmap
implementation. For good reasons many drivers do that, but
smem_start/length is still super convenient.
Hence instead just stop the leak in the ioctl, to keep fb mmap working
as-is. A second patch will set this flag for all drm drivers.
Cc: Bartlomiej Zolnierkiewicz <redacted>
Cc: Kees Cook <redacted>
Cc: Daniel Vetter <redacted>
Cc: linux-fbdev@vger.kernel.org
Signed-off-by: Daniel Vetter <redacted>
This was only added for the drm's fbdev emulation support, so that it
would try harder to show the Oops.
Unfortunately this never really worked reliably, and in practice ended
up pushing the real Oops off the screen due to plentyfull locking,
sleep-while-atomic and other issues. So we removed all that support
from the fbdev emulation a while back. Aside: We've also removed the
kgdb support, for similar reasons.
Since it's such a small patch I figured I don't split this up into the
usual 3-phase removal.
Cc: Ben Skeggs <redacted>
Cc: Bartlomiej Zolnierkiewicz <redacted>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Hans de Goede <redacted>
Cc: Daniel Vetter <redacted>
Cc: Alexander Kapshuk <redacted>
Cc: Kees Cook <redacted>
Cc: Thierry Reding <redacted>
Cc: David Lechner <david@lechnology.com>
Cc: nouveau@lists.freedesktop.org
Cc: linux-fbdev@vger.kernel.org
Signed-off-by: Daniel Vetter <redacted>
Acked-by: Bartlomiej Zolnierkiewicz <redacted>
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
DRM drivers really, really, really don't want random userspace to
share buffer behind it's back, bypassing the dma-buf buffer sharing
machanism. For that reason we've ruthlessly rejected any IOCTL
exposing the physical address of any graphics buffer.
Unfortunately fbdev comes with that built-in. We could just set
smem_start to 0, but that means we'd have to hand-roll our own fb_mmap
implementation. For good reasons many drivers do that, but
smem_start/length is still super convenient.
Hence instead just stop the leak in the ioctl, to keep fb mmap working
as-is. A second patch will set this flag for all drm drivers.
Cc: Bartlomiej Zolnierkiewicz <redacted>
Cc: Kees Cook <redacted>
Cc: Daniel Vetter <redacted>
Cc: linux-fbdev@vger.kernel.org
Signed-off-by: Daniel Vetter <redacted>
Acked-by: Bartlomiej Zolnierkiewicz <redacted>
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
From: Daniel Vetter <hidden> Date: 2018-09-11 07:42:36
On Mon, Sep 10, 2018 at 02:48:43PM +0200, Bartlomiej Zolnierkiewicz wrote:
On 08/22/2018 10:54 AM, Daniel Vetter wrote:
quoted
This was only added for the drm's fbdev emulation support, so that it
would try harder to show the Oops.
Unfortunately this never really worked reliably, and in practice ended
up pushing the real Oops off the screen due to plentyfull locking,
sleep-while-atomic and other issues. So we removed all that support
from the fbdev emulation a while back. Aside: We've also removed the
kgdb support, for similar reasons.
Since it's such a small patch I figured I don't split this up into the
usual 3-phase removal.
Cc: Ben Skeggs <redacted>
Cc: Bartlomiej Zolnierkiewicz <redacted>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Hans de Goede <redacted>
Cc: Daniel Vetter <redacted>
Cc: Alexander Kapshuk <redacted>
Cc: Kees Cook <redacted>
Cc: Thierry Reding <redacted>
Cc: David Lechner <david@lechnology.com>
Cc: nouveau@lists.freedesktop.org
Cc: linux-fbdev@vger.kernel.org
Signed-off-by: Daniel Vetter <redacted>
Acked-by: Bartlomiej Zolnierkiewicz <redacted>
Ack for merging the entire series through drm-misc-next?
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
On Mon, Sep 10, 2018 at 02:48:43PM +0200, Bartlomiej Zolnierkiewicz wrote:
quoted
On 08/22/2018 10:54 AM, Daniel Vetter wrote:
quoted
This was only added for the drm's fbdev emulation support, so that it
would try harder to show the Oops.
Unfortunately this never really worked reliably, and in practice ended
up pushing the real Oops off the screen due to plentyfull locking,
sleep-while-atomic and other issues. So we removed all that support
from the fbdev emulation a while back. Aside: We've also removed the
kgdb support, for similar reasons.
Since it's such a small patch I figured I don't split this up into the
usual 3-phase removal.
Cc: Ben Skeggs <redacted>
Cc: Bartlomiej Zolnierkiewicz <redacted>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Hans de Goede <redacted>
Cc: Daniel Vetter <redacted>
Cc: Alexander Kapshuk <redacted>
Cc: Kees Cook <redacted>
Cc: Thierry Reding <redacted>
Cc: David Lechner <david@lechnology.com>
Cc: nouveau@lists.freedesktop.org
Cc: linux-fbdev@vger.kernel.org
Signed-off-by: Daniel Vetter <redacted>
Acked-by: Bartlomiej Zolnierkiewicz <redacted>
Ack for merging the entire series through drm-misc-next?
Yes, thanks for taking care of this.
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
From: Daniel Vetter <hidden> Date: 2018-09-11 12:12:23
On Tue, Sep 11, 2018 at 10:47:34AM +0200, Bartlomiej Zolnierkiewicz wrote:
On 09/11/2018 09:42 AM, Daniel Vetter wrote:
quoted
On Mon, Sep 10, 2018 at 02:48:43PM +0200, Bartlomiej Zolnierkiewicz wrote:
quoted
On 08/22/2018 10:54 AM, Daniel Vetter wrote:
quoted
This was only added for the drm's fbdev emulation support, so that it
would try harder to show the Oops.
Unfortunately this never really worked reliably, and in practice ended
up pushing the real Oops off the screen due to plentyfull locking,
sleep-while-atomic and other issues. So we removed all that support
from the fbdev emulation a while back. Aside: We've also removed the
kgdb support, for similar reasons.
Since it's such a small patch I figured I don't split this up into the
usual 3-phase removal.
Cc: Ben Skeggs <redacted>
Cc: Bartlomiej Zolnierkiewicz <redacted>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Hans de Goede <redacted>
Cc: Daniel Vetter <redacted>
Cc: Alexander Kapshuk <redacted>
Cc: Kees Cook <redacted>
Cc: Thierry Reding <redacted>
Cc: David Lechner <david@lechnology.com>
Cc: nouveau@lists.freedesktop.org
Cc: linux-fbdev@vger.kernel.org
Signed-off-by: Daniel Vetter <redacted>
Acked-by: Bartlomiej Zolnierkiewicz <redacted>
Ack for merging the entire series through drm-misc-next?
Yes, thanks for taking care of this.
Thanks, all merged into drm-misc-next for 4.20.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch