Re: [RFC PATCH 00/20] Introduce the famfs shared-memory file system

2024-06-24 Thread John Groves
On 24/05/23 03:57PM, Miklos Szeredi wrote: > [trimming CC list] > > On Thu, 23 May 2024 at 04:49, John Groves wrote: > > > - memmap=! will reserve a pretend pmem device at > > > > - memmap=$ will reserve a pretend dax device at > > > > Doesn't get me a /dev/dax or /dev/pmem > > Complete qe

Re: [RFC PATCH 00/20] Introduce the famfs shared-memory file system

2024-05-25 Thread Dave Chinner
On Fri, May 24, 2024 at 09:55:48AM +0200, Miklos Szeredi wrote: > On Fri, 24 May 2024 at 02:47, John Groves wrote: > > > Apologies, but I'm short on time at the moment - going into a long holiday > > weekend in the US with family plans. I should be focused again by middle of > > next week. > > N

Re: [RFC PATCH 00/20] Introduce the famfs shared-memory file system

2024-05-24 Thread Miklos Szeredi
On Fri, 24 May 2024 at 02:47, John Groves wrote: > Apologies, but I'm short on time at the moment - going into a long holiday > weekend in the US with family plans. I should be focused again by middle of > next week. NP. Obviously I'll need to test it before anything is merged, other than that

Re: [RFC PATCH 00/20] Introduce the famfs shared-memory file system

2024-05-23 Thread John Groves
On 24/05/23 03:57PM, Miklos Szeredi wrote: > [trimming CC list] > > On Thu, 23 May 2024 at 04:49, John Groves wrote: > > > - memmap=! will reserve a pretend pmem device at > > > > - memmap=$ will reserve a pretend dax device at > > > > Doesn't get me a /dev/dax or /dev/pmem > > Complete qe

Re: [RFC PATCH 00/20] Introduce the famfs shared-memory file system

2024-05-23 Thread Miklos Szeredi
[trimming CC list] On Thu, 23 May 2024 at 04:49, John Groves wrote: > - memmap=! will reserve a pretend pmem device at > > - memmap=$ will reserve a pretend dax device at Doesn't get me a /dev/dax or /dev/pmem Complete qemu command line: qemu-kvm -s -serial none -parallel none -kernel /hom

Re: [PATCH 3/9] powerpc/pseries: remove the ppc-cmm file system

2021-03-11 Thread Christoph Hellwig
On Wed, Mar 10, 2021 at 04:29:51PM +, Al Viro wrote: > On Tue, Mar 09, 2021 at 04:53:42PM +0100, Christoph Hellwig wrote: > > Just use the generic anon_inode file system. > > Umm... The only problem I see here is the lifetime rules for > that module, and that's not

Re: [PATCH 4/9] drm: remove the drm file system

2021-03-11 Thread Christoph Hellwig
On Wed, Mar 10, 2021 at 04:32:34PM +, Al Viro wrote: > On Tue, Mar 09, 2021 at 04:53:43PM +0100, Christoph Hellwig wrote: > > Just use the generic anon_inode file system. > > Are you changing the lifetime rules for that module? The core drm module is pinned by the actual drive

Re: [PATCH 4/9] drm: remove the drm file system

2021-03-10 Thread Al Viro
On Tue, Mar 09, 2021 at 04:53:43PM +0100, Christoph Hellwig wrote: > Just use the generic anon_inode file system. Are you changing the lifetime rules for that module?

Re: [PATCH 3/9] powerpc/pseries: remove the ppc-cmm file system

2021-03-10 Thread Al Viro
On Tue, Mar 09, 2021 at 04:53:42PM +0100, Christoph Hellwig wrote: > Just use the generic anon_inode file system. Umm... The only problem I see here is the lifetime rules for that module, and that's not something introduced in this patchset. Said that, looks like the logics around that

Re: [PATCH 9/9] zsmalloc: remove the zsmalloc file system

2021-03-09 Thread Minchan Kim
On Tue, Mar 09, 2021 at 04:53:48PM +0100, Christoph Hellwig wrote: > Just use the generic anon_inode file system. > > Signed-off-by: Christoph Hellwig Acked-by: Minchan Kim

Re: [PATCH 3/9] powerpc/pseries: remove the ppc-cmm file system

2021-03-09 Thread Jason Gunthorpe
On Tue, Mar 09, 2021 at 04:53:42PM +0100, Christoph Hellwig wrote: > Just use the generic anon_inode file system. > > Signed-off-by: Christoph Hellwig > arch/powerpc/platforms/pseries/cmm.c | 27 ++- > 1 file changed, 2 insertions(+), 25 deletions(-) &g

Re: [PATCH 6/9] virtio_balloon: remove the balloon-kvm file system

2021-03-09 Thread David Hildenbrand
On 09.03.21 16:53, Christoph Hellwig wrote: Just use the generic anon_inode file system. Signed-off-by: Christoph Hellwig --- drivers/virtio/virtio_balloon.c | 30 +++--- 1 file changed, 3 insertions(+), 27 deletions(-) diff --git a/drivers/virtio/virtio_balloon.c b

Re: [PATCH 5/9] vmw_balloon: remove the balloon-vmware file system

