The patch titled Subject: kmsg: /dev/kmsg - properly return possible copy_from_user() failure has been added to the -mm tree. Its filename is kmsg-dev-kmsg-properly-return-possible-copy_from_user-failure.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Kay Sievers <kay@xxxxxxxx> Subject: kmsg: /dev/kmsg - properly return possible copy_from_user() failure Reported-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Signed-off-by: Kay Sievers <kay@xxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/printk.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff -puN kernel/printk.c~kmsg-dev-kmsg-properly-return-possible-copy_from_user-failure kernel/printk.c --- a/kernel/printk.c~kmsg-dev-kmsg-properly-return-possible-copy_from_user-failure +++ a/kernel/printk.c @@ -365,8 +365,10 @@ static ssize_t devkmsg_writev(struct kio line = buf; for (i = 0; i < count; i++) { - if (copy_from_user(line, iv[i].iov_base, iv[i].iov_len)) + if (copy_from_user(line, iv[i].iov_base, iv[i].iov_len)) { + ret = -EFAULT; goto out; + } line += iv[i].iov_len; } _ Subject: Subject: kmsg: /dev/kmsg - properly return possible copy_from_user() failure Patches currently in -mm which might be from kay@xxxxxxxx are kmsg-dev-kmsg-properly-return-possible-copy_from_user-failure.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