Re: [PATCH 3.4.y] x86, kvm: fix kvm's usage of kernel_fpu_begin/end()

2015-07-30 Thread Rui Xiang
ping... On 2015/7/29 19:03, Rui Xiang wrote: From: Suresh Siddha suresh.b.sid...@intel.com commit b1a74bf8212367be2b1d6685c11a84e056eaaaf1 upstream. Preemption is disabled between kernel_fpu_begin/end() and as such it is not a good idea to use these routines in kvm_load/put_guest_fpu

Re: [request for stable inclusion][Patch 3.4.y] x86, kvm: use kernel_fpu_begin/end() in kvm_load/put_guest_fpu()

2015-07-30 Thread Rui Xiang
ping On 2015/7/29 19:03, Rui Xiang wrote: Hi Zefan, Suresh or Peter, 9c1c3fac53378c9782c18f80107965578d7b7167 x86, kvm: use kernel_fpu_begin/end() in kvm_load/put_guest_fpu() We never cause the Device Not Available exception in kernel mode, but without this patch, the orign

[request for stable inclusion][Patch 3.4.y] x86, kvm: use kernel_fpu_begin/end() in kvm_load/put_guest_fpu()

2015-07-29 Thread Rui Xiang
Hi Zefan, Suresh or Peter, 9c1c3fac53378c9782c18f80107965578d7b7167 x86, kvm: use kernel_fpu_begin/end() in kvm_load/put_guest_fpu() We never cause the Device Not Available exception in kernel mode, but without this patch, the orign unlazy_fpu() do stts(), the following fpu_restore_checking()

[PATCH 3.4.y] x86, kvm: fix kvm's usage of kernel_fpu_begin/end()

2015-07-29 Thread Rui Xiang
-off-by: Rui Xiang rui.xi...@huawei.com --- arch/x86/include/asm/i387.h | 28 ++-- arch/x86/kernel/i387.c | 13 + arch/x86/kvm/vmx.c | 10 +++--- arch/x86/kvm/x86.c | 4 ++-- 4 files changed, 40 insertions(+), 15 deletions(-) diff

[request for stable inclusion][Patch 3.4.y] x86, kvm: use kernel_fpu_begin/end() in kvm_load/put_guest_fpu()

2015-07-29 Thread Rui Xiang
9c1c3fac53378c9782c18f80107965578d7b7167 x86, kvm: use kernel_fpu_begin/end() in kvm_load/put_guest_fpu() We never cause the Device Not Available exception in kernel mode, but without this patch, the orign unlazy_fpu() do stts(), the following fpu_restore_checking() will trigger a DNA(Device Not

[PATCH 3.4.y] x86, kvm: fix kvm's usage of kernel_fpu_begin/end()

2015-07-29 Thread Rui Xiang
-off-by: Rui Xiang rui.xi...@huawei.com --- arch/x86/include/asm/i387.h | 28 ++-- arch/x86/kernel/i387.c | 13 + arch/x86/kvm/vmx.c | 10 +++--- arch/x86/kvm/x86.c | 4 ++-- 4 files changed, 40 insertions(+), 15 deletions(-) diff

Re: [PATCHES] Networking

2014-07-11 Thread Rui Xiang
On 2014/6/18 13:20, David Miller wrote: Please queue up the following networking bug fixes for v3.2, v3.4, v3.10, v3.14, and v3.15, respectively. Thanks! Hi, David I found the 3.10_box contained the fixes for CVE-2014-0181, but 3.4_box didn't. Did you miss those, or you would queue

[request for stable inclusion] nohz: Fix another inconsistency between CONFIG_NO_HZ=n and nohz=off

2014-06-23 Thread Rui Xiang
to tick_nohz_stop_sched_tick() instead of can_stop_idle_tick] Signed-off-by: Rui Xiang rui.xi...@huawei.com --- kernel/time/tick-sched.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index 638dadf..67106f8 100644 --- a/kernel/time

