[Devel] [PATCH rh7] ipmr, ip6mr: call ip6mr_free_table() on failure path

2015-11-23 Thread Stanislav Kinsburskiy
From: WANG Cong <xiyou.wangc...@gmail.com> Signed-off-by: Cong Wang <xiyou.wangc...@gmail.com> Signed-off-by: David S. Miller <da...@davemloft.net> Signed-off-by: Stanislav Kinsburskiy <skinsbur...@odin.com> --- net/ipv4/ipmr.c |2 +- net/ipv6/ip6mr.c |

[Devel] [RFC] NETNS_REFCNT_DEBUG define

2015-11-23 Thread Stanislav Kinsburskiy
Hello gentlemen, There was NETNS_REFCNT_DEBUG debug introduced in past to track down situations, when network namespace is being hold (not referenced; another ref count is used) by various objects, so, on net namespace release such situations with leaked network objects can be reported. We

Re: [Devel] [PATCH rh7] fib_rules: mark default fib reles as BLACK

2015-11-23 Thread Stanislav Kinsburskiy
23.11.2015 16:53, Andrey Ryabinin пишет: On 11/23/2015 06:46 PM, Stanislav Kinsburskiу wrote: +1 I'm curious, why network namespace is not reported as leaked... 3) This object holds network namespace. And it also have to be leaked leaked after CT stop. Is it? Why do you think it leaked?

[Devel] [PATCH rh7 v2] x86: "pages zeroing on free" option introduced

2015-11-18 Thread Stanislav Kinsburskiy
h. Another thing to notice, is that code is moved to a separate source file. The reason for this is to simplify rebases in future. https://jira.sw.ru/browse/PSBM-33071 v2: All the code was moved to mm/pages_alloc.c Signed-off-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> --- mm/pag

Re: [Devel] [PATCH rh7 v2] tun: expose "owner", "group" and "tun_flags" attributes in container

2015-11-18 Thread Stanislav Kinsburskiy
Please, ignore 18.11.2015 17:30, Stanislav Kinsburskiy пишет: https://jira.sw.ru/browse/PSBM-39726 Signed-off-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> --- drivers/net/tun.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/tun.c b/d

[Devel] [PATCH rh7] x86: "pages zeroing on free" option introduced

2015-11-18 Thread Stanislav Kinsburskiy
h. Another thing to notice, is that code is moved to a separate source file. The reason for this is to simplify rebases in future. https://jira.sw.ru/browse/PSBM-33071 Signed-off-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> --- mm/Makefile |2 +- mm/internal.h |2 ++

Re: [Devel] [PATCH rh7] x86: "pages zeroing on free" option introduced

2015-11-18 Thread Stanislav Kinsburskiy
18.11.2015 17:07, Vladimir Davydov пишет: On Wed, Nov 18, 2015 at 07:12:10PM +0400, Stanislav Kinsburskiy wrote: This patch add pages zeroing option to free_pages_prepare(). It's disabled by default. To enable it one should add "zero-free-pages" kernel option to kernel boot parame

[Devel] [PATCH rh7] tun: expose "owner", "group" and "tun_flags" attributes in container

2015-11-18 Thread Stanislav Kinsburskiy
https://jira.sw.ru/browse/PSBM-39726 Signed-off-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> --- drivers/net/tun.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c index dd14140..e6735c8 100644 --- a/drivers/net

[Devel] [PATCH rh7] x86: "pages zeroing on free" option introduced

2015-11-18 Thread Stanislav Kinsburskiy
h. Another thing to notice, is that code is moved to a separate source file. The reason for this is to simplify rebases in future. https://jira.sw.ru/browse/PSBM-33071 Signed-off-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> --- mm/Makefile |2 +- mm/internal.h |2 ++

[Devel] [PATCH rh7 v2] tun: expose "owner", "group" and "tun_flags" attributes in container

2015-11-18 Thread Stanislav Kinsburskiy
https://jira.sw.ru/browse/PSBM-39726 Signed-off-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> --- drivers/net/tun.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c index dd14140..e6735c8 100644 --- a/drivers/net

[Devel] [PATCH rh7 v2] tun: expose "owner", "group" and "tun_flags" attributes in container

2015-11-18 Thread Stanislav Kinsburskiy
https://jira.sw.ru/browse/PSBM-39726 Signed-off-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> --- drivers/net/tun.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c index dd14140..e6735c8 100644 --- a/drivers/net

Re: [Devel] [PATCH rh7] x86: arch_free_page() introduced

2015-11-18 Thread Stanislav Kinsburskiy
18.11.2015 14:46, Konstantin Khorenko пишет: On 11/17/2015 06:31 PM, Stanislav Kinsburskiy wrote: 17.11.2015 16:08, Vladimir Davydov пишет: On Tue, Nov 17, 2015 at 03:42:46PM +0100, Stanislav Kinsburskiy wrote: 17.11.2015 15:20, Vladimir Davydov пишет: On Thu, Nov 12, 2015 at 10:01:14PM

Re: [Devel] [PATCH rh7] x86: arch_free_page() introduced

