[PATCH 5.8 107/186] perf bench: The do_run_multi_threaded() function must use IS_ERR(perf_session__new())

2020-09-08 Thread Greg Kroah-Hartman
From: YueHaibing [ Upstream commit e4d71f79cf5c10fa8bc6f5d3bebea570c9c438f1 ] In case of error, the function perf_session__new() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR() Committer notes: This wasn't compiling due to an

[PATCH 5.8 114/186] iommu/amd: Use cmpxchg_double() when updating 128-bit IRTE

2020-09-08 Thread Greg Kroah-Hartman
From: Suravee Suthikulpanit [ Upstream commit e52d58d54a321d4fe9d0ecdabe4f8774449f0d6e ] When using 128-bit interrupt-remapping table entry (IRTE) (a.k.a GA mode), current driver disables interrupt remapping when it updates the IRTE so that the upper and lower 64-bit values can be updated

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

2020-09-08 Thread Catalin Marinas
On Tue, Sep 08, 2020 at 04:02:06PM +0200, Andrey Konovalov wrote: > On Thu, Aug 27, 2020 at 2:16 PM Catalin Marinas > wrote: > > On Thu, Aug 27, 2020 at 11:56:49AM +0100, Vincenzo Frascino wrote: > > > On 8/27/20 11:38 AM, Catalin Marinas wrote: > > > > On Fri, Aug 14, 2020 at 07:27:06PM +0200,

Re: [PATCH 4.19 40/88] perf tools: Correct SNOOPX field offset

2020-09-08 Thread Pavel Machek
Hi! > From: Al Grant > > [ Upstream commit 39c0a53b114d0317e5c4e76b631f41d133af5cb0 ] > > perf_event.h has macros that define the field offsets in the data_src > bitmask in perf records. The SNOOPX and REMOTE offsets were both 37. > > These are distinct fields, and the bitfield layout in

[PATCH 5.8 123/186] ARC: perf: dont bail setup if pct irq missing in device-tree

2020-09-08 Thread Greg Kroah-Hartman
From: Vineet Gupta commit feb92d7d3813456c11dce215b3421801a78a8986 upstream. Current code inadventely bails if hardware supports sampling/overflow interrupts, but the irq is missing from device tree. | | # perf stat -e cycles,instructions,major-faults,minor-faults ../hackbench | Running with

rework check_disk_change() v2

2020-09-08 Thread Christoph Hellwig
Hi Jens, this series replaced the not very nice check_disk_change() function with a new bdev_media_changed that avoids having the ->revalidate_disk call at its end. As a result ->revalidate_disk can be removed from a lot of drivers. Changes since v1: - minor changelog spelling fixes Diffstat:

[PATCH 17/19] sr: 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 sr_block_revalidate_disk manually. Also add an explicit call to sr_block_revalidate_disk just before disk_add() to ensure we always read check for a ready unit and read the TOC and then stop wiring up ->revalidate_disk.

[PATCH 5.8 042/186] batman-adv: bla: use netif_rx_ni when not in interrupt context

2020-09-08 Thread Greg Kroah-Hartman
From: Jussi Kivilinna [ Upstream commit 279e89b2281af3b1a9f04906e157992c19c9f163 ] batadv_bla_send_claim() gets called from worker thread context through batadv_bla_periodic_work(), thus netif_rx_ni needs to be used in that case. This fixes "NOHZ: local_softirq_pending 08" log messages seen

[PATCH 5.8 150/186] media: rc: uevent sysfs file races with rc_unregister_device()

2020-09-08 Thread Greg Kroah-Hartman
From: Sean Young commit 4f0835d6677dc69263f90f976524cb92b257d9f4 upstream. Only report uevent file contents if device still registered, else we might read freed memory. Reported-by: syzbot+ceef16277388d6f24...@syzkaller.appspotmail.com Cc: Hillf Danton Cc: # 4.16+ Signed-off-by: Sean Young

Re: [PATCH] x86/msr: do not warn on writes to OC_MAILBOX

2020-09-08 Thread Borislav Petkov
On Tue, Sep 08, 2020 at 12:18:38PM -0700, Sultan Alsawaf wrote: > I'd like to point out that on Intel's recent 14nm parts, undervolting > is not so much for squeezing every last drop of performance out of the > SoC as it is for necessity. Sounds to me that this undervolting functionality should

[PATCH v2 1/3] misc: fastrpc: fix indentation error in uapi header

2020-09-08 Thread Jonathan Marek
Use tabs instead of spaces. Fixes: 2419e55e532d ("misc: fastrpc: add mmap/unmap support") Signed-off-by: Jonathan Marek --- include/uapi/misc/fastrpc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uapi/misc/fastrpc.h b/include/uapi/misc/fastrpc.h index

Re: [PATCH V3] i2c: i2c-qcom-geni: Add shutdown callback for i2c

2020-09-08 Thread Stephen Boyd
Why is dri-devel on here? And linaro-mm-sig? Quoting Roja Rani Yarubandi (2020-09-07 06:07:31) > diff --git a/drivers/i2c/busses/i2c-qcom-geni.c > b/drivers/i2c/busses/i2c-qcom-geni.c > index dead5db3315a..b3609760909f 100644 > --- a/drivers/i2c/busses/i2c-qcom-geni.c > +++

[PATCH 5.8 087/186] cxgb4: fix thermal zone device registration

2020-09-08 Thread Greg Kroah-Hartman
From: Potnuri Bharat Teja [ Upstream commit 6b6382a857d824c0866056d5736bbcb597a922ed ] When multiple adapters are present in the system, pci hot-removing second adapter leads to the following warning as both the adapters registered thermal zone device with same thermal zone name/type.

