[PATCH 5.7 054/265] nvmet: fail outstanding host posted AEN req

2020-06-29 Thread Sasha Levin
From: Chaitanya Kulkarni [ Upstream commit 819f7b88b48fd2bce932cfe3a38bf8fcefbcabe7 ] In function nvmet_async_event_process() we only process AENs iff there is an open slot on the ctrl->async_event_cmds[] && aen event list posted by the target is not empty. This keeps host posted AEN

[PATCH 5.7 133/265] RDMA/qedr: Fix KASAN: use-after-free in ucma_event_handler+0x532

2020-06-29 Thread Sasha Levin
From: Michal Kalderon [ Upstream commit 0dfbd5ecf28cbcb81674c49d34ee97366db1be44 ] Private data passed to iwarp_cm_handler is copied for connection request / response, but ignored otherwise. If junk is passed, it is stored in the event and used later in the event processing. The driver passes

[PATCH 5.7 112/265] ASoC: qcom: common: set correct directions for dailinks

2020-06-29 Thread Sasha Levin
From: Srinivas Kandagatla [ Upstream commit a2120089251f1fe221305e88df99af16f940e236 ] Currently both FE and BE dai-links are configured bi-directional, However the DSP BE dais are only single directional, so set the directions as supported by the BE dais. Fixes: c25e295cd77b (ASoC: qcom: Add

Re: [PATCH v5 02/13] dt-bindings: panel: Convert rocktech, jh057n00900 to yaml

2020-06-29 Thread Rob Herring
On Fri, 26 Jun 2020 02:55:50 +0200, Ondrej Jirman wrote: > Convert Rocktech MIPI DSI panel driver from txt to yaml bindings. > > Signed-off-by: Ondrej Jirman > --- > .../display/panel/rocktech,jh057n00900.txt| 23 --- > .../display/panel/rocktech,jh057n00900.yaml | 66

[PATCH 5.7 043/265] net: ethtool: add missing NETIF_F_GSO_FRAGLIST feature string

2020-06-29 Thread Sasha Levin
From: Alexander Lobakin [ Upstream commit eddbf5d0204e550ee59de02bdc19fe90d4203dd6 ] Commit 3b33583265ed ("net: Add fraglist GRO/GSO feature flags") missed an entry for NETIF_F_GSO_FRAGLIST in netdev_features_strings array. As a result, fraglist GSO feature is not shown in 'ethtool -k' output

[PATCH 5.7 107/265] x86/resctrl: Fix memory bandwidth counter width for AMD

2020-06-29 Thread Sasha Levin
From: Babu Moger [ Upstream commit 2c18bd525c47f882f033b0a813ecd09c93e1ecdf ] Memory bandwidth is calculated reading the monitoring counter at two intervals and calculating the delta. It is the software’s responsibility to read the count often enough to avoid having the count roll over _twice_

[PATCH 5.7 084/265] cifs/smb3: Fix data inconsistent when punch hole

2020-06-29 Thread Sasha Levin
From: Zhang Xiaoxu commit acc91c2d8de4ef46ed751c5f9df99ed9a109b100 upstream. When punch hole success, we also can read old data from file: # strace -e trace=pread64,fallocate xfs_io -f -c "pread 20 40" \ -c "fpunch 20 40" -c"pread 20 40" file pread64(3, " version 5.8.0-rc1+"...,

[PATCH 5.7 264/265] dm writecache: add cond_resched to loop in persistent_memory_claim()

2020-06-29 Thread Sasha Levin
From: Mikulas Patocka commit d35bd764e6899a7bea71958f08d16cea5bfa1919 upstream. Add cond_resched() to a loop that fills in the mapper memory area because the loop can be executed many times. Fixes: 48debafe4f2fe ("dm: add writecache target") Cc: sta...@vger.kernel.org Signed-off-by: Mikulas

[PATCH 5.7 104/265] ARM: bcm: Select ARM_TIMER_SP804 for ARCH_BCM_NSP

2020-06-29 Thread Sasha Levin
From: Matthew Hagan [ Upstream commit 0386e9ce5877ee73e07675529d5ae594d00f0900 ] The NSP SoC includes an SP804 timer so should be enabled here. Fixes: a0efb0d28b77 ("ARM: dts: NSP: Add SP804 Support to DT") Signed-off-by: Matthew Hagan Signed-off-by: Florian Fainelli Signed-off-by: Sasha

Re: [PATCH] asoc: Update supported rate and format for dummy dai

2020-06-29 Thread Mark Brown
On Sat, 27 Jun 2020 19:07:10 +0530, Rohit kumar wrote: > Add support for 384KHz sample rate and S24_3LE > bitwidth for dummy dai. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] asoc: Update supported rate and format for dummy dai

[PATCH 5.7 193/265] pinctrl: tegra: Use noirq suspend/resume callbacks

2020-06-29 Thread Sasha Levin
From: Vidya Sagar [ Upstream commit 782b6b69847f34dda330530493ea62b7de3fd06a ] Use noirq suspend/resume callbacks as other drivers which implement noirq suspend/resume callbacks (Ex:- PCIe) depend on pinctrl driver to configure the signals used by their respective devices in the noirq phase.

[PATCH 5.7 129/265] ARM: dts: NSP: Correct FA2 mailbox node

2020-06-29 Thread Sasha Levin
From: Matthew Hagan [ Upstream commit ac4e106d8934a5894811fc263f4b03fc8ed0fb7a ] The FA2 mailbox is specified at 0x18025000 but should actually be 0x18025c00, length 0x400 according to socregs_nsp.h and board_bu.c. Also the interrupt was off by one and should be GIC SPI 151 instead of 150.

[PATCH 5.7 109/265] efi/esrt: Fix reference count leak in esre_create_sysfs_entry.

