[PATCH for stable 3.10] udf: Check length of extended attributes and allocation descriptors

2015-09-06 Thread Zhang Zhen
stable@vger.kernel.org Signed-off-by: Jan Kara <j...@suse.cz> Signed-off-by: Jiri Slaby <jsl...@suse.cz> [Jan and Jiri fixed it in 3.12 stable, i ported it to 3.10 stable, replaced bs by inode->i_sb->s_blocksize] Signed-off-by: Zhang Zhen <zhenzhang.zh...@huawei.co

[PATCH for stable 3.10] x86: bpf_jit: fix compilation of large bpf programs

2015-09-06 Thread Zhang Zhen
From: Alexei Starovoitov [ Upstream commit 3f7352bf21f8fd7ba3e2fcef9488756f188e12be ] x86 has variable length encoding. x86 JIT compiler is trying to pick the shortest encoding for given bpf instruction. While doing so the jump targets are changing, so JIT is doing multiple

[PATCH for stable 3.10] udf: Check length of extended attributes and allocation descriptors

2015-09-06 Thread Zhang Zhen
Lunde <chlu...@ping.uio.no> Cc: stable@vger.kernel.org Signed-off-by: Jan Kara <j...@suse.cz> Signed-off-by: Jiri Slaby <jsl...@suse.cz> [Jan and Jiri fixed it in 3.12 stable, i ported it to 3.10 stable, replaced bs by inode->i_sb->s_blocksize] Signed-off-by: Zhang Zh

[PATCH] x86: bpf_jit: fix compilation of large bpf programs

2015-09-06 Thread Zhang Zhen
From: Alexei Starovoitov [ Upstream commit 3f7352bf21f8fd7ba3e2fcef9488756f188e12be ] x86 has variable length encoding. x86 JIT compiler is trying to pick the shortest encoding for given bpf instruction. While doing so the jump targets are changing, so JIT is doing multiple

[PATCH] udf: Check length of extended attributes and allocation descriptors

2015-08-16 Thread Zhang Zhen
@vger.kernel.org Signed-off-by: Jan Kara j...@suse.cz Signed-off-by: Jiri Slaby jsl...@suse.cz [Jan and Jiri fixed it in 3.12 stable, i ported it to 3.10 stable, replaced bs by inode-i_sb-s_blocksize] Signed-off-by: Zhang Zhen zhenzhang.zh...@huawei.com --- fs/udf/inode.c | 10 ++ 1 file

Re: [PATCH v3.10-stable] splice: Apply generic position and size checks to each write

2015-03-31 Thread Zhang Zhen
Hi Greg, Jiri Slaby has pushed this patch to his 3.12-stable tree. https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?h=linux-3.12.yid=d7e3ae47c441894b11dce376ff8d110780872d0d Can you push it to 3.10-stable tree ? Best regards! On 2015/3/20 16:59, Zhang Zhen wrote

Re: Patch serial: 8250_dw: Fix deadlock in LCR workaround has been added to the 3.19-stable tree

2015-03-27 Thread Zhang Zhen
called from serial8250_set_termios()), this deadlocks. Make the error message a FIXME until a general solution is devised. Cc: Tim Kryger tim.kry...@gmail.com Reported-by: Zhang Zhen zhenzhang.zh...@huawei.com Signed-off-by: Peter Hurley pe...@hurleysoftware.com Signed-off-by: Greg Kroah

Re: [PATCH v3.10-stable] splice: Apply generic position and size checks to each write

2015-03-22 Thread Zhang Zhen
Add cc to Al. On 2015/3/20 17:18, Willy Tarreau wrote: Hi Greg, On Fri, Mar 20, 2015 at 10:05:00AM +0100, Greg KH wrote: On Fri, Mar 20, 2015 at 04:59:42PM +0800, Zhang Zhen wrote: We need to check the position and size of file writes against various limits, using generic_write_check

[PATCH v3.10-stable] splice: Apply generic position and size checks to each write

2015-03-20 Thread Zhang Zhen
Hutchings b...@decadent.org.uk [Ben fixed it in 3.2 stable, i ported it to 3.10 stable] Signed-off-by: Zhang Zhen zhenzhang.zh...@huawei.com --- fs/ocfs2/file.c | 8 +--- fs/splice.c | 8 ++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/fs/ocfs2/file.c b/fs/ocfs2

Re: [PATCH v3.10-stable] splice: Apply generic position and size checks to each write

2015-03-20 Thread Zhang Zhen
On 2015/3/20 17:05, Greg KH wrote: On Fri, Mar 20, 2015 at 04:59:42PM +0800, Zhang Zhen wrote: We need to check the position and size of file writes against various limits, using generic_write_check(). This was not being done for the splice write path. It was fixed upstream by commit