[PATCH 5.8 122/186] xfs: dont update mtime on COW faults

2020-09-08 Thread Greg Kroah-Hartman
From: Mikulas Patocka commit b17164e258e3888d376a7434415013175d637377 upstream. When running in a dax mode, if the user maps a page with MAP_PRIVATE and PROT_WRITE, the xfs filesystem would incorrectly update ctime and mtime when the user hits a COW fault. This breaks building of the Linux

[PATCH 5.8 156/186] s390: fix GENERIC_LOCKBREAK dependency typo in Kconfig

2020-09-08 Thread Greg Kroah-Hartman
From: Eric Farman commit 114b9df419bf5db097b322ebb03fcf2f502f9380 upstream. Commit fa686453053b ("sched/rt, s390: Use CONFIG_PREEMPTION") changed a bunch of uses of CONFIG_PREEMPT to _PREEMPTION. Except in the Kconfig it used two T's. That's the only place in the system where that spelling

[PATCH 5.8 049/186] MIPS: mm: BMIPS5000 has inclusive physical caches

2020-09-08 Thread Greg Kroah-Hartman
From: Florian Fainelli [ Upstream commit dbfc95f98f0158958d1f1e6bf06d74be38dbd821 ] When the BMIPS generic cpu-feature-overrides.h file was introduced, cpu_has_inclusive_caches/MIPS_CPU_INCLUSIVE_CACHES was not set for BMIPS5000 CPUs. Correct this when we have initialized the MIPS secondary

[PATCH 5.8 094/186] perf tools: Correct SNOOPX field offset

2020-09-08 Thread Greg Kroah-Hartman
From: Al Grant [ Upstream commit 39c0a53b114d0317e5c4e76b631f41d133af5cb0 ] perf_event.h has macros that define the field offsets in the data_src bitmask in perf records. The SNOOPX and REMOTE offsets were both 37. These are distinct fields, and the bitfield layout in perf_mem_data_src

Re: [PATCH] mm: memcg: yield cpu when we fail to charge pages

2020-09-08 Thread Julius Hemanth Pitti (jpitti)
On Tue, 2020-09-08 at 12:21 -0700, Roman Gushchin wrote: > On Tue, Sep 08, 2020 at 11:50:51AM -0700, Julius Hemanth Pitti wrote: > > For non root CG, in try_charge(), we keep trying > > to charge until we succeed. On non-preemptive > > kernel, when we are OOM, this results in holding > > CPU

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

2020-09-08 Thread Mickaël Salaün
On 08/09/2020 17:24, Mimi Zohar wrote: > On Tue, 2020-09-08 at 14:43 +0200, Mickaël Salaün wrote: >> On 08/09/2020 14:28, Mimi Zohar wrote: >>> 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

Re: [PATCH v3] media: uvcvideo: Convey full colorspace information to V4L2

2020-09-08 Thread Adam Goode
On Thu, Sep 3, 2020 at 11:04 PM Laurent Pinchart wrote: > > Hi Adam, > > Thank you for the patch. > > On Wed, Sep 02, 2020 at 04:06:17PM -0400, Adam Goode wrote: > > The Color Matching Descriptor has been present in USB cameras since > > the original version of UVC, but it has never been fully

[PATCH 5.8 131/186] btrfs: tree-checker: fix the error message for transid error

2020-09-08 Thread Greg Kroah-Hartman
From: Qu Wenruo commit f96d6960abbc52e26ad124e69e6815283d3e1674 upstream. The error message for inode transid is the same as for inode generation, which makes us unable to detect the real problem. Reported-by: Tyler Richmond Fixes: 496245cac57e ("btrfs: tree-checker: Verify inode item") CC:

[PATCH 5.8 098/186] net: gemini: Fix another missing clk_disable_unprepare() in probe

2020-09-08 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit eb0f3bc463d59d86402f19c59aa44e82dc3fab6d ] We recently added some calls to clk_disable_unprepare() but we missed the last error path if register_netdev() fails. I made a couple cleanups so we avoid mistakes like this in the future. First I reversed the "if

[PATCH 5.8 110/186] iommu/vt-d: Serialize IOMMU GCMD register modifications

2020-09-08 Thread Greg Kroah-Hartman
From: Lu Baolu [ Upstream commit 6e4e9ec65078093165463c13d4eb92b3e8d7b2e8 ] The VT-d spec requires (10.4.4 Global Command Register, GCMD_REG General Description) that: If multiple control fields in this register need to be modified, software must serialize the modifications through multiple

[PATCH 5.8 058/186] net: systemport: Fix memleak in bcm_sysport_probe

2020-09-08 Thread Greg Kroah-Hartman
From: Dinghao Liu [ Upstream commit 7ef1fc57301f3cef7201497aa27e89ccb91737fe ] When devm_kcalloc() fails, dev should be freed just like what we've done in the subsequent error paths. Fixes: 7b78be48a8eb6 ("net: systemport: Dynamically allocate number of TX rings") Signed-off-by: Dinghao Liu

[PATCH 5.8 081/186] net: dsa: mt7530: fix advertising unsupported 1000baseT_Half

2020-09-08 Thread Greg Kroah-Hartman
From: Landen Chao [ Upstream commit f272285f6abb9178d029375599626baf3d5f4e8a ] Remove 1000baseT_Half to advertise correct hardware capability in phylink_validate() callback function. Fixes: 38f790a80560 ("net: dsa: mt7530: Add support for port 5") Signed-off-by: Landen Chao Reviewed-by:

[PATCH 5.8 138/186] ALSA: pcm: oss: Remove superfluous WARN_ON() for mulaw sanity check

2020-09-08 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 949a1ebe8cea7b342085cb6a4946b498306b9493 upstream. The PCM OSS mulaw plugin has a check of the format of the counter part whether it's a linear format. The check is with snd_BUG_ON() that emits WARN_ON() when the debug config is set, and it confuses syzkaller as if it

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

2020-09-08 Thread Manivannan Sadhasivam
On 0908, Amit Kucheria wrote: > On Tue, Sep 8, 2020 at 5:18 PM Amit Kucheria wrote: > > > > On Tue, Sep 8, 2020 at 4:48 PM Viresh Kumar wrote: > > > > > > On 08-09-20, 16:41, Manivannan Sadhasivam wrote: > > > > On 0908, Viresh Kumar wrote: > > > > > On 08-09-20, 13:27, Manivannan Sadhasivam

Re: [PATCH 1/3] dt-bindings: pci: rcar-pci-ep: Document r8a774e1

2020-09-08 Thread Bjorn Helgaas
On Tue, Sep 08, 2020 at 02:26:01PM -0500, Bjorn Helgaas wrote: > On Fri, Sep 04, 2020 at 11:38:49AM +0100, Lad Prabhakar wrote: > > Document the support for R-Car PCIe EP on R8A774E1 SoC device. > > > > Signed-off-by: Lad Prabhakar > > Reviewed-by: Biju Das > > --- > >

[PATCH 5.8 032/186] drm/amd/display: Revert HDCP disable sequence change

2020-09-08 Thread Greg Kroah-Hartman
From: Jaehyun Chung [ Upstream commit b61f05622ace5b9498ae279cdfd1c9f0c1ce3f75 ] [Why] Revert HDCP disable sequence change that blanks stream before disabling HDCP. PSP and HW teams are currently investigating the root cause of why HDCP cannot be disabled before stream blank, which is expected

[PATCH 5.8 128/186] btrfs: set the correct lockdep class for new nodes

2020-09-08 Thread Greg Kroah-Hartman
From: Josef Bacik commit ad24466588ab7d7c879053c5afd919b0c555fec0 upstream. When flipping over to the rw_semaphore I noticed I'd get a lockdep splat in replace_path(), which is weird because we're swapping the reloc root with the actual target root. Turns out this is because we're using the

[PATCH 5.8 100/186] net: dp83867: Fix WoL SecureOn password

2020-09-08 Thread Greg Kroah-Hartman
From: Dan Murphy [ Upstream commit 8b4a11c67da538504d60ae917ffe5254f59b1248 ] Fix the registers being written to as the values were being over written when writing the same registers. Fixes: caabee5b53f5 ("net: phy: dp83867: support Wake on LAN") Signed-off-by: Dan Murphy Reviewed-by: Andrew

[PATCH 5.8 052/186] perf sched timehist: Fix use of CPU list with summary option

2020-09-08 Thread Greg Kroah-Hartman
From: David Ahern [ Upstream commit a74eaf1605d42391c2357a70e94e5a2c7780fea9 ] Do not update thread stats or show idle summary unless CPU is in the list of interest. Fixes: c30d630d1bcfad8d ("perf sched timehist: Add support for filtering on CPU") Signed-off-by: David Ahern Acked-by:

[PATCH 5.8 013/186] habanalabs: set clock gating according to mask

2020-09-08 Thread Greg Kroah-Hartman
From: Ofir Bitton [ Upstream commit f44d23b9095abd91dad9f5f3add2a3149833ec83 ] Once clock gating is set we enable clock gating according to mask, we should also disable clock gating according to relevant bits. Signed-off-by: Ofir Bitton Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay

Re: [PATCH v6 00/20] gpio: cdev: add uAPI v2

2020-09-08 Thread Bartosz Golaszewski
On Tue, Sep 8, 2020 at 5:24 PM Shuah Khan wrote: > > On 9/4/20 7:02 AM, Bartosz Golaszewski wrote: > > On Fri, Sep 4, 2020 at 2:52 PM Kent Gibson wrote: > >> > >> On Thu, Sep 03, 2020 at 04:37:50PM +0800, Kent Gibson wrote: > >>> On Thu, Sep 03, 2020 at 10:02:04AM +0200, Bartosz Golaszewski

[PATCH 5.8 034/186] drm/amd/display: Keep current gain when ABM disable immediately

2020-09-08 Thread Greg Kroah-Hartman
From: Brandon Syu [ Upstream commit cba4b52e431e5de3d8012281cfe194f1c39a9052 ] [Why] When system enters s3/s0i3, backlight PWM would set user level. [How] ABM disable function add keep current gain to avoid it. Signed-off-by: Brandon Syu Reviewed-by: Josip Pavic Acked-by: Eryk Brol

[PATCH 5.8 037/186] xen/xenbus: Fix granting of vmallocd memory

2020-09-08 Thread Greg Kroah-Hartman
From: Simon Leiner [ Upstream commit d742db70033c745e410523e00522ee0cfe2aa416 ] On some architectures (like ARM), virt_to_gfn cannot be used for vmalloc'd memory because of its reliance on virt_to_phys. This patch introduces a check for vmalloc'd addresses and obtains the PFN using

[PATCH 5.8 014/186] habanalabs: proper handling of alloc size in coresight

2020-09-08 Thread Greg Kroah-Hartman
From: Ofir Bitton [ Upstream commit 36545279f076afeb77104f5ffeab850da3b6d107 ] Allocation size can go up to 64bit but truncated to 32bit, we should make sure it is not truncated and validate no address overflow. Signed-off-by: Ofir Bitton Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay

Re: [PATCH] fbdev: sm712fb: handle ioremap() errors in probe

2020-09-08 Thread Bartlomiej Zolnierkiewicz
On 7/13/20 10:05 AM, Evgeny Novikov wrote: > smtcfb_pci_probe() does not handle ioremap() errors for case 0x720. The > patch fixes that exactly like for case 0x710/2. > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Evgeny Novikov Applied to drm-misc-next

Re: [PATCH 1/3] dt-bindings: pci: rcar-pci-ep: Document r8a774e1

2020-09-08 Thread Bjorn Helgaas
On Fri, Sep 04, 2020 at 11:38:49AM +0100, Lad Prabhakar wrote: > Document the support for R-Car PCIe EP on R8A774E1 SoC device. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Biju Das > --- > Documentation/devicetree/bindings/pci/rcar-pci-ep.yaml | 1 + > 1 file changed, 1 insertion(+) > >

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

2020-09-08 Thread Jaroslav Kysela
Dne 08. 09. 20 v 16:33 Mark Brown napsal(a): > On Tue, Sep 08, 2020 at 02:28:48PM +0200, Jaroslav Kysela wrote: >> Dne 08. 09. 20 v 14:11 Mark Brown napsal(a): > >>> I don't have this patch and since I seem to get copied on quite a lot of >>> soundwire only serieses I just delete them unread

Re: [RFC PATCH] x86/mce: Make mce_rdmsrl() do a plain RDMSR only

2020-09-08 Thread Borislav Petkov
On Tue, Sep 08, 2020 at 03:07:05PM +, Luck, Tony wrote: > We can even get a nice diagnostic message since the handler > has access to "regs". It can print which MSR (regs->cx) and > where it happened (regs->ip). > > Which sounds like you might want a specific ex_handler_rdmsr > function

Re: [PATCH 4/7] cpufreq: qcom-hw: Make use of of_match data for offsets and row size

2020-09-08 Thread Bjorn Andersson
On Tue 08 Sep 02:57 CDT 2020, Manivannan Sadhasivam wrote: > For preparing the driver to handle further SoC revisions, let's use the > of_match data for getting the device specific offsets and row size instead > of defining them globally. > > Signed-off-by: Manivannan Sadhasivam > --- >

Re: v5.9-rc3-rt3 boot time networking lockdep splat

2020-09-08 Thread Mike Galbraith
On Tue, 2020-09-08 at 17:12 +0200, Sebastian Andrzej Siewior wrote: > On 2020-09-05 07:19:10 [+0200], Mike Galbraith wrote: > > Lappy, which does not use bridge, boots clean... but lock leakage > > pretty darn quickly inspires lockdep to craps its drawers. > > > > [ 209.00] BUG:

[PATCH v2] scsi: hpsa: fix memory leak in hpsa_init_one

2020-09-08 Thread Keita Suzuki
When hpsa_scsi_add_host fails, h->lastlogicals is leaked since it lacks free in the error handler. Fix this by adding free when hpsa_scsi_add_host fails. This patch also renames the numbered labels to detailed names. Fixes: cf47723763a7 ("hpsa: correct initialization order issue")

Re: [PATCH V2 3/3] perf/x86: Reset the dirty counter to prevent the leak for an RDPMC task

2020-09-08 Thread peterz
On Mon, Sep 07, 2020 at 06:01:15PM +0200, pet...@infradead.org wrote: > On Fri, Aug 21, 2020 at 12:57:54PM -0700, kan.li...@linux.intel.com wrote: > > diff --git a/arch/x86/events/core.c b/arch/x86/events/core.c > > index 0f3d01562ded..fa08d810dcd2 100644 > > --- a/arch/x86/events/core.c > > +++

Re: [PATCH RFC 2/7] bridge: cfm: Add BRIDGE_CFM to Kconfig.

2020-09-08 Thread Nikolay Aleksandrov
On Fri, 2020-09-04 at 09:15 +, Henrik Bjoernlund wrote: > This makes it possible to include or exclude the CFM > protocol according to 802.1Q section 12.14. > > Signed-off-by: Henrik Bjoernlund > --- > net/bridge/Kconfig | 11 +++ > net/bridge/br_device.c | 3 +++ >

[PATCH 5.8 065/186] net: ethernet: ti: cpsw: fix clean up of vlan mc entries for host port

2020-09-08 Thread Greg Kroah-Hartman
From: Murali Karicheri [ Upstream commit 99d469fc64d06f0c81c0fe2a1c01645a67e0cbf0 ] To flush the vid + mc entries from ALE, which is required when a VLAN interface is removed, driver needs to call cpsw_ale_flush_multicast() with ALE_PORT_HOST for port mask as these entries are added only for

Re: [PATCH v2 1/1] edac: fsl_ddr_edac: fix expected data message

2020-09-08 Thread Borislav Petkov
On Fri, Sep 04, 2020 at 03:32:58PM +0200, Gregor Herburger wrote: > That shouldn't happen. The whole if-block is only executed when a single > bit correctable error has occured (DDR_EDE_SBE). So we always should have > bad_data_bit or bad_ecc_bit (exclusively). Ooh, that sbe_ecc_decode()

[PATCH 5.8 136/186] ALSA: usb-audio: Add basic capture support for Pioneer DJ DJM-250MK2

2020-09-08 Thread Greg Kroah-Hartman
From: František Kučera commit 14335d8b9e1a2bf006f9d969a103f9731cabb210 upstream. This patch extends support for DJM-250MK2 and allows recording. However, DVS is not possible yet (see the comment in code). Signed-off-by: František Kučera Cc: Link:

[PATCH 5.8 095/186] net: ethernet: mlx4: Fix memory allocation in mlx4_buddy_init()

2020-09-08 Thread Greg Kroah-Hartman
From: Shung-Hsi Yu [ Upstream commit cbedcb044e9cc4e14bbe6658111224bb923094f4 ] On machines with much memory (> 2 TByte) and log_mtts_per_seg == 0, a max_order of 31 will be passed to mlx_buddy_init(), which results in s = BITS_TO_LONGS(1 << 31) becoming a negative value, leading to

[PATCH 5.8 093/186] perf intel-pt: Fix corrupt data after perf inject from

2020-09-08 Thread Greg Kroah-Hartman
From: Al Grant [ Upstream commit a347306fbec5dcaf7c276777b11d530eab6a4526 ] Commit 42bbabed09ce6208 ("perf tools: Add hw_idx in struct branch_stack") changed the format of branch stacks in perf samples. When samples use this new format, a flag must be set in the corresponding event.

[PATCH 5.8 127/186] btrfs: allocate scrub workqueues outside of locks

2020-09-08 Thread Greg Kroah-Hartman
From: Josef Bacik commit e89c4a9c8e6ce3a84cab4f342687d3fbbb1234eb upstream. I got the following lockdep splat while testing: == WARNING: possible circular locking dependency detected 5.8.0-rc7-00172-g021118712e59 #932 Not tainted

[PATCH 5.8 090/186] block: fix locking in bdev_del_partition

2020-09-08 Thread Greg Kroah-Hartman
From: Christoph Hellwig [ Upstream commit 08fc1ab6d748ab1a690fd483f41e2938984ce353 ] We need to hold the whole device bd_mutex to protect against other thread concurrently deleting out partition before we get to it, and thus causing a use after free. Fixes: cddae808aeb7 ("block: pass a

[PATCH 5.8 119/186] x86/entry: Fix AC assertion

2020-09-08 Thread Greg Kroah-Hartman
From: Peter Zijlstra commit 662a0221893a3d58aa72719671844264306f6e4b upstream. The WARN added in commit 3c73b81a9164 ("x86/entry, selftests: Further improve user entry sanity checks") unconditionally triggers on a IVB machine because it does not support SMAP. For !SMAP hardware the CLAC/STAC

[PATCH net-next] cipso: fix 'audit_secid' kernel-doc warning in cipso_ipv4.c

2020-09-08 Thread Wang Hai
Fixes the following W=1 kernel build warning(s): net/ipv4/cipso_ipv4.c:510: warning: Excess function parameter 'audit_secid' description in 'cipso_v4_doi_remove' Reported-by: Hulk Robot Signed-off-by: Wang Hai --- net/ipv4/cipso_ipv4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 5.8 039/186] dmaengine: of-dma: Fix of_dma_router_xlates of_dma_xlate handling

2020-09-08 Thread Greg Kroah-Hartman
From: Peter Ujfalusi [ Upstream commit 5b2aa9f918f6837ae943557f8cec02c34fcf80e7 ] of_dma_xlate callback can return ERR_PTR as well NULL in case of failure. If error code is returned (not NULL) then the route should be released and the router should not be registered for the channel. Fixes:

[PATCH 5.8 157/186] libata: implement ATA_HORKAGE_MAX_TRIM_128M and apply to Sandisks

2020-09-08 Thread Greg Kroah-Hartman
From: Tejun Heo commit 3b5455636fe26ea21b4189d135a424a6da016418 upstream. All three generations of Sandisk SSDs lock up hard intermittently. Experiments showed that disabling NCQ lowered the failure rate significantly and the kernel has been disabling NCQ for some models of SD7's and 8's, which

[PATCH 5.8 152/186] block: allow for_each_bvec to support zero len bvec

2020-09-08 Thread Greg Kroah-Hartman
From: Ming Lei commit 7e24969022cbd61ddc586f14824fc205661bb124 upstream. Block layer usually doesn't support or allow zero-length bvec. Since commit 1bdc76aea115 ("iov_iter: use bvec iterator to implement iterate_bvec()"), iterate_bvec() switches to bvec iterator. However, Al mentioned that

[PATCH 5.8 060/186] net: arc_emac: Fix memleak in arc_mdio_probe

2020-09-08 Thread Greg Kroah-Hartman
From: Dinghao Liu [ Upstream commit e2d79cd8875fa8c3cc7defa98a8cc99a1ed0c62f ] When devm_gpiod_get_optional() fails, bus should be freed just like when of_mdiobus_register() fails. Fixes: 1bddd96cba03d ("net: arc_emac: support the phy reset for emac driver") Signed-off-by: Dinghao Liu

[PATCH 5.8 096/186] fix regression in "epoll: Keep a reference on files added to the check list"

2020-09-08 Thread Greg Kroah-Hartman
From: Al Viro [ Upstream commit 77f4689de17c0887775bb77896f4cc11a39bf848 ] epoll_loop_check_proc() can run into a file already committed to destruction; we can't grab a reference on those and don't need to add them to the set for reverse path check anyway. Tested-by: Marc Zyngier Fixes:

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

2020-09-08 Thread Lakshmi Ramasubramanian
On 9/8/20 4:58 AM, Stephen Smalley wrote: 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

[PATCH 5.8 057/186] net: hns: Fix memleak in hns_nic_dev_probe

