lkml.org 
[lkml]   [2020]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2] proc: Escape more characters in /proc/mounts output
From
Date
On 12/16/20 10:03 AM, Al Viro wrote:
> Once more, with feeling: why bother? What's wrong
> with using the damn strndup_user() and then doing
> whatever checks you want with the data already
> copied, living in normal kernel memory, with all
> string functions applicable, etc.?

I was trying to avoid the allocation, but I reckon it is pointless to
micro-optimize the invalid case. I'll send v3.

Siddhesh

\
 
 \ /
  Last update: 2020-12-16 06:27    [W:0.043 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site