2021-03-09 Thread David Hildenbrand
On 09.03.21 16:53, Christoph Hellwig wrote: Just use the generic anon_inode file system. Signed-off-by: Christoph Hellwig --- drivers/misc/vmw_balloon.c | 24 ++-- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/drivers/misc/vmw_balloon.c b/drivers/misc

Re: [PATCH 3/9] powerpc/pseries: remove the ppc-cmm file system

2021-03-09 Thread David Hildenbrand
On 09.03.21 16:53, Christoph Hellwig wrote: Just use the generic anon_inode file system. Signed-off-by: Christoph Hellwig --- arch/powerpc/platforms/pseries/cmm.c | 27 ++- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/arch/powerpc/platforms/pseries

[PATCH 8/9] z3fold: remove the z3fold file system

2021-03-09 Thread Christoph Hellwig
Just use the generic anon_inode file system. Signed-off-by: Christoph Hellwig --- mm/z3fold.c | 38 ++ 1 file changed, 2 insertions(+), 36 deletions(-) diff --git a/mm/z3fold.c b/mm/z3fold.c index e7cd9298b221f5..e0749a3d8987de 100644 --- a/mm/z3fold.c +++ b

[PATCH 9/9] zsmalloc: remove the zsmalloc file system

2021-03-09 Thread Christoph Hellwig
Just use the generic anon_inode file system. Signed-off-by: Christoph Hellwig --- mm/zsmalloc.c | 48 +++- 1 file changed, 3 insertions(+), 45 deletions(-) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index a6449a2ad861de..a7d2f471935447 100644 --- a

[PATCH 7/9] iomem: remove the iomem file system

2021-03-09 Thread Christoph Hellwig
Just use the generic anon_inode file system. Signed-off-by: Christoph Hellwig --- kernel/resource.c | 30 -- 1 file changed, 4 insertions(+), 26 deletions(-) diff --git a/kernel/resource.c b/kernel/resource.c index 0fd091a3f2fc66..12560553c26796 100644 --- a/kernel

[PATCH 5/9] vmw_balloon: remove the balloon-vmware file system

2021-03-09 Thread Christoph Hellwig
Just use the generic anon_inode file system. Signed-off-by: Christoph Hellwig --- drivers/misc/vmw_balloon.c | 24 ++-- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/drivers/misc/vmw_balloon.c b/drivers/misc/vmw_balloon.c index 5d057a05ddbee8..be4be32f858253

[PATCH 6/9] virtio_balloon: remove the balloon-kvm file system

2021-03-09 Thread Christoph Hellwig
Just use the generic anon_inode file system. Signed-off-by: Christoph Hellwig --- drivers/virtio/virtio_balloon.c | 30 +++--- 1 file changed, 3 insertions(+), 27 deletions(-) diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c index

[PATCH 4/9] drm: remove the drm file system

2021-03-09 Thread Christoph Hellwig
Just use the generic anon_inode file system. Signed-off-by: Christoph Hellwig --- drivers/gpu/drm/drm_drv.c | 64 ++- 1 file changed, 3 insertions(+), 61 deletions(-) diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c index 87e7214a8e3565

[PATCH 3/9] powerpc/pseries: remove the ppc-cmm file system

2021-03-09 Thread Christoph Hellwig
Just use the generic anon_inode file system. Signed-off-by: Christoph Hellwig --- arch/powerpc/platforms/pseries/cmm.c | 27 ++- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/arch/powerpc/platforms/pseries/cmm.c b/arch/powerpc/platforms/pseries/cmm.c

[PATCH 06/13] ARM: configs: qcom_defconfig: Enable UBI file system

2021-01-17 Thread Manivannan Sadhasivam
Enable UBI file system support. Signed-off-by: Manivannan Sadhasivam --- arch/arm/configs/qcom_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/qcom_defconfig b/arch/arm/configs/qcom_defconfig index 07737cbe557f..51eeefd264d3 100644 --- a/arch/arm/configs

[PATCH 5.10 36/63] ext4: check for invalid block size early when mounting a file system

2021-01-04 Thread Greg Kroah-Hartman
e was valid. And then secondly, by checking s_log_block_size directly. The first check is not reliable, and can trigger an UBSAN warning if s_log_block_size on a maliciously corrupted superblock is greater than 22. This is harmless, since the second test will correctly reject the maliciously

[PATCH AUTOSEL 5.10 27/31] ext4: check for invalid block size early when mounting a file system

2020-12-30 Thread Sasha Levin
ocksize was valid. And then secondly, by checking s_log_block_size directly. The first check is not reliable, and can trigger an UBSAN warning if s_log_block_size on a maliciously corrupted superblock is greater than 22. This is harmless, since the second test will correctly reject the maliciously

[PATCH 5.9 66/75] gfs2: Dont freeze the file system during unmount

2020-12-10 Thread Greg Kroah-Hartman
the glops function causes the file system to be frozen. This is intended. However, GFS2's mount and unmount processes also hold the freeze glock to prevent other processes, perhaps on different cluster nodes, from mounting the frozen file system in read-write mode. Before this patch, there

[PATCH 4.14 26/85] gfs2: check for live vs. read-only file system in gfs2_fitrim

