[PATCH 2/3] ARM: dts: stm32: enable l3gd20 on stm32429-disco board

2020-05-08 Thread dillon . minfei
From: dillon min Enable l3gd20 on stm32429-disco board. Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f429-disco.dts | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429-disco.dts b/arch/arm/boot/dts/stm32f429-disco.dts index 30c0f67

[PATCH 3/3] spi: stm32: Add SPI_SIMPLEX_RX, SPI_3WIRE_RX support for stm32f4

2020-05-08 Thread dillon . minfei
From: dillon min in l3gd20 driver startup, there is a setup failed error return from stm32 spi driver " [2.687630] st-gyro-spi spi0.0: supply vdd not found, using dummy regulator [2.696869] st-gyro-spi spi0.0: supply vddio not found, using dummy regulator [2.706707] spi_stm32 4001500

[PATCH 0/3] Enable l3gd20 on stm32f429-disco board

2020-05-08 Thread dillon . minfei
From: dillon min This patchset is for enable l3gd20 on stm32f429-disco board has following changes: 1, enable spi5 controller on stm32f429-disco (dts) 2, add spi5 pinmap for stm32f429-disco (dts) 3, add SPI_SIMPLEX_RX, SPI_3WIRE_RX support for stm32f4 dillon min (3): ARM: dts: stm32: Add pi

[PATCH 1/3] ARM: dts: stm32: Add pin map for spi5 on stm32f429-disco board

2020-05-08 Thread dillon . minfei
From: dillon min This patch adds the pin configuration for ltdc, spi5 controller on stm32f429-disco board. Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f4-pinctrl.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/stm32f4-pinctrl.dtsi b/arch/

Re: [PATCH] mm: vmscan: consistent update to pgsteal and pgscan

2020-05-08 Thread Yafang Shao
On Fri, May 8, 2020 at 9:38 PM Johannes Weiner wrote: > > On Fri, May 08, 2020 at 06:25:14AM -0700, Shakeel Butt wrote: > > On Fri, May 8, 2020 at 3:34 AM Yafang Shao wrote: > > > > > > On Fri, May 8, 2020 at 4:49 AM Shakeel Butt wrote: > > > > > > > > One way to measure the efficiency of memory

Re: [PATCH 4.4 000/308] 4.4.223-rc2 review

2020-05-08 Thread Greg Kroah-Hartman
On Fri, May 08, 2020 at 02:10:40PM -0700, Guenter Roeck wrote: > On 5/8/20 7:32 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.4.223 release. > > There are 308 patches in this series, all will be posted as a response > > to this one. If anyone has any issu

[PATCH 4.4 000/306] 4.4.223-rc3 review

2020-05-08 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.4.223 release. There are 306 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Mon, 11 May 2020 06:44:14 +. Anything re

Re: linux-next boot error: WARNING: suspicious RCU usage in ipmr_get_table

2020-05-08 Thread Amol Grover
On Thu, May 07, 2020 at 06:26:01AM +1000, Stephen Rothwell wrote: > Hi all, > > On Thu, 7 May 2020 06:16:35 +1000 Stephen Rothwell > wrote: > > > > Hi Qian, > > > > On Tue, 28 Apr 2020 09:56:59 -0400 Qian Cai wrote: > > > > > > > On Apr 28, 2020, at 4:57 AM, Dmitry Vyukov wrote: > > > >

[PATCH v2 1/2] serial: lantiq: Make UART's use as console selectable

2020-05-08 Thread Rahul Tanwar
Lantiq UART driver can be used for system console. Add changes to make this driver's use as console selectable/configurable. Signed-off-by: Rahul Tanwar --- drivers/tty/serial/Kconfig | 9 - drivers/tty/serial/lantiq.c | 11 ++- 2 files changed, 18 insertions(+), 2 deletions(-)

[PATCH v2 2/2] serial: lantiq: Make driver modular

2020-05-08 Thread Rahul Tanwar
Add changes so Lantiq serial driver can be compiled as a module. Signed-off-by: Rahul Tanwar --- drivers/tty/serial/Kconfig | 4 +++- drivers/tty/serial/lantiq.c | 26 -- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/Kconfig b/driver

Re: [PATCH] drm/panel: visionox-rm69299: Add module license

2020-05-08 Thread Randy Dunlap
On 5/8/20 11:30 PM, Jason Yan wrote: > Fix the following build warning: > > WARNING: modpost: missing MODULE_LICENSE() in > drivers/gpu/drm/panel/panel-visionox-rm69299.o > see include/linux/module.h for more information > > Signed-off-by: Jason Yan > --- > drivers/gpu/drm/panel/panel-visionox

[PATCH 2/3] mm: vmstat: Convert to use DEFINE_SEQ_ATTRIBUTE macro

2020-05-08 Thread Kefeng Wang
Use DEFINE_SEQ_ATTRIBUTE macro to simplify the code. Signed-off-by: Kefeng Wang --- mm/vmstat.c | 32 ++-- 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/mm/vmstat.c b/mm/vmstat.c index 7f2e87cb7049..35219271796f 100644 --- a/mm/vmstat.c +++ b/mm/vmsta

[PATCH 0/3] seq_file: Introduce DEFINE_SEQ_ATTRIBUTE() helper macro

