Re: [PATCH 07/11] vhost: convert vhost_umem_interval_tree to half closed intervals

2019-10-09 Thread Jason Wang
On 2019/10/4 上午4:18, Davidlohr Bueso wrote: The vhost_umem interval tree really wants [a, b) intervals, not fully closed as currently. As such convert it to use the new interval_tree_gen.h, and also rename the 'last' endpoint in the node to 'end', which both a more suitable name for the half

Re: [PATCH v17 01/14] bitops: Introduce the for_each_set_clump8 macro

2019-10-09 Thread Andy Shevchenko
On Thu, Oct 10, 2019 at 5:31 AM Masahiro Yamada wrote: > On Thu, Oct 10, 2019 at 3:54 AM Geert Uytterhoeven > wrote: > > On Wed, Oct 9, 2019 at 7:09 PM Andy Shevchenko > > wrote: > > > On Thu, Oct 10, 2019 at 01:28:08AM +0900, Masahiro Yamada wrote: > > > > On Thu, Oct 10, 2019 at 12:27 AM

Re: Potential NULL pointer deference in spi

2019-10-09 Thread Eric Dumazet
On 10/9/19 10:37 PM, Yizhuo Zhai wrote: > Hi All: > > drivers/spi/spi.c: > > The function to_spi_device() could return NULL, but some callers > in this file does not check the return value while directly dereference > it, which seems potentially unsafe. > > Such callers include

Re: [PATCH 2/3] PCI: pciehp: Wait for PDS if in-band presence is disabled

