Re: [PATCH 0/5] asm-generic: strncpy_from_user/strnlen_user cleanup

From: Arnd Bergmann
Date: Sat May 15 2021 - 05:56:21 EST


On Sat, May 15, 2021 at 8:40 AM Christoph Hellwig <hch@xxxxxx> wrote:
>
> I generall like this consolidation, but for the patches that remote
> the arch / asm-generic versions, can you please elaborate a little
> more why the lib version is preferable? The current commit logs are
> not very informative.

Indeed. I do remember writing the patches last year thinking "this should
really get fixed", but apparently I failed to describe the actual problem at
the time. I have gone through it again and annotated what I found now,
but I have a feeling that there were additional problems with the old
code that I still did not capture.

Sending v2 now: same code, more text.

Arnd