tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Usage of strncpy in the kernel
On Wed, Jan 08, 2025 at 06:30:36AM +0000, RVP wrote:
> Over-aggressive dead store elimination (DSE) by compilers, I think. But, I
> would categorize these as bugs if they change strncpy() semantics.
Indeed, and also they can't be dead stores in the context this came up
because we copyout() the result (or the (non-)initialized parts would not
leak to userspace.
Martin
Home |
Main Index |
Thread Index |
Old Index