2019-10-09 Thread Andy Shevchenko
On Thu, Oct 10, 2019 at 8:37 AM Andy Shevchenko wrote: > On Wed, Oct 9, 2019 at 11:05 PM Stuart Hayes wrote: > > +static void pcie_wait_for_presence(struct pci_dev *pdev) > > +{ > > + int timeout = 1250; > > + bool pds; Also this is redundant. Just use the following outside the

Re: [PATCH 2/3] PCI: pciehp: Wait for PDS if in-band presence is disabled

2019-10-09 Thread Andy Shevchenko
On Wed, Oct 9, 2019 at 11:05 PM Stuart Hayes wrote: > > From: Alexandru Gagniuc > > When inband presence is disabled, PDS may come up at any time, or not > at all. PDS being low may indicate that the card is still mating, and > we could expect contact bounce to bring down the link as well. > >

Potential NULL pointer deference in spi

2019-10-09 Thread Yizhuo Zhai
Hi All: drivers/spi/spi.c: The function to_spi_device() could return NULL, but some callers in this file does not check the return value while directly dereference it, which seems potentially unsafe. Such callers include spidev_release(), spi_dev_check(), driver_override_store(), etc. --

[PATCH v4 1/2] powerpc/irq: bring back ksp_limit management in C functions.

2019-10-09 Thread Christophe Leroy
Commit cbc9565ee826 ("powerpc: Remove ksp_limit on ppc64") moved PPC32 ksp_limit handling in assembly functions call_do_softirq() and call_do_irq() as they are different for PPC32 and PPC64. In preparation of replacing these functions by inline assembly, partialy revert that commit to bring back

[PATCH v4 2/2] powerpc/irq: inline call_do_irq() and call_do_softirq()

2019-10-09 Thread Christophe Leroy
call_do_irq() and call_do_softirq() are quite similar on PPC32 and PPC64 and are simple enough to be worth inlining. Inlining them avoids an mflr/mtlr pair plus a save/reload on stack. This is inspired from S390 arch. Several other arches do more or less the same. The way sparc arch does seems

Re: [Outreachy kernel] [PATCH] staging: qlge: Fix multiple assignments warning by splitting the assignement into two each

2019-10-09 Thread Julia Lawall
On Wed, 9 Oct 2019, Joe Perches wrote: > On Wed, 2019-10-09 at 22:48 +0200, Julia Lawall wrote: > > On Wed, 9 Oct 2019, Jules Irenge wrote: > > > Fix multiple assignments warning " check > > > issued by checkpatch.pl tool: > > > "CHECK: multiple assignments should be avoided". > [] > > > diff

Potential NULL pointer deference inata: sata_rcar

2019-10-09 Thread Yizhuo Zhai
Hi All: In function sata_rcar_bmdma_fill_sg, macro for_each_sg uses sg_next(), which could return NULL as "sg", however, there's no check before dereferencing it (in sg_dma_address()), which is potentially unsafe. -- Kind Regards, Yizhuo Zhai Computer Science, Graduate Student University of

Re: [PATCH v2 2/3] ARM: dts: add Netronix E60K02 board common file

2019-10-09 Thread Andreas Kemnade
Hi Jonathan, On Mon, 7 Oct 2019 00:38:48 +0200 Jonathan Neuschäfer wrote: > Thanks for CCing me on this patchset. Nice to see more e-book reader > related work! > btw. seems that we have a common target, since our ebook readers both have a tps65185. It seems to be a good idea to comment things

Re: string.h: Mark 34 functions with __must_check

2019-10-09 Thread Andy Shevchenko
On Wed, Oct 9, 2019 at 11:11 PM Markus Elfring wrote: > > > I'm curious. How many warnings showed up when you applied this patch? > > I suggest to take another look at six places in a specific source file > (for example). >

Re: [PATCH] USB: core: Fix potental Null Pointer dereference

2019-10-09 Thread Greg Kroah-Hartman
On Wed, Oct 09, 2019 at 06:02:02PM -0700, Yizhuo wrote: > Inside function usb_device_is_owned(), usb_hub_to_struct_hub() > could return NULL but there's no check before its dereference, > which is potentially unsafe. > > Signed-off-by: Yizhuo > --- > drivers/usb/core/hub.c | 2 +- > 1 file

Re: [PATCH v2] mm/page_isolation: fix a deadlock with printk()

2019-10-09 Thread Sergey Senozhatsky
On (10/09/19 16:26), Michal Hocko wrote: > On Wed 09-10-19 15:56:32, Peter Oberparleiter wrote: > [...] > > A generic solution would be preferable from my point of view though, > > because otherwise each console driver owner would need to ensure that any > > lock taken in their console.write

Re: [PATCH v1 0/2] spi: cadence-qspi: Add cadence-qspi support for Intel LGM SoC

2019-10-09 Thread Ramuthevar, Vadivel MuruganX
Hi Vignesh, On 10/10/2019 12:18 PM, Vignesh Raghavendra wrote: On 10/10/19 7:04 AM, Ramuthevar, Vadivel MuruganX wrote: HI Vignesh, On 17/9/2019 12:50 AM, Vignesh Raghavendra wrote: Hi, On 16/09/19 1:08 PM, Ramuthevar,Vadivel MuruganX wrote: patch 1: Add YAML for cadence-qspi devicetree

Re: [PATCH] rpmsg: glink: Remove channel decouple from rpdev release

2019-10-09 Thread Stephen Boyd
Quoting Chris Lew (2019-10-08 18:33:45) > If a channel is being rapidly restarted and the kobj release worker is > busy, there is a chance the the rpdev_release function will run after > the channel struct itself has been released. > > There should not be a need to decouple the channel from rpdev

Re: [PATCH] mm/kmemleak: skip late_init if not skip disable

2019-10-09 Thread Murphy Zhou
Hi, On Wed, Oct 9, 2019 at 12:51 AM Catalin Marinas wrote: > > Hi Murphy, > > On Sun, Sep 29, 2019 at 05:56:59PM +0800, Murphy Zhou wrote: > > Now if DEFAULT_OFF set to y, kmemleak_init will start the cleanup_work > > workqueue. Then late_init call will set kmemleak_initialized to 1, the > >

Potential NULL pointer deference in iwlwifi: mvm

2019-10-09 Thread Yizhuo Zhai
Hi All: drivers/net/wireless/intel/iwlwifi/mvm/power.c: The function iwl_mvm_vif_from_mac80211() could return NULL, but some callers in this file does not check the return value while directly dereference it, which seems potentially unsafe. Such callers include iwl_mvm_update_d0i3_power_mode(),

Potential NULL pointer deference in mm/memcontrol.c

2019-10-09 Thread Yizhuo Zhai
Hi All: mm/memcontrol.c: The function mem_cgroup_from_css() could return NULL, but some callers in this file checks the return value but directly dereference it, which seems potentially unsafe. Such callers include mem_cgroup_hierarchy_read(), mem_cgroup_hierarchy_write(), mem_cgroup_read_u64(),

[PATCH v2 4/4] staging: rtl8723bs: Remove unnecessary blank lines

2019-10-09 Thread Wambui Karuga
Remove multiple blank lines in drivers/staging/rtl8723bs/core/rtw_mlme.c. Issues reported by checkpatch.pl as: CHECK: Please don't use multiple blank lines Signed-off-by: Wambui Karuga --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 47 --- 1 file changed, 47 deletions(-)

[PATCH v2 3/4] staging: rtl8723bs: Remove comparisons to booleans in conditionals.

2019-10-09 Thread Wambui Karuga
Remove comparisons to true and false in multiple if statements in drivers/staging/rtl8723bs/core/rtw_mlme.c Issues reported by checkpatch.pl as: CHECK: Using comparison to false is error prone CHECK: Using comparison to true is error prone Signed-off-by: Wambui Karuga ---

[PATCH v2 2/4] staging: rtl8723bs: Remove unnecessary braces for single statements

2019-10-09 Thread Wambui Karuga
Clean up multiple unnecessary braces around single statement blocks in drivers/staging/rtl8723bs/core/rtw_mlme.c Issues reported by checkpatch.pl as: WARNING: braces {} are not necessary for single statement blocks or WARNING: braces {} are not necessary for any arm of this statement

[PATCH v2 1/4] staging: rtl8723bs: Remove comparisons to NULL in conditionals

2019-10-09 Thread Wambui Karuga
Remove most comparisons to NULL in conditionals in drivers/staging/rtl8723bs/core/rtw_mlme.c Issues reported by checkpatch.pl as: CHECK: Comparison to NULL could be written Signed-off-by: Wambui Karuga --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 46 +++ 1 file changed,

[PATCH v2 0/4] staging: rtl8723bs: Style clean-up in rtw_mlme.c

2019-10-09 Thread Wambui Karuga
This patchset addresses multiple style and formatting issues reported by checkpatch.pl in drivers/staging/rtl8723bs/core/rtw_mlme.c PATCH v2 of the series corrects the "patchest" mispelling in the original cover letter and provides a clearer subject line. Wambui Karuga (4): staging: rtl8723bs:

Potential NULL pointer deference in RDMA

2019-10-09 Thread Yizhuo Zhai
Hi All: drivers/infiniband/sw/rxe/rxe_verbs.c: The function to_rdev() could return NULL, but no caller in this file checks the return value but directly dereference them, which seems potentially unsafe. Callers include rxe_query_device(), rxe_query_port(), rxe_query_pkey(), etc. -- Kind

Re: [PATCH v4 0/5] Powerpc/Watchpoint: Few important fixes

2019-10-09 Thread Ravi Bangoria
@Christophe, Is patch5 works for you on 8xx? Getting the following : root@vgoip:~# ./ptrace-hwbreak test: ptrace-hwbreak tags: git_version:v5.4-rc2-710-gf0082e173fe4-dirty PTRACE_SET_DEBUGREG, WO, len: 1: Ok PTRACE_SET_DEBUGREG, WO, len: 2: Ok PTRACE_SET_DEBUGREG, WO, len: 4: Ok

[PATCH] staging: octeon: Fix incorrect type in assignment

2019-10-09 Thread Wambui Karuga
Fix the following warning generated by sparse in drivers/staging/octeon/ethernet-tx.c: drivers/staging/octeon/ethernet-tx.c:563:50: warning: incorrect type in assignment (different base types) drivers/staging/octeon/ethernet-tx.c:563:50:expected unsigned short [usertype] hw_chksum

[PATCH] staging: sm750fb: Potential uninitialized field in "pll"

2019-10-09 Thread Yizhuo
Inside function set_chip_clock(), struct pll is supposed to be initialized in sm750_calc_pll_value(), if condition "diff < mini_diff" in sm750_calc_pll_value() cannot be fulfilled, then some field of pll will not be initialized but used in function sm750_format_pll_reg(), which is potentially

Re: [PATCH v1 1/2] pinctrl: Add pinmux & GPIO controller driver for new SoC

2019-10-09 Thread Tanwar, Rahul
Hi Linus, Thanks for taking time out to review. On 5/10/2019 4:28 AM, Linus Walleij wrote: >> +config PINCTRL_EQUILIBRIUM >> + tristate "Generic pinctrl and GPIO driver for Intel Lightning >> Mountain SoC" >> + select PINMUX >> + select PINCONF >> + select GPIOLIB >> +

[git pull] dcache_readdir() fixes

2019-10-09 Thread Al Viro
The couple of patches you'd been OK with; no hlist conversion yet, and cursors are still in the list of children. The following changes since commit 4d856f72c10ecb060868ed10ff1b1453943fc6c8: Linux 5.3 (2019-09-15 14:19:32 -0700) are available in the git repository at:

Re: [PATCH v1 0/2] spi: cadence-qspi: Add cadence-qspi support for Intel LGM SoC

2019-10-09 Thread Vignesh Raghavendra
On 10/10/19 7:04 AM, Ramuthevar, Vadivel MuruganX wrote: > HI Vignesh, > > On 17/9/2019 12:50 AM, Vignesh Raghavendra wrote: >> Hi, >> >> On 16/09/19 1:08 PM, Ramuthevar,Vadivel MuruganX wrote: >>> patch 1: Add YAML for cadence-qspi devicetree cdocumentation. >>> patch 2: cadence-qspi

Re: [PATCH v3 3/3] clk: qcom: Add Global Clock controller (GCC) driver for SC7180

2019-10-09 Thread Stephen Boyd
Quoting Taniya Das (2019-10-09 02:19:39) > Hi Stephen, > > On 10/5/2019 4:50 AM, Stephen Boyd wrote: > > Quoting Taniya Das (2019-10-04 10:39:31) > >> > >> Could you please confirm if you are referring to update the below? > > > > I wasn't suggesting that explicitly but sure. Something like this

Re: [PATCH] net: stmmac: Remove break after a return

2019-10-09 Thread Jakub Kicinski
On Wed, 9 Oct 2019 22:29:00 +0800, Tiezhu Yang wrote: > Since break is not useful after a return, remove it. > > Fixes: 3b57de958e2a ("net: stmmac: Support devicetree configs for mcast and > ucast filter entries") > Signed-off-by: Tiezhu Yang Applied, thanks

Re: [PATCH] rcu: avoid data-race in rcu_gp_fqs_check_wake()

2019-10-09 Thread Eric Dumazet
On Wed, Oct 9, 2019 at 8:18 PM Paul E. McKenney wrote: > Again, good catch, applied for review and testing, thank you! > > I added another READ_ONCE() to dump_blkd_tasks(), which is not exercised > unless you get an RCU CPU stall warning or some such. The updated patch > is below, please let me

Re: [PATCH] net/ethernet: xgmac don't set .driver twice

2019-10-09 Thread Jakub Kicinski
On Wed, 9 Oct 2019 14:26:27 +0100, Ben Dooks wrote: > Cleanup the .driver setup to just do it once, to avoid > the following sparse warning: > > drivers/net/ethernet/calxeda/xgmac.c:1914:10: warning: Initializer entry > defined twice > drivers/net/ethernet/calxeda/xgmac.c:1920:10: also

[PATCH] sock_get_timeout: drop unnecessary return variable

2019-10-09 Thread Vito Caputo
Remove pointless use of size return variable by directly returning sizes. Signed-off-by: Vito Caputo --- net/core/sock.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/net/core/sock.c b/net/core/sock.c index fac2b4d80de5..e01ff0d3be95 100644 --- a/net/core/sock.c

Re: [PATCH v2 0/2] Avoid regmap debugfs collisions in qcom llcc driver

2019-10-09 Thread Bjorn Andersson
On Wed 09 Oct 10:59 PDT 2019, Evan Green wrote: > On Wed, Oct 9, 2019 at 10:46 AM Bjorn Andersson > wrote: > > > > On Wed 09 Oct 09:01 PDT 2019, Evan Green wrote: > > > > > On Tue, Oct 8, 2019 at 6:58 PM Stephen Boyd wrote: > > > > > > > > Quoting Bjorn Andersson (2019-10-08 16:55:04) > > > > >

Re: [PATCH -next] userfaultfd: remove set but not used variable 'h'

2019-10-09 Thread Wei Yang
On Wed, Oct 09, 2019 at 08:42:46PM -0700, Mike Kravetz wrote: >On 10/9/19 8:30 PM, Wei Yang wrote: >> On Wed, Oct 09, 2019 at 07:25:18PM -0700, Mike Kravetz wrote: >>> On 10/9/19 6:23 PM, Wei Yang wrote: On Wed, Oct 09, 2019 at 05:45:57PM -0700, Mike Kravetz wrote: > On 10/9/19 5:27 AM,

[PATCH] af_unix: __unix_find_socket_byname() cleanup

2019-10-09 Thread Vito Caputo
Remove pointless return variable dance. Appears vestigial from when the function did locking as seen in unix_find_socket_byinode(), but locking is handled in unix_find_socket_byname() for __unix_find_socket_byname(). Signed-off-by: Vito Caputo --- net/unix/af_unix.c | 6 ++ 1 file changed,

Re: [PATCH -next] userfaultfd: remove set but not used variable 'h'

2019-10-09 Thread Mike Kravetz
On 10/9/19 8:30 PM, Wei Yang wrote: > On Wed, Oct 09, 2019 at 07:25:18PM -0700, Mike Kravetz wrote: >> On 10/9/19 6:23 PM, Wei Yang wrote: >>> On Wed, Oct 09, 2019 at 05:45:57PM -0700, Mike Kravetz wrote: On 10/9/19 5:27 AM, YueHaibing wrote: > Fixes gcc '-Wunused-but-set-variable'

[PATCH 4/4] staging: rtl8723bs: Remove unnecessary blank lines

2019-10-09 Thread Wambui Karuga
Remove multiple blank lines in drivers/staging/rtl8723bs/core/rtw_mlme.c. Issues reported by checkpatch.pl as: CHECK: Please don't use multiple blank lines Signed-off-by: Wambui Karuga --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 47 --- 1 file changed, 47 deletions(-)

[PATCH 2/4] staging: rtl8723bs: Remove unnecessary braces for single statements

2019-10-09 Thread Wambui Karuga
Clean up multiple unnecessary braces around single statement blocks in drivers/staging/rtl8723bs/core/rtw_mlme.c Issues reported by checkpatch.pl as: WARNING: braces {} are not necessary for single statement blocks or WARNING: braces {} are not necessary for any arm of this statement

[PATCH 3/4] staging: rtl8723bs: Remove comparisons to booleans in conditionals.

2019-10-09 Thread Wambui Karuga
Remove comparisons to true and false in multiple if statements in drivers/staging/rtl8723bs/core/rtw_mlme.c Issues reported by checkpatch.pl as: CHECK: Using comparison to false is error prone CHECK: Using comparison to true is error prone Signed-off-by: Wambui Karuga ---

[PATCH 0/4] Fix style and formatting issues in rtw_mlme.c

2019-10-09 Thread Wambui Karuga
This patchest addresses multiple style and formatting issues in the file drivers/staging/rtl8723bs/core/rtw_mlme.c. These issues are all reported by checkpatch.pl Wambui Karuga (4): staging: rtl8723bs: Remove comparisons to NULL in conditionals staging: rtl8723bs: Remove unnecessary braces

[PATCH 1/4] staging: rtl8723bs: Remove comparisons to NULL in conditionals

2019-10-09 Thread Wambui Karuga
Remove most comparisons to NULL in conditionals in drivers/staging/rtl8723bs/core/rtw_mlme.c Issues reported by checkpatch.pl as: CHECK: Comparison to NULL could be written Signed-off-by: Wambui Karuga --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 46 +++ 1 file changed,

Re: [PATCH] scsi: fix kconfig dependency warning related to 53C700_LE_ON_BE

2019-10-09 Thread Martin K. Petersen
Thomas, > Add the missing depends SCSI_SNI_53C710 to 53C700_LE_ON_BE to fix it. Applied to 5.4/scsi-fixes, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: sni_53c710 fix compilation error

2019-10-09 Thread Martin K. Petersen
Thomas, > Drop out memory dev_printk() with wring device pointer argument. Applied to 5.4/scsi-fixes, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 1/3] dt-bindings: power: add Amlogic secure power domains bindings

