This would introduce engineering churn on defconfig updates to the subset of the 8000 Android devices that are arm64 based. We have yet to find a means to actually turn off the KUSER helpers yet and abandon the large number of armv7 and earlier applications. For non Android use, I agree whole heartedly, but can not bring myself to do so. It is there by default, and we are offering a means to turn it off for those that want the security.+I think we should default this to 'N' for arm64.
+ Say N here only if you are absolutely certain that you do not need
+ these helpers; otherwise, the safe option is to say Y.
diff --git a/arch/arm64/kernel/sigreturn32.S b/arch/arm64/kernel/sigreturn32.SWhy do we need a new file for these?
new file mode 100644
index 000000000000..6ecda4d84cd5
--- /dev/null
+++ b/arch/arm64/kernel/sigreturn32.S
checkpatch.pl did not like the new file, so I wrapped the comments to proceed the .byte's to suppress a large amount of 80-character limit warnings. No good deed goes unpunished.+If there is a good reason to have this in a new file, why reformat the stuff
+ /*
+ * ARM Code
+ */
+ // mov r7, #__NR_compat_sigreturn
+ .byte __NR_compat_sigreturn, 0x70, 0xa0, 0xe3
+ // svc #__NR_compat_sigreturn
+ .byte __NR_compat_sigreturn, 0x00, 0x00, 0xef
at the same time? This looks like more churn.
I have a feeling that there's a nice concise patch set in this lot that's
trying to get out ;)
Will