2020-11-17 Thread Greg Kroah-Hartman
From: Bob Peterson [ Upstream commit c5c68724696e7d2f8db58a5fce3673208d35c485 ] Before this patch, gfs2_fitrim was not properly checking for a "live" file system. If the file system had something to trim and the file system was read-only (or spectator) it would start the trim, b

[PATCH 5.9 091/255] gfs2: check for live vs. read-only file system in gfs2_fitrim

2020-11-17 Thread Greg Kroah-Hartman
From: Bob Peterson [ Upstream commit c5c68724696e7d2f8db58a5fce3673208d35c485 ] Before this patch, gfs2_fitrim was not properly checking for a "live" file system. If the file system had something to trim and the file system was read-only (or spectator) it would start the trim, b

[PATCH 5.4 057/151] gfs2: check for live vs. read-only file system in gfs2_fitrim

2020-11-17 Thread Greg Kroah-Hartman
From: Bob Peterson [ Upstream commit c5c68724696e7d2f8db58a5fce3673208d35c485 ] Before this patch, gfs2_fitrim was not properly checking for a "live" file system. If the file system had something to trim and the file system was read-only (or spectator) it would start the trim, b

[PATCH 4.19 034/101] gfs2: check for live vs. read-only file system in gfs2_fitrim

2020-11-17 Thread Greg Kroah-Hartman
From: Bob Peterson [ Upstream commit c5c68724696e7d2f8db58a5fce3673208d35c485 ] Before this patch, gfs2_fitrim was not properly checking for a "live" file system. If the file system had something to trim and the file system was read-only (or spectator) it would start the trim, b

[PATCH 4.9 28/78] gfs2: check for live vs. read-only file system in gfs2_fitrim

2020-11-17 Thread Greg Kroah-Hartman
From: Bob Peterson [ Upstream commit c5c68724696e7d2f8db58a5fce3673208d35c485 ] Before this patch, gfs2_fitrim was not properly checking for a "live" file system. If the file system had something to trim and the file system was read-only (or spectator) it would start the trim, b

[PATCH 4.4 22/64] gfs2: check for live vs. read-only file system in gfs2_fitrim

2020-11-17 Thread Greg Kroah-Hartman
From: Bob Peterson [ Upstream commit c5c68724696e7d2f8db58a5fce3673208d35c485 ] Before this patch, gfs2_fitrim was not properly checking for a "live" file system. If the file system had something to trim and the file system was read-only (or spectator) it would start the trim, b

[PATCH AUTOSEL 5.9 16/55] gfs2: check for live vs. read-only file system in gfs2_fitrim

2020-11-09 Thread Sasha Levin
From: Bob Peterson [ Upstream commit c5c68724696e7d2f8db58a5fce3673208d35c485 ] Before this patch, gfs2_fitrim was not properly checking for a "live" file system. If the file system had something to trim and the file system was read-only (or spectator) it would start the trim, b

[PATCH AUTOSEL 4.19 05/21] gfs2: check for live vs. read-only file system in gfs2_fitrim

2020-11-09 Thread Sasha Levin
From: Bob Peterson [ Upstream commit c5c68724696e7d2f8db58a5fce3673208d35c485 ] Before this patch, gfs2_fitrim was not properly checking for a "live" file system. If the file system had something to trim and the file system was read-only (or spectator) it would start the trim, b

[PATCH AUTOSEL 4.14 04/14] gfs2: check for live vs. read-only file system in gfs2_fitrim

2020-11-09 Thread Sasha Levin
From: Bob Peterson [ Upstream commit c5c68724696e7d2f8db58a5fce3673208d35c485 ] Before this patch, gfs2_fitrim was not properly checking for a "live" file system. If the file system had something to trim and the file system was read-only (or spectator) it would start the trim, b

[PATCH AUTOSEL 4.9 03/12] gfs2: check for live vs. read-only file system in gfs2_fitrim

2020-11-09 Thread Sasha Levin
From: Bob Peterson [ Upstream commit c5c68724696e7d2f8db58a5fce3673208d35c485 ] Before this patch, gfs2_fitrim was not properly checking for a "live" file system. If the file system had something to trim and the file system was read-only (or spectator) it would start the trim, b

[PATCH AUTOSEL 4.4 03/10] gfs2: check for live vs. read-only file system in gfs2_fitrim

2020-11-09 Thread Sasha Levin
From: Bob Peterson [ Upstream commit c5c68724696e7d2f8db58a5fce3673208d35c485 ] Before this patch, gfs2_fitrim was not properly checking for a "live" file system. If the file system had something to trim and the file system was read-only (or spectator) it would start the trim, b

[PATCH AUTOSEL 5.4 12/42] gfs2: check for live vs. read-only file system in gfs2_fitrim

2020-11-09 Thread Sasha Levin
From: Bob Peterson [ Upstream commit c5c68724696e7d2f8db58a5fce3673208d35c485 ] Before this patch, gfs2_fitrim was not properly checking for a "live" file system. If the file system had something to trim and the file system was read-only (or spectator) it would start the trim, b

Re: [PATCH v3 05/21] selftests/resctrl: Return if resctrl file system is not supported