2019-10-09 Thread Jianxin Pan
Hi Rob, Thanks for your review. I'm sorry to reply so late, for I've been on vacation in the last week. On 2019/10/2 6:09, Rob Herring wrote: > On Thu, Sep 19, 2019 at 08:11:02AM -0400, Jianxin Pan wrote: >> Add the bindings for the Amlogic Secure power domains, controlling the >> secure power

Re: [PATCH -next] userfaultfd: remove set but not used variable 'h'

2019-10-09 Thread Wei Yang
On Wed, Oct 09, 2019 at 07:25:18PM -0700, Mike Kravetz wrote: >On 10/9/19 6:23 PM, Wei Yang wrote: >> On Wed, Oct 09, 2019 at 05:45:57PM -0700, Mike Kravetz wrote: >>> On 10/9/19 5:27 AM, YueHaibing wrote: Fixes gcc '-Wunused-but-set-variable' warning: mm/userfaultfd.c: In function

Re: [PATCH v2] HID: core: check whether usage page item is after usage id item

2019-10-09 Thread Candle Sun
On Thu, Oct 10, 2019 at 2:00 AM Jiri Kosina wrote: > > On Wed, 9 Oct 2019, Nicolas Saenz Julienne wrote: > > > > diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c > > > index 3eaee2c..3394222 100644 > > > --- a/drivers/hid/hid-core.c > > > +++ b/drivers/hid/hid-core.c > > > @@ -35,6

