[PATCH Trivial] intel-iommu: check return value of device_to_iommu() before using it

2014-01-08 Thread ethan zhao
in function iommu_support_dev_iotlb(),return value of device_to_iommu() is used without checking, this could cause NULL pointer issue. this patch is for v3.12.6 Signed-off-by: Ethan Zhao --- drivers/iommu/intel-iommu.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git

[PATCH Trivial] intel-iommu: check return value of device_to_iommu() before using it

2014-01-08 Thread ethan zhao
in function iommu_support_dev_iotlb(),return value of device_to_iommu() is used without checking, this could cause NULL pointer issue. this patch is for v3.12.6 Signed-off-by: Ethan Zhao ethan.z...@oracle.com --- drivers/iommu/intel-iommu.c |2 ++ 1 files changed, 2 insertions(+), 0

[PATCH] media: gspaca: check pointer against NULL before using it in create_urbs()

2014-01-07 Thread Ethan Zhao
function alt_xfer() may return NULL, should check its return value passed into create_urbs() as parameter. gspca_init_transfer() { ... ... ret = create_urbs(gspca_dev,alt_xfer(>altsetting[alt], xfer)); ... ... } Signed-off-by: Ethan Zhao --- drivers/media/usb/gspca/gspca.c | 2 ++ 1 f

[PATCH] sparc: replace __GFP_NOFAIL with GFP_ATOMIC in mdesc_kmalloc()

2014-01-07 Thread Ethan Zhao
Has kmalloc() failure checking there, so it is unnecessary to allocate with __GFP_NOFAIL flag that might block forever. Signed-off-by: Ethan Zhao --- arch/sparc/kernel/mdesc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sparc/kernel/mdesc.c b/arch/sparc/kernel

[PATCH] sparc: replace __GFP_NOFAIL with GFP_ATOMIC in mdesc_kmalloc()

2014-01-07 Thread Ethan Zhao
Has kmalloc() failure checking there, so it is unnecessary to allocate with __GFP_NOFAIL flag that might block forever. Signed-off-by: Ethan Zhao ethan.ker...@gmail.com --- arch/sparc/kernel/mdesc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sparc/kernel/mdesc.c b

[PATCH] media: gspaca: check pointer against NULL before using it in create_urbs()

2014-01-07 Thread Ethan Zhao
function alt_xfer() may return NULL, should check its return value passed into create_urbs() as parameter. gspca_init_transfer() { ... ... ret = create_urbs(gspca_dev,alt_xfer(intf-altsetting[alt], xfer)); ... ... } Signed-off-by: Ethan Zhao ethan.ker...@gmail.com --- drivers/media/usb/gspca

Re: [PATCH] sparc: replace __GFP_NOFAIL with GFP_ATOMIC in mdesc_kmalloc()

2014-01-06 Thread Ethan Zhao
cc sparcli...@vger.kernel.org On Wed, Dec 11, 2013 at 10:54 PM, Ethan Zhao wrote: > Has kmalloc() failure checking there, so it is unnecessary to allocate with > __GFP_NOFAIL flag that might block forever. > > Signed-off-by: Ethan Zhao > --- > arch/sparc/kernel/mdesc.c | 2 +-

Re: [PATCH] sparc: replace __GFP_NOFAIL with GFP_ATOMIC in mdesc_kmalloc()

2014-01-06 Thread Ethan Zhao
David, Got it. thanks, Ethan On Sun, Jan 5, 2014 at 10:05 AM, David Miller wrote: > From: Ethan Zhao > Date: Wed, 11 Dec 2013 22:54:21 +0800 > >> Has kmalloc() failure checking there, so it is unnecessary to allocate with >> __GFP_NOFAIL flag that might block fore

[PATCH] [media] cx18: introduce a helper function to avoid array overrun

2014-01-06 Thread Ethan Zhao
cx18_i2c_register() is called in cx18_init_subdevs() with index greater than length of hw_bus array, that will cause array overrun, introduce a helper cx18_get_max_bus_num() to avoid it. V2: fix a typo and use ARRAY_SIZE macro Signed-off-by: Ethan Zhao --- drivers/media/pci/cx18/cx18-driver.c

[PATCH] [media] saa7146: check return value of saa7146_format_by_fourcc() to avoid NULL pointer

2014-01-06 Thread Ethan Zhao
Function saa7146_format_by_fourcc() may return NULL, reference of the returned result would cause NULL pointer issue without checking. Signed-off-by: Ethan Zhao --- drivers/media/common/saa7146/saa7146_hlp.c | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff

[PATCH] [media] saa7146: check return value of saa7146_format_by_fourcc() to avoid NULL pointer

2014-01-06 Thread Ethan Zhao
Function saa7146_format_by_fourcc() may return NULL, reference of the returned result would cause NULL pointer issue without checking. Signed-off-by: Ethan Zhao ethan.ker...@gmail.com --- drivers/media/common/saa7146/saa7146_hlp.c | 22 +++--- 1 file changed, 19 insertions(+), 3

[PATCH] [media] cx18: introduce a helper function to avoid array overrun

2014-01-06 Thread Ethan Zhao
cx18_i2c_register() is called in cx18_init_subdevs() with index greater than length of hw_bus array, that will cause array overrun, introduce a helper cx18_get_max_bus_num() to avoid it. V2: fix a typo and use ARRAY_SIZE macro Signed-off-by: Ethan Zhao ethan.ker...@gmail.com --- drivers/media

Re: [PATCH] sparc: replace __GFP_NOFAIL with GFP_ATOMIC in mdesc_kmalloc()

2014-01-06 Thread Ethan Zhao
David, Got it. thanks, Ethan On Sun, Jan 5, 2014 at 10:05 AM, David Miller da...@davemloft.net wrote: From: Ethan Zhao ethan.ker...@gmail.com Date: Wed, 11 Dec 2013 22:54:21 +0800 Has kmalloc() failure checking there, so it is unnecessary to allocate with __GFP_NOFAIL flag that might

