Re: [PATCH net-next 0/1] Support for VLAN interface over HSR/PRP

2020-09-08 Thread Willem de Bruijn
> > >>> > > >>> Shouldn't it show vlan_do_receive() ? > > >>> > > >>> if (skb_vlan_tag_present(skb)) { > > >>> if (pt_prev) { > > >>> ret = deliver_skb(skb, pt_prev, orig_dev); > > >>> pt_prev = NULL; > > >>> } > > >>> if

[PATCH] sched/topology: Move sd_flag_debug out of #ifdef CONFIG_SYSCTL

2020-09-08 Thread Valentin Schneider
The last sd_flag_debug shuffle inadvertently moved its definition within an #ifdef CONFIG_SYSCTL region. While CONFIG_SYSCTL is indeed required to produce the sched domain ctl interface (which uses sd_flag_debug to output flag names), it isn't required to run any assertion on the sched_domain

Re: [v4,2/4] dt-binding: reset-controller: ti: add 'mediatek,infra-reset' to compatible

2020-09-08 Thread Rob Herring
On Wed, Sep 2, 2020 at 5:26 PM Suman Anna wrote: > > Hi Rob, > > On 8/26/20 6:09 AM, Crystal Guo wrote: > > On Wed, 2020-08-26 at 03:02 +0800, Rob Herring wrote: > >> On Mon, Aug 17, 2020 at 11:03:22AM +0800, Crystal Guo wrote: > >>> The TI syscon reset controller provides a common reset

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

2020-09-08 Thread Al Viro
On Tue, Sep 08, 2020 at 01:06:56PM +, Hao Lee wrote: > 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

Re: [PATCH v3 1/8] iommu/arm-smmu: Refactor context bank allocation

2020-09-08 Thread Jordan Crouse
On Tue, Sep 08, 2020 at 06:42:06PM +, Jordan Crouse wrote: > On Fri, Sep 04, 2020 at 03:55:06PM +, Bjorn Andersson wrote: > > Extract the conditional invocation of the platform defined > > alloc_context_bank() to a separate function to keep > > arm_smmu_init_domain_context() cleaner. > >

Re: [PATCH] seccomp: don't leave dangling ->notif if file allocation fails

2020-09-08 Thread Kees Cook
On Wed, 2 Sep 2020 08:09:53 -0600, Tycho Andersen wrote: > Christian and Kees both pointed out that this is a bit sloppy to open-code > both places, and Christian points out that we leave a dangling pointer to > ->notif if file allocation fails. Since we check ->notif for null in order > to

Re: [PATCH v1] x86/defconfigs: Unbreak 32-bit defconfig builds

2020-09-08 Thread Andy Shevchenko
On Tue, Sep 8, 2020 at 8:53 PM Randy Dunlap wrote: > On 9/8/20 5:13 AM, Ingo Molnar wrote: > > * Andy Shevchenko wrote: > > > >> After the commit 1d0e12fd3a84 ("x86/defconfigs: Refresh defconfig files") > >> 32-bit builds using defconfig become broken because on x86_64 build host > >> with no

Re: [PATCH v3 1/8] iommu/arm-smmu: Refactor context bank allocation

2020-09-08 Thread Jordan Crouse
On Fri, Sep 04, 2020 at 03:55:06PM +, Bjorn Andersson wrote: > Extract the conditional invocation of the platform defined > alloc_context_bank() to a separate function to keep > arm_smmu_init_domain_context() cleaner. > > Instead pass a reference to the arm_smmu_device as parameter to the >

Re: [GIT PULL] livepatching for 5.9-rc5

2020-09-08 Thread Linus Torvalds
On Tue, Sep 8, 2020 at 11:32 AM Josh Poimboeuf wrote: > > Can you share the .o file? At least I can't recreate with GCC 9.3.1, > which is all I have at the moment. Done off-list in private, because I don't think anybody else wants object files flying around on the mailing lists..

Re: [PATCH 1/2] ASoC: tlv320adcx140: Avoid accessing invalid gpio_reset

