Re: [V9fs-developer] [PATCH 02/13] 9p: Tell the VFS that readpage was synchronous

2020-09-17 Thread Dominique Martinet
Matthew Wilcox (Oracle) wrote on Thu, Sep 17, 2020: > diff --git a/fs/9p/vfs_addr.c b/fs/9p/vfs_addr.c > index cce9ace651a2..506ca0ba2ec7 100644 > --- a/fs/9p/vfs_addr.c > +++ b/fs/9p/vfs_addr.c > @@ -280,6 +280,10 @@ static int v9fs_write_begin(struct file *filp, struct > address_space *mapping,

Re: [v4] mm: khugepaged: avoid overriding min_free_kbytes set by user

2020-09-17 Thread Michal Hocko
On Thu 17-09-20 11:16:55, Vijay Balakrishna wrote: > > > On 9/17/2020 10:52 AM, Michal Hocko wrote: > > On Thu 17-09-20 10:27:16, Vijay Balakrishna wrote: > > > > > > > > > On 9/17/2020 2:28 AM, Michal Hocko wrote: > > > > On Wed 16-09-20 23:39:39, Vijay Balakrishna wrote: > > > > >

Re: [PATCH 1/4] ARM/omap1: switch to use dma_direct_set_offset for lbus DMA offsets

2020-09-17 Thread Tony Lindgren
* Christoph Hellwig [200917 17:37]: > Switch the omap1510 platform ohci device to use dma_direct_set_offset > to set the DMA offset instead of using direct hooks into the DMA > mapping code and remove the now unused hooks. Looks nice to me :) I still can't test this probably for few more weeks

Re: [PATCH 6/9] f2fs: zstd: Switch to the zstd-1.4.6 API

2020-09-17 Thread Nick Terrell
> On Sep 17, 2020, at 6:47 PM, Chao Yu wrote: > > On 2020/9/18 3:34, Nick Terrell wrote: >>> On Sep 17, 2020, at 11:00 AM, Nick Terrell wrote: >>> >>> >>> On Sep 16, 2020, at 11:31 PM, Chao Yu wrote: Hi Nick, On 2020/9/17 2:39, Nick Terrell wrote: >> On Sep

Re: [PATCH v4 0/7] HWpoison: further fixes and cleanups