2015-11-17 Thread Stanislav Kinsburskiy
17.11.2015 16:08, Vladimir Davydov пишет: On Tue, Nov 17, 2015 at 03:42:46PM +0100, Stanislav Kinsburskiy wrote: 17.11.2015 15:20, Vladimir Davydov пишет: On Thu, Nov 12, 2015 at 10:01:14PM +0400, Stanislav Kinsburskiy wrote: @@ -0,0 +1,23 @@ +#ifndef _ASM_X86_FREE_PAGE_H +#define

Re: [Devel] [PATCH rh7] x86: arch_free_page() introduced

2015-11-17 Thread Stanislav Kinsburskiy
17.11.2015 15:20, Vladimir Davydov пишет: On Thu, Nov 12, 2015 at 10:01:14PM +0400, Stanislav Kinsburskiy wrote: @@ -0,0 +1,23 @@ +#ifndef _ASM_X86_FREE_PAGE_H +#define _ASM_X86_FREE_PAGE_H + +#ifdef __KERNEL__ + +#ifndef __ASSEMBLY__ + +#include + +#define HAVE_ARCH_FREE_PAGE + +extern

Re: [Devel] [PATCH rh7] signal/ve: allow to send signal from another ve namespace

2015-11-16 Thread Stanislav Kinsburskiy
16.11.2015 12:44, Andrey Ryabinin пишет: On 11/12/2015 08:07 PM, Stanislav Kinsburskiу wrote: 12 нояб. 2015 г. 17:51 пользователь Andrey Wagin написал: [root@fc22-vm ~]# unshare --fork -p [root@fc22-vm ~]# kill -9 1 [root@fc22-vm ~]# kill -9 1 [root@fc22-vm ~]# kill -9 1

[Devel] [PATCH rh7] vznetstat: fix RCU-protected "info_V{4, 6}" pointers initialization

2015-11-12 Thread Stanislav Kinsburskiy
-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> --- kernel/ve/vznetstat/vznetstat.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/ve/vznetstat/vznetstat.c b/kernel/ve/vznetstat/vznetstat.c index 99feafb..c47865a 100644 --- a/kernel/ve/vznetstat/vznet

Re: [Devel] [PATCH rh7] signal/ve: allow to send signal from another ve namespace

2015-11-12 Thread Stanislav Kinsburskiy
12.11.2015 15:53, Andrey Wagin пишет: 2015-11-12 17:46 GMT+03:00 Stanislav Kinsburskiу : 12 нояб. 2015 г. 15:14 пользователь Andrey Ryabinin написал: CRIU sends SIGKILL to container's init process as a part of cleanup process if restoring

[Devel] [PATCH rh7] x86: arch_free_page() introduced

2015-11-12 Thread Stanislav Kinsburskiy
s). https://jira.sw.ru/browse/PSBM-33071 Signed-off-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> --- arch/x86/include/asm/free_page.h | 23 +++ arch/x86/include/asm/thread_info.h |1 + arch/x86/mm/Makefile |2 +- arch/x86/mm/free_page.c

Re: [Devel] [PATCH rh7] signal/ve: allow to send signal from another ve namespace

2015-11-12 Thread Stanislav Kinsburskiy
12.11.2015 16:47, Andrey Ryabinin пишет: On 11/12/2015 05:59 PM, Stanislav Kinsburskiy wrote: 12.11.2015 15:53, Andrey Wagin пишет: 2015-11-12 17:46 GMT+03:00 Stanislav Kinsburskiу <skinsbur...@odin.com>: 12 нояб. 2015 г. 15:14 пользователь Andrey Ryabinin <aryabi...@virtuozzo.com&

Re: [Devel] [PATCH rh7] signal/ve: allow to send signal from another ve namespace

2015-11-12 Thread Stanislav Kinsburskiy
12.11.2015 17:11, Andrey Ryabinin пишет: On 11/12/2015 07:08 PM, Stanislav Kinsburskiy wrote: 12.11.2015 16:47, Andrey Ryabinin пишет: On 11/12/2015 05:59 PM, Stanislav Kinsburskiy wrote: 12.11.2015 15:53, Andrey Wagin пишет: 2015-11-12 17:46 GMT+03:00 Stanislav Kinsburskiу <skins

Re: [Devel] [PATCH rh7] fuse: allow to mount fuse filesystems inside CT

2015-11-11 Thread Stanislav Kinsburskiy
11.11.2015 15:40, Konstantin Khorenko пишет: On 11/10/2015 05:56 PM, Andrey Ryabinin wrote: On 11/10/2015 05:52 PM, Stanislav Kinsburskiy wrote: goto err; +if (get_exec_env()->init_cred) +root_user_ns = get_exec_env()->init_cred->user_ns;

Re: [Devel] [PATCH v2] ve/fs: add per-VE limit of mount points

2015-11-11 Thread Stanislav Kinsburskiy
Thanks. That's much better. But maybe we could simplify it even more? Please, take a look at my comments inlined. They allow to reduce impact to generic code even further and simplify future rebasing (which is usually a lot of pain). 11.11.2015 10:33, Evgenii Shatokhin пишет:

Re: [Devel] [PATCH rh7] fuse: allow to mount fuse filesystems inside CT

