Re: [PATCH 1/3] powerpc/pseries: Correct secvar format representation for static key management

2025-05-12 Thread Srish Srinivasan
On 5/12/25 3:25 PM, Andrew Donnellan wrote: On Wed, 2025-05-07 at 00:29 +0530, Srish Srinivasan wrote: I think you should handle this as the existing code does: if it's ENOENT, return 0, and for other codes print an error and return - EIO. Currently, the other layers in the boot stack assume

[powerpc:next-test] BUILD SUCCESS 2c54e431574f829ec0895d5104575b3f209eae28

2025-05-12 Thread kernel test robot
allmodconfiggcc-14.2.0 arc allnoconfiggcc-14.2.0 arc allyesconfiggcc-14.2.0 arc defconfiggcc-14.2.0 arc randconfig-001-20250512gcc-14.2.0 arc

Re: Crash in __do_IRQ with gcc 15

2025-05-12 Thread LEROY Christophe
Hi Arnd, Do you know when you will be able to add GCC 15 to https://mirrors.edge.kernel.org/pub/tools/crosstool/ ? Thanks Christophe Le 10/05/2025 à 03:35, Paul Mackerras a écrit : > Running Linux on Microwatt with a kernel compiled on an x86-64 system > running Fedora 42 (using the packaged cr

[PATCH] powerpc/vdso: Fix build of VDSO32 with pcrel

2025-05-12 Thread Christophe Leroy
Building vdso32 on power10 with pcrel leads to following errors: VDSO32A arch/powerpc/kernel/vdso/gettimeofday-32.o arch/powerpc/kernel/vdso/gettimeofday.S: Assembler messages: arch/powerpc/kernel/vdso/gettimeofday.S:40: Error: syntax error; found `@', expected `,'

[powerpc:merge] BUILD SUCCESS c6127e778e8e7a30329c929c19cf799cde965ac1

2025-05-12 Thread kernel test robot
14.2.0 arc allmodconfiggcc-14.2.0 arc allnoconfiggcc-14.2.0 arc allyesconfiggcc-14.2.0 arc defconfiggcc-14.2.0 arc randconfig-001-20250512gcc-14.2.0 arc rand

[PATCH v5 0/7] fs: introduce file_getattr and file_setattr syscalls

2025-05-12 Thread Andrey Albershteyn
This patchset introduced two new syscalls file_getattr() and file_setattr(). These syscalls are similar to FS_IOC_FSSETXATTR ioctl() except they use *at() semantics. Therefore, there's no need to open the file to get a fd. These syscalls allow userspace to set filesystem inode attributes on specia

[PATCH v5 2/7] lsm: introduce new hooks for setting/getting inode fsxattr

2025-05-12 Thread Andrey Albershteyn
Introduce new hooks for setting and getting filesystem extended attributes on inode (FS_IOC_FSGETXATTR). Cc: seli...@vger.kernel.org Cc: Paul Moore Signed-off-by: Andrey Albershteyn --- fs/file_attr.c| 19 --- include/linux/lsm_hook_defs.h | 2 ++ include/linux

[PATCH v5 3/7] selinux: implement inode_file_[g|s]etattr hooks

2025-05-12 Thread Andrey Albershteyn
These hooks are called on inode extended attribute retrieval/change. Cc: seli...@vger.kernel.org Cc: Paul Moore Signed-off-by: Andrey Albershteyn --- security/selinux/hooks.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c

[PATCH v5 1/7] fs: split fileattr related helpers into separate file

2025-05-12 Thread Andrey Albershteyn
From: Andrey Albershteyn This patch moves function related to file extended attributes manipulations to separate file. Just refactoring. Signed-off-by: Andrey Albershteyn --- fs/Makefile | 3 +- fs/file_attr.c | 318 +++ fs/i

[PATCH v5 5/7] fs: make vfs_fileattr_[get|set] return -EOPNOSUPP

2025-05-12 Thread Andrey Albershteyn
Future patches will add new syscalls which use these functions. As this interface won't be used for ioctls only the EOPNOSUPP is more appropriate return code. This patch coverts return code from ENOIOCTLCMD to EOPNOSUPP for vfs_fileattr_get and vfs_fileattr_set. To save old behavior translate EOPN

[PATCH v5 2/7] lsm: introduce new hooks for setting/getting inode fsxattr

2025-05-12 Thread Andrey Albershteyn
Introduce new hooks for setting and getting filesystem extended attributes on inode (FS_IOC_FSGETXATTR). Cc: seli...@vger.kernel.org Cc: Paul Moore Signed-off-by: Andrey Albershteyn --- fs/file_attr.c| 19 --- include/linux/lsm_hook_defs.h | 2 ++ include/linux

[PATCH v5 1/7] fs: split fileattr related helpers into separate file

2025-05-12 Thread Andrey Albershteyn
From: Andrey Albershteyn This patch moves function related to file extended attributes manipulations to separate file. Just refactoring. Signed-off-by: Andrey Albershteyn --- fs/Makefile | 3 +- fs/file_attr.c | 318 +++ fs/i

[PATCH v5 0/7] fs: introduce file_getattr and file_setattr syscalls

2025-05-12 Thread Andrey Albershteyn
This patchset introduced two new syscalls file_getattr() and file_setattr(). These syscalls are similar to FS_IOC_FSSETXATTR ioctl() except they use *at() semantics. Therefore, there's no need to open the file to get a fd. These syscalls allow userspace to set filesystem inode attributes on specia

