Re: [GIT PULL] Enable -Wstringop-overflow globally

2024-02-02 Thread Linus Torvalds
On Thu, 1 Feb 2024 at 23:53, Arnd Bergmann wrote: > > I did a creduce pass on this warning when it first showed up > and opened a gcc bug report as well as a driver workaround: > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113214 > https://lore.kernel.org/lkml/20240103114819.2913937-1-a...@kern

Re: [GIT PULL] Enable -Wstringop-overflow globally

2024-02-01 Thread Arnd Bergmann
On Fri, Jan 26, 2024, at 22:22, Linus Torvalds wrote: > On Mon, 22 Jan 2024 at 07:29, Gustavo A. R. Silva > wrote: >> >> Enable -Wstringop-overflow globally > > I suspect I'll have to revert this. > > On arm64, I get a "writing 16 bytes into a region of size 0" in the Xe driver > >drivers/gpu

RE: [GIT PULL] Enable -Wstringop-overflow globally

2024-01-27 Thread David Laight
From: Linus Torvalds > Sent: 26 January 2024 22:36 > > On Fri, 26 Jan 2024 at 14:24, Kees Cook wrote: > > > > I think xe has some other weird problems too. This may be related (under > > allocating): > > > > ../drivers/gpu/drm/xe/xe_vm.c: In function 'xe_vma_create': > > ../drivers/gpu/drm/xe/xe_

Re: [GIT PULL] Enable -Wstringop-overflow globally

2024-01-26 Thread Linus Torvalds
On Fri, 26 Jan 2024 at 14:24, Kees Cook wrote: > > I think xe has some other weird problems too. This may be related (under > allocating): > > ../drivers/gpu/drm/xe/xe_vm.c: In function 'xe_vma_create': > ../drivers/gpu/drm/xe/xe_vm.c:806:21: warning: allocation of insufficient > size '224' for t

Re: [GIT PULL] Enable -Wstringop-overflow globally

2024-01-26 Thread Kees Cook
On Fri, Jan 26, 2024 at 03:30:20PM -0600, Gustavo A. R. Silva wrote: > > > On 1/26/24 15:22, Linus Torvalds wrote: > > On Mon, 22 Jan 2024 at 07:29, Gustavo A. R. Silva > > wrote: > > > > > > Enable -Wstringop-overflow globally > > > > I suspect I'll have to revert this. > > > > On arm64, I

Re: [GIT PULL] Enable -Wstringop-overflow globally

2024-01-26 Thread Gustavo A. R. Silva
On 1/26/24 15:22, Linus Torvalds wrote: On Mon, 22 Jan 2024 at 07:29, Gustavo A. R. Silva wrote: Enable -Wstringop-overflow globally I suspect I'll have to revert this. On arm64, I get a "writing 16 bytes into a region of size 0" in the Xe driver drivers/gpu/drm/xe/xe_gt_pagefault.c

Re: [GIT PULL] Enable -Wstringop-overflow globally

2024-01-26 Thread Linus Torvalds
On Mon, 22 Jan 2024 at 07:29, Gustavo A. R. Silva wrote: > > Enable -Wstringop-overflow globally I suspect I'll have to revert this. On arm64, I get a "writing 16 bytes into a region of size 0" in the Xe driver drivers/gpu/drm/xe/xe_gt_pagefault.c:340 but I haven't looked into it much yet.

Re: [GIT PULL] Enable -Wstringop-overflow globally

2024-01-22 Thread pr-tracker-bot
The pull request you sent on Mon, 22 Jan 2024 09:29:05 -0600: > git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git > tags/Wstringop-overflow-for-6.8-rc2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/610347effc2ecb5ededf5037e82240b151f883ab Thank you!

[GIT PULL] Enable -Wstringop-overflow globally

2024-01-22 Thread Gustavo A. R. Silva
The following changes since commit 6613476e225e090cc9aad49be7fa504e290dd33d: Linux 6.8-rc1 (2024-01-21 14:11:32 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git tags/Wstringop-overflow-for-6.8-rc2 for you to fetch changes up