Re: [PATCH] sparc: replace __GFP_NOFAIL with GFP_ATOMIC in mdesc_kmalloc()

2014-01-06 Thread Ethan Zhao
cc sparcli...@vger.kernel.org On Wed, Dec 11, 2013 at 10:54 PM, Ethan Zhao ethan.ker...@gmail.com wrote: Has kmalloc() failure checking there, so it is unnecessary to allocate with __GFP_NOFAIL flag that might block forever. Signed-off-by: Ethan Zhao ethan.ker...@gmail.com --- arch/sparc

Re: [PATCH] [media] cx18: introduce a helper function to void array overrun

2014-01-05 Thread Ethan Zhao
On Sun, Jan 5, 2014 at 2:09 PM, Dmitry Torokhov wrote: > Hi Ethan, > > On Sun, Jan 05, 2014 at 09:17:39AM +0800, Ethan Zhao wrote: >> cx18_i2c_register() is called in cx18_init_subdevs() with index >> greater than length of hw_bus array, that will cause array overrun,

Re: [PATCH] [media] saa7146: fix a possible NULL pointer reference in saa7146_set_position

2014-01-05 Thread Ethan Zhao
014 at 10:08:00AM +0800, Ethan Zhao wrote: >> Function saa7146_format_by_fourcc() may return NULL, reference of the >> returned >> result would cause NULL pointer issue without checking. >> >> Signed-off-by: Ethan Zhao >> --- >> drivers/media/common/saa7146/s

Re: [PATCH] [media] saa7146: fix a possible NULL pointer reference in saa7146_set_position

2014-01-05 Thread Ethan Zhao
: On Sun, Jan 05, 2014 at 10:08:00AM +0800, Ethan Zhao wrote: Function saa7146_format_by_fourcc() may return NULL, reference of the returned result would cause NULL pointer issue without checking. Signed-off-by: Ethan Zhao ethan.ker...@gmail.com --- drivers/media/common/saa7146/saa7146_hlp.c

Re: [PATCH] [media] cx18: introduce a helper function to void array overrun

2014-01-05 Thread Ethan Zhao
On Sun, Jan 5, 2014 at 2:09 PM, Dmitry Torokhov dmitry.torok...@gmail.com wrote: Hi Ethan, On Sun, Jan 05, 2014 at 09:17:39AM +0800, Ethan Zhao wrote: cx18_i2c_register() is called in cx18_init_subdevs() with index greater than length of hw_bus array, that will cause array overrun, introduce

[PATCH] [media] saa7146: fix a possible NULL pointer reference in saa7146_set_position

2014-01-04 Thread Ethan Zhao
Function saa7146_format_by_fourcc() may return NULL, reference of the returned result would cause NULL pointer issue without checking. Signed-off-by: Ethan Zhao --- drivers/media/common/saa7146/saa7146_hlp.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH] [media] cx18: introduce a helper function to void array overrun

2014-01-04 Thread Ethan Zhao
cx18_i2c_register() is called in cx18_init_subdevs() with index greater than length of hw_bus array, that will cause array overrun, introduce a helper cx18_get_max_bus_num() to void it. Signed-off-by: Ethan Zhao --- drivers/media/pci/cx18/cx18-driver.c | 2 +- drivers/media/pci/cx18/cx18-i2c.c

[PATCH] [media] cx18: introduce a helper function to void array overrun

2014-01-04 Thread Ethan Zhao
cx18_i2c_register() is called in cx18_init_subdevs() with index greater than length of hw_bus array, that will cause array overrun, introduce a helper cx18_get_max_bus_num() to void it. Signed-off-by: Ethan Zhao ethan.ker...@gmail.com --- drivers/media/pci/cx18/cx18-driver.c | 2 +- drivers

[PATCH] [media] saa7146: fix a possible NULL pointer reference in saa7146_set_position

2014-01-04 Thread Ethan Zhao
Function saa7146_format_by_fourcc() may return NULL, reference of the returned result would cause NULL pointer issue without checking. Signed-off-by: Ethan Zhao ethan.ker...@gmail.com --- drivers/media/common/saa7146/saa7146_hlp.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions

[PATCH] ghes: don't return 0 even when failed to read estatus in ghes_proc()

2013-12-27 Thread Ethan Zhao
ghes_proc() always return 0 even failed to read estatus, so when it is called in interrupt handler ghes_irq_func(), we don't know the interrupt was handled well or not, because the ghes_irq_func() will return only IRQ_HANDLED. Signed-off-by: Ethan Zhao --- drivers/acpi/apei/ghes.c | 4 ++-- 1

[PATCH] ghes: don't return 0 even when failed to read estatus in ghes_proc()

2013-12-27 Thread Ethan Zhao
ghes_proc() always return 0 even failed to read estatus, so when it is called in interrupt handler ghes_irq_func(), we don't know the interrupt was handled well or not, because the ghes_irq_func() will return only IRQ_HANDLED. Signed-off-by: Ethan Zhao ethan.ker...@gmail.com --- drivers/acpi

[PATCH 1/2 v2] ixgbe: define IXGBE_MAX_VFS_DRV_LIMIT macro and cleanup const 63

2013-12-24 Thread Ethan Zhao
Because ixgbe driver limit the max number of VF functions could be enabled to 63, so define one macro IXGBE_MAX_VFS_DRV_LIMIT and cleanup the const 63 in code. v2: fix a typo. Signed-off-by: Ethan Zhao --- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 4 ++-- drivers/net/ethernet/intel

[PATCH 2/2] ixgbe: set driver_max_VFs should be done before enabling SRIOV