2020-06-29 Thread Sasha Levin
From: Qiushi Wu [ Upstream commit 4ddf4739be6e375116c375f0a68bf3893ffcee21 ] kobject_init_and_add() takes reference even when it fails. If this function returns an error, kobject_put() must be called to properly clean up the memory associated with the object. Previous commit "b8eb718348b8"

[PATCH 5.7 184/265] drm/amd/display: Use kfree() to free rgb_user in calculate_user_regamma_ramp()

2020-06-29 Thread Sasha Levin
From: Denis Efremov [ Upstream commit 43a562774fceba867e8eebba977d7d42f8a2eac7 ] Use kfree() instead of kvfree() to free rgb_user in calculate_user_regamma_ramp() because the memory is allocated with kcalloc(). Signed-off-by: Denis Efremov Signed-off-by: Alex Deucher Signed-off-by: Sasha

[PATCH 5.7 055/265] fix a braino in "sparc32: fix register window handling in genregs32_[gs]et()"

2020-06-29 Thread Sasha Levin
From: Al Viro [ Upstream commit 9d964e1b82d8182184153b70174f445ea616f053 ] lost npc in PTRACE_SETREGSET, breaking PTRACE_SETREGS as well Fixes: cf51e129b968 "sparc32: fix register window handling in genregs32_[gs]et()" Signed-off-by: Al Viro Signed-off-by: Sasha Levin ---

[PATCH 5.7 117/265] ASoC: fsl_ssi: Fix bclk calculation for mono channel

2020-06-29 Thread Sasha Levin
From: Shengjiu Wang [ Upstream commit ed1220df6e666500ebf58c4f2fccc681941646fb ] For mono channel, SSI will switch to Normal mode. In Normal mode and Network mode, the Word Length Control bits control the word length divider in clock generator, which is different with I2S Master mode (the word

[PATCH 5.7 135/265] RDMA/core: Check that type_attrs is not NULL prior access

2020-06-29 Thread Sasha Levin
From: Leon Romanovsky [ Upstream commit 4121fb0db68ed4de574f9bdc630b75fcc99b4835 ] In disassociate flow, the type_attrs is set to be NULL, which is in an implicit way is checked in alloc_uobj() by "if (!attrs->context)". Change the logic to rely on that check, to be consistent with other

[PATCH 5.7 120/265] ARM: dts: am335x-pocketbeagle: Fix mmc0 Write Protect

2020-06-29 Thread Sasha Levin
From: Drew Fustini [ Upstream commit d7af722344e6dc52d87649100516515263e15c75 ] AM3358 pin mcasp0_aclkr (ZCZ ball B13) [0] is routed to P1.31 header [1] Mode 4 of this pin is mmc0_sdwp (SD Write Protect). A signal connected to P1.31 may accidentally trigger mmc0 write protection. To avoid

[PATCH 5.7 142/265] iommu/vt-d: Set U/S bit in first level page table by default

2020-06-29 Thread Sasha Levin
From: Lu Baolu [ Upstream commit 16ecf10e815d70d11d2300243f4a3b4c7c5acac7 ] When using first-level translation for IOVA, currently the U/S bit in the page table is cleared which implies DMA requests with user privilege are blocked. As the result, following error messages might be observed when

[PATCH 5.7 040/265] r8169: fix firmware not resetting tp->ocp_base

2020-06-29 Thread Sasha Levin
From: Heiner Kallweit [ Upstream commit 89fbd26cca7ec9e82ec4787a4b6e95939b57d073 ] Typically the firmware takes care that tp->ocp_base is reset to its default value. That's not the case (at least) for RTL8117. As a result subsequent PHY access reads/writes the wrong page and the link is broken.

[PATCH 5.7 198/265] s390/vdso: Use $(LD) instead of $(CC) to link vDSO

2020-06-29 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit 2b2a25845d534ac6d55086e35c033961fdd83a26 ] Currently, the VDSO is being linked through $(CC). This does not match how the rest of the kernel links objects, which is through the $(LD) variable. When clang is built in a default configuration, it first

Re: [PATCH v2 1/2] dt-bindings: timer: Add Ingenic X1000 OST bindings.

2020-06-29 Thread Rob Herring
On Fri, 26 Jun 2020 01:57:13 +0800, 周琰杰 (Zhou Yanjie) wrote: > Add the OST bindings for the X1 SoC from Ingenic. > > Tested-by: 周正 (Zhou Zheng) > Signed-off-by: 周琰杰 (Zhou Yanjie) > --- > > Notes: > v1->v2: > No change. > > .../devicetree/bindings/timer/ingenic,ost.yaml | 62

[PATCH 5.7 143/265] iommu/vt-d: Enable PCI ACS for platform opt in hint

2020-06-29 Thread Sasha Levin
From: Lu Baolu [ Upstream commit 50310600ebda74b9988467e2e6128711c7ba56fc ] PCI ACS is disabled if Intel IOMMU is off by default or intel_iommu=off is used in command line. Unfortunately, Intel IOMMU will be forced on if there're devices sitting on an external facing PCI port that is marked as

[PATCH 5.7 145/265] soc: imx8m: Correct i.MX8MP UID fuse offset

2020-06-29 Thread Sasha Levin
From: Anson Huang [ Upstream commit c95c9693b112f312b59c5d100fd09a1349970fab ] Correct i.MX8MP UID fuse offset according to fuse map: UID_LOW: 0x420 UID_HIGH: 0x430 Fixes: fc40200ebf82 ("soc: imx: increase build coverage for imx8m soc driver") Fixes: 18f662a73862 ("soc: imx: Add i.MX8MP SoC

[PATCH 5.7 159/265] usb: gadget: udc: Potential Oops in error handling code

2020-06-29 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit e55f3c37cb8d31c7e301f46396b2ac6a19eb3a7c ] If this is in "transceiver" mode the the ->qwork isn't required and is a NULL pointer. This can lead to a NULL dereference when we call destroy_workqueue(udc->qwork). Fixes: 3517c31a8ece ("usb: gadget: mv_udc:

[PATCH 5.7 079/265] usb: cdns3: ep0: fix the test mode set incorrectly

2020-06-29 Thread Sasha Levin
From: Peter Chen commit b51e1cf64f93acebb6d8afbacd648a6ecefc39b4 upstream. The 'tmode' is ctrl->wIndex, changing it as the real test mode value for register assignment. Cc: Fixes: 7733f6c32e36 ("usb: cdns3: Add Cadence USB3 DRD Driver") Reviewed-by: Jun Li Signed-off-by: Peter Chen

[PATCH 5.7 046/265] of: of_mdio: Correct loop scanning logic

2020-06-29 Thread Sasha Levin
From: Florian Fainelli [ Upstream commit 5a8d7f126c97d04d893f5e5be2b286437a0d01b0 ] Commit 209c65b61d94 ("drivers/of/of_mdio.c:fix of_mdiobus_register()") introduced a break of the loop on the premise that a successful registration should exit the loop. The premise is correct but not to code,

[PATCH 5.7 061/265] mei: me: add tiger lake point device ids for H platforms.

2020-06-29 Thread Sasha Levin
From: Alexander Usyskin commit 8c289ea064165237891a7b4be77b74d5cba8fa99 upstream. Add Tiger Lake device ids H for HECI1. TGH_H is also used in Tatlow SPS platform we need to disable the mei interface there. Cc: Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler Link:

Re: [PATCH v6 2/4] driver core: add deferring probe reason to devices_deferred property

2020-06-29 Thread Andrzej Hajda
Hi Grygorii, (...) >>   /* >>    * deferred_devs_show() - Show the devices in the deferred probe >> pending list. >>    */ >> @@ -221,7 +241,8 @@ static int deferred_devs_show(struct seq_file *s, >> void *data) >>   mutex_lock(_probe_mutex); >>     list_for_each_entry(curr,

Re: [PATCH v2 2/2] dt-bindings: gpio: Add bindings for NXP PCA9570

2020-06-29 Thread Rob Herring
On Thu, 25 Jun 2020 16:59:57 +0900, Sungbo Eo wrote: > This patch adds device tree bindings for the NXP PCA9570, > a 4-bit I2C GPO expander. > > Signed-off-by: Sungbo Eo > --- > I don't feel I can really maintain this driver, but it seems all yaml docs > have a maintainers field so I just added

Re: [PATCH 7/8] arm64: dts: qcom: Add support for Sony Xperia XA2/Plus/Ultra (Nile platform)

2020-06-29 Thread Pavel Machek
On Mon 2020-06-29 14:15:32, Konrad Dybcio wrote: > > Do you really want autorepeat on keys like camera focus? > > I mght want to reconsider that when it will actually be in use > :) Heh. Okay, so... I want a Linux phone. I have N900 and Droid 4 at the moment. I'll have something useful real

[PATCH 5.7 113/265] regualtor: pfuze100: correct sw1a/sw2 on pfuze3000

2020-06-29 Thread Sasha Levin
From: Robin Gong [ Upstream commit 6f1cf5257acc6e6242ddf2f52bc7912aed77b79f ] PFUZE100_SWB_REG is not proper for sw1a/sw2, because enable_mask/enable_reg is not correct. On PFUZE3000, sw1a/sw2 should be the same as sw1a/sw2 on pfuze100 except that voltages are not linear, so add new

[PATCH 5.7 192/265] pinctrl: qcom: spmi-gpio: fix warning about irq chip reusage

2020-06-29 Thread Sasha Levin
From: Dmitry Baryshkov [ Upstream commit 5e50311556c9f409a85740e3cb4c4511e7e27da0 ] Fix the following warnings caused by reusage of the same irq_chip instance for all spmi-gpio gpio_irq_chip instances. Instead embed irq_chip into pmic_gpio_state struct. gpio gpiochip2:

[PATCH 5.7 222/265] btrfs: fix bytes_may_use underflow when running balance and scrub in parallel

2020-06-29 Thread Sasha Levin
From: Filipe Manana commit 6bd335b469f945f75474c11e3f577f85409f39c3 upstream. When balance and scrub are running in parallel it is possible to end up with an underflow of the bytes_may_use counter of the data space_info object, which triggers a warning like the following: [134243.793196]

[PATCH 5.7 220/265] x86/cpu: Reinitialize IA32_FEAT_CTL MSR on BSP during wakeup

2020-06-29 Thread Sasha Levin
From: Sean Christopherson commit 5d5103595e9e53048bb7e70ee2673c897ab38300 upstream. Reinitialize IA32_FEAT_CTL on the BSP during wakeup to handle the case where firmware doesn't initialize or save/restore across S3. This fixes a bug where IA32_FEAT_CTL is left uninitialized and results in

[PATCH 5.7 128/265] bpf: Don't return EINVAL from {get,set}sockopt when optlen > PAGE_SIZE

2020-06-29 Thread Sasha Levin
From: Stanislav Fomichev [ Upstream commit d8fe449a9c51a37d844ab607e14e2f5c657d3cf2 ] Attaching to these hooks can break iptables because its optval is usually quite big, or at least bigger than the current PAGE_SIZE limit. David also mentioned some SCTP options can be big (around 256k). For

[PATCH 5.7 070/265] usb: typec: tcpci_rt1711h: avoid screaming irq causing boot hangs

2020-06-29 Thread Sasha Levin
From: Li Jun commit 302c570bf36e997d55ad0d60628a2feec76954a4 upstream. John reported screaming irq caused by rt1711h when system boot[1], this is because irq request is done before tcpci_register_port(), so the chip->tcpci has not been setup, irq handler is entered but can't do anything, this

