Patch "drm/shmem-helper: Fix BUG_ON() on mmap(PROT_WRITE, MAP_PRIVATE)" has been added to the 6.9-stable tree

2024-06-19 Thread gregkh
This is a note to let you know that I've just added the patch titled drm/shmem-helper: Fix BUG_ON() on mmap(PROT_WRITE, MAP_PRIVATE) to the 6.9-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch

Patch "drm/shmem-helper: Fix BUG_ON() on mmap(PROT_WRITE, MAP_PRIVATE)" has been added to the 6.6-stable tree

2024-06-19 Thread gregkh
This is a note to let you know that I've just added the patch titled drm/shmem-helper: Fix BUG_ON() on mmap(PROT_WRITE, MAP_PRIVATE) to the 6.6-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch

Re: [PATCH] drm/shmem-helper: Fix BUG_ON() on mmap(PROT_WRITE, MAP_PRIVATE)

2024-05-22 Thread Jacek Lawrynowicz
Hi, On 21.05.2024 14:58, Daniel Vetter wrote: > On Tue, 21 May 2024 at 14:38, Daniel Vetter wrote: >> >> On Mon, May 20, 2024 at 12:05:14PM +0200, Jacek Lawrynowicz wrote: >>> From: "Wachowski, Karol" >>> >>> Lack of check for copy-on-write (COW) mapping in drm_gem_shmem_mmap >>> allows users to

Re: [PATCH] drm/shmem-helper: Fix BUG_ON() on mmap(PROT_WRITE, MAP_PRIVATE)

2024-05-21 Thread Daniel Vetter
On Tue, 21 May 2024 at 14:38, Daniel Vetter wrote: > > On Mon, May 20, 2024 at 12:05:14PM +0200, Jacek Lawrynowicz wrote: > > From: "Wachowski, Karol" > > > > Lack of check for copy-on-write (COW) mapping in drm_gem_shmem_mmap > > allows users to call mmap with PROT_WRITE and MAP_PRIVATE flag > >

Re: [PATCH] drm/shmem-helper: Fix BUG_ON() on mmap(PROT_WRITE, MAP_PRIVATE)

2024-05-21 Thread Daniel Vetter
On Mon, May 20, 2024 at 12:05:14PM +0200, Jacek Lawrynowicz wrote: > From: "Wachowski, Karol" > > Lack of check for copy-on-write (COW) mapping in drm_gem_shmem_mmap > allows users to call mmap with PROT_WRITE and MAP_PRIVATE flag > causing a kernel panic due to BUG_ON in vmf_insert_pfn_prot: > B

[PATCH] drm/shmem-helper: Fix BUG_ON() on mmap(PROT_WRITE, MAP_PRIVATE)

2024-05-20 Thread Jacek Lawrynowicz
From: "Wachowski, Karol" Lack of check for copy-on-write (COW) mapping in drm_gem_shmem_mmap allows users to call mmap with PROT_WRITE and MAP_PRIVATE flag causing a kernel panic due to BUG_ON in vmf_insert_pfn_prot: BUG_ON((vma->vm_flags & VM_PFNMAP) && is_cow_mapping(vma->vm_flags)); Return -E