[PATCH 3.4 v2 1/4] Fix 4 port and add support for 8 port 'Unknown' PCI serial port cards

2014-04-30 Thread Rui Xiang
/O 0xfe38 (irq = 17) is a 16550A Signed-off-by: Scott Ashcroft scott.ashcr...@talk21.com Signed-off-by: Greg Kroah-Hartman gre...@linuxfoundation.org [xr: Backported to 3.4: adjust context] Signed-off-by: Rui Xiang rui.xi...@huawei.com --- drivers/tty/serial/8250/8250_pci.c | 17

[3.4.x] missing patches for 3.4.x (Part IV -v2)

2014-04-30 Thread Rui Xiang
v2: As Ben suggested, adjust the patches order and add a supplement from 3.2.x for commit ebebd49a8eab. - Hi Greg, These are the part IV commits that I've analized from the list of upstream commits that have been backported to 3.2 but missing from 3.4. For the 16 commits, - 12 commits

[PATCH 3.4 v2 4/4] tty/serial: Add support for Altera serial port

2014-04-30 Thread Rui Xiang
filenames, context] Signed-off-by: Rui Xiang rui.xi...@huawei.com --- .../devicetree/bindings/tty/serial/of-serial.txt| 3 +++ drivers/tty/serial/8250/8250.c | 21 + drivers/tty/serial/of_serial.c | 6 ++ include/linux/serial_core.h

[PATCH 3.4 v2 2/4] 8250/16?50: Add support for Broadcom TruManage redirected serial port

2014-04-30 Thread Rui Xiang
Kroah-Hartman gre...@linuxfoundation.org [xr: Backported to 3.4: - Adjust filenames - Adjust context - PORT_BRCM_TRUMANAGE is 22 not 24] Signed-off-by: Rui Xiang rui.xi...@huawei.com --- drivers/tty/serial/8250/8250.c | 11 +++ drivers/tty/serial/8250/8250.h | 1 + drivers/tty

[PATCH 3.4 v2 3/4] 8250: use correct value for PORT_BRCM_TRUMANAGE

