Re: [PATCH v2] lib/string.c: implement stpcpy

2020-08-15 Thread Joe Perches
On Sat, 2020-08-15 at 14:28 -0700, Nick Desaulniers wrote: > On Sat, Aug 15, 2020 at 2:24 PM Joe Perches wrote: > > On Sat, 2020-08-15 at 13:47 -0700, Nick Desaulniers wrote: > > > On Sat, Aug 15, 2020 at 9:34 AM Kees Cook wrote: > > > > On Fri, Aug 14, 2020 at 07:09:44PM -0700, Nick Desaulniers

Re: [PATCH v6 09/15] iommu/vt-d: Check ownership for PASIDs from user-space

2020-08-15 Thread Auger Eric
Hi Yi, On 7/28/20 8:27 AM, Liu Yi L wrote: > When an IOMMU domain with nesting attribute is used for guest SVA, a > system-wide PASID is allocated for binding with the device and the domain. > For security reason, we need to check the PASID passed from user-space. > e.g. page table bind/unbind

[PATCH v2 3/3] drm/panel: Add panel driver for the Mantix MLAF057WE51-X DSI panel

2020-08-15 Thread Guido Günther
The panel uses a Focaltech FT8006p, the touch part is handled by the already existing edt-ft5x06. Signed-off-by: Guido Günther --- MAINTAINERS | 7 + drivers/gpu/drm/panel/Kconfig | 11 + drivers/gpu/drm/panel/Makefile| 1 +

[PATCH v2 2/3] dt-bindings: Add Mantix MLAF057WE51-X panel bindings

2020-08-15 Thread Guido Günther
The panel uses a Focaltech FT8006p, the touch part is handled by the already existing edt-ft5x06. Signed-off-by: Guido Günther --- .../display/panel/mantix,mlaf057we51-x.yaml | 70 +++ 1 file changed, 70 insertions(+) create mode 100644

[PATCH v2 0/3] drm/panel: Add panel driver for the Mantix MLAF057WE51-X DSI panel

2020-08-15 Thread Guido Günther
The panel uses a Focaltech FT8006p, the touch part is handled by the already existing edt-ft5x06. It can be found in e.g. the Librem 5. Changes from v1: - Due to review comments by Sam Ravnborg, thanks! https://lore.kernel.org/dri-devel/20200815083917.ga993...@ravnborg.org/ - Don't preserve

[PATCH v2 1/3] dt-bindings: vendor-prefixes: Add mantix vendor prefix

2020-08-15 Thread Guido Günther
Add prefix for Mantix Display Technology Co.,Ltd. Signed-off-by: Guido Günther --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml

[PATCH] exfat: use i_blocksize() to get blocksize

2020-08-15 Thread Xianting Tian
We alreday has the interface i_blocksize() to get blocksize, so use it. Signed-off-by: Xianting Tian --- fs/exfat/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/exfat/file.c b/fs/exfat/file.c index a6a063830..163b599db 100644 --- a/fs/exfat/file.c +++

Re: [PATCH v6 07/15] vfio/type1: Add VFIO_IOMMU_PASID_REQUEST (alloc/free)

2020-08-15 Thread Auger Eric
Yi, On 7/28/20 8:27 AM, Liu Yi L wrote: > This patch allows userspace to request PASID allocation/free, e.g. when > serving the request from the guest. > > PASIDs that are not freed by userspace are automatically freed when the > IOASID set is destroyed when process exits. > > Cc: Kevin Tian >

Re: [PATCH v2] lib/string.c: implement stpcpy

2020-08-15 Thread Joe Perches
On Sat, 2020-08-15 at 13:47 -0700, Nick Desaulniers wrote: > On Sat, Aug 15, 2020 at 9:34 AM Kees Cook wrote: > > On Fri, Aug 14, 2020 at 07:09:44PM -0700, Nick Desaulniers wrote: > > > LLVM implemented a recent "libcall optimization" that lowers calls to > > > `sprintf(dest, "%s", str)` where

[PATCH] genksyms: keywords: Use __restrict not _restrict

2020-08-15 Thread Joe Perches
Use the proper form of the RESTRICT keyword. Quote the comments properly too. Signed-off-by: Joe Perches --- scripts/genksyms/keywords.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/genksyms/keywords.c b/scripts/genksyms/keywords.c index

Re: [PATCH v2 2/3] dt-bindings: Add Mantix MLAF057WE51-X panel bindings

2020-08-15 Thread Sam Ravnborg
On Sat, Aug 15, 2020 at 11:16:21PM +0200, Guido Günther wrote: > The panel uses a Focaltech FT8006p, the touch part is handled by the > already existing edt-ft5x06. > > Signed-off-by: Guido Günther Reviewed-by: Sam Ravnborg I assume you will apply yourself, otherwise I will do so when we have