[PATCH 5.7 067/265] usb: host: xhci-mtk: avoid runtime suspend when removing hcd

2020-06-29 Thread Sasha Levin
From: Macpaul Lin commit a24d5072e87457a14023ee1dd3fc8b1e76f899ef upstream. When runtime suspend was enabled, runtime suspend might happen when xhci is removing hcd. This might cause kernel panic when hcd has been freed but runtime pm suspend related handle need to reference it. Signed-off-by:

Re: [PATCH] dt-bindings: backlight: Convert common backlight bindings to DT schema

2020-06-29 Thread Rob Herring
On Mon, Jun 22, 2020 at 10:57 AM Daniel Thompson wrote: > > On Fri, Jun 19, 2020 at 11:53:41PM +0200, Sam Ravnborg wrote: > > > diff --git > > > a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.yaml > > > b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.yaml > >

[PATCH 5.7 180/265] sched/core: Fix PI boosting between RT and DEADLINE tasks

2020-06-29 Thread Sasha Levin
From: Juri Lelli [ Upstream commit 740797ce3a124b7dd22b7fb832d87bc8fba1cf6f ] syzbot reported the following warning: WARNING: CPU: 1 PID: 6351 at kernel/sched/deadline.c:628 enqueue_task_dl+0x22da/0x38a0 kernel/sched/deadline.c:1504 At deadline.c:628 we have: 623 static inline void

[PATCH 5.7 234/265] ocfs2: fix panic on nfs server over ocfs2

2020-06-29 Thread Sasha Levin
From: Junxiao Bi commit e5a15e17a78d58f933d17cafedfcf7486a29f5b4 upstream. The following kernel panic was captured when running nfs server over ocfs2, at that time ocfs2_test_inode_bit() was checking whether one inode locating at "blkno" 5 was valid, that is ocfs2 root inode, its

[PATCH 5.7 022/265] tcp: don't ignore ECN CWR on pure ACK

2020-06-29 Thread Sasha Levin
From: Denis Kirjanov [ Upstream commit 2570284060b48f3f79d8f1a2698792f36c385e9a ] there is a problem with the CWR flag set in an incoming ACK segment and it leads to the situation when the ECE flag is latched forever the following packetdrill script shows what happens: // Stack receives

[PATCH 5.7 035/265] sch_cake: don't call diffserv parsing code when it is not needed

2020-06-29 Thread Sasha Levin
From: Toke Høiland-Jørgensen [ Upstream commit 8c95eca0bb8c4bd2231a0d581f1ad0d50c90488c ] As a further optimisation of the diffserv parsing codepath, we can skip it entirely if CAKE is configured to neither use diffserv-based classification, nor to zero out the diffserv bits. Fixes:

[PATCH 5.7 213/265] ACPI: configfs: Disallow loading ACPI tables when locked down

2020-06-29 Thread Sasha Levin
From: "Jason A. Donenfeld" commit 75b0cea7bf307f362057cc778efe89af4c615354 upstream. Like other vectors already patched, this one here allows the root user to load ACPI tables, which enables arbitrary physical address writes, which in turn makes it possible to disable lockdown. Prevents this

[PATCH 5.7 196/265] s390/ptrace: pass invalid syscall numbers to tracing

2020-06-29 Thread Sasha Levin
From: Sven Schnelle [ Upstream commit 00332c16b1604242a56289ff2b26e283dbad0812 ] tracing expects to see invalid syscalls, so pass it through. The syscall path in entry.S checks the syscall number before looking up the handler, so it is still safe. Signed-off-by: Sven Schnelle Signed-off-by:

[PATCH 5.7 083/265] cifs: Fix cached_fid refcnt leak in open_shroot

2020-06-29 Thread Sasha Levin
From: Xiyu Yang commit 77577de64167aa0643d47ffbaacf3642632b321b upstream. open_shroot() invokes kref_get(), which increases the refcount of the "tcon->crfid" object. When open_shroot() returns not zero, it means the open operation failed and close_shroot() will not be called to decrement the

[PATCH 5.7 258/265] SUNRPC: Properly set the @subbuf parameter of xdr_buf_subsegment()

2020-06-29 Thread Sasha Levin
From: Chuck Lever commit 89a3c9f5b9f0bcaa9aea3e8b2a616fcaea9aad78 upstream. @subbuf is an output parameter of xdr_buf_subsegment(). A survey of call sites shows that @subbuf is always uninitialized before xdr_buf_segment() is invoked by callers. There are some execution paths through

[PATCH 5.7 068/265] xhci: Poll for U0 after disabling USB2 LPM

2020-06-29 Thread Sasha Levin
From: Kai-Heng Feng commit b3d71abd135e6919ca0b6cab463738472653ddfb upstream. USB2 devices with LPM enabled may interrupt the system suspend: [ 932.510475] usb 1-7: usb suspend, wakeup 0 [ 932.510549] hub 1-0:1.0: hub_suspend [ 932.510581] usb usb1: bus suspend, wakeup 0 [ 932.510590]

[PATCH 5.7 190/265] net: alx: fix race condition in alx_remove

2020-06-29 Thread Sasha Levin
From: Zekun Shen [ Upstream commit e89df5c4322c1bf495f62d74745895b5fd2a4393 ] There is a race condition exist during termination. The path is alx_stop and then alx_remove. An alx_schedule_link_check could be called before alx_stop by interrupt handler and invoke alx_link_check later. Alx_stop

[PATCH 5.7 256/265] powerpc/fsl_booke/32: Fix build with CONFIG_RANDOMIZE_BASE