2013-12-24 Thread Ethan Zhao
_set_totalvfs() before enable VFs with ixgbe_enable_sriov(). Signed-off-by: Ethan Zhao --- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c

[PATCH 1/2] ixgbe: define IXGBE_MAX_VFS_DRV_LIMIT macro and cleanup const 63

2013-12-24 Thread Ethan Zhao
Because ixgbe driver limit the max number of VF functions could be enalbed to 63, so define one macro IXGBE_MAX_VFS_DRV_LIMIT and cleanup the const 63 in code. Signed-off-by: Ethan Zhao --- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 4 ++-- drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c

[PATCH 1/2] ixgbe: define IXGBE_MAX_VFS_DRV_LIMIT macro and cleanup const 63

2013-12-24 Thread Ethan Zhao
Because ixgbe driver limit the max number of VF functions could be enalbed to 63, so define one macro IXGBE_MAX_VFS_DRV_LIMIT and cleanup the const 63 in code. Signed-off-by: Ethan Zhao ethan.ker...@gmail.com --- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 4 ++-- drivers/net/ethernet/intel

[PATCH 2/2] ixgbe: set driver_max_VFs should be done before enabling SRIOV

2013-12-24 Thread Ethan Zhao
() before enable VFs with ixgbe_enable_sriov(). Signed-off-by: Ethan Zhao ethan.ker...@gmail.com --- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe

[PATCH 1/2 v2] ixgbe: define IXGBE_MAX_VFS_DRV_LIMIT macro and cleanup const 63

2013-12-24 Thread Ethan Zhao
Because ixgbe driver limit the max number of VF functions could be enabled to 63, so define one macro IXGBE_MAX_VFS_DRV_LIMIT and cleanup the const 63 in code. v2: fix a typo. Signed-off-by: Ethan Zhao ethan.ker...@gmail.com --- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 4 ++-- drivers

Re: [PATCH V3]hrtimer: Fix a performance regression by disable reprogramming in remove_hrtimer

2013-12-12 Thread Ethan Zhao
' to all the buggy CPU, is that right ? Thanks, Ethan On Mon, Oct 7, 2013 at 12:57 PM, Ethan Zhao wrote: > Got it. > > On Mon, Oct 7, 2013 at 12:41 PM, Mike Galbraith wrote: >> On Fri, 2013-10-04 at 20:06 +0800, Ethan Zhao wrote: >>> Mike, Peter, >>>

Re: [PATCH V3]hrtimer: Fix a performance regression by disable reprogramming in remove_hrtimer

2013-12-12 Thread Ethan Zhao
' to all the buggy CPU, is that right ? Thanks, Ethan On Mon, Oct 7, 2013 at 12:57 PM, Ethan Zhao ethan.ker...@gmail.com wrote: Got it. On Mon, Oct 7, 2013 at 12:41 PM, Mike Galbraith bitbuc...@online.de wrote: On Fri, 2013-10-04 at 20:06 +0800, Ethan Zhao wrote: Mike, Peter, Seems

[PATCH] RDMA/cxgb4: replace __GFP_NOFAIL with GFP_ATOMIC

2013-12-11 Thread Ethan Zhao
. Signed-off-by: Ethan Zhao --- drivers/infiniband/hw/cxgb4/mem.c | 2 +- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 19 ++- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/drivers/infiniband/hw/cxgb4/mem.c b/drivers/infiniband/hw/cxgb4/mem.c

[PATCH] sparc: replace __GFP_NOFAIL with GFP_ATOMIC in mdesc_kmalloc()

2013-12-11 Thread Ethan Zhao
Has kmalloc() failure checking there, so it is unnecessary to allocate with __GFP_NOFAIL flag that might block forever. Signed-off-by: Ethan Zhao --- arch/sparc/kernel/mdesc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sparc/kernel/mdesc.c b/arch/sparc/kernel

[PATCH] sparc: replace __GFP_NOFAIL with GFP_ATOMIC in mdesc_kmalloc()

2013-12-11 Thread Ethan Zhao
Has kmalloc() failure checking there, so it is unnecessary to allocate with __GFP_NOFAIL flag that might block forever. Signed-off-by: Ethan Zhao ethan.ker...@gmail.com --- arch/sparc/kernel/mdesc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sparc/kernel/mdesc.c b

[PATCH] RDMA/cxgb4: replace __GFP_NOFAIL with GFP_ATOMIC

2013-12-11 Thread Ethan Zhao
. Signed-off-by: Ethan Zhao ethan.ker...@gmail.com --- drivers/infiniband/hw/cxgb4/mem.c | 2 +- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 19 ++- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/drivers/infiniband/hw/cxgb4/mem.c b/drivers

Re: [PATCH] [SCSI] iscsi_boot_sysfs: Fix a memory leak in iscsi_boot_destroy_kset()

2013-12-10 Thread Ethan Zhao
On Tue, Dec 10, 2013 at 10:11 PM, Konrad Rzeszutek Wilk wrote: > Ethan Zhao wrote: >>Konrad, >> >> boot_kset was allocated when module loaded by >>ibft_init() >> iscsi_boot_create_kset() >> kzalloc() >> >>but wasn't freed when

Re: [PATCH] xen/debugfs: Check debugfs initialization before using it

2013-12-10 Thread Ethan Zhao
On Tue, Dec 10, 2013 at 4:19 PM, Greg KH wrote: > On Tue, Dec 10, 2013 at 04:03:41PM +0800, Ethan Zhao wrote: >> On Tue, Dec 10, 2013 at 2:40 AM, Greg KH wrote: >> > On Mon, Dec 09, 2013 at 09:42:23PM +0800, Ethan Zhao wrote: >> >> Greg, >> >> I am

Re: [PATCH] mm/slab.c: check pointer slabp before using it in alloc_slabmgmt()

