Re: [PATCH v2] uml: Replace strlcpy with strscpy

2023-06-06 Thread Eric Biggers
On Tue, Jun 06, 2023 at 05:08:27PM -0400, Azeem Shaikh wrote: > On Tue, Jun 6, 2023 at 4:51 PM Richard Weinberger wrote: > > > > - Ursprüngliche Mail - > > > Von: "Azeem Shaikh" > > > strlcpy() reads the entire source buffer first. > > > This read may exceed the destination size limit. >

Re: [PATCH RFC v1 00/10] archs/random: fallback to using sched_clock() if no cycle counter

2022-04-10 Thread Eric Biggers
On Fri, Apr 08, 2022 at 08:21:35PM +0200, Jason A. Donenfeld wrote: > By my first guess, we have ktime_get_boottime_ns(), jiffies, and > sched_clock(). It seems like sched_clock() has already done a lot of > work in being always available with some incrementing value, falling > back to jiffies as n