2020-09-08 Thread Peter Ujfalusi
On 08/09/2020 11.35, Camel Guo wrote: > From: Camel Guo > > When gpio_reset is not well defined in devicetree, the > adcx140->gpio_reset is an error code instead of NULL. In this case, > adcx140->gpio_reset should not be used by adcx140_reset. This commit > sets it NULL to avoid accessing an

Re: [PATCH 1/2] ASoC: tlv320adcx140: Avoid accessing invalid gpio_reset

2020-09-08 Thread Peter Ujfalusi
Hi, On 08/09/2020 14.59, Peter Ujfalusi wrote: > > > On 08/09/2020 11.35, Camel Guo wrote: >> From: Camel Guo >> >> When gpio_reset is not well defined in devicetree, the >> adcx140->gpio_reset is an error code instead of NULL. In this case, >> adcx140->gpio_reset should not be used by

Re: [PATCH] drm: assure aux_dev is nonzero before using it

2020-09-08 Thread Lyude Paul
On Tue, 2020-08-18 at 10:58 -0700, Zwane Mwaikambo wrote: > On Wed, 12 Aug 2020, Lyude Paul wrote: > > > On Wed, 2020-08-12 at 16:10 +0200, Daniel Vetter wrote: > > > On Wed, Aug 12, 2020 at 12:16 AM Zwane Mwaikambo > > > wrote: > > > > On Tue, 11 Aug 2020, Daniel Vetter wrote: > > > > > > > >

Re: [PATCH v2 07/10] phy: qcom-qmp: Add support for DP in USB3+DP combo phy

