On Mon, Jun 27, 2022 at 12:19:18PM +0200, Arnd Bergmann wrote:
On Mon, Jun 27, 2022 at 11:38 AM Yangxi Xiang xyangxi5@gmail.com wrote:
Which architectures do you mean? I don't see any architecture using asm-generic/uaccess.h without setting GENERIC_STRNCPY_FROM_USER before commit 98b861a30431 or the prior release.
I am a user of LibOS, which uses this __strncpy_from_user.
Ok, got it. This should be part of the changelog then when you send a patch for stable kernels. You should also indicate that the code was removed in mainline kernels and what the fix was there, as well as which of the older kernels need the fix.
But libos isn't part of the kernel tree, that's an out-of-tree change that we can't control here, right? How is that relevant for stable kernels and why can't it just be added to the libos patchset?
thanks,
greg k-h