2013-12-10 Thread Ethan Zhao
Christoph, No, stable 3.12.4 and 3.12.3 need this patch. 3.13RC doesn't need it anymore. Thanks, Ethan On Tue, Dec 10, 2013 at 3:08 PM, Ethan Zhao wrote: > Christoph, > Found in the latest stable release V3.12.3, yes, changed in > 3.12.4. not needed for later releas

Re: [PATCH] xen/debugfs: Check debugfs initialization before using it

2013-12-10 Thread Ethan Zhao
On Tue, Dec 10, 2013 at 2:40 AM, Greg KH wrote: > On Mon, Dec 09, 2013 at 09:42:23PM +0800, Ethan Zhao wrote: >> Greg, >> I am the man who built a Xen dom0, but couldn't see debugfs >> directory and files as expected. there is no warning or tip for me to >> e

Re: [PATCH] xen/debugfs: Check debugfs initialization before using it

2013-12-10 Thread Ethan Zhao
On Tue, Dec 10, 2013 at 4:19 PM, Greg KH gre...@linuxfoundation.org wrote: On Tue, Dec 10, 2013 at 04:03:41PM +0800, Ethan Zhao wrote: On Tue, Dec 10, 2013 at 2:40 AM, Greg KH gre...@linuxfoundation.org wrote: On Mon, Dec 09, 2013 at 09:42:23PM +0800, Ethan Zhao wrote: Greg, I am

Re: [PATCH] [SCSI] iscsi_boot_sysfs: Fix a memory leak in iscsi_boot_destroy_kset()

2013-12-10 Thread Ethan Zhao
On Tue, Dec 10, 2013 at 10:11 PM, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: Ethan Zhao ethan.ker...@gmail.com wrote: Konrad, boot_kset was allocated when module loaded by ibft_init() iscsi_boot_create_kset() kzalloc() but wasn't freed when module unloaded by ibft_exit

Re: [PATCH] xen/debugfs: Check debugfs initialization before using it

2013-12-10 Thread Ethan Zhao
On Tue, Dec 10, 2013 at 2:40 AM, Greg KH gre...@linuxfoundation.org wrote: On Mon, Dec 09, 2013 at 09:42:23PM +0800, Ethan Zhao wrote: Greg, I am the man who built a Xen dom0, but couldn't see debugfs directory and files as expected. there is no warning or tip for me to enable

Re: [PATCH] mm/slab.c: check pointer slabp before using it in alloc_slabmgmt()

2013-12-10 Thread Ethan Zhao
Christoph, No, stable 3.12.4 and 3.12.3 need this patch. 3.13RC doesn't need it anymore. Thanks, Ethan On Tue, Dec 10, 2013 at 3:08 PM, Ethan Zhao ethan.ker...@gmail.com wrote: Christoph, Found in the latest stable release V3.12.3, yes, changed in 3.12.4. not needed for later

Re: [PATCH v2 04/10] PCI: Destroy pci dev only once

2013-12-09 Thread Ethan Zhao
On Tue, Dec 10, 2013 at 3:08 AM, Greg Kroah-Hartman wrote: > On Mon, Dec 09, 2013 at 11:24:04PM +0800, Ethan Zhao wrote: >> On Sun, Dec 8, 2013 at 11:50 AM, Greg Kroah-Hartman >> wrote: >> > On Sat, Dec 07, 2013 at 07:31:21PM -0800, Yinghai Lu wrote: >> >>

Re: [PATCH] mm/slab.c: check pointer slabp before using it in alloc_slabmgmt()

2013-12-09 Thread Ethan Zhao
Christoph, Found in the latest stable release V3.12.3, yes, changed in 3.12.4. not needed for later release anymore. Thanks, Ethan On Tue, Dec 10, 2013 at 12:11 AM, Christoph Lameter wrote: > On Sun, 8 Dec 2013, ethan.zhao wrote: > >> Move the NULL check of slabp to the right place before

Re: [PATCH] r_du_lvdsenc.c : Check return value of devm_ioremap_resource with IS_ERR

2013-12-09 Thread Ethan Zhao
Laurent, Next time I scan the NULL check, if hit your driver again, I will resend it. Thanks, Ethan On Tue, Dec 10, 2013 at 10:24 AM, Laurent Pinchart wrote: > Hi Ethan, > > Thank you for the patch. > > On Sunday 08 December 2013 10:41:46 ethan.zhao wrote: >> function

Re: [PATCH] [SCSI] iscsi_boot_sysfs: Fix a memory leak in iscsi_boot_destroy_kset()

2013-12-09 Thread Ethan Zhao
: > On Mon, Dec 09, 2013 at 05:37:11PM +0800, Ethan Zhao wrote: >> From: "Ethan Zhao" >> >> Load and unload iscsi_ibft module will cause kernel memory leak, fix it >> in scsi/iscsi_boot_sysfs.c iscsi_boot_destroy_kset(). >> > > Is there a stack trace? >

Re: [PATCH v2 04/10] PCI: Destroy pci dev only once

2013-12-09 Thread Ethan Zhao
On Sun, Dec 8, 2013 at 11:50 AM, Greg Kroah-Hartman wrote: > On Sat, Dec 07, 2013 at 07:31:21PM -0800, Yinghai Lu wrote: >> [+ GregKH] >> >> On Fri, Dec 6, 2013 at 5:27 PM, Rafael J. Wysocki wrote: >> > On Thursday, December 05, 2013 10:52:36 PM Yinghai Lu wrote: >> >> On Mon, Dec 2, 2013 at

Re: [PATCH v3] xen/debugfs: Check debugfs initialization before using it

2013-12-09 Thread Ethan Zhao
On Mon, Dec 9, 2013 at 7:19 PM, Greg KH wrote: > On Mon, Dec 09, 2013 at 05:56:52PM +0800, Ethan Zhao wrote: >> From: "ethan.zhao" >> >> Should check debugfs initialization with debugfs_initialized() before using >> it, >> Because if it

