[linus:master] [ubsan] 557f8c582a: UBSAN:signed-integer-overflow_in_fs/sync.c

2024-10-28 Thread kernel test robot
race ]--- The kernel config and materials to reproduce are available at: https://download.01.org/0day-ci/archive/20241028/202410281544.bd98d329-...@intel.com -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki

Re: [PATCH] wifi: nl80211: fix bounds checker error in nl80211_parse_sched_scan

2024-10-28 Thread Gustavo A. R. Silva
GFP_KERNEL); if (!request) return ERR_PTR(-ENOMEM); + request->n_channels = n_channels; if (n_ssids) request->ssids = (void *)request + --- base-commit: 81983758430957d9a5cbfe324fd70cf63e7e change-id: 20241028-nl80211_parse_sched_scan-bo

Re: [PATCH] ASoC: dapm: fix bounds checker error in dapm_widget_list_create

2024-10-28 Thread Gustavo A. R. Silva
70cf63e7e change-id: 20241028-soc-dapm-bounds-checker-fix-5bae621455b2 Best regards,

[PATCH] ASoC: dapm: fix bounds checker error in dapm_widget_list_create

2024-10-28 Thread Aleksei Vetrov
commit: 81983758430957d9a5cbfe324fd70cf63e7e change-id: 20241028-soc-dapm-bounds-checker-fix-5bae621455b2 Best regards, -- Aleksei Vetrov

Re: [PATCH 2/2][next] net: ethtool: Avoid thousands of -Wflex-array-member-not-at-end warnings

2024-10-28 Thread Jakub Kicinski
On Mon, 21 Oct 2024 13:02:27 -0600 Gustavo A. R. Silva wrote: > Fix 3338 of the following -Wflex-array-member-not-at-end warnings: > > include/linux/ethtool.h:214:38: warning: structure containing a flexible > array member is not at the end of another structure > [-Wflex-array-member-not-at-end]

Re: [PATCH v2 1/4][next] uapi: socket: Introduce struct sockaddr_legacy