2020-09-08 Thread Stephen Boyd
Quoting Jonathan Marek (2020-09-03 16:26:39) > On 9/2/20 7:02 PM, Stephen Boyd wrote: > > > +static int qcom_qmp_phy_configure_dp_phy(struct qmp_phy *qphy) > > +{ [...] > > + writel(0x05, qphy->pcs + QSERDES_V3_DP_PHY_CFG); > > + writel(0x01, qphy->pcs + QSERDES_V3_DP_PHY_CFG); > > +

Re: [PATCH v2 08/10] phy: qcom-qmp: Add support for sc7180 DP phy

2020-09-08 Thread Stephen Boyd
Quoting Jonathan Marek (2020-09-03 16:29:43) > On 9/2/20 7:02 PM, Stephen Boyd wrote: > > ... > > > +static const struct qmp_phy_cfg sc7180_dpphy_cfg = { > > + .type = PHY_TYPE_DP, > > + .nlanes = 1, > > + > > + .serdes_tbl =

[PATCH 4.19 24/88] 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 }

Re: linux-next: Tree for Sep 8 (sched/topology.c)

2020-09-08 Thread Valentin Schneider
On 08/09/20 16:50, Randy Dunlap wrote: > Sure, here it is again. And > CONFIG_SMP=y > CONFIG_SCHED_DEBUG=y > > thanks. Okay so I can reproduce that with GCC-10.1, now to figure out WTH is going on...

[PATCH 4.19 08/88] hwmon: (applesmc) check status earlier.

2020-09-08 Thread Greg Kroah-Hartman
From: Tom Rix [ Upstream commit cecf7560f00a8419396a2ed0f6e5d245ccb4feac ] clang static analysis reports this representative problem applesmc.c:758:10: warning: 1st function call argument is an uninitialized value left = be16_to_cpu(*(__be16 *)(buffer + 6)) >> 2;

Re: [PATCH] platform/x86: Add Driver to set up lid GPEs on MS Surface device

2020-09-08 Thread Andy Shevchenko
On Tue, Sep 8, 2020 at 8:20 PM Maximilian Luz wrote: > > Conventionally, wake-up events for a specific device, in our case the > lid device, are managed via the ACPI _PRW field. While this does not > seem strictly necessary based on ACPI spec, the kernel disables GPE > wakeups to avoid non-wakeup

[PATCH 4.19 07/88] drm/msm: add shutdown support for display platform_driver

2020-09-08 Thread Greg Kroah-Hartman
From: Krishna Manikandan [ Upstream commit 9d5cbf5fe46e350715389d89d0c350d83289a102 ] Define shutdown callback for display drm driver, so as to disable all the CRTCS when shutdown notification is received by the driver. This change will turn off the timing engine so that no display

Re: [PATCH v1] x86/defconfigs: Unbreak 32-bit defconfig builds

2020-09-08 Thread Andy Shevchenko
On Tue, Sep 08, 2020 at 02:13:54PM +0200, Ingo Molnar wrote: > > * Andy Shevchenko wrote: > > > After the commit 1d0e12fd3a84 ("x86/defconfigs: Refresh defconfig files") > > 32-bit builds using defconfig become broken because on x86_64 build host > > with no ARCH provided the default behaviour

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

2020-09-08 Thread Bartosz Golaszewski
On Sat, Sep 5, 2020 at 3:36 PM Kent Gibson wrote: > > This patchset defines and implements a new version of the > GPIO CDEV uAPI to address existing 32/64-bit alignment issues, add > support for debounce, event sequence numbers, and allow for requested > lines with different configurations. > It

[PATCH 4.19 02/88] HID: core: Sanitize event code and type when mapping input

2020-09-08 Thread Greg Kroah-Hartman
From: Marc Zyngier commit 35556bed836f8dc07ac55f69c8d17dce3e7f0e25 upstream. When calling into hid_map_usage(), the passed event code is blindly stored as is, even if it doesn't fit in the associated bitmap. This event code can come from a variety of sources, including devices masquerading as

[PATCH 4.19 00/88] 4.19.144-rc1 review

2020-09-08 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.19.144 release. There are 88 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Thu, 10 Sep 2020 15:21:57 +. Anything

[PATCH 4.19 18/88] 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

Re: [RFC PATCH 1/2] lib/string: Disable instrumentation

2020-09-08 Thread Arvind Sankar
On Tue, Sep 08, 2020 at 10:21:32AM -0700, Kees Cook wrote: > On Tue, Sep 08, 2020 at 11:39:11AM +0200, Marco Elver wrote: > > On Sun, 6 Sep 2020 at 00:23, Arvind Sankar wrote: > > > > > > String functions can be useful in early boot, but using instrumented > > > versions can be problematic: eg on

[PATCH 4.19 40/88] 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

[PATCH 4.19 17/88] batman-adv: Fix own OGM check in aggregated OGMs

2020-09-08 Thread Greg Kroah-Hartman
From: Linus Lüssing [ Upstream commit d8bf0c01642275c7dca1e5d02c34e4199c200b1f ] The own OGM check is currently misplaced and can lead to the following issues: For one thing we might receive an aggregated OGM from a neighbor node which has our own OGM in the first place. We would then not only

[PATCH 4.19 37/88] 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 4.19 31/88] bnxt_en: Dont query FW when netif_running() is false.

2020-09-08 Thread Greg Kroah-Hartman
From: Pavan Chebbi [ Upstream commit c1c2d77408022a398a1a7c51cf20488c922629de ] In rare conditions like two stage OS installation, the ethtool's get_channels function may be called when the device is in D3 state, leading to uncorrectable PCI error. Check netif_running() first before making any

Re: [PATCH 2/2] venus: core: vote for video-mem icc path and change avg, peak bw

2020-09-08 Thread Stephen Boyd
Quoting Mansur Alisha Shaik (2020-09-07 20:44:38) > Currently we are voting for venus0-ebi path during buffer processing > with an average bandwidth of all the instances and unvoting during > session release. > > While video streaming when we try to do XO-SD using the command > "echo mem >

[PATCH 4.19 13/88] s390: dont trace preemption in percpu macros

2020-09-08 Thread Greg Kroah-Hartman
From: Sven Schnelle [ Upstream commit 1196f12a2c960951d02262af25af0bb1775ebcc2 ] Since commit a21ee6055c30 ("lockdep: Change hardirq{s_enabled,_context} to per-cpu variables") the lockdep code itself uses percpu variables. This leads to recursions because the percpu macros are calling

[PATCH 4.19 35/88] 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 4.19 39/88] 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,

[PATCH 4.19 33/88] 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 4.19 16/88] batman-adv: Avoid uninitialized chaddr when handling DHCP