2014-04-30 Thread Rui Xiang
serial8250_type() to return unknown for them (though I'm not sure why it would ever see them). Signed-off-by: Ben Hutchings b...@decadent.org.uk [xr: Backported to 3.4: Adjust filenames] Signed-off-by: Rui Xiang rui.xi...@huawei.com --- drivers/tty/serial/8250/8250.c | 4 ++-- include/linux

Re: [PATCH 2/3] tty/serial: Add support for Altera serial port

2014-04-23 Thread Rui Xiang
On 2014/4/22 23:30, Ben Hutchings wrote: On Tue, 2014-04-22 at 15:21 +0800, Rui Xiang wrote: From: Ley Foon Tan lf...@altera.com commit e06c93cacb82dd147266fd1bdb2d0a0bd45ff2c1 upstream. Add support for Altera 8250/16550 compatible serial port. Signed-off-by: Ley Foon Tan lf...@altera.com

[3.4.x] missing patches for 3.4.x (Part IV)

2014-04-22 Thread Rui Xiang
Hi Greg, These are the part IV commits that I've analized from the list of upstream commits that have been backported to 3.2 but missing from 3.4. (This should have been sent out before Part V. I just forgot. Please pick them before Part V.) For the 15 commits, - 12 commits were marked for

[PATCH 1/3] Fix 4 port and add support for 8 port 'Unknown' PCI serial port cards

2014-04-22 Thread Rui Xiang
/O 0xfe38 (irq = 17) is a 16550A Signed-off-by: Scott Ashcroft scott.ashcr...@talk21.com Signed-off-by: Greg Kroah-Hartman gre...@linuxfoundation.org [xr: Backported to 3.4: adjust context] Signed-off-by: Rui Xiang rui.xi...@huawei.com --- drivers/tty/serial/8250/8250_pci.c | 17

[PATCH 3/3] 8250/16?50: Add support for Broadcom TruManage redirected serial port

2014-04-22 Thread Rui Xiang
...@broadcom.com Signed-off-by: Greg Kroah-Hartman gre...@linuxfoundation.org [xr: Backported to 3.4: - Adjust filenames - Adjust context - RT_BRCM_TRUMANAGE is 25 not 24] Signed-off-by: Rui Xiang rui.xi...@huawei.com --- drivers/tty/serial/8250/8250.c | 11 +++ drivers/tty/serial

Re: [PATCH 3.4 3/4] dm mpath: fix race condition between multipath_dtr and pg_init_done

2014-04-15 Thread Rui Xiang
I think the version should have been bumped to 1.3.1 in commit d8b8a43e0f3c ('dm: fix truncated status strings', commit fd7c092e711e upstream), and that you should bump it to 1.3.2 in this patch, same as I did for 3.2.y. Hi, Ben That's true in 3.2.y. But in commit d8b8a43e0f3c('dm: fix

[3.4.x RESEND] missing patches for 3.4.x (Part III)

2014-04-15 Thread Rui Xiang
Hi Greg, These are the part III commits that I've analized from the list of upstream commits that have been backported to 3.2 but missing from 3.4. For the 15 commits, - 13 commits were marked for stable but can't be applied cleanly to 3.4.x. - 2 commits have no stable tag. I've found out

[PATCH RESEND 3.4 1/4] nfsd: nfsd_open: when dentry_open returns an error do not propagate as struct file

2014-04-15 Thread Rui Xiang
...@redhat.com Signed-off-by: J. Bruce Fields bfie...@redhat.com [xr: Backported to 3.4: adjust context] Signed-off-by: Rui Xiang rui.xi...@huawei.com --- fs/nfsd/vfs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index 026a873..6585b30 100644 --- a/fs

[PATCH RESEND 3.4 4/4] dm thin: fix discard corruption

2014-04-15 Thread Rui Xiang
-by: Joe Thornber e...@redhat.com Signed-off-by: Alasdair G Kergon a...@redhat.com [bwh: Backported to 3.2: bump target version numbers from 1.0.1 to 1.0.2] Signed-off-by: Ben Hutchings b...@decadent.org.uk [xr: Backported to 3.4: bump target version numbers to 1.1.1] Signed-off-by: Rui Xiang rui.xi

[PATCH RESEND 3.4 2/4] dm snapshot: avoid snapshot space leak on crash

2014-04-15 Thread Rui Xiang
version] Signed-off-by: Rui Xiang rui.xi...@huawei.com --- drivers/md/dm-snap.c | 71 ++-- 1 file changed, 64 insertions(+), 7 deletions(-) diff --git a/drivers/md/dm-snap.c b/drivers/md/dm-snap.c index e106267..b092338 100644 --- a/drivers/md/dm-snap.c

[PATCH RESEND 3.4 3/4] dm mpath: fix race condition between multipath_dtr and pg_init_done

2014-04-15 Thread Rui Xiang
: - Adjust context - Bump version to 1.3.2 not 1.6.0] Signed-off-by: Ben Hutchings b...@decadent.org.uk [xr: Backported to 3.4: Adjust context] Signed-off-by: Rui Xiang rui.xi...@huawei.com --- drivers/md/dm-mpath.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git

[PATCH 3.4] efivars: Allow disabling use as a pstore backend

2014-04-15 Thread Rui Xiang
-off-by: Matt Fleming matt.flem...@intel.com [xr: Backported to 3.4: adjust context] Signed-off-by: Rui Xiang rui.xi...@huawei.com --- drivers/firmware/Kconfig | 9 +++ drivers/firmware/efivars.c | 63 +++--- 2 files changed, 29 insertions(+), 43

[3.4.x] missing patches for 3.4.x (Part V)