2015-11-10 Thread Stanislav Kinsburskiy
10.11.2015 15:30, Andrey Ryabinin пишет: Currently mounting fuse fs inside CT fails because we don't pass (file->f_cred->user_ns != _user_ns) check. Test file's namespace against VE's init_cred->user_ns instead. This allows to use fuse inside containers. https://jira.sw.ru/browse/PSBM-41075

Re: [Devel] [PATCH] ve/fs: add per-VE limit of mount points

2015-11-09 Thread Stanislav Kinsburskiy
09.11.2015 15:13, Andrew Vagin пишет: On Thu, Nov 05, 2015 at 07:37:31PM +0300, Evgenii Shatokhin wrote: 05.11.2015 18:45, Konstantin Khorenko пишет: Zenya, 1) an idea from Volodya Davydov: we can store the pointer to ve_struct, not the veid, thus we'll eliminate possible races with

[Devel] [PATCH rh7] autofs: fix capability check in _autofs_dev_ioctl()

2015-11-09 Thread Stanislav Kinsburskiy
tmpfiles.d: # cat /etc/tmpfiles.d/device-autofs.conf c /dev/autofs 0700 root root - 10:235 Jira: https://jira.sw.ru/browse/PSBM-26968 Signed-off-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> --- fs/autofs4/dev-ioctl.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

Re: [Devel] [PATCH rh7 0/4] ext4 project quota backport

2015-11-09 Thread Stanislav Kinsburskiy
Please, ignore this patch set. It has compilation issue in XFS. 06.11.2015 16:41, Stanislav Kinsburskiy пишет: This patch set is a back ported "ext4 project quota v15" series by Li Xi. The patch set is not upstream yet, but it looks like mostly accepted by maintainers and,

[Devel] [PATCH rh7 v2 0/4] ext4 project quota backport

2015-11-09 Thread Stanislav Kinsburskiy
uota-tools and e2fsprogs state. Jira link: https://jira.sw.ru/browse/PSBM-40727 v2: fixed XFS compilation error due to structure re-definition --- Stanislav Kinsburskiy (4): ext4: adds project ID support ext4: adds project quota support ext4: adds FS_IOC_FSSETXATTR/FS_IOC_FSGETXATTR interfa

[Devel] [PATCH rh7 v2 2/4] ext4: adds project quota support

2015-11-09 Thread Stanislav Kinsburskiy
lt;dmonak...@openvz.org> Reviewed-by: Andreas Dilger <adil...@dilger.ca> Reviewed-by: Jan Kara <j...@suse.cz> Signed-off-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> --- fs/ext4/ext4.h |2 +- fs/ext4/super.c | 56 ++

[Devel] [PATCH rh7 v2 1/4] ext4: adds project ID support

2015-11-09 Thread Stanislav Kinsburskiy
ndreas Dilger <adil...@dilger.ca> Reviewed-by: Jan Kara <j...@suse.cz> Signed-off-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> --- fs/ext4/ext4.h | 14 ++ fs/ext4/ialloc.c |7 +++ fs/ext4/inode.c | 28

[Devel] [PATCH rh7 v2 3/4] ext4: adds FS_IOC_FSSETXATTR/FS_IOC_FSGETXATTR interface support

2015-11-09 Thread Stanislav Kinsburskiy
.ca> Reviewed-by: Jan Kara suse.cz> Signed-off-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> --- fs/ext4/ext4.h |9 + fs/ext4/ioctl.c | 366 --- fs/xfs/xfs_fs.h | 13 -- include/uapi/linux/fs.h | 3

[Devel] [PATCH rh7 v2 4/4] ext4: cleanup inode flag definitions

2015-11-09 Thread Stanislav Kinsburskiy
viewed-by: Andreas Dilger <adil...@dilger.ca> Signed-off-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> --- fs/ext4/ext4.h | 50 +- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index

[Devel] [PATCH rh7 1/7] vfs: Add general support to enforce project quota limits

2015-11-06 Thread Stanislav Kinsburskiy
z.org> Reviewed-by: Jan Kara <j...@suse.cz> Signed-off-by: Jan Kara <j...@suse.cz> Signed-off-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> --- fs/quota/dquot.c | 20 +--- fs/quota/quotaio_v2.h |6 -- include/linux/quota.h |

[Devel] [PATCH rh7 3/7] quota: Allow each filesystem to specify which quota types it supports

2015-11-06 Thread Stanislav Kinsburskiy
types each filesystem supports. Acked-by: Christoph Hellwig <h...@lst.de> Signed-off-by: Jan Kara <j...@suse.cz> Signed-off-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> --- fs/quota/quota.c | 13 +++-- fs/super.c|6 ++ include/linux/f

[Devel] [PATCH rh7 0/7] ext4 project quota: precursor patch set

2015-11-06 Thread Stanislav Kinsburskiy
t supports ext4: Convert to private i_dquot field quota: Remove const from function declarations quota: Use function to provide i_dquot pointers Li Xi (1): vfs: Add general support to enforce project quota limits Stanislav Kinsburskiy (1): ext4: reserve c

[Devel] [PATCH rh7 5/7] quota: Remove const from function declarations

2015-11-06 Thread Stanislav Kinsburskiy
From: Jan Kara <j...@suse.cz> We don't use const through VFS too much so just remove it from quota function declarations. Signed-off-by: Jan Kara <j...@suse.cz> Signed-off-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> --- fs/quota/dquot.c |4 ++-- includ

