The patch titled Better documentation for ERESTARTSYS has been added to the -mm tree. Its filename is better-documentation-for-erestartsys.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: Better documentation for ERESTARTSYS From: Satoru Takeuchi <takeuchi_satoru@xxxxxxxxxxxxxx> Add comment for errnos related to restart syscall to avoid the leakage of them to user programs. Signed-off-by: Satoru Takeuchi <takeuchi_satoru@xxxxxxxxxxxxxx> Cc: Oleg Nesterov <oleg@xxxxxxxxxx> Acked-by: Roland McGrath <roland@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/errno.h | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletion(-) diff -puN include/linux/errno.h~better-documentation-for-erestartsys include/linux/errno.h --- a/include/linux/errno.h~better-documentation-for-erestartsys +++ a/include/linux/errno.h @@ -5,7 +5,12 @@ #ifdef __KERNEL__ -/* Should never be seen by user programs */ +/* + * These should never be seen by user programs. To return one of ERESTART* + * codes, signal_pending() MUST be set. Note that ptrace can observe these + * at syscall exit tracing, but they will never be left for the debugged user + * process to see. + */ #define ERESTARTSYS 512 #define ERESTARTNOINTR 513 #define ERESTARTNOHAND 514 /* restart if no handler.. */ _ Patches currently in -mm which might be from takeuchi_satoru@xxxxxxxxxxxxxx are git-input.patch tty-fix-leakage-of-erestartsys-to-userland.patch better-documentation-for-erestartsys.patch fix-stop_machine_run-problem-with-naughty-real-time-process.patch cpu-hotplug-fix-ksoftirqd-termination-on-cpu-hotplug-with-naughty-realtime-process.patch cpu-hotplug-fix-ksoftirqd-termination-on-cpu-hotplug-with-naughty-realtime-process-fix.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html