Re: [PATCH] rcu: avoid data-race in rcu_gp_fqs_check_wake()

2019-10-09 Thread Paul E. McKenney
On Wed, Oct 09, 2019 at 02:21:54PM -0700, Eric Dumazet wrote: > rcu_gp_fqs_check_wake() uses rcu_preempt_blocked_readers_cgp() > to read ->gp_tasks while otehr cpus might write over this field. > > We need READ_ONCE()/WRITE_ONCE() pairs to avoid compiler > tricks and KCSAN splats like the

Re: "reuse mergeable anon_vma as parent when fork" causes a crash on s390

2019-10-09 Thread Wei Yang
On Thu, Oct 10, 2019 at 10:36:01AM +0800, Wei Yang wrote: >Hi, Qian, Shakeel > >Thanks for testing. > >Sounds I missed some case to handle. anon_vma_clone() now would be called in >vma_adjust, which is a different case when it is introduced. > Well, I have to correct my statement. The reason is

[PATCH] KPC2000: kpc2000_spi.c: Fix style issues (Unecessary parenthesis)

2019-10-09 Thread Chandra Annamaneni
Resolved: CHECK: Unnecessary parentheses around table[i] Signed-off-by: Chandra Annamaneni --- drivers/staging/kpc2000/kpc2000_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/kpc2000/kpc2000_spi.c b/drivers/staging/kpc2000/kpc2000_spi.c index

