* [PATCH 0/1] Small potential fix for shiftfs
@ 2019-08-15 14:36 Oleksandr Natalenko
2019-08-15 14:36 ` [PATCH 1/1] shiftfs-5.2: use copy_from_user() correctly Oleksandr Natalenko
2019-08-15 14:50 ` [PATCH 0/1] Small potential fix for shiftfs Seth Forshee
0 siblings, 2 replies; 3+ messages in thread
From: Oleksandr Natalenko @ 2019-08-15 14:36 UTC (permalink / raw)
To: linux-kernel
Cc: linux-fsdevel, Christian Brauner, Seth Forshee, Stefan Bader,
Kleber Sacilotto de Souza, Tyler Hicks, Marcelo Henrique Cerri,
Brad Figg, James Bottomley
Hey, people.
I was lurking at shiftfs just out of curiosity and managed to bump into
a compiler warning that is (as I suppose) easily fixed by the subsequent
patch.
Feel free to drag this into your Ubuntu tree if needed. I haven't played
with it yet, just compiling (because I'm looking for something that is
bindfs but in-kernel) :).
Oleksandr Natalenko (1):
shiftfs-5.2: use copy_from_user() correctly
fs/shiftfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
2.22.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] shiftfs-5.2: use copy_from_user() correctly
2019-08-15 14:36 [PATCH 0/1] Small potential fix for shiftfs Oleksandr Natalenko
@ 2019-08-15 14:36 ` Oleksandr Natalenko
2019-08-15 14:50 ` [PATCH 0/1] Small potential fix for shiftfs Seth Forshee
1 sibling, 0 replies; 3+ messages in thread
From: Oleksandr Natalenko @ 2019-08-15 14:36 UTC (permalink / raw)
To: linux-kernel
Cc: linux-fsdevel, Christian Brauner, Seth Forshee, Stefan Bader,
Kleber Sacilotto de Souza, Tyler Hicks, Marcelo Henrique Cerri,
Brad Figg, James Bottomley
Signed-off-by: Oleksandr Natalenko <oleksandr@redhat.com>
---
fs/shiftfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/shiftfs.c b/fs/shiftfs.c
index 49f6714e9f95..14f3764577d8 100644
--- a/fs/shiftfs.c
+++ b/fs/shiftfs.c
@@ -1526,7 +1526,7 @@ static bool in_ioctl_whitelist(int flag, unsigned long arg)
case BTRFS_IOC_SUBVOL_GETFLAGS:
return true;
case BTRFS_IOC_SUBVOL_SETFLAGS:
- if (copy_from_user(&flags, arg, sizeof(flags)))
+ if (copy_from_user(&flags, argp, sizeof(flags)))
return false;
if (flags & ~BTRFS_SUBVOL_RDONLY)
--
2.22.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 0/1] Small potential fix for shiftfs
2019-08-15 14:36 [PATCH 0/1] Small potential fix for shiftfs Oleksandr Natalenko
2019-08-15 14:36 ` [PATCH 1/1] shiftfs-5.2: use copy_from_user() correctly Oleksandr Natalenko
@ 2019-08-15 14:50 ` Seth Forshee
1 sibling, 0 replies; 3+ messages in thread
From: Seth Forshee @ 2019-08-15 14:50 UTC (permalink / raw)
To: Oleksandr Natalenko
Cc: linux-kernel, linux-fsdevel, Christian Brauner, Stefan Bader,
Kleber Sacilotto de Souza, Tyler Hicks, Marcelo Henrique Cerri,
Brad Figg, James Bottomley
On Thu, Aug 15, 2019 at 04:36:02PM +0200, Oleksandr Natalenko wrote:
> Hey, people.
>
> I was lurking at shiftfs just out of curiosity and managed to bump into
> a compiler warning that is (as I suppose) easily fixed by the subsequent
> patch.
>
> Feel free to drag this into your Ubuntu tree if needed. I haven't played
> with it yet, just compiling (because I'm looking for something that is
> bindfs but in-kernel) :).
Thanks for the patch. Christian has actually already sent a patch for
this along with another patch which is still under review:
https://lists.ubuntu.com/archives/kernel-team/2019-July/102449.html
Also note that currently shiftfs is only in Ubuntu distro kernels, and
Ubuntu-specific kernel patches should be directed at
kernel-team@lists.ubuntu.com rather than lkml. If you'll be at LPC,
there's a session to discuss the future of upstreaming shiftfs that you
might find interesting.
Thanks!
Seth
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-08-15 14:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-15 14:36 [PATCH 0/1] Small potential fix for shiftfs Oleksandr Natalenko
2019-08-15 14:36 ` [PATCH 1/1] shiftfs-5.2: use copy_from_user() correctly Oleksandr Natalenko
2019-08-15 14:50 ` [PATCH 0/1] Small potential fix for shiftfs Seth Forshee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).