diff options
author | David P <megver83@parabola.nu> | 2020-04-27 18:24:44 -0400 |
---|---|---|
committer | David P <megver83@parabola.nu> | 2020-04-27 18:28:38 -0400 |
commit | a5dea4f2300de846d3d9967ffdfd3b3bea4e8d70 (patch) | |
tree | 8fdf7e40b41e26cf8a1249fd3d384ae2bfac6823 /kernels/linux-libre-xtreme/0003-drm-Remove-PageReserved-manipulation-from-drm_pci_al.patch | |
parent | 940cbcb215b3a06b0f6a85c0700d6d642d1bebc8 (diff) | |
download | abslibre-a5dea4f2300de846d3d9967ffdfd3b3bea4e8d70.tar.gz abslibre-a5dea4f2300de846d3d9967ffdfd3b3bea4e8d70.tar.bz2 abslibre-a5dea4f2300de846d3d9967ffdfd3b3bea4e8d70.zip |
rmpkg: kernels/linux-libre-xtreme
Reason: Linux-libre{-hardened} enables all LSM by default in i686 and x86_64 since a long time.
Although it kinda made sense because it had AppArmor enabled by default, it's not worth to maintain
it since anyone can enable it by passing a kernel parameter, as explained in the AppArmor page in
ArchWiki. This isn't the case for armv7h, but will see if users want AppArmor for ARM in the future.
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'kernels/linux-libre-xtreme/0003-drm-Remove-PageReserved-manipulation-from-drm_pci_al.patch')
-rw-r--r-- | kernels/linux-libre-xtreme/0003-drm-Remove-PageReserved-manipulation-from-drm_pci_al.patch | 92 |
1 files changed, 0 insertions, 92 deletions
diff --git a/kernels/linux-libre-xtreme/0003-drm-Remove-PageReserved-manipulation-from-drm_pci_al.patch b/kernels/linux-libre-xtreme/0003-drm-Remove-PageReserved-manipulation-from-drm_pci_al.patch deleted file mode 100644 index 9ce302035..000000000 --- a/kernels/linux-libre-xtreme/0003-drm-Remove-PageReserved-manipulation-from-drm_pci_al.patch +++ /dev/null @@ -1,92 +0,0 @@ -From 7e8f0d17203665f1e6cb110ecbfc90e9ebed8c28 Mon Sep 17 00:00:00 2001 -From: Chris Wilson <chris@chris-wilson.co.uk> -Date: Sun, 2 Feb 2020 17:16:31 +0000 -Subject: [PATCH 03/11] drm: Remove PageReserved manipulation from - drm_pci_alloc - -drm_pci_alloc/drm_pci_free are very thin wrappers around the core dma -facilities, and we have no special reason within the drm layer to behave -differently. In particular, since - -commit de09d31dd38a50fdce106c15abd68432eebbd014 -Author: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> -Date: Fri Jan 15 16:51:42 2016 -0800 - - page-flags: define PG_reserved behavior on compound pages - - As far as I can see there's no users of PG_reserved on compound pages. - Let's use PF_NO_COMPOUND here. - -it has been illegal to combine GFP_COMP with SetPageReserved, so lets -stop doing both and leave the dma layer to its own devices. - -Reported-by: Taketo Kabe -Bug: https://gitlab.freedesktop.org/drm/intel/issues/1027 -Fixes: de09d31dd38a ("page-flags: define PG_reserved behavior on compound pages") -Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> -Cc: <stable@vger.kernel.org> # v4.5+ -Reviewed-by: Alex Deucher <alexander.deucher@amd.com> -Link: https://patchwork.freedesktop.org/patch/msgid/20200202171635.4039044-1-chris@chris-wilson.co.uk ---- - drivers/gpu/drm/drm_pci.c | 23 ++--------------------- - 1 file changed, 2 insertions(+), 21 deletions(-) - -diff --git a/drivers/gpu/drm/drm_pci.c b/drivers/gpu/drm/drm_pci.c -index a86a3ab2771c..235729f4aadb 100644 ---- a/drivers/gpu/drm/drm_pci.c -+++ b/drivers/gpu/drm/drm_pci.c -@@ -51,8 +51,6 @@ - drm_dma_handle_t *drm_pci_alloc(struct drm_device * dev, size_t size, size_t align) - { - drm_dma_handle_t *dmah; -- unsigned long addr; -- size_t sz; - - /* pci_alloc_consistent only guarantees alignment to the smallest - * PAGE_SIZE order which is greater than or equal to the requested size. -@@ -68,20 +66,13 @@ drm_dma_handle_t *drm_pci_alloc(struct drm_device * dev, size_t size, size_t ali - dmah->size = size; - dmah->vaddr = dma_alloc_coherent(&dev->pdev->dev, size, - &dmah->busaddr, -- GFP_KERNEL | __GFP_COMP); -+ GFP_KERNEL); - - if (dmah->vaddr == NULL) { - kfree(dmah); - return NULL; - } - -- /* XXX - Is virt_to_page() legal for consistent mem? */ -- /* Reserve */ -- for (addr = (unsigned long)dmah->vaddr, sz = size; -- sz > 0; addr += PAGE_SIZE, sz -= PAGE_SIZE) { -- SetPageReserved(virt_to_page((void *)addr)); -- } -- - return dmah; - } - -@@ -94,19 +85,9 @@ EXPORT_SYMBOL(drm_pci_alloc); - */ - void __drm_legacy_pci_free(struct drm_device * dev, drm_dma_handle_t * dmah) - { -- unsigned long addr; -- size_t sz; -- -- if (dmah->vaddr) { -- /* XXX - Is virt_to_page() legal for consistent mem? */ -- /* Unreserve */ -- for (addr = (unsigned long)dmah->vaddr, sz = dmah->size; -- sz > 0; addr += PAGE_SIZE, sz -= PAGE_SIZE) { -- ClearPageReserved(virt_to_page((void *)addr)); -- } -+ if (dmah->vaddr) - dma_free_coherent(&dev->pdev->dev, dmah->size, dmah->vaddr, - dmah->busaddr); -- } - } - - /** --- -2.26.0 - |