Re: [PATCH] xen/debugfs: Check debugfs initialization before using it

2013-12-09 Thread Ethan Zhao
as zswap_debugfs, tracer_debugfs ,rproc_debugfs did. Is it useless ? if it could save me just 1 minute next time ? Thanks, Ethan On Mon, Dec 9, 2013 at 7:17 PM, Greg KH wrote: > On Mon, Dec 09, 2013 at 05:57:22PM +0800, Ethan Zhao wrote: >> On Mon, Dec 9, 2013 at 4:55 PM, Greg KH wrote: &g

[PATCH v4] xen/debugfs: Check debugfs initialization before using it

2013-12-09 Thread Ethan Zhao
message about debugfs not configured or disabled. V4: make the warning clear. Signed-off-by: Ethan Zhao --- arch/x86/xen/debugfs.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/x86/xen/debugfs.c b/arch/x86/xen/debugfs.c index c8377fb..7f3804c 100644 --- a/arch/x86/xen/debugfs.c

[PATCH] xen/debugfs: Check debugfs initialization before using it

2013-12-09 Thread Ethan Zhao
From: "Ethan Zhao" Should check debugfs initialization with debugfs_initialized() before using it, Because if it isn't initialized, the return value of fake debugfs_create_dir() etc functions would be ERR_PTR(-ENODEV), checking with NULL will not work. V3: Add warning message abo

Re: [PATCH v3] xen/debugfs: Check debugfs initialization before using it

2013-12-09 Thread Ethan Zhao
Greg, How about the V3 ? Thanks, Ethan On Mon, Dec 9, 2013 at 5:56 PM, Ethan Zhao wrote: > From: "ethan.zhao" > > Should check debugfs initialization with debugfs_initialized() before using > it, > Because if it isn't initialized, the return value of fake &

Re: [PATCH v2] xen/debugfs: Check debugfs initialization before using it

2013-12-09 Thread Ethan Zhao
All, Please ignore this one, sorry, see v3. Thanks, Ethan On Mon, Dec 9, 2013 at 5:42 PM, Ethan Zhao wrote: > From: "Ethan Zhao" > > Should check debugfs initialization with debugfs_initialized() before using > it, > Because if it isn't initialized,

[PATCH v3] xen/debugfs: Check debugfs initialization before using it

2013-12-09 Thread Ethan Zhao
From: "ethan.zhao" Should check debugfs initialization with debugfs_initialized() before using it, Because if it isn't initialized, the return value of fake debugfs_create_dir() etc functions would be ERR_PTR(-ENODEV), checking with NULL will not work. V3: add warning message when debugfs not

Re: [PATCH] xen/debugfs: Check debugfs initialization before using it

2013-12-09 Thread Ethan Zhao
On Mon, Dec 9, 2013 at 4:55 PM, Greg KH wrote: > On Mon, Dec 09, 2013 at 04:44:05PM +0800, Ethan Zhao wrote: >> On Mon, Dec 9, 2013 at 4:25 PM, Greg KH wrote: >> > On Mon, Dec 09, 2013 at 09:43:16AM +0800, Ethan Zhao wrote: >> >> On Sun, Dec 8, 2013 at 1

[PATCH v2] xen/debugfs: Check debugfs initialization before using it

2013-12-09 Thread Ethan Zhao
From: "Ethan Zhao" Should check debugfs initialization with debugfs_initialized() before using it, Because if it isn't initialized, the return value of fake debugfs_create_dir() etc functions would be ERR_PTR(-ENODEV), checking with NULL will not work. V2: change to normative a

[PATCH] [SCSI] iscsi_boot_sysfs: Fix a memory leak in iscsi_boot_destroy_kset()

2013-12-09 Thread Ethan Zhao
From: "Ethan Zhao" Load and unload iscsi_ibft module will cause kernel memory leak, fix it in scsi/iscsi_boot_sysfs.c iscsi_boot_destroy_kset(). Signed-off-by: Ethan Zhao --- drivers/scsi/iscsi_boot_sysfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/iscsi_boot

Re: [PATCH] xen/debugfs: Check debugfs initialization before using it

2013-12-09 Thread Ethan Zhao
On Mon, Dec 9, 2013 at 4:25 PM, Greg KH wrote: > On Mon, Dec 09, 2013 at 09:43:16AM +0800, Ethan Zhao wrote: >> On Sun, Dec 8, 2013 at 10:01 PM, Greg KH wrote: >> > On Sun, Dec 08, 2013 at 07:31:02PM +0800, ethan.zhao wrote: >> >> Should check debugfs initializ

Re: [PATCH] xen/debugfs: Check debugfs initialization before using it

2013-12-09 Thread Ethan Zhao
On Mon, Dec 9, 2013 at 4:25 PM, Greg KH gre...@linuxfoundation.org wrote: On Mon, Dec 09, 2013 at 09:43:16AM +0800, Ethan Zhao wrote: On Sun, Dec 8, 2013 at 10:01 PM, Greg KH gre...@linuxfoundation.org wrote: On Sun, Dec 08, 2013 at 07:31:02PM +0800, ethan.zhao wrote: Should check debugfs

[PATCH] [SCSI] iscsi_boot_sysfs: Fix a memory leak in iscsi_boot_destroy_kset()

2013-12-09 Thread Ethan Zhao
From: Ethan Zhao ethan.ker...@gmail.com Load and unload iscsi_ibft module will cause kernel memory leak, fix it in scsi/iscsi_boot_sysfs.c iscsi_boot_destroy_kset(). Signed-off-by: Ethan Zhao ethan.ker...@gmail.com --- drivers/scsi/iscsi_boot_sysfs.c | 1 + 1 file changed, 1 insertion(+) diff

[PATCH v2] xen/debugfs: Check debugfs initialization before using it