2020-10-27 Thread Shuah Khan
On 10/20/20 5:51 PM, Fenghua Yu wrote: check_resctrlfs_support() checks if the platform supports resctrl file system or not by looking for resctrl in /proc/filesystems and returns a boolean value. The main function of resctrl test suite calls check_resctrlfs_support() but forgets to check for

[PATCH v3 05/21] selftests/resctrl: Return if resctrl file system is not supported

2020-10-20 Thread Fenghua Yu
check_resctrlfs_support() checks if the platform supports resctrl file system or not by looking for resctrl in /proc/filesystems and returns a boolean value. The main function of resctrl test suite calls check_resctrlfs_support() but forgets to check for it's return value. This means that re

Re: [RFC PATCH 0/7] metricfs metric file system and examples

2020-08-10 Thread Jakub Kicinski
On Sat, 8 Aug 2020 09:59:34 -0600 David Ahern wrote: > On 8/7/20 8:06 PM, Andrew Lunn wrote: > > So i personally don't think netdev statistics is a good idea, i doubt > > it scales. > > +1 +1 Please stop using networking as the example for this. We don't want file interfaces for stats, and we

Re: srvfs: file system for posting open file descriptors into fs namespace

2020-08-10 Thread Enrico Weigelt, metux IT consult
On 07.08.20 18:23, Al Viro wrote: Hi, >> This is a concept from Plan9. The main purpose is allowing applications >> "dialing" some connection, do initial handshakes (eg. authentication) >> and then publish the connection to other applications, that now can now >> make use of the already dialed co

Re: [RFC PATCH 0/7] metricfs metric file system and examples