2020-06-29 Thread Sasha Levin
From: Arseny Solokha commit 7e4773f73dcfb92e7e33532162f722ec291e75a4 upstream. Building the current 5.8 kernel for an e500 machine with CONFIG_RANDOMIZE_BASE=y and CONFIG_BLOCK=n yields the following failure: arch/powerpc/mm/nohash/kaslr_booke.c: In function 'kaslr_early_init':

[PATCH 5.7 123/265] dma-direct: check return value when encrypting or decrypting memory

2020-06-29 Thread Sasha Levin
From: David Rientjes [ Upstream commit 56fccf21d1961a06e2a0c96ce446ebf036651062 ] __change_page_attr() can fail which will cause set_memory_encrypted() and set_memory_decrypted() to return non-zero. If the device requires unencrypted DMA memory and decryption fails, simply free the memory and

Re: [PATCH] MAINTAINERS: remove obsolete entry after file renaming

2020-06-29 Thread Mark Brown
On Sun, 28 Jun 2020 20:02:29 +0200, Lukas Bulwahn wrote: > Commit f16861b12fa0 ("regulator: rename da903x to da903x-regulator") missed > to adjust the DIALOG SEMICONDUCTOR DRIVERS section in MAINTAINERS. > > Hence, ./scripts/get_maintainer.pl --self-test=patterns complains: > > warning: no

Re: [PATCH net-next v3 2/7] dt-bindings: net: add backplane dt bindings

2020-06-29 Thread Rob Herring
On Mon, 22 Jun 2020 16:35:19 +0300, Florinel Iordache wrote: > Add ethernet backplane device tree bindings > > Signed-off-by: Florinel Iordache > --- > .../bindings/net/ethernet-controller.yaml | 7 ++- > .../devicetree/bindings/net/ethernet-phy.yaml | 50 >

[PATCH 5.7 034/265] sch_cake: don't try to reallocate or unshare skb unconditionally

2020-06-29 Thread Sasha Levin
From: Ilya Ponetayev [ Upstream commit 9208d2863ac689a563b92f2161d8d1e7127d0add ] cake_handle_diffserv() tries to linearize mac and network header parts of skb and to make it writable unconditionally. In some cases it leads to full skb reallocation, which reduces throughput and increases CPU

[PATCH 5.7 138/265] RDMA/mad: Fix possible memory leak in ib_mad_post_receive_mads()

2020-06-29 Thread Sasha Levin
From: Fan Guo [ Upstream commit a17f4bed811c60712d8131883cdba11a105d0161 ] If ib_dma_mapping_error() returns non-zero value, ib_mad_post_receive_mads() will jump out of loops and return -ENOMEM without freeing mad_priv. Fix this memory-leak problem by freeing mad_priv in this case. Fixes:

[PATCH 5.7 092/265] IB/hfi1: Fix module use count flaw due to leftover module put calls

2020-06-29 Thread Sasha Levin
From: Dennis Dalessandro commit 822fbd37410639acdae368ea55477ddd3498651d upstream. When the try_module_get calls were removed from opening and closing of the i2c debugfs file, the corresponding module_put calls were missed. This results in an inaccurate module use count that requires a power

[PATCH 5.7 218/265] KVM: VMX: Stop context switching MSR_IA32_UMWAIT_CONTROL

2020-06-29 Thread Sasha Levin
From: Sean Christopherson commit bf09fb6cba4f7099620cc9ed32d94c27c4af992e upstream. Remove support for context switching between the guest's and host's desired UMWAIT_CONTROL. Propagating the guest's value to hardware isn't required for correct functionality, e.g. KVM intercepts reads and

[PATCH 5.7 058/265] btrfs: fix a block group ref counter leak after failure to remove block group

2020-06-29 Thread Sasha Levin
From: Filipe Manana [ Upstream commit 9fecd13202f520f3f25d5b1c313adb740fe19773 ] When removing a block group, if we fail to delete the block group's item from the extent tree, we jump to the 'out' label and end up decrementing the block group's reference count once only (by 1), resulting in a

[PATCH 5.7 088/265] xhci: Return if xHCI doesn't support LPM

2020-06-29 Thread Sasha Levin
From: Kai-Heng Feng commit f0c472a6da51f9fac15e80fe2fd9c83b68754cff upstream. Just return if xHCI is quirked to disable LPM. We can save some time from reading registers and doing spinlocks. Add stable tag as we want this patch together with the next one, "Poll for U0 after disabling USB2 LPM"

Re: [PATCH 1/2] usb: mtu3: disable USB2 LPM

2020-06-29 Thread Markus Elfring
> A SuperSpeed device shall include the USB 2.0 extension descriptor … If you would insist to combine the presented update steps for this software module, a cover letter would be helpful together with following improvements.

[PATCH 5.7 263/265] dm writecache: correct uncommitted_block when discarding uncommitted entry

2020-06-29 Thread Sasha Levin
From: Huaisheng Ye commit 39495b12ef1cf602e6abd350dce2ef4199906531 upstream. When uncommitted entry has been discarded, correct wc->uncommitted_block for getting the exact number. Fixes: 48debafe4f2fe ("dm: add writecache target") Cc: sta...@vger.kernel.org Signed-off-by: Huaisheng Ye

[PATCH 5.7 078/265] usb: cdns3: trace: using correct dir value

2020-06-29 Thread Sasha Levin
From: Peter Chen commit ba3a80fe0fb67d8790f62b7bc60df97406d89871 upstream. It should use the correct direction value from register, not depends on previous software setting. It fixed the EP number wrong issue at trace when the TRBERR interrupt occurs for EP0IN. When the EP0IN IOC has finished,

[PATCH 5.7 208/265] syscalls: Fix offset type of ksys_ftruncate()

2020-06-29 Thread Sasha Levin
From: Jiri Slaby commit 8e742aa79780b13cd300a42198c1a4cea9c89905 upstream. After the commit below, truncate() on x86 32bit uses ksys_ftruncate(). But ksys_ftruncate() truncates the offset to unsigned long. Switch the type of offset to loff_t which is what do_sys_ftruncate() expects. Fixes:

[PATCH 5.7 202/265] recordmcount: support >64k sections

2020-06-29 Thread Sasha Levin
From: Sami Tolvanen [ Upstream commit 4ef57b21d6fb49d2b25c47e4cff467a0c2c8b6b7 ] When compiling a kernel with Clang and LTO, we need to run recordmcount on vmlinux.o with a large number of sections, which currently fails as the program doesn't understand extended section indexes. This change

[PATCH 5.7 152/265] net: qede: fix PTP initialization on recovery

2020-06-29 Thread Sasha Levin
From: Alexander Lobakin [ Upstream commit 1c85f394c2206ea3835f43534d5675f0574e1b70 ] Currently PTP cyclecounter and timecounter are initialized only on the first probing and are cleaned up during removal. This means that PTP becomes non-functional after device recovery. Fix this by

[PATCH 5.7 228/265] mm, compaction: make capture control handling safe wrt interrupts

2020-06-29 Thread Sasha Levin
From: Vlastimil Babka commit b9e20f0da1f5c9c68689450a8cb436c9486434c8 upstream. Hugh reports: "While stressing compaction, one run oopsed on NULL capc->cc in __free_one_page()'s task_capc(zone): compact_zone_order() had been interrupted, and a page was being freed in the return from

[PATCH 5.7 251/265] drm/panel-simple: fix connector type for newhaven_nhd_43_480272ef_atxl

2020-06-29 Thread Sasha Levin
From: Tomi Valkeinen commit 8a4f5e1185db61bce6ce3a5dce6381a77bcf94e6 upstream. Add connector type for newhaven_nhd_43_480272ef_atxl, as drm_panel_bridge_add() requires connector type to be set. Signed-off-by: Tomi Valkeinen Cc: sta...@vger.kernel.org # v5.5+ Signed-off-by: Sam Ravnborg Link:

Re: [RFC PATCH v2 08/18] media: tegra-video: Enable TPG based on kernel config

2020-06-29 Thread Hans Verkuil
On 17/06/2020 03:41, Sowjanya Komatineni wrote: > Tegra internal TPG mode is only for Tegra vi and csi testing > without a real sensor and driver should default support real > sensor. > > So, This patch adds CONFIG_VIDEO_TEGRA_TPG and enables Tegra > internal TPG mode only when this config is

[PATCH 5.7 149/265] net: qede: stop adding events on an already destroyed workqueue

2020-06-29 Thread Sasha Levin
From: Alexander Lobakin [ Upstream commit 4079c7f7a2a00ab403c177ce723b560de59139c3 ] Set rdma_wq pointer to NULL after destroying the workqueue and check for it when adding new events to fix crashes on driver unload. Fixes: cee9fbd8e2e9 ("qede: Add qedr framework") Signed-off-by: Alexander

[PATCH 5.7 172/265] net: macb: free resources on failure path of at91ether_open()

2020-06-29 Thread Sasha Levin
From: Claudiu Beznea [ Upstream commit 33fdef24c9ac20c68b71b363e423fbf9ad2bfc1e ] DMA buffers were not freed on failure path of at91ether_open(). Along with changes for freeing the DMA buffers the enable/disable interrupt instructions were moved to at91ether_start()/at91ether_stop() functions

[PATCH 5.7 231/265] ocfs2: avoid inode removal while nfsd is accessing it

2020-06-29 Thread Sasha Levin
From: Junxiao Bi commit 4cd9973f9ff69e37dd0ba2bd6e6423f8179c329a upstream. Patch series "ocfs2: fix nfsd over ocfs2 issues", v2. This is a series of patches to fix issues on nfsd over ocfs2. patch 1 is to avoid inode removed while nfsd access it patch 2 & 3 is to fix a panic issue. This

[PATCH 5.7 153/265] net: qede: fix use-after-free on recovery and AER handling

2020-06-29 Thread Sasha Levin
From: Alexander Lobakin [ Upstream commit ec6c80590bde6b5dfa4970fffa3572f1acd313ca ] Set edev->cdev pointer to NULL after calling remove() callback to avoid using of already freed object. Fixes: ccc67ef50b90 ("qede: Error recovery process") Signed-off-by: Alexander Lobakin Signed-off-by: Igor

[PATCH 5.7 171/265] i2c: fsi: Fix the port number field in status register

2020-06-29 Thread Sasha Levin
From: Eddie James [ Upstream commit 502035e284cc7e9efef22b01771d822d49698ab9 ] The port number field in the status register was not correct, so fix it. Fixes: d6ffb6300116 ("i2c: Add FSI-attached I2C master algorithm") Signed-off-by: Eddie James Signed-off-by: Joel Stanley Signed-off-by:

[PATCH 5.7 247/265] drm/radeon: fix fb_div check in ni_init_smc_spll_table()

2020-06-29 Thread Sasha Levin
From: Denis Efremov commit 35f760b44b1b9cb16a306bdcc7220fbbf78c4789 upstream. clk_s is checked twice in a row in ni_init_smc_spll_table(). fb_div should be checked instead. Fixes: 69e0b57a91ad ("drm/radeon/kms: add dpm support for cayman (v5)") Cc: sta...@vger.kernel.org Signed-off-by: Denis

[PATCH 5.7 023/265] tcp: grow window for OOO packets only for SACK flows

2020-06-29 Thread Sasha Levin
From: Eric Dumazet [ Upstream commit 662051215c758ae8545451628816204ed6cd372d ] Back in 2013, we made a change that broke fast retransmit for non SACK flows. Indeed, for these flows, a sender needs to receive three duplicate ACK before starting fast retransmit. Sending ACK with different

Re: buffer allocation: was: [PATCH v3 3/3] printk: use the lockless ringbuffer