2020-09-08 Thread Greg Kroah-Hartman
From: Sven Eckelmann [ Upstream commit 303216e76dcab6049c9d42390b1032f0649a8206 ] The gateway client code can try to optimize the delivery of DHCP packets to avoid broadcasting them through the whole mesh. But also transmissions to the client can be optimized by looking up the destination via

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

2020-09-08 Thread Greg Kroah-Hartman
From: Edwin Peer [ Upstream commit 12cce90b934bf2b0ed9c339b4d5503e69954351a ] 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

[PATCH 4.19 42/88] 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:

[PATCH 4.19 38/88] netfilter: nfnetlink: nfnetlink_unicast() reports EAGAIN instead of ENOBUFS

2020-09-08 Thread Greg Kroah-Hartman
From: Pablo Neira Ayuso [ Upstream commit ee921183557af39c1a0475f982d43b0fcac25e2e ] Frontend callback reports EAGAIN to nfnetlink to retry a command, this is used to signal that module autoloading is required. Unfortunately, nlmsg_unicast() reports EAGAIN in case the receiver socket buffer

[PATCH 4.19 41/88] 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 4.19 14/88] 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 4.19 30/88] 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 4.19 44/88] drm/radeon: Prefer lower feedback dividers

2020-09-08 Thread Greg Kroah-Hartman
From: Kai-Heng Feng [ Upstream commit fc8c70526bd30733ea8667adb8b8ffebea30a8ed ] Commit 2e26ccb119bd ("drm/radeon: prefer lower reference dividers") fixed screen flicker for HP Compaq nx9420 but breaks other laptops like Asus X50SL. Turns out we also need to favor lower feedback dividers.

[PATCH 4.19 11/88] ceph: dont allow setlease on cephfs

2020-09-08 Thread Greg Kroah-Hartman
From: Jeff Layton [ Upstream commit 496ceaf12432b3d136dcdec48424312e71359ea7 ] Leases don't currently work correctly on kcephfs, as they are not broken when caps are revoked. They could eventually be implemented similarly to how we did them in libcephfs, but for now don't allow them. [

[PATCH 4.19 15/88] 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 4.19 53/88] 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

Re: [PATCH] drivers/perf: xgene_pmu: Fix uninitialized resource struct

2020-09-08 Thread Mark Salter
On Mon, 2020-09-07 at 14:50 +0100, Will Deacon wrote: > On Wed, Sep 02, 2020 at 02:27:29PM -0400, Mark Salter wrote: > > diff --git a/drivers/perf/xgene_pmu.c b/drivers/perf/xgene_pmu.c > > index edac28cd25dd..fdbbd0804b92 100644 > > --- a/drivers/perf/xgene_pmu.c > > +++

[PATCH 4.19 36/88] 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

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

2020-09-08 Thread Mimi Zohar
[Cc'ing Casey] On Tue, 2020-09-08 at 16:14 +0200, Mickaël Salaün wrote: > On 08/09/2020 15:42, Stephen Smalley wrote: > > On Tue, Sep 8, 2020 at 9:29 AM Mimi Zohar wrote: > >> > >> On Tue, 2020-09-08 at 08:52 -0400, Stephen Smalley wrote: > >>> On Tue, Sep 8, 2020 at 8:50 AM Stephen Smalley >

Re: [PATCH v2 10/28] kbuild: lto: fix module versioning

2020-09-08 Thread Sami Tolvanen
On Thu, Sep 03, 2020 at 03:11:54PM -0700, Kees Cook wrote: > On Thu, Sep 03, 2020 at 01:30:35PM -0700, Sami Tolvanen wrote: > > With CONFIG_MODVERSIONS, version information is linked into each > > compilation unit that exports symbols. With LTO, we cannot use this > > method as all C code is

[PATCH 4.19 55/88] vfio/type1: Support faulting PFNMAP vmas

2020-09-08 Thread Greg Kroah-Hartman
From: Alex Williamson commit 41311242221e3482b20bfed10fa4d9db98d87016 upstream. With conversion to follow_pfn(), DMA mapping a PFNMAP range depends on the range being faulted into the vma. Add support to manually provide that, in the same way as done on KVM with hva_to_pfn_remapped().

[PATCH 4.19 59/88] btrfs: Remove extraneous extent_buffer_get from tree_mod_log_rewind

2020-09-08 Thread Greg Kroah-Hartman
From: Nikolay Borisov [ Upstream commit 24cee18a1c1d7c731ea5987e0c99daea22ae7f4a ] When a rewound buffer is created it already has a ref count of 1 and the dummy flag set. Then another ref is taken bumping the count to 2. Finally when this buffer is released from btrfs_release_path the extra

[PATCH 4.19 20/88] 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 4.19 19/88] 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 4.19 54/88] btrfs: drop path before adding new uuid tree entry

