Bug#881830: linux: cherry-pick "security/keys: add CONFIG_KEYS_COMPAT to Kconfig" to stretch kernel
Quoted 7 lines · James Cowgill
Since I was a little puzzled as to why keyutils built previously on mips, I found this commit to 4.8 which caused the need for
KEYS_COMPAT:commit
20f06ed9f61a185c6dabd662c310bed6189470dfAuthor: David Howells <[email protected]> Date: Wed Jul 27 11:43:37 2016 +0100
Quoted 8 lines
KEYS: 64-bit MIPS needs to use
compat_sys_keyctlfor 32-bit userspaceMIPS64 needs to use
compat_sys_keyctlfor 32-bit userspace rather than callingsys_keyctl. The latter will work in a lot of cases, thereby hiding the issue.Now I'm thinking maybe this can be argued as a bugfix for the above commit and put in upstream 4.9?
Greg, please queue up these two for 4.9:
5c2a625937ba arm64: support keyctl() system call in 32-bit mode 47b2c3fff493 security/keys: add CONFIG_KEYS_COMPAT to Kconfig
Ben.
Signature · 3 lines
Ben Hutchings In a hierarchy, every employee tends to rise to his level of incompetence.
Hi,
Quoted 14 lines · Ben Hutchings
Quoted 13 lines · James Cowgill
Since I was a little puzzled as to why keyutils built previously on mips, I found this commit to 4.8 which caused the need for
KEYS_COMPAT:commit
20f06ed9f61a185c6dabd662c310bed6189470dfAuthor: David Howells <[email protected]> Date: Wed Jul 27 11:43:37 2016 +0100KEYS: 64-bit MIPS needs to use
compat_sys_keyctlfor 32-bit userspaceMIPS64 needs to use
compat_sys_keyctlfor 32-bit userspace rather than callingsys_keyctl. The latter will work in a lot of cases, thereby hiding the issue.
Quoted 7 lines
Quoted 2 lines
Now I'm thinking maybe this can be argued as a bugfix for the above commit and put in upstream 4.9?
Greg, please queue up these two for 4.9:
5c2a625937baarm64: supportkeyctl()system call in 32-bit mode47b2c3fff493security/keys: addCONFIG_KEYS_COMPATtoKconfig
Sorry, I asked for this in two places. I think it's already queued up for 4.9 now.
Thanks,
James
Greg Kroah-Hartman
maintainerQuoted 20 lines · James Cowgill
Hi,
Quoted 17 lines · Ben Hutchings
Quoted 15 lines · James Cowgill
Since I was a little puzzled as to why keyutils built previously on mips, I found this commit to 4.8 which caused the need for
KEYS_COMPAT:commit
20f06ed9f61a185c6dabd662c310bed6189470dfAuthor: David Howells <[email protected]> Date: Wed Jul 27 11:43:37 2016 +0100KEYS: 64-bit MIPS needs to use
compat_sys_keyctlfor 32-bit userspaceMIPS64 needs to use
compat_sys_keyctlfor 32-bit userspace rather than callingsys_keyctl. The latter will work in a lot of cases, thereby hiding the issue.Now I'm thinking maybe this can be argued as a bugfix for the above commit and put in upstream 4.9?
Quoted 7 lines
Quoted 4 lines
Greg, please queue up these two for 4.9:
5c2a625937baarm64: supportkeyctl()system call in 32-bit mode47b2c3fff493security/keys: addCONFIG_KEYS_COMPATtoKconfigSorry, I asked for this in two places. I think it's already queued up for 4.9 now.
Well, close, but not quite. The second patch there reverts the first patch, and adds the "generic" work. As I already handled that in the merge of the second patch, the first one is not needed, and the end result should be the same.
So all is good. Or at least I think so, someone verifying I got this all right would be appreciated :)
thanks,
greg k-h