[Devel] [PATCH rh7 3/7] quota: Allow each filesystem to specify which quota types it supports

2015-11-06 Thread Stanislav Kinsburskiy
types each filesystem supports. Acked-by: Christoph Hellwig <h...@lst.de> Signed-off-by: Jan Kara <j...@suse.cz> Signed-off-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> --- fs/quota/quota.c | 13 +++-- fs/super.c|6 ++ include/linux/f

[Devel] [PATCH rh7 4/7] ext4: Convert to private i_dquot field

2015-11-06 Thread Stanislav Kinsburskiy
From: Jan Kara <j...@suse.cz> CC: linux-e...@vger.kernel.org Acked-by: "Theodore Ts'o" <ty...@mit.edu> Acked-by: Christoph Hellwig <h...@lst.de> Signed-off-by: Jan Kara <j...@suse.cz> Signed-off-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> -

[Devel] [PATCH rh7 2/7] ext4: don't use MAXQUOTAS value

2015-11-06 Thread Stanislav Kinsburskiy
ara <j...@suse.cz> Signed-off-by: Theodore Ts'o <ty...@mit.edu> Signed-off-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> --- fs/ext4/ext4.h |5 - fs/ext4/ext4_jbd2.h |6 +++--- fs/ext4/super.c | 22 +++--- 3 files changed, 18 ins

[Devel] [PATCH rh7 1/7] vfs: Add general support to enforce project quota limits

2015-11-06 Thread Stanislav Kinsburskiy
z.org> Reviewed-by: Jan Kara <j...@suse.cz> Signed-off-by: Jan Kara <j...@suse.cz> Signed-off-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> --- fs/quota/dquot.c | 20 +--- fs/quota/quotaio_v2.h |6 -- include/linux/quota.h |

[Devel] [PATCH rh7 4/7] ext4: Convert to private i_dquot field

2015-11-06 Thread Stanislav Kinsburskiy
From: Jan Kara <j...@suse.cz> CC: linux-e...@vger.kernel.org Acked-by: "Theodore Ts'o" <ty...@mit.edu> Acked-by: Christoph Hellwig <h...@lst.de> Signed-off-by: Jan Kara <j...@suse.cz> Signed-off-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> -

[Devel] [PATCH rh7 5/7] quota: Remove const from function declarations

2015-11-06 Thread Stanislav Kinsburskiy
From: Jan Kara <j...@suse.cz> We don't use const through VFS too much so just remove it from quota function declarations. Signed-off-by: Jan Kara <j...@suse.cz> Signed-off-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> --- fs/quota/dquot.c |4 ++-- includ

[Devel] [PATCH rh7 0/7] ext4 project quota: precursor patch set

2015-11-06 Thread Stanislav Kinsburskiy
i_dquot field quota: Remove const from function declarations quota: Use function to provide i_dquot pointers Li Xi (1): vfs: Add general support to enforce project quota limits Stanislav Kinsburskiy (1): ext4: reserve code points for the project quota feature fs/ext4/ext4.h

[Devel] [PATCH rh7 7/7] ext4: reserve code points for the project quota feature

2015-11-06 Thread Stanislav Kinsburskiy
Signed-off-by: Theodore Ts'o <ty...@mit.edu> Signed-off-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> --- fs/ext4/ext4.h |8 +++- include/uapi/linux/fs.h |1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h i

[Devel] [PATCH rh7 6/7] quota: Use function to provide i_dquot pointers

2015-11-06 Thread Stanislav Kinsburskiy
.cz> Signed-off-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> --- fs/quota/dquot.c | 54 ++-- include/linux/fs.h |1 + 2 files changed, 32 insertions(+), 23 deletions(-) diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c index a58f8c1.

[Devel] [PATCH rh7 6/7] quota: Use function to provide i_dquot pointers

2015-11-06 Thread Stanislav Kinsburskiy
.cz> Signed-off-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> --- fs/quota/dquot.c | 54 ++-- include/linux/fs.h |1 + 2 files changed, 32 insertions(+), 23 deletions(-) diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c index a58f8c1.

[Devel] [PATCH rh7 7/7] ext4: reserve code points for the project quota feature

2015-11-06 Thread Stanislav Kinsburskiy
Signed-off-by: Theodore Ts'o <ty...@mit.edu> Signed-off-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> --- fs/ext4/ext4.h |8 +++- include/uapi/linux/fs.h |1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h i

[Devel] [PATCH rh7 2/7] ext4: don't use MAXQUOTAS value

2015-11-06 Thread Stanislav Kinsburskiy
ara <j...@suse.cz> Signed-off-by: Theodore Ts'o <ty...@mit.edu> Signed-off-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> --- fs/ext4/ext4.h |5 - fs/ext4/ext4_jbd2.h |6 +++--- fs/ext4/super.c | 22 +++--- 3 files changed, 18 ins

[Devel] [PATCH rh7 4/4] ext4: cleanup inode flag definitions

2015-11-06 Thread Stanislav Kinsburskiy
viewed-by: Andreas Dilger <adil...@dilger.ca> Signed-off-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> --- fs/ext4/ext4.h | 50 +- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index