2020-05-08 Thread Kefeng Wang
As discussion in https://lore.kernel.org/lkml/20191129222310.ga3712...@kroah.com/, we could introduce a new helper macro to reduce losts of boilerplate code, vmstat and kprobes is the example which covert to use it, if this is accepted, I will send out more clean ups. Kefeng Wang (3): seq_file:

[PATCH 3/3] kernel: kprobes: Convert to use DEFINE_SEQ_ATTRIBUTE macro

2020-05-08 Thread Kefeng Wang
Use DEFINE_SEQ_ATTRIBUTE macro to simplify the code. Cc: Anil S Keshavamurthy Cc: "David S. Miller" Cc: Masami Hiramatsu Signed-off-by: Kefeng Wang --- kernel/kprobes.c | 33 ++--- 1 file changed, 6 insertions(+), 27 deletions(-) diff --git a/kernel/kprobes.c b/ke

[PATCH 1/3] seq_file: Introduce DEFINE_SEQ_ATTRIBUTE() helper macro

2020-05-08 Thread Kefeng Wang
Introduce DEFINE_SEQ_ATTRIBUTE() helper macro to decrease code duplication. Signed-off-by: Kefeng Wang --- include/linux/seq_file.h | 19 +++ 1 file changed, 19 insertions(+) diff --git a/include/linux/seq_file.h b/include/linux/seq_file.h index 1672cf6f7614..c77869cf7d10 100644

[PATCH] drm/panel: visionox-rm69299: Add module license

2020-05-08 Thread Jason Yan
Fix the following build warning: WARNING: modpost: missing MODULE_LICENSE() in drivers/gpu/drm/panel/panel-visionox-rm69299.o see include/linux/module.h for more information Signed-off-by: Jason Yan --- drivers/gpu/drm/panel/panel-visionox-rm69299.c | 1 + 1 file changed, 1 insertion(+) diff

Re: [EXT] [PATCH 09/15] qed: use new module_firmware_crashed()

2020-05-08 Thread Igor Russkikh
> This makes use of the new module_firmware_crashed() to help > annotate when firmware for device drivers crash. When firmware > crashes devices can sometimes become unresponsive, and recovery > sometimes requires a driver unload / reload and in the worst cases > a reboot. > > Using a taint flag

[PATCH] drm/amd/amdgpu: remove defined but not used 'crtc_offsets'

2020-05-08 Thread Jason Yan
Fix the following gcc warning: drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c:65:18: warning: ‘crtc_offsets’ defined but not used [-Wunused-const-variable=] static const u32 crtc_offsets[6] = ^~~~ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/gpu/drm/amd/amdgpu

[PATCH -next] leds: blinkm: remove set but not used variable

2020-05-08 Thread Hongbo Yao
Fixes gcc '-Wunused-but-set-variable' warning: drivers/leds/leds-blinkm.c:483:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] int ret; Reported-by: Hulk Robot Signed-off-by: Hongbo Yao --- drivers/leds/leds-blinkm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletio

Re: [PATCH] net/sonic: Fix some resource leaks in error handling paths

