[Devel] [PATCH] fs: Revert "ms: FIGETBSZ ioctl safety checks"

2017-02-13 Thread Kirill Tkhai
This reverts commit 6cd9b88060b21f3d597d54d93a97c4a17c917c4f. It was need for vefs_ioctl(), but we do not support vefs anymore. https://jira.sw.ru/browse/PSBM-58480 Signed-off-by: Kirill Tkhai --- fs/ioctl.c |8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/fs/ioct

Re: [Devel] [PATCH RH7] ioctl: use sb from file inode when make FIGETBSZ check

2017-02-13 Thread Kirill Tkhai
On 09.02.2017 19:11, Pavel Tikhomirov wrote: > On overlayfs blocksize on super_block is not set, and FIGETBSZ > returns blocksize of an underlying fs, so we also need to do our > check for underlying sb. > > Rebase commit a3ee37c28983 ("rh7: import RHEL7 kernel-3.10.0-514.el7") > brought ms commit

Re: [Devel] [PATCH RH7] ms/ovl: fix d_real() for stacked fs

2017-02-13 Thread Pavel Tikhomirov
Maxim, please review. On 02/09/2017 07:13 PM, Pavel Tikhomirov wrote: From: Miklos Szeredi Handling of recursion in d_real() is completely broken. Recursion is only done in the 'inode != NULL' case. But when opening the file we have 'inode == NULL' hence d_real() will return an overlay dentr

Re: [Devel] [PATCH] fs: Revert "ms: FIGETBSZ ioctl safety checks"

2017-02-13 Thread Pavel Tikhomirov
On 02/13/2017 03:55 PM, Kirill Tkhai wrote: This reverts commit 6cd9b88060b21f3d597d54d93a97c4a17c917c4f. It was need for vefs_ioctl(), but we do not support vefs anymore. Sure, Thanks! https://jira.sw.ru/browse/PSBM-58480 Signed-off-by: Kirill Tkhai Reviewed-by: Pavel Tikhomirov ---

[Devel] [PATCH vz7] fuse: fuse_prepare_write() cannot handle page from killed request

2017-02-13 Thread Maxim Patlasov
After fuse_prepare_write() called __fuse_readpage(file, page, ...), the page might be already unlocked by fuse_kill_requests(): > for (i = 0; i < req->num_pages; i++) { > struct page *page = req->pages[i]; > SetPageError(page); >

[Devel] [PATCH 2/2] test: check ucred for netlink messages

2017-02-13 Thread Andrey Vagin
From: Andrei Vagin Send a netlink message with ucred and check that it received with the same ucred. Signed-off-by: Andrei Vagin --- test/zdtm/static/sk-netlink.c | 55 ++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/test/zdtm/static/sk

[Devel] [PATCH 1/2] netlink: dump and restore ucred-s for netlink messages

2017-02-13 Thread Andrey Vagin
From: Andrei Vagin ucred in a netlink message contains the same pid and it doesn't metter from which pidns it is read. https://jira.sw.ru/browse/PSBM-59339 Cc: Kirill Tkhai Signed-off-by: Andrei Vagin --- criu/include/sk-queue.h | 5 ++- criu/sk-netlink.c | 2 +- criu/sk-queue.c