Re: [PATCH -next 0/2] Add str_true_false()/str_false_true() helper

2024-08-23 Thread Hongbo Li
On 2024/8/23 21:38, Greg KH wrote: On Fri, Aug 23, 2024 at 04:22:32PM +0300, Andy Shevchenko wrote: On Fri, Aug 23, 2024 at 9:13 AM Hongbo Li wrote: Add str_true_false()/str_false_true() helper to "true" or "false" string literal. And we found more than 10 cases currently exist in the tree

Re: [PATCH v3] arm64: smp: smp_send_stop() and crash_smp_send_stop() should try non-NMI first

2024-08-23 Thread Will Deacon
On Wed, 21 Aug 2024 14:53:57 -0700, Douglas Anderson wrote: > When testing hard lockup handling on my sc7180-trogdor-lazor device > with pseudo-NMI enabled, with serial console enabled and with kgdb > disabled, I found that the stack crawls printed to the serial console > ended up as a jumbled mess

[PATCH v2] params: Annotate struct module_param_attrs with __counted_by()

2024-08-23 Thread Thorsten Blum
Add the __counted_by compiler attribute to the flexible array member attrs to improve access bounds-checking via CONFIG_UBSAN_BOUNDS and CONFIG_FORTIFY_SOURCE. Increment num before adding a new param_attribute to the attrs array and adjust the array index accordingly. Increment num immediately aft

Re: [PATCH v3] arm64: smp: smp_send_stop() and crash_smp_send_stop() should try non-NMI first

2024-08-23 Thread Doug Anderson
Hi Will, On Fri, Aug 23, 2024 at 3:46 AM Will Deacon wrote: > > Hi Doug, > > On Wed, Aug 21, 2024 at 02:53:57PM -0700, Douglas Anderson wrote: > > When testing hard lockup handling on my sc7180-trogdor-lazor device > > with pseudo-NMI enabled, with serial console enabled and with kgdb > > disable

Re: [PATCH -next 0/2] Add str_true_false()/str_false_true() helper

2024-08-23 Thread Andy Shevchenko
On Fri, Aug 23, 2024 at 09:38:39PM +0800, Greg KH wrote: > On Fri, Aug 23, 2024 at 04:22:32PM +0300, Andy Shevchenko wrote: > > On Fri, Aug 23, 2024 at 9:13 AM Hongbo Li wrote: > > > > > > Add str_true_false()/str_false_true() helper to "true" or "false" > > > string literal. And we found more tha

Re: [PATCH] params: Annotate struct module_param_attrs with __counted_by()

2024-08-23 Thread Andy Shevchenko
On Fri, Aug 23, 2024 at 02:33:00PM +0200, Thorsten Blum wrote: > Add the __counted_by compiler attribute to the flexible array member > attrs to improve access bounds-checking via CONFIG_UBSAN_BOUNDS and > CONFIG_FORTIFY_SOURCE. > > Increment num before adding a new param_attribute to the attrs ar

Re: [PATCH -next 0/2] Add str_true_false()/str_false_true() helper

2024-08-23 Thread Greg KH
On Fri, Aug 23, 2024 at 04:22:32PM +0300, Andy Shevchenko wrote: > On Fri, Aug 23, 2024 at 9:13 AM Hongbo Li wrote: > > > > Add str_true_false()/str_false_true() helper to "true" or "false" > > string literal. And we found more than 10 cases currently exist > > in the tree. So these helpers can be

Re: [PATCH -next 0/2] Add str_true_false()/str_false_true() helper

2024-08-23 Thread Andy Shevchenko
On Fri, Aug 23, 2024 at 9:13 AM Hongbo Li wrote: > > Add str_true_false()/str_false_true() helper to "true" or "false" > string literal. And we found more than 10 cases currently exist > in the tree. So these helpers can be used for these cases. Squash them into a single patch. There is no need t

[PATCH] params: Annotate struct module_param_attrs with __counted_by()

2024-08-23 Thread Thorsten Blum
Add the __counted_by compiler attribute to the flexible array member attrs to improve access bounds-checking via CONFIG_UBSAN_BOUNDS and CONFIG_FORTIFY_SOURCE. Increment num before adding a new param_attribute to the attrs array and adjust the array index accordingly. Increment num immediately aft

[PATCH] smb: Annotate struct xattr_smb_acl with __counted_by()

2024-08-23 Thread Thorsten Blum
Add the __counted_by compiler attribute to the flexible array member entries to improve access bounds-checking via CONFIG_UBSAN_BOUNDS and CONFIG_FORTIFY_SOURCE. Signed-off-by: Thorsten Blum --- fs/smb/server/xattr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/smb/serv

Re: [PATCH v3] arm64: smp: smp_send_stop() and crash_smp_send_stop() should try non-NMI first

2024-08-23 Thread Will Deacon
Hi Doug, On Wed, Aug 21, 2024 at 02:53:57PM -0700, Douglas Anderson wrote: > When testing hard lockup handling on my sc7180-trogdor-lazor device > with pseudo-NMI enabled, with serial console enabled and with kgdb > disabled, I found that the stack crawls printed to the serial console > ended up a

[PATCH V8 1/2] dt-bindings: iio: aw96103: Add bindings for aw96103/aw96105 sensor

2024-08-23 Thread wangshuaijie
From: shuaijie wang Add device tree bindings for aw96103/aw96105 proximity sensor. Reviewed-by: Krzysztof Kozlowski Signed-off-by: shuaijie wang --- .../iio/proximity/awinic,aw96103.yaml | 61 +++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devi

[PATCH V8 2/2] iio: proximity: aw96103: Add support for aw96103/aw96105 proximity sensor

2024-08-23 Thread wangshuaijie
From: shuaijie wang AW96103 is a low power consumption capacitive touch and proximity controller. Each channel can be independently config as sensor input, shield output. Channel Information: aw96103: 3-channel aw96105: 5-channel Signed-off-by: shuaijie wang --- drivers/iio/proximity/Kcon

[PATCH V8 0/2] Add support for aw96103/aw96105 proximity sensor

2024-08-23 Thread wangshuaijie
From: shuaijie wang Add drivers that support Awinic aw96103/aw96105 proximity sensors. The aw9610x series are high-sensitivity capacitive proximity detection sensors. This device detects human proximity and assists electronic devices in reducing specific absorption rate (SAR) to pass SAR related

Re: [PATCH] leds: gpio: Set num_leds after allocation

2024-08-23 Thread Lee Jones
On Thu, 22 Aug 2024, Kees Cook wrote: > On Thu, Jul 25, 2024 at 11:22:40AM +0100, Lee Jones wrote: > > On Tue, 16 Jul 2024, Gustavo A. R. Silva wrote: > > > > > > > > > > > On 16/07/24 15:24, Kees Cook wrote: > > > > With the new __counted_by annotation, the "num_leds" variable needs to > > > >

Re: (subset) [PATCH] leds: gpio: Set num_leds after allocation

2024-08-23 Thread Lee Jones
On Tue, 16 Jul 2024 14:24:59 -0700, Kees Cook wrote: > With the new __counted_by annotation, the "num_leds" variable needs to > valid for accesses to the "leds" array. This requirement is not met in > gpio_leds_create(), since "num_leds" starts at "0", so "leds" index "0" > will not be considered v