2020-09-08 Thread Greg Kroah-Hartman
From: Josef Bacik commit 9771a5cf937129307d9f58922d60484d58ababe7 upstream. With the conversion of the tree locks to rwsem I got the following lockdep splat: == WARNING: possible circular locking dependency detected

[PATCH 2/2] sr: fix automatic tray loading for data reading

2020-09-08 Thread Thomas Schmitt
If open("/dev/sr0", O_RDONLY); pulls in the tray of an optical drive, it immediately returns -1 with errno ENOMEDIUM or the first read(2) fails with EIO. Later, when the drive has stopped blinking, another open() yields success and read() works. This affects not only userland reading of the

[PATCH 4.19 56/88] vfio-pci: Fault mmaps to enable vma tracking

2020-09-08 Thread Greg Kroah-Hartman
From: Alex Williamson commit 11c4cd07ba111a09f49625f9e4c851d83daf0a22 upstream. Rather than calling remap_pfn_range() when a region is mmap'd, setup a vm_ops handler to support dynamic faulting of the range on access. This allows us to manage a list of vmas actively mapping the area that we can

Re: [PATCH 1/2] venus: core: change clk enable and disable order in resume and suspend

2020-09-08 Thread Stephen Boyd
Quoting Mansur Alisha Shaik (2020-09-07 20:44:05) > Currently video driver is voting after clk enable and un voting > before clk disable. Basically we should vote before clk enable > and un vote after clk disable. > > Corrected this by changing the order of clk enable and clk disable. > >

Re: [GIT PULL] livepatching for 5.9-rc5

2020-09-08 Thread Josh Poimboeuf
On Tue, Sep 08, 2020 at 11:13:58AM -0700, Linus Torvalds wrote: > Josh, > > On Mon, Sep 7, 2020 at 1:20 AM Petr Mladek wrote: > > > > - Workaround "unreachable instruction" objtool warnings that happen > > with some compiler versions. > > I know I said this fixes things for me, but I just

[PATCH 4.19 58/88] btrfs: Remove redundant extent_buffer_get in get_old_root

2020-09-08 Thread Greg Kroah-Hartman
From: Nikolay Borisov [ Upstream commit 6c122e2a0c515cfb3f3a9cefb5dad4cb62109c78 ] get_old_root used used only by btrfs_search_old_slot to initialise the path structure. The old root is always a cloned buffer (either via alloc dummy or via btrfs_clone_extent_buffer) and its reference count is

[PATCH 0/2] Fix automatic CD tray loading for data reading via sr

2020-09-08 Thread Thomas Schmitt
Hi, i am aware that a solution proposal for this problem was not accepted in november 2019. Mine is independent of this and also my first attempt to submit a kernel patch. If open("/dev/sr0", O_RDONLY); pulls in the tray of an optical drive, it immediately returns -1 with errno ENOMEDIUM, or

[PATCH 4.19 57/88] vfio-pci: Invalidate mmaps and block MMIO access on disabled memory

2020-09-08 Thread Greg Kroah-Hartman
From: Alex Williamson commit abafbc551fddede3e0a08dee1dcde08fc0eb8476 upstream. Accessing the disabled memory space of a PCI device would typically result in a master abort response on conventional PCI, or an unsupported request on PCI express. The user would generally see these as a -1

Re: [PATCH V2] ASoC: Intel: boards: Use FS as nau8825 sysclk in nau88125_* machine

