[PATCH 5.4 086/129] net: core: use listified Rx for GRO_NORMAL in napi_gro_receive()

2020-09-08 Thread Greg Kroah-Hartman
From: Alexander Lobakin commit 6570bc79c0dfff0f228b7afd2de720fb4e84d61d upstream. Commit 323ebb61e32b4 ("net: use listified RX for handling GRO_NORMAL skbs") made use of listified skb processing for the users of napi_gro_frags(). The same technique can be used in a way more common

[PATCH 5.4 044/129] bnxt_en: Fix PCI AER error recovery flow

2020-09-08 Thread Greg Kroah-Hartman
From: Vasundhara Volam [ Upstream commit df3875ec550396974b1d8a518bd120d034738236 ] When a PCI error is detected the PCI state could be corrupt, save the PCI state after initialization and restore it after the slot reset. Fixes: 6316ea6db93d ("bnxt_en: Enable AER support.") Signed-off-by:

[PATCH v3 2/6] venus: hfi_helper: Add VP9 profile and levels

2020-09-08 Thread Stanimir Varbanov
Add HFI defines for VP9 codec profile and levels. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/hfi_helper.h | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/media/platform/qcom/venus/hfi_helper.h

Re: [RFC PATCH 00/16] 1GB THP support on x86_64

2020-09-08 Thread Zi Yan
On 8 Sep 2020, at 10:27, Matthew Wilcox wrote: > On Tue, Sep 08, 2020 at 10:05:11AM -0400, Zi Yan wrote: >> On 8 Sep 2020, at 7:57, David Hildenbrand wrote: >>> I have concerns if we would silently use 1~GB THPs in most scenarios >>> where be would have used 2~MB THP. I'd appreciate a trigger to

[PATCH 5.4 089/129] Revert "ALSA: hda: Add support for Loongson 7A1000 controller"

2020-09-08 Thread Greg Kroah-Hartman
From: Tiezhu Yang commit eed8f88b109aa927fbf0d0c80ff9f8d00444ca7f upstream. This reverts commit 61eee4a7fc40 ("ALSA: hda: Add support for Loongson 7A1000 controller") to fix the following error on the Loongson LS7A platform: rcu: INFO: rcu_preempt self-detected stall on CPU NMI backtrace for

[PATCH 11/19] gdrom: use bdev_check_media_change

2020-09-08 Thread Christoph Hellwig
The Sega GD-ROM driver does not have a ->revalidate_disk method, so it can just use bdev_check_media_change without any additional changes. Signed-off-by: Christoph Hellwig Reviewed-by: Johannes Thumshirn --- drivers/cdrom/gdrom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH 1/3] dt-bindings: phy: amlogic,meson-axg-mipi-pcie-analog: remove reg attribute

2020-09-08 Thread Rob Herring
On Mon, Sep 07, 2020 at 09:34:00AM +0200, Neil Armstrong wrote: > The Amlogic AXG MIPI + PCIe Analog PHY should be a subnode of the hhi mfd > node like the axg-clkc node. > > Thus the reg attribute is not needed. If the phy registers have an address then it should remain even if Linux happens

Re: [PATCH 1/3] dt-bindings: phy: amlogic, meson-axg-mipi-pcie-analog: remove reg attribute

2020-09-08 Thread Rob Herring
On Mon, 07 Sep 2020 09:34:00 +0200, Neil Armstrong wrote: > The Amlogic AXG MIPI + PCIe Analog PHY should be a subnode of the hhi mfd > node like the axg-clkc node. > > Thus the reg attribute is not needed. > > Signed-off-by: Neil Armstrong > --- >

[PATCH 14/19] ide-gd: stop using the disk events mechanism

2020-09-08 Thread Christoph Hellwig
ide-gd is only using the disk events mechanism to be able to force an invalidation and partition scan on opening removable media. Just open code the logic without invoving the block layer. Signed-off-by: Christoph Hellwig --- drivers/ide/ide-disk.c | 5 + drivers/ide/ide-floppy.c | 2

Re: [PATCH] kyber: Fix crash in kyber_finish_request()

2020-09-08 Thread Jens Axboe
On 9/8/20 1:00 PM, Omar Sandoval wrote: > On Mon, Sep 07, 2020 at 10:41:16AM -0600, Jens Axboe wrote: >> CC Omar >> >> On 9/7/20 1:43 AM, Yang Yang wrote: >>> Kernel crash when requeue flush request. >>> It can be reproduced as below: >>> >>> [2.517297] Unable to handle kernel paging request

Re: [PATCH v2 1/9] dt-bindings: net: nfc: s3fwrn5: Convert to dtschema

2020-09-08 Thread Rob Herring
On Sun, 06 Sep 2020 17:36:46 +0200, Krzysztof Kozlowski wrote: > Convert the Samsung S3FWRN5 NCI NFC controller bindings to dtschema. > This is conversion only so it includes properties with invalid prefixes > (s3fwrn5,en-gpios) which should be addressed later. > > Signed-off-by: Krzysztof

Re: [patch V2 18/46] x86/msi: Consolidate MSI allocation