2013-12-09 Thread Ethan Zhao
From: Ethan Zhao ethan.ker...@gmail.com Should check debugfs initialization with debugfs_initialized() before using it, Because if it isn't initialized, the return value of fake debugfs_create_dir() etc functions would be ERR_PTR(-ENODEV), checking with NULL will not work. V2: change

Re: [PATCH] xen/debugfs: Check debugfs initialization before using it

2013-12-09 Thread Ethan Zhao
On Mon, Dec 9, 2013 at 4:55 PM, Greg KH gre...@linuxfoundation.org wrote: On Mon, Dec 09, 2013 at 04:44:05PM +0800, Ethan Zhao wrote: On Mon, Dec 9, 2013 at 4:25 PM, Greg KH gre...@linuxfoundation.org wrote: On Mon, Dec 09, 2013 at 09:43:16AM +0800, Ethan Zhao wrote: On Sun, Dec 8, 2013

[PATCH v3] xen/debugfs: Check debugfs initialization before using it

2013-12-09 Thread Ethan Zhao
From: ethan.zhao ethan.ker...@gmail.com Should check debugfs initialization with debugfs_initialized() before using it, Because if it isn't initialized, the return value of fake debugfs_create_dir() etc functions would be ERR_PTR(-ENODEV), checking with NULL will not work. V3: add warning

Re: [PATCH v2] xen/debugfs: Check debugfs initialization before using it

2013-12-09 Thread Ethan Zhao
All, Please ignore this one, sorry, see v3. Thanks, Ethan On Mon, Dec 9, 2013 at 5:42 PM, Ethan Zhao ethan.ker...@gmail.com wrote: From: Ethan Zhao ethan.ker...@gmail.com Should check debugfs initialization with debugfs_initialized() before using it, Because if it isn't initialized

Re: [PATCH v3] xen/debugfs: Check debugfs initialization before using it

2013-12-09 Thread Ethan Zhao
Greg, How about the V3 ? Thanks, Ethan On Mon, Dec 9, 2013 at 5:56 PM, Ethan Zhao ethan.ker...@gmail.com wrote: From: ethan.zhao ethan.ker...@gmail.com Should check debugfs initialization with debugfs_initialized() before using it, Because if it isn't initialized, the return value

[PATCH] xen/debugfs: Check debugfs initialization before using it

2013-12-09 Thread Ethan Zhao
From: Ethan Zhao ethan.ker...@gmail.com Should check debugfs initialization with debugfs_initialized() before using it, Because if it isn't initialized, the return value of fake debugfs_create_dir() etc functions would be ERR_PTR(-ENODEV), checking with NULL will not work. V3: Add warning

[PATCH v4] xen/debugfs: Check debugfs initialization before using it

2013-12-09 Thread Ethan Zhao
message about debugfs not configured or disabled. V4: make the warning clear. Signed-off-by: Ethan Zhao ethan.ker...@gmail.com --- arch/x86/xen/debugfs.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/x86/xen/debugfs.c b/arch/x86/xen/debugfs.c index c8377fb..7f3804c 100644

Re: [PATCH] xen/debugfs: Check debugfs initialization before using it

2013-12-09 Thread Ethan Zhao
as zswap_debugfs, tracer_debugfs ,rproc_debugfs did. Is it useless ? if it could save me just 1 minute next time ? Thanks, Ethan On Mon, Dec 9, 2013 at 7:17 PM, Greg KH gre...@linuxfoundation.org wrote: On Mon, Dec 09, 2013 at 05:57:22PM +0800, Ethan Zhao wrote: On Mon, Dec 9, 2013 at 4:55 PM, Greg KH

Re: [PATCH v3] xen/debugfs: Check debugfs initialization before using it

2013-12-09 Thread Ethan Zhao
On Mon, Dec 9, 2013 at 7:19 PM, Greg KH gre...@linuxfoundation.org wrote: On Mon, Dec 09, 2013 at 05:56:52PM +0800, Ethan Zhao wrote: From: ethan.zhao ethan.ker...@gmail.com Should check debugfs initialization with debugfs_initialized() before using it, Because if it isn't initialized

Re: [PATCH v2 04/10] PCI: Destroy pci dev only once

2013-12-09 Thread Ethan Zhao
On Sun, Dec 8, 2013 at 11:50 AM, Greg Kroah-Hartman gre...@linuxfoundation.org wrote: On Sat, Dec 07, 2013 at 07:31:21PM -0800, Yinghai Lu wrote: [+ GregKH] On Fri, Dec 6, 2013 at 5:27 PM, Rafael J. Wysocki r...@rjwysocki.net wrote: On Thursday, December 05, 2013 10:52:36 PM Yinghai Lu

Re: [PATCH] [SCSI] iscsi_boot_sysfs: Fix a memory leak in iscsi_boot_destroy_kset()

2013-12-09 Thread Ethan Zhao
...@oracle.com wrote: On Mon, Dec 09, 2013 at 05:37:11PM +0800, Ethan Zhao wrote: From: Ethan Zhao ethan.ker...@gmail.com Load and unload iscsi_ibft module will cause kernel memory leak, fix it in scsi/iscsi_boot_sysfs.c iscsi_boot_destroy_kset(). Is there a stack trace? Signed-off-by: Ethan Zhao

Re: [PATCH] r_du_lvdsenc.c : Check return value of devm_ioremap_resource with IS_ERR

2013-12-09 Thread Ethan Zhao
Laurent, Next time I scan the NULL check, if hit your driver again, I will resend it. Thanks, Ethan On Tue, Dec 10, 2013 at 10:24 AM, Laurent Pinchart laurent.pinch...@ideasonboard.com wrote: Hi Ethan, Thank you for the patch. On Sunday 08 December 2013 10:41:46 ethan.zhao wrote:

Re: [PATCH] mm/slab.c: check pointer slabp before using it in alloc_slabmgmt()

2013-12-09 Thread Ethan Zhao
Christoph, Found in the latest stable release V3.12.3, yes, changed in 3.12.4. not needed for later release anymore. Thanks, Ethan On Tue, Dec 10, 2013 at 12:11 AM, Christoph Lameter c...@linux.com wrote: On Sun, 8 Dec 2013, ethan.zhao wrote: Move the NULL check of slabp to the right

Re: [PATCH v2 04/10] PCI: Destroy pci dev only once

2013-12-09 Thread Ethan Zhao
On Tue, Dec 10, 2013 at 3:08 AM, Greg Kroah-Hartman gre...@linuxfoundation.org wrote: On Mon, Dec 09, 2013 at 11:24:04PM +0800, Ethan Zhao wrote: On Sun, Dec 8, 2013 at 11:50 AM, Greg Kroah-Hartman gre...@linuxfoundation.org wrote: On Sat, Dec 07, 2013 at 07:31:21PM -0800, Yinghai Lu wrote

Re: NETDEV WATCHDOG: eth0 (e1000e): transmit queue 0 timed out

2013-12-08 Thread Ethan Zhao
Nick, You could try 7.3.21-k8-NAPI in tree or the out-of-tree version as Bjorn mentioned. To read and debug an old version driver is not a interesting thing for somebody to do. Thanks, Ethan On Tue, Dec 3, 2013 at 9:33 PM, Nick Pegg wrote: > On Mon, Dec 2, 2013 at 10:51 PM, Ethan Z

Re: [PATCH] xen/debugfs: Check debugfs initialization before using it

2013-12-08 Thread Ethan Zhao
On Sun, Dec 8, 2013 at 10:01 PM, Greg KH wrote: > On Sun, Dec 08, 2013 at 07:31:02PM +0800, ethan.zhao wrote: >> Should check debugfs initialization with debugfs_initialized() before using >> it, >> Because if it isn't initialized, the return value of fake >> debugfs_create_dir() etc >>

Re: [PATCH] xen/debugfs: Check debugfs initialization before using it

2013-12-08 Thread Ethan Zhao
On Sun, Dec 8, 2013 at 10:01 PM, Greg KH gre...@linuxfoundation.org wrote: On Sun, Dec 08, 2013 at 07:31:02PM +0800, ethan.zhao wrote: Should check debugfs initialization with debugfs_initialized() before using it, Because if it isn't initialized, the return value of fake

Re: NETDEV WATCHDOG: eth0 (e1000e): transmit queue 0 timed out

2013-12-08 Thread Ethan Zhao
, Ethan Zhao ethan.ker...@gmail.com wrote: Bjorn, Seems not the same bug as http://sourceforge.net/p/e1000/bugs/367/ , Nick is not running his kernel on bare metal, per the error log, he runs his kernel as HVM DomU guest or Dom0 on XEN ? so just a check of NULL will not fix that. Sorry

Re: [PATCH] aerdrv: Fix severity usage in aer trace event

2013-12-07 Thread Ethan Zhao
Rui, I like this patch. thanks your revision. Ethan On Sun, Dec 8, 2013 at 12:17 PM, Rui Wang wrote: > There's inconsistency between dmesg and the trace event output. > When dmesg says "severity=Corrected", the trace event says > "severity=Fatal". What happens is that HW_EVENT_ERR_CORRECTED

Re: [PATCH] aerdrv: Fix severity usage in aer trace event

2013-12-07 Thread Ethan Zhao
Rui, I like this patch. thanks your revision. Ethan On Sun, Dec 8, 2013 at 12:17 PM, Rui Wang ruiv.w...@gmail.com wrote: There's inconsistency between dmesg and the trace event output. When dmesg says severity=Corrected, the trace event says severity=Fatal. What happens is that

Re: Got iperf regression while intel_iommu is on, how to cut the cost of cache flushing

2013-12-06 Thread Ethan Zhao
Jiang, Could you help to take a look such performance issue about Intel IOMMU, seems you go back this field of Intel. Is it possible to eliminate the performance side effect of mapping and unmapping operation ? some context information, please refer to the first mail of this loop. Thanks,

Re: [PATCH v10 1/3] aerdrv: Trace Event for AER

2013-12-06 Thread Ethan Zhao
On Fri, Dec 6, 2013 at 5:06 PM, rui wang wrote: > On 12/5/13, Borislav Petkov wrote: > >> Yes, the AER tracepoint above should use the AER_* defines and not the >> HW_EVENT_ERR_* ones which are for memory errors. >> >> Wanna send a fix? >> > > Yes. Does it translate into something like this? > >

Re: [PATCH v10 1/3] aerdrv: Trace Event for AER

2013-12-06 Thread Ethan Zhao
On Fri, Dec 6, 2013 at 5:06 PM, rui wang ruiv.w...@gmail.com wrote: On 12/5/13, Borislav Petkov b...@alien8.de wrote: Yes, the AER tracepoint above should use the AER_* defines and not the HW_EVENT_ERR_* ones which are for memory errors. Wanna send a fix? Yes. Does it translate into

Re: Got iperf regression while intel_iommu is on, how to cut the cost of cache flushing

2013-12-06 Thread Ethan Zhao
Jiang, Could you help to take a look such performance issue about Intel IOMMU, seems you go back this field of Intel. Is it possible to eliminate the performance side effect of mapping and unmapping operation ? some context information, please refer to the first mail of this loop. Thanks,

Re: [BUG] Re: [PATCH v10 1/3] aerdrv: Trace Event for AER

2013-12-04 Thread Ethan Zhao
Rui, Agree with that, there are really many such confusing error type definition need to be standardized or unified, some of them are ambiguous、inconsistent, some of them violates ACPI/PCI spec. According to the ACPI spec, the 'FATAL' in fact, is a sub-category of 'UNCORRECTABLE' , the

