Re: [PATCH 0/2] configs/hardening: Some fixes for UBSAN

2024-04-22 Thread Justin Stitt
On Mon, Apr 15, 2024 at 11:15:05AM -0700, Kees Cook wrote: > On Thu, Apr 11, 2024 at 11:11:05AM -0700, Nathan Chancellor wrote: > > [0.189542] Internal error: UBSAN: unrecognized failure code: > > f2005515 [#1] PREEMPT SMP > > Oops! Yes, I didn't update the (arm64) trap handler to n

[PATCH v5] checkpatch: add check for snprintf to scnprintf

2024-04-22 Thread Justin Stitt
I am going to quote Lee Jones who has been doing some snprintf -> scnprintf refactorings: "There is a general misunderstanding amongst engineers that {v}snprintf() returns the length of the data *actually* encoded into the destination array. However, as per the C99 standard {v}snprintf() really r

Re: [PATCH 0/8] pwm: Add support for character devices

2024-04-22 Thread David Lechner
On Sat, Apr 13, 2024 at 4:22 AM Uwe Kleine-König wrote: > > Hello, > > On Sun, Mar 17, 2024 at 11:40:31AM +0100, Uwe Kleine-König wrote: > > After the necessary changes to the lowlevel drivers got in for v6.9-rc1 > > here come some changes to the core to implement /dev/pwmchipX character > > devic

Re: [PATCH v3 7/7] kunit: Add tests for fault

2024-04-22 Thread Guenter Roeck
On 4/22/24 06:08, Mickaël Salaün wrote: On Fri, Apr 19, 2024 at 04:38:01PM -0700, Guenter Roeck wrote: On Fri, Apr 19, 2024 at 03:33:49PM -0700, Guenter Roeck wrote: Hi, On Tue, Mar 19, 2024 at 11:48:57AM +0100, Mickaël Salaün wrote: Add a test case to check NULL pointer dereference and make

Re: [PATCH v3 7/7] kunit: Add tests for fault

2024-04-22 Thread Mickaël Salaün
On Fri, Apr 19, 2024 at 04:38:01PM -0700, Guenter Roeck wrote: > On Fri, Apr 19, 2024 at 03:33:49PM -0700, Guenter Roeck wrote: > > Hi, > > > > On Tue, Mar 19, 2024 at 11:48:57AM +0100, Mickaël Salaün wrote: > > > Add a test case to check NULL pointer dereference and make sure it would > > > resul