2020-06-29 Thread John Ogness
On 2020-06-29, Petr Mladek wrote: >> @@ @@ void __init setup_log_buf(int early) >> +prb_init(_rb_dynamic, >> + new_log_buf, order_base_2(new_log_buf_len), >> + new_dict_buf, order_base_2(new_log_buf_len), >> + new_descs, order_base_2(new_descs_count)); > >

[PATCH 5.7 233/265] ocfs2: fix value of OCFS2_INVALID_SLOT

2020-06-29 Thread Sasha Levin
From: Junxiao Bi commit 9277f8334ffc719fe922d776444d6e4e884dbf30 upstream. In the ocfs2 disk layout, slot number is 16 bits, but in ocfs2 implementation, slot number is 32 bits. Usually this will not cause any issue, because slot number is converted from u16 to u32, but OCFS2_INVALID_SLOT was

[PATCH 5.7 164/265] nvme: don't protect ns mutation with ns->head->lock

2020-06-29 Thread Sasha Levin
From: Sagi Grimberg [ Upstream commit e164471dcf19308d154adb69e7760d8ba426a77f ] Right now ns->head->lock is protecting namespace mutation which is wrong and unneeded. Move it to only protect against head mutations. While we're at it, remove unnecessary ns->head reference as we already have

[PATCH 5.7 232/265] ocfs2: load global_inode_alloc

2020-06-29 Thread Sasha Levin
From: Junxiao Bi commit 7569d3c754e452769a5747eeeba488179e38a5da upstream. Set global_inode_alloc as OCFS2_FIRST_ONLINE_SYSTEM_INODE, that will make it load during mount. It can be used to test whether some global/system inodes are valid. One use case is that nfsd will test whether root inode

[PATCH 5.7 248/265] drm/fb-helper: Fix vt restore

2020-06-29 Thread Sasha Levin
From: Daniel Vetter commit dc5bdb68b5b369d5bc7d1de96fa64cc1737a6320 upstream. In the past we had a pile of hacks to orchestrate access between fbdev emulation and native kms clients. We've tried to streamline this, by always preferring the kms side above fbdev calls when a drm master exists,

[PATCH 5.7 246/265] drm: rcar-du: Fix build error