[PATCH] KPC2000: kpc2000_spi.c: Fix style issues (misaligned brace)

2019-10-09 Thread Chandra Annamaneni
Resolved: ERROR: else should follow close brace '}' Signed-off-by: Chandra Annamaneni --- drivers/staging/kpc2000/kpc2000_spi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000_spi.c b/drivers/staging/kpc2000/kpc2000_spi.c index

[PATCH] KPC2000: kpc2000_spi.c: Fix style issues (alignment)

2019-10-09 Thread Chandra Annamaneni
Resolved: "CHECK: Alignment should match open parenthesis" from checkpatch.pl Signed-off-by: Chandra Annamaneni --- drivers/staging/kpc2000/kpc2000_spi.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000_spi.c

[PATCH] KPC2000: kpc2000_spi.c: Fix style issues (line length)

2019-10-09 Thread Chandra Annamaneni
Resoved: "WARNING: line over 80 characters" from checkpatch.pl Signed-off-by: Chandra Annamaneni --- drivers/staging/kpc2000/kpc2000_spi.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000_spi.c

[PATCH] KPC2000: kpc2000_spi.c: Fix style issues (missing blank line)

2019-10-09 Thread Chandra Annamaneni
Resolved: "CHECK: Please use a blank line after.." from checkpatch.pl Signed-off-by: Chandra Annamaneni --- drivers/staging/kpc2000/kpc2000_spi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/kpc2000/kpc2000_spi.c b/drivers/staging/kpc2000/kpc2000_spi.c index

Re: [PATCH] rcu: Fix data-race due to atomic_t copy-by-value

2019-10-09 Thread Paul E. McKenney
On Wed, Oct 09, 2019 at 05:57:43PM +0200, Marco Elver wrote: > This fixes a data-race where `atomic_t dynticks` is copied by value. The > copy is performed non-atomically, resulting in a data-race if `dynticks` > is updated concurrently. > > This data-race was found with KCSAN: >

Re: [PATCH v2] HID: core: check whether usage page item is after usage id item

2019-10-09 Thread Candle Sun
On Thu, Oct 10, 2019 at 1:01 AM Nicolas Saenz Julienne wrote: > > On Wed, 2019-10-09 at 20:53 +0800, Candle Sun wrote: > > From: Candle Sun > > > > Upstream commit 58e75155009c ("HID: core: move Usage Page concatenation > > to Main item") adds support for Usage Page item after Usage ID items > >

[PATCH v3 2/2] mfd: intel-lpss: use devm_ioremap_uc for MMIO

2019-10-09 Thread Tuowen Zhao
Some BIOS erroneously specifies write-combining BAR for intel-lpss-pci in MTRR. This will cause the system to hang during boot. If possible, this bug could be corrected with a firmware update. This patch use devm_ioremap_uc to overwrite/ignore the MTRR settings by forcing the use of strongly

[PATCH v3 1/2] lib: devres: add a helper function for ioremap_uc

2019-10-09 Thread Tuowen Zhao
Implement a resource managed strongly uncachable ioremap function. Tested-by: AceLan Kao Signed-off-by: Tuowen Zhao Acked-by: Mika Westerberg Acked-by: Andy Shevchenko --- Changes from previous version: * Split the patch in 2 * Use GPL export for devm_ioremap_uc * Add entry to devres

[git pull] a couple of mount fixes

2019-10-09 Thread Al Viro
A couple of regressions from work.mount series. The following changes since commit a3bc18a48e2e678efe62f1f9989902f9cd19e0ff: jffs2: Fix mounting under new mount API (2019-09-26 10:26:55 -0400) are available in the git repository at:

[PATCH] kvm/x86 : Replace BUG_ON(1) with BUG()

