Module Name:    xsrc
Committed By:   martin
Date:           Sun Dec  8 15:00:33 UTC 2019

Modified Files:
        xsrc/external/mit/MesaLib/dist/src/gallium/winsys/sw/dri [netbsd-9]:
            dri_sw_winsys.c
        xsrc/external/mit/MesaLib/dist/src/gallium/winsys/sw/xlib [netbsd-9]:
            xlib_sw_winsys.c
        xsrc/external/mit/MesaLib/dist/src/mesa/drivers/x11 [netbsd-9]:
            xm_buffer.c

Log Message:
Pull up following revision(s) (requested by maya in ticket #518):

        external/mit/MesaLib/dist/src/gallium/winsys/sw/dri/dri_sw_winsys.c: 
revision 1.2
        external/mit/MesaLib/dist/src/gallium/winsys/sw/xlib/xlib_sw_winsys.c: 
revision 1.2
        external/mit/MesaLib/dist/src/mesa/drivers/x11/xm_buffer.c: revision 1.2

>From 02c3dad0f3b4d26e0faa5cc51d06bc50d693dcdc Mon Sep 17 00:00:00 2001

From: Brian Paul <bri...@vmware.com>
Date: Wed, 9 Oct 2019 12:05:16 -0600
Subject: [PATCH] Call shmget() with permission 0600 instead of 0777

A security advisory (TALOS-2019-0857/CVE-2019-5068) found that
creating shared memory regions with permission mode 0777 could allow
any user to access that memory.  Several Mesa drivers use shared-
memory XImages to implement back buffers for improved performance.

This path changes the shmget() calls to use 0600 (user r/w).
Tested with legacy Xlib driver and llvmpipe.

Cc: mesa-sta...@lists.freedesktop.org
Reviewed-by: Kristian H. Kristensen <hoegsb...@google.com>


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.3 -r1.1.1.3.2.1 \
    xsrc/external/mit/MesaLib/dist/src/gallium/winsys/sw/dri/dri_sw_winsys.c
cvs rdiff -u -r1.1.1.3 -r1.1.1.3.2.1 \
    xsrc/external/mit/MesaLib/dist/src/gallium/winsys/sw/xlib/xlib_sw_winsys.c
cvs rdiff -u -r1.1.1.7 -r1.1.1.7.2.1 \
    xsrc/external/mit/MesaLib/dist/src/mesa/drivers/x11/xm_buffer.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Reply via email to