2020-09-08 Thread Greg Kroah-Hartman
From: Dinghao Liu [ Upstream commit 100e3345c6e719d2291e1efd5de311cc24bb9c0b ] hns_nic_dev_probe allocates ndev, but not free it on two error handling paths, which may lead to memleak. Fixes: 63434888aaf1b ("net: hns: net: hns: enet adds support of acpi") Signed-off-by: Dinghao Liu

Re: [PATCH] mm: memcg: yield cpu when we fail to charge pages

2020-09-08 Thread Roman Gushchin
On Tue, Sep 08, 2020 at 11:50:51AM -0700, Julius Hemanth Pitti wrote: > For non root CG, in try_charge(), we keep trying > to charge until we succeed. On non-preemptive > kernel, when we are OOM, this results in holding > CPU forever. > > On SMP systems, this doesn't create a big problem >

[PATCH 5.8 084/186] nvme: fix controller instance leak

2020-09-08 Thread Greg Kroah-Hartman
From: Keith Busch [ Upstream commit 192f6c29bb28bfd0a17e6ad331d09f1ec84143d0 ] If the driver has to unbind from the controller for an early failure before the subsystem has been set up, there won't be a subsystem holding the controller's instance, so the controller needs to free its own

[PATCH 5.8 085/186] netfilter: conntrack: do not auto-delete clash entries on reply

2020-09-08 Thread Greg Kroah-Hartman
From: Florian Westphal [ Upstream commit c46172147ebbeb70094db48d76ab7945d96c638b ] Its possible that we have more than one packet with the same ct tuple simultaneously, e.g. when an application emits n packets on same UDP socket from multiple threads. NAT rules might be applied to those

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

2020-09-08 Thread Greg Kroah-Hartman
From: Yu Kuai [ Upstream commit 3832b78b3ec2cf51e07102f9b4480e343459b20f ] If of_find_device_by_node() succeed, at_dma_xlate() doesn't have a corresponding put_device(). Thus add put_device() to fix the exception handling for this function implementation. Fixes: bbe89c8e3d59 ("at_hdmac: move

Re: [PATCH RFC 7/7] bridge: cfm: Bridge port remove.

2020-09-08 Thread Nikolay Aleksandrov
On Fri, 2020-09-04 at 09:15 +, Henrik Bjoernlund wrote: > This is addition of CFM functionality to delete MEP instances > on a port that is removed from the bridge. > A MEP can only exist on a port that is related to a bridge. > > Signed-off-by: Henrik Bjoernlund > --- >

[PATCH 5.8 112/186] thermal: qcom-spmi-temp-alarm: Dont suppress negative temp

2020-09-08 Thread Greg Kroah-Hartman
From: Veera Vegivada [ Upstream commit 0ffdab6f2dea9e23ec33230de24e492ff0b186d9 ] Currently driver is suppressing the negative temperature readings from the vadc. Consumers of the thermal zones need to read the negative temperature too. Don't suppress the readings. Fixes: c610afaa21d3c6e

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

2020-09-08 Thread Bjorn Andersson
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 Reviewed-by: Bjorn Andersson > --- >

[PATCH 5.8 051/186] mmc: sdhci-acpi: Fix HS400 tuning for AMDI0040

2020-09-08 Thread Greg Kroah-Hartman
From: Raul E Rangel [ Upstream commit 61d7437ed13906984c44697970ee792ac6271a31 ] The AMD eMMC Controller can only use the tuned clock while in HS200 and HS400 mode. If we switch to a different mode, we need to disable the tuned clock. If we have previously performed tuning and switch back to

Re: [PATCH RFC 00/10] KFENCE: A low-overhead sampling-based memory safety error detector

2020-09-08 Thread Marco Elver
On Tue, Sep 08, 2020 at 07:52AM -0700, Dave Hansen wrote: > On 9/7/20 6:40 AM, Marco Elver wrote: > > KFENCE is designed to be enabled in production kernels, and has near > > zero performance overhead. Compared to KASAN, KFENCE trades performance > > for precision. > > Could you talk a little

Re: [PATCH rdma-next 4/4] RDMA/umem: Move to allocate SG table from pages

2020-09-08 Thread Jason Gunthorpe
On Mon, Sep 07, 2020 at 09:29:26AM +0200, Christoph Hellwig wrote: > On Thu, Sep 03, 2020 at 03:18:53PM +0300, Leon Romanovsky wrote: > > From: Maor Gottlieb > > > > Remove the implementation of ib_umem_add_sg_table and instead > > call to sg_alloc_table_append which already has the logic to > >

[PATCH 5.8 083/186] nvmet-fc: Fix a missed _irqsave version of spin_lock in nvmet_fc_fod_op_done()

2020-09-08 Thread Greg Kroah-Hartman
From: Christophe JAILLET [ Upstream commit 70e37988db94aba607d5491a94f80ba08e399b6b ] The way 'spin_lock()' and 'spin_lock_irqsave()' are used is not consistent in this function. Use 'spin_lock_irqsave()' also here, as there is no guarantee that interruptions are disabled at that point,

Re: v5.9-rc3-rt3 boot time networking lockdep splat

2020-09-08 Thread Sebastian Andrzej Siewior
On 2020-09-08 17:59:31 [+0200], Mike Galbraith wrote: > > I have no idea how to debug this based on this report. Can you narrow > > it down to something? > > I instrumented what I presume is still this problem once upon a time, > structures containing locks are allocated/initialized/freed again

[PATCH 5.8 088/186] net: ethernet: ti: am65-cpsw: fix rmii 100Mbit link mode

2020-09-08 Thread Greg Kroah-Hartman
From: Grygorii Strashko [ Upstream commit c2f89219f559502c9292d79f695bab9dcec532d1 ] In RMII link mode it's required to set bit 15 IFCTL_A in MAC_SL MAC_CONTROL register to enable support for 100Mbit link speed. Fixes: 93a76530316a ("net: ethernet: ti: introduce am65x/j721e gigabit eth