Re: [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add mantix vendor prefix

2020-08-15 Thread Sam Ravnborg
On Sat, Aug 15, 2020 at 11:16:20PM +0200, Guido Günther wrote: > Add prefix for Mantix Display Technology Co.,Ltd. > > Signed-off-by: Guido Günther Acked-by: Sam Ravnborg > --- > Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git

Re: [PATCH v2 3/3] drm/panel: Add panel driver for the Mantix MLAF057WE51-X DSI panel

2020-08-15 Thread Sam Ravnborg
Hi Guido. On Sat, Aug 15, 2020 at 11:16:22PM +0200, Guido Günther wrote: > The panel uses a Focaltech FT8006p, the touch part is handled by the > already existing edt-ft5x06. > > Signed-off-by: Guido Günther Two small nits - otherwise looks good. Reviewed-by: Sam Ravnborg I can fix while

Re: [PATCH 2/3] dt-bindings: Add Mantix MLAF057WE51-X panel bindings

2020-08-15 Thread Sam Ravnborg
Hi Guido. On Fri, Aug 14, 2020 at 03:36:22PM +0200, Guido Günther wrote: > The panel uses a Focaltech FT8006p, the touch part is handled by the > already existing edt-ft5x06. > > Signed-off-by: Guido Günther A few trivialities. > --- > .../display/panel/mantix,mlaf057we51-x.yaml | 73

Re: [PATCH v2 1/2] selinux: add tracepoint on denials

2020-08-15 Thread peter enderborg
On 8/14/20 7:46 PM, Steven Rostedt wrote: > On Fri, 14 Aug 2020 19:22:13 +0200 > peter enderborg wrote: > >> On 8/14/20 7:08 PM, Stephen Smalley wrote: >>> On Fri, Aug 14, 2020 at 1:07 PM peter enderborg >>> wrote: On 8/14/20 6:51 PM, Stephen Smalley wrote: > On Fri, Aug 14, 2020 at

Re: [PATCH v2 1/2] selinux: add tracepoint on denials

2020-08-15 Thread peter enderborg
On 8/14/20 7:46 PM, Steven Rostedt wrote: > On Fri, 14 Aug 2020 19:22:13 +0200 > peter enderborg wrote: > >> On 8/14/20 7:08 PM, Stephen Smalley wrote: >>> On Fri, Aug 14, 2020 at 1:07 PM peter enderborg >>> wrote: On 8/14/20 6:51 PM, Stephen Smalley wrote: > On Fri, Aug 14, 2020 at

Re: [PATCH 3/3] drm/panel: Add panel driver for the Mantix MLAF057WE51-X DSI panel

2020-08-15 Thread Guido Günther
Hi Sam, On Sat, Aug 15, 2020 at 11:32:26AM +0200, Sam Ravnborg wrote: > Hi Guido. > > On Fri, Aug 14, 2020 at 03:36:23PM +0200, Guido Günther wrote: > > The panel uses a Focaltech FT8006p, the touch part is handled by the > > already existing edt-ft5x06. > > > > Signed-off-by: Guido Günther >

Re: [PATCH 2/3] dt-bindings: Add Mantix MLAF057WE51-X panel bindings

2020-08-15 Thread Guido Günther
Hi Sam, On Sat, Aug 15, 2020 at 10:39:17AM +0200, Sam Ravnborg wrote: > Hi Guido. > > On Fri, Aug 14, 2020 at 03:36:22PM +0200, Guido Günther wrote: > > The panel uses a Focaltech FT8006p, the touch part is handled by the > > already existing edt-ft5x06. > > > > Signed-off-by: Guido Günther >

Re: [PATCH] x86/hotplug: Silence APIC only after all irq's are migrated

2020-08-15 Thread Raj, Ashok
Hi Randy For some unknown reason my previous response said its taiting to be delivered. On Fri, Aug 14, 2020 at 04:25:32PM -0700, Randy Dunlap wrote: > On 8/14/20 2:38 PM, Ashok Raj wrote: > > When offlining CPU's, fixup_irqs() migrates all interrupts away from the > > CPUs,

Re: [kbuild-all] Re: fs/ocfs2/suballoc.c:2430:2-8: preceding lock on line 2413

2020-08-15 Thread Philip Li
On Fri, Aug 14, 2020 at 09:52:13PM +0200, Julia Lawall wrote: > > > On Fri, 14 Aug 2020, Thomas Gleixner wrote: > > > Julia, > > > > On Fri, Aug 14 2020 at 21:00, Julia Lawall wrote: > > > On Fri, 14 Aug 2020, Thomas Gleixner wrote: > > >> That's clearly a false positive. Is there anything what

Re: [Freedreno] [PATCH v10 3/5] drm/msm/dp: add support for DP PLL driver

2020-08-15 Thread Jonathan Marek
On 8/15/20 4:20 PM, Rob Clark wrote: On Fri, Aug 14, 2020 at 10:05 AM Dmitry Baryshkov wrote: On 12/08/2020 07:42, Tanmay Shah wrote: > From: Chandan Uddaraju > > Add the needed DP PLL specific files to support > display port interface on msm targets. [skipped] > diff --git

Re: [PATCH] genksyms: keywords: Use __restrict not _restrict

2020-08-15 Thread Nick Desaulniers
On Fri, Aug 14, 2020 at 8:06 PM Linus Torvalds wrote: > > It goes back to 2003 and the original keywords.gperf file, see > > > https://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git/commit/?id=46bd1da672d66ccd8a639d3c1f8a166048cca608 Interesting, I was wondering why upstream

Re: [GIT PULL] edac for v5.9 (part 2)

2020-08-15 Thread Luck, Tony
On Sat, Aug 15, 2020 at 08:21:13AM -0700, Linus Torvalds wrote: > On Fri, Aug 14, 2020 at 5:36 PM Luck, Tony wrote: > > > > Here's one more pull for EDAC with a driver that I let slip > > through the cracks. > > Shortlog? Diffstat? Just what am I getting? Ah. Looking at bash history I fumbled

[PATCH v4 3/6] x86/paravirt: use CONFIG_PARAVIRT_XXL instead of CONFIG_PARAVIRT

2020-08-15 Thread Juergen Gross
There are some code parts using CONFIG_PARAVIRT for Xen pvops related issues instead of the more stringent CONFIG_PARAVIRT_XXL. Signed-off-by: Juergen Gross --- arch/x86/entry/entry_64.S| 4 ++-- arch/x86/include/asm/fixmap.h| 2 +-

[PATCH v4 5/6] x86/paravirt: remove set_pte_at pv-op

2020-08-15 Thread Juergen Gross
On x86 set_pte_at() is now always falling back to set_pte(). So instead of having this fallback after the paravirt maze just drop the set_pte_at paravirt operation and let set_pte_at() use the set_pte() function directly. Signed-off-by: Juergen Gross --- arch/x86/include/asm/paravirt.h |

Re: [PATCH] fs: NTFS read-write driver GPL implementation by Paragon Software.

2020-08-15 Thread David Sterba
On Fri, Aug 14, 2020 at 12:29:01PM +, Konstantin Komarov wrote: > This patch adds NTFS Read-Write driver to fs/ntfs3. > > Having decades of expertise in commercial file systems development and huge > test coverage, we at Paragon Software GmbH want to make our contribution to > the Open Source

[PATCH v4 4/6] x86/entry/32: revert "Fix XEN_PV build dependency"

2020-08-15 Thread Juergen Gross
With 32-bit Xen PV support gone commit a4c0e91d1d65bc58 ("x86/entry/32: Fix XEN_PV build dependency") can be reverted again. Signed-off-by: Juergen Gross --- arch/x86/include/asm/idtentry.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/idtentry.h

[PATCH v4 2/6] x86/paravirt: cleanup paravirt macros

2020-08-15 Thread Juergen Gross
Some paravirt macros are no longer used, delete them. Signed-off-by: Juergen Gross --- arch/x86/include/asm/paravirt.h | 15 --- 1 file changed, 15 deletions(-) diff --git a/arch/x86/include/asm/paravirt.h b/arch/x86/include/asm/paravirt.h index 25c7a73461f6..e02c409fa054 100644

[PATCH v4 0/6] x86/paravirt: cleanup after 32-bit PV removal

2020-08-15 Thread Juergen Gross
A lot of cleanup after removal of 32-bit Xen PV guest support in paravirt code. Changes in V4: - dropped patches 1-3, as already committed - addressed comments to V3 - added new patches 5+6 Changes in V3: - addressed comments to V2 - split patch 1 into 2 patches - new patches 3 and 7 Changes in

[PATCH v4 6/6] x86/paravirt: avoid needless paravirt step clearing page table entries

2020-08-15 Thread Juergen Gross
pte_clear() et al are based on tw0 paravirt steps today: one step to create a page table entry with all zeroes, and one step to write this entry value. Drop the first step as it is completely useless. Signed-off-by: Juergen Gross --- arch/x86/include/asm/paravirt.h | 12 ++-- 1 file

[PATCH v4 1/6] x86/paravirt: remove 32-bit support from PARAVIRT_XXL

2020-08-15 Thread Juergen Gross
The last 32-bit user of stuff under CONFIG_PARAVIRT_XXL is gone. Remove 32-bit specific parts. Signed-off-by: Juergen Gross --- arch/x86/entry/vdso/vdso32/vclock_gettime.c | 1 + arch/x86/include/asm/paravirt.h | 120 ++-- arch/x86/include/asm/paravirt_types.h

Re: [PATCH 2/3] dt-bindings: Add Mantix MLAF057WE51-X panel bindings

2020-08-15 Thread Sam Ravnborg
Hi Guido. On Sat, Aug 15, 2020 at 06:47:37PM +0200, Guido Günther wrote: > Hi Sam, > On Sat, Aug 15, 2020 at 10:39:17AM +0200, Sam Ravnborg wrote: > > Hi Guido. > > > > On Fri, Aug 14, 2020 at 03:36:22PM +0200, Guido Günther wrote: > > > The panel uses a Focaltech FT8006p, the touch part is

Re: [PATCH v2] x86/boot/compressed: Disable relocation relaxation

2020-08-15 Thread Sedat Dilek
On Sat, Aug 15, 2020 at 10:57 PM Nick Desaulniers wrote: > > Hi Ingo, > I saw you picked up Arvind's other series into x86/boot. Would you > mind please including this, as well? Our CI is quite red for x86... > > EOM > +1 - Sedat - > On Sat, Aug 15, 2020 at 8:49 AM Sedat Dilek wrote: > > >

Re: [PATCH v10 3/5] drm/msm/dp: add support for DP PLL driver

2020-08-15 Thread Rob Clark
On Fri, Aug 14, 2020 at 10:05 AM Dmitry Baryshkov wrote: > > > On 12/08/2020 07:42, Tanmay Shah wrote: > > From: Chandan Uddaraju > > > > Add the needed DP PLL specific files to support > > display port interface on msm targets. > > [skipped] > > > diff --git

[PATCH 1/2] dt-bindings: arm: fsl: add compatible string for Tolino Shine 2 HD

2020-08-15 Thread Andreas Kemnade
This adds a compatible string for the Tolino Shine 2 HD eBook reader. Signed-off-by: Andreas Kemnade --- Documentation/devicetree/bindings/arm/fsl.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml

[PATCH v5 0/6] CTU CAN FD open-source IP core SocketCAN driver, PCI, platform integration and documentation

2020-08-15 Thread Pavel Pisa
From: Pavel Pisa This driver adds support for the CTU CAN FD open-source IP core. More documentation and core sources at project page (https://gitlab.fel.cvut.cz/canbus/ctucanfd_ip_core). The core integration to Xilinx Zynq system as platform driver is available

[PATCH RFC 2/2] ARM: dts: imx: add devicetree for Tolino Shine 2 HD

2020-08-15 Thread Andreas Kemnade
This adds a devicetree for the Tolino Shine 2 HD Ebook reader. It is based on boards marked with "37NB-E60QF0+4A2". It is equipped with an i.MX6SL SoC. Expected to work: - Buttons - Wifi - Touchscreen - LED - uSD - USB - RTC Not working due to missing drivers: - Backlight (requires NTXEC driver)

[PATCH 0/2] ARM: dts: add Tolino Shine 2 HD

2020-08-15 Thread Andreas Kemnade
This adds a device tree for the Tolino Shine 2 HD Ebook reader. It is equipped with an i.MX6SL SoC. Except for backlight (via an EC) and the EPD, drivers are available and therefore things are defined in the dts. Andreas Kemnade (2): dt-bindings: arm: fsl: add compatible string for Tolino

Re: [PATCH v2] lib/string.c: implement stpcpy

2020-08-15 Thread Nick Desaulniers
On Sat, Aug 15, 2020 at 2:24 PM Joe Perches wrote: > > On Sat, 2020-08-15 at 13:47 -0700, Nick Desaulniers wrote: > > On Sat, Aug 15, 2020 at 9:34 AM Kees Cook wrote: > > > On Fri, Aug 14, 2020 at 07:09:44PM -0700, Nick Desaulniers wrote: > > > > LLVM implemented a recent "libcall optimization"

Re: [PATCH v2] lib/string.c: implement stpcpy

2020-08-15 Thread Dávid Bolvanský
-fno-builtin-stpcpy can be used to disable stpcpy but Nick at llvm bugzilla wrote that these flags are broken with LTO. > Dňa 15. 8. 2020 o 23:24 užívateľ Joe Perches napísal: > > On Sat, 2020-08-15 at 13:47 -0700, Nick Desaulniers wrote: >>> On Sat, Aug 15, 2020 at 9:34 AM Kees Cook wrote:

[PATCH] swiotlb: Allow allocating buffer anywhere in memory

2020-08-15 Thread Thiago Jung Bauermann
POWER secure guests (i.e., guests which use the Protection Execution Facility) need to use SWIOTLB to be able to do I/O with the hypervisor, but they don't need the SWIOTLB memory to be in low addresses since the hypervisor doesn't have any addressing limitation. This solves a SWIOTLB

Re: [PATCH] nvme-pci: Use u32 for nvme_dev.q_depth and nvme_queue.q_depth

2020-08-15 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH 3/3] drm/panel: Add panel driver for the Mantix MLAF057WE51-X DSI panel

2020-08-15 Thread Sam Ravnborg
Hi Guido. > +static int mantix_probe(struct mipi_dsi_device *dsi) > +{ > + struct device *dev = >dev; > + struct mantix *ctx; > + int ret; > + > + ctx = devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL); > + if (!ctx) > + return -ENOMEM; > + > + ctx->reset_gpio =

Re: [GIT PULL] Please pull NFS client updates for Linux 5.9

2020-08-15 Thread pr-tracker-bot
The pull request you sent on Fri, 14 Aug 2020 22:04:02 +: > git://git.linux-nfs.org/projects/trondmy/linux-nfs.git tags/nfs-for-5.9-1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/37711e5e2325535bf094bdc0a66790d659b52d5b Thank you! -- Deet-doot-dot, I am a

Re: linux-next: new build warnings after binutils update

2020-08-15 Thread Ingo Molnar
* Kees Cook wrote: > On Fri, Aug 14, 2020 at 12:22:06PM +0200, Ingo Molnar wrote: > > > [0] > > > https://lore.kernel.org/lkml/20200731202738.2577854-6-nived...@alum.mit.edu/ > > > > It all looked good to me but was a bit late for v5.9, will pick up > > after -rc1. > > Excellent! Thank

Re: [PATCH v4 3/5] counter: Add character device interface

2020-08-15 Thread William Breathitt Gray
On Mon, Aug 10, 2020 at 06:02:16PM -0500, David Lechner wrote: > On 8/9/20 9:51 AM, William Breathitt Gray wrote: > > On Tue, Jul 28, 2020 at 07:20:03PM -0500, David Lechner wrote: > >> On 7/21/20 2:35 PM, William Breathitt Gray wrote: > >>> This patch introduces a character device interface for

[PATCH v3] perf: arm_dsu: Support DSU ACPI devices

2020-08-15 Thread Tuan Phan
Add support for probing device from ACPI node. Each DSU ACPI node and its associated cpus are inside a cluster node. Signed-off-by: Tuan Phan --- Changes in v3: - Based on the latest ARM ACPI binding at: https://developer.arm.com/documentation/den0093/c/ Changes in v2: - Removed IRQF_SHARED. -

[tip: x86/paravirt] x86/paravirt: Clean up paravirt macros

2020-08-15 Thread tip-bot2 for Juergen Gross
The following commit has been merged into the x86/paravirt branch of tip: Commit-ID: 94b827becc6a87c905ab30b398e12a266518acbb Gitweb: https://git.kernel.org/tip/94b827becc6a87c905ab30b398e12a266518acbb Author:Juergen Gross AuthorDate:Sat, 15 Aug 2020 12:06:37 +02:00

Re: [PATCH 1/2] x86/MCE/AMD, EDAC/mce_amd: Use AMD NodeId for Family17h+ DRAM Decode

2020-08-15 Thread Ingo Molnar
* Yazen Ghannam wrote: > From: Yazen Ghannam > > The edac_mce_amd module calls decode_dram_ecc() on AMD Family17h and > later systems. This function is used in amd64_edac_mod to do > system-specific decoding for DRAM ECC errors. The function takes a > "NodeId" as a parameter. > > In AMD

Re: [RFC-PATCH 1/2] mm: Add __GFP_NO_LOCKS flag

2020-08-15 Thread Peter Zijlstra
On Sat, Aug 15, 2020 at 01:14:53AM +0200, Thomas Gleixner wrote: > #1 trivial fix is to force switching to an high prio thread or a soft >interrupt which does the allocation Yeah, push the alocation out to another context. I did consider it, but why bother? Also, raising a softirq can't be

Re: POC: Alternative solution: Re: [PATCH 0/4] printk: reimplement LOG_CONT handling

2020-08-15 Thread Sergey Senozhatsky
On (20/08/14 15:46), Linus Torvalds wrote: > On Thu, Aug 13, 2020 at 4:54 AM Sergey Senozhatsky > wrote: > > > > I think what Linus said a long time ago was that the initial purpose of > > pr_cont was > > > > pr_info("Initialize feature foo..."); > > if (init_feature_foo() == 0) >

Re: [PATCH v4 1/5] counter: Internalize sysfs interface code

2020-08-15 Thread William Breathitt Gray
On Mon, Aug 10, 2020 at 05:48:07PM -0500, David Lechner wrote: > > > > > CPMAC ETHERNET DRIVER > > M: Florian Fainelli > > diff --git a/drivers/counter/104-quad-8.c b/drivers/counter/104-quad-8.c > > index 78766b6ec271..0f20920073d6 100644 > > ---

Re: [PATCH] i2c: iproc: Fix checkpatch warnings by using 'BIT' macro

2020-08-15 Thread Florian Fainelli
On 8/14/2020 3:40 PM, Ray Jui wrote: Fix additional checkpatch warnings in the iProc I2C driver by using 'BIT' marcro. Reported-by: Wolfram Sang Signed-off-by: Ray Jui Acked-by: Florian Fainelli -- Florian

Re: [PATCH] overflow: Add __must_check attribute to check_*() helpers

2020-08-15 Thread Kees Cook
On Thu, Aug 13, 2020 at 08:39:44AM +0200, Rasmus Villemoes wrote: > On 12/08/2020 23.51, Kees Cook wrote: > > Since the destination variable of the check_*_overflow() helpers will > > contain a wrapped value on failure, it would be best to make sure callers > > really did check the return result

[PATCH 6/9] habanalabs: remove redundant assignment to variable

2020-08-15 Thread Oded Gabbay
new_dma_pkt->ctl is assigned a value and then is reassigned a new value without the first value ever being used. Reported-by: kernel test robot Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/gaudi/gaudi.c | 2 -- 1 file changed, 2 deletions(-) diff --git

Re: [PATCH v10 3/5] drm/msm/dp: add support for DP PLL driver

2020-08-15 Thread Dmitry Baryshkov
On 15/08/2020 02:22, Tanmay Shah wrote: On 2020-08-14 10:05, Dmitry Baryshkov wrote: On 12/08/2020 07:42, Tanmay Shah wrote: From: Chandan Uddaraju Add the needed DP PLL specific files to support display port interface on msm targets. [skipped] diff --git

[tip: x86/paravirt] x86/paravirt: Avoid needless paravirt step clearing page table entries

2020-08-15 Thread tip-bot2 for Juergen Gross
The following commit has been merged into the x86/paravirt branch of tip: Commit-ID: 7c9f80cb76ec9f14c3b25509168b1a2f7942e418 Gitweb: https://git.kernel.org/tip/7c9f80cb76ec9f14c3b25509168b1a2f7942e418 Author:Juergen Gross AuthorDate:Sat, 15 Aug 2020 12:06:41 +02:00

[PATCH 0/2] power: supply: RN5T618/RC5T619

2020-08-15 Thread Andreas Kemnade
This series adds support for the RN5T618/RC5T619 charger and fuel gauge. Battery and input power status can be read. Andreas Kemnade (2): power: supply: Add support for RN5T618/RC5T619 charger and fuel gauge mfd: rn5t618: Add a power supply subdevice drivers/mfd/rn5t618.c|

possible deadlock in io_poll_double_wake

2020-08-15 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:c9c9735c Merge tag 'scsi-misc' of git://git.kernel.org/pub.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=127399f690 kernel config: https://syzkaller.appspot.com/x/.config?x=adea84f38e7bc8d

[GIT PULL] scheduler fixes

2020-08-15 Thread Ingo Molnar
Linus, Please pull the latest sched/urgent git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched-urgent-2020-08-15 # HEAD: cc172ff301d8079e941a6eb31758951a6d764084 sched/debug: Fix the alignment of the show-state debug output Two fixes: fix a new tracepoint's

Re: [PATCH v2] lib/string.c: implement stpcpy

2020-08-15 Thread Kees Cook
On Fri, Aug 14, 2020 at 07:09:44PM -0700, Nick Desaulniers wrote: > LLVM implemented a recent "libcall optimization" that lowers calls to > `sprintf(dest, "%s", str)` where the return value is used to > `stpcpy(dest, str) - dest`. This generally avoids the machinery involved > in parsing format

Re: [PATCH RFC 02/12] entry/idle: Add a common function for activites during idle entry/exit

2020-08-15 Thread peterz
On Fri, Aug 14, 2020 at 11:18:58PM -0400, Joel Fernandes (Google) wrote: > Currently only RCU hooks for idle entry/exit are called. In later > patches, kernel-entry protection functionality will be added. > > Signed-off-by: Joel Fernandes (Google) NAK, rcu_idle_enter() is broken where it is

Re: [PATCH] Replace HTTP links with HTTPS ones: EDAC-SBRIDGE

2020-08-15 Thread Borislav Petkov
On Wed, Jul 08, 2020 at 01:35:46PM +0200, Alexander A. Klimov wrote: > Rationale: > Reduces attack surface on kernel devs opening the links for MITM > as HTTPS traffic is much harder to manipulate. > > Deterministic algorithm: > For each file: > If not .svg: > For each line: > If

memory leak in read_adv_mon_features

2020-08-15 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:7fca4dee Merge tag 'powerpc-5.9-2' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15ea92a190 kernel config: https://syzkaller.appspot.com/x/.config?x=e320bbff976a5cdc

Re: [PATCH v2 1/3] dt-bindings: media: ov772x: Document endpoint properties

2020-08-15 Thread Lad, Prabhakar
Hi Jacopo, On Mon, Aug 3, 2020 at 12:39 PM Lad Prabhakar wrote: > > Document endpoint properties required for parallel interface > > Signed-off-by: Lad Prabhakar > --- > .../devicetree/bindings/media/i2c/ov772x.txt | 16 > 1 file changed, 16 insertions(+) > I see you

Re: [PATCH] lib/string.c: implement stpcpy

2020-08-15 Thread Sami Tolvanen
Hi Nick, On Fri, Aug 14, 2020 at 5:24 PM Nick Desaulniers wrote: > > LLVM implemented a recent "libcall optimization" that lowers calls to > `sprintf(dest, "%s", str)` where the return value is used to > `stpcpy(dest, str) - dest`. This generally avoids the machinery involved > in parsing format

[tip: x86/paravirt] x86/paravirt: Remove 32-bit support from CONFIG_PARAVIRT_XXL

2020-08-15 Thread tip-bot2 for Juergen Gross
The following commit has been merged into the x86/paravirt branch of tip: Commit-ID: 0cabf9914990dc59a7e1793ef2fb294d578dc210 Gitweb: https://git.kernel.org/tip/0cabf9914990dc59a7e1793ef2fb294d578dc210 Author:Juergen Gross AuthorDate:Sat, 15 Aug 2020 12:06:36 +02:00

[PATCH 0/2] Make debug_obj_descr const

2020-08-15 Thread Stephen Boyd
These patches make debug_obj_descr into a const pointer. The second patch can be split up into many patches if desired and sent to respective susbsytem maintainers. Stephen Boyd (2): debugobjects: Allow debug_obj_descr to be const treewide: Make all debug_obj_descr's const

[PATCH 2/2] mfd: rn5t618: Add a power supply subdevice

2020-08-15 Thread Andreas Kemnade
The RN5T618 and RC5T619 both have a charger and a fuel gauge, so add a subdevice for it. According to drivers in the wild, things should be at least similar, but since it is not tested, add it only to the RC5T619. Signed-off-by: Andreas Kemnade --- drivers/mfd/rn5t618.c | 1 + 1 file changed, 1

Re: [PATCH] x86: work around clang IAS bug referencing __force_order

2020-08-15 Thread Sedat Dilek
On Sat, Aug 15, 2020 at 12:46 PM Sedat Dilek wrote: > > On Sat, Aug 15, 2020 at 10:23 AM Sedat Dilek wrote: > > > > On Sat, Aug 15, 2020 at 5:28 AM Sedat Dilek wrote: > > > > > > On Sat, Aug 15, 2020 at 2:27 AM Nick Desaulniers > > > wrote: > > > > > > > > On Fri, Aug 14, 2020 at 3:57 PM Nick

[PATCH for-5.9] iio: adc: meson-saradc: Use the parent device to look up the calib data

2020-08-15 Thread Martin Blumenstingl
On the older-gen 32-bit SoCs the meson-saradc driver is used to read the SoC temperature. This requires reading calibration data from the eFuse. Looking up the calibration data nvmem-cell requires the OF device_node pointer to be available in the struct device which is passed to

[RFC PATCH 0/2] proc,socket: attach description to sockets

2020-08-15 Thread Pascal Bouchareine
Checking to see if this could fit in struct sock. This goes against v5.8 I tried to make it tl;dr in commit 2/2 but motivation is also described a bit in https://lore.kernel.org/linux-api/CAGbU3_nVvuzMn2wo4_ZKufWcGfmGsopVujzTWw-Bbeky=xs...@mail.gmail.com/

[PATCH 2/3] regulator: rt4801: Add DT binding documentation

2020-08-15 Thread cy_huang
From: ChiYuan Huang Add a devicetree binding documentation for the rt4801 regulator driver. Signed-off-by: ChiYuan Huang --- .../regulator/richtek,rt4801-regulator.yaml| 80 ++ 1 file changed, 80 insertions(+) create mode 100644

Re: [PATCH RFC 2/2] lkdtm: Add heap spraying test

2020-08-15 Thread Kees Cook
On Thu, Aug 13, 2020 at 06:19:22PM +0300, Alexander Popov wrote: > Add a simple test for CONFIG_SLAB_QUARANTINE. > > It performs heap spraying that aims to reallocate the recently freed heap > object. This technique is used for exploiting use-after-free > vulnerabilities in the kernel code. > >

Re: [PATCH 3/5] arm64: dts: renesas: r8a774a1: Add PCIe EP nodes

2020-08-15 Thread Sergei Shtylyov
Hello! On 14.08.2020 20:30, Lad Prabhakar wrote: Add PCIe EP nodes to R8A774A1 (RZ/G2M) SoC dtsi. Signed-off-by: Lad Prabhakar Reviewed-by: Biju Das --- arch/arm64/boot/dts/renesas/r8a774a1.dtsi | 38 +++ 1 file changed, 38 insertions(+) diff --git

[PATCH v2] overflow: Add __must_check attribute to check_*() helpers

2020-08-15 Thread Kees Cook
Since the destination variable of the check_*_overflow() helpers will contain a wrapped value on failure, it would be best to make sure callers really did check the return result of the helper. Adjust the macros to use a bool-wrapping static inline that is marked with __must_check. This means the

Re: [PATCH] squashfs: avoid bio_alloc() failure with 1Mbyte blocks

2020-08-15 Thread Guenter Roeck
On Fri, Aug 14, 2020 at 8:57 PM Phillip Lougher wrote: > > This is a regression introduced by the "migrate from ll_rw_block usage > to BIO" patch. > > Bio_alloc() is limited to 256 pages (1 Mbyte). This can cause a > failure when reading 1 Mbyte block filesystems. The problem is > a datablock

[PATCH RFC 12/12] sched/coresched: rq->core should be set only if not previously set

2020-08-15 Thread Joel Fernandes (Google)
From: Vineeth Pillai During hotplug events, smt_mask would not contain all the CPUs in a core and this can cause reassigning of rq->core, which breaks the core-wide counters that are needed for tracking kernel-mode entry/exits. This patch therefore makes sure that rq->core does not change once

Re: [RFC PATCH] vsprintf: Add %pv extension replacement for print_vma_addr

2020-08-15 Thread Sergey Senozhatsky
Cc-ing John On (20/08/14 10:53), Joe Perches wrote: [..] In general, the idea looks nice. > +static noinline_for_stack > +char *vma_addr(char *buf, char *end, void *ip, > +struct printf_spec spec, const char *fmt) > +{ > +#ifdef CONFIG_MMU > + struct mm_struct *mm = current->mm;

[PATCH] platform: cros_ec: Reduce ligthbar get version command

2020-08-15 Thread Gwendal Grignou
By default, the lightbar commands are set to the biggest lightbar command and response. That length is greater than 128 bytes and may not work on all machines. But all EC are probed for lightbar by sending a get version request. Set that request size precisely. BUG=chromium:160662061 TEST=Before

Re: [PATCH v2] x86/boot/compressed: Disable relocation relaxation

2020-08-15 Thread Sedat Dilek
On Wed, Aug 12, 2020 at 2:43 AM Arvind Sankar wrote: > > The x86-64 psABI [0] specifies special relocation types > (R_X86_64_[REX_]GOTPCRELX) for indirection through the Global Offset > Table, semantically equivalent to R_X86_64_GOTPCREL, which the linker > can take advantage of for optimization

Re: [RFC-PATCH 1/2] mm: Add __GFP_NO_LOCKS flag

2020-08-15 Thread Thomas Gleixner
Paul, On Fri, Aug 14 2020 at 16:41, Paul E. McKenney wrote: > On Sat, Aug 15, 2020 at 01:14:53AM +0200, Thomas Gleixner wrote: >> As a matter of fact I assume^Wdeclare that removing struct rcu_head which >> provides a fallback is not an option at all. I know that you want to, >> but it wont work

[RFC PATCH v1 1/2] ASoC: rockchip-spdif: add description for rk3308

2020-08-15 Thread Johan Jonker
A test with the command below shows that the compatible string "rockchip,rk3308-spdif", "rockchip,rk3328-spdif" is already in use, but is not added to a document. The current fallback string "rockchip,rk3328-spdif" points to a data set enum RK_SPDIF_RK3366 in rockchip_spdif.c that is not used

Re: [PATCH] lib/string.c: implement stpcpy

2020-08-15 Thread Arvind Sankar
On Fri, Aug 14, 2020 at 09:33:10PM -0400, Arvind Sankar wrote: > On Fri, Aug 14, 2020 at 05:24:15PM -0700, Nick Desaulniers wrote: > > +#ifndef __HAVE_ARCH_STPCPY > > +/** > > + * stpcpy - copy a string from src to dest returning a pointer to the new > > end > > + * of dest, including

Re: [PATCH RFC 0/2] Break heap spraying needed for exploiting use-after-free

2020-08-15 Thread Kees Cook
On Thu, Aug 13, 2020 at 06:19:20PM +0300, Alexander Popov wrote: > I've found an easy way to break heap spraying for use-after-free > exploitation. I simply extracted slab freelist quarantine from KASAN > functionality and called it CONFIG_SLAB_QUARANTINE. Please see patch 1. Ah yeah, good idea.

[PATCH 5/9] habanalabs: use FIELD_PREP() instead of <

2020-08-15 Thread Oded Gabbay
Use the standard FIELD_PREP() macro instead of << operator to perform bitmask operations. This ensures type check safety and eliminate compiler warnings. Reported-by: kernel test robot Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/common/hw_queue.c | 9 +-

[PATCH v2] lib/string.c: implement stpcpy

2020-08-15 Thread Nick Desaulniers
LLVM implemented a recent "libcall optimization" that lowers calls to `sprintf(dest, "%s", str)` where the return value is used to `stpcpy(dest, str) - dest`. This generally avoids the machinery involved in parsing format strings. Calling `sprintf` with overlapping arguments was clarified in ISO

Re: [PATCH 2/2] tree-wide: rename vmemdup_user to kvmemdup_user

2020-08-15 Thread Matthew Wilcox
On Sat, Aug 15, 2020 at 03:10:12PM +0200, Markus Elfring wrote: > > This helper uses kvmalloc, not vmalloc, so rename it to kvmemdup_user to > > make it clear we're using kvmalloc() and will need to use kvfree(). > > Can the renaming of this function name trigger software updates > for any more

Hello

2020-08-15 Thread Jennifer
Hello My name is Jenifer Alex Please reply, so that we can know more better and share photos, Thank you.

[GIT PULL] SMB3 fixes

2020-08-15 Thread Steve French
Please pull the following changes since commit 327a8d76b1ac2037f87bf041f3bc076407284ffc: Merge tag '5.9-rc-smb3-fixes-part1' of git://git.samba.org/sfrench/cifs-2.6 (2020-08-06 19:21:04 -0700) are available in the Git repository at: git://git.samba.org/sfrench/cifs-2.6.git

KMSAN: uninit-value in hci_chan_lookup_handle

2020-08-15 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:ce8056d1 wip: changed copy_from_user where instrumented git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=16c0e1e290 kernel config:

Re: POC: Alternative solution: Re: [PATCH 0/4] printk: reimplement LOG_CONT handling

2020-08-15 Thread Joe Perches
On Fri, 2020-08-14 at 19:33 -0700, Linus Torvalds wrote: > On Fri, Aug 14, 2020 at 4:52 PM Joe Perches wrote: > > On Fri, 2020-08-14 at 15:46 -0700, Linus Torvalds wrote: > > > This is why I think any discussion that says "people should buffer > > > their lines themselves and we should get rid if

[PATCH] MAINTAINERS: mention documentation maintainer entry profile

2020-08-15 Thread Lukas Bulwahn
Since commit 53b7f3aa411b ("Add a maintainer entry profile for documentation"), the documentation "subsystem" has a maintainer entry profile, and it deserves to be mentioned in MAINTAINERS with a suitable P: entry. Signed-off-by: Lukas Bulwahn --- applies cleanly on docs-next, and was

Re: [GIT PULL v2] MFD for v5.9

2020-08-15 Thread Linus Torvalds
On Fri, Aug 14, 2020 at 7:42 AM Lee Jones wrote: > > Here is the new pull request. It has been tested; locally, by > TuxBuild and the Intel 'kernel test robot' [0]. Please consider this for > addition into v5.9. All of these patches have also soak tested in > -next for a considerable amount of

[PATCH 2/2] net: socket: implement SO_DESCRIPTION

2020-08-15 Thread Pascal Bouchareine
This command attaches the zero terminated string in optval to the socket for troubleshooting purposes. The free string is displayed in the process fdinfo file for that fd (/proc//fdinfo/). One intended usage is to allow processes to self-document sockets for netstat and friends to report We

Re: [PATCH] genirq/affinity: show managed irq affinity correctly

2020-08-15 Thread Marc Zyngier
On 2020-08-13 09:08, Thomas Gleixner wrote: Yunfeng Ye writes: [...] You are looking at the wrong file. /proc/irq/$IRQ/smp_affinity* is the possible mask. If you want to know to which CPU an interrupt is affine then look at /proc/irq/$IRQ/effective_affinity* If effective_affinity* is not

[PATCH v3] dma-mapping: set default segment_boundary_mask to ULONG_MAX

2020-08-15 Thread Nicolin Chen
The default segment_boundary_mask was set to DMA_BIT_MAKS(32) a decade ago by referencing SCSI/block subsystem, as a 32-bit mask was good enough for most of the devices. Now more and more drivers set dma_masks above DMA_BIT_MAKS(32) while only a handful of them call dma_set_seg_boundary(). This

[PATCH RFC 09/12] sched/coresched: Use for_each_cpu(_wrap)_or for pick_next_task

2020-08-15 Thread Joel Fernandes (Google)
From: Vineeth Pillai During a CPU hotplug event, schedule would be called with the hotplugged CPU not in the cpumask. So use for_each_cpu(_wrap)_or to include the current cpu in the task pick loop. Signed-off-by: Vineeth Pillai Co-developed-by: Joel Fernandes (Google) Signed-off-by: Joel

Re: POC: Alternative solution: Re: [PATCH 0/4] printk: reimplement LOG_CONT handling

2020-08-15 Thread Linus Torvalds
On Fri, Aug 14, 2020 at 4:52 PM Joe Perches wrote: > > On Fri, 2020-08-14 at 15:46 -0700, Linus Torvalds wrote: > > > > This is why I think any discussion that says "people should buffer > > their lines themselves and we should get rid if pr_cont()" is > > fundamentally broken. > > > > Don't go

[PATCH 3/3] regulator: rt4801: Fix the dt-binding document for dtc check.

2020-08-15 Thread cy_huang
From: ChiYuan Huang Fix the dt-binding document for dtc check. Signed-off-by: ChiYuan Huang --- .../devicetree/bindings/regulator/richtek,rt4801-regulator.yaml| 3 --- 1 file changed, 3 deletions(-) diff --git

  1   2   3   4   >