Re: [PATCH v3 9/9] dt-bindings: serial: stm32: add phandle 'bluetooth' to fix dtbs_check warrning

2021-03-19 Thread dillon min
Hi Alexandre, Thanks for the reply. On Fri, Mar 19, 2021 at 4:38 PM Alexandre TORGUE wrote: > > Hi Dillon > > On 3/19/21 5:28 AM, dillon min wrote: > > No changes, Just loop lkp in. > > > > > > Hi lkp, > > > > Sorry for the late reply, thanks for your report. > > This patch is to fix the build w

Re: [PATCH v2 2/2] driver core: add helper for deferred probe reason setting

2021-03-19 Thread Andy Shevchenko
On Fri, Mar 19, 2021 at 1:05 PM Ahmad Fatoum wrote: > > We now have three places within the same file doing the same operation > of freeing this pointer and setting it anew. A helper make this makes > arguably easier to read, so add one. FWIW, Reviewed-by: Andy Shevchenko Now I'm wondering wh

[git pull] IOMMU Fixes for Linux v5.12-rc3

2021-03-19 Thread Joerg Roedel
Hi Linus, The following changes since commit 1e28eed17697bcf343c6743f0028cc3b5dd88bf0: Linux 5.12-rc3 (2021-03-14 14:41:02 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git tags/iommu-fixes-v5.12-rc3 for you to fetch changes up to

Re: [PATCH v2 2/2] driver core: add helper for deferred probe reason setting

2021-03-19 Thread Andy Shevchenko
On Fri, Mar 19, 2021 at 1:05 PM Ahmad Fatoum wrote: > > We now have three places within the same file doing the same operation > of freeing this pointer and setting it anew. A helper make this > arguably easier to read, so add one. > Signed-off-by: Ahmad Fatoum One thing: Suggested-by? -- Wit

Re: [PATCH-tip 0/5] locking/locktorture: Fix locktorture ww_mutex test problems

2021-03-19 Thread Ingo Molnar
* Waiman Long wrote: > This is a follow-up patch series for the previous patchset on fixing > locktorture ww_mutex test problem [1]. The first 3 patches of that > series were merged into tip. It turns out that the last one of the > three wasn't quite right. So this patch series revert the last

[PATCH] genirq/matrix: Prevent managed_allocated/total_allocated counters getting out-of-sync

2021-03-19 Thread Vitaly Kuznetsov
When irq_matrix_free() is called for an unallocated interrupt, managed_allocated/total_allocated counters get out of sync with the real state of the matrix. Later, when the last interrupt is freed, these counters will go negative (overflow). While this is certainly a problem of the calling code, we

[PATCH 1/1] arm64: print alloc free paths for address in registers

2021-03-19 Thread Maninder Singh
In case of a use after free kernel OOPs, freed path of the object is required to debug futher. In most of cases the object address is present in one of the registers. Thus check the register's address and if it belongs to slab, print its alloc and free path. commit a02a25709155 ("mm/slub: add sup

Re: [PATCH 1/2] selftests: add a kselftest for SLUB debugging functionality

2021-03-19 Thread Marco Elver
On Fri, 19 Mar 2021 at 11:46, Vlastimil Babka wrote: > On 3/18/21 12:47 PM, Marco Elver wrote: > > On Tue, Mar 16, 2021 at 01:41PM +0100, glit...@gmail.com wrote: > >> From: Oliver Glitta > >> > >> SLUB has resiliency_test() function which is hidden behind #ifdef > >> SLUB_RESILIENCY_TEST that is

Re: [PATCH v2 12/14] objtool: Allow archs to rewrite retpolines

2021-03-19 Thread Peter Zijlstra
On Thu, Mar 18, 2021 at 09:54:40PM -0500, Josh Poimboeuf wrote: > On Thu, Mar 18, 2021 at 06:11:15PM +0100, Peter Zijlstra wrote: > > @@ -1212,6 +1225,8 @@ static int handle_group_alt(struct objto > > dest_off = arch_jump_destination(insn); > > if (dest_off == special_alt->n

Re: [for-stable-4.19 PATCH 1/2] vmlinux.lds.h: Create section for protection against instrumentation

2021-03-19 Thread Alexandre Chartre
On 3/19/21 11:39 AM, Greg Kroah-Hartman wrote: On Fri, Mar 19, 2021 at 07:54:15AM +0800, Nicolas Boichat wrote: From: Thomas Gleixner commit 655389433e7efec589838b400a2a652b3ffa upstream. Some code pathes, especially the low level entry code, must be protected against instrumentation fo

Re: [net-next PATCH v7 04/16] of: mdio: Refactor of_phy_find_device()

2021-03-19 Thread Daniel Thompson
On Wed, Mar 17, 2021 at 02:15:20PM +0530, Calvin Johnson wrote: > Hi Daniel, > > On Tue, Mar 16, 2021 at 07:17:19PM +, Daniel Thompson wrote: > > On Thu, Mar 11, 2021 at 11:49:59AM +0530, Calvin Johnson wrote: > > > Refactor of_phy_find_device() to use fwnode_phy_find_device(). > > > > > > Si

Re: [PATCH v1 2/2] arm64: dts: qcom: sm8350: Add thermal zones and throttling support

2021-03-19 Thread Robert Foss
On Fri, 19 Mar 2021 at 11:49, Robert Foss wrote: > > sm8350 has 29 thermal sensors split across two tsens controllers. Add > the thermal zones to expose them and wireup the cpus to throttle their > frequencies on crossing passive temperature thresholds. > > Signed-off-by: Robert Foss > --- > arc

Re: [PATCH V6 2/2] power: supply: bq27xxx: Add support for BQ78Z100

2021-03-19 Thread Sebastian Reichel
Hi, On Fri, Mar 19, 2021 at 10:16:51AM +, LI Qingwu wrote: > About 4mA current, it's not the expected current, since we are > working remotely, the instrument was unattended. With the real > current, the battery will be empty in a working day, so we just > connect a dummy load for test for a w

Re: [PATCH v1 2/2] arm64: dts: qcom: sm8350: Add thermal zones and throttling support

2021-03-19 Thread Daniel Lezcano
On 19/03/2021 12:24, Robert Foss wrote: > On Fri, 19 Mar 2021 at 11:49, Robert Foss wrote: >> >> sm8350 has 29 thermal sensors split across two tsens controllers. Add >> the thermal zones to expose them and wireup the cpus to throttle their >> frequencies on crossing passive temperature thresholds

Re: [PATCH 18/30] drm/print: Fixup DRM_DEBUG_KMS_RATELIMITED()

2021-03-19 Thread Robert Foss
Hey Lyude, Thanks for the patch, On Fri, 19 Feb 2021 at 22:59, Lyude Paul wrote: > > Since we're about to move drm_dp_helper.c over to drm_dbg_*(), we'll want > to make sure that we can also add ratelimited versions of these macros in > order to retain some of the previous debugging output behav

Re: sparc: clang: error: unknown argument: '-mno-fpu'

2021-03-19 Thread Arnd Bergmann
On Fri, Mar 19, 2021 at 8:36 AM Naresh Kamboju wrote: > > Linux mainline master build breaks for sparc defconfig. > There are multiple errors / warnings with clang-12 and clang-11 and 10. > - sparc (defconfig) with clang-12, clang-11 and clang-10 > - sparc (tinyconfig) with clang-12, clang-11 an

Re: [PATCH 27/30] drm/dp_mst: Pass drm_dp_mst_topology_mgr to drm_dp_get_vc_payload_bw()

2021-03-19 Thread Robert Foss
Hey Lyude, Thanks for the patch. On Fri, 19 Feb 2021 at 23:03, Lyude Paul wrote: > > Since this is one of the few functions in drm_dp_mst_topology.c that > doesn't have any way of getting access to a drm_device, let's pass the > drm_dp_mst_topology_mgr down to this function so that it can use >

[PATCH] phy:qualcomm: remove duplicate argument

2021-03-19 Thread menglong8 . dong
From: Zhang Yunkai 'HSUSB_CTRL_DPSEHV_CLAMP' in 'val' is duplicated. Signed-off-by: Zhang Yunkai --- drivers/phy/qualcomm/phy-qcom-ipq806x-usb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/phy/qualcomm/phy-qcom-ipq806x-usb.c b/drivers/phy/qualcomm/phy-qcom-

Re: sparc: clang: error: unknown argument: '-mno-fpu'

2021-03-19 Thread John Paul Adrian Glaubitz
On 3/19/21 12:31 PM, Arnd Bergmann wrote: > On Fri, Mar 19, 2021 at 8:36 AM Naresh Kamboju > wrote: >> >> Linux mainline master build breaks for sparc defconfig. >> There are multiple errors / warnings with clang-12 and clang-11 and 10. >> - sparc (defconfig) with clang-12, clang-11 and clang-10

[tip: x86/sgx] selftests/sgx: Improve error detection and messages

2021-03-19 Thread tip-bot2 for Dave Hansen
The following commit has been merged into the x86/sgx branch of tip: Commit-ID: 79713a1fa1b9cd9d650b1ff0657ddbadc5dbbeaa Gitweb: https://git.kernel.org/tip/79713a1fa1b9cd9d650b1ff0657ddbadc5dbbeaa Author:Dave Hansen AuthorDate:Thu, 18 Mar 2021 12:43:01 -07:00 Committer:

Re: [PATCH 28/30] drm/dp: Convert drm_dp_helper.c to using drm_err/drm_dbg_*()

2021-03-19 Thread Robert Foss
Hey Lyude, Thanks for the patch. On Fri, 19 Feb 2021 at 23:03, Lyude Paul wrote: > > Now that we've added a back-pointer to drm_device to drm_dp_aux, made > drm_dp_aux available to any functions in drm_dp_helper.c which need to > print to the kernel log, and ensured all of our logging uses a con

Re: [PATCH mm] kfence: fix printk format for ptrdiff_t

2021-03-19 Thread Segher Boessenkool
On Thu, Mar 18, 2021 at 10:38:43AM +0100, Christophe Leroy wrote: > Yes it seems to be wrong. It was changed by commit d27dfd3887 ("Import > pre2.0.8"), so that's long time ago. Before that it was an 'int' for ppc32. > > gcc provides ptrdiff_t in stddef.h via __PTRDIFF_TYPE__ > gcc defined __PTRD

Re: [PATCH net-next 2/4] gro: add combined call_gro_receive() + INDIRECT_CALL_INET() helper

2021-03-19 Thread Alexander Lobakin
From: Alexander Lobakin Date: Fri, 19 Mar 2021 11:13:25 + > From: Paolo Abeni > Date: Fri, 19 Mar 2021 11:53:42 +0100 > > > Hello, > > Hi! > > > On Thu, 2021-03-18 at 18:42 +, Alexander Lobakin wrote: > > > call_gro_receive() is used to limit GRO recursion, but it works only > > > with c

Re: [PATCH v5] printk: Userspace format enumeration support

2021-03-19 Thread Petr Mladek
On Thu 2021-03-18 12:31:44, Rasmus Villemoes wrote: > On 18/03/2021 11.46, Petr Mladek wrote: > > > BTW: Is the trick with int (printk)(const char *s, ...) documented > > somewhere? Is it portable? > > It is completely standard and portable C, explicitly spelled out in the > C standard itself. C9

Re: [PATCH v2 2/2] driver core: add helper for deferred probe reason setting

2021-03-19 Thread Ahmad Fatoum
On 19.03.21 12:13, Andy Shevchenko wrote: > On Fri, Mar 19, 2021 at 1:05 PM Ahmad Fatoum wrote: >> >> We now have three places within the same file doing the same operation >> of freeing this pointer and setting it anew. A helper make this > > makes > >> arguably easier to read, so add one. > >

Re: [PATCH v2 2/2] driver core: add helper for deferred probe reason setting

2021-03-19 Thread Ahmad Fatoum
Hi, On 19.03.21 12:15, Andy Shevchenko wrote: > On Fri, Mar 19, 2021 at 1:05 PM Ahmad Fatoum wrote: >> >> We now have three places within the same file doing the same operation >> of freeing this pointer and setting it anew. A helper make this >> arguably easier to read, so add one. > >> Signed-

Re: [PATCH 30/30] drm/dp_mst: Convert drm_dp_mst_topology.c to drm_err()/drm_dbg*()

2021-03-19 Thread Robert Foss
Hey Lyude, Thanks for the patch On Fri, 19 Feb 2021 at 23:03, Lyude Paul wrote: > > And finally, convert all of the code in drm_dp_mst_topology.c over to using > drm_err() and drm_dbg*(). Note that this refactor would have been a lot > more complicated to have tried writing a coccinelle script f

[tip: x86/urgent] x86/ioapic: Ignore IRQ2 again

2021-03-19 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: a501b048a95b79e1e34f03cac3c87ff1e9f229ad Gitweb: https://git.kernel.org/tip/a501b048a95b79e1e34f03cac3c87ff1e9f229ad Author:Thomas Gleixner AuthorDate:Thu, 18 Mar 2021 20:26:47 +01:00 Commit

arch/alpha/lib/csum_partial_copy.c:328:1: error: no previous prototype for 'csum_and_copy_from_user'

2021-03-19 Thread kernel test robot
csum_and_copy_from_user() date: 10 months ago config: alpha-randconfig-r013-20210319 (attached as .config) compiler: alpha-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross

Re: [PATCH v4 18/19] coresight: sink: Add TRBE driver

2021-03-19 Thread Mike Leach
HI Suzuki, On Fri, 19 Mar 2021 at 10:30, Suzuki K Poulose wrote: > > Hi Mike > > > On 8 Mar 2021, at 17:26, Mike Leach wrote: > > > > Hi Suzuki, > > > > On Thu, 25 Feb 2021 at 19:36, Suzuki K Poulose > > wrote: > >> > >> From: Anshuman Khandual > >> > >> Trace Buffer Extension (TRBE) implemen

Re: [for-stable-4.19 PATCH 1/2] vmlinux.lds.h: Create section for protection against instrumentation

2021-03-19 Thread Greg Kroah-Hartman
On Fri, Mar 19, 2021 at 12:20:22PM +0100, Alexandre Chartre wrote: > > On 3/19/21 11:39 AM, Greg Kroah-Hartman wrote: > > On Fri, Mar 19, 2021 at 07:54:15AM +0800, Nicolas Boichat wrote: > > > From: Thomas Gleixner > > > > > > commit 655389433e7efec589838b400a2a652b3ffa upstream. > > > > >

Re: sparc: clang: error: unknown argument: '-mno-fpu'

2021-03-19 Thread Arnd Bergmann
On Fri, Mar 19, 2021 at 12:38 PM John Paul Adrian Glaubitz wrote: > On 3/19/21 12:31 PM, Arnd Bergmann wrote: > > On Fri, Mar 19, 2021 at 8:36 AM Naresh Kamboju > > wrote: > >> > >> Linux mainline master build breaks for sparc defconfig. > >> There are multiple errors / warnings with clang-12 and

Re: [PATCH v5 1/5] mm,memory_hotplug: Allocate memmap from the added memory range

2021-03-19 Thread David Hildenbrand
Hopefully Andrew can amend these two nits? (another pair of eyes certainly wouldn't hurt :) ) definitely, but those are pricy as you may know :-D Even worse, they are even hard to find! :) -- Thanks, David / dhildenb

Re: [PATCH 1/3] drm/ttm: move swapout logic around v2

2021-03-19 Thread Christian König
General question for the audience: Is there any way to silence the build bot here? This is a well known false positive. Regards, Christian. Am 18.03.21 um 19:13 schrieb kernel test robot: Hi "Christian, I love your patch! Yet something to improve: [auto build test ERROR on drm-tip/drm-tip]

[PATCH v1 0/2] wo minor changes for Cavium MMC host driver

2021-03-19 Thread Bean Huo
From: Bean Huo Bean Huo (2): mmc: cavium: Use '"%s...", __func__' to print function name mmc: cavium: Remove redundant if-statement checkup drivers/mmc/host/cavium.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) -- 2.25.1

[PATCH v1 2/2] mmc: cavium: Remove redundant if-statement checkup

2021-03-19 Thread Bean Huo
From: Bean Huo Currently, we have two ways to issue multiple-block read/write the command to the eMMC. One is by normal IO request path fs->block->mmc. Another one is that we can issue multiple-block read/write through MMC ioctl interface. For the first path, mrq->stop, and mrq->stop->opcode will

[PATCH v1 1/2] mmc: cavium: Use '"%s...", __func__' to print function name

2021-03-19 Thread Bean Huo
From: Bean Huo Use preferred way '"%s...", __func__' to print function name. Signed-off-by: Bean Huo --- drivers/mmc/host/cavium.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mmc/host/cavium.c b/drivers/mmc/host/cavium.c index 4bb8f2800a2b..95a41983c6c0 100644

Re: sparc: clang: error: unknown argument: '-mno-fpu'

2021-03-19 Thread John Paul Adrian Glaubitz
On 3/19/21 12:56 PM, Arnd Bergmann wrote: >> We'll get there. There are some other SPARC-related clang bugs that need >> to be squashed first. We have made quite some improvements and it's actually >> maintained by the community. Of course, we don't have a commercial backer >> but that shouldn't be

Re: [External] Re: [PATCH v19 7/8] mm: hugetlb: add a kernel parameter hugetlb_free_vmemmap

2021-03-19 Thread Muchun Song
On Fri, Mar 19, 2021 at 4:59 PM Oscar Salvador wrote: > > On Mon, Mar 15, 2021 at 05:20:14PM +0800, Muchun Song wrote: > > --- a/arch/x86/mm/init_64.c > > +++ b/arch/x86/mm/init_64.c > > @@ -34,6 +34,7 @@ > > #include > > #include > > #include > > +#include > > > > #include > > #include

Re: [PATCH v2 2/2] driver core: add helper for deferred probe reason setting

2021-03-19 Thread Andy Shevchenko
On Fri, Mar 19, 2021 at 1:46 PM Ahmad Fatoum wrote: > On 19.03.21 12:13, Andy Shevchenko wrote: > > On Fri, Mar 19, 2021 at 1:05 PM Ahmad Fatoum > > wrote: > >> > >> We now have three places within the same file doing the same operation > >> of freeing this pointer and setting it anew. A helper

Re: [PATCH] dt: rockchip: rk3399: Add dynamic power coefficient for GPU

2021-03-19 Thread Robin Murphy
On 2021-03-19 11:05, Daniel Lezcano wrote: The DTPM framework is looking for upstream SoC candidates to share the power numbers. We can see around different numbers but the one which seems to be consistent with the initial post for the values on the CPUs can be found in the patch https://lore.ke

[PATCH 4.19 1/8] ext4: check journal inode extents more carefully

2021-03-19 Thread Greg Kroah-Hartman
From: Jan Kara commit ce9f24cccdc019229b70a5c15e2b09ad9c0ab5d1 upstream. Currently, system zones just track ranges of block, that are "important" fs metadata (bitmaps, group descriptors, journal blocks, etc.). This however complicates how extent tree (or indirect blocks) can be checked for inode

[PATCH 4.19 0/8] 4.19.182-rc1 review

2021-03-19 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.19.182 release. There are 8 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 Sun, 21 Mar 2021 12:17:37 +. Anything rec

[PATCH 4.19 3/8] bpf: Prohibit alu ops for pointer types not defining ptr_limit

2021-03-19 Thread Greg Kroah-Hartman
From: Piotr Krysiuk commit f232326f6966cf2a1d1db7bc917a4ce5f9f55f76 upstream. The purpose of this patch is to streamline error propagation and in particular to propagate retrieve_ptr_limit() errors for pointer types that are not defining a ptr_limit such that register-based alu ops against these

[PATCH 4.19 4/8] bpf: Fix off-by-one for area size in creating mask to left

2021-03-19 Thread Greg Kroah-Hartman
From: Piotr Krysiuk commit 10d2bb2e6b1d8c4576c56a748f697dbeb8388899 upstream. retrieve_ptr_limit() computes the ptr_limit for registers with stack and map_value type. ptr_limit is the size of the memory area that is still valid / in-bounds from the point of the current position and direction of

[PATCH 4.19 5/8] bpf: Simplify alu_limit masking for pointer arithmetic

2021-03-19 Thread Greg Kroah-Hartman
From: Piotr Krysiuk commit b5871dca250cd391885218b99cc015aca1a51aea upstream. Instead of having the mov32 with aux->alu_limit - 1 immediate, move this operation to retrieve_ptr_limit() instead to simplify the logic and to allow for subsequent sanity boundary checks inside retrieve_ptr_limit(). T

[PATCH 4.19 2/8] KVM: arm64: nvhe: Save the SPE context early

2021-03-19 Thread Greg Kroah-Hartman
From: Suzuki K Poulose commit b96b0c5de685df82019e16826a282d53d86d112c upstream The nVHE KVM hyp drains and disables the SPE buffer, before entering the guest, as the EL1&0 translation regime is going to be loaded with that of the guest. But this operation is performed way too late, because :

[PATCH 5.4 00/18] 5.4.107-rc1 review

2021-03-19 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.107 release. There are 18 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 Sun, 21 Mar 2021 12:17:37 +. Anything rec

[PATCH 4.19 7/8] net: dsa: tag_mtk: fix 802.1ad VLAN egress

2021-03-19 Thread Greg Kroah-Hartman
From: DENG Qingfang commit 9200f515c41f4cbaeffd8fdd1d8b6373a18b1b67 upstream. A different TPID bit is used for 802.1ad VLAN frames. Reported-by: Ilario Gelmetti Fixes: f0af34317f4b ("net: dsa: mediatek: combine MediaTek tag with VLAN tag") Signed-off-by: DENG Qingfang Signed-off-by: David S.

[PATCH 4.19 6/8] bpf: Add sanity check for upper ptr_limit

2021-03-19 Thread Greg Kroah-Hartman
From: Piotr Krysiuk commit 1b1597e64e1a610c7a96710fc4717158e98a08b3 upstream. Given we know the max possible value of ptr_limit at the time of retrieving the latter, add basic assertions, so that the verifier can bail out if anything looks odd and reject the program. Nothing triggered this so fa

[PATCH 5.4 01/18] KVM: arm64: nvhe: Save the SPE context early

2021-03-19 Thread Greg Kroah-Hartman
From: Suzuki K Poulose commit b96b0c5de685df82019e16826a282d53d86d112c upstream The nVHE KVM hyp drains and disables the SPE buffer, before entering the guest, as the EL1&0 translation regime is going to be loaded with that of the guest. But this operation is performed way too late, because :

[PATCH 4.19 8/8] net: dsa: b53: Support setting learning on port

2021-03-19 Thread Greg Kroah-Hartman
From: Florian Fainelli commit f9b3827ee66cfcf297d0acd6ecf33653a5f297ef upstream. Add support for being able to set the learning attribute on port, and make sure that the standalone ports start up with learning disabled. We can remove the code in bcm_sf2 that configured the ports learning attrib

[PATCH 5.4 03/18] bpf: Fix off-by-one for area size in creating mask to left

2021-03-19 Thread Greg Kroah-Hartman
From: Piotr Krysiuk commit 10d2bb2e6b1d8c4576c56a748f697dbeb8388899 upstream. retrieve_ptr_limit() computes the ptr_limit for registers with stack and map_value type. ptr_limit is the size of the memory area that is still valid / in-bounds from the point of the current position and direction of

[PATCH 5.4 05/18] bpf: Add sanity check for upper ptr_limit

2021-03-19 Thread Greg Kroah-Hartman
From: Piotr Krysiuk commit 1b1597e64e1a610c7a96710fc4717158e98a08b3 upstream. Given we know the max possible value of ptr_limit at the time of retrieving the latter, add basic assertions, so that the verifier can bail out if anything looks odd and reject the program. Nothing triggered this so fa

[PATCH 5.4 02/18] bpf: Prohibit alu ops for pointer types not defining ptr_limit

2021-03-19 Thread Greg Kroah-Hartman
From: Piotr Krysiuk commit f232326f6966cf2a1d1db7bc917a4ce5f9f55f76 upstream. The purpose of this patch is to streamline error propagation and in particular to propagate retrieve_ptr_limit() errors for pointer types that are not defining a ptr_limit such that register-based alu ops against these

[PATCH 5.4 06/18] bpf, selftests: Fix up some test_verifier cases for unprivileged

2021-03-19 Thread Greg Kroah-Hartman
From: Piotr Krysiuk commit 0a13e3537ea67452d549a6a80da3776d6b7dedb3 upstream. Fix up test_verifier error messages for the case where the original error message changed, or for the case where pointer alu errors differ between privileged and unprivileged tests. Also, add alternative tests for keep

[PATCH 5.4 10/18] drm/i915/gvt: Fix virtual display setup for BXT/APL

2021-03-19 Thread Greg Kroah-Hartman
From: Colin Xu commit a5a8ef937cfa79167f4b2a5602092b8d14fd6b9a upstream Program display related vregs to proper value at initialization, setup virtual monitor and hotplug. vGPU virtual display vregs inherit the value from pregs. The virtual DP monitor is always setup on PORT_B for BXT/APL. Howe

[PATCH 5.4 04/18] bpf: Simplify alu_limit masking for pointer arithmetic

2021-03-19 Thread Greg Kroah-Hartman
From: Piotr Krysiuk commit b5871dca250cd391885218b99cc015aca1a51aea upstream. Instead of having the mov32 with aux->alu_limit - 1 immediate, move this operation to retrieve_ptr_limit() instead to simplify the logic and to allow for subsequent sanity boundary checks inside retrieve_ptr_limit(). T

[PATCH 5.4 12/18] drm/i915/gvt: Fix vfio_edid issue for BXT/APL

2021-03-19 Thread Greg Kroah-Hartman
From: Colin Xu commit 4ceb06e7c336f4a8d3f3b6ac9a4fea2e9c97dc07 upstream BXT/APL has different isr/irr/hpd regs compared with other GEN9. If not setting these regs bits correctly according to the emulated monitor (currently a DP on PORT_B), although gvt still triggers a virtual HPD event, the gue

[PATCH 5.4 11/18] drm/i915/gvt: Fix port number for BDW on EDID region setup

2021-03-19 Thread Greg Kroah-Hartman
From: Colin Xu From: Zhenyu Wang commit 28284943ac94014767ecc2f7b3c5747c4a5617a0 upstream Current BDW virtual display port is initialized as PORT_B, so need to use same port for VFIO EDID region, otherwise invalid EDID blob pointer is assigned which caused kernel null pointer reference. We mig

[PATCH 5.4 08/18] drm/i915/gvt: Set SNOOP for PAT3 on BXT/APL to workaround GPU BB hang

2021-03-19 Thread Greg Kroah-Hartman
From: Colin Xu commit 8fe105679765700378eb328495fcfe1566cdbbd0 upstream If guest fills non-priv bb on ApolloLake/Broxton as Mesa i965 does in: 717e7539124d (i965: Use a WC map and memcpy for the batch instead of pw-) Due to the missing flush of bb filled by VM vCPU, host GPU hangs on executing t

[PATCH 5.4 07/18] btrfs: scrub: Dont check free space before marking a block group RO

2021-03-19 Thread Greg Kroah-Hartman
From: Qu Wenruo commit b12de52896c0e8213f70e3a168fde9e6eee95909 upstream. [BUG] When running btrfs/072 with only one online CPU, it has a pretty high chance to fail: # btrfs/072 12s ... _check_dmesg: something found in dmesg (see xfstests-dev/results//btrfs/072.dmesg) # - output mismatch (se

[PATCH 5.4 14/18] crypto: x86 - Regularize glue function prototypes

2021-03-19 Thread Greg Kroah-Hartman
From: Kees Cook commit 9c1e8836edbbaf3656bc07437b59c04be034ac4e upstream. The crypto glue performed function prototype casting via macros to make indirect calls to assembly routines. Instead of performing casts at the call sites (which trips Control Flow Integrity prototype checking), switch eac

[PATCH 5.4 16/18] crypto: x86/aes-ni-xts - use direct calls to and 4-way stride

2021-03-19 Thread Greg Kroah-Hartman
From: Ard Biesheuvel commit 86ad60a65f29dd862a11c22bb4b5be28d6c5cef1 upstream. The XTS asm helper arrangement is a bit odd: the 8-way stride helper consists of back-to-back calls to the 4-way core transforms, which are called indirectly, based on a boolean that indicates whether we are performin

[PATCH 5.4 13/18] fuse: fix live lock in fuse_iget()

2021-03-19 Thread Greg Kroah-Hartman
From: Amir Goldstein commit 775c5033a0d164622d9d10dd0f0a5531639ed3ed upstream. Commit 5d069dbe8aaf ("fuse: fix bad inode") replaced make_bad_inode() in fuse_iget() with a private implementation fuse_make_bad(). The private implementation fails to remove the bad inode from inode cache, so the re

[PATCH 5.4 15/18] crypto: aesni - Use TEST %reg,%reg instead of CMP $0,%reg

2021-03-19 Thread Greg Kroah-Hartman
From: Uros Bizjak commit 032d049ea0f45b45c21f3f02b542aa18bc6b6428 upstream. CMP $0,%reg can't set overflow flag, so we can use shorter TEST %reg,%reg instruction when only zero and sign flags are checked (E,L,LE,G,GE conditions). Signed-off-by: Uros Bizjak Cc: Herbert Xu Cc: Borislav Petkov

[PATCH 5.4 09/18] drm/i915/gvt: Fix mmio handler break on BXT/APL.

2021-03-19 Thread Greg Kroah-Hartman
From: Colin Xu commit 92010a97098c4c9fd777408cc98064d26b32695b upstream - Remove dup mmio handler for BXT/APL. Otherwise mmio handler will fail to init. - Add engine GPR with F_CMD_ACCESS since BXT/APL will load them via LRI. Otherwise, guest will enter failsafe mode. V2: Use RCS/BCS GPR ma

[PATCH 5.10 01/13] crypto: aesni - Use TEST %reg,%reg instead of CMP $0,%reg

2021-03-19 Thread Greg Kroah-Hartman
From: Uros Bizjak [ Upstream commit 032d049ea0f45b45c21f3f02b542aa18bc6b6428 ] CMP $0,%reg can't set overflow flag, so we can use shorter TEST %reg,%reg instruction when only zero and sign flags are checked (E,L,LE,G,GE conditions). Signed-off-by: Uros Bizjak Cc: Herbert Xu Cc: Borislav Petko

[PATCH 5.10 11/13] Revert "nfsd4: a clients own opens neednt prevent delegations"

2021-03-19 Thread Greg Kroah-Hartman
From: J. Bruce Fields commit 6ee65a773096ab3f39d9b00311ac983be5bdeb7c upstream. This reverts commit 94415b06eb8aed13481646026dc995f04a3a534a. That commit claimed to allow a client to get a read delegation when it was the only writer. Actually it allowed a client to get a read delegation when *

[PATCH 5.10 10/13] Revert "nfsd4: remove check_conflicting_opens warning"

2021-03-19 Thread Greg Kroah-Hartman
From: J. Bruce Fields commit 4aa5e002034f0701c3335379fd6c22d7f3338cce upstream. This reverts commit 50747dd5e47b "nfsd4: remove check_conflicting_opens warning", as a prerequisite for reverting 94415b06eb8a, which has a serious bug. Cc: sta...@vger.kernel.org Signed-off-by: J. Bruce Fields Sig

[PATCH 5.4 17/18] net: dsa: tag_mtk: fix 802.1ad VLAN egress

2021-03-19 Thread Greg Kroah-Hartman
From: DENG Qingfang commit 9200f515c41f4cbaeffd8fdd1d8b6373a18b1b67 upstream. A different TPID bit is used for 802.1ad VLAN frames. Reported-by: Ilario Gelmetti Fixes: f0af34317f4b ("net: dsa: mediatek: combine MediaTek tag with VLAN tag") Signed-off-by: DENG Qingfang Signed-off-by: David S.

[PATCH 5.10 13/13] net: dsa: b53: Support setting learning on port

2021-03-19 Thread Greg Kroah-Hartman
From: Florian Fainelli commit f9b3827ee66cfcf297d0acd6ecf33653a5f297ef upstream. Add support for being able to set the learning attribute on port, and make sure that the standalone ports start up with learning disabled. We can remove the code in bcm_sf2 that configured the ports learning attrib

[PATCH 5.10 02/13] crypto: x86/aes-ni-xts - use direct calls to and 4-way stride

2021-03-19 Thread Greg Kroah-Hartman
From: Ard Biesheuvel [ Upstream commit 86ad60a65f29dd862a11c22bb4b5be28d6c5cef1 ] The XTS asm helper arrangement is a bit odd: the 8-way stride helper consists of back-to-back calls to the 4-way core transforms, which are called indirectly, based on a boolean that indicates whether we are perfor

[PATCH 5.10 03/13] bpf: Prohibit alu ops for pointer types not defining ptr_limit

2021-03-19 Thread Greg Kroah-Hartman
From: Piotr Krysiuk commit f232326f6966cf2a1d1db7bc917a4ce5f9f55f76 upstream. The purpose of this patch is to streamline error propagation and in particular to propagate retrieve_ptr_limit() errors for pointer types that are not defining a ptr_limit such that register-based alu ops against these

[PATCH 5.4 18/18] net: dsa: b53: Support setting learning on port

2021-03-19 Thread Greg Kroah-Hartman
From: Florian Fainelli commit f9b3827ee66cfcf297d0acd6ecf33653a5f297ef upstream. Add support for being able to set the learning attribute on port, and make sure that the standalone ports start up with learning disabled. We can remove the code in bcm_sf2 that configured the ports learning attrib

[PATCH 5.10 12/13] ALSA: usb-audio: Dont avoid stopping the stream at disconnection

2021-03-19 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 257d2d7e9e798305d65825cb82b0a7d1c0511e89 upstream In the later patch, we're going to issue the PCM sync_stop calls at disconnection. But currently the USB-audio driver can't handle it because it has a check of shutdown flag for stopping the URBs. This is basically sup

[PATCH 5.10 04/13] bpf: Fix off-by-one for area size in creating mask to left

2021-03-19 Thread Greg Kroah-Hartman
From: Piotr Krysiuk commit 10d2bb2e6b1d8c4576c56a748f697dbeb8388899 upstream. retrieve_ptr_limit() computes the ptr_limit for registers with stack and map_value type. ptr_limit is the size of the memory area that is still valid / in-bounds from the point of the current position and direction of

[PATCH 5.10 05/13] bpf: Simplify alu_limit masking for pointer arithmetic

2021-03-19 Thread Greg Kroah-Hartman
From: Piotr Krysiuk commit b5871dca250cd391885218b99cc015aca1a51aea upstream. Instead of having the mov32 with aux->alu_limit - 1 immediate, move this operation to retrieve_ptr_limit() instead to simplify the logic and to allow for subsequent sanity boundary checks inside retrieve_ptr_limit(). T

[PATCH 5.10 09/13] fuse: fix live lock in fuse_iget()

2021-03-19 Thread Greg Kroah-Hartman
From: Amir Goldstein commit 775c5033a0d164622d9d10dd0f0a5531639ed3ed upstream. Commit 5d069dbe8aaf ("fuse: fix bad inode") replaced make_bad_inode() in fuse_iget() with a private implementation fuse_make_bad(). The private implementation fails to remove the bad inode from inode cache, so the re

[PATCH 5.10 08/13] RDMA/srp: Fix support for unpopulated and unbalanced NUMA nodes

2021-03-19 Thread Greg Kroah-Hartman
From: Nicolas Morey-Chaisemartin commit 2b5715fc17386a6223490d5b8f08d031999b0c0b upstream. The current code computes a number of channels per SRP target and spreads them equally across all online NUMA nodes. Each channel is then assigned a CPU within this node. In the case of unbalanced, or ev

[PATCH 5.10 06/13] bpf: Add sanity check for upper ptr_limit

2021-03-19 Thread Greg Kroah-Hartman
From: Piotr Krysiuk commit 1b1597e64e1a610c7a96710fc4717158e98a08b3 upstream. Given we know the max possible value of ptr_limit at the time of retrieving the latter, add basic assertions, so that the verifier can bail out if anything looks odd and reject the program. Nothing triggered this so fa

[PATCH 5.11 13/31] net: bonding: fix error return code of bond_neigh_init()

2021-03-19 Thread Greg Kroah-Hartman
From: Jia-Ju Bai [ Upstream commit 2055a99da8a253a357bdfd359b3338ef3375a26c ] When slave is NULL or slave_ops->ndo_neigh_setup is NULL, no error return code of bond_neigh_init() is assigned. To fix this bug, ret is assigned with -EINVAL in these cases. Fixes: 9e99bfefdbce ("bonding: fix bond_ne

[PATCH 5.10 07/13] bpf, selftests: Fix up some test_verifier cases for unprivileged

2021-03-19 Thread Greg Kroah-Hartman
From: Piotr Krysiuk commit 0a13e3537ea67452d549a6a80da3776d6b7dedb3 upstream. Fix up test_verifier error messages for the case where the original error message changed, or for the case where pointer alu errors differ between privileged and unprivileged tests. Also, add alternative tests for keep

[PATCH 5.10 00/13] 5.10.25-rc1 review

2021-03-19 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.10.25 release. There are 13 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 Sun, 21 Mar 2021 12:17:37 +. Anything rec

[PATCH 5.11 01/31] io_uring: dont attempt IO reissue from the ring exit path

2021-03-19 Thread Greg Kroah-Hartman
From: Jens Axboe [ Upstream commit 7c977a58dc83366e488c217fd88b1469d242bee5 ] If we're exiting the ring, just let the IO fail with -EAGAIN as nobody will care anyway. It's not the right context to reissue from. Cc: sta...@vger.kernel.org Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin --

[PATCH 5.11 14/31] regulator: pca9450: Add SD_VSEL GPIO for LDO5

2021-03-19 Thread Greg Kroah-Hartman
From: Frieder Schrempf [ Upstream commit 8c67a11bae889f51fe5054364c3c789dfae3ad73 ] LDO5 has two separate control registers. LDO5CTRL_L is used if the input signal SD_VSEL is low and LDO5CTRL_H if it is high. The current driver implementation only uses LDO5CTRL_H. To make this work on boards tha

[PATCH 5.11 12/31] gpiolib: Read "gpio-line-names" from a firmware node

2021-03-19 Thread Greg Kroah-Hartman
From: Andy Shevchenko [ Upstream commit b41ba2ec54a70908067034f139aa23d0dd2985ce ] On STM32MP1, the GPIO banks are subnodes of pin-controller@50002000, see arch/arm/boot/dts/stm32mp151.dtsi. The driver for pin-controller@50002000 is in drivers/pinctrl/stm32/pinctrl-stm32.c and iterates over all

[PATCH 5.11 03/31] KVM: x86/mmu: Set SPTE_AD_WRPROT_ONLY_MASK if and only if PML is enabled

2021-03-19 Thread Greg Kroah-Hartman
From: Sean Christopherson [ Upstream commit 44ac5958a6c1fd91ac8810fbb37194e377d78db5 ] Check that PML is actually enabled before setting the mask to force a SPTE to be write-protected. The bits used for the !AD_ENABLED case are in the upper half of the SPTE. With 64-bit paging and EPT, these b

[PATCH 5.11 06/31] mptcp: dispose initial struct socket when its subflow is closed

2021-03-19 Thread Greg Kroah-Hartman
From: Florian Westphal [ Upstream commit 17aee05dc8822e354f5ad2d68ee39e3ba4b6acf2 ] Christoph Paasch reported following crash: dst_release underflow WARNING: CPU: 0 PID: 1319 at net/core/dst.c:175 dst_release+0xc1/0xd0 net/core/dst.c:175 CPU: 0 PID: 1319 Comm: syz-executor217 Not tainted 5.11.

[PATCH 5.11 07/31] io_uring: refactor scheduling in io_cqring_wait

2021-03-19 Thread Greg Kroah-Hartman
From: Pavel Begunkov [ Upstream commit c1d5a224683b333ddbe278e455d639ccd4f5ca2b ] schedule_timeout() with timeout=MAX_SCHEDULE_TIMEOUT is guaranteed to work just as schedule(), so instead of hand-coding it based on arguments always use the timeout version and simplify code. Signed-off-by: Pavel

[PATCH 5.11 05/31] mptcp: pm: add lockdep assertions

2021-03-19 Thread Greg Kroah-Hartman
From: Florian Westphal [ Upstream commit 3abc05d9ef6fe989706b679e1e6371d6360d3db4 ] Add a few assertions to make sure functions are called with the needed locks held. Two functions gain might_sleep annotations because they contain conditional calls to functions that sleep. Signed-off-by: Floria

[PATCH 5.11 04/31] mptcp: send ack for every add_addr

2021-03-19 Thread Greg Kroah-Hartman
From: Geliang Tang [ Upstream commit b5a7acd3bd63c7430c98d7f66d0aa457c9ccde30 ] This patch changes the sending ACK conditions for the ADD_ADDR, send an ACK packet for any ADD_ADDR, not just when ipv6 addresses or port numbers are included. Closes: https://github.com/multipath-tcp/mptcp_net-next

[PATCH 5.11 10/31] io_uring: simplify do_read return parsing

2021-03-19 Thread Greg Kroah-Hartman
From: Pavel Begunkov [ Upstream commit 57cd657b8272a66277c139e7bbdc8b86057cb415 ] do_read() returning 0 bytes read (not -EAGAIN/etc.) is not an important enough of a case to prioritise it. Fold it into ret < 0 check, so we get rid of an extra if and make it a bit more readable. Signed-off-by: P

[PATCH 5.11 02/31] KVM: x86/mmu: Expand on the comment in kvm_vcpu_ad_need_write_protect()

2021-03-19 Thread Greg Kroah-Hartman
From: Sean Christopherson [ Upstream commit 2855f98265dc579bd2becb79ce0156d08e0df813 ] Expand the comment about need to use write-protection for nested EPT when PML is enabled to clarify that the tagging is a nop when PML is _not_ enabled. Without the clarification, omitting the PML check looks

[PATCH 5.11 00/31] 5.11.8-rc1 review

2021-03-19 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.11.8 release. There are 31 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 Sun, 21 Mar 2021 12:17:37 +. Anything rece

[PATCH 5.11 08/31] io_uring: refactor io_cqring_wait

2021-03-19 Thread Greg Kroah-Hartman
From: Pavel Begunkov [ Upstream commit eeb60b9ab4000d20261973642dfc9fb0e4b5d073 ] It's easy to make a mistake in io_cqring_wait() because for all break/continue clauses we need to watch for prepare/finish_wait to be used correctly. Extract all those into a new helper io_cqring_wait_schedule(), a

[PATCH 5.11 09/31] io_uring: dont keep looping for more events if we cant flush overflow

2021-03-19 Thread Greg Kroah-Hartman
From: Jens Axboe [ Upstream commit ca0a26511c679a797f86589894a4523db36d833e ] It doesn't make sense to wait for more events to come in, if we can't even flush the overflow we already have to the ring. Return -EBUSY for that condition, just like we do for attempts to submit with overflow pending.

[PATCH 5.11 16/31] regulator: pca9450: Clear PRESET_EN bit to fix BUCK1/2/3 voltage setting

2021-03-19 Thread Greg Kroah-Hartman
From: Frieder Schrempf [ Upstream commit 98b94b6e38ca0c4eeb29949c656f6a315000c23e ] The driver uses the DVS registers PCA9450_REG_BUCKxOUT_DVS0 to set the voltage for the buck regulators 1, 2 and 3. This has no effect as the PRESET_EN bit is set by default and therefore the preset values are use

[PATCH 5.11 11/31] io_uring: clear IOCB_WAITQ for non -EIOCBQUEUED return

2021-03-19 Thread Greg Kroah-Hartman
From: Jens Axboe [ Upstream commit b5b0ecb736f1ce1e68eb50613c0cfecff10198eb ] The callback can only be armed, if we get -EIOCBQUEUED returned. It's important that we clear the WAITQ bit for other cases, otherwise we can queue for async retry and filemap will assume that we're armed and return -E

[PATCH 5.11 26/31] RDMA/srp: Fix support for unpopulated and unbalanced NUMA nodes

2021-03-19 Thread Greg Kroah-Hartman
From: Nicolas Morey-Chaisemartin commit 2b5715fc17386a6223490d5b8f08d031999b0c0b upstream. The current code computes a number of channels per SRP target and spreads them equally across all online NUMA nodes. Each channel is then assigned a CPU within this node. In the case of unbalanced, or ev

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