[PATCH 5.8 109/186] x86, fakenuma: Fix invalid starting node ID

2020-09-08 Thread Greg Kroah-Hartman
From: Huang Ying [ Upstream commit ccae0f36d500aef727f98acd8d0601e6b262a513 ] Commit: cc9aec03e58f ("x86/numa_emulation: Introduce uniform split capability") uses "-1" as the starting node ID, which causes the strange kernel log as follows, when "numa=fake=32G" is added to the kernel

[PATCH 5.8 064/186] gtp: add GTPA_LINK info to msg sent to userspace

2020-09-08 Thread Greg Kroah-Hartman
From: Nicolas Dichtel [ Upstream commit b274e47d9e3f4dcd4ad4028a316ec22dc4533ac7 ] During a dump, this attribute is essential, it enables the userspace to know on which interface the context is linked to. Fixes: 459aa660eb1d ("gtp: add initial driver for datapath of GPRS Tunneling Protocol

[PATCH 5.8 135/186] ALSA: ca0106: fix error code handling

2020-09-08 Thread Greg Kroah-Hartman
From: Tong Zhang commit ee0761d1d8222bcc5c86bf10849dc86cf008557c upstream. snd_ca0106_spi_write() returns 1 on error, snd_ca0106_pcm_power_dac() is returning the error code directly, and the caller is expecting an negative error code Signed-off-by: Tong Zhang Cc: Link:

Re: [PATCH] x86/msr: do not warn on writes to OC_MAILBOX

2020-09-08 Thread Sultan Alsawaf
On Tue, Sep 08, 2020 at 08:01:12PM +0200, Borislav Petkov wrote: > On Tue, Sep 08, 2020 at 07:42:12PM +0200, Jason A. Donenfeld wrote: > > Are you prepared to track down all the MSRs that might maybe do > > something naughty? > > I'm not prepared - that's why this MSR filtering. To block *all*

Re: [PATCH] tracing: fix double free

2020-09-08 Thread Zanussi, Tom
Hi Tom, On 9/7/2020 8:58 AM, t...@redhat.com wrote: From: Tom Rix clang static analyzer reports this problem trace_events_hist.c:3824:3: warning: Attempt to free released memory kfree(hist_data->attrs->var_defs.name[i]); In parse_var_defs() if there is a problem allocating

[PATCH 5.8 153/186] block: ensure bdi->io_pages is always initialized

2020-09-08 Thread Greg Kroah-Hartman
From: Jens Axboe commit de1b0ee490eafdf65fac9eef9925391a8369f2dc upstream. If a driver leaves the limit settings as the defaults, then we don't initialize bdi->io_pages. This means that file systems may need to work around bdi->io_pages == 0, which is somewhat messy. Initialize the default

[PATCH 5.8 118/186] tracing/kprobes, x86/ptrace: Fix regs argument order for i386

2020-09-08 Thread Greg Kroah-Hartman
From: Vamshi K Sthambamkadi commit 2356bb4b8221d7dc8c7beb810418122ed90254c9 upstream. On i386, the order of parameters passed on regs is eax,edx,and ecx (as per regparm(3) calling conventions). Change the mapping in regs_get_kernel_argument(), so that arg1=ax arg2=dx, and arg3=cx. Running the

[PATCH 5.8 056/186] netfilter: nf_tables: fix destination register zeroing

2020-09-08 Thread Greg Kroah-Hartman
From: Florian Westphal [ Upstream commit 1e105e6afa6c3d32bfb52c00ffa393894a525c27 ] Following bug was reported via irc: nft list ruleset set knock_candidates_ipv4 { type ipv4_addr . inet_service size 65535 elements = { 127.0.0.1 . 123, 127.0.0.1 . 123 }

[PATCH 5.8 059/186] ravb: Fixed to be able to unload modules

2020-09-08 Thread Greg Kroah-Hartman
From: Yuusuke Ashizuka [ Upstream commit 1838d6c62f57836639bd3d83e7855e0ee4f6defc ] When this driver is built as a module, I cannot rmmod it after insmoding it. This is because that this driver calls ravb_mdio_init() at the time of probe, and module->refcnt is incremented by

Re: [PATCH] omapfb: fix spelling mistake "propert" -> "property"

2020-09-08 Thread Bartlomiej Zolnierkiewicz
On 8/5/20 12:28 PM, Colin King wrote: > From: Colin Ian King > > There is a spelling mistake in a pr_err message. Fix it. > > Signed-off-by: Colin Ian King Applied to drm-misc-next tree, thanks. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R Institute Poland Samsung Electronics >

[PATCH 5.8 079/186] media: i2c: imx214: select V4L2_FWNODE

2020-09-08 Thread Greg Kroah-Hartman
From: Jacopo Mondi [ Upstream commit bca82e3557ee1fbfbdacb09033a2d81ac76c86eb ] After the recent conversion of the media build infrastructure to select V4L2 components instead of depending on their presence, which took place in: 32a363d0b0b14 ("media: Kconfig files: use select for V4L2 subdevs

[PATCH 5.8 077/186] media: cedrus: Add missing v4l2_ctrl_request_hdl_put()

2020-09-08 Thread Greg Kroah-Hartman
From: Ezequiel Garcia [ Upstream commit b30063976f29fc221a99d18d37d22ca035068aa9 ] The check for a required control in the request was missing a call to v4l2_ctrl_request_hdl_put() in the error path. Fix it. Fixes: 50e761516f2b8c ("media: platform: Add Cedrus VPU decoder driver")

[PATCH 5.8 097/186] net: bcmgenet: fix mask check in bcmgenet_validate_flow()

2020-09-08 Thread Greg Kroah-Hartman
From: Denis Efremov [ Upstream commit 1996cf46e4673a25ef2478eb266714f409a98221 ] VALIDATE_MASK(eth_mask->h_source) is checked twice in a row in bcmgenet_validate_flow(). Add VALIDATE_MASK(eth_mask->h_dest) instead. Fixes: 3e370952287c ("net: bcmgenet: add support for ethtool rxnfc flows")

[PATCH 5.8 086/186] opp: Dont drop reference for an OPP table that was never parsed

2020-09-08 Thread Greg Kroah-Hartman
From: Viresh Kumar [ Upstream commit 922ff0759a16299e24cacfc981ac07914d8f1826 ] dev_pm_opp_remove_table() should drop a reference to the OPP table only if the DT OPP table was parsed earlier with a call to dev_pm_opp_of_add_table() earlier. Else it may end up dropping the reference to the OPP

Re: [PATCH v3 00/12] video: fbdev: use generic power management

2020-09-08 Thread Bartlomiej Zolnierkiewicz
On 8/19/20 8:56 PM, Vaibhav Gupta wrote: > Linux Kernel Mentee: Remove Legacy Power Management. > > The purpose of this patch series is to upgrade power management in video fbdev > drivers. This has been done by upgrading .suspend() and .resume() callbacks. > > The upgrade makes sure that the

[PATCH 5.8 092/186] perf cs-etm: Fix corrupt data after perf inject from

2020-09-08 Thread Greg Kroah-Hartman
From: Al Grant [ Upstream commit f5f8e7e55fbdb4fdddec73518e23c48083108fbb ] Commit 42bbabed09ce6208 ("perf tools: Add hw_idx in struct branch_stack") changed the format of branch stacks in perf samples. When samples use this new format, a flag must be set in the corresponding event.

[PATCH 5.8 132/186] Bluetooth: Return NOTIFY_DONE for hci_suspend_notifier

2020-09-08 Thread Greg Kroah-Hartman
From: Max Chou [ Upstream commit 24b065727ceba53cc5bec0e725672417154df24f ] The original return is NOTIFY_STOP, but notifier_call_chain would stop the future call for register_pm_notifier even registered on other Kernel modules with the same priority which value is zero. Signed-off-by: Max

Re: [PATCH v6 00/20] gpio: cdev: add uAPI v2

2020-09-08 Thread Shuah Khan
On 9/8/20 9:54 AM, Bartosz Golaszewski wrote: On Tue, Sep 8, 2020 at 5:24 PM Shuah Khan wrote: On 9/4/20 7:02 AM, Bartosz Golaszewski wrote: On Fri, Sep 4, 2020 at 2:52 PM Kent Gibson wrote: On Thu, Sep 03, 2020 at 04:37:50PM +0800, Kent Gibson wrote: On Thu, Sep 03, 2020 at 10:02:04AM

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

2020-09-08 Thread Michal Hocko
On Tue 08-09-20 10:05:11, Zi Yan wrote: > 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 >

[PATCH 5.8 018/186] drm/msm/a6xx: fix gmu start on newer firmware

2020-09-08 Thread Greg Kroah-Hartman
From: Dmitry Baryshkov [ Upstream commit f5749d6181fa7df5ae741788e5d96f593d3a60b6 ] New Qualcomm firmware has changed a way it reports back the 'started' event. Support new register values. Signed-off-by: Dmitry Baryshkov Signed-off-by: Rob Clark Signed-off-by: Sasha Levin ---

[PATCH 5.8 070/186] 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 5.8 073/186] xfs: finish dfops on every insert range shift iteration

2020-09-08 Thread Greg Kroah-Hartman
From: Brian Foster [ Upstream commit 9c516e0e4554e8f26ab73d46cbc789d7d8db664d ] The recent change to make insert range an atomic operation used the incorrect transaction rolling mechanism. The explicit transaction roll does not finish deferred operations. This means that intents for rmapbt

[PATCH 5.8 038/186] fsldma: fix very broken 32-bit ppc ioread64 functionality

2020-09-08 Thread Greg Kroah-Hartman
From: Linus Torvalds [ Upstream commit 0a4c56c80f90797e9b9f8426c6aae4c0cf1c9785 ] Commit ef91bb196b0d ("kernel.h: Silence sparse warning in lower_32_bits") caused new warnings to show in the fsldma driver, but that commit was not to blame: it only exposed some very incorrect code that tried to

[PATCH 5.8 089/186] MIPS: perf: Fix wrong check condition of Loongson event IDs

2020-09-08 Thread Greg Kroah-Hartman
From: Tiezhu Yang [ Upstream commit a231995700c392c0807da95deea231b23fc51a3c ] According to the user's manual chapter 8.2.1 of Loongson 3A2000 CPU [1] and 3A3000 CPU [2], we should take some event IDs such as 274, 358, 359 and 360 as valid in the check condition, otherwise they are recognized

Re: [PATCH 4.19 69/88] ALSA: firewire-digi00x: exclude Avid Adrenaline from detection

2020-09-08 Thread simon
On 2020-09-08 09:26, Greg Kroah-Hartman wrote: From: Takashi Sakamoto commit acd46a6b6de88569654567810acad2b0a0a25cea upstream. Avid Adrenaline is reported that ALSA firewire-digi00x driver is bound to. However, as long as he investigated, the design of this model is hardly similar to the

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