2020-06-29 Thread Sasha Levin
From: Daniel Gomez commit 5f9af404eec82981c4345c9943be48422234e7ab upstream. Select DRM_KMS_HELPER dependency. Build error when DRM_KMS_HELPER is not selected: drivers/gpu/drm/rcar-du/rcar_lvds.o:(.rodata+0xd48): undefined reference to `drm_atomic_helper_bridge_duplicate_state'

[PATCH 5.7 146/265] dma-direct: add missing set_memory_decrypted() for coherent mapping

2020-06-29 Thread Sasha Levin
From: David Rientjes [ Upstream commit 1a2b3357e860d890f8045367b179c7e7e802cd71 ] When a coherent mapping is created in dma_direct_alloc_pages(), it needs to be decrypted if the device requires unencrypted DMA before returning. Fixes: 3acac065508f ("dma-mapping: merge the generic remapping

[PATCH 5.7 217/265] KVM: nVMX: Plumb L2 GPA through to PML emulation

2020-06-29 Thread Sasha Levin
From: Sean Christopherson commit 2dbebf7ae1ed9a420d954305e2c9d5ed39ec57c3 upstream. Explicitly pass the L2 GPA to kvm_arch_write_log_dirty(), which for all intents and purposes is vmx_write_pml_buffer(), instead of having the latter pull the GPA from vmcs.GUEST_PHYSICAL_ADDRESS. If the dirty

[PATCH 5.7 173/265] wireguard: receive: account for napi_gro_receive never returning GRO_DROP

2020-06-29 Thread Sasha Levin
From: "Jason A. Donenfeld" [ Upstream commit df08126e3833e9dca19e2407db5f5860a7c194fb ] The napi_gro_receive function no longer returns GRO_DROP ever, making handling GRO_DROP dead code. This commit removes that dead code. Further, it's not even clear that device drivers have any business in

[PATCH 5.7 095/265] bus: ti-sysc: Ignore clockactivity unless specified as a quirk

2020-06-29 Thread Sasha Levin
From: Tony Lindgren [ Upstream commit 08b91dd6e547467fad61a7c201ff71080d7ad65a ] We must ignore the clockactivity bit for most modules and not set it unless specified for the module with SYSC_QUIRK_USE_CLOCKACT. Otherwise the interface clock can be automatically gated constantly causing

[PATCH 5.7 245/265] drm/amd: fix potential memleak in err branch

2020-06-29 Thread Sasha Levin
From: Bernard Zhao commit b5b78a6c8d8cb9c307bc6b16a754603424459d6e upstream. The function kobject_init_and_add alloc memory like: kobject_init_and_add->kobject_add_varg->kobject_set_name_vargs ->kvasprintf_const->kstrdup_const->kstrdup->kmalloc_track_caller ->kmalloc_slab, in err branch this

[PATCH 5.7 099/265] ARM: dts: Fix am33xx.dtsi USB ranges length

2020-06-29 Thread Sasha Levin
From: Oskar Holmlund [ Upstream commit 3f311e8993ed18fb7325373ec0f82a7f8e8be82e ] AM335x TRM: Table 2-1 defines USBSS - USB Queue Manager in memory region 0x4740 to 0x4740 7FFF. Looks like the older TRM revisions list the range from 0x5000 to 0x8000 as reserved. Fixes: 0782e8572ce4

[PATCH 5.7 223/265] btrfs: fix data block group relocation failure due to concurrent scrub

2020-06-29 Thread Sasha Levin
From: Filipe Manana commit 432cd2a10f1c10cead91fe706ff5dc52f06d642a upstream. When running relocation of a data block group while scrub is running in parallel, it is possible that the relocation will fail and abort the current transaction with an -EINVAL error: [134243.988595] BTRFS info

[PATCH 5.7 091/265] IB/mad: Fix use after free when destroying MAD agent

2020-06-29 Thread Sasha Levin
From: Shay Drory commit 116a1b9f1cb769b83e5adff323f977a62b1dcb2e upstream. Currently, when RMPP MADs are processed while the MAD agent is destroyed, it could result in use after free of rmpp_recv, as decribed below: cpu-0 cpu-1 -

[PATCH 5.7 038/265] bpf: tcp: bpf_cubic: fix spurious HYSTART_DELAY exit upon drop in min RTT

2020-06-29 Thread Sasha Levin
From: Neal Cardwell [ Upstream commit 7d21d54d624777358ab6c7be7ff778808fef70ba ] Apply the fix from: "tcp_cubic: fix spurious HYSTART_DELAY exit upon drop in min RTT" to the BPF implementation of TCP CUBIC congestion control. Repeating the commit description here for completeness: Mirja

[PATCH 5.7 080/265] usb: cdns3: ep0: add spinlock for cdns3_check_new_setup

2020-06-29 Thread Sasha Levin
From: Peter Chen commit 2587a029fa2a877d0a8dda955ef1b24c94b4bd0e upstream. The other thread may access other endpoints when the cdns3_check_new_setup is handling, add spinlock to protect it. Cc: Fixes: 7733f6c32e36 ("usb: cdns3: Add Cadence USB3 DRD Driver") Reviewed-by: Pawel Laszczak

[PATCH 5.7 239/265] arm64: dts: imx8mm-evk: correct ldo1/ldo2 voltage range

2020-06-29 Thread Sasha Levin
From: Robin Gong commit 4fd6b5735c03c0955d93960d31f17d7144f5578f upstream. Correct ldo1 voltage range from wrong high group(3.0V~3.3V) to low group (1.6V~1.9V) because the ldo1 should be 1.8V. Actually, two voltage groups have been supported at bd718x7-regulator driver, hence, just corrrect the

[PATCH 5.7 047/265] wireguard: device: avoid circular netns references

2020-06-29 Thread Sasha Levin
From: "Jason A. Donenfeld" [ Upstream commit 900575aa33a3eaaef802b31de187a85c4a4b4bd0 ] Before, we took a reference to the creating netns if the new netns was different. This caused issues with circular references, with two wireguard interfaces swapping namespaces. The solution is to rather not

[PATCH 5.7 253/265] ARM: dts: imx6ul-kontron: Move watchdog from Kontron i.MX6UL/ULL board to SoM

2020-06-29 Thread Sasha Levin
From: Frieder Schrempf commit 04a2c05179b732a4c097f0a9c701ef4c9a37e1e3 upstream. The watchdog's WDOG_ANY signal is used to trigger a POR of the SoC, if a soft reset is issued. As the SoM hardware connects the WDOG_ANY and the POR signals, the watchdog node itself and the pin configuration

[PATCH 5.7 089/265] cdc-acm: Add DISABLE_ECHO quirk for Microchip/SMSC chip

2020-06-29 Thread Sasha Levin
From: Joakim Tjernlund commit 03894573f2913181ee5aae0089f333b2131f2d4b upstream. USB_DEVICE(0x0424, 0x274e) can send data before cdc_acm is ready, causing garbage chars on the TTY causing stray input to the shell and/or login prompt. Signed-off-by: Joakim Tjernlund Cc: sta...@vger.kernel.org

[PATCH net-next 2/3] net: ipa: reduce aggregation time limit

2020-06-29 Thread Alex Elder
Halve the time limit used when aggregation is enabled on an RX endpoint, to half a millisecond. Use DIV_ROUND_CLOSEST() to compute the value that represents the time period, to get better accuracy in the event the time limit is not an even multiple of the granularity. Signed-off-by: Alex Elder

[PATCH 5.7 125/265] efi/x86: Setup stack correctly for efi_pe_entry

2020-06-29 Thread Sasha Levin
From: Arvind Sankar [ Upstream commit 41d90b0c1108d1e46c48cf79964636c553844f4c ] Commit 17054f492dfd ("efi/x86: Implement mixed mode boot without the handover protocol") introduced a new entry point for the EFI stub to be booted in mixed mode on 32-bit firmware. When entered via

[PATCH net-next 3/3] net: ipa: reuse a local variable in ipa_endpoint_init_aggr()

2020-06-29 Thread Alex Elder
Reuse the "limit" local variable in ipa_endpoint_init_aggr() when setting the aggregation size limit. Simple cleanup. Signed-off-by: Alex Elder --- drivers/net/ipa/ipa_endpoint.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/net/ipa/ipa_endpoint.c

Re: [PATCH v2 1/2] dt-bindings: devapc: add bindings for devapc-mt6873

2020-06-29 Thread Rob Herring
On Fri, 19 Jun 2020 17:41:59 +0800, Neal Liu wrote: > Add bindings for MT6873 devapc. > > Signed-off-by: Neal Liu > --- > .../soc/mediatek/devapc/devapc-mt6873.yaml | 61 > > 1 file changed, 61 insertions(+) > create mode 100644 >

RE: [PATCH v2 1/3] Drivers: hv: vmbus: Add vmbus_requestor data structure for VMBus hardening

2020-06-29 Thread Michael Kelley
From: Andres Beltran Sent: Monday, June 29, 2020 2:51 PM > > On Mon, Jun 29, 2020 at 4:46 PM Wei Liu wrote: > > > > On Mon, Jun 29, 2020 at 04:02:25PM -0400, Andres Beltran wrote: > > > Currently, VMbus drivers use pointers into guest memory as request IDs > > > for interactions with Hyper-V.

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