-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade kernel to v4.9.27 with a patch
- Loading branch information
Showing
6 changed files
with
53 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
From b5c66bab72a6a65edb15beb60b90d3cb84c5763b Mon Sep 17 00:00:00 2001 | ||
From: Cong Wang <[email protected]> | ||
Date: Wed, 22 Feb 2017 15:40:53 -0800 | ||
Subject: 9p: fix a potential acl leak | ||
|
||
From: Cong Wang <[email protected]> | ||
|
||
commit b5c66bab72a6a65edb15beb60b90d3cb84c5763b upstream. | ||
|
||
posix_acl_update_mode() could possibly clear 'acl', if so we leak the | ||
memory pointed by 'acl'. Save this pointer before calling | ||
posix_acl_update_mode() and release the memory if 'acl' really gets | ||
cleared. | ||
|
||
Link: http://lkml.kernel.org/r/[email protected] | ||
Signed-off-by: Cong Wang <[email protected]> | ||
Reported-by: Mark Salyzyn <[email protected]> | ||
Reviewed-by: Jan Kara <[email protected]> | ||
Reviewed-by: Greg Kurz <[email protected]> | ||
Cc: Eric Van Hensbergen <[email protected]> | ||
Cc: Ron Minnich <[email protected]> | ||
Cc: Latchesar Ionkov <[email protected]> | ||
Signed-off-by: Andrew Morton <[email protected]> | ||
Signed-off-by: Linus Torvalds <[email protected]> | ||
Signed-off-by: Greg Kroah-Hartman <[email protected]> | ||
|
||
--- | ||
fs/9p/acl.c | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
--- a/fs/9p/acl.c | ||
+++ b/fs/9p/acl.c | ||
@@ -277,6 +277,7 @@ static int v9fs_xattr_set_acl(const stru | ||
case ACL_TYPE_ACCESS: | ||
if (acl) { | ||
struct iattr iattr; | ||
+ struct posix_acl *old_acl = acl; | ||
|
||
retval = posix_acl_update_mode(inode, &iattr.ia_mode, &acl); | ||
if (retval) | ||
@@ -287,6 +288,7 @@ static int v9fs_xattr_set_acl(const stru | ||
* by the mode bits. So don't | ||
* update ACL. | ||
*/ | ||
+ posix_acl_release(old_acl); | ||
value = NULL; | ||
size = 0; | ||
} |
35 changes: 0 additions & 35 deletions
35
patches/linux/revert-mmc-sdhci-msm-enable-few-quirks.patch
This file was deleted.
Oops, something went wrong.