Bläddra i källkod

Update v4.19 patches

Changes:
 - SAM:
   - Clean up code

 - Misc:
   - Revert erroneous efivarfs change in v4.19.160

Links:
 - SAM: https://github.com/linux-surface/surface-aggregator-module/commit/b97b5d8f9e699ac88f69a91bd1747b2203581185
 - kernel: https://github.com/linux-surface/kernel/commit/b2de1a748fd0eced18d6cf009afa5be6cfcee1a8
Maximilian Luz 4 år sedan
förälder
incheckning
4703879435

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 160 - 175
patches/4.19/0010-surface-sam.patch


+ 1 - 1
patches/4.19/0011-surface-typecover.patch

@@ -1,4 +1,4 @@
-From 642ebdc94d0a5fb0b8b462b8caa8430a7b2ca101 Mon Sep 17 00:00:00 2001
+From 08e97db1bc6e565b75ec47ff41d6a52c4a5c31c8 Mon Sep 17 00:00:00 2001
 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= <verdre@v0yd.nl>
 Date: Thu, 5 Nov 2020 13:09:45 +0100
 Subject: [PATCH] hid/multitouch: Turn off Type Cover keyboard backlight when

+ 37 - 0
patches/4.19/0012-efivarfs-revert-fix-memory-leak-in-efivarfs_create.patch

@@ -0,0 +1,37 @@
+From 5818e8950d59deadd95d41d1d3747461a2e4df94 Mon Sep 17 00:00:00 2001
+From: Ard Biesheuvel <ardb@kernel.org>
+Date: Wed, 25 Nov 2020 08:53:03 +0100
+Subject: [PATCH] efivarfs: revert "fix memory leak in efivarfs_create()"
+
+The memory leak addressed by commit fe5186cf12e3 is a false positive:
+all allocations are recorded in a linked list, and freed when the
+filesystem is unmounted. This leads to double frees, and as reported
+by David, leads to crashes if SLUB is configured to self destruct when
+double frees occur.
+
+So drop the redundant kfree() again, and instead, mark the offending
+pointer variable so the allocation is ignored by kmemleak.
+
+Cc: Vamshi K Sthambamkadi <vamshi.k.sthambamkadi@gmail.com>
+Fixes: fe5186cf12e3 ("efivarfs: fix memory leak in efivarfs_create()")
+Reported-by: David Laight <David.Laight@aculab.com>
+Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
+---
+ fs/efivarfs/super.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/fs/efivarfs/super.c b/fs/efivarfs/super.c
+index 7808a26bd33f..834615f13f3e 100644
+--- a/fs/efivarfs/super.c
++++ b/fs/efivarfs/super.c
+@@ -23,7 +23,6 @@ LIST_HEAD(efivarfs_list);
+ static void efivarfs_evict_inode(struct inode *inode)
+ {
+ 	clear_inode(inode);
+-	kfree(inode->i_private);
+ }
+ 
+ static const struct super_operations efivarfs_ops = {
+-- 
+2.29.2
+

+ 2 - 2
pkg/arch/kernel-lts/PKGBUILD

@@ -51,8 +51,8 @@ sha256sums=('76dca365255c1a13778c3b24f0eae14f4e66bc12fe79f5e6592b116fc57ef755'
             '0272246c9e2730ddf46fb23f5f2ad971d42899fbeec532a6b2c15b07ed78045d'
             '7afbd27556c12c6cb54534fd7bf696c8f7857d8ccef09a6b1c7a9f8ef5d0842e'
             'ae22f9b1de06f2ee356abb0e8cb442506c6f2566be3ed878289c061159f8b76a'
-            '22dd597a01a837e21e6d938934512c490f74871b5b1263f82cb69fc24c730d71'
-            '5645a2e1f6112b90cbd08813046e43660408689d0f760851a39366142af8bbbe')
+            '182475b9d221b4a8797d0c160e00a184d64a1af7676270411a527bcbcb7040fa'
+            '1e25ddc6d2c3fc1923e1ab55009ac946062f48f0104fc456fa438f8b96327751')
 
 export KBUILD_BUILD_HOST=archlinux
 export KBUILD_BUILD_USER=$pkgbase

Vissa filer visades inte eftersom för många filer har ändrats