2020-05-08 Thread Markus Elfring
> While at it, rename a label in order to be slightly more informative and > split some too long lines. Would you like to add the tag “Fixes” to the change description? … > +++ b/drivers/net/ethernet/natsemi/macsonic.c > @@ -506,10 +506,14 @@ static int mac_sonic_platform_probe(struct > platfor

[PATCH v2] lib/flex_proportions.c: cleanup __fprop_inc_percpu_max

2020-05-08 Thread Tan Hu
If the given type has fraction smaller than max_frac/FPROP_FRAC_BASE, the code could be modified to call __fprop_inc_percpu() directly and easier to understand. After this patch, fprop_reflect_period_percpu() will be called twice, and quicky return on pl->period == p->period test, so it would not r

[PATCH][V2] perf: perf can not parser the backtrace of app with dwarf mode in the 32bit system and 64bit kernel.

2020-05-08 Thread Jiping Ma
Record PC value from regs[15], it should be regs[32] in REGS_ABI_32 mode, which cause perf parser the backtrace failed. Signed-off-by: Jiping Ma --- arch/arm64/kernel/perf_regs.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/kernel/perf_regs.c b/arch/arm64/kernel/perf_regs.c

Re: [PATCH v2] netprio_cgroup: Fix unlimited memory leak of v2 cgroups

2020-05-08 Thread Jakub Kicinski
On Sat, 9 May 2020 11:32:10 +0800 Zefan Li wrote: > If systemd is configured to use hybrid mode which enables the use of > both cgroup v1 and v2, systemd will create new cgroup on both the default > root (v2) and netprio_cgroup hierarchy (v1) for a new session and attach > task to the two cgroups.

RE: [RFC] Issue in final aggregate value, in case of multiple events present in metric expression

2020-05-08 Thread Joakim Zhang
Hi Arnaldo, Kajol reflects this issue for almost two months, got no feedbacks, do you have any comments? That could be appreciated if you can look into it. Thanks a lot! Please refer to below link: https://www.spinics.net/lists/linux-perf-users/msg11011.html Best Regards, Joakim Zhang > -

Re: [PATCH net-next] net: ipa: Remove ipa_endpoint_stop{,_rx_dma} again

2020-05-08 Thread Jakub Kicinski
On Fri, 8 May 2020 12:41:33 -0700 Nathan Chancellor wrote: > When building arm64 allyesconfig: > > drivers/net/ipa/ipa_endpoint.c: In function 'ipa_endpoint_stop_rx_dma': > drivers/net/ipa/ipa_endpoint.c:1274:13: error: 'IPA_ENDPOINT_STOP_RX_SIZE' > undeclared (first use in this function) > driv

Re: [PATCH v7 8/8] bus: mhi: core: Ensure non-zero session or sequence ID values are used

2020-05-08 Thread Manivannan Sadhasivam
On Fri, May 08, 2020 at 07:26:48PM -0700, Bhaumik Bhatt wrote: > While writing any sequence or session identifiers, it is possible that > the host could write a zero value, whereas only non-zero values should > be supported writes to those registers. Ensure that the host does not > write a non-zero

Re: [PATCH v7 6/8] bus: mhi: core: Return appropriate error codes for AMSS load failure

2020-05-08 Thread Manivannan Sadhasivam
On Fri, May 08, 2020 at 07:26:46PM -0700, Bhaumik Bhatt wrote: > When loading AMSS firmware using BHIe protocol, return -ETIMEDOUT if no > response is received within the timeout or return -EIO in case of a > protocol returned failure or an MHI error state. > > Signed-off-by: Bhaumik Bhatt > Revi

Re: [PATCH v7 7/8] bus: mhi: core: Improve debug logs for loading firmware

2020-05-08 Thread Manivannan Sadhasivam
On Fri, May 08, 2020 at 07:26:47PM -0700, Bhaumik Bhatt wrote: > Add log messages to track boot flow errors and timeouts in SBL or AMSS > firmware loading to aid in debug. > > Signed-off-by: Bhaumik Bhatt > Reviewed-by: Jeffrey Hugo Reviewed-by: Manivannan Sadhasivam Thanks, Mani > --- > dr

Re: [PATCH v7 4/8] bus: mhi: core: Read transfer length from an event properly

2020-05-08 Thread Manivannan Sadhasivam
On Fri, May 08, 2020 at 07:26:44PM -0700, Bhaumik Bhatt wrote: > From: Hemant Kumar > > When MHI Driver receives an EOT event, it reads xfer_len from the > event in the last TRE. The value is under control of the MHI device > and never validated by Host MHI driver. The value should never be > lar

Re: [PATCH][V2] net: tg3: tidy up loop, remove need to compute off with a multiply

2020-05-08 Thread Jakub Kicinski
On Sat, 9 May 2020 00:14:47 +0100 Colin King wrote: > From: Colin Ian King > > Currently the value for 'off' is computed using a multiplication and > a couple of statements later off is being incremented by len and > this value is never read. Clean up the code by removing the > multiplication a

Re: [PATCH v7 5/8] bus: mhi: core: Handle firmware load using state worker

2020-05-08 Thread Manivannan Sadhasivam
On Fri, May 08, 2020 at 07:26:45PM -0700, Bhaumik Bhatt wrote: > Upon power up, driver queues firmware worker thread if the execution > environment is PBL. Firmware worker is blocked with a timeout until > state worker gets a chance to run and unblock firmware worker. An > endpoint power up failure

Re: [PATCH] cnic: remove redundant assignment to variable ret

2020-05-08 Thread Jakub Kicinski
On Fri, 8 May 2020 23:40:26 +0100 Colin King wrote: > From: Colin Ian King > > The variable ret is being assigned with a value that is never read, > the assignment is redundant and can be removed. > > Addresses-Coverity: ("Unused value") > Signed-off-by: Colin Ian King Applied, thank you!

Re: [PATCH] net: lio_core: remove redundant assignment to variable tx_done

2020-05-08 Thread Jakub Kicinski
On Fri, 8 May 2020 23:58:10 +0100 Colin King wrote: > From: Colin Ian King > > The variable tx_done is being assigned with a value that is never read > as the function returns a few statements later. The assignment is > redundant and can be removed. > > Addresses-Coverity: ("Unused value") > S

Re: [PATCH] net/atheros: remove redundant assignment to variable size

2020-05-08 Thread Jakub Kicinski
On Fri, 8 May 2020 23:33:21 +0100 Colin King wrote: > From: Colin Ian King > > The variable size is being assigned with a value that is never read, > the assignment is redundant and cab be removed. > > Addresses-Coverity: ("Unused value") > Signed-off-by: Colin Ian King Applied, thank you!

Re: [PATCH v7 3/8] bus: mhi: core: Add range check for channel id received in event ring

2020-05-08 Thread Manivannan Sadhasivam
On Fri, May 08, 2020 at 07:26:43PM -0700, Bhaumik Bhatt wrote: > From: Hemant Kumar > > MHI data completion handler function reads channel id from event > ring element. Value is under the control of MHI devices and can be > any value between 0 and 255. In order to prevent out of bound access > ad

Re: [PATCH v7 2/8] bus: mhi: core: Cache intmod from mhi event to mhi channel

2020-05-08 Thread Manivannan Sadhasivam
On Fri, May 08, 2020 at 07:26:42PM -0700, Bhaumik Bhatt wrote: > From: Hemant Kumar > > Driver is using zero initialized intmod value from mhi channel when > configuring TRE for bei field. This prevents interrupt moderation to > take effect in case it is supported by an event ring. Fix this by >

Re: [PATCH v7 1/8] bus: mhi: core: Refactor mhi queue APIs

2020-05-08 Thread Manivannan Sadhasivam
On Fri, May 08, 2020 at 07:26:41PM -0700, Bhaumik Bhatt wrote: > From: Hemant Kumar > > Move all the common code to generate TRE from mhi_queue_buf, > mhi_queue_dma and mhi_queue_skb to mhi_gen_tre. This helps > to centralize the TRE generation code which makes any future > bug fixing easier to m

Re: [PATCH v4 1/4] device-dax: Don't leak kernel memory to user space after unloading kmem

2020-05-08 Thread David Hildenbrand
> Am 09.05.2020 um 01:53 schrieb Andrew Morton : > > On Fri, 8 May 2020 10:42:14 +0200 David Hildenbrand > wrote: > >> Assume we have kmem configured and loaded: >> [root@localhost ~]# cat /proc/iomem >> ... >> 14000-33fff : Persistent Memory$ >>14000-1481f : namespa

[PATCH 4/4] fs: btrfs: fix a data race in btrfs_block_rsv_release()

2020-05-08 Thread Jia-Ju Bai
The functions btrfs_block_rsv_release() and btrfs_update_delayed_refs_rsv() are concurrently executed at runtime in the following call contexts: Thread 1: btrfs_file_write_iter() btrfs_buffered_write() btrfs_delalloc_release_extents() btrfs_inode_rsv_release() __btrfs

Re: [PATCH 6/6] exec: Set the point of no return sooner

2020-05-08 Thread Kees Cook
On Fri, May 08, 2020 at 01:48:13PM -0500, Eric W. Biederman wrote: > > Make the code more robust by marking the point of no return sooner. > This ensures that future code changes don't need to worry about how > they return errors if they are past this point. > > This results in no actual change i

Re: [PATCH -next] net: dsa: sja1105: remove set but not used variable 'prev_time'

2020-05-08 Thread Jakub Kicinski
On Fri, 8 May 2020 20:00:55 +0800 Samuel Zou wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/net/dsa/sja1105/sja1105_vl.c:468:6: warning: variable ‘prev_time’ set > but not used [-Wunused-but-set-variable] > u32 prev_time = 0; > ^ > > Reported-by: Hulk Robot

Re: [PATCH 5/6] exec: Move handling of the point of no return to the top level

2020-05-08 Thread Kees Cook
On Fri, May 08, 2020 at 01:47:10PM -0500, Eric W. Biederman wrote: > > Move the handing of the point of no return from search_binary_handler > into __do_execve_file so that it is easier to find, and to keep > things robust in the face of change. > > Make it clear that an existing fatal signal wil

[PATCH 3/4] fs: btrfs: fix data races in start_transaction()

2020-05-08 Thread Jia-Ju Bai
The functions start_transaction() and btrfs_update_delayed_refs_rsv() are concurrently executed at runtime in the following call contexts: Thread 1: btrfs_sync_file() btrfs_start_transaction() start_transaction() Thread 2: finish_ordered_fn() btrfs_finish_ordered_io() inse

[PATCH 2/4] fs: btrfs: fix data races in extent_write_cache_pages()

2020-05-08 Thread Jia-Ju Bai
The function extent_write_cache_pages is concurrently executed with itself at runtime in the following call contexts: Thread 1: btrfs_sync_file() start_ordered_ops() btrfs_fdatawrite_range() btrfs_writepages() [via function pointer] extent_writepages() ext

[PATCH 1/4] fs: btrfs: fix a data race in btrfs_block_group_done()

2020-05-08 Thread Jia-Ju Bai
The functions btrfs_block_group_done() and caching_thread() are concurrently executed at runtime in the following call contexts: Thread 1: btrfs_sync_file() start_ordered_ops() btrfs_fdatawrite_range() btrfs_writepages() [via function pointer] extent_writepages()

Re: [PATCH 4/6] exec: Run sync_mm_rss before taking exec_update_mutex

2020-05-08 Thread Kees Cook
On Fri, May 08, 2020 at 01:45:56PM -0500, Eric W. Biederman wrote: > Like exec_mm_release sync_mm_rss is about flushing out the state of > the old_mm, which does not need to happen under exec_update_mutex. > > Make this explicit by moving sync_mm_rss outside of exec_update_mutex. > > Signed-off-b

Re: [PATCH v4 12/12] mtd: Support kmsg dumper based on pstore/blk

2020-05-08 Thread WeiXiong Liao
hi Kees Cook, On 2020/5/8 PM 2:40, Kees Cook wrote: > From: WeiXiong Liao > > This introduces mtdpstore, which is similar to mtdoops but more > powerful. It uses pstore/blk, and aims to store panic and oops logs to > a flash partition, where pstore can later read back and present as files > in t

Re: [PATCH 3/6] exec: Stop open coding mutex_lock_killable of cred_guard_mutex

2020-05-08 Thread Kees Cook
On Fri, May 08, 2020 at 01:45:25PM -0500, Eric W. Biederman wrote: > > Oleg modified the code that did > "mutex_lock_interruptible(¤t->cred_guard_mutex)" to return > -ERESTARTNOINTR instead of -EINTR, so that userspace will never see a > failure to grab the mutex. > > Slightly earlier Liam R. How

Re: [PATCH 2/6] exec: Fix spelling of search_binary_handler in a comment

2020-05-08 Thread Kees Cook
On Fri, May 08, 2020 at 01:44:46PM -0500, Eric W. Biederman wrote: > > Signed-off-by: "Eric W. Biederman" Reviewed-by: Kees Cook -- Kees Cook

Re: [PATCH 1/6] exec: Move the comment from above de_thread to above unshare_sighand

2020-05-08 Thread Kees Cook
On Fri, May 08, 2020 at 01:44:19PM -0500, Eric W. Biederman wrote: > > The comment describes work that now happens in unshare_sighand so > move the comment where it makes sense. > > Signed-off-by: "Eric W. Biederman" Reviewed-by: Kees Cook -- Kees Cook

Re: linux-next 20200506 - build failure with net/bpfilter/bpfilter_umh

2020-05-08 Thread Valdis Klētnieks
On Sat, 09 May 2020 12:45:22 +0900, Masahiro Yamada said: > > LD [U] net/bpfilter/bpfilter_umh > > /usr/bin/ld: cannot find -lc > > collect2: error: ld returned 1 exit status > > make[2]: *** [scripts/Makefile.userprogs:36: net/bpfilter/bpfilter_umh] > > Error 1 > > make[1]: *** [scripts/Makef

Re: [PATCH v4 06/12] pstore/blk: Add console frontend support

2020-05-08 Thread WeiXiong Liao
hi Kees Cook, On 2020/5/8 PM 2:39, Kees Cook wrote: > From: WeiXiong Liao > > Support backend for console. To enable console backend, just make > console_size be greater than 0 and a multiple of 4096. > > Signed-off-by: WeiXiong Liao > Link: > https://lore.kernel.org/r/1585126506-18635-6-git-

Re: [PATCH] cnic: remove redundant assignment to variable ret

2020-05-08 Thread Michael Chan
On Fri, May 8, 2020 at 3:40 PM Colin King wrote: > > From: Colin Ian King > > The variable ret is being assigned with a value that is never read, > the assignment is redundant and can be removed. > > Addresses-Coverity: ("Unused value") > Signed-off-by: Colin Ian King Reviewed-by: Michael Chan

net/mptcp/protocol.c:538:6: warning: 'dfrag_collapsed' may be used uninitialized in this function

2020-05-08 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: d5eeab8d7e269e8cfc53b915bccd7bd30485bcbf commit: 3b1d6210a9577369103330b0d802b0bf74b65e7f mptcp: implement and use MPTCP-level retransmission date: 6 weeks ago config: x86_64-randconfig-a003-20200509 (atta

Re: [PATCH] net: tg3: tidy up loop, remove need to compute off with a multiply

2020-05-08 Thread Michael Chan
On Fri, May 8, 2020 at 7:31 PM Joe Perches wrote: > > On Fri, 2020-05-08 at 18:48 -0700, Jakub Kicinski wrote: > > On Sat, 9 May 2020 00:31:03 +0100 Colin Ian King wrote: > > > > My preference would be for > > > > > > > > { > > > > int i; > > > > u32 off = 0; > > > > > > > > for (i = 0; i <

[PATCH] bpfilter: document build requirements for bpfilter_umh

2020-05-08 Thread Valdis Klētnieks
It's not intuitively obvious that bpfilter_umh is a statically linked binary. Mention the toolchain requirement in the Kconfig help, so people have an easier time figuring out what's needed. Signed-off-by: Valdis Kletnieks diff --git a/net/bpfilter/Kconfig b/net/bpfilter/Kconfig index fed9290e3b

[PATCH 12/15] ath10k: use new module_firmware_crashed()

2020-05-08 Thread Luis Chamberlain
This makes use of the new module_firmware_crashed() to help annotate when firmware for device drivers crash. When firmware crashes devices can sometimes become unresponsive, and recovery sometimes requires a driver unload / reload and in the worst cases a reboot. Using a taint flag allows us to an

Re: [PATCH v5] x86: bitops: fix build regression

2020-05-08 Thread Sedat Dilek
On Sat, May 9, 2020 at 1:47 AM Jesse Brandeburg wrote: > > On Fri, 8 May 2020 13:28:35 -0700 > Nathan Chancellor wrote: > > > On Fri, May 08, 2020 at 11:32:29AM -0700, Nick Desaulniers wrote: > > > Use the `%b` "x86 Operand Modifier" to instead force register allocation > > > to select a lower-8-

Re: [PATCH v4 05/12] pstore/blk: Add support for pmsg frontend

2020-05-08 Thread WeiXiong Liao
hi Kees Cook, On 2020/5/8 PM 2:39, Kees Cook wrote: > From: WeiXiong Liao > > Add pmsg support to pstore/blk (through pstore/zone). To enable, pmsg_size > must be greater than 0 and a multiple of 4096. > > Signed-off-by: WeiXiong Liao > Link: > https://lore.kernel.org/r/1585126506-18635-5-git

[PATCH 01/15] taint: add module firmware crash taint support

2020-05-08 Thread Luis Chamberlain
Device driver firmware can crash, and sometimes, this can leave your system in a state which makes the device or subsystem completely useless. Detecting this by inspecting /proc/sys/kernel/tainted instead of scraping some magical words from the kernel log, which is driver specific, is much easier.

[PATCH 11/15] wimax/i2400m: use new module_firmware_crashed()

2020-05-08 Thread Luis Chamberlain
This makes use of the new module_firmware_crashed() to help annotate when firmware for device drivers crash. When firmware crashes devices can sometimes become unresponsive, and recovery sometimes requires a driver unload / reload and in the worst cases a reboot. Using a taint flag allows us to an

[PATCH 07/15] cxgb4: use new module_firmware_crashed()

2020-05-08 Thread Luis Chamberlain
This makes use of the new module_firmware_crashed() to help annotate when firmware for device drivers crash. When firmware crashes devices can sometimes become unresponsive, and recovery sometimes requires a driver unload / reload and in the worst cases a reboot. Using a taint flag allows us to an

[PATCH 10/15] soc: qcom: ipa: use new module_firmware_crashed()

2020-05-08 Thread Luis Chamberlain
This makes use of the new module_firmware_crashed() to help annotate when firmware for device drivers crash. When firmware crashes devices can sometimes become unresponsive, and recovery sometimes requires a driver unload / reload and in the worst cases a reboot. Using a taint flag allows us to an

[PATCH 08/15] ehea: use new module_firmware_crashed()

2020-05-08 Thread Luis Chamberlain
This makes use of the new module_firmware_crashed() to help annotate when firmware for device drivers crash. When firmware crashes devices can sometimes become unresponsive, and recovery sometimes requires a driver unload / reload and in the worst cases a reboot. Using a taint flag allows us to an

[PATCH 15/15] mwl8k: use new module_firmware_crashed()

2020-05-08 Thread Luis Chamberlain
This makes use of the new module_firmware_crashed() to help annotate when firmware for device drivers crash. When firmware crashes devices can sometimes become unresponsive, and recovery sometimes requires a driver unload / reload and in the worst cases a reboot. Using a taint flag allows us to an

[PATCH 04/15] bnxt: use new module_firmware_crashed()

2020-05-08 Thread Luis Chamberlain
This makes use of the new module_firmware_crashed() to help annotate when firmware for device drivers crash. When firmware crashes devices can sometimes become unresponsive, and recovery sometimes requires a driver unload / reload and in the worst cases a reboot. Using a taint flag allows us to an

[PATCH 06/15] liquidio: use new module_firmware_crashed()

2020-05-08 Thread Luis Chamberlain
This makes use of the new module_firmware_crashed() to help annotate when firmware for device drivers crash. When firmware crashes devices can sometimes become unresponsive, and recovery sometimes requires a driver unload / reload and in the worst cases a reboot. Using a taint flag allows us to an

[PATCH 03/15] bnx2x: use new module_firmware_crashed()

2020-05-08 Thread Luis Chamberlain
This makes use of the new module_firmware_crashed() to help annotate when firmware for device drivers crash. When firmware crashes devices can sometimes become unresponsive, and recovery sometimes requires a driver unload / reload and in the worst cases a reboot. Using a taint flag allows us to an

[PATCH 13/15] ath6kl: use new module_firmware_crashed()

2020-05-08 Thread Luis Chamberlain
This makes use of the new module_firmware_crashed() to help annotate when firmware for device drivers crash. When firmware crashes devices can sometimes become unresponsive, and recovery sometimes requires a driver unload / reload and in the worst cases a reboot. Using a taint flag allows us to an

[PATCH 05/15] bna: use new module_firmware_crashed()

2020-05-08 Thread Luis Chamberlain
This makes use of the new module_firmware_crashed() to help annotate when firmware for device drivers crash. When firmware crashes devices can sometimes become unresponsive, and recovery sometimes requires a driver unload / reload and in the worst cases a reboot. Using a taint flag allows us to an

[PATCH 09/15] qed: use new module_firmware_crashed()

2020-05-08 Thread Luis Chamberlain
This makes use of the new module_firmware_crashed() to help annotate when firmware for device drivers crash. When firmware crashes devices can sometimes become unresponsive, and recovery sometimes requires a driver unload / reload and in the worst cases a reboot. Using a taint flag allows us to an

[PATCH 00/15] net: taint when the device driver firmware crashes

2020-05-08 Thread Luis Chamberlain
Device driver firmware can crash, and sometimes, this can leave your system in a state which makes the device or subsystem completely useless. Detecting this by inspecting /proc/sys/kernel/tainted instead of scraping some magical words from the kernel log, which is driver specific, is much easier.

[PATCH 14/15] brcm80211: use new module_firmware_crashed()

2020-05-08 Thread Luis Chamberlain
This makes use of the new module_firmware_crashed() to help annotate when firmware for device drivers crash. When firmware crashes devices can sometimes become unresponsive, and recovery sometimes requires a driver unload / reload and in the worst cases a reboot. Using a taint flag allows us to an

[PATCH 02/15] ethernet/839: use new module_firmware_crashed()

2020-05-08 Thread Luis Chamberlain
This makes use of the new module_firmware_crashed() to help annotate when firmware for device drivers crash. When firmware crashes devices can sometimes become unresponsive, and recovery sometimes requires a driver unload / reload and in the worst cases a reboot. Using a taint flag allows us to an

Re: [PATCH -next v2] locking/osq_lock: annotate a data race in osq_lock

2020-05-08 Thread Paul E. McKenney
On Fri, May 08, 2020 at 04:59:05PM -0400, Qian Cai wrote: > > > > On Feb 11, 2020, at 8:54 AM, Qian Cai wrote: > > > > prev->next could be accessed concurrently as noticed by KCSAN, > > > > write (marked) to 0x9d3370dbbe40 of 8 bytes by task 3294 on cpu 107: > > osq_lock+0x25f/0x350 > >

[PATCH net v2] hinic: fix a bug of ndo_stop

2020-05-08 Thread Luo bin
if some function in ndo_stop interface returns failure because of hardware fault, must go on excuting rest steps rather than return failure directly, otherwise will cause memory leak.And bump the timeout for SET_FUNC_STATE to ensure that cmd won't return failure when hw is busy. Otherwise hw may st

[PATCH net-next v2] hinic: add three net_device_ops of vf

2020-05-08 Thread Luo bin
adds ndo_set_vf_rate/ndo_set_vf_spoofchk/ndo_set_vf_link_state to configure netdev of virtual function Signed-off-by: Luo bin --- .../net/ethernet/huawei/hinic/hinic_hw_cmdq.c | 29 ++ .../net/ethernet/huawei/hinic/hinic_hw_dev.c | 35 ++- .../net/ethernet/huawei/hinic/hinic_hw_dev.h | 21 +

RE: [PATCH] fpga: dfl: Replace zero-length array with flexible-array

2020-05-08 Thread Wu, Hao
I think Moritz had already applied it to his tree per last submission. https://lkml.org/lkml/2020/3/21/373 Thanks Hao > -Original Message- > From: matthew.gerl...@linux.intel.com > Sent: Saturday, May 9, 2020 2:21 AM > To: Gustavo A. R. Silva > Cc: Wu, Hao ; linux-f...@vger.kernel.org;

Re: [PATCH v2] net: Protect INET_ADDR_COOKIE on 32-bit architectures

2020-05-08 Thread Jakub Kicinski
On Fri, 8 May 2020 14:04:57 +0200 Stephen Kitt wrote: > Commit c7228317441f ("net: Use a more standard macro for > INET_ADDR_COOKIE") added a __deprecated marker to the cookie name on > 32-bit architectures, with the intent that the compiler would flag > uses of the name. However since commit 771c

Re: [PATCH v2] kernel: add panic_on_taint

2020-05-08 Thread Luis Chamberlain
On Fri, May 08, 2020 at 08:47:19AM -0400, Rafael Aquini wrote: > On Thu, May 07, 2020 at 10:25:58PM +, Luis Chamberlain wrote: > > On Thu, May 07, 2020 at 06:06:06PM -0400, Rafael Aquini wrote: > > > On Thu, May 07, 2020 at 08:33:40PM +, Luis Chamberlain wrote: > > > > I *think* that a cmdl

Re: [PATCH v4 03/12] pstore/blk: Introduce backend for block devices

2020-05-08 Thread WeiXiong Liao
hi Kees Cook, On 2020/5/8 PM 2:39, Kees Cook wrote: > From: WeiXiong Liao > > pstore/blk is similar to pstore/ram, but uses a block device as the > storage rather than persistent ram. > > The pstore/blk backend solves two common use-cases that used to preclude > using pstore/ram: > - not all de

Re: linux-next: new contact(s) for the ceph tree?

2020-05-08 Thread Stephen Rothwell
Hi Sage, On Sat, 9 May 2020 01:03:14 + (UTC) Sage Weil wrote: > > Jeff Layton Done. > On Sat, 9 May 2020, Stephen Rothwell wrote: > > > > I noticed commit > > > > 3a5ccecd9af7 ("MAINTAINERS: remove myself as ceph co-maintainer") > > > > appear recently. So who should I now list as the

Re: linux-next 20200506 - build failure with net/bpfilter/bpfilter_umh

2020-05-08 Thread Masahiro Yamada
On Fri, May 8, 2020 at 2:22 PM Valdis Klētnieks wrote: > > My kernel build came to a screeching halt with: > > CHECK net/bpfilter/bpfilter_kern.c > CC [M] net/bpfilter/bpfilter_kern.o > CC [U] net/bpfilter/main.o > LD [U] net/bpfilter/bpfilter_umh > /usr/bin/ld: cannot find -lc > coll

Re: [PATCH v2 1/4] Documentation: LKMM: Move MP+onceassign+derefonce to new litmus-tests/rcu/

2020-05-08 Thread Akira Yokosawa
Hi Joel, Sorry for the late response but I've noticed some glitches. On Sun, 22 Mar 2020 21:57:32 -0400, Joel Fernandes (Google) wrote: > Move MP+onceassign+derefonce to the new Documentation/litmus-tests/rcu/ > directory. MP+onceassign+derefonce.litmus is called out in tools/memory-model/Docum

Re: [RFC v1 0/6] block: add error handling for *add_disk*()

2020-05-08 Thread Luis Chamberlain
ries, but that's all so far. Note that break-blktrace run_0004.sh still yields: debugfs: Directory 'loop0' with parent 'block' already present! And so I suspect something else is up, this is even after. That's using my latest: https://git.kernel.org/pub/scm/linux/ker

Re: [RFC PATCH 00/13] Core scheduling v5

2020-05-08 Thread Ning, Hongyu
- Test environment: Intel Xeon Server platform CPU(s): 192 On-line CPU(s) list: 0-191 Thread(s) per core: 2 Core(s) per socket: 48 Socket(s): 2 NUMA node(s):4 - Kernel under test: Core scheduling v5 base https://github.com/digitalocean/linux-coresched/tree/cores

[PATCH v2] netprio_cgroup: Fix unlimited memory leak of v2 cgroups

2020-05-08 Thread Zefan Li
If systemd is configured to use hybrid mode which enables the use of both cgroup v1 and v2, systemd will create new cgroup on both the default root (v2) and netprio_cgroup hierarchy (v1) for a new session and attach task to the two cgroups. If the task does some network thing then the v2 cgroup can

Re: [PATCH] usb: roles: Switch on role-switch uevent reporting

2020-05-08 Thread Wen Yang
在 2020/5/9 上午12:29, Bryan O'Donoghue 写道: Right now we don't report to user-space a role switch when doing a usb_role_switch_set_role() despite having registered the uevent callbacks. This patch switches on the notifications allowing user-space to see role-switch change notifications and subse

[PATCH 2/2] ASoC: max98390: Added Amplifier Driver

2020-05-08 Thread Steve Lee
Signed-off-by: Steve Lee --- sound/soc/codecs/Kconfig|5 + sound/soc/codecs/Makefile |2 + sound/soc/codecs/max98390.c | 1039 +++ sound/soc/codecs/max98390.h | 661 ++ 4 files changed, 1707 insertions(+) create mode 100644 sound

[PATCH] netprio_cgroup: Fix unlimited memory leak of v2 cgroup

2020-05-08 Thread Zefan Li
If systemd is configured to use hybrid mode which enables the use of both cgroup v1 and v2, systemd will create new cgroup on both the default root (v2) and netprio_cgroup hierarchy (v1) for a new session and attach task to the two cgroups. If the task does some network thing then the v2 cgroup can

[PATCH 1/2] dt-bindings: Added device tree binding for max98390

2020-05-08 Thread Steve Lee
Signed-off-by: Steve Lee --- .../devicetree/bindings/sound/max98390.txt| 26 +++ 1 file changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/max98390.txt diff --git a/Documentation/devicetree/bindings/sound/max98390.txt b/Documentation/device

Re: [PATCH 0/6] nouveau/hmm: add support for mapping large pages

2020-05-08 Thread Matthew Wilcox
On Fri, May 08, 2020 at 01:17:55PM -0700, Ralph Campbell wrote: > On 5/8/20 12:59 PM, Matthew Wilcox wrote: > > On Fri, May 08, 2020 at 12:20:03PM -0700, Ralph Campbell wrote: > > > hmm_range_fault() returns an array of page frame numbers and flags for > > > how the pages are mapped in the requeste

Re: [PATCH] drm: vmwgfx: include linux/highmem.h

2020-05-08 Thread Stephen Rothwell
Hi Arnd, On Sat, 9 May 2020 00:01:31 +0200 Arnd Bergmann wrote: > > In order to call kmap_atomic() etc, we need to include linux/highmem.h: > > drivers/gpu/drm/vmwgfx/vmwgfx_blit.c: In function 'vmw_bo_cpu_blit_line': > drivers/gpu/drm/vmwgfx/vmwgfx_blit.c:377:4: error: implicit declaration of

[GIT PULL] io_uring fixes for 5.7-rc5

2020-05-08 Thread Jens Axboe
Hi Linus, A few fixes that should go into this series: - Fix finish_wait() balancing in file cancelation (Xiaoguang) - Ensure early cleanup of resources in ring map failure (Xiaoguang) - Ensure IORING_OP_SLICE does the right file mode checks (Pavel) - Remove file opening from openat/openat2/st

[PATCH v4 1/5] block: revert back to synchronous request_queue removal

2020-05-08 Thread Luis Chamberlain
Commit dc9edc44de6c ("block: Fix a blk_exit_rl() regression") merged on v4.12 moved the work behind blk_release_queue() into a workqueue after a splat floated around which indicated some work on blk_release_queue() could sleep in blk_exit_rl(). This splat would be possible when a driver called blk_

[PATCH v4 5/5] loop: be paranoid on exit and prevent new additions / removals

2020-05-08 Thread Luis Chamberlain
Be pedantic on removal as well and hold the mutex. This should prevent uses of addition while we exit. I cannot trigger an issue with this though, this is just a fix done through code inspection. Reviewed-by: Ming Lei Signed-off-by: Luis Chamberlain --- drivers/block/loop.c | 4 1 file ch

[PATCH v4 4/5] blktrace: break out of blktrace setup on concurrent calls

2020-05-08 Thread Luis Chamberlain
We use one blktrace per request_queue, that means one per the entire disk. So we cannot run one blktrace on say /dev/vda and then /dev/vda1, or just two calls on /dev/vda. We check for concurrent setup only at the very end of the blktrace setup though. If we try to run two concurrent blktraces o

[PATCH v4 2/5] block: move main block debugfs initialization to its own file

2020-05-08 Thread Luis Chamberlain
make_request-based drivers and and request-based drivers share some debugfs code. By moving this into its own file it makes it easier to expand and audit this shared code. This patch contains no functional changes. Cc: Bart Van Assche Cc: Omar Sandoval Cc: Hannes Reinecke Cc: Nicolai Stange C

[PATCH v4 3/5] blktrace: fix debugfs use after free

2020-05-08 Thread Luis Chamberlain
On commit 6ac93117ab00 ("blktrace: use existing disk debugfs directory") merged on v4.12 Omar fixed the original blktrace code for request-based drivers (multiqueue). This however left in place a possible crash, if you happen to abuse blktrace while racing to remove / add a device. We used to use

[PATCH v4 0/5] block: fix blktrace debugfs use after free

2020-05-08 Thread Luis Chamberlain
find this on my git tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/log/?h=20200508-block-fixes Luis Chamberlain (5): block: revert back to synchronous request_queue removal block: move main block debugfs initialization to its own file blktrace: fix debugfs

  1   2   3   4   5   6   7   8   9   10   >