[Devel] [PATCH rh7 3/4] ext4: adds FS_IOC_FSSETXATTR/FS_IOC_FSGETXATTR interface support

2015-11-06 Thread Stanislav Kinsburskiy
.ca> Reviewed-by: Jan Kara suse.cz> Signed-off-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> --- fs/ext4/ext4.h |9 + fs/ext4/ioctl.c | 366 --- include/uapi/linux/fs.h | 32 3 files changed, 321 insertions(+

[Devel] [PATCH rh7 1/4] ext4: adds project ID support

2015-11-06 Thread Stanislav Kinsburskiy
ndreas Dilger <adil...@dilger.ca> Reviewed-by: Jan Kara <j...@suse.cz> Signed-off-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> --- fs/ext4/ext4.h | 14 ++ fs/ext4/ialloc.c |7 +++ fs/ext4/inode.c | 28

[Devel] [PATCH rh7 2/4] ext4: adds project quota support

2015-11-06 Thread Stanislav Kinsburskiy
lt;dmonak...@openvz.org> Reviewed-by: Andreas Dilger <adil...@dilger.ca> Reviewed-by: Jan Kara <j...@suse.cz> Signed-off-by: Stanislav Kinsburskiy <skinsbur...@virtuozzo.com> --- fs/ext4/ext4.h |2 +- fs/ext4/super.c | 56 ++

[Devel] [PATCH rh7 0/4] ext4 project quota backport

2015-11-06 Thread Stanislav Kinsburskiy
uota-tools and e2fsprogs state. Jira link: https://jira.sw.ru/browse/PSBM-40727 --- Stanislav Kinsburskiy (4): ext4: adds project ID support ext4: adds project quota support ext4: adds FS_IOC_FSSETXATTR/FS_IOC_FSGETXATTR interface support ext4: cleanup inode flag definitions fs/e

Re: [Devel] [PATCH] ve/fs: add per-VE limit of mount points

2015-11-02 Thread Stanislav Kinsburskiy
Yet again these sysctl handles...((( I have some questions. Please, see inlined. 02.11.2015 16:11, Evgenii Shatokhin пишет: https://jira.sw.ru/browse/PSBM-34438 (This fix was adapted from PCS6.) It is possible for a container to create lots of mount points, which may make operations with them

[Devel] [PATCH] blkdev.h: fix compilation in case CONFIG_BLK_DEV_CBT is not set

2015-10-27 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> Compilation errors: In file included from fs/block_dev.c:16:0: fs/block_dev.c: В функции «bd_write_size»: include/linux/blkdev.h:1649:32: ошибка: оператор без побочного эффекта [-Werror=unused-value] #define blk_cbt_update_size

[Devel] [PATCH vz7] namei: check containers cpabilities in may_linkat()

2015-10-27 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> This fixes -EPERM result for link creation by root in container https://jira.sw.ru/browse/PSBM-40567 Signed-off-by: Stanislav Kinsburskiy <skinsbur...@parallels.com> --- fs/namei.c |4 ++-- 1 file changed, 2 insertions(+),

[Devel] [PATCH vz7] sys_renameat2: fix capabilities check to support containers

2015-10-27 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> Signed-off-by: Stanislav Kinsburskiy <skinsbur...@parallels.com> --- fs/namei.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/namei.c b/fs/namei.c index d3430ee..42224e6 100644 --- a/fs/namei.c +++

[Devel] [PATCH] binfmt_misc: add FS_USERNS_MOUNT to file system flags

2015-10-16 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> This is required to allow mounts in nested namespaces. https://jira.sw.ru/browse/PSBM-40137 Signed-off-by: Stanislav Kinsburskiy <skinsbur...@parallels.com> --- fs/binfmt_misc.c |2 +- 1 file changed, 1 insertion(+)

[Devel] [PATCH vz7 2/5] nf_conntrack: expose "nf_conntrack_max" in containers

2015-10-06 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> This sysctl table contains only one entry: "/proc/sys/net/nf_conntrack_max". This is now visible insode ct. However, have to say, that "/proc/sys/net/netfilter/nf_conntrack_max" and friends (despite on they ar

[Devel] [PATCH vz7 4/5] nf_conntrack: expose "nf_conntrack_acct" in contaners

2015-10-06 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> Signed-off-by: Stanislav Kinsburskiy <skinsbur...@parallels.com> --- net/netfilter/nf_conntrack_acct.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/netfilter/nf_conntrack_acct.c b/n

[Devel] [PATCH vz7 5/5] nf_conntrack: expose "nf_conntrack_events*" in contaners

2015-10-06 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> Signed-off-by: Stanislav Kinsburskiy <skinsbur...@parallels.com> --- net/netfilter/nf_conntrack_ecache.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netfilter/nf_conntrack_ecache.c b/n

[Devel] [PATCH vz7 1/5] nf_conntrack: allow expose of priviledged sysctl inside containers

2015-10-06 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> Signed-off-by: Stanislav Kinsburskiy <skinsbur...@parallels.com> --- net/netfilter/nf_conntrack_standalone.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/net/netfilter/nf_conntrack_sta

[Devel] [PATCH vz7 0/5] nf_conntrack: expose sysctls according to rhel6

2015-10-06 Thread Stanislav Kinsburskiy
This series brings to vz7 all the nf_conntrack sysctl's, which are available in vz6. https://jira.sw.ru/browse/PSBM-40044 --- Stanislav Kinsburskiy (5): nf_conntrack: allow expose of priviledged sysctl inside containers nf_conntrack: expose "nf_conntrack_max" in

[Devel] [PATCH vz7 3/5] nf_conntrack: export nf_conntrack_hide_sysctl() helper

2015-10-06 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> Will be used for other tables Signed-off-by: Stanislav Kinsburskiy <skinsbur...@parallels.com> --- include/net/netfilter/nf_conntrack_core.h |2 ++ net/netfilter/nf_conntrack_standalone.c |7 ++- 2 files changed,

[Devel] [PATCH rh6 v2 3/3] rst: recreate deleted sock as a link, if present

2015-10-02 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> If there is another dentry for the unlinked socket inode, then first create a hardlink for this dentry, then rebind and unlink. Signed-off-by: Stanislav Kinsburskiy <skinsbur...@parallels.com> --- kernel/cpt/rst_soc

[Devel] [PATCH rh6 v2 1/3] cpt: export dentry alias search helper

2015-10-02 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> It will be used in other parts of checkpointing Signed-off-by: Stanislav Kinsburskiy <skinsbur...@parallels.com> --- kernel/cpt/cpt_files.c | 56 +--- kernel/cpt/cpt_files.h |3

[Devel] [PATCH rh6 v2 0/3] cpt: unlinked socket with dentry alias support

2015-10-02 Thread Stanislav Kinsburskiy
field size explicitly set to UNIX_PATH_MAX. --- Stanislav Kinsburskiy (3): cpt: export dentry alias search helper cpt: dump dentry alias path for UNIX socket rst: recreate deleted sock as a link, if present include/linux/cpt_image.h |6 +++ kernel/cpt/cpt_files.c| 56

[Devel] [PATCH rh6 v2 2/3] cpt: dump dentry alias path for UNIX socket

2015-10-02 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> There could be a unix socket (thanks to supervisord), which was unlinked, but also a hardlink to it was created prior to unlink. This basically means, that unlinked socket and it's hardlink points to the same inode. In such a case we

[Devel] [PATCH vz7 v2 3/7] ub statd: move struct ub_stat_notify declaration to source

2015-10-01 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> It's used only in one file: kernel/bc/statd.c. No need to declare it in headers. Signed-off-by: Stanislav Kinsburskiy <skinsbur...@parallels.com> --- include/bc/statd.h |7 --- kernel/bc/statd.c |6 ++ 2 file

[Devel] [PATCH vz7 v2 5/7] ub stat: commnad check helper introduced

2015-10-01 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> Signed-off-by: Stanislav Kinsburskiy <skinsbur...@parallels.com> --- kernel/bc/statd.c | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/kernel/bc/statd.c b/kernel/bc/statd.c i

[Devel] [PATCH vz7 v2 2/7] ub statd: small optimisations and clean ups

2015-10-01 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> Signed-off-by: Stanislav Kinsburskiy <skinsbur...@parallels.com> --- kernel/bc/statd.c |8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/kernel/bc/statd.c b/kernel/bc/statd.c index b0b58a4..97

[Devel] [PATCH vz7 v2 4/7] ub statd: move header file from include/ to uapi/

2015-10-01 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> This header doesn't contain kernel parts anymore and can be moved to user slace headers uapi/. Signed-off-by: Stanislav Kinsburskiy <skinsbur...@parallels.com> --- include/uapi/linux/bc/statd.h |0 kernel/bc/statd.c

[Devel] [PATCH vz7 v2 0/7] ub statd: ported from rhel6

2015-10-01 Thread Stanislav Kinsburskiy
This series fixes a bug, does some cleanup and headers tossing and re-enables ub statd system call support. https://jira.sw.ru/browse/PSBM-29338 v2: Added synchonization between beancounter and memcg counters if required --- Stanislav Kinsburskiy (7): ub statd: fix new_notify structure

[Devel] [PATCH vz7 v2 1/7] ub statd: fix new_notify structure allocation

2015-10-01 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> This bug is old, but it was hidden by minimax SLAB size equal to 32 bytes. With SLUB allocator, there are 8-bytes slabs, and this issue is revealed. Signed-off-by: Stanislav Kinsburskiy <skinsbur...@parallels.com> --- kerne

[Devel] [PATCH vz7 v2 7/7] ubstat: enable UB statd

2015-10-01 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> This commit reverts c59367f9e478eb92145d7fea5a88c10407790077 Signed-off-by: Stanislav Kinsburskiy <skinsbur...@parallels.com> --- kernel/bc/statd.c |6 -- 1 file changed, 6 deletions(-) diff --git a/kernel/bc/statd.c

[Devel] [PATCH vz7 5/5] ubstat: enable UB statd

2015-10-01 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> This commit reverts c59367f9e478eb92145d7fea5a88c10407790077 Signed-off-by: Stanislav Kinsburskiy <skinsbur...@parallels.com> --- kernel/bc/statd.c |6 -- 1 file changed, 6 deletions(-) diff --git a/kernel/bc/statd.c

[Devel] [PATCH vz7 2/5] ub statd: small optimisations and clean ups

2015-10-01 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> Signed-off-by: Stanislav Kinsburskiy <skinsbur...@parallels.com> --- kernel/bc/statd.c |8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/kernel/bc/statd.c b/kernel/bc/statd.c index b0b58a4..97

[Devel] [PATCH vz7 1/5] ub statd: fix new_notify structure allocation

2015-10-01 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> This bug is old, but it was hidden by minimax SLAB size equal to 32 bytes. With SLUB allocator, there are 8-bytes slabs, and this issue is revealed. Signed-off-by: Stanislav Kinsburskiy <skinsbur...@parallels.com> --- kerne

[Devel] [PATCH vz7 0/5] ub statd: ported from rhel6

2015-10-01 Thread Stanislav Kinsburskiy
This series fixes a bug, does some cleanup and headers tossing and re-enables ub statd system call support. https://jira.sw.ru/browse/PSBM-29338 --- Stanislav Kinsburskiy (5): ub statd: fix new_notify structure allocation ub statd: small optimisations and clean ups ub statd

[Devel] [PATCH vz7 4/5] ub statd: move header file from include/ to uapi/

2015-10-01 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> This header doesn't contain kernel parts anymore and can be moved to user slace headers uapi/. Signed-off-by: Stanislav Kinsburskiy <skinsbur...@parallels.com> --- include/uapi/linux/bc/statd.h |0 kernel/bc/statd.c

[Devel] [PATCH vz7 3/5] ub statd: move struct ub_stat_notify declaration to source

2015-10-01 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> It's used only in one file: kernel/bc/statd.c. No need to declare it in headers. Signed-off-by: Stanislav Kinsburskiy <skinsbur...@parallels.com> --- include/bc/statd.h |7 --- kernel/bc/statd.c |6 ++ 2 file

Re: [Devel] [PATCH rhel6 2/3] cpt: dump dentry alias path for UNIX socket

2015-09-28 Thread Stanislav Kinsburskiy
28.09.2015 17:57, Vasily Averin пишет: Stas, please see my comment below. On 28.09.2015 16:16, Stanislav Kinsburskiy wrote: From: Stanislav Kinsburskiy <skinsbur...@parallels.com> There could be a unix socket (thanks to supervisord), which was unlinked, but also a hardlink to it was c

[Devel] [PATCH rhel6 0/3] cpt: unlinked socket with dentry alias support

2015-09-28 Thread Stanislav Kinsburskiy
This patch set adds support for unlinked socket migration, which has another dentry, poiting to it's inode. Note: no explicit support for DelayFS is required, because in this case dentry is just renamed, to everything works by default. https://jira.sw.ru/browse/PSBM-39774 --- Stanislav

[Devel] [PATCH rhel6 1/3] cpt: export dentry alias search helper

2015-09-28 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> It will be used in other parts of checkpointing Signed-off-by: Stanislav Kinsburskiy <skinsbur...@parallels.com> --- kernel/cpt/cpt_files.c | 56 +--- kernel/cpt/cpt_files.h |3

[Devel] [PATCH rhel6 2/3] cpt: dump dentry alias path for UNIX socket

2015-09-28 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> There could be a unix socket (thanks to supervisord), which was unlinked, but also a hardlink to it was created prior to unlink. This basically means, that unlinked socket and it's hardlink points to the same inode. In such a case we

[Devel] [PATCH rhel6 3/3] rst: recreate deleted sock as a link, if present

2015-09-28 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> If there is another dentry for the unlinked socket inode, then first create a hardlink for this dentry, then rebind and unlink. Signed-off-by: Stanislav Kinsburskiy <skinsbur...@parallels.com> --- include/linux/cpt_im

Re: [Devel] [PATCH vz7] fuse: virtualize file system

2015-09-22 Thread Stanislav Kinsburskiy
e have to virtualize fuse_control_sb and fuse_conn_list _before_ setting FS_VIRTUALIZED bit. On 09/22/2015 06:28 AM, Stanislav Kinsburskiy wrote: From: Stanislav Kinsburskiy <skinsbur...@parallels.com> This is requred to allow to mount FUSE-based filesystems like SshFS. https://bugs.openvz.org/b

Re: [Devel] [PATCH vz7] fuse: virtualize file system

2015-09-22 Thread Stanislav Kinsburskiy
Makes sense. Thanks. 22.09.2015 17:38, Maxim Patlasov пишет: I think we have to virtualize fuse_control_sb and fuse_conn_list _before_ setting FS_VIRTUALIZED bit. On 09/22/2015 06:28 AM, Stanislav Kinsburskiy wrote: From: Stanislav Kinsburskiy <skinsbur...@parallels.com> This is r

[Devel] [PATCH vz7 v2 0/3] venet: create/delete devices via netlink

2015-09-22 Thread Stanislav Kinsburskiy
This series add venet device creation and destruction support via netlink. It also removes device creation via per-net init hook. https://jira.sw.ru/browse/PSBM-23441 v2: return -ENOTSUP in case of attempt to create a venet device in nested namespace. --- Stanislav Kinsburskiy (3): venet

[Devel] [PATCH vz7 v2 1/3] venet: fix false positive return code in case of error in venet_init()

2015-09-22 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> It's set to 0 few lines above. Signed-off-by: Stanislav Kinsburskiy <skinsbur...@parallels.com> --- drivers/net/venetdev.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/venetdev.c b

[Devel] [PATCH vz7] fuse: virtualize file system

2015-09-22 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> This is requred to allow to mount FUSE-based filesystems like SshFS. https://bugs.openvz.org/browse/OVZ-6498 Signed-off-by: Stanislav Kinsburskiy <skinsbur...@parallels.com> --- fs/fuse/inode.c |2 +- 1 file changed, 1 ins

[Devel] [PATCH vz7 v2 2/3] venet: add newlink and dellink callbacks to rtnetlink operations

2015-09-22 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> This functions are mostly duplicating existent code in per-net hooks, except some initialization and locking, which are performed in rtnetlink layer. https://jira.sw.ru/browse/PSBM-23441 Signed-off-by: Stanislav Kinsburskiy <

Re: [Devel] [PATCH vz7 2/3] venet: add newlink and dellink callbacks to rtnetlink operations

2015-09-22 Thread Stanislav Kinsburskiy
22.09.2015 11:36, Andrew Vagin пишет: On Mon, Sep 21, 2015 at 07:44:31PM +0400, Stanislav Kinsburskiy wrote: From: Stanislav Kinsburskiy <skinsbur...@parallels.com> This functions are mostly duplicating existent code in per-net hooks, except some initialization and locking,

Re: [Devel] [PATCH vz7 2/3] venet: add newlink and dellink callbacks to rtnetlink operations

2015-09-22 Thread Stanislav Kinsburskiy
22.09.2015 11:36, Andrew Vagin пишет: On Mon, Sep 21, 2015 at 07:44:31PM +0400, Stanislav Kinsburskiy wrote: From: Stanislav Kinsburskiy <skinsbur...@parallels.com> This functions are mostly duplicating existent code in per-net hooks, except some initialization and locking,

Re: [Devel] [PATCH vz7 3/3] venet: remove per-net hooks and related code

2015-09-22 Thread Stanislav Kinsburskiy
22.09.2015 11:38, Andrew Vagin пишет: On Mon, Sep 21, 2015 at 07:44:36PM +0400, Stanislav Kinsburskiy wrote: From: Stanislav Kinsburskiy <skinsbur...@parallels.com> Venete device is now constructed via netlink interface https://jira.sw.ru/browse/PSBM-23441 This patch should not be co

Re: [Devel] [PATCH vz7 2/3] venet: add newlink and dellink callbacks to rtnetlink operations

2015-09-22 Thread Stanislav Kinsburskiy
22.09.2015 13:15, Andrew Vagin пишет: On Tue, Sep 22, 2015 at 11:40:03AM +0200, Stanislav Kinsburskiy wrote: 22.09.2015 11:36, Andrew Vagin пишет: On Mon, Sep 21, 2015 at 07:44:31PM +0400, Stanislav Kinsburskiy wrote: From: Stanislav Kinsburskiy <skinsbur...@parallels.com> This fun

[Devel] [PATCH vz7 v2 3/3] venet: remove per-net hooks and related code

2015-09-22 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> Venete device is now constructed via netlink interface https://jira.sw.ru/browse/PSBM-23441 Signed-off-by: Stanislav Kinsburskiy <skinsbur...@parallels.com> --- drivers/net/venet

[Devel] [PATCH vz7 v3 2/3] venet: add newlink and dellink callbacks to rtnetlink operations

2015-09-22 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> This functions are mostly duplicating existent code in per-net hooks, except some initialization and locking, which are performed in rtnetlink layer. https://jira.sw.ru/browse/PSBM-23441 Signed-off-by: Stanislav Kinsburskiy <

[Devel] [PATCH vz7 v3 0/3] Series short description

2015-09-22 Thread Stanislav Kinsburskiy
in nested namespace. --- Stanislav Kinsburskiy (3): venet: fix false positive return code in case of error in venet_init() venet: add newlink and dellink callbacks to rtnetlink operations venet: remove per-net hooks and related code drivers/net/venetdev.c | 123

[Devel] [PATCH vz7 v3 3/3] venet: remove per-net hooks and related code

2015-09-22 Thread Stanislav Kinsburskiy
From: Stanislav Kinsburskiy <skinsbur...@parallels.com> Venete device is now constructed via netlink interface https://jira.sw.ru/browse/PSBM-23441 Signed-off-by: Stanislav Kinsburskiy <skinsbur...@parallels.com> --- drivers/net/venet

Re: [Devel] [PATCH vz7 2/3] venet: add newlink and dellink callbacks to rtnetlink operations

2015-09-22 Thread Stanislav Kinsburskiy
22.09.2015 13:28, Andrew Vagin пишет: On Tue, Sep 22, 2015 at 01:20:11PM +0200, Stanislav Kinsburskiy wrote: 22.09.2015 13:15, Andrew Vagin пишет: On Tue, Sep 22, 2015 at 11:40:03AM +0200, Stanislav Kinsburskiy wrote: 22.09.2015 11:36, Andrew Vagin пишет: On Mon, Sep 21, 2015 at 07:44

<    1   2   3   4   5   >