diff for duplicates of <20200609043404.geCBLPY-R%akpm@linux-foundation.org> diff --git a/a/1.txt b/N1/1.txt index ef2e286..c231a21 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -59,3 +59,17 @@ Signed-off-by: Andrew Morton <akpm@linux-foundation.org> - * happens, handle that and return -EFAULT. - */ extern long notrace probe_kernel_write(void *dst, const void *src, size_t size); +- +-/* +- * probe_user_write(): safely attempt to write to a location in user space +- * @dst: address to write to +- * @src: pointer to the data that shall be written +- * @size: size of the data chunk +- * +- * Safely write to address @dst from the buffer at @src. If a kernel fault +- * happens, handle that and return -EFAULT. +- */ + extern long notrace probe_user_write(void __user *dst, const void *src, size_t size); + + extern long strncpy_from_unsafe(char *dst, const void *unsafe_addr, long count); +_ diff --git a/a/content_digest b/N1/content_digest index 4aec07d..418708e 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -75,6 +75,20 @@ "- * Safely write to address @dst from the buffer at @src. If a kernel fault\n" "- * happens, handle that and return -EFAULT.\n" "- */\n" - extern long notrace probe_kernel_write(void *dst, const void *src, size_t size); + " extern long notrace probe_kernel_write(void *dst, const void *src, size_t size);\n" + "-\n" + "-/*\n" + "- * probe_user_write(): safely attempt to write to a location in user space\n" + "- * @dst: address to write to\n" + "- * @src: pointer to the data that shall be written\n" + "- * @size: size of the data chunk\n" + "- *\n" + "- * Safely write to address @dst from the buffer at @src. If a kernel fault\n" + "- * happens, handle that and return -EFAULT.\n" + "- */\n" + " extern long notrace probe_user_write(void __user *dst, const void *src, size_t size);\n" + " \n" + " extern long strncpy_from_unsafe(char *dst, const void *unsafe_addr, long count);\n" + _ -2726e5d5d4a7d83ca55951ad22178b6c6340f2a70c4192719332affb832c61a1 +163aafda96ce3a7065011858ced55f6bd7e5ead19c330d140bb8f3ff49ac8450
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.