2020-09-08 Thread Radosław Biernacki
Thanks for the tip! Let me reformat the patch. wt., 8 wrz 2020 o 20:06 Pierre-Louis Bossart napisał(a): > > > > On 9/8/20 12:42 PM, Radosław Biernacki wrote: > > Sorry for missing the response for so long. > > Somehow lost this thread in my mailbox. > > That happens to all of us! > > > śr., 6

[PATCH 4.19 67/88] 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

[PATCH 4.19 66/88] 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:

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

2020-09-08 Thread Greg Kroah-Hartman
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 one of Digi 00x family. It's better to exclude the

[PATCH 4.19 65/88] usb: qmi_wwan: add D-Link DWM-222 A2 device ID

2020-09-08 Thread Greg Kroah-Hartman
From: Rogan Dawes [ Upstream commit 7d6053097311643545a8118100175a39bd6fa637 ] Signed-off-by: Rogan Dawes Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/usb/qmi_wwan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/usb/qmi_wwan.c

[PATCH 4.19 62/88] uaccess: Add non-pagefault user-space write function

2020-09-08 Thread Greg Kroah-Hartman
From: Daniel Borkmann [ Upstream commit 1d1585ca0f48fe7ed95c3571f3e4a82b2b5045dc ] Commit 3d7081822f7f ("uaccess: Add non-pagefault user-space read functions") missed to add probe write function, therefore factor out a probe_write_common() helper with most logic of probe_kernel_write() except

[PATCH 4.19 60/88] btrfs: set the lockdep class for log tree extent buffers

2020-09-08 Thread Greg Kroah-Hartman
From: Josef Bacik [ Upstream commit d3beaa253fd6fa40b8b18a216398e6e5376a9d21 ] These are special extent buffers that get rewound in order to lookup the state of the tree at a specific point in time. As such they do not go through the normal initialization paths that set their lockdep class, so

[PATCH 4.19 61/88] uaccess: Add non-pagefault user-space read functions

2020-09-08 Thread Greg Kroah-Hartman
From: Masami Hiramatsu [ Upstream commit 3d7081822f7f9eab867d9bcc8fd635208ec438e0 ] Add probe_user_read(), strncpy_from_unsafe_user() and strnlen_unsafe_user() which allows caller to access user-space in IRQ context. Current probe_kernel_read() and strncpy_from_unsafe() are not available for

[PATCH 4.19 71/88] media: rc: do not access device via sysfs after rc_unregister_device()

2020-09-08 Thread Greg Kroah-Hartman
From: Sean Young commit a2e2d73fa28136598e84db9d021091f1b98cbb1a upstream. Device drivers do not expect to have change_protocol or wakeup re-programming to be accesed after rc_unregister_device(). This can cause the device driver to access deallocated resources. Cc: # 4.16+ Signed-off-by:

[PATCH 4.19 74/88] 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 4.19 68/88] ALSA: hda/hdmi: always check pin power status in i915 pin fixup

2020-09-08 Thread Greg Kroah-Hartman
From: Kai Vehmanen commit 858e0ad9301d1270c02b5aca97537d2d6ee9dd68 upstream. When system is suspended with active audio playback to HDMI/DP, two alternative sequences can happen at resume: a) monitor is detected first and ALSA prepare follows normal stream setup sequence, or b) ALSA

[PATCH 4.19 63/88] btrfs: fix potential deadlock in the search ioctl

2020-09-08 Thread Greg Kroah-Hartman
From: Josef Bacik [ Upstream commit a48b73eca4ceb9b8a4b97f290a065335dbcd8a04 ] With the conversion of the tree locks to rwsem I got the following lockdep splat: == WARNING: possible circular locking dependency detected

[PATCH 4.19 64/88] net: usb: qmi_wwan: add Telit 0x1050 composition

2020-09-08 Thread Greg Kroah-Hartman
From: Daniele Palmas [ Upstream commit e0ae2c578d3909e60e9448207f5d83f785f1129f ] This patch adds support for Telit FN980 0x1050 composition 0x1050: tty, adb, rmnet, tty, tty, tty, tty Signed-off-by: Daniele Palmas Acked-by: Bjørn Mork Signed-off-by: Jakub Kicinski Signed-off-by: Sasha