2019-10-09 Thread richard.p...@oppo.com
Signed-off-by: Peng Hao ---  arch/x86/kvm/vmx/nested.c | 3 +--  1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/kvm/vmx/nested.c b/arch/x86/kvm/vmx/nested.c index e76eb4f..d0e6c40 100644 --- a/arch/x86/kvm/vmx/nested.c +++ b/arch/x86/kvm/vmx/nested.c @@ -4945,8 +4945,7 @@

Re: [PATCH] devfreq: exynos-bus: workaround dev_pm_opp_set_rate() errors on Exynos5422/5800 SoCs

2019-10-09 Thread Chanwoo Choi
On 2019년 10월 08일 22:49, k.koniec...@partner.samsung.com wrote: > Commit 4294a779bd8d ("PM / devfreq: exynos-bus: Convert to use > dev_pm_opp_set_rate()") introduced errors: > exynos-bus: new bus device registered: soc:bus_wcore ( 84000 KHz ~ 40 KHz) > exynos-bus: new bus device registered:

Re: [PATCH RFC] perf_event: Add support for LSM and SELinux checks

2019-10-09 Thread James Morris
On Wed, 9 Oct 2019, Casey Schaufler wrote: > On 10/9/2019 3:14 PM, James Morris wrote: > > On Wed, 9 Oct 2019, Casey Schaufler wrote: > > > >> Please consider making the perf_alloc security blob maintained > >> by the infrastructure rather than the individual modules. This > >> will save it

Re: [RESEND,PATCH] net: stmmac: dwmac-mediatek: fix wrong delay value issue when resume back

2019-10-09 Thread Jakub Kicinski
On Wed, 9 Oct 2019 15:33:48 +0800, Biao Huang wrote: > mac_delay value will be divided by 550/170 in mt2712_delay_ps2stage(), > which is invoked at the beginning of mt2712_set_delay(), and the value > should be restored at the end of mt2712_set_delay(). > Or, mac_delay will be divided again when

[PATCH v7] gpio/mpc8xxx: change irq handler from chained to normal

2019-10-09 Thread Hui Song
From: Song Hui More than one gpio controllers can share one interrupt, change the driver to request shared irq. While this will work, it will mess up userspace accounting of the number of interrupts per second in tools such as vmstat. The reason is that for every GPIO interrupt,

Re: [PATCH v3 5/6] x86/ftrace: Use text_poke()

2019-10-09 Thread Steven Rostedt
On Tue, 8 Oct 2019 10:43:35 -0400 Steven Rostedt wrote: > BTW, I'd really like to take this patch series through my tree. That > way I can really hammer it, as well as I have code that will be built > on top of it. I did a bit of hammering and found two bugs. One I sent a patch to fix (adding

Re: [PATCH tip/core/rcu 4/9] drivers/scsi: Replace rcu_swap_protected() with rcu_replace()

2019-10-09 Thread Martin K. Petersen
Paul, > I do not intend to actually remove rcu_swap_protected() until 5.6 for > exactly this sort of thing. My plan is to take another pass through > the tree after 5.5 comes out, and these will be caught at that time. > > Does that work for you? Yep, that's great. Thanks! -- Martin K.

[PATCH] ftrace/module: Allow ftrace to make only loaded module text read-write

2019-10-09 Thread Steven Rostedt
From: Steven Rostedt (VMware) In the process of using text_poke_bp() for ftrace on x86, when performing the following action: # rmmod snd_hda_codec_hdmi # echo function > /sys/kernel/tracing/current_tracer # modprobe snd_hda_codec_hdmi It triggered this: BUG: unable to handle page fault

Re: "reuse mergeable anon_vma as parent when fork" causes a crash on s390

2019-10-09 Thread Wei Yang
Hi, Qian, Shakeel Thanks for testing. Sounds I missed some case to handle. anon_vma_clone() now would be called in vma_adjust, which is a different case when it is introduced. BTW, do you have the specific test case? So that I could verify my change. The kernel build test doesn't trigger this.

Re: [PATCH] scsi: ch: add include guard to chio.h

2019-10-09 Thread Martin K. Petersen
Masahiro, >> Fine with me. Is it going through your tree or should I pick it up? > > Could you please apply it to your tree? Applied to 5.5/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] qla2xxx: fix a potential NULL pointer dereference

2019-10-09 Thread Martin K. Petersen
Allen, > alloc_workqueue is not checked for errors and as a result, > a potential NULL dereference could occur. Applied to 5.4/scsi-fixes, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v17 01/14] bitops: Introduce the for_each_set_clump8 macro

2019-10-09 Thread Masahiro Yamada
On Thu, Oct 10, 2019 at 3:54 AM Geert Uytterhoeven wrote: > > Hi Andy, > > On Wed, Oct 9, 2019 at 7:09 PM Andy Shevchenko > wrote: > > On Thu, Oct 10, 2019 at 01:28:08AM +0900, Masahiro Yamada wrote: > > > On Thu, Oct 10, 2019 at 12:27 AM William Breathitt Gray > > > wrote: > > > > > > > > This

Re: [PATCH -next] userfaultfd: remove set but not used variable 'h'

2019-10-09 Thread Mike Kravetz
On 10/9/19 6:23 PM, Wei Yang wrote: > On Wed, Oct 09, 2019 at 05:45:57PM -0700, Mike Kravetz wrote: >> On 10/9/19 5:27 AM, YueHaibing wrote: >>> Fixes gcc '-Wunused-but-set-variable' warning: >>> >>> mm/userfaultfd.c: In function '__mcopy_atomic_hugetlb': >>> mm/userfaultfd.c:217:17: warning: >>>

Re: [Patch v4 2/2] linux/bits.h: Add compile time sanity check of GENMASK inputs