2020-09-17 Thread osalvador
On 2020-09-17 17:27, HORIGUCHI NAOYA wrote: Sorry, I modified the patches based on the different assumption from yours. I firstly thought of taking page off after confirming the error page is freed back to buddy. This approach leaves the possibility of reusing the error page (which is

Re: [PATCH v2] dt-bindings: mfd: rohm,bd71837-pmic: Add common properties

2020-09-17 Thread Vaittinen, Matti
Hi d Ho peeps! On Thu, 2020-09-17 at 21:37 +0200, Krzysztof Kozlowski wrote: > Add common properties appearing in DTSes (clock-names, > clock-output-names) with the common values (actually used in DTSes) > to > fix dtbs_check warnings like: > >

[PATCH v2] dm: Call proper helper to determine dax support

2020-09-17 Thread Dan Williams
From: Jan Kara DM was calling generic_fsdax_supported() to determine whether a device referenced in the DM table supports DAX. However this is a helper for "leaf" device drivers so that they don't have to duplicate common generic checks. High level code should call dax_supported() helper which

[PATCH] Documentation/admin-guide: kernel-parameters: fix "disable_ddw" wording

2020-09-17 Thread Randy Dunlap
Drop and extraneous word (if) in a sentence. Signed-off-by: Randy Dunlap Cc: Jonathan Corbet Cc: linux-...@vger.kernel.org --- Documentation/admin-guide/kernel-parameters.txt |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20200917.orig/Documentation/admin-guide/kernel

[PATCH] Documentation/admin-guide: kernel-parameters: fix "io7" parameter description

2020-09-17 Thread Randy Dunlap
Fix punctuation and capitalization for the "io7" boot parameter. Signed-off-by: Randy Dunlap Cc: Jonathan Corbet Cc: linux-...@vger.kernel.org --- Documentation/admin-guide/kernel-parameters.txt |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-202

[PATCH] Documentation/admin-guide: kernel-parameters: capitalize Korina

2020-09-17 Thread Randy Dunlap
Fix typo, capitalize Korina proper noun. Signed-off-by: Randy Dunlap Cc: Jonathan Corbet Cc: linux-...@vger.kernel.org --- Documentation/admin-guide/kernel-parameters.txt |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20200917.orig/Documentation/admin-guide/kernel

[PATCH] Documentation: admin-guide: kernel-parameters: reformat "lapic=" boot option

2020-09-17 Thread Randy Dunlap
-...@vger.kernel.org --- Documentation/admin-guide/kernel-parameters.txt |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- linux-next-20200917.orig/Documentation/admin-guide/kernel-parameters.txt +++ linux-next-20200917/Documentation/admin-guide/kernel-parameters.txt @@ -2384,9 +2384

Re: [PATCH v1 4/6] wdt: Support wdt on ROHM BD9576MUF and BD9573MUF

2020-09-17 Thread Guenter Roeck
On 9/17/20 1:03 AM, Matti Vaittinen wrote: > Add Watchdog support for ROHM BD9576MUF and BD9573MUF PMICs which are > mainly used to power the R-Car series processors. The watchdog is > pinged using a GPIO and enabled using another GPIO. Additionally > watchdog time-out can be configured to HW

Re: [[PATCH]] mm: khugepaged: recalculate min_free_kbytes after memory hotplug as expected by khugepaged

2020-09-17 Thread Michal Hocko
On Thu 17-09-20 11:03:56, Vijay Balakrishna wrote: [...] > > > The auto tuned value is incorrect post hotplug memory operation, in our > > > use > > > case memoy hot add occurs very early during boot. > > Define incorrect. What are the actual values? Have you tried to increase > > the value

Re: linux-next: manual merge of the staging tree with the crypto tree

2020-09-17 Thread Herbert Xu
On Fri, Sep 18, 2020 at 03:21:27PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the staging tree got a conflict in: > > drivers/staging/rtl8192e/Kconfig > > between commit: > > 054694a46d64 ("staging/rtl8192e: switch to RC4 library interface") > > from the

Re: [PATCH] objtool: ignore unreachable trap after call to noreturn functions

2020-09-17 Thread Ilie Halip
> The patch looks good to me. Which versions of Clang do the trap after > noreturn call? It would be good to have that in the commit message. I omitted this because it happens with all versions of clang that are supported for building the kernel. clang-9 is the oldest version that could build

Re: [PATCH 3/3] hwmon: (lm75) Add regulator support

2020-09-17 Thread Guenter Roeck
On 9/17/20 3:18 AM, Alban Bedel wrote: > Add regulator support for boards where the sensor first need to be > powered up before it can be used. > > Signed-off-by: Alban Bedel > --- > drivers/hwmon/lm75.c | 31 +-- > 1 file changed, 29 insertions(+), 2 deletions(-) >

Re: [PATCH v12 3/9] x86: kdump: use macro CRASH_ADDR_LOW_MAX in functions reserve_crashkernel[_low]()

2020-09-17 Thread Dave Young
On 09/18/20 at 11:57am, chenzhou wrote: > Hi Dave, > > > On 2020/9/18 11:01, Dave Young wrote: > > On 09/07/20 at 09:47pm, Chen Zhou wrote: > >> To make the functions reserve_crashkernel[_low]() as generic, > >> replace some hard-coded numbers with macro CRASH_ADDR_LOW_MAX. > >> > >>

Re: [PATCH 2/2] dt-bindings: phy: cdns,torrent-phy: add reset-names

2020-09-17 Thread Vinod Koul
On 16-09-20, 15:47, Tomi Valkeinen wrote: > Add reset-names as a required property. > > There are no dts files using torrent phy yet, so it is safe to add a new > required property. > > Signed-off-by: Tomi Valkeinen > --- > .../devicetree/bindings/phy/phy-cadence-torrent.yaml | 5 +

linux-next: manual merge of the staging tree with the crypto tree

2020-09-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the staging tree got a conflict in: drivers/staging/rtl8192e/Kconfig between commit: 054694a46d64 ("staging/rtl8192e: switch to RC4 library interface") from the crypto tree and commits: 243d040a6e4a ("staging: rtl8192e: fix kconfig dependency warning

Re: [PATCH v3 00/13] PHY: Add support for multilink configurations in Cadence Torrent PHY driver

2020-09-17 Thread Vinod Koul
On 17-09-20, 09:30, Swapnil Jakhade wrote: > Cadence Torrent PHY is a multiprotocol PHY supporting different multilink > PHY configurations including DisplayPort, PCIe, USB, SGMII, QSGMII etc. > This patch series extends functionality of Torrent PHY driver to support > following configurations: >

Re: [PATCH 3/4] ARM/dma-mapping: don't handle NULL devices in dma-direct.h

2020-09-17 Thread Christoph Hellwig
On Thu, Sep 17, 2020 at 07:50:10PM +0100, Russell King - ARM Linux admin wrote: > On Thu, Sep 17, 2020 at 07:32:28PM +0200, Christoph Hellwig wrote: > > The DMA API removed support for not passing in a device a long time > > ago, so remove the NULL checks. > > What happens with ISA devices? For

[PATCH] Documentation: admin-guide: reformat "lapic=" boot option

2020-09-17 Thread Randy Dunlap
-...@vger.kernel.org --- Documentation/admin-guide/kernel-parameters.txt |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- linux-next-20200917.orig/Documentation/admin-guide/kernel-parameters.txt +++ linux-next-20200917/Documentation/admin-guide/kernel-parameters.txt @@ -2384,9 +2384

[PATCHv3 0/1] Optimize ext4 file overwrites - perf improvement

2020-09-17 Thread Ritesh Harjani
Hello, v2 -> v3 1. Switched to suggested approach from Jan to make the approach general for all file writes rather than only for DAX. (So as of now both DAX & DIO should benefit from this as both uses the same iomap path. Although note that I only tested performance improvement for DAX) Gave a

[PATCHv3 1/1] ext4: Optimize file overwrites

2020-09-17 Thread Ritesh Harjani
In case if the file already has underlying blocks/extents allocated then we don't need to start a journal txn and can directly return the underlying mapping. Currently ext4_iomap_begin() is used by both DAX & DIO path. We can check if the write request is an overwrite & then directly return the

Re: [PATCH v3 0/7] PHY: Prepare Cadence Torrent PHY driver to support multilink configurations

2020-09-17 Thread Vinod Koul
On 16-09-20, 20:28, Swapnil Jakhade wrote: > Cadence Torrent PHY is a multiprotocol PHY supporting different multilink > PHY configurations including DisplayPort, PCIe, USB, SGMII, QSGMII etc. > Existing Torrent PHY driver supports only DisplayPort. This patch series > prepares Torrent PHY driver

Re: [PATCH] gpio: aspeed: fix ast2600 bank properties

2020-09-17 Thread Tao Ren
On Thu, Sep 17, 2020 at 08:42:27AM +0930, Andrew Jeffery wrote: > > > On Thu, 17 Sep 2020, at 06:12, rentao.b...@gmail.com wrote: > > From: Tao Ren > > > > GPIO_U is mapped to the least significant byte of input/output mask, and > > the byte in "output" mask should be 0 because GPIO_U is input

Re: [PATCH 5/6] scsi: ufs: show ufs part info in error case

2020-09-17 Thread Jaegeuk Kim
On 09/17, Can Guo wrote: > On 2020-09-17 00:05, Jaegeuk Kim wrote: > > On 09/16, Bean Huo wrote: > > > On Tue, 2020-09-15 at 13:45 -0700, Jaegeuk Kim wrote: > > > > Cc: Avri Altman > > > > Signed-off-by: Jaegeuk Kim > > > > --- > > > > drivers/scsi/ufs/ufshcd.c | 8 > > > > 1 file

Re: [PATCH 4/6] scsi: ufs: fix LINERESET on hibern8

2020-09-17 Thread Jaegeuk Kim
Please ignore this patch. Thanks. On 09/15, Jaegeuk Kim wrote: > From: Jaegeuk Kim > > When testing infinite test to read sysfs entries of UFS, I got a UFS timeout > with the following kernel message. > > query: dev_cmd_send: seq_no=78082 tag=31, idn=2 > query: ufshcd_wait_for_dev_cmd: dev_cmd

[PATCH net] hinic: fix sending pkts from core while self testing

2020-09-17 Thread Luo bin
Call netif_tx_disable firstly before starting doing self-test to avoid sending packet from networking core and self-test packet simultaneously which may cause self-test failure or hw abnormal. Fixes: 4aa218a4fe77 ("hinic: add self test support") Signed-off-by: Luo bin ---

Re: [RFC PATCH 00/22] Enhance VHOST to enable SoC-to-SoC communication

2020-09-17 Thread Jason Wang
On 2020/9/16 下午7:47, Kishon Vijay Abraham I wrote: Hi Jason, On 16/09/20 8:40 am, Jason Wang wrote: On 2020/9/15 下午11:47, Kishon Vijay Abraham I wrote: Hi Jason, On 15/09/20 1:48 pm, Jason Wang wrote: Hi Kishon: On 2020/9/14 下午3:23, Kishon Vijay Abraham I wrote: Then you need something

Re: [PATCH] iomap: Fix the write_count in iomap_add_to_ioend().

2020-09-17 Thread Darrick J. Wong
On Thu, Sep 17, 2020 at 03:48:04PM +0100, Christoph Hellwig wrote: > On Thu, Sep 17, 2020 at 06:42:19AM -0400, Brian Foster wrote: > > That wouldn't address the latency concern Dave brought up. That said, I > > have no issue with this as a targeted solution for the softlockup issue. > >

RE: [PATCH v3] drm/bridge: add it6505 driver

2020-09-17 Thread allen.chen
It has been about two weeks since I posted v3 and haven't heard anything. Consider this a gentle ping. If there is something need to fix. I will fix and upstream again. Thanks. -Original Message- From: Allen Chen (陳柏宇) Sent: Friday, September 04, 2020 10:10 AM Cc: Allen Chen (陳柏宇);

Re: [PATCH v12 3/9] x86: kdump: use macro CRASH_ADDR_LOW_MAX in functions reserve_crashkernel[_low]()

2020-09-17 Thread chenzhou
Hi Dave, On 2020/9/18 11:01, Dave Young wrote: > On 09/07/20 at 09:47pm, Chen Zhou wrote: >> To make the functions reserve_crashkernel[_low]() as generic, >> replace some hard-coded numbers with macro CRASH_ADDR_LOW_MAX. >> >> Signed-off-by: Chen Zhou >> --- >> arch/x86/kernel/setup.c | 11

Re: linux-next: Tree for Sep 17 (netdevice.h: net_has_fallback_tunnels when SYSCTL is not set)

2020-09-17 Thread महेश बंडेवार
On Thu, Sep 17, 2020 at 1:33 PM Randy Dunlap wrote: > > On 9/17/20 3:23 AM, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20200916: > > > > I am seeing build errors when CONFIG_SYSCTL is not set: > > ld: net/ipv4/ip_tunnel.o: in function `ip_tunnel_init_net': >

[PATCH -next] drm/amd/display: remove unused variable in amdgpu_dm.c

2020-09-17 Thread Yang Yingliang
Fix the compile warning: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:892:26: warning: variable ‘stream’ set but not used [-Wunused-but-set-variable] struct dc_stream_state *stream; ^~ Reported-by: Hulk Robot Signed-off-by: Yang Yingliang ---

Re: [PATCH 1/7] usb: mtu3: convert to devm_platform_ioremap_resource_byname

2020-09-17 Thread Chunfeng Yun
Hi Felip, On Mon, 2020-09-07 at 10:42 +0300, Felipe Balbi wrote: > Hi, > > Chunfeng Yun writes: > > Use devm_platform_ioremap_resource_byname() to simplify code > > > > Signed-off-by: Chunfeng Yun > > why is it so that your patches always come base64 encoded? They look > fine on the email

Re: [PATCH 1/2] locktorture: doesn't check nreaders_stress when no readlock support

2020-09-17 Thread Paul E. McKenney
On Fri, Sep 18, 2020 at 09:13:14AM +0800, Hou Tao wrote: > Hi Paul, > > On 2020/9/18 0:58, Paul E. McKenney wrote: > > On Thu, Sep 17, 2020 at 09:59:09PM +0800, Hou Tao wrote: > >> To ensure there is always at least one locking thread. > >> > >> Signed-off-by: Hou Tao > >> --- > >>

Re: [PATCH] selftests/harness: Flush stdout before forking

2020-09-17 Thread Michael Ellerman
Shuah Khan writes: > On 9/16/20 10:53 PM, Max Filippov wrote: >> On Wed, Sep 16, 2020 at 9:16 PM Michael Ellerman wrote: >>> >>> The test harness forks() a child to run each test. Both the parent and >>> the child print to stdout using libc functions. That can lead to >>> duplicated (or more)

[PATCH v3] EDAC/mc_sysfs: Add missing newlines when printing {max,dimm}_location

2020-09-17 Thread Xiongfeng Wang
Reading those sysfs entries gives: [root@localhost /]# cat /sys/devices/system/edac/mc/mc0/max_location memory 3 [root@localhost /]# cat /sys/devices/system/edac/mc/mc0/dimm0/dimm_location memory 0 [root@localhost /]# Add newlines after the value it prints for better readability.

[PATCH v2] arm64: Enable PCI write-combine resources under sysfs

2020-09-17 Thread Clint Sbisa
This change exposes write-combine mappings under sysfs for prefetchable PCI resources on arm64. Originally, the usage of "write combine" here was driven by the x86 definition of write combine. This definition is specific to x86 and does not generalize to other architectures. However, the usage of

Re: [PATCH] nvme: fix NULL pointer dereference

2020-09-17 Thread Tong Zhang
Please correct me if I am wrong. After a bit more digging I found out that it is indeed command_id got corrupted is causing this problem. Although the tag and command_id range is checked like you said, the elements in rqs cannot be guaranteed to be not NULL. thus although the range check is

Re: [PATCH RFC 0/3] scsi: mpt: Refactor and port to dma_* interface

2020-09-17 Thread Martin K. Petersen
Alex, >> Have you tested your changes? > > No, as I'm afraid I don't have the hardware. QEMU supports it, I propose you try testing with that. I hesitate merging big changes to abandoned drivers unless they've been tested. It's too easy to miss things during review... -- Martin K. Petersen

[PATCH] Only allow to set crash_kexec_post_notifiers on boot time

2020-09-17 Thread Dave Young
crash_kexec_post_notifiers enables running various panic notifier before kdump kernel booting. This increases risks of kdump failure. It is well documented in kernel-parameters.txt. We do not suggest people to enable it together with kdump unless he/she is really sure. This is also not suggested

Re: [PATCH v2] mm/migrate: correct thp migration stats.

2020-09-17 Thread Anshuman Khandual
Hi Zi, On 09/18/2020 02:34 AM, Zi Yan wrote: > From: Zi Yan > > PageTransHuge returns true for both thp and hugetlb, so thp stats was > counting both thp and hugetlb migrations. Exclude hugetlb migration by > setting is_thp variable right. Coincidentally, I had just detected this problem last

Re: [PATCH -next] RDMA/mlx5: fix type warning of sizeof in __mlx5_ib_alloc_counters()

2020-09-17 Thread Liu Shixin
On 2020/9/18 1:33, Leon Romanovsky wrote: > On Thu, Sep 17, 2020 at 02:24:51PM -0300, Jason Gunthorpe wrote: >> On Thu, Sep 17, 2020 at 08:05:11PM +0300, Leon Romanovsky wrote: >>> On Thu, Sep 17, 2020 at 09:38:06AM -0300, Jason Gunthorpe wrote: On Thu, Sep 17, 2020 at 12:08:10PM +0300, Leon

linux-next: build warning after merge of the sound-asoc tree

2020-09-17 Thread Stephen Rothwell
Hi all, After merging the sound-asoc tree, today's linux-next build (x86_64 allmodconfig) produced this warning: WARNING: modpost: missing MODULE_LICENSE() in sound/soc/sof/imx/imx-common.o Introduced by commit 18ebffe4d043 ("ASoC: SOF: imx: Add debug support for imx platforms") -- Cheers,

Re: [PATCH v3 1/2] dt-bindings: PCI: sprd: Document Unisoc PCIe RC host controller

2020-09-17 Thread Hongtao Wu
On Wed, Sep 16, 2020 at 1:25 AM Rob Herring wrote: > > On Wed, Sep 09, 2020 at 05:48:31PM +0800, Hongtao Wu wrote: > > From: Hongtao Wu > > > > This series adds PCIe bindings for Unisoc SoCs. > > This controller is based on DesignWare PCIe IP. > > > > Signed-off-by: Hongtao Wu > > --- > >

[PATCH -next] drm/amd/display: remove unused variable in dcn30_hwseq.c

2020-09-17 Thread Yang Yingliang
Fix the compile warning: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_hwseq.c:322:27: warning: variable ‘optc’ set but not used [-Wunused-but-set-variable] struct timing_generator *optc; ^~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_hwseq.c:641:7:

[PATCH AUTOSEL 5.4 014/330] mm: fix double page fault on arm64 if PTE_AF is cleared

2020-09-17 Thread Sasha Levin
From: Jia He [ Upstream commit 83d116c53058d505ddef051e90ab27f57015b025 ] When we tested pmdk unit test [1] vmmalloc_fork TEST3 on arm64 guest, there will be a double page fault in __copy_from_user_inatomic of cow_user_page. To reproduce the bug, the cmd is as follows after you deployed

[PATCH AUTOSEL 5.4 003/330] scsi: lpfc: Fix pt2pt discovery on SLI3 HBAs

2020-09-17 Thread Sasha Levin
From: James Smart [ Upstream commit 359e10f087dbb7b9c9f3035a8cc4391af45bd651 ] After exchanging PLOGI on an SLI-3 adapter, the PRLI exchange failed. Link trace showed the port was assigned a non-zero n_port_id, but didn't use the address on the PRLI. The assigned address is set on the port by

[PATCH AUTOSEL 5.4 005/330] selinux: allow labeling before policy is loaded

2020-09-17 Thread Sasha Levin
From: Jonathan Lebon [ Upstream commit 3e3e24b42043eceb97ed834102c2d094dfd7aaa6 ] Currently, the SELinux LSM prevents one from setting the `security.selinux` xattr on an inode without a policy first being loaded. However, this restriction is problematic: it makes it impossible to have newly

[PATCH AUTOSEL 5.4 006/330] media: mc-device.c: fix memleak in media_device_register_entity

2020-09-17 Thread Sasha Levin
From: zhengbin [ Upstream commit 713f871b30a66dc4daff4d17b760c9916aaaf2e1 ] In media_device_register_entity, if media_graph_walk_init fails, need to free the previously memory. Reported-by: Hulk Robot Signed-off-by: zhengbin Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab

[PATCH AUTOSEL 5.4 012/330] ath10k: fix memory leak for tpc_stats_final

2020-09-17 Thread Sasha Levin
From: Miaoqing Pan [ Upstream commit 486a8849843455298d49e694cca9968336ce2327 ] The memory of ar->debug.tpc_stats_final is reallocated every debugfs reading, it should be freed in ath10k_debug_destroy() for the last allocation. Tested HW: QCA9984 Tested FW: 10.4-3.9.0.2-00035 Signed-off-by:

[PATCH AUTOSEL 5.4 013/330] PCI/IOV: Serialize sysfs sriov_numvfs reads vs writes

2020-09-17 Thread Sasha Levin
From: Pierre Crégut [ Upstream commit 35ff867b76576e32f34c698ccd11343f7d616204 ] When sriov_numvfs is being updated, we call the driver->sriov_configure() function, which may enable VFs and call probe functions, which may make new devices visible. This all happens before before

[PATCH AUTOSEL 5.4 024/330] ata: sata_mv, avoid trigerrable BUG_ON

2020-09-17 Thread Sasha Levin
From: Jiri Slaby [ Upstream commit e9f691d899188679746eeb96e6cb520459eda9b4 ] There are several reports that the BUG_ON on unsupported command in mv_qc_prep can be triggered under some circumstances: https://bugzilla.suse.com/show_bug.cgi?id=1110252

[PATCH AUTOSEL 5.4 021/330] media: smiapp: Fix error handling at NVM reading

2020-09-17 Thread Sasha Levin
From: Sakari Ailus [ Upstream commit a5b1d5413534607b05fb34470ff62bf395f5c8d0 ] If NVM reading failed, the device was left powered on. Fix that. Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/i2c/smiapp/smiapp-core.c | 3 ++- 1

[PATCH AUTOSEL 5.4 016/330] m68k: q40: Fix info-leak in rtc_ioctl

2020-09-17 Thread Sasha Levin
From: Fuqian Huang [ Upstream commit 7cf78b6b12fd5550545e4b73b35dca18bd46b44c ] When the option is RTC_PLL_GET, pll will be copied to userland via copy_to_user. pll is initialized using mach_get_rtc_pll indirect call and mach_get_rtc_pll is only assigned with function q40_get_rtc_pll in

[PATCH AUTOSEL 5.4 023/330] xfs: properly serialise fallocate against AIO+DIO

2020-09-17 Thread Sasha Levin
From: Dave Chinner [ Upstream commit 249bd9087a5264d2b8a974081870e2e27671b4dc ] AIO+DIO can extend the file size on IO completion, and it holds no inode locks while the IO is in flight. Therefore, a race condition exists in file size updates if we do something like this: aio-thread

[PATCH AUTOSEL 5.4 015/330] scsi: aacraid: fix illegal IO beyond last LBA

2020-09-17 Thread Sasha Levin
From: Balsundar P [ Upstream commit c86fbe484c10b2cd1e770770db2d6b2c88801c1d ] The driver fails to handle data when read or written beyond device reported LBA, which triggers kernel panic Link: https://lore.kernel.org/r/1571120524-6037-2-git-send-email-balsunda...@microsemi.com Signed-off-by:

[PATCH AUTOSEL 5.4 027/330] PM / devfreq: tegra30: Fix integer overflow on CPU's freq max out

2020-09-17 Thread Sasha Levin
From: Dmitry Osipenko [ Upstream commit 53b4b2aeee26f42cde5ff2a16dd0d8590c51a55a ] There is another kHz-conversion bug in the code, resulting in integer overflow. Although, this time the resulting value is 4294966296 and it's close to ULONG_MAX, which is okay in this case. Reviewed-by: Chanwoo

[PATCH AUTOSEL 5.4 025/330] leds: mlxreg: Fix possible buffer overflow

2020-09-17 Thread Sasha Levin
From: Oleh Kravchenko [ Upstream commit 7c6082b903ac28dc3f383fba57c6f9e7e2594178 ] Error was detected by PVS-Studio: V512 A call of the 'sprintf' function will lead to overflow of the buffer 'led_data->led_cdev_name'. Acked-by: Jacek Anaszewski Acked-by: Pavel Machek Signed-off-by: Oleh

Re: [PATCH] kprobes: Do not disarm disabled ftrace kprobe

2020-09-17 Thread Masami Hiramatsu
Hi Steve, Ah, this seems to fix same issue which I sent. https://lkml.kernel.org/r/159888672694.1411785.5987998076694782591.stgit@devnote2 Could you confirm it? Thank you, On Thu, 17 Sep 2020 19:17:54 -0400 Steven Rostedt wrote: > From: Steven Rostedt (VMware) > > Only disable a ftrace

[PATCH AUTOSEL 5.4 034/330] f2fs: avoid kernel panic on corruption test

2020-09-17 Thread Sasha Levin
From: Jaegeuk Kim [ Upstream commit bc005a4d5347da68e690f78d365d8927c87dc85a ] xfstests/generic/475 complains kernel warn/panic while testing corrupted disk. Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/node.c | 1 - 1 file changed, 1 deletion(-)

[PATCH AUTOSEL 5.4 026/330] dm table: do not allow request-based DM to stack on partitions

2020-09-17 Thread Sasha Levin
From: Mike Snitzer [ Upstream commit 6ba01df72b4b63a26b4977790f58d8f775d2992c ] Partitioned request-based devices cannot be used as underlying devices for request-based DM because no partition offsets are added to each incoming request. As such, until now, stacking on partitioned devices would

[PATCH AUTOSEL 5.4 029/330] scsi: lpfc: Fix kernel crash at lpfc_nvme_info_show during remote port bounce

2020-09-17 Thread Sasha Levin
From: James Smart [ Upstream commit 6c1e803eac846f886cd35131e6516fc51a8414b9 ] When reading sysfs nvme_info file while a remote port leaves and comes back, a NULL pointer is encountered. The issue is due to ndlp list corruption as the the nvme_info_show does not use the same lock as the rest of

[PATCH AUTOSEL 5.4 019/330] ASoC: kirkwood: fix IRQ error handling

2020-09-17 Thread Sasha Levin
From: Russell King [ Upstream commit 175fc928198236037174e5c5c066fe3c4691903e ] Propagate the error code from request_irq(), rather than returning -EBUSY. Signed-off-by: Russell King Link: https://lore.kernel.org/r/e1iniqh-tw...@rmk-pc.armlinux.org.uk Signed-off-by: Mark Brown

[PATCH AUTOSEL 5.4 030/330] powerpc/64s: Always disable branch profiling for prom_init.o

2020-09-17 Thread Sasha Levin
From: Michael Ellerman [ Upstream commit 6266a4dadb1d0976490fdf5af4f7941e36f64e80 ] Otherwise the build fails because prom_init is calling symbols it's not allowed to, eg: Error: External symbol 'ftrace_likely_update' referenced from prom_init.c make[3]: ***

[PATCH AUTOSEL 5.4 031/330] net: silence data-races on sk_backlog.tail

2020-09-17 Thread Sasha Levin
From: Eric Dumazet [ Upstream commit 9ed498c6280a2f2b51d02df96df53037272ede49 ] sk->sk_backlog.tail might be read without holding the socket spinlock, we need to add proper READ_ONCE()/WRITE_ONCE() to silence the warnings. KCSAN reported : BUG: KCSAN: data-race in tcp_add_backlog /

[PATCH AUTOSEL 5.4 028/330] scsi: fnic: fix use after free

2020-09-17 Thread Sasha Levin
From: Pan Bian [ Upstream commit ec990306f77fd4c58c3b27cc3b3c53032d6e6670 ] The memory chunk io_req is released by mempool_free. Accessing io_req->start_time will result in a use after free bug. The variable start_time is a backup of the timestamp. So, use start_time here to avoid use after

[PATCH AUTOSEL 5.4 033/330] iomap: Fix overflow in iomap_page_mkwrite

2020-09-17 Thread Sasha Levin
From: Andreas Gruenbacher [ Upstream commit add66fcbd3fbe5aa0dd4dddfa23e119c12989a27 ] On architectures where loff_t is wider than pgoff_t, the expression ((page->index + 1) << PAGE_SHIFT) can overflow. Rewrite to use the page offset, which we already compute here anyway. Signed-off-by:

[PATCH AUTOSEL 5.4 022/330] drm/amd/display: Free gamma after calculating legacy transfer function

2020-09-17 Thread Sasha Levin
From: Nicholas Kazlauskas [ Upstream commit 0e3a7c2ec93b15f43a2653e52e9608484391aeaf ] [Why] We're leaking memory by not freeing the gamma used to calculate the transfer function for legacy gamma. [How] Release the gamma after we're done with it. Signed-off-by: Nicholas Kazlauskas

[PATCH AUTOSEL 5.4 017/330] xfs: fix inode fork extent count overflow

2020-09-17 Thread Sasha Levin
From: Dave Chinner [ Upstream commit 3f8a4f1d876d3e3e49e50b0396eaffcc4ba71b08 ] [commit message is verbose for discussion purposes - will trim it down later. Some questions about implementation details at the end.] Zorro Lang recently ran a new test to stress single inode extent counts now

[PATCH AUTOSEL 5.4 035/330] clk/ti/adpll: allocate room for terminating null

2020-09-17 Thread Sasha Levin
From: Stephen Kitt [ Upstream commit 7f6ac72946b88b89ee44c1c527aa8591ac5ffcbe ] The buffer allocated in ti_adpll_clk_get_name doesn't account for the terminating null. This patch switches to devm_kasprintf to avoid overflowing. Signed-off-by: Stephen Kitt Link:

[PATCH AUTOSEL 5.4 036/330] drm/amdgpu/powerplay: fix AVFS handling with custom powerplay table

2020-09-17 Thread Sasha Levin
From: Alex Deucher [ Upstream commit 53dbc27ad5a93932ff1892a8e4ef266827d74a0f ] When a custom powerplay table is provided, we need to update the OD VDDC flag to avoid AVFS being enabled when it shouldn't be. Bug: https://bugzilla.kernel.org/show_bug.cgi?id=205393 Reviewed-by: Evan Quan

[PATCH AUTOSEL 5.4 037/330] ice: Fix to change Rx/Tx ring descriptor size via ethtool with DCBx

2020-09-17 Thread Sasha Levin
From: Usha Ketineni [ Upstream commit c0a3665f71a2f086800abea4d9d14d28269089d6 ] This patch fixes the call trace caused by the kernel when the Rx/Tx descriptor size change request is initiated via ethtool when DCB is configured. ice_set_ringparam() should use vsi->num_txq instead of

[PATCH v3 3/6] Bluetooth: Interleave with allowlist scan

2020-09-17 Thread Howard Chung
This patch implements the interleaving between allowlist scan and no-filter scan. It'll be used to save power when at least one monitor is registered and at least one pending connection or one device to be scanned for. The durations of the allowlist scan and the no-filter scan are controlled by

[PATCH AUTOSEL 5.4 039/330] mfd: mfd-core: Protect against NULL call-back function pointer

2020-09-17 Thread Sasha Levin
From: Lee Jones [ Upstream commit b195e101580db390f50b0d587b7f66f241d2bc88 ] If a child device calls mfd_cell_{en,dis}able() without an appropriate call-back being set, we are likely to encounter a panic. Avoid this by adding suitable checking. Signed-off-by: Lee Jones Reviewed-by: Daniel

[PATCH AUTOSEL 5.4 046/330] dmaengine: mediatek: hsdma_probe: fixed a memory leak when devm_request_irq fails

2020-09-17 Thread Sasha Levin
From: Satendra Singh Thakur [ Upstream commit 1ff95243257fad07290dcbc5f7a6ad79d6e703e2 ] When devm_request_irq fails, currently, the function dma_async_device_unregister gets called. This doesn't free the resources allocated by of_dma_controller_register. Therefore, we have called

[PATCH v3 4/6] Bluetooth: Handle system suspend resume case

2020-09-17 Thread Howard Chung
This patch adds code to handle the system suspension during interleave scan. The interleave scan will be canceled when the system is going to sleep, and will be restarted after waking up. Signed-off-by: Howard Chung Reviewed-by: Alain Michaud Reviewed-by: Manish Mandlik Reviewed-by: Abhishek

[PATCH AUTOSEL 5.4 040/330] drm/amdgpu/powerplay/smu7: fix AVFS handling with custom powerplay table

2020-09-17 Thread Sasha Levin
From: Alex Deucher [ Upstream commit 901245624c7812b6c95d67177bae850e783b5212 ] When a custom powerplay table is provided, we need to update the OD VDDC flag to avoid AVFS being enabled when it shouldn't be. Bug: https://bugzilla.kernel.org/show_bug.cgi?id=205393 Reviewed-by: Evan Quan

[PATCH v3 1/6] Bluetooth: Update Adv monitor count upon removal

2020-09-17 Thread Howard Chung
From: Miao-chen Chou This fixes the count of Adv monitor upon monitor removal. The following test was performed. - Start two btmgmt consoles, issue a btmgmt advmon-remove command on one console and observe a MGMT_EV_ADV_MONITOR_REMOVED event on the other. Signed-off-by: Miao-chen Chou

[PATCH v3 6/6] Bluetooth: Add toggle to switch off interleave scan

2020-09-17 Thread Howard Chung
This patch add a configurable parameter to switch off the interleave scan feature. Signed-off-by: Howard Chung Reviewed-by: Alain Michaud --- (no changes since v1) include/net/bluetooth/hci_core.h | 1 + net/bluetooth/hci_core.c | 1 + net/bluetooth/hci_request.c | 3 ++-

[PATCH AUTOSEL 5.4 048/330] RDMA/qedr: Fix potential use after free

2020-09-17 Thread Sasha Levin
From: Pan Bian [ Upstream commit 960657b732e1ce21b07be5ab48a7ad3913d72ba4 ] Move the release operation after error log to avoid possible use after free. Link: https://lore.kernel.org/r/1573021434-18768-1-git-send-email-bianpan2...@163.com Signed-off-by: Pan Bian Acked-by: Michal Kalderon 

[PATCH v3 2/6] Bluetooth: Set scan parameters for ADV Monitor

2020-09-17 Thread Howard Chung
Set scan parameters when there is at least one Advertisement monitor. Signed-off-by: Howard Chung Reviewed-by: Alain Michaud Reviewed-by: Manish Mandlik Reviewed-by: Abhishek Pandit-Subedi Reviewed-by: Miao-chen Chou --- (no changes since v1) net/bluetooth/hci_request.c | 3 +++ 1 file

[PATCH v3 5/6] Bluetooth: Handle active scan case

2020-09-17 Thread Howard Chung
This patch adds code to handle the active scan during interleave scan. The interleave scan will be canceled when users start active scan, and it will be restarted after active scan stopped. Signed-off-by: Howard Chung Reviewed-by: Alain Michaud Reviewed-by: Manish Mandlik --- (no changes

[PATCH AUTOSEL 5.4 052/330] xfs: fix attr leaf header freemap.size underflow

2020-09-17 Thread Sasha Levin
From: Brian Foster [ Upstream commit 2a2b5932db67586bacc560cc065d62faece5b996 ] The leaf format xattr addition helper xfs_attr3_leaf_add_work() adjusts the block freemap in a couple places. The first update drops the size of the freemap that the caller had already selected to place the xattr

[PATCH AUTOSEL 5.4 050/330] PCI: Avoid double hpmemsize MMIO window assignment

2020-09-17 Thread Sasha Levin
From: Nicholas Johnson [ Upstream commit c13704f5685deb7d6eb21e293233e0901ed77377 ] Previously, the kernel sometimes assigned more MMIO or MMIO_PREF space than desired. For example, if the user requested 128M of space with "pci=realloc,hpmemsize=128M", we sometimes assigned 256M: pci

[PATCH AUTOSEL 5.4 057/330] scsi: pm80xx: Cleanup command when a reset times out

2020-09-17 Thread Sasha Levin
From: peter chang [ Upstream commit 51c1c5f6ed64c2b65a8cf89dac136273d25ca540 ] Added the fix so the if driver properly sent the abort it tries to remove it from the firmware's list of outstanding commands regardless of the abort status. This means that the task gets freed 'now' rather than

[PATCH AUTOSEL 5.4 060/330] debugfs: Fix !DEBUG_FS debugfs_create_automount

2020-09-17 Thread Sasha Levin
From: Kusanagi Kouichi [ Upstream commit 4250b047039d324e0ff65267c8beb5bad5052a86 ] If DEBUG_FS=n, compile fails with the following error: kernel/trace/trace.c: In function 'tracing_init_dentry': kernel/trace/trace.c:8658:9: error: passing argument 3 of 'debugfs_create_automount' from

[PATCH AUTOSEL 5.4 054/330] ubi: Fix producing anchor PEBs

2020-09-17 Thread Sasha Levin
From: Sascha Hauer [ Upstream commit f9c34bb529975fe9f85b870a80c53a83a3c5a182 ] When a new fastmap is about to be written UBI must make sure it has a free block for a fastmap anchor available. For this ubi_update_fastmap() calls ubi_ensure_anchor_pebs(). This stopped working with 2e8f08deabbc

[PATCH AUTOSEL 5.4 049/330] RDMA/i40iw: Fix potential use after free

2020-09-17 Thread Sasha Levin
From: Pan Bian [ Upstream commit da046d5f895fca18d63b15ac8faebd5bf784e23a ] Release variable dst after logging dst->error to avoid possible use after free. Link: https://lore.kernel.org/r/1573022651-37171-1-git-send-email-bianpan2...@163.com Signed-off-by: Pan Bian Reviewed-by: Jason

[PATCH AUTOSEL 5.4 055/330] mmc: core: Fix size overflow for mmc partitions

2020-09-17 Thread Sasha Levin
From: Bradley Bolen [ Upstream commit f3d7c2292d104519195fdb11192daec13229c219 ] With large eMMC cards, it is possible to create general purpose partitions that are bigger than 4GB. The size member of the mmc_part struct is only an unsigned int which overflows for gp partitions larger than

[PATCH AUTOSEL 5.4 066/330] xtensa: fix system_call interaction with ptrace

2020-09-17 Thread Sasha Levin
From: Max Filippov [ Upstream commit 02ce94c229251555ac726ecfebe3458ef5905fa9 ] Don't overwrite return value if system call was cancelled at entry by ptrace. Return status code from do_syscall_trace_enter so that pt_regs::syscall doesn't need to be changed to skip syscall. Signed-off-by: Max

[PATCH AUTOSEL 5.4 056/330] gfs2: clean up iopen glock mess in gfs2_create_inode

2020-09-17 Thread Sasha Levin
From: Bob Peterson [ Upstream commit 2c47c1be51fbded1f7baa2ceaed90f97932f79be ] Before this patch, gfs2_create_inode had a use-after-free for the iopen glock in some error paths because it did this: gfs2_glock_put(io_gl); fail_gunlock2: if (io_gl)

[PATCH AUTOSEL 5.4 058/330] mt76: do not use devm API for led classdev

2020-09-17 Thread Sasha Levin
From: Felix Fietkau [ Upstream commit 36f7e2b2bb1de86f0072cd49ca93d82b9e8fd894 ] With the devm API, the unregister happens after the device cleanup is done, after which the struct mt76_dev which contains the led_cdev has already been freed. This leads to a use-after-free bug that can crash the

[PATCH AUTOSEL 5.4 077/330] ALSA: hda: enable regmap internal locking

2020-09-17 Thread Sasha Levin
From: Kai Vehmanen [ Upstream commit 8e85def5723eccea30ebf22645673692ab8cb3e2 ] This reverts commit 42ec336f1f9d ("ALSA: hda: Disable regmap internal locking"). Without regmap locking, there is a race between snd_hda_codec_amp_init() and PM callbacks issuing regcache_sync(). This was caught by

[PATCH AUTOSEL 5.4 059/330] mt76: add missing locking around ampdu action

2020-09-17 Thread Sasha Levin
From: Felix Fietkau [ Upstream commit 1a817fa73c3b27a593aadf0029de24db1bbc1a3e ] This is needed primarily to avoid races in dealing with rx aggregation related data structures Signed-off-by: Felix Fietkau Signed-off-by: Sasha Levin --- drivers/net/wireless/mediatek/mt76/mt7603/main.c | 2

Re: [PATCH] kprobes: Do not disarm disabled ftrace kprobe

2020-09-17 Thread Steven Rostedt
On Fri, 18 Sep 2020 11:01:22 +0900 Masami Hiramatsu wrote: > Hi Steve, > > Ah, this seems to fix same issue which I sent. > > https://lkml.kernel.org/r/159888672694.1411785.5987998076694782591.stgit@devnote2 > > Could you confirm it? Ah, OK. I'm going through my backlog (which was created by

[PATCH AUTOSEL 5.4 063/330] CIFS: Properly process SMB3 lease breaks

2020-09-17 Thread Sasha Levin
From: Pavel Shilovsky [ Upstream commit 9bd4540836684013aaad6070a65d6fcdd9006625 ] Currenly we doesn't assume that a server may break a lease from RWH to RW which causes us setting a wrong lease state on a file and thus mistakenly flushing data and byte-range locks and purging cached data on

[PATCH AUTOSEL 5.4 082/330] ipv6_route_seq_next should increase position index

2020-09-17 Thread Sasha Levin
From: Vasily Averin [ Upstream commit 4fc427e0515811250647d44de38d87d7b0e0790f ] if seq_file .next fuction does not change position index, read after some lseek can generate unexpected output. https://bugzilla.kernel.org/show_bug.cgi?id=206283 Signed-off-by: Vasily Averin Signed-off-by: David

  1   2   3   4   5   6   7   8   9   10   >