2014-04-15 Thread Rui Xiang
Hi Greg, These are the part V commits. For the 18 commits, - 10 commits were marked for stable but can't be applied cleanly to 3.4.x. - 6 commits have no stable tag. They should be applied to 3.4.x. - 1 commit is not a bug fix, but a prerequisite for a commit that should be backported.

[3.4.x] missing patches for 3.4.x (Part VI)

2014-04-15 Thread Rui Xiang
Hi Greg, These are the part VI commits. For the 9 commits, - 4 commits were marked for stable but can't be applied cleanly to 3.4.x. - 5 commits have no stable tag. They should be applied to 3.4.x. There are 2 commits that need some adjustments. The following patches are the backports.

[PATCH 3.4 2/2] x86, efivars: firmware bug workarounds should be in platform code

2014-04-15 Thread Rui Xiang
-off-by: Rui Xiang rui.xi...@huawei.com --- arch/x86/platform/efi/efi.c | 25 + drivers/firmware/efivars.c | 18 +++--- include/linux/efi.h | 9 - 3 files changed, 36 insertions(+), 16 deletions(-) diff --git a/arch/x86/platform/efi/efi.c b

[PATCH 3.4 1/2] efi_pstore: Introducing workqueue updating sysfs

2014-04-15 Thread Rui Xiang
Aguchi seiji.agu...@hds.com Acked-by: Matt Fleming matt.flem...@intel.com Signed-off-by: Tony Luck tony.l...@intel.com [xr: Backported to 3.4: - Adjust contest - Remove repeated definition of helper function variable_is_present] Signed-off-by: Rui Xiang rui.xi...@huawei.com --- drivers/firmware

[3.4.x] missing patches for 3.4.x (Part III)

2014-03-24 Thread Rui Xiang
Hi Greg, These are the part III commits that I've analized from the list of upstream commits that have been backported to 3.2 but missing from 3.4. For the 15 commits, - 13 commits were marked for stable but can't be applied cleanly to 3.4.x. - 2 commits have no stable tag. I've found out

[PATCH 3.4 2/4] dm snapshot: avoid snapshot space leak on crash

2014-03-24 Thread Rui Xiang
version] Signed-off-by: Rui Xiang rui.xi...@huawei.com --- drivers/md/dm-snap.c | 71 ++-- 1 file changed, 64 insertions(+), 7 deletions(-) diff --git a/drivers/md/dm-snap.c b/drivers/md/dm-snap.c index e106267..b092338 100644 --- a/drivers/md/dm-snap.c

[PATCH 3.4 4/4] dm thin: fix discard corruption

2014-03-24 Thread Rui Xiang
-by: Joe Thornber e...@redhat.com Signed-off-by: Alasdair G Kergon a...@redhat.com [bwh: Backported to 3.2: bump target version numbers from 1.0.1 to 1.0.2] Signed-off-by: Ben Hutchings b...@decadent.org.uk [xr: Backported to 3.4: bump target version numbers to 1.1.1] Signed-off-by: Rui Xiang rui.xi

[PATCH 3.4 1/4] nfsd: nfsd_open: when dentry_open returns an error do not propagate as struct file

2014-03-24 Thread Rui Xiang
...@redhat.com Signed-off-by: J. Bruce Fields bfie...@redhat.com [xr: Backported to 3.4: adjust context] Signed-off-by: Rui Xiang rui.xi...@huawei.com --- fs/nfsd/vfs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index 026a873..6585b30 100644 --- a/fs

[PATCH 3.4 3/4] dm mpath: fix race condition between multipath_dtr and pg_init_done

2014-03-24 Thread Rui Xiang
: - Adjust context - Bump version to 1.3.2 not 1.6.0] Signed-off-by: Ben Hutchings b...@decadent.org.uk [xr: Backported to 3.4: Bump version to 1.3.1] Signed-off-by: Rui Xiang rui.xi...@huawei.com --- drivers/md/dm-mpath.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff

[PATCH 3.4 1/2] VFS: make vfs_fstat() use f[get|put]_light()

2014-03-23 Thread Rui Xiang
to 3.4: adjust function name] Signed-off-by: Rui Xiang rui.xi...@huawei.com --- fs/stat.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/stat.c b/fs/stat.c index dc6d0be..88b36c7 100644 --- a/fs/stat.c +++ b/fs/stat.c @@ -57,12 +57,13 @@ EXPORT_SYMBOL(vfs_getattr); int

[3.4.x] missing patches for 3.4.x (Part II)

2014-03-23 Thread Rui Xiang
Hi Greg, These are the part II commits that I've analized from the list of upstream commits that have been backported to 3.2 but missing from 3.4. For the 13 commits, - 5 commits were marked for stable but can't be applied cleanly to 3.4.x. - 1 commit has stable tag. It had been backported

[PATCH 3.4 2/2] cifs: delay super block destruction until all cifsFileInfo objects are gone

2014-03-23 Thread Rui Xiang
Reviewed-by: Jeff Layton jlay...@redhat.com Reported-and-Tested-by: Ben Greear gree...@candelatech.com Signed-off-by: Steve French sfre...@us.ibm.com [bwh: Backported to 3.2: adjust context] Signed-off-by: Ben Hutchings b...@decadent.org.uk [xr: Backported to 3.4: adjust context] Signed-off-by: Rui Xiang

[3.4.x] missing patches for 3.4.x

2014-02-22 Thread Rui Xiang
Hi Greg, These are a bunch of commits from the list of upstream commits that have been backported to 3.2 but missing from 3.4. For the 14 commits, - 12 commits were marked for stable but can't be applied cleanly to 3.4.x. - 1 commit is not a bug fix, but a prerequisite for a commit which

[PATCH 3/3] block: Don't access request after it might be freed

2014-02-22 Thread Rui Xiang
the window for rq to be reallocated is so small. Signed-off-by: Roland Dreier rol...@purestorage.com Signed-off-by: Jens Axboe ax...@kernel.dk [xr: Backported to 3.4: adjust context] Signed-off-by: Rui Xiang rui.xi...@huawei.com --- block/blk-exec.c | 12 +++- 1 file changed, 11 insertions

[PATCH 1/3] nbd: correct disconnect behavior

2014-02-22 Thread Rui Xiang
a...@linux-foundation.org Signed-off-by: Linus Torvalds torva...@linux-foundation.org [xr: Backported to 3.4: adjust context] Signed-off-by: Rui Xiang rui.xi...@huawei.com --- drivers/block/nbd.c | 8 +++- include/linux/nbd.h | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git

[PATCH 2/3] ext4: return ENOMEM if sb_getblk() fails

2014-02-22 Thread Rui Xiang
if sb_getblk() fails. Signed-off-by: Theodore Ts'o ty...@mit.edu [xr: Backported to 3.4: - Drop change to inline.c - Call to ext4_ext_check() from ext4_ext_find_extent() is conditional] Signed-off-by: Rui Xiang rui.xi...@huawei.com --- fs/ext4/extents.c | 25 ++--- fs/ext4

[request for stable inclusion] nfs: don't allow nfs_find_actor to match inodes of the wrong type

2013-10-31 Thread Rui Xiang
? Thanks! Rui Xiang -- To unsubscribe from this list: send the line unsubscribe stable in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[request for stable inclusion] vfs,proc: guarantee unique inodes in /proc

2013-10-31 Thread Rui Xiang
Hi Greg, Upstream commit 51f0885e5415 has a stable tag and it has been backported to 3.2 stable, and it's also applicable to 3.4 stable. It was built successful for me. As it can't be applied cleanly to 3.4, you can cherry pick commit 4c239ba63bcc from linux-3.2.y in stable tree. Thanks! Rui