2019-10-09 Thread Masahiro Yamada
On Thu, Oct 10, 2019 at 6:45 AM Rikard Falkeborn wrote: > > GENMASK() and GENMASK_ULL() are supposed to be called with the high bit > as the first argument and the low bit as the second argument. Mixing > them will return a mask with zero bits set. > > Recent commits show getting this wrong is

Re: [PATCH net-next] act_mirred: Fix mirred_init_module error handling

2019-10-09 Thread Jakub Kicinski
On Wed, 9 Oct 2019 11:10:52 +0800, YueHaibing wrote: > If tcf_register_action failed, mirred_device_notifier > should be unregistered. > > Fixes: 3b87956ea645 ("net sched: fix race in mirred device removal") > Signed-off-by: YueHaibing Why does the subject say net-next, looks like the bug was

linux-next: build failure after merge of the tip tree

2019-10-09 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/gpu/drm/i915/gt/intel_gt_pm.c: In function 'intel_gt_resume': drivers/gpu/drm/i915/gt/intel_gt_pm.c:183:54: error: macro "mutex_release" passed 3 arguments, but takes just 2 183 |

Re: [PATCH] xtensa: fix {get,put}_user() for 64bit values

2019-10-09 Thread Max Filippov
On Wed, Oct 9, 2019 at 6:56 PM Al Viro wrote: > > On Wed, Oct 09, 2019 at 06:38:12PM -0700, Max Filippov wrote: > > > There's also the following code in the callers of this macro, e.g. in > > __get_user_nocheck: > > > > long __gu_err, __gu_val;\ > >

Re: [PATCH 1/1] mm/vmalloc: remove preempt_disable/enable when do preloading

2019-10-09 Thread Steven Rostedt
On Wed, 9 Oct 2019 15:19:01 -0700 Andrew Morton wrote: > On Wed, 9 Oct 2019 18:49:34 +0200 "Uladzislau Rezki (Sony)" > wrote: > > > Get rid of preempt_disable() and preempt_enable() when the > > preload is done for splitting purpose. The reason is that > > calling spin_lock() with disabled

[PATCH v2 3/3] net: ftgmac100: Ungate RCLK for RMII on ASPEED MACs

2019-10-09 Thread Andrew Jeffery
The 50MHz RCLK has to be enabled before the RMII interface will function. Signed-off-by: Andrew Jeffery --- v2: Mainly a rework of error case handling, some changes to comments drivers/net/ethernet/faraday/ftgmac100.c | 50 +++- 1 file changed, 40 insertions(+), 10

[PATCH v2 0/3] net: ftgmac100: Ungate RCLK for RMII on ASPEED MACs

2019-10-09 Thread Andrew Jeffery
Hello, This series slightly extends the devicetree binding and driver for the FTGMAC100 to describe an optional RMII RCLK gate in the clocks property. Currently it's necessary for the kernel to ungate RCLK on the AST2600 in NCSI configurations as u-boot does not yet support NCSI (which uses the

Re: [PATCH v4 3/9] mm: pagewalk: Don't split transhuge pmds when a pmd_entry is present

2019-10-09 Thread Linus Torvalds
On Wed, Oct 9, 2019 at 6:10 PM Thomas Hellström (VMware) wrote: > > Your original patch does exactly the same! Oh, no. You misread my original patch. Look again. The logic in my original patch was very different. It said that - *if* we have a pmd_entry function, then we obviously call that

[PATCH v2 2/2] clk: ast2600: Add RMII RCLK gates for all four MACs

2019-10-09 Thread Andrew Jeffery
RCLK is a fixed 50MHz clock derived from HPLL/HCLK that is described by a single gate for each MAC. Signed-off-by: Andrew Jeffery --- drivers/clk/clk-ast2600.c | 47 ++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/drivers/clk/clk-ast2600.c

[PATCH v2 1/3] dt-bindings: net: ftgmac100: Document AST2600 compatible

2019-10-09 Thread Andrew Jeffery
The AST2600 contains an FTGMAC100-compatible MAC, although the MDIO controller previously embedded in the MAC has been moved out to a dedicated MDIO block. Signed-off-by: Andrew Jeffery Acked-by: Joel Stanley --- Documentation/devicetree/bindings/net/ftgmac100.txt | 1 + 1 file changed, 1

[PATCH v2 2/3] dt-bindings: net: ftgmac100: Describe clock properties

2019-10-09 Thread Andrew Jeffery
Critically, the AST2600 requires ungating the RMII RCLK if e.g. NCSI is in use. Signed-off-by: Andrew Jeffery Acked-by: Joel Stanley --- Documentation/devicetree/bindings/net/ftgmac100.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH v2 0/2] clk: ast2600: Expose RMII RCLK for MACs 1-4

2019-10-09 Thread Andrew Jeffery
Hello, This series is similar to that for the AST2500 but I've split the patches out as the AST2600 driver is new for 5.4 and I'm hoping we have a chance of slipping them in. Maybe we can get both series in, but I thought decoupling them might make it more manageable if not. Regardless, the

[PATCH v2 1/2] dt-bindings: clock: Add AST2600 RMII RCLK gate definitions

2019-10-09 Thread Andrew Jeffery
The AST2600 has an explicit gate for the RMII RCLK for each of the four MACs. Signed-off-by: Andrew Jeffery --- include/dt-bindings/clock/ast2600-clock.h | 4 1 file changed, 4 insertions(+) diff --git a/include/dt-bindings/clock/ast2600-clock.h

[PATCH v2 2/2] clk: aspeed: Add RMII RCLK gates for both AST2500 MACs