Re: [PATCH v5 0/7] fs: introduce file_getattr and file_setattr syscalls

2025-05-12 Thread Andrey Albershteyn
On 2025-05-12 15:18:53, Andrey Albershteyn wrote: > This patchset introduced two new syscalls file_getattr() and > file_setattr(). These syscalls are similar to FS_IOC_FSSETXATTR ioctl() > except they use *at() semantics. Therefore, there's no need to open the > file to get a fd. > > These syscall

[PATCH v5 4/7] fs: split fileattr/fsxattr converters into helpers

2025-05-12 Thread Andrey Albershteyn
This will be helpful for file_get/setattr syscalls to convert between fileattr and fsxattr. Signed-off-by: Andrey Albershteyn Reviewed-by: Jan Kara --- fs/file_attr.c | 32 +--- include/linux/fileattr.h | 2 ++ 2 files changed, 23 insertions(+), 11 deletio

Re: [PATCH v5 0/7] fs: introduce file_getattr and file_setattr syscalls

2025-05-12 Thread Andrey Albershteyn
On 2025-05-12 15:25:11, Andrey Albershteyn wrote: > This patchset introduced two new syscalls file_getattr() and > file_setattr(). These syscalls are similar to FS_IOC_FSSETXATTR ioctl() > except they use *at() semantics. Therefore, there's no need to open the > file to get a fd. > > These syscall

Re: [PATCH v5 5/7] fs: make vfs_fileattr_[get|set] return -EOPNOSUPP

2025-05-12 Thread Andrey Albershteyn
On 2025-05-12 15:22:52, Andrey Albershteyn wrote: > Future patches will add new syscalls which use these functions. As > this interface won't be used for ioctls only the EOPNOSUPP is more > appropriate return code. > > This patch coverts return code from ENOIOCTLCMD to EOPNOSUPP for > vfs_fileattr

[PATCH v3] powerpc/pseries/iommu: Fix kmemleak in TCE table userspace view

2025-05-12 Thread Gaurav Batra
When a device is opened by a userspace driver, via VFIO interface, DMA window is created. This DMA window has TCE Table and a corresponding data for userview of TCE table. When the userspace driver closes the device, all the above infrastructure is free'ed and the device control given back to kern

Re: [PATCH v4 2/6] accel/ivpu: Use effective buffer size for zero terminator

2025-05-12 Thread Jacek Lawrynowicz
Thanks for the fix, applied to drm-misc-fixes On 5/8/2025 3:06 PM, Markus Burri wrote: > Use the effective written size instead of original size as index for zero > termination. If the input from user-space is to larger and the input is > truncated, the original size is out-of-bound. > Since there

Re: [PATCH v4 2/6] accel/ivpu: Use effective buffer size for zero terminator

2025-05-12 Thread Jacek Lawrynowicz
Reviewed-by: Jacek Lawrynowicz On 5/8/2025 3:06 PM, Markus Burri wrote: > Use the effective written size instead of original size as index for zero > termination. If the input from user-space is to larger and the input is > truncated, the original size is out-of-bound. > Since there is an upfront

Re: [PATCH] dt-bindings: soc: fsl,qman-fqd: Fix reserved-memory.yaml reference

2025-05-12 Thread Rob Herring (Arm)
On Wed, 07 May 2025 10:42:31 -0500, Rob Herring (Arm) wrote: > The reserved-memory.yaml reference needs the full path. No warnings were > generated because the example has the wrong compatible string, so fix > that too. > > Fixes: 304a90c4f75d ("dt-bindings: soc: fsl: Convert q(b)man-* to yaml

Re: [PATCH v5 2/7] lsm: introduce new hooks for setting/getting inode fsxattr

2025-05-12 Thread Casey Schaufler
On 5/12/2025 6:25 AM, Andrey Albershteyn wrote: > Introduce new hooks for setting and getting filesystem extended > attributes on inode (FS_IOC_FSGETXATTR). > > Cc: seli...@vger.kernel.org > Cc: Paul Moore > > Signed-off-by: Andrey Albershteyn > --- > fs/file_attr.c| 19 +

Re: [PATCH 1/3] powerpc/pseries: Correct secvar format representation for static key management

2025-05-12 Thread Andrew Donnellan
On Wed, 2025-05-07 at 21:18 +0530, Srish Srinivasan wrote: > > We expect SB_VERSION to always be world-readable, I think? In which > > case it shouldn't return H_AUTHORITY / -EPERM, ever, and if it does > > that's an error which should be handled as an error. Or am I > > misinterpreting the spec he

Re: [PATCH 1/3] powerpc/pseries: Correct secvar format representation for static key management

2025-05-12 Thread Andrew Donnellan
On Wed, 2025-05-07 at 00:29 +0530, Srish Srinivasan wrote: > > I think you should handle this as the existing code does: if it's > > ENOENT, return 0, and for other codes print an error and return - > > EIO. > Currently, the other layers in the boot stack assume static key mode > for > any failure

Re: [PATCH v2 00/57] irqdomain: Cleanups and Documentation

2025-05-12 Thread Jiri Slaby
On 06. 05. 25, 15:41, Thomas Gleixner wrote: On Wed, Mar 19 2025 at 10:28, Jiri Slaby wrote: Hi, tl;dr if patches are agreed upon, I ask subsys maintainers to take the respective ones via their trees (as they are split per subsys), so that the IRQ tree can take only the rest. That would minimi