2020-08-10 Thread Pavel Machek
On Fri 2020-08-07 14:29:09, Jonathan Adams wrote: > [resending to widen the CC lists per rdun...@infradead.org's suggestion > original posting to lkml here: https://lkml.org/lkml/2020/8/5/1009] > > To try to restart the discussion of kernel statistics started by the > statsfs patchsets (https://lk

Re: [RFC PATCH 0/7] metricfs metric file system and examples

2020-08-08 Thread David Ahern
On 8/7/20 8:06 PM, Andrew Lunn wrote: > So i personally don't think netdev statistics is a good idea, i doubt > it scales. +1

Re: [RFC PATCH 0/7] metricfs metric file system and examples

2020-08-07 Thread Andrew Lunn
> net/dev/stats/tx_bytes/annotations > DESCRIPTION net\ device\ transmited\ bytes\ count > CUMULATIVE > net/dev/stats/tx_bytes/fields > interface value > str int > net/dev/stats/tx_bytes/values > lo 4394430608 > eth0 33353183843 > eth1 16228847091 This is a rather small system. Have

[RFC PATCH 0/7] metricfs metric file system and examples

2020-08-07 Thread Jonathan Adams
[resending to widen the CC lists per rdun...@infradead.org's suggestion original posting to lkml here: https://lkml.org/lkml/2020/8/5/1009] To try to restart the discussion of kernel statistics started by the statsfs patchsets (https://lkml.org/lkml/2020/5/26/332), I wanted to share the following

Re: [RFC PATCH 0/7] metricfs metric file system and examples

2020-08-07 Thread Randy Dunlap
On 8/5/20 5:14 PM, Jonathan Adams wrote: > To try to restart the discussion of kernel statistics started by the > statsfs patchsets (https://lkml.org/lkml/2020/5/26/332), I wanted > to share the following set of patches which are Google's 'metricfs' > implementation and some example uses. Google h

Re: srvfs: file system for posting open file descriptors into fs namespace

2020-08-07 Thread Al Viro
On Fri, Aug 07, 2020 at 01:09:30PM +0200, Enrico Weigelt, metux IT consult wrote: > Hello folks, > > > here's the first version of my "srvfs" implementation - a synthentic > filesystem which allows a process to "publish" an open file descriptor > i

srvfs: file system for posting open file descriptors into fs namespace

2020-08-07 Thread Enrico Weigelt, metux IT consult
Hello folks, here's the first version of my "srvfs" implementation - a synthentic filesystem which allows a process to "publish" an open file descriptor into the file system, so other processes can continue from there, with whatever state the fd is already in. This is

[RFC PATCH 0/7] metricfs metric file system and examples

2020-08-05 Thread Jonathan Adams
To try to restart the discussion of kernel statistics started by the statsfs patchsets (https://lkml.org/lkml/2020/5/26/332), I wanted to share the following set of patches which are Google's 'metricfs' implementation and some example uses. Google has been using metricfs internally since 2012 as a

Re: add file system helpers that take kernel pointers for the init code v4

2020-08-03 Thread Christoph Hellwig
On Mon, Aug 03, 2020 at 10:56:23AM -0400, Qian Cai wrote: > On Tue, Jul 28, 2020 at 06:33:53PM +0200, Christoph Hellwig wrote: > > Hi Al and Linus, > > > > currently a lot of the file system calls in the early in code (and the > > devtmpfs kthread) rely on the implic

Re: add file system helpers that take kernel pointers for the init code v4

2020-08-03 Thread Qian Cai
On Tue, Jul 28, 2020 at 06:33:53PM +0200, Christoph Hellwig wrote: > Hi Al and Linus, > > currently a lot of the file system calls in the early in code (and the > devtmpfs kthread) rely on the implicit set_fs(KERNEL_DS) during boot. > This is one of the few last remaining places

Re: add file system helpers that take kernel pointers for the init code v4

2020-07-30 Thread Christoph Hellwig
On Fri, Jul 31, 2020 at 03:14:24AM +0100, Al Viro wrote: > Christoph Hellwig (28): > [snip] > initramfs: switch initramfs unpacking to struct file based APIs > initramfs: switch initramfs unpacking to struct file based APIs > [snip] > > It's not a bisect hazard, of course, but if you d

Re: add file system helpers that take kernel pointers for the init code v4

2020-07-30 Thread Al Viro
On Thu, Jul 30, 2020 at 08:25:24AM +0200, Christoph Hellwig wrote: > On Wed, Jul 29, 2020 at 08:51:17PM +0100, Al Viro wrote: > > On Tue, Jul 28, 2020 at 06:33:53PM +0200, Christoph Hellwig wrote: > > > Hi Al and Linus, > > > > > > currently a lot of the fi

Re: add file system helpers that take kernel pointers for the init code v4

2020-07-29 Thread Christoph Hellwig
On Wed, Jul 29, 2020 at 08:51:17PM +0100, Al Viro wrote: > On Tue, Jul 28, 2020 at 06:33:53PM +0200, Christoph Hellwig wrote: > > Hi Al and Linus, > > > > currently a lot of the file system calls in the early in code (and the > > devtmpfs kthread) rely on the implic

Re: add file system helpers that take kernel pointers for the init code v4

2020-07-29 Thread Al Viro
On Tue, Jul 28, 2020 at 06:33:53PM +0200, Christoph Hellwig wrote: > Hi Al and Linus, > > currently a lot of the file system calls in the early in code (and the > devtmpfs kthread) rely on the implicit set_fs(KERNEL_DS) during boot. > This is one of the few last remaining places

add file system helpers that take kernel pointers for the init code v4

2020-07-28 Thread Christoph Hellwig
Hi Al and Linus, currently a lot of the file system calls in the early in code (and the devtmpfs kthread) rely on the implicit set_fs(KERNEL_DS) during boot. This is one of the few last remaining places we need to deal with to kill off set_fs entirely, so this series adds new helpers that take

Re: add file system helpers that take kernel pointers for the init code v3

2020-07-26 Thread Al Viro
On Sun, Jul 26, 2020 at 06:26:27PM +0200, Christoph Hellwig wrote: > On Sun, Jul 26, 2020 at 06:24:26PM +0200, Christoph Hellwig wrote: > > Btw, care to take a look at > > > > http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/kernel_readwrite > > > > it has been in linux-next for 2

Re: add file system helpers that take kernel pointers for the init code v3

2020-07-26 Thread Christoph Hellwig
On Sun, Jul 26, 2020 at 06:24:26PM +0200, Christoph Hellwig wrote: > Btw, care to take a look at > > http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/kernel_readwrite > > it has been in linux-next for 2 1/2 weeks, and the only interesting > thing found was that btrfs didn't wire u

Re: add file system helpers that take kernel pointers for the init code v3

2020-07-26 Thread Christoph Hellwig
; > > > > > Hi Al and Linus, > > > > > > > > currently a lot of the file system calls in the early in code (and the > > > > devtmpfs kthread) rely on the implicit set_fs(KERNEL_DS) during boot. > > > > This is one of the few last remaining pla

Re: add file system helpers that take kernel pointers for the init code v3

2020-07-26 Thread Al Viro
On Sun, Jul 26, 2020 at 05:52:04PM +0200, Christoph Hellwig wrote: > On Sun, Jul 26, 2020 at 08:49:28AM -0700, Linus Torvalds wrote: > > On Sun, Jul 26, 2020 at 12:14 AM Christoph Hellwig wrote: > > > > > > Hi Al and Linus, > > > > > > currently a lot

Re: add file system helpers that take kernel pointers for the init code v3

2020-07-26 Thread Christoph Hellwig
On Sun, Jul 26, 2020 at 08:49:28AM -0700, Linus Torvalds wrote: > On Sun, Jul 26, 2020 at 12:14 AM Christoph Hellwig wrote: > > > > Hi Al and Linus, > > > > currently a lot of the file system calls in the early in code (and the > > devtmpfs kthread) rely on the

Re: add file system helpers that take kernel pointers for the init code v3

2020-07-26 Thread Linus Torvalds
On Sun, Jul 26, 2020 at 12:14 AM Christoph Hellwig wrote: > > Hi Al and Linus, > > currently a lot of the file system calls in the early in code (and the > devtmpfs kthread) rely on the implicit set_fs(KERNEL_DS) during boot. > This is one of the few last remaining places we ne

add file system helpers that take kernel pointers for the init code v3

2020-07-26 Thread Christoph Hellwig
Hi Al and Linus, currently a lot of the file system calls in the early in code (and the devtmpfs kthread) rely on the implicit set_fs(KERNEL_DS) during boot. This is one of the few last remaining places we need to deal with to kill off set_fs entirely, so this series adds new helpers that take

add file system helpers that take kernel pointers for the init code v2

2020-07-21 Thread Christoph Hellwig
Hi Al and Linus, currently a lot of the file system calls in the early in code (and the devtmpfs kthread) rely on the implicit set_fs(KERNEL_DS) during boot. This is one of the few last remaining places we need to deal with to kill off set_fs entirely, so this series adds new helpers that take

add file system helpers that take kernel pointers for the init code

2020-07-20 Thread Christoph Hellwig
Hi Al, currently a lot of the file system calls in the early in code (and the devtmpfs kthread) rely on the implicit set_fs(KERNEL_DS) during boot. This is one of the few last remaining places we need to deal with to kill off set_fs entirely, so this series adds new helpers that take kernel

Re: [PATCH] Replace HTTP links with HTTPS ones: 9P FILE SYSTEM

2020-07-13 Thread Jonathan Corbet
On Wed, 8 Jul 2020 16:58:04 +0200 "Alexander A. Klimov" wrote: > Documentation/filesystems/9p.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/filesystems/9p.rst > b/Documentation/filesystems/9p.rst > index 2995279ddc24..7b5964bc8865 100644 > --- a/Do

[PATCH] Replace HTTP links with HTTPS ones: 9P FILE SYSTEM

2020-07-08 Thread Alexander A. Klimov
Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Deterministic algorithm: For each file: If not .svg: For each line: If doesn't contain `\bxmlns\b`: For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:

Re: [PATCH v3 0/7] Statsfs: a new ram-based file system for Linux kernel statistics

2020-05-27 Thread Paolo Bonzini
On 28/05/20 00:21, David Ahern wrote: > On 5/27/20 3:07 PM, Paolo Bonzini wrote: >> I see what you meant now. statsfs can also be used to enumerate objects >> if one is so inclined (with the prototype in patch 7, for example, each >> network interface becomes a directory). > > there are many use

Re: [PATCH v3 0/7] Statsfs: a new ram-based file system for Linux kernel statistics

2020-05-27 Thread David Ahern
On 5/27/20 3:07 PM, Paolo Bonzini wrote: > I see what you meant now. statsfs can also be used to enumerate objects > if one is so inclined (with the prototype in patch 7, for example, each > network interface becomes a directory). there are many use cases that have 100's to 1000's have network de

Re: [PATCH v3 0/7] Statsfs: a new ram-based file system for Linux kernel statistics

2020-05-27 Thread Paolo Bonzini
On 27/05/20 23:27, Jakub Kicinski wrote: > On Wed, 27 May 2020 23:07:53 +0200 Paolo Bonzini wrote: >>> Again, I have little KVM knowledge, but BPF also uses a fd-based API, >>> and carries stats over the same syscall interface. >> >> Can BPF stats (for BPF scripts created by whatever process is r

Re: [PATCH v3 0/7] Statsfs: a new ram-based file system for Linux kernel statistics

2020-05-27 Thread Jakub Kicinski
On Wed, 27 May 2020 23:07:53 +0200 Paolo Bonzini wrote: > > Again, I have little KVM knowledge, but BPF also uses a fd-based API, > > and carries stats over the same syscall interface. > > Can BPF stats (for BPF scripts created by whatever process is running in > the system) be collected by an e

Re: [PATCH v3 0/7] Statsfs: a new ram-based file system for Linux kernel statistics

2020-05-27 Thread Andrew Lunn
he right > place for statistics (for example it is affected by lockdown) > > In this patch series I introduce statsfs, a synthetic ram-based virtual > filesystem that takes care of gathering and displaying statistics for the > Linux kernel subsystems. > > The file system is mounte

Re: [PATCH v3 0/7] Statsfs: a new ram-based file system for Linux kernel statistics

2020-05-27 Thread Paolo Bonzini
On 27/05/20 22:23, Jakub Kicinski wrote: > On Wed, 27 May 2020 15:14:41 +0200 Emanuele Giuseppe Esposito wrote: >> Regarding the config, as I said the idea is to gather multiple >> subsystems' statistics, therefore there wouldn't be a single >> configuration method like in netlink. >> For example

Re: [PATCH v3 0/7] Statsfs: a new ram-based file system for Linux kernel statistics

2020-05-27 Thread Jakub Kicinski
On Wed, 27 May 2020 15:14:41 +0200 Emanuele Giuseppe Esposito wrote: > Regarding the config, as I said the idea is to gather multiple > subsystems' statistics, therefore there wouldn't be a single > configuration method like in netlink. > For example in kvm there are file descriptors for configur

Re: [PATCH v3 0/7] Statsfs: a new ram-based file system for Linux kernel statistics

2020-05-27 Thread Paolo Bonzini
On 27/05/20 15:33, Andrew Lunn wrote: >> I don't really know a lot about the networking subsystem, and as it was >> pointed out in another email on patch 7 by Andrew, networking needs to >> atomically gather and display statistics in order to make them consistent, >> and currently this is not suppo

Re: [PATCH v3 0/7] Statsfs: a new ram-based file system for Linux kernel statistics

2020-05-27 Thread Andrew Lunn
> I don't really know a lot about the networking subsystem, and as it was > pointed out in another email on patch 7 by Andrew, networking needs to > atomically gather and display statistics in order to make them consistent, > and currently this is not supported by stats_fs but could be added in > f

Re: [PATCH v3 0/7] Statsfs: a new ram-based file system for Linux kernel statistics

2020-05-27 Thread Emanuele Giuseppe Esposito
The file system is mounted on /sys/kernel/stats and would be already used by kvm. Statsfs was initially introduced by Paolo Bonzini [1]. What's the direct motivation for this work? Moving KVM stats out of debugfs? There's many reasons: one of these is not using debugfs for

Re: [PATCH v3 0/7] Statsfs: a new ram-based file system for Linux kernel statistics

2020-05-26 Thread Jakub Kicinski
t; place for statistics (for example it is affected by lockdown) > > In this patch series I introduce statsfs, a synthetic ram-based virtual > filesystem that takes care of gathering and displaying statistics for the > Linux kernel subsystems. > > The file system is mounte

[PATCH v3 0/7] Statsfs: a new ram-based file system for Linux kernel statistics

2020-05-26 Thread Emanuele Giuseppe Esposito
virtual filesystem that takes care of gathering and displaying statistics for the Linux kernel subsystems. The file system is mounted on /sys/kernel/stats and would be already used by kvm. Statsfs was initially introduced by Paolo Bonzini [1]. Statsfs offers a generic and stable API, allowing any kind

Re: file system permissions regression affecting root

2020-05-16 Thread Christian Kujau
On Wed, 13 May 2020, Patrick Donnelly wrote: > However, it seems odd that this depends on the owner of the directory. > i.e. this protection only seems to be enforced if the sticky directory > is owned by root. That's expected? According to the documentation[0] this appears to be intentional: pr

Re: file system permissions regression affecting root

2020-05-13 Thread Patrick Donnelly
On Wed, May 13, 2020 at 9:11 AM Al Viro wrote: > > On Wed, May 13, 2020 at 08:00:28AM -0700, Patrick Donnelly wrote: > > In newer kernels (at least 5.6), it appears root is not able to write > > to files owned by other users in a sticky directory: > > Yes. Controlled by /proc/sys/fs/protected_reg

Re: file system permissions regression affecting root

2020-05-13 Thread Al Viro
On Wed, May 13, 2020 at 08:00:28AM -0700, Patrick Donnelly wrote: > In newer kernels (at least 5.6), it appears root is not able to write > to files owned by other users in a sticky directory: Yes. Controlled by /proc/sys/fs/protected_regular, which systemd crowd has decided to enable in commit 2

file system permissions regression affecting root

2020-05-13 Thread Patrick Donnelly
In newer kernels (at least 5.6), it appears root is not able to write to files owned by other users in a sticky directory: $ uname -r 5.6.11-arch1-1 $ stat -f /tmp File: "/tmp" ID: 0Namelen: 255 Type: tmpfs Block size: 4096 Fundamental block size: 4096 Blocks: Total: 200516

Re: stop using ioctl_by_bdev for file system access to CDROMs v2

2020-05-04 Thread Jens Axboe
On 4/25/20 1:56 AM, Christoph Hellwig wrote: > Hi Jens, > > except for the DASD case under discussion the last users of ioctl_by_bdev > are the file system drivers that want to query CDROM information using > ioctls. This series switches them to use function calls directly i

stop using ioctl_by_bdev for file system access to CDROMs v3

2020-05-04 Thread Christoph Hellwig
Hi Jens, can you pick up this series? Except for the DASD case under discussion the last users of ioctl_by_bdev are the file system drivers that want to query CDROM information using ioctls. This series switches them to use function calls directly into the CDROM midlayer instead, which implies

Re: stop using ioctl_by_bdev for file system access to CDROMs v2

2020-04-27 Thread Christoph Hellwig
Jens, can you pick this up for the for-5.8/block tree? We're about ready to kill ioctl_by_bdev after this series.

Re: [PATCH v2 3/9] perf pmu: Use file system cache to optimize sysfs access

2019-10-23 Thread Jiri Olsa
On Sun, Oct 20, 2019 at 10:51:56AM -0700, Andi Kleen wrote: SNIP > @@ -92,8 +93,12 @@ static int pmu_format(const char *name, struct list_head > *format) > snprintf(path, PATH_MAX, >"%s" EVENT_SOURCE_DEVICE_PATH "%s/format", sysfs, name); > > - if (stat(path, &st) < 0

[PATCH v2 3/9] perf pmu: Use file system cache to optimize sysfs access

2019-10-20 Thread Andi Kleen
From: Andi Kleen pmu.c does a lot of redundant /sys accesses while parsing aliases and probing for PMUs. On large systems with a lot of PMUs this can get expensive (>2s): % time seconds usecs/call callserrors syscall -- --- --- - - ---

[PATCH v1 3/9] perf pmu: Use file system cache to optimize sysfs access

2019-10-20 Thread Andi Kleen
From: Andi Kleen pmu.c does a lot of redundant /sys accesses while parsing aliases and probing for PMUs. On large systems with a lot of PMUs this can get expensive (>2s): % time seconds usecs/call callserrors syscall -- --- --- - - ---

Re: [PATCH v5 0/4] virtio-fs: shared file system for virtual machines

2019-09-12 Thread Miklos Szeredi
On Thu, Sep 12, 2019 at 3:07 PM Miklos Szeredi wrote: > Is this a regression from 9p? Let me answer myself: 9p seems to behave similarly: after suspend/resume it hangs. So added -EOPNOTSUPP + pr_warn() to the freeze function and verified that this fixes the bad behavior. Thanks, Miklos

Re: [PATCH v5 0/4] virtio-fs: shared file system for virtual machines

2019-09-12 Thread Miklos Szeredi
On Thu, Sep 12, 2019 at 2:54 PM Stefan Hajnoczi wrote: > > On Thu, Sep 12, 2019 at 10:14:11AM +0200, Miklos Szeredi wrote: > > On Wed, Sep 11, 2019 at 5:54 PM Stefan Hajnoczi wrote: > > > > > > On Tue, Sep 10, 2019 at 05:12:02PM +0200, Miklos Szeredi wrote: > > > > I've folded the series from Viv

Re: [PATCH v5 0/4] virtio-fs: shared file system for virtual machines

2019-09-12 Thread Stefan Hajnoczi
On Thu, Sep 12, 2019 at 10:14:11AM +0200, Miklos Szeredi wrote: > On Wed, Sep 11, 2019 at 5:54 PM Stefan Hajnoczi wrote: > > > > On Tue, Sep 10, 2019 at 05:12:02PM +0200, Miklos Szeredi wrote: > > > I've folded the series from Vivek and fixed a couple of TODO comments > > > myself. AFAICS two iss

Re: [PATCH v5 0/4] virtio-fs: shared file system for virtual machines

2019-09-12 Thread Miklos Szeredi
On Wed, Sep 11, 2019 at 5:54 PM Stefan Hajnoczi wrote: > > On Tue, Sep 10, 2019 at 05:12:02PM +0200, Miklos Szeredi wrote: > > I've folded the series from Vivek and fixed a couple of TODO comments > > myself. AFAICS two issues remain that need to be resolved in the short > > term, one way or the

Re: [PATCH v5 0/4] virtio-fs: shared file system for virtual machines

2019-09-12 Thread Miklos Szeredi
On Wed, Sep 11, 2019 at 4:53 PM Vivek Goyal wrote: > > On Tue, Sep 10, 2019 at 05:12:02PM +0200, Miklos Szeredi wrote: > > Git tree for this version is available here: > > > > git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git#virtiofs-v5 > > > > Only post patches that actually add vi

Re: [PATCH v5 0/4] virtio-fs: shared file system for virtual machines

2019-09-11 Thread Stefan Hajnoczi
On Tue, Sep 10, 2019 at 05:12:02PM +0200, Miklos Szeredi wrote: > I've folded the series from Vivek and fixed a couple of TODO comments > myself. AFAICS two issues remain that need to be resolved in the short > term, one way or the other: freeze/restore and full virtqueue. I have researched freez

Re: [PATCH v5 0/4] virtio-fs: shared file system for virtual machines

2019-09-11 Thread Vivek Goyal
On Tue, Sep 10, 2019 at 05:12:02PM +0200, Miklos Szeredi wrote: > Git tree for this version is available here: > > git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git#virtiofs-v5 > > Only post patches that actually add virtiofs (virtiofs-v5-base..virtiofs-v5). > > I've folded the ser

Re: [PATCH v5 0/4] virtio-fs: shared file system for virtual machines

2019-09-11 Thread Stefan Hajnoczi
On Tue, Sep 10, 2019 at 05:12:02PM +0200, Miklos Szeredi wrote: > Git tree for this version is available here: > > git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git#virtiofs-v5 > > Only post patches that actually add virtiofs (virtiofs-v5-base..virtiofs-v5). > > I've folded the ser

[PATCH v5 0/4] virtio-fs: shared file system for virtual machines

2019-09-10 Thread Miklos Szeredi
Git tree for this version is available here: git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git#virtiofs-v5 Only post patches that actually add virtiofs (virtiofs-v5-base..virtiofs-v5). I've folded the series from Vivek and fixed a couple of TODO comments myself. AFAICS two issues

Re: [PATCH v3 00/13] virtio-fs: shared file system for virtual machines

2019-09-04 Thread Stefan Hajnoczi
On Tue, Sep 03, 2019 at 11:17:35AM +0200, Miklos Szeredi wrote: > On Tue, Sep 3, 2019 at 10:31 AM Michael S. Tsirkin wrote: > > > > fs/fuse/Kconfig | 11 + > > > > fs/fuse/Makefile|1 + > > > > fs/fuse/control.c |4 +- > > > > fs/fuse/cuse.c

Re: [PATCH v3 00/13] virtio-fs: shared file system for virtual machines

2019-09-03 Thread Michael S. Tsirkin
On Tue, Sep 03, 2019 at 10:18:51AM -0400, Vivek Goyal wrote: > On Tue, Sep 03, 2019 at 10:12:16AM -0400, Michael S. Tsirkin wrote: > > On Tue, Sep 03, 2019 at 10:07:52AM -0400, Vivek Goyal wrote: > > > On Tue, Sep 03, 2019 at 04:31:38AM -0400, Michael S. Tsirkin wrote: > > > > > > [..] > > > > +

  1   2   3   4   5   6   7   8   9   10   >