2019-10-09 Thread Andrew Jeffery
RCLK is a fixed 50MHz clock derived from HPLL that is described by a single gate for each MAC. Signed-off-by: Andrew Jeffery --- v2: Drop "-gate" from clock names drivers/clk/clk-aspeed.c | 27 ++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git

[PATCH v2 0/2] clk: aspeed: Expose RMII RCLK gate for MACs 1-2 on AST2500

2019-10-09 Thread Andrew Jeffery
Hello, This series is two small changes enable kernel support for controlling the RMII RCLK gate on AST2500-based systems. Previously the kernel has assumed u-boot has ungated RCLK for networking to function. RMII is commonly used for NCSI, which itself is commonly used for BMC-based designs to

[PATCH v2 1/2] dt-bindings: clock: Add AST2500 RMII RCLK definitions

2019-10-09 Thread Andrew Jeffery
The AST2500 has an explicit gate for the RMII RCLK for each of the two MACs. Signed-off-by: Andrew Jeffery --- v2: Drop "_GATE" from symbol names include/dt-bindings/clock/aspeed-clock.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/dt-bindings/clock/aspeed-clock.h

Re: [PATCH] xtensa: fix {get,put}_user() for 64bit values

2019-10-09 Thread Al Viro
On Wed, Oct 09, 2019 at 06:38:12PM -0700, Max Filippov wrote: > There's also the following code in the callers of this macro, e.g. in > __get_user_nocheck: > > long __gu_err, __gu_val;\ > __get_user_size(__gu_val, (ptr), (size), __gu_err); \ >

Re: [PATCH] xtensa: fix {get,put}_user() for 64bit values

2019-10-09 Thread Max Filippov
On Wed, Oct 9, 2019 at 12:21 PM Al Viro wrote: > > First of all, on short copies __copy_{to,from}_user() return the amount > of bytes left uncopied, *not* -EFAULT. get_user() and put_user() are > expected to return -EFAULT on failure. > > Another problem is get_user(v32, (__u64 __user *)p); that

Re: [PATCH v1 0/2] spi: cadence-qspi: Add cadence-qspi support for Intel LGM SoC

2019-10-09 Thread Ramuthevar, Vadivel MuruganX
HI Vignesh, On 17/9/2019 12:50 AM, Vignesh Raghavendra wrote: Hi, On 16/09/19 1:08 PM, Ramuthevar,Vadivel MuruganX wrote: patch 1: Add YAML for cadence-qspi devicetree cdocumentation. patch 2: cadence-qspi controller driver to support QSPI-NAND flash using existing spi-nand framework with

Re: [PATCH] ocfs2:fix potential Null Ptr Dereference

2019-10-09 Thread Joseph Qi
On 19/10/10 09:07, Yizhuo wrote: > Inside function o2hb_region_blocks_store(), to_o2hb_region() > could return NULL but there's no check before its dereference, > which is potentially unsafe. As I described before, this won't happen IMHO. configfs item is initialized after loading module, so

[PATCH] clk: bcm2835: Fix memory leak in bcm2835_register_pll

2019-10-09 Thread Navid Emamdoost
In the implementation of bcm2835_register_pll(), the allocated memory for pll should be released if devm_clk_hw_register() fails. Fixes: b19f009d4510 ("clk: bcm2835: Migrate to clk_hw based registration and OF APIs") Signed-off-by: Navid Emamdoost --- drivers/clk/bcm/clk-bcm2835.c | 4 +++- 1

Re: [PATCH] iommu/vt-d: Return the correct dma mask when we are bypassing the IOMMU

2019-10-09 Thread Lu Baolu
Hi, On 10/8/19 10:33 PM, Arvind Sankar wrote: We must return a mask covering the full physical RAM when bypassing the IOMMU mapping. Also, in iommu_need_mapping, we need to check using dma_direct_get_required_mask to ensure that the device's dma_mask can cover physical RAM before deciding to

Re: [PATCH v7 4/7] KVM: VMX: Load Guest CET via VMCS when CET is enabled in Guest

2019-10-09 Thread Yang Weijiang
On Wed, Oct 09, 2019 at 04:08:50PM -0700, Jim Mattson wrote: > On Tue, Oct 8, 2019 at 11:41 PM Yang Weijiang wrote: > > > > On Wed, Oct 02, 2019 at 11:54:26AM -0700, Jim Mattson wrote: > > > On Thu, Sep 26, 2019 at 7:17 PM Yang Weijiang > > > wrote: > > > > + if (cet_on) > > > > +

Re: [PATCH] iommu/vt-d: Return the correct dma mask when we are bypassing the IOMMU

2019-10-09 Thread Lu Baolu
Hi Christoph, On 10/9/19 2:51 PM, Christoph Hellwig wrote: On Wed, Oct 09, 2019 at 10:45:15AM +0800, Lu Baolu wrote: Do you mind explaining why we always return 32 bit here? See the comment in dma_get_required_mask(). Got it. Thank you. Best regards, Baolu

Re: [PATCH -next] userfaultfd: remove set but not used variable 'h'

2019-10-09 Thread Wei Yang
On Wed, Oct 09, 2019 at 05:45:57PM -0700, Mike Kravetz wrote: >On 10/9/19 5:27 AM, YueHaibing wrote: >> Fixes gcc '-Wunused-but-set-variable' warning: >> >> mm/userfaultfd.c: In function '__mcopy_atomic_hugetlb': >> mm/userfaultfd.c:217:17: warning: >> variable 'h' set but not used

  1   2   3   4   5   6   7   8   9   10   >