[PATCH 4.19 46/88] perf jevents: Fix suspicious code in fixregex()

2020-09-08 Thread Greg Kroah-Hartman
From: Namhyung Kim [ Upstream commit e62458e3940eb3dfb009481850e140fbee183b04 ] The new string should have enough space for the original string and the back slashes IMHO. Fixes: fbc2844e84038ce3 ("perf vendor events: Use more flexible pattern matching for CPU identification for mapfile.csv")

[PATCH 4.19 70/88] ALSA: hda - Fix silent audio output and corrupted input on MSI X570-A PRO

2020-09-08 Thread Greg Kroah-Hartman
From: Dan Crawford commit 15cbff3fbbc631952c346744f862fb294504b5e2 upstream. Following Christian Lachner's patch for Gigabyte X570-based motherboards, also patch the MSI X570-A PRO motherboard; the ALC1220 codec requires the same workaround for Clevo laptops to enforce the DAC/mixer connection

[PATCH 4.19 45/88] 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.4 038/129] 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 4.19 73/88] 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 4.19 47/88] 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

[PATCH 5.8 048/186] rxrpc: Make rxrpc_kernel_get_srtt() indicate validity

2020-09-08 Thread Greg Kroah-Hartman
From: David Howells [ Upstream commit 1d4adfaf65746203861c72d9d78de349eb97d528 ] Fix rxrpc_kernel_get_srtt() to indicate the validity of the returned smoothed RTT. If we haven't had any valid samples yet, the SRTT isn't useful. Fixes: c410bf01933e ("rxrpc: Fix the excessive initial

[PATCH 4.19 72/88] 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

[PATCH 4.19 48/88] 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

Re: [RFC PATCH] cma: make number of CMA areas dynamic, remove CONFIG_CMA_AREAS

2020-09-08 Thread Mike Kravetz
On 9/3/20 6:58 PM, Song Bao Hua (Barry Song) wrote: > >> -Original Message- >> From: Mike Kravetz [mailto:mike.krav...@oracle.com] >> Sent: Thursday, September 3, 2020 3:02 PM >> To: linux...@kvack.org; linux-kernel@vger.kernel.org; >> linux-arm-ker...@lists.infradead.org;

[PATCH 5.4 037/129] 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

[PATCH 5.8 164/186] drm/amdgpu: Specify get_argument function for ci_smu_funcs

2020-09-08 Thread Greg Kroah-Hartman
From: Sandeep Raghuraman commit f7b2e34b4afb8d712913dc199d3292ea9e078637 upstream. Starting in Linux 5.8, the graphics and memory clock frequency were not being reported for CIK cards. This is a regression, since they were reported correctly in Linux 5.7. After investigation, I discovered that

[PATCH 5.4 030/129] MIPS: BMIPS: Also call bmips_cpu_setup() for secondary cores

2020-09-08 Thread Greg Kroah-Hartman
From: Florian Fainelli [ Upstream commit e14f633b66902615cf7faa5d032b45ab8b6fb158 ] The initialization done by bmips_cpu_setup() typically affects both threads of a given core, on 7435 which supports 2 cores and 2 threads, logical CPU number 2 and 3 would not run this initialization. Fixes:

[PATCH 4.19 51/88] 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.4 023/129] batman-adv: Avoid uninitialized chaddr when handling DHCP

2020-09-08 Thread Greg Kroah-Hartman
From: Sven Eckelmann [ Upstream commit 303216e76dcab6049c9d42390b1032f0649a8206 ] The gateway client code can try to optimize the delivery of DHCP packets to avoid broadcasting them through the whole mesh. But also transmissions to the client can be optimized by looking up the destination via

[PATCH 5.8 148/186] mmc: sdhci-pci: Fix SDHCI_RESET_ALL for CQHCI for Intel GLK-based controllers

2020-09-08 Thread Greg Kroah-Hartman
From: Adrian Hunter commit df57d73276b863af1debc48546b0e59e44998a55 upstream. For Intel controllers, SDHCI_RESET_ALL resets also CQHCI registers. Normally, SDHCI_RESET_ALL is not used while CQHCI is enabled, but that can happen on the error path. e.g. if mmc_cqe_recovery() fails,