Re: [BUG] Re: [PATCH v10 1/3] aerdrv: Trace Event for AER

2013-12-04 Thread Ethan Zhao
Rui, Agree with that, there are really many such confusing error type definition need to be standardized or unified, some of them are ambiguous、inconsistent, some of them violates ACPI/PCI spec. According to the ACPI spec, the 'FATAL' in fact, is a sub-category of 'UNCORRECTABLE' , the

Re: NETDEV WATCHDOG: eth0 (e1000e): transmit queue 0 timed out

2013-12-02 Thread Ethan Zhao
Bjorn, Seems not the same bug as http://sourceforge.net/p/e1000/bugs/367/ , Nick is not running his kernel on bare metal, per the error log, he runs his kernel as HVM DomU guest or Dom0 on XEN ? so just a check of NULL will not fix that. Thanks, Ethan On Thu, Nov 21, 2013 at 5:22 AM, Bjorn

Re: NETDEV WATCHDOG: eth0 (e1000e): transmit queue 0 timed out

2013-12-02 Thread Ethan Zhao
Bjorn, Seems not the same bug as http://sourceforge.net/p/e1000/bugs/367/ , Nick is not running his kernel on bare metal, per the error log, he runs his kernel as HVM DomU guest or Dom0 on XEN ? so just a check of NULL will not fix that. Thanks, Ethan On Thu, Nov 21, 2013 at 5:22 AM, Bjorn

Re: [PATCH] PCI: Init NumVFs register to zero in sriov_init()

2013-11-20 Thread Ethan Zhao
Bjorn, I revised the description part with the original bug material as below, help to take a look, will send V2 back to home, SMTP blocked by company network. PCI: Init NumVFs register to zero in sriov_init() Though no specification about NumVFs register initial value after POST, to

Re: [PATCH] PCI: Init NumVFs register to zero in sriov_init()

2013-11-20 Thread Ethan Zhao
Bjorn, To be honest, the output above is picked up from other guy's mail, because I composed the patch mail at home and left the real bug material at company, they 'really' hit an issue confused by lspci output while SR-IOV is initialized to disabled . There is an error in above output as

Re: [PATCH] PCI: Init NumVFs register to zero in sriov_init()

2013-11-20 Thread Ethan Zhao
Bjorn, To be honest, the output above is picked up from other guy's mail, because I composed the patch mail at home and left the real bug material at company, they 'really' hit an issue confused by lspci output while SR-IOV is initialized to disabled . There is an error in above output as

Re: [PATCH] PCI: Init NumVFs register to zero in sriov_init()

2013-11-20 Thread Ethan Zhao
Bjorn, I revised the description part with the original bug material as below, help to take a look, will send V2 back to home, SMTP blocked by company network. PCI: Init NumVFs register to zero in sriov_init() Though no specification about NumVFs register initial value after POST, to

Re: [PATCH] PCI: Init NumVFs register to zero in sriov_init()

2013-11-15 Thread Ethan Zhao
On Fri, Nov 15, 2013 at 2:59 PM, Yinghai Lu wrote: > On Wed, Nov 13, 2013 at 5:57 PM, Ethan Zhao wrote: >> On Wed, Nov 6, 2013 at 10:49 PM, ethan.zhao wrote: >>> Though no specification about NumVFs register initial value after POST, to >>> void the confusion &g

Re: [PATCH] PCI: Init NumVFs register to zero in sriov_init()

2013-11-15 Thread Ethan Zhao
On Fri, Nov 15, 2013 at 2:59 PM, Yinghai Lu ying...@kernel.org wrote: On Wed, Nov 13, 2013 at 5:57 PM, Ethan Zhao ethan.ker...@gmail.com wrote: On Wed, Nov 6, 2013 at 10:49 PM, ethan.zhao ethan.ker...@gmail.com wrote: Though no specification about NumVFs register initial value after POST

Re: [PATCH] PCI: Init NumVFs register to zero in sriov_init()

2013-11-13 Thread Ethan Zhao
Yinghai, Could you help to take a look, we need it in our downstream kernel. Thanks, Ethan On Wed, Nov 6, 2013 at 10:49 PM, ethan.zhao wrote: > Though no specification about NumVFs register initial value after POST, to > void the confusion > lspci output as following before VF was

Re: [PATCH] PCI: Init NumVFs register to zero in sriov_init()

2013-11-13 Thread Ethan Zhao
Yinghai, Could you help to take a look, we need it in our downstream kernel. Thanks, Ethan On Wed, Nov 6, 2013 at 10:49 PM, ethan.zhao ethan.ker...@gmail.com wrote: Though no specification about NumVFs register initial value after POST, to void the confusion lspci output as following

Re: Got iperf regression while intel_iommu is on, how to cut the cost of cache flushing

2013-11-11 Thread Ethan Zhao
for last HTML mail, resend txt ) Ethan On Tue, Nov 12, 2013 at 9:34 AM, Eric Dumazet wrote: > On Tue, 2013-11-12 at 09:03 +0800, Ethan Zhao wrote: >> Eric, >> We have tested the performance with the TSO and TSQ patches >> merged, the result not good, even worse than ker

Re: Got iperf regression while intel_iommu is on, how to cut the cost of cache flushing

2013-11-11 Thread Ethan Zhao
k driver: be2net Average Bandwidth for : 1.tcp-unidirectional test: 7992 Mbits/sec 2.tcp-unidirectional-parallel: 9403 Mbits/sec 3.tcp-bidirectonal test : 5802 Mbits/sec Thanks, Ethan On Thu, Oct 31, 2013 at 11:25 PM, Eric Dumazet wrote: > On Thu, 2013-10-31 at 10:44 +

<    1   2   3   4   5   6   7   >