2024-10-28 Thread Kees Cook
On Mon, Oct 28, 2024 at 09:38:46PM +0100, Andrew Lunn wrote: > > As this new struct will live in UAPI, to avoid breaking user-space code > > that expects `struct sockaddr`, the `__kernel_sockaddr_legacy` macro is > > introduced. This macro allows us to use either `struct sockaddr` or > > `struct so

Re: [PATCH 2/2][next] net: ethtool: Avoid thousands of -Wflex-array-member-not-at-end warnings

2024-10-28 Thread Gustavo A. R. Silva
On 28/10/24 17:21, Jakub Kicinski wrote: On Mon, 21 Oct 2024 13:02:27 -0600 Gustavo A. R. Silva wrote: Fix 3338 of the following -Wflex-array-member-not-at-end warnings: include/linux/ethtool.h:214:38: warning: structure containing a flexible array member is not at the end of another struct

Re: [PATCH v2 1/4][next] uapi: socket: Introduce struct sockaddr_legacy

2024-10-28 Thread Kees Cook
On Thu, Oct 24, 2024 at 03:11:24PM -0600, Gustavo A. R. Silva wrote: > diff --git a/include/uapi/linux/socket.h b/include/uapi/linux/socket.h > index d3fcd3b5ec53..2e179706bec4 100644 > --- a/include/uapi/linux/socket.h > +++ b/include/uapi/linux/socket.h > @@ -35,4 +35,32 @@ struct __kernel_sockad

Re: [PATCH v2 2/4][next] uapi: wireless: Avoid -Wflex-array-member-not-at-end warnings

2024-10-28 Thread Kees Cook
On Thu, Oct 24, 2024 at 03:12:02PM -0600, Gustavo A. R. Silva wrote: > -Wflex-array-member-not-at-end was introduced in GCC-14, and we are > getting ready to enable it, globally. > > Address the following warnings by changing the type of the middle struct > members in various composite structs, wh

Re: [PATCH v2 3/4][next] uapi: net: arp: Avoid -Wflex-array-member-not-at-end warnings

2024-10-28 Thread Kees Cook
On Thu, Oct 24, 2024 at 03:13:45PM -0600, Gustavo A. R. Silva wrote: > -Wflex-array-member-not-at-end was introduced in GCC-14, and we are > getting ready to enable it, globally. > > Address the following warnings by changing the type of the middle struct > members in a couple of composite structs

Re: [PATCH v2 1/4][next] uapi: socket: Introduce struct sockaddr_legacy

2024-10-28 Thread Kees Cook
On Mon, Oct 28, 2024 at 09:47:08PM +0100, Johannes Berg wrote: > On Mon, 2024-10-28 at 21:38 +0100, Andrew Lunn wrote: > > > As this new struct will live in UAPI, to avoid breaking user-space code > > > that expects `struct sockaddr`, the `__kernel_sockaddr_legacy` macro is > > > introduced. This m

Re: [PATCH] ASoC: dapm: fix bounds checker error in dapm_widget_list_create

2024-10-28 Thread Kees Cook
(*list)->num_widgets = size; > > + > > list_for_each_entry(w, widgets, work_list) > > (*list)->widgets[i++] = w; > > > > --- > > base-commit: 81983758430957d9a5cbfe324fd70cf63e7e > > change-id: 20241028-soc-dapm-bounds-checker-fix-5bae621455b2 > > > > Best regards, > > -- Kees Cook

Re: [PATCH] wifi: nl80211: fix bounds checker error in nl80211_parse_sched_scan

2024-10-28 Thread Kees Cook
se_sched_scan(struct wiphy *wiphy, struct > > wireless_dev *wdev, > > request = kzalloc(size, GFP_KERNEL); > > if (!request) > > return ERR_PTR(-ENOMEM); > > + request->n_channels = n_channels; > > if (n_ssids) > > request->ssids = (void *)request + > > > > --- > > base-commit: 81983758430957d9a5cbfe324fd70cf63e7e > > change-id: 20241028-nl80211_parse_sched_scan-bounds-checker-fix-c5842f41b863 > > > > Best regards, > -- Kees Cook

Re: [PATCH v2 4/4][next] uapi: net: Avoid -Wflex-array-member-not-at-end warnings

2024-10-28 Thread Kees Cook
On Thu, Oct 24, 2024 at 03:14:31PM -0600, Gustavo A. R. Silva wrote: > -Wflex-array-member-not-at-end was introduced in GCC-14, and we are > getting ready to enable it, globally. > > Address the following warnings by changing the type of the middle struct > members in a couple of composite structs

Re: [PATCH v2 1/4][next] uapi: socket: Introduce struct sockaddr_legacy

2024-10-28 Thread Andrew Lunn
> As this new struct will live in UAPI, to avoid breaking user-space code > that expects `struct sockaddr`, the `__kernel_sockaddr_legacy` macro is > introduced. This macro allows us to use either `struct sockaddr` or > `struct sockaddr_legacy` depending on the context in which the code is > used:

Re: [PATCH 2/2][next] net: ethtool: Avoid thousands of -Wflex-array-member-not-at-end warnings

2024-10-28 Thread Jakub Kicinski
On Mon, 28 Oct 2024 17:32:53 -0600 Gustavo A. R. Silva wrote: > >> Additionally, update the type of some variables in various functions > >> that don't access the flexible-array member, changing them to the > >> newly created `struct ethtool_link_settings_hdr`. > > > > Why? Please avoid unnecess

Re: [PATCH 2/2][next] net: ethtool: Avoid thousands of -Wflex-array-member-not-at-end warnings

2024-10-28 Thread Gustavo A. R. Silva
On 28/10/24 18:32, Jakub Kicinski wrote: On Mon, 28 Oct 2024 17:32:53 -0600 Gustavo A. R. Silva wrote: Additionally, update the type of some variables in various functions that don't access the flexible-array member, changing them to the newly created `struct ethtool_link_settings_hdr`. Why

[RESEND PATCH] nfs: Annotate struct pnfs_commit_array with __counted_by()

2024-10-28 Thread Thorsten Blum
Add the __counted_by compiler attribute to the flexible array member buckets to improve access bounds-checking via CONFIG_UBSAN_BOUNDS and CONFIG_FORTIFY_SOURCE. Compile-tested only. Signed-off-by: Thorsten Blum --- include/linux/nfs_xdr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH] clocksource/drivers/timer-sprd: Select driver on ARM and ARM64

2024-10-28 Thread Daniel Lezcano
On 19/09/2024 09:25, Enlin Mu wrote: From: Enlin Mu sprd timer is currently available on ARM and ARM64 based devices. Thus select it for ARM and ARM64 Can you answer Baolin's question ? Or can you tell what is the rational behind this change ? -- Linaro.org │ Open

Re: [PATCH v3 0/6] Add Nothing Phone (1) support

2024-10-28 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (main) by Jakub Kicinski : On Sun, 20 Oct 2024 23:56:08 +0300 you wrote: > This series of patches adds support for the Nothing Phone (1), identified > as nothing,spacewar. The Nothing Phone (1) is built on the Qualcomm > Snapdragon 778G+ (SM73

Re: [PATCH v2 1/4][next] uapi: socket: Introduce struct sockaddr_legacy

2024-10-28 Thread Johannes Berg
On Mon, 2024-10-28 at 21:38 +0100, Andrew Lunn wrote: > > As this new struct will live in UAPI, to avoid breaking user-space code > > that expects `struct sockaddr`, the `__kernel_sockaddr_legacy` macro is > > introduced. This macro allows us to use either `struct sockaddr` or > > `struct sockaddr_

[PATCH] wifi: nl80211: fix bounds checker error in nl80211_parse_sched_scan

2024-10-28 Thread Aleksei Vetrov via B4 Relay
commit: 81983758430957d9a5cbfe324fd70cf63e7e change-id: 20241028-nl80211_parse_sched_scan-bounds-checker-fix-c5842f41b863 Best regards, -- Aleksei Vetrov