2020-09-08 Thread Wei Liu
On Wed, Aug 26, 2020 at 01:16:46PM +0200, Thomas Gleixner wrote: [...] > --- a/drivers/pci/controller/pci-hyperv.c > +++ b/drivers/pci/controller/pci-hyperv.c > @@ -1534,7 +1534,7 @@ static struct irq_chip hv_msi_irq_chip = > static irq_hw_number_t hv_msi_domain_ops_get_hwirq(struct

Re: [PATCH v3 1/5] dt-bindings: mfd: Add ENE KB930 Embedded Controller binding

2020-09-08 Thread Rob Herring
On Sun, 06 Sep 2020 22:50:59 +0300, Dmitry Osipenko wrote: > Add binding document for the ENE KB930 Embedded Controller. > > Signed-off-by: Dmitry Osipenko > --- > .../devicetree/bindings/mfd/ene-kb930.yaml| 66 +++ > 1 file changed, 66 insertions(+) > create mode 100644

[PATCH v2 4/5] media: uvcvideo: Protect uvc queue file operations against disconnect

2020-09-08 Thread Guenter Roeck
uvc queue file operations have no mutex protection against USB disconnect. This is questionable at least for the poll operation, which has to wait for the uvc queue mutex. By the time that mutex has been acquired, is it possible that the video device has been unregistered. Protect all file

Re: [PATCH 4.19 34/88] bnxt_en: fix HWRM error when querying VF temperature

2020-09-08 Thread Pavel Machek
Hi! > Firmware returns RESOURCE_ACCESS_DENIED for HWRM_TEMP_MONITORY_QUERY for > VFs. This produces unpleasing error messages in the log when temp1_input > is queried via the hwmon sysfs interface from a VF. > > The error is harmless and expected, so silence it and return unknown as > the value.

[PATCH v2 5/5] media: uvcvideo: Abort uvc_v4l2_open if video device is unregistered

2020-09-08 Thread Guenter Roeck
uvc_v4l2_open() acquires the uvc device mutex. After doing so, it does not check if the video device is still registered. This may result in race conditions and can result in an attempt to submit an urb to a disconnected USB interface (from uvc_status_start). The problem was observed after adding

[PATCH v2 2/5] media: uvcvideo: Lock video streams and queues while unregistering

2020-09-08 Thread Guenter Roeck
The call to uvc_disconnect() is not protected by any mutex. This means it can and will be called while other accesses to the video device are in progress. This can cause all kinds of race conditions, including crashes such as the following. usb 1-4: USB disconnect, device number 3 BUG: unable to

[PATCH v2 0/5] media: uvcvideo: Fix race conditions

2020-09-08 Thread Guenter Roeck
The uvcvideo code has no lock protection against USB disconnects while video operations are ongoing. This has resulted in random error reports, typically pointing to a crash in usb_ifnum_to_if(), called from usb_hcd_alloc_bandwidth(). A typical traceback is as follows. usb 1-4: USB disconnect,

[PATCH v2 1/5] media: uvcvideo: Cancel async worker earlier

2020-09-08 Thread Guenter Roeck
So far the asynchronous control worker was canceled only in uvc_ctrl_cleanup_device. This is much later than the call to uvc_disconnect. However, after the call to uvc_disconnect returns, there must be no more USB activity. This can result in all kinds of problems in the USB code. One observed

[PATCH v2 3/5] media: uvcvideo: Release stream queue when unregistering video device

2020-09-08 Thread Guenter Roeck
The following traceback was observed when stress testing the uvcvideo driver. config->interface[0] is NULL WARNING: CPU: 0 PID: 2757 at drivers/usb/core/usb.c:285 usb_ifnum_to_if+0x81/0x85 ^^^ added log message and WARN() to prevent crash Modules linked in: <...> CPU: 0 PID: 2757 Comm:

[PATCH 12/19] ide-cd: use bdev_check_media_changed

2020-09-08 Thread Christoph Hellwig
Switch to use bdev_check_media_changed instead of check_disk_change and call idecd_revalidate_disk manually. Given that idecd_revalidate_disk only re-reads the TOC, and we already do the same at probe time, the extra call into ->revalidate_disk from bdev_disk_changed is not required either, so

[PATCH 03/19] ataflop: use bdev_check_media_change

2020-09-08 Thread Christoph Hellwig
Switch to use bdev_check_media_change instead of check_disk_change and call floppy_revalidate manually. Given that floppy_revalidate only deals with media change events, the extra call into ->revalidate_disk from bdev_disk_changed is not required either, so stop wiring up the method.

[PATCH 13/19] ide-cd: remove idecd_revalidate_disk

2020-09-08 Thread Christoph Hellwig
Just merge the trivial function into its only caller. Signed-off-by: Christoph Hellwig Reviewed-by: Johannes Thumshirn --- drivers/ide/ide-cd.c | 17 + 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index

Re: [RFC PATCH 00/16] 1GB THP support on x86_64

2020-09-08 Thread Zi Yan
On 8 Sep 2020, at 7:57, David Hildenbrand wrote: > On 03.09.20 18:30, Roman Gushchin wrote: >> On Thu, Sep 03, 2020 at 05:23:00PM +0300, Kirill A. Shutemov wrote: >>> On Wed, Sep 02, 2020 at 02:06:12PM -0400, Zi Yan wrote: From: Zi Yan Hi all, This patchset adds support

Re: [PATCH] fsync.2: ERRORS: add EIO and ENOSPC

2020-09-08 Thread Jeff Layton
On Tue, 2020-09-08 at 13:27 +0200, Jan Kara wrote: > Added Jeff to CC since he has written the code... > > On Mon 07-09-20 09:11:06, Michael Kerrisk (man-pages) wrote: > > [Widening the CC to include Andrew and linux-fsdevel@] > > [Milan: thanks for the patch, but it's unclear to me from your

[PATCH 18/19] sr: simplify sr_block_revalidate_disk

2020-09-08 Thread Christoph Hellwig
Both callers have a valid CD struture available, so rely on that instead of getting another reference. Also move the function to avoid a forward declaration. Signed-off-by: Christoph Hellwig Reviewed-by: Johannes Thumshirn --- drivers/scsi/sr.c | 36 +--- 1

Re: [PATCH 5/7] cpufreq: qcom-hw: Use regmap for accessing hardware registers

2020-09-08 Thread Bjorn Andersson
On Tue 08 Sep 02:57 CDT 2020, Manivannan Sadhasivam wrote: > Use regmap for accessing cpufreq registers in hardware. > The content of the patch looks good, but in itself I don't see the reason for migrating to regmap. If you have subsequent patches, that would benefit from describing the

Re: [PATCH] seccomp: kill process instead of thread for unknown actions

2020-09-08 Thread Kees Cook
On Fri, 28 Aug 2020 21:56:13 -0400, Rich Felker wrote: > Asynchronous termination of a thread outside of the userspace thread > library's knowledge is an unsafe operation that leaves the process in > an inconsistent, corrupt, and possibly unrecoverable state. In order > to make new actions that

[PATCH 08/19] xsysace: use bdev_check_media_change

2020-09-08 Thread Christoph Hellwig
Switch to use bdev_check_media_change instead of check_disk_change and call ace_revalidate_disk manually. Given that ace_revalidate_disk only deals with media change events, the extra call into ->revalidate_disk from bdev_disk_changed is not required either, so stop wiring up the method.

Re: [PATCH 2/2] drm/msm/dpu: clean up some impossibilities

2020-09-08 Thread abhinavk
On 2020-09-07 10:04, Rob Clark wrote: From: Rob Clark Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 81 1 file changed, 12 insertions(+), 69 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c

Re: [PATCH 00/12] x86/platform/uv: Updates for UV5

2020-09-08 Thread peterz
On Tue, Sep 08, 2020 at 08:28:16AM -0700, Mike Travis wrote: > I didn't. If I could figure out how to convert quilt patches into git > commits I might be able to do that? (And I didn't know that diffstats were > needed on the into?) $ git quiltimport Or, for the more enterprising person: $

Re: [RFC PATCH v2 3/3] mm: make generic pXd_addr_end() macros inline functions

2020-09-08 Thread Alexander Gordeev
On Tue, Sep 08, 2020 at 07:19:38AM +0200, Christophe Leroy wrote: [...] > >diff --git a/include/linux/pgtable.h b/include/linux/pgtable.h > >index 67ebc22cf83d..d9e7d16c2263 100644 > >--- a/include/linux/pgtable.h > >+++ b/include/linux/pgtable.h > >@@ -656,31 +656,35 @@ static inline int

Re: [PATCH] drm: mxsfb: check framebuffer pitch

2020-09-08 Thread Stefan Agner
On 2020-09-08 10:48, Daniel Vetter wrote: > On Tue, Sep 08, 2020 at 11:18:25AM +0300, Tomi Valkeinen wrote: >> Hi, >> >> On 08/09/2020 10:55, Stefan Agner wrote: >> > On 2020-09-07 20:18, Daniel Vetter wrote: >> >> On Mon, Sep 07, 2020 at 07:17:12PM +0300, Laurent Pinchart wrote: >> >>> Hi Stefan,

Re: [PATCH] drm: mxsfb: check framebuffer pitch

2020-09-08 Thread Daniel Vetter
On Tue, Sep 8, 2020 at 2:07 PM Stefan Agner wrote: > > On 2020-09-08 10:48, Daniel Vetter wrote: > > On Tue, Sep 08, 2020 at 11:18:25AM +0300, Tomi Valkeinen wrote: > >> Hi, > >> > >> On 08/09/2020 10:55, Stefan Agner wrote: > >> > On 2020-09-07 20:18, Daniel Vetter wrote: > >> >> On Mon, Sep 07,

Re: [PATCHv3] soc: qcom: llcc: Support chipsets that can write to llcc registers

2020-09-08 Thread Doug Anderson
Hi, On Mon, Sep 7, 2020 at 10:36 PM Sai Prakash Ranjan wrote: > > --- a/include/linux/soc/qcom/llcc-qcom.h > +++ b/include/linux/soc/qcom/llcc-qcom.h > @@ -73,6 +73,7 @@ struct llcc_edac_reg_data { > * @bitmap: Bit map to track the active slice ids > * @offsets: Pointer to the bank offsets

[PATCH] sparc64: Fix irqtrace warnings on Ultra-S

2020-09-08 Thread peterz
On Tue, Sep 08, 2020 at 07:40:23AM -0700, Guenter Roeck wrote: > qemu-system-sparc64 -M sun4u -cpu "TI UltraSparc IIi" -m 512 \ > -initrd rootfs.cpio \ > -kernel arch/sparc/boot/image -no-reboot \ > -append "panic=-1 slub_debug=FZPUA rdinit=/sbin/init console=ttyS0" \ > -nographic

[PATCH 2/5] scsi/qla2xxx: Convert to SPDX license identifiers

2020-09-08 Thread Lukas Bulwahn
From: Thomas Gleixner All files in this driver directory contain the following notice: See LICENSE.qla2xxx for copyright and licensing details. LICENSE.qla2xxx can be found in Documentation/scsi/. The file contains: - A copyright notice This copyright notice is redundant as all files

Re: [PATCH rdma-next 1/4] lib/scatterlist: Refactor sg_alloc_table_from_pages

2020-09-08 Thread Christoph Hellwig
On Mon, Sep 07, 2020 at 03:32:31PM +0300, Maor Gottlieb wrote: > > On 9/7/2020 10:29 AM, Christoph Hellwig wrote: >> On Thu, Sep 03, 2020 at 06:54:34PM +0300, Leon Romanovsky wrote: >>> From: Maor Gottlieb >>> >>> Currently, sg_alloc_table_from_pages doesn't support dynamic chaining of >>> SG

Re: [v4,4/4] arm64: dts: mt8192: add infracfg_rst node

2020-09-08 Thread Suman Anna
On 9/8/20 8:26 AM, Crystal Guo wrote: > On Thu, 2020-09-03 at 07:29 +0800, Suman Anna wrote: >> Hi Crystal, >> >> On 8/16/20 10:03 PM, Crystal Guo wrote: >>> add infracfg_rst node which is for MT8192 platform >>> >>> Signed-off-by: Crystal Guo >> >> I understand you are posting these together for

Re: [PATCH] brcmsmac: fix memory leak in wlc_phy_attach_lcnphy

2020-09-08 Thread Keita Suzuki
Thank you for your comment. I am relatively new to the Linux kernel community, so I am more than happy to receive comments. Please let me know if I'm violating any other rules. > > Signed-off-by: Keita Suzuki > > --- > ... changelog here describing difference between previous patch and this >

[PATCH v2 2/3] misc: fastrpc: define names for protection domain ids

2020-09-08 Thread Jonathan Marek
Define SENSORS_PD for the next patch, to void using magic values for these. Signed-off-by: Jonathan Marek --- drivers/misc/fastrpc.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c index 7939c55daceb..07b381c042cd

Re: [PATCH v6 14/35] i2c: tegra: Clean up probe function

2020-09-08 Thread Dmitry Osipenko
08.09.2020 11:40, Andy Shevchenko пишет: > On Tue, Sep 8, 2020 at 5:11 AM Dmitry Osipenko wrote: >> >> The driver's probe function code is a bit difficult to read. This patch >> reorders code of the probe function, forming groups of code that are easy >> to work with. >> >> The probe tear-down

Re: [PATCH 24/35] arm64: mte: Switch GCR_EL1 in kernel entry and exit

2020-09-08 Thread Derrick McKee
Hello, Is the branch where the MTE patches currently are being applied for-net/mte? It looks like that's the place, but I want to confirm. On Tue, Sep 8, 2020 at 11:42 AM Catalin Marinas wrote: > > On Tue, Sep 08, 2020 at 04:02:06PM +0200, Andrey Konovalov wrote: > > On Thu, Aug 27, 2020 at

Re: [PATCH] mm/vmscan: fix infinite loop in drop_slab_node

2020-09-08 Thread Vlastimil Babka
On 9/8/20 5:09 PM, Chris Down wrote: > drop_caches by its very nature can be extremely performance intensive -- if > someone wants to abort after trying too long, they can just send a > TASK_KILLABLE signal, no? If exiting the loop and returning to usermode > doesn't > reliably work when doing

[PATCH 15/19] md: use bdev_check_media_change

2020-09-08 Thread Christoph Hellwig
The md driver does not have a ->revalidate_disk method, so it can just use bdev_check_media_change without any additional changes. Signed-off-by: Christoph Hellwig Reviewed-by: Johannes Thumshirn --- drivers/md/md.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] gpio: mockup: fix resource leak in error path

2020-09-08 Thread Bartosz Golaszewski
From: Bartosz Golaszewski If the module init function fails after creating the debugs directory, it's never removed. Add proper cleanup calls to avoid this resource leak. Fixes: 9202ba2397d1 ("gpio: mockup: implement event injecting over debugfs") Cc: Signed-off-by: Bartosz Golaszewski ---

Re: [PATCH] mm/mmap: leave adjust_next as virtual address instead of page frame number

2020-09-08 Thread Vlastimil Babka
On 8/28/20 10:10 AM, Wei Yang wrote: > Instead of convert adjust_next between virtual address and page frame > number, let's just store the virtual address into adjust_next. IMHO more precisely/less confusing it's "bytes" and "pages" instead of "virtual address" (which is absolute address, but

Re: [PATCH v8 00/18] blk-mq/scsi: Provide hostwide shared tags for SCSI HBAs

2020-09-08 Thread Hannes Reinecke
On 8/19/20 5:20 PM, John Garry wrote: > Hi all, > > Here is v8 of the patchset. > > In this version of the series, we keep the shared sbitmap for driver tags, > and introduce changes to fix up the tag budgeting across request queues. > We also have a change to count requests per-hctx for when an

Re: [RFC PATCH v8 1/3] fs: Introduce AT_INTERPRETED flag for faccessat2(2)

2020-09-08 Thread Mimi Zohar
Hi Mickael, On Tue, 2020-09-08 at 09:59 +0200, Mickaël Salaün wrote: > diff --git a/fs/open.c b/fs/open.c > index 9af548fb841b..879bdfbdc6fa 100644 > --- a/fs/open.c > +++ b/fs/open.c > @@ -405,9 +405,13 @@ static long do_faccessat(int dfd, const char __user > *filename, int mode, int fla >

[PATCH 5.8 108/186] tg3: Fix soft lockup when tg3_reset_task() fails.

2020-09-08 Thread Greg Kroah-Hartman
From: Michael Chan [ Upstream commit 556699341efa98243e08e34401b3f601da91f5a3 ] If tg3_reset_task() fails, the device state is left in an inconsistent state with IFF_RUNNING still set but NAPI state not enabled. A subsequent operation, such as ifdown or AER error can cause it to soft lock up

mt7615: Fail to load firmware on AZWAVE-CB434NF module

2020-09-08 Thread Chris Chiu
Hi Sean, Ryder, We have an ASUS laptop X532EQ with the wifi module AZWAVE-CB434NF which fails to bring up the wifi interface on kernel 5.9.0-rc1. The dmesg shows the firmware load error. [ 25.630850] mt7615e :2d:00.0: Message -4294967280 (seq 1) timeout [ 25.630851] mt7615e

[PATCH 5.8 099/186] nfp: flower: fix ABI mismatch between driver and firmware

2020-09-08 Thread Greg Kroah-Hartman
From: Louis Peens [ Upstream commit f614e536704d37326b0975da9cc33dd61d28c378 ] Fix an issue where the driver wrongly detected ipv6 neighbour updates from the NFP as corrupt. Add a reserved field on the kernel side so it is similar to the ipv4 version of the struct and has space for the extra

[PATCH 5.8 080/186] selftests/bpf: Fix massive output from test_maps

2020-09-08 Thread Greg Kroah-Hartman
From: Jesper Dangaard Brouer [ Upstream commit fa4505675e093e895b7ec49a76d44f6b5ad9602e ] When stdout output from the selftests tool 'test_maps' gets redirected into e.g file or pipe, then the output lines increase a lot (from 21 to 33949 lines). This is caused by the printf that happens

[PATCH 5.8 116/186] include/linux/log2.h: add missing () around n in roundup_pow_of_two()

2020-09-08 Thread Greg Kroah-Hartman
From: Jason Gunthorpe [ Upstream commit 428fc0aff4e59399ec719ffcc1f7a5d29a4ee476 ] Otherwise gcc generates warnings if the expression is complicated. Fixes: 312a0c170945 ("[PATCH] LOG2: Alter roundup_pow_of_two() so that it can use a ilog2() on a constant") Signed-off-by: Jason Gunthorpe

[PATCH 5.8 104/186] xfs: fix xfs_bmap_validate_extent_raw when checking attr fork of rt files

2020-09-08 Thread Greg Kroah-Hartman
From: Darrick J. Wong [ Upstream commit d0c20d38af135b2b4b90aa59df7878ef0c8fbef4 ] The realtime flag only applies to the data fork, so don't use the realtime block number checks on the attr fork of a realtime file. Fixes: 30b0984d9117 ("xfs: refactor bmap record validation") Signed-off-by:

[PATCH 5.8 124/186] arc: fix memory initialization for systems with two memory banks

2020-09-08 Thread Greg Kroah-Hartman
From: Mike Rapoport commit 4af22ded0ecf23adea1b26ea264c53f9f1cfc310 upstream. Rework of memory map initialization broke initialization of ARC systems with two memory banks. Before these changes, memblock was not aware of nodes configuration and the memory map was always allocated from the

[PATCH 5.8 036/186] drm/amd/display: Fix memleak in amdgpu_dm_mode_config_init

2020-09-08 Thread Greg Kroah-Hartman
From: Dinghao Liu [ Upstream commit b67a468a4ccef593cd8df6a02ba3d167b77f0c81 ] When amdgpu_display_modeset_create_props() fails, state and state->context should be freed to prevent memleak. It's the same when amdgpu_dm_audio_init() fails. Signed-off-by: Dinghao Liu Signed-off-by: Alex Deucher

Re: [PATCH rdma-next 3/4] lib/scatterlist: Add support in dynamic allocation of SG table from pages

2020-09-08 Thread Christoph Hellwig
On Mon, Sep 07, 2020 at 03:44:08PM +0300, Maor Gottlieb wrote: >>> +{ >>> +#ifdef CONFIG_ARCH_NO_SG_CHAIN >>> + if (append->left_pages) >>> + return ERR_PTR(-EOPNOTSUPP); >>> +#endif >> Which makes this API entirely useless for !CONFIG_ARCH_NO_SG_CHAIN, >> doesn't it? Wouldn't it make

[PATCH 5.8 068/186] bnxt_en: Check for zero dir entries in NVRAM.

2020-09-08 Thread Greg Kroah-Hartman
From: Vasundhara Volam [ Upstream commit dbbfa96ad920c50d58bcaefa57f5f33ceef9d00e ] If firmware goes into unstable state, HWRM_NVM_GET_DIR_INFO firmware command may return zero dir entries. Return error in such case to avoid zero length dma buffer request. Fixes: c0c050c58d84 ("bnxt_en: New

Re: [PATCH v4 2/2] mfd: intel-m10-bmc: add Max10 BMC chip support for Intel FPGA PAC

2020-09-08 Thread Lee Jones
> > > +static int check_m10bmc_version(struct intel_m10bmc *m10bmc) > > > +{ > > > + unsigned int v; > > > + > > > + if (m10bmc_raw_read(m10bmc, M10BMC_LEGACY_SYS_BASE + M10BMC_BUILD_VER, > > > + )) > > > + return -ENODEV; > > > > Please break functions out of if

Re: [RFC PATCH v2 2/3] mm: make pXd_addr_end() functions page-table entry aware

2020-09-08 Thread Jason Gunthorpe
On Mon, Sep 07, 2020 at 08:00:57PM +0200, Gerald Schaefer wrote: > From: Alexander Gordeev > > Unlike all other page-table abstractions pXd_addr_end() do not take > into account a particular table entry in which context the functions > are called. On architectures with dynamic page-tables

Re: [PATCH v6 16/35] i2c: tegra: Reorder location of functions in the code

2020-09-08 Thread Andy Shevchenko
On Tue, Sep 8, 2020 at 3:55 PM Dmitry Osipenko wrote: > 08.09.2020 11:43, Andy Shevchenko пишет: > > On Tue, Sep 8, 2020 at 5:11 AM Dmitry Osipenko wrote: > >> > >> Reorder location of functions in the code in order to have definition > >> of functions closer to the place of the invocation. This

Re: [PATCH 1/7] soundwire: bus: use property to set interrupt masks

2020-09-08 Thread Jaroslav Kysela
Dne 28. 08. 20 v 8:51 Vinod Koul napsal(a): > Hi Mark, > > On 18-08-20, 22:06, Bard Liao wrote: >> From: Pierre-Louis Bossart >> >> Add a slave-level property and program the SCP_INT1_MASK as desired by >> the codec driver. Since there is no DisCo property this has to be an >>

[PATCH 3/5] net/qlcnic: Convert to SPDX license identifiers

2020-09-08 Thread Lukas Bulwahn
From: Thomas Gleixner All files in this driver directory contain the following notice: See LICENSE.qlcnic for copyright and licensing details. LICENSE.qlacnic can be found in Documentation/networking/device_drivers/qlogic/. The file contains: - A copyright notice This copyright

Re: [RFC PATCH v8 1/3] fs: Introduce AT_INTERPRETED flag for faccessat2(2)

2020-09-08 Thread Mimi Zohar
On Tue, 2020-09-08 at 08:52 -0400, Stephen Smalley wrote: > On Tue, Sep 8, 2020 at 8:50 AM Stephen Smalley > wrote: > > > > On Tue, Sep 8, 2020 at 8:43 AM Mickaël Salaün wrote: > > > > > > > > > On 08/09/2020 14:28, Mimi Zohar wrote: > > > > Hi Mickael, > > > > > > > > On Tue, 2020-09-08 at

Re: [GIT PULL] Kselftest update for Linux 5.9-rc5

2020-09-08 Thread pr-tracker-bot
The pull request you sent on Tue, 8 Sep 2020 11:00:05 -0600: > git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest > tags/linux-kselftest-5.9-rc5 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/34d4ddd359dbcdf6c5fb3f85a179243d7a1cb7f8 Thank you! --

[PATCH] gpiolib: switch to simpler IDA interface

2020-09-08 Thread Bartosz Golaszewski
From: Bartosz Golaszewski We don't need to specify any ranges when allocating IDs so we can switch to ida_alloc() and ida_free() instead of the ida_simple_ counterparts. ida_simple_get(ida, 0, 0, gfp) is equivalent to ida_alloc_range(ida, 0, UINT_MAX, gfp) which is equivalent to ida_alloc(ida,

Re: [PATCH v2 03/10] mfd: Add base driver for Netronix embedded controller

2020-09-08 Thread Lee Jones
On Sat, 05 Sep 2020, Jonathan Neuschäfer wrote: > The Netronix embedded controller is a microcontroller found in some > e-book readers designed by the ODM Netronix, Inc. It contains RTC, > battery monitoring, system power management, and PWM functionality. > > This driver implements register

[PATCH v3 4/6] venus: vdec: Set/Get VP9 profile/level

2020-09-08 Thread Stanimir Varbanov
Get and set VP9 codec profile and levels. Signed-off-by: Stanimir Varbanov --- .../media/platform/qcom/venus/vdec_ctrls.c| 20 ++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/qcom/venus/vdec_ctrls.c

Re: PROBLEM: Long Workqueue delays V2

2020-09-08 Thread Vlastimil Babka
On 8/27/20 2:06 PM, Jim Baxter wrote: > Has anyone any ideas of how to investigate this delay further? > > Comparing the perf output for unplugging the USB stick and using umount > which does not cause these delays in other workqueues the main difference I don't have that much insight in this,

[PATCH 5.8 117/186] iommu/vt-d: Handle 36bit addressing for x86-32

2020-09-08 Thread Greg Kroah-Hartman
From: Chris Wilson commit 29aaebbca4abc4cceb38738483051abefafb6950 upstream. Beware that the address size for x86-32 may exceed unsigned long. [0.368971] UBSAN: shift-out-of-bounds in drivers/iommu/intel/iommu.c:128:14 [0.369055] shift exponent 36 is too large for 32-bit type 'long

Re: [PATCH 0/2] Add VIN instances to r8a7742 SoC

2020-09-08 Thread Niklas Söderlund
Hi Lad, Thanks for your work. On 2020-09-07 15:45:07 +0100, Lad Prabhakar wrote: > Hi All, > > This patch series adds support for VIN to r8a7742 (RZ/G1H) SoC. > > Patches apply on top of [1]. > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/geert/ >

Re: [PATCH 6/7] cpufreq: qcom-hw: Add cpufreq support for SM8250 SoC

2020-09-08 Thread Manivannan Sadhasivam
On 0908, Bjorn Andersson wrote: > On Tue 08 Sep 02:57 CDT 2020, Manivannan Sadhasivam wrote: > > > SM8250 SoC uses EPSS block for carrying out the cpufreq duties. Hence, add > > support for it in the driver with relevant of_match data. > > > > Signed-off-by: Manivannan Sadhasivam > >

[PATCH 5/5] net/qla3xxx: Convert to SPDX license identifiers

2020-09-08 Thread Lukas Bulwahn
From: Thomas Gleixner All files related to this driver contain the following notice: See LICENSE.qla3xxx for copyright and licensing details. LICENSE.qla3xxx can be found in Documentation/networking/device_drivers/qlogic/. The file contains: - A copyright notice This copyright notice

[PATCH 5.8 137/186] ALSA: usb-audio: Add implicit feedback quirk for UR22C

2020-09-08 Thread Greg Kroah-Hartman
From: Joshua Sivec commit 7c5b892e0871655fea3294ffac6fa3cc3400b60d upstream. This uses the same quirk as the Motu and SSL2 devices. Tested on the UR22C. Fixes bug 208851. Signed-off-by: Joshua Sivec BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=208851 Cc: Link:

[PATCH 5.8 102/186] MIPS: add missing MSACSR and upper MSA initialization

2020-09-08 Thread Greg Kroah-Hartman
From: Huang Pei [ Upstream commit bb06748207cfb1502d11b90325eba7f8c44c9f02 ] In cc97ab235f3f ("MIPS: Simplify FP context initialization), init_fp_ctx just initialize the fp/msa context, and own_fp_inatomic just restore FCSR and 64bit FP regs from it, but miss MSACSR and upper MSA regs for MSA,

[PATCH 5.8 033/186] drm/amd/display: Fix passive dongle mistaken as active dongle in EDID emulation

2020-09-08 Thread Greg Kroah-Hartman
From: Samson Tam [ Upstream commit efbde23a3b0164cef27fd394e7d548f46af5b51d ] [Why] dongle_type is set during dongle connection but for passive dongles, dongle_type is not set. If user starts with an active dongle and then switches to a passive dongle, it will still report as an active dongle.

[PATCH 5.8 075/186] bnxt: dont enable NAPI until rings are ready

2020-09-08 Thread Greg Kroah-Hartman
From: Jakub Kicinski [ Upstream commit 96ecdcc992eb7f468b2cf829b0f5408a1fad4668 ] Netpoll can try to poll napi as soon as napi_enable() is called. It crashes trying to access a doorbell which is still NULL: BUG: kernel NULL pointer dereference, address: CPU: 59 PID: 6039

[PATCH] selftests/seccomp: Add test for unknown SECCOMP_RET kill behavior

2020-09-08 Thread Kees Cook
While we testing for the behavior of unknown seccomp filter return values, there was no test for how it acted in a thread group. Add a test in the thread group tests for this. Signed-off-by: Kees Cook --- (This is going via the seccomp tree.) --- tools/testing/selftests/seccomp/seccomp_bpf.c |

[PATCH 4/5] net/qlge: Convert to SPDX license identifiers

2020-09-08 Thread Lukas Bulwahn
From: Thomas Gleixner All files related to this driver contain the following notice: See LICENSE.qlge for copyright and licensing details. LICENSE.qlge can be found in Documentation/networking/device_drivers/qlogic/. The file contains: - A copyright notice This copyright notice is

[PATCH 5.8 062/186] dmaengine: pl330: Fix burst length if burst size is smaller than bus width

2020-09-08 Thread Greg Kroah-Hartman
From: Marek Szyprowski [ Upstream commit 0661cef675d37e2c4b66a996389ebeae8568e49e ] Move the burst len fixup after setting the generic value for it. This finally enables the fixup introduced by commit 137bd11090d8 ("dmaengine: pl330: Align DMA memcpy operations to MFIFO width"), which otherwise

[PATCH v2 0/3] misc: fastrpc: add ioctl for attaching to sensors pd

2020-09-08 Thread Jonathan Marek
Initializing sensors requires attaching to pd 2. Add an ioctl for that. This corresponds to FASTRPC_INIT_ATTACH_SENSORS in the downstream driver. v2: - define names of PD values in a separate patch - split out identation fix in a separate patch Jonathan Marek (3): misc: fastrpc: fix

[PATCH 5.8 016/186] habanalabs: validate FW file size

2020-09-08 Thread Greg Kroah-Hartman
From: Ofir Bitton [ Upstream commit bce382a8bb080ed5f2f3a06754526dc58b91cca2 ] We must validate FW size in order not to corrupt memory in case a malicious FW file will be present in system. Signed-off-by: Ofir Bitton Signed-off-by: Oded Gabbay Signed-off-by: Sasha Levin ---

[PATCH 5.8 063/186] dmaengine: ti: k3-udma: Fix the TR initialization for prep_slave_sg

2020-09-08 Thread Greg Kroah-Hartman
From: Peter Ujfalusi [ Upstream commit 33ebffa105990c43bf336cabe26c77384f59fe70 ] The TR which needs to be initialized for the next sg entry is indexed by tr_idx and not by the running i counter. In case any sub element in the SG needs more than one TR, the code would corrupt an already

[PATCH 5.8 055/186] netfilter: nf_tables: incorrect enum nft_list_attributes definition

2020-09-08 Thread Greg Kroah-Hartman
From: Pablo Neira Ayuso [ Upstream commit da9125df854ea48a6240c66e8a67be06e2c12c03 ] This should be NFTA_LIST_UNSPEC instead of NFTA_LIST_UNPEC, all other similar attribute definitions are postfixed with _UNSPEC. Fixes: 96518518cc41 ("netfilter: add nftables") Signed-off-by: Pablo Neira Ayuso

[PATCH 1/5] scsi/qla4xxx: Convert to SPDX license identifiers

2020-09-08 Thread Lukas Bulwahn
From: Thomas Gleixner All files in this driver directory contain the following notice: See LICENSE.qla4xxx for copyright and licensing details. LICENSE.qla4xxx can be found in Documentation/scsi/. The file contains: - A copyright notice This copyright notice is redundant as all files

[PATCH 5.8 017/186] habanalabs: check correct vmalloc return code

2020-09-08 Thread Greg Kroah-Hartman
From: Ofir Bitton [ Upstream commit 0839152f8c1efc1cc2d515d1ff1e253ca9402ad3 ] vmalloc can return different return code than NULL and a valid pointer. We must validate it in order to dereference a non valid pointer. Signed-off-by: Ofir Bitton Signed-off-by: Oded Gabbay Signed-off-by: Sasha

[PATCH 5.8 091/186] perf top/report: Fix infinite loop in the TUI for grouped events

2020-09-08 Thread Greg Kroah-Hartman
From: Arnaldo Carvalho de Melo [ Upstream commit d4ccbacb9c217fefb4332a9af81b785690cf1053 ] For a while we need to have a dummy event for doing things like receiving PERF_RECORD_COMM, PERF_RECORD_EXEC, etc for threads being created and dying while we synthesize the pre-existing ones at tool

Re: [PATCH] fs: Eliminate a local variable to make the code more clear

2020-09-08 Thread Hao Lee
ping On Wed, Jul 29, 2020 at 03:21:28PM +, Hao Lee wrote: > The dentry local variable is introduced in 'commit 84d17192d2afd ("get > rid of full-hash scan on detaching vfsmounts")' to reduce the length of > some long statements for example > mutex_lock(>dentry->d_inode->i_mutex). We have

Re: [PATCH net-next RFC v1 1/4] devlink: Wrap trap related lists and ops in trap_mngr

2020-09-08 Thread Jiri Pirko
Wed, Sep 02, 2020 at 05:32:11PM CEST, a...@mellanox.com wrote: >Bundle the trap related lists: trap_list, trap_group_list and >trap_policer_list and trap ops like: trap_init, trap_fini, >trap_action_set... together in trap_mngr. This will be handy in the >coming patches in the set introducing

[PATCH 5.8 078/186] net: ethernet: ti: cpsw_new: fix error handling in cpsw_ndo_vlan_rx_kill_vid()

2020-09-08 Thread Greg Kroah-Hartman
From: Murali Karicheri [ Upstream commit af8ea34624855710a0ef5543b871d49b0162 ] This patch fixes a bunch of issues in cpsw_ndo_vlan_rx_kill_vid() - pm_runtime_get_sync() returns non zero value. This results in non zero value return to caller which will be interpreted as error. So

[PATCH 5.8 151/186] affs: fix basic permission bits to actually work

2020-09-08 Thread Greg Kroah-Hartman
From: Max Staudt commit d3a84a8d0dde4e26bc084b36ffcbdc5932ac85e2 upstream. The basic permission bits (protection bits in AmigaOS) have been broken in Linux' AFFS - it would only set bits, but never delete them. Also, contrary to the documentation, the Archived bit was not handled. Let's fix

[PATCH 5.8 045/186] dmaengine: at_hdmac: add missing kfree() call in at_dma_xlate()

2020-09-08 Thread Greg Kroah-Hartman
From: Yu Kuai [ Upstream commit e097eb7473d9e70da9e03276f61cd392ccb9d79f ] If memory allocation for 'atslave' succeed, at_dma_xlate() doesn't have a corresponding kfree() in exception handling. Thus add kfree() for this function implementation. Fixes: bbe89c8e3d59 ("at_hdmac: move to generic

[PATCH 5.8 043/186] dmaengine: at_hdmac: check return value of of_find_device_by_node() in at_dma_xlate()

2020-09-08 Thread Greg Kroah-Hartman
From: Yu Kuai [ Upstream commit 0cef8e2c5a07d482ec907249dbd6687e8697677f ] The reurn value of of_find_device_by_node() is not checked, thus null pointer dereference will be triggered if of_find_device_by_node() failed. Fixes: bbe89c8e3d59 ("at_hdmac: move to generic DMA binding")

[PATCH v3 1/6] v4l2-ctrl: Add VP9 codec levels

2020-09-08 Thread Stanimir Varbanov
Add menu control for VP9 codec levels. A total of 14 levels are defined for Profile 0 (8bit) and Profile 2 (10bit). Each level is a set of constrained bitstreams coded with targeted resolutions, frame rates, and bitrates. The definitions have been taken from webm project [1]. [1]

Re: [PATCH] SELinux: Measure state and hash of policy using IMA

2020-09-08 Thread Stephen Smalley
On Tue, Sep 8, 2020 at 12:44 AM Lakshmi Ramasubramanian wrote: > > On 9/7/20 3:32 PM, Stephen Smalley wrote: > > >> Signed-off-by: Lakshmi Ramasubramanian > >> Suggested-by: Stephen Smalley > >> Reported-by: kernel test robot # error: implicit > >> declaration of function 'vfree' > >>

[PATCH 5.8 074/186] xfs: fix boundary test in xfs_attr_shortform_verify

2020-09-08 Thread Greg Kroah-Hartman
From: Eric Sandeen [ Upstream commit f4020438fab05364018c91f7e02ebdd192085933 ] The boundary test for the fixed-offset parts of xfs_attr_sf_entry in xfs_attr_shortform_verify is off by one, because the variable array at the end is defined as nameval[1] not nameval[]. Hence we need to subtract 1

[PATCH 5.8 115/186] net/packet: fix overflow in tpacket_rcv

2020-09-08 Thread Greg Kroah-Hartman
From: Or Cohen [ Upstream commit acf69c946233259ab4d64f8869d4037a198c7f06 ] Using tp_reserve to calculate netoff can overflow as tp_reserve is unsigned int and netoff is unsigned short. This may lead to macoff receving a smaller value then sizeof(struct virtio_net_hdr), and if po->has_vnet_hdr

[PATCH 5.8 076/186] media: vicodec: add missing v4l2_ctrl_request_hdl_put()

2020-09-08 Thread Greg Kroah-Hartman
From: Hans Verkuil [ Upstream commit 2e7c8fb8942773f412fe12f3b63e8bb92c18ab3f ] The check for a required control in the request was missing a call to v4l2_ctrl_request_hdl_put(), so the control request object was never released. Signed-off-by: Hans Verkuil Fixes: 997deb811bf5 ("media:

Re: [PATCH] SELinux: Measure state and hash of policy using IMA

2020-09-08 Thread Stephen Smalley
On Tue, Sep 8, 2020 at 8:28 AM Stephen Smalley wrote: > > On Mon, Sep 7, 2020 at 5:39 PM Lakshmi Ramasubramanian > wrote: > > > > Critical data structures of security modules are currently not measured. > > Therefore an attestation service, for instance, would not be able to > > attest whether

<    1   2   3   4   5   6   7   8   9   10   >