Re: [RFC 0/5] disable pcplists during page isolation

2020-09-08 Thread David Hildenbrand
On 07.09.20 18:36, Vlastimil Babka wrote: > As per the discussions [1] [2] this is an attempt to implement David's > suggestion that page isolation should disable pcplists to avoid races. This is > done without extra checks in fast paths, as I mentioned should be possible in > the discussion, and

[PATCH 5.8 160/186] blk-stat: make q->stats->lock irqsafe

2020-09-08 Thread Greg Kroah-Hartman
From: Tejun Heo commit e11d80a849e010f78243bb6f6af7dccef3a71a90 upstream. blk-iocost calls blk_stat_enable_accounting() while holding an irqsafe lock which triggers a lockdep splat because q->stats->lock isn't irqsafe. Let's make it irqsafe. Signed-off-by: Tejun Heo Fixes: cd006509b0a9

[PATCH 5.4 025/129] 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 170/186] dm thin metadata: Avoid returning cmd->bm wild pointer on error

2020-09-08 Thread Greg Kroah-Hartman
From: Ye Bin commit 219403d7e56f9b716ad80ab87db85d29547ee73e upstream. Maybe __create_persistent_data_objects() caller will use PTR_ERR as a pointer, it will lead to some strange things. Signed-off-by: Ye Bin Cc: sta...@vger.kernel.org Signed-off-by: Mike Snitzer Signed-off-by: Greg

Re: [RFC] dt-bindings: mailbox: add doorbell support to ARM MHU

2020-09-08 Thread Sudeep Holla
On Tue, Sep 08, 2020 at 11:14:50AM +0200, Arnd Bergmann wrote: > Picking up the old thread again after and getting pinged by multiple > colleagues about it (thanks!) reading through the history. > > On Fri, Jun 12, 2020 at 7:29 AM Viresh Kumar wrote: > > > > On 11-06-20, 19:34, Jassi Brar wrote:

[PATCH 5.8 143/186] ALSA: hda/realtek: Add quirk for Samsung Galaxy Book Ion NT950XCJ-X716A

2020-09-08 Thread Greg Kroah-Hartman
From: Adrien Crivelli commit 8bcea6cb2cbc1f749e574954569323dec5e2920e upstream. The Galaxy Book Ion NT950XCJ-X716A (15 inches) uses the same ALC298 codec as other Samsung laptops which have the no headphone sound bug. I confirmed on my own hardware that this fixes the bug. This also correct

[PATCH 5.8 169/186] dm cache metadata: Avoid returning cmd->bm wild pointer on error

2020-09-08 Thread Greg Kroah-Hartman
From: Ye Bin commit d16ff19e69ab57e08bf908faaacbceaf660249de upstream. Maybe __create_persistent_data_objects() caller will use PTR_ERR as a pointer, it will lead to some strange things. Signed-off-by: Ye Bin Cc: sta...@vger.kernel.org Signed-off-by: Mike Snitzer Signed-off-by: Greg

[PATCH 4.19 50/88] thermal: ti-soc-thermal: Fix bogus thermal shutdowns for omap4430

2020-09-08 Thread Greg Kroah-Hartman
From: Tony Lindgren [ Upstream commit 30d24faba0532d6972df79a1bf060601994b5873 ] We can sometimes get bogus thermal shutdowns on omap4430 at least with droid4 running idle with a battery charger connected: thermal thermal_zone0: critical temperature reached (143 C), shutting down Dumping out

[PATCH 5.8 172/186] mm: slub: fix conversion of freelist_corrupted()

2020-09-08 Thread Greg Kroah-Hartman
From: Eugeniu Rosca commit dc07a728d49cf025f5da2c31add438d839d076c0 upstream. Commit 52f23478081ae0 ("mm/slub.c: fix corrupted freechain in deactivate_slab()") suffered an update when picked up from LKML [1]. Specifically, relocating 'freelist = NULL' into 'freelist_corrupted()' created a

[PATCH 5.4 036/129] 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

<    4   5   6   7   8   9   10   11   12   13   >