[PATCH v32 04/12] landlock: Add ptrace restrictions

2021-04-01 Thread Mickaël Salaün
From: Mickaël Salaün Using ptrace(2) and related debug features on a target process can lead to a privilege escalation. Indeed, ptrace(2) can be used by an attacker to impersonate another task and to remain undetected while performing malicious activities. Thanks to ptrace_may_access(), variou

[PATCH v32 10/12] selftests/landlock: Add user space tests

2021-04-01 Thread Mickaël Salaün
From: Mickaël Salaün Test all Landlock system calls, ptrace hooks semantic and filesystem access-control with multiple layouts. Test coverage for security/landlock/ is 93.6% of lines. The code not covered only deals with internal kernel errors (e.g. memory allocation) and race conditions. Cc:

[PATCH v32 05/12] LSM: Infrastructure management of the superblock

2021-04-01 Thread Mickaël Salaün
From: Casey Schaufler Move management of the superblock->sb_security blob out of the individual security modules and into the security infrastructure. Instead of allocating the blobs from within the modules, the modules tell the infrastructure how much space is required, and the space is allocate

[PATCH v32 07/12] landlock: Support filesystem access-control

2021-04-01 Thread Mickaël Salaün
From: Mickaël Salaün Using Landlock objects and ruleset, it is possible to tag inodes according to a process's domain. To enable an unprivileged process to express a file hierarchy, it first needs to open a directory (or a file) and pass this file descriptor to the kernel through landlock_add_ru

[PATCH v32 06/12] fs,security: Add sb_delete hook

2021-04-01 Thread Mickaël Salaün
From: Mickaël Salaün The sb_delete security hook is called when shutting down a superblock, which may be useful to release kernel objects tied to the superblock's lifetime (e.g. inodes). This new hook is needed by Landlock to release (ephemerally) tagged struct inodes. This comes from the unpri

[PATCH v32 00/12] Landlock LSM

2021-04-01 Thread Mickaël Salaün
Hi, This updated patch series mainly replaces EACCES with EXDEV for the reparenting restriction to let user space fall back to a copy (and unlink if needed) as pointed out by Al Viro. The SLOC count is 1327 for security/landlock/ and 2590 for tools/testing/selftest/landlock/ . Test coverage for

[PATCH v32 02/12] landlock: Add ruleset and domain management

2021-04-01 Thread Mickaël Salaün
From: Mickaël Salaün A Landlock ruleset is mainly a red-black tree with Landlock rules as nodes. This enables quick update and lookup to match a requested access, e.g. to a file. A ruleset is usable through a dedicated file descriptor (cf. following commit implementing syscalls) which enables a

[PATCH v32 03/12] landlock: Set up the security framework and manage credentials

2021-04-01 Thread Mickaël Salaün
From: Mickaël Salaün Process's credentials point to a Landlock domain, which is underneath implemented with a ruleset. In the following commits, this domain is used to check and enforce the ptrace and filesystem security policies. A domain is inherited from a parent to its child the same way a t

[PATCH v32 01/12] landlock: Add object management

2021-04-01 Thread Mickaël Salaün
From: Mickaël Salaün A Landlock object enables to identify a kernel object (e.g. an inode). A Landlock rule is a set of access rights allowed on an object. Rules are grouped in rulesets that may be tied to a set of processes (i.e. subjects) to enforce a scoped access-control (i.e. a domain). Be

[PATCH v8 0/6] Optionally randomize kernel stack offset each syscall

2021-04-01 Thread Roy Yang
Thanks Ted, Casey and Al Viro. I am sorry for the inconvenience. I tried to follow the instructions listed under https://lore.kernel.org/lkml/20210330205750.428816-1-keesc...@chromium.org/ using git-send-email Thought that will reply to the original thread with the original subject . Let me know

Re: [PATCH] soundwire: qcom: handle return correctly in qcom_swrm_transport_params

2021-04-01 Thread Kees Cook
On Thu, Apr 01, 2021 at 10:15:02AM +0100, Srinivas Kandagatla wrote: > Looks like return from reg_write is set but not checked. > Fix this by adding error return path. > > Reported-by: coverity-bot > Addresses-Coverity-ID: 1503591 ("UNUSED_VALUE") > Fixes: 128eaf937adb ("soundwire: qcom: add supp

Re: [PATCH V3 0/5] Add PM7325/PM8350C/PMR735A regulator support

2021-04-01 Thread Mark Brown
On Wed, 31 Mar 2021 17:35:34 +0530, satya priya wrote: > This series is dependent on below series which adds DT files for SC7280 SoC > https://lore.kernel.org/patchwork/project/lkml/list/?series=488871 > > satya priya (5): > regulator: qcom-rpmh: Add pmic5_ftsmps520 buck > regulator: qcom-rpmh

Re: [PATCH] torture: Correctly fetch CPUs for kvm-build.sh with all native language

2021-04-01 Thread Frederic Weisbecker
On Thu, Apr 01, 2021 at 01:40:22PM -0700, Paul E. McKenney wrote: > On Thu, Apr 01, 2021 at 10:31:12PM +0200, Frederic Weisbecker wrote: > > On Thu, Apr 01, 2021 at 11:51:16AM -0700, Paul E. McKenney wrote: > > > On Thu, Apr 01, 2021 at 03:26:02PM +0200, Frederic Weisbecker wrote: > > > > Grepping

Re: [PATCH] torture: Correctly fetch CPUs for kvm-build.sh with all native language

2021-04-01 Thread Paul E. McKenney
On Thu, Apr 01, 2021 at 10:31:12PM +0200, Frederic Weisbecker wrote: > On Thu, Apr 01, 2021 at 11:51:16AM -0700, Paul E. McKenney wrote: > > On Thu, Apr 01, 2021 at 03:26:02PM +0200, Frederic Weisbecker wrote: > > > Grepping for "CPU" on lscpu output isn't always successful, depending > > > on the

Re: [PATCH 30/30] media: atmel: atmel-isc: add microchip-xisc driver

2021-04-01 Thread kernel test robot
Hi Eugen, I love your patch! Perhaps something to improve: [auto build test WARNING on linuxtv-media/master] [also build test WARNING on v5.12-rc5 next-20210401] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--bas

Re: [PATCH 06/30] media: atmel: atmel-isc: extract CSC submodule config into separate function

2021-04-01 Thread kernel test robot
Hi Eugen, I love your patch! Perhaps something to improve: [auto build test WARNING on linuxtv-media/master] [also build test WARNING on v5.12-rc5 next-20210401] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--bas

[PATCH] Dixup sysname wrt recent cultural developments

2021-04-01 Thread Alexey Dobriyan
It is apparent that emoji outbreak can not be contained. In that case might as well embrace it. Change main kernel banner, /proc/version and uname(2) output. Signed-off-by: Alexey Dobriyan --- include/linux/uts.h |2 +- init/version.c |2 +- 2 files changed, 2 insertions(+), 2 del

[PATCH] h8300: rearrange headers inclusion order in asm/bitops

2021-04-01 Thread Yury Norov
This patch fixes [next-20210401] commit a5145bdad3ff ("arch: rearrange headers inclusion order in asm/bitops for m68k and sh"). h8300 has similar problem, which was overlooked by me. h8300 includes bitmap/{find,le}.h prior to ffs/fls headers. New fast-path implementation in find.h re

Re: [PATCH] torture: Correctly fetch CPUs for kvm-build.sh with all native language

2021-04-01 Thread Frederic Weisbecker
On Thu, Apr 01, 2021 at 11:51:16AM -0700, Paul E. McKenney wrote: > On Thu, Apr 01, 2021 at 03:26:02PM +0200, Frederic Weisbecker wrote: > > Grepping for "CPU" on lscpu output isn't always successful, depending > > on the local language setting. As a result, the build can be aborted > > early with:

Re: [RFC v1 23/26] x86/tdx: Make pages shared in ioremap()

2021-04-01 Thread Dave Hansen
On 2/5/21 3:38 PM, Kuppuswamy Sathyanarayanan wrote: > From: "Kirill A. Shutemov" > > All ioremap()ed paged that are not backed by normal memory (NONE or > RESERVED) have to be mapped as shared. s/paged/pages/ > +/* Make the page accesable by VMM */ > +#define pgprot_tdx_shared(prot) __pgprot(

[PATCH] media: pvrusb2: fix warning in pvr2_i2c_core_done

2021-04-01 Thread Anirudh Rayabharam
syzbot has reported the following warning in pvr2_i2c_done: sysfs group 'power' not found for kobject '1-0043' When the device is disconnected (pvr_hdw_disconnect), the i2c adapter is not unregistered along with the USB and vl42 teardown. As part of the USB device disconnect, the sysfs fi

Re: [PATCH] alpha/kernel/traps: Use find_vma_intersection() in traps for setting si_code

2021-04-01 Thread Michel Lespinasse
You are correct that find_vma is insufficient for what's intended here, and that find_vma_intersection fixes it. I'll let the arch maintainers speak of what the consequences of the changed si_code would be - the bug has been here so long, that I would worry some userspace might have come to depend

Re: [GIT PULL] ftrace: Check if pages were allocated before calling free_pages()

2021-04-01 Thread Steven Rostedt
On Thu, 1 Apr 2021 16:07:10 -0400 Steven Rostedt wrote: > > @@ -6231,7 +6231,8 @@ static int ftrace_process_locs(struct module *mod, > > if (!addr) > > continue; > > > > - if (pg->index == pg->size) { > > + end_offset = (pg->index+1) * sizeof(

Re: [PATCH v2 2/2] ASoC: dt-bindings: renesas, rsnd: Clear warning 'ports' does not match any of the regexes

2021-04-01 Thread Rob Herring
On Wed, Mar 31, 2021 at 05:16:16PM +0800, Zhen Lei wrote: > Currently, if there are more than two ports, or if there is only one port > but other properties(such as "#address-cells") is required, these ports > are placed under the "ports" node. So add the schema of property "ports". A given bindin

Re: [GIT PULL] ftrace: Check if pages were allocated before calling free_pages()

2021-04-01 Thread Linus Torvalds
On Thu, Apr 1, 2021 at 1:07 PM Steven Rostedt wrote: > > On Wed, 31 Mar 2021 11:03:21 -0700 > Linus Torvalds wrote: > > > @@ -6231,7 +6231,8 @@ static int ftrace_process_locs(struct module *mod, > > if (!addr) > > continue; > > > > - if (pg->index =

Re: [PATCH 1/9] dt-bindings: clk: qcom: Add bindings for MSM8994 GCC driver

2021-04-01 Thread Konrad Dybcio
> Isn't this already documented in > Documentation/devicetree/bindings/clock/qcom,gcc.yaml I wanted to document the custom property for the SONY SDHCI quirk, but if it's not necessary, we can just omit this patch. Konrad

Re: [PATCH] ARM: Qualify enabling of swiotlb_init()

2021-04-01 Thread Konrad Rzeszutek Wilk
On Tue, Mar 30, 2021 at 07:36:07AM +0200, Christoph Hellwig wrote: > On Mon, Mar 29, 2021 at 12:30:42PM -0700, Florian Fainelli wrote: > > Should I toss this in Russell's patch tracker or do you need me to make > > some changes to the patch? > > Due to all the other changes in this area I don't th

Re: [PATCH] Where we are for this patch?

2021-04-01 Thread Theodore Ts'o
On Thu, Apr 01, 2021 at 07:48:30PM +, Al Viro wrote: > On Thu, Apr 01, 2021 at 12:17:44PM -0700, Roy Yang wrote: > > Both Android and Chrome OS really want this feature; For > > Container-Optimized OS, we have customers > > interested in the defense too. > > > > Thank you very much. > > > >

Re: [RFC v1 22/26] x86/tdx: Exclude Shared bit from __PHYSICAL_MASK

2021-04-01 Thread Dave Hansen
On 2/5/21 3:38 PM, Kuppuswamy Sathyanarayanan wrote: > From: "Kirill A. Shutemov" > > tdx_shared_mask() returns the mask that has to be set in page table > entry to make page shared with VMM. Needs to be either: has to be set in a page table entry or has to be set in page table

Re: [RFC PATCH 0/6] mm: thp: use generic THP migration for NUMA hinting fault

2021-04-01 Thread Yang Shi
On Wed, Mar 31, 2021 at 6:20 AM Mel Gorman wrote: > > On Tue, Mar 30, 2021 at 04:42:00PM +0200, Gerald Schaefer wrote: > > Could there be a work-around by splitting THP pages instead of marking them > > as migrate pmds (via pte swap entries), at least when THP migration is not > > supported? I gue

Re: [RFC PATCH 0/6] mm: thp: use generic THP migration for NUMA hinting fault

2021-04-01 Thread Yang Shi
On Wed, Mar 31, 2021 at 4:47 AM Gerald Schaefer wrote: > > On Tue, 30 Mar 2021 09:51:46 -0700 > Yang Shi wrote: > > > On Tue, Mar 30, 2021 at 7:42 AM Gerald Schaefer > > wrote: > > > > > > On Mon, 29 Mar 2021 11:33:06 -0700 > > > Yang Shi wrote: > > > > > > > > > > > When the THP NUMA fault sup

Re: [PATCH] drm/msm/a6xx: fix for kernels without CONFIG_NVMEM

2021-04-01 Thread Rob Clark
On Mon, Feb 22, 2021 at 8:06 AM Rob Clark wrote: > > On Mon, Feb 22, 2021 at 7:45 AM Akhil P Oommen wrote: > > > > On 2/19/2021 9:30 PM, Rob Clark wrote: > > > On Fri, Feb 19, 2021 at 2:44 AM Akhil P Oommen > > > wrote: > > >> > > >> On 2/18/2021 9:41 PM, Rob Clark wrote: > > >>> On Thu, Feb 18

Re: [PATCH v2 3/7] powerpc: convert config files to generic cmdline

2021-04-01 Thread Rob Herring
On Tue, Mar 30, 2021 at 6:31 PM Daniel Walker wrote: > > On Tue, Mar 30, 2021 at 03:13:04PM -0500, Rob Herring wrote: > > On Tue, Mar 30, 2021 at 12:33 PM Daniel Walker wrote: > > > > > > On Thu, Mar 25, 2021 at 05:29:44PM -0600, Rob Herring wrote: > > > > On Thu, Mar 25, 2021 at 2:00 PM Daniel W

Re: [GIT PULL] ftrace: Check if pages were allocated before calling free_pages()

2021-04-01 Thread Steven Rostedt
On Wed, 31 Mar 2021 11:03:21 -0700 Linus Torvalds wrote: > @@ -6231,7 +6231,8 @@ static int ftrace_process_locs(struct module *mod, > if (!addr) > continue; > > - if (pg->index == pg->size) { > + end_offset = (pg->index+1) * sizeof(pg-

Re: [PATCH 10/10] mm/migrate: new zone_reclaim_mode to enable reclaim migration

2021-04-01 Thread Yang Shi
On Thu, Apr 1, 2021 at 11:35 AM Dave Hansen wrote: > > > From: Dave Hansen > > Some method is obviously needed to enable reclaim-based migration. > > Just like traditional autonuma, there will be some workloads that > will benefit like workloads with more "static" configurations where > hot pages

Re: [RFC v1 21/26] x86/mm: Move force_dma_unencrypted() to common code

2021-04-01 Thread Dave Hansen
On 2/5/21 3:38 PM, Kuppuswamy Sathyanarayanan wrote: > From: "Kirill A. Shutemov" > > Intel TDX doesn't allow VMM to access guest memory. Any memory that is > required for communication with VMM suppose to be shared explicitly by s/suppose to/must/ > setting the bit in page table entry. The sha

Re: [PATCH 3/9] sched: Trivial core scheduling cookie management

2021-04-01 Thread Josh Don
> +/* > + * sched_core_update_cookie - Common helper to update a task's core cookie. > This > + * updates the selected cookie field. > + * @p: The task whose cookie should be updated. > + * @cookie: The new cookie. > + * @cookie_type: The cookie field to which the cookie corresponds. No cookie_ty

[PATCH][next] drm/i915: Fix an uninitialized variable issue

2021-04-01 Thread Colin King
From: Colin Ian King Currently there is a while loop that contains a handful of continue statements that can skip over the assignment of the variable err. At the end of the loop there is a potiential for err to be unassigned and possibly causing issues when err is checked for a non-zero value. Fi

[PATCH v2] PCI: Coalesce contiguous regions for host bridges

2021-04-01 Thread Kai-Heng Feng
Built-in graphics on HP EliteDesk 805 G6 doesn't work because graphics can't get the BAR it needs: [0.611504] pci_bus :00: root bus resource [mem 0x1002020-0x100303f window] [0.611505] pci_bus :00: root bus resource [mem 0x1003040-0x100401f window] ... [0.63808

re: drm/i915/selftests: Prepare gtt tests for obj->mm.lock removal

2021-04-01 Thread Colin Ian King
Hi, Static analysis with Coverity on Linux-next has detected a potential issue with the following commit: commit 480ae79537b28f30ef6e07b7de69a9ae2599daa7 Author: Maarten Lankhorst Date: Tue Mar 23 16:50:49 2021 +0100 drm/i915/selftests: Prepare gtt tests for obj->mm.lock removal The ana

[PATCH][next] crypto: sun8i-ss: Fix memory leak of pad

2021-04-01 Thread Colin King
From: Colin Ian King It appears there are several failure return paths that don't seem to be free'ing pad. Fix these. Addresses-Coverity: ("Resource leak") Fixes: d9b45418a917 ("crypto: sun8i-ss - support hash algorithms") Signed-off-by: Colin Ian King --- drivers/crypto/allwinner/sun8i-ss/sun

[PATCH] crypto: sa2ul: Fix memory lead of rxd

2021-04-01 Thread Colin King
From: Colin Ian King There are two error return paths that are not freeing rxd and causing memory leaks. Fix these. Addresses-Coverity: ("Resource leak") Fixes: 00c9211f60db ("crypto: sa2ul - Fix DMA mapping API usage") Signed-off-by: Colin Ian King --- drivers/crypto/sa2ul.c | 8 ++-- 1

[PATCH][V2] crypto: sa2ul: Fix memory leak of rxd

2021-04-01 Thread Colin King
From: Colin Ian King There are two error return paths that are not freeing rxd and causing memory leaks. Fix these. Addresses-Coverity: ("Resource leak") Fixes: 00c9211f60db ("crypto: sa2ul - Fix DMA mapping API usage") Signed-off-by: Colin Ian King --- V2: Fix typo in $SUBJECT --- drivers/

Re: [PATCH v2 0/6] NVIDIA Tegra memory improvements

2021-04-01 Thread Krzysztof Kozlowski
On Wed, 31 Mar 2021 02:04:39 +0300, Dmitry Osipenko wrote: > This series replaces the raw voltage regulator with a power domain that > will be managing SoC core voltage. The core power domain patches are still > under review, but it's clear at this point that this is the way we will > implement the

Re: (subset) [PATCH v2 0/6] NVIDIA Tegra memory improvements

2021-04-01 Thread Krzysztof Kozlowski
On Wed, 31 Mar 2021 02:04:39 +0300, Dmitry Osipenko wrote: > This series replaces the raw voltage regulator with a power domain that > will be managing SoC core voltage. The core power domain patches are still > under review, but it's clear at this point that this is the way we will > implement the

Re: [PATCH v2 0/6] NVIDIA Tegra memory improvements

2021-04-01 Thread Krzysztof Kozlowski
On 31/03/2021 01:04, Dmitry Osipenko wrote: > Hi, > > This series replaces the raw voltage regulator with a power domain that > will be managing SoC core voltage. The core power domain patches are still > under review, but it's clear at this point that this is the way we will > implement the DVFS

Re: [PATCH -next] memory: fsl-corenet-cf: Remove redundant dev_err call in ccf_probe()

2021-04-01 Thread Krzysztof Kozlowski
On Wed, 31 Mar 2021 17:32:44 +0800, Qiheng Lin wrote: > There is a error message within devm_ioremap_resource > already, so remove the dev_err call to avoid redundant > error message. Applied, thanks! [1/1] memory: fsl-corenet-cf: Remove redundant dev_err call in ccf_probe() commit: b11a188

Re: [PATCH 05/10] mm/migrate: demote pages during reclaim

2021-04-01 Thread Yang Shi
On Thu, Apr 1, 2021 at 11:35 AM Dave Hansen wrote: > > > From: Dave Hansen > > This is mostly derived from a patch from Yang Shi: > > > https://lore.kernel.org/linux-mm/1560468577-101178-10-git-send-email-yang@linux.alibaba.com/ > > Add code to the reclaim path (shrink_page_list()) t

Re: [PATCH 3/4] KVM: x86: correctly merge pending and injected exception

2021-04-01 Thread Paolo Bonzini
On 01/04/21 16:38, Maxim Levitsky wrote: +static int kvm_do_deliver_pending_exception(struct kvm_vcpu *vcpu) +{ + int class1, class2, ret; + + /* try to deliver current pending exception as VM exit */ + if (is_guest_mode(vcpu)) { + ret = kvm_x86_ops.nested_ops->del

Re: [RFC v1 12/26] x86/tdx: Handle in-kernel MMIO

2021-04-01 Thread Dave Hansen
On 2/5/21 3:38 PM, Kuppuswamy Sathyanarayanan wrote: > From: "Kirill A. Shutemov" > > Handle #VE due to MMIO operations. MMIO triggers #VE with EPT_VIOLATION > exit reason. > > For now we only handle subset of instruction that kernel uses for MMIO > oerations. User-space access triggers SIGBUS.

Re: [PATCH 8/9] clk: qcom: gcc-msm8994: Add proper msm8992 support

2021-04-01 Thread Stephen Boyd
Quoting Konrad Dybcio (2021-03-12 18:19:17) > diff --git a/drivers/clk/qcom/gcc-msm8994.c b/drivers/clk/qcom/gcc-msm8994.c > index fae784b4242f..a5b9db7678d1 100644 > --- a/drivers/clk/qcom/gcc-msm8994.c > +++ b/drivers/clk/qcom/gcc-msm8994.c > @@ -2718,13 +2742,57 @@ static const struct qcom_cc_de

[PATCH] staging: emxx_udc: Ending line with argument

2021-04-01 Thread Beatriz Martins de Carvalho
Cleans up check of "Lines should not end with a '('" with argument present in next line in file emxx_udc.c Signed-off-by: Beatriz Martins de Carvalho --- drivers/staging/emxx_udc/emxx_udc.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/staging/emxx_udc/e

Re: [PATCH 3/3] mm/devmap: Remove pgmap accounting in the get_user_pages_fast() path

2021-04-01 Thread Joao Martins
On 3/24/21 7:00 PM, Joao Martins wrote: > On 3/24/21 5:45 PM, Dan Williams wrote: >> On Thu, Mar 18, 2021 at 3:02 AM Joao Martins >> wrote: >>> On 3/18/21 4:08 AM, Dan Williams wrote: Now that device-dax and filesystem-dax are guaranteed to unmap all user mappings of devmap / DAX pages

[PATCH] alpha/kernel/traps: Use find_vma_intersection() in traps for setting si_code

2021-04-01 Thread Liam Howlett
find_vma() will continue to search upwards until the end of the virtual memory space. This means the si_code would almost never be set to SEGV_MAPERR even when the address falls outside of any VMA. Using find_vma_intersection() allows for what is intended by only returning a VMA if it falls withi

RE: [PATCH v2 1/1] use crc32 instead of md5 for hibernation e820 integrity check

2021-04-01 Thread Dexuan Cui
> From: Chris von Recklinghausen > Sent: Thursday, April 1, 2021 9:42 AM > To: a...@kernel.org; s...@redhat.com; raf...@kernel.org; Dexuan Cui > ; linux...@vger.kernel.org; > linux-cry...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: [PATCH v2 1/1] use crc32 instead of md5 for hibernati

Re: [PATCH] Where we are for this patch?

2021-04-01 Thread Al Viro
On Thu, Apr 01, 2021 at 12:17:44PM -0700, Roy Yang wrote: > Both Android and Chrome OS really want this feature; For Container-Optimized > OS, we have customers > interested in the defense too. > > Thank you very much. > > Change-Id: I1eb1b726007aa8f9c374b934cc1c690fb4924aa3 You forgot

Re: [GIT PULL] KVM changes for Linux 5.12-rc6

2021-04-01 Thread pr-tracker-bot
The pull request you sent on Thu, 1 Apr 2021 15:21:20 -0400: > https://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/6905b1dc3c32a094f0da61bd656a740f0a97d592 Thank you! -- Deet-doot-dot, I am a bot. https://ko

Re: [git pull] drm fixes for 5.12-rc6

2021-04-01 Thread pr-tracker-bot
The pull request you sent on Fri, 2 Apr 2021 05:17:07 +1000: > git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2021-04-02 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/a80314c327a937ff1213288adf0d11414c40a898 Thank you! -- Deet-doot-dot, I am a bot. https://ko

Re: [PATCH] psi: allow unprivileged users with CAP_SYS_RESOURCE to write psi files

2021-04-01 Thread Johannes Weiner
On Thu, Apr 01, 2021 at 08:47:33AM +0200, Peter Zijlstra wrote: > On Wed, Mar 31, 2021 at 11:31:56PM -0400, Josh Hunt wrote: > > Currently only root can write files under /proc/pressure. Relax this to > > allow tasks running as unprivileged users with CAP_SYS_RESOURCE to be > > able to write to the

Re: [PATCH 1/5] mm: reuse only-pte-mapped KSM page in do_wp_page()

2021-04-01 Thread Suren Baghdasaryan
On Thu, Apr 1, 2021 at 12:38 PM Greg KH wrote: > > On Thu, Apr 01, 2021 at 11:17:37AM -0700, Suren Baghdasaryan wrote: > > From: Kirill Tkhai > > > > Add an optimization for KSM pages almost in the same way that we have > > for ordinary anonymous pages. If there is a write fault in a page, > > w

Re: [RFC PATCH v1 3/4] arm64: Detect FTRACE cases that make the stack trace unreliable

2021-04-01 Thread Madhavan T. Venkataraman
On 4/1/21 1:53 PM, Madhavan T. Venkataraman wrote: > > > On 4/1/21 1:40 PM, Madhavan T. Venkataraman wrote: So, it is only defined if CONFIG_FUNCTION_GRAPH_TRACER is defined. I can address this as well as your comment by defining another label whose name is more meaningfu

Re: [PATCH v6 02/10] arm64: perf: Enable PMU counter direct access for perf event

2021-04-01 Thread Rob Herring
On Wed, Mar 31, 2021 at 11:01 AM Will Deacon wrote: > > On Tue, Mar 30, 2021 at 12:09:38PM -0500, Rob Herring wrote: > > On Tue, Mar 30, 2021 at 10:31 AM Will Deacon wrote: > > > > > > On Wed, Mar 10, 2021 at 05:08:29PM -0700, Rob Herring wrote: > > > > From: Raphael Gault > > > > > > > > Keep t

Re: [PATCH 0/5] 4.14 backports of fixes for "CoW after fork() issue"

2021-04-01 Thread Suren Baghdasaryan
On Thu, Apr 1, 2021 at 11:59 AM Linus Torvalds wrote: > > On Thu, Apr 1, 2021 at 11:17 AM Suren Baghdasaryan wrote: > > > > We received a report that the copy-on-write issue repored by Jann Horn in > > https://bugs.chromium.org/p/project-zero/issues/detail?id=2045 is still > > reproducible on 4.1

Re: ASM2142: Transfer event TRB DMA ptr not part of current TD ep_index 6 comp_code 13

2021-04-01 Thread Ole Salscheider
Hello, I tried to debug this a bit. It seems that the XHCI ring has two segments. For me, the first has DMA address 0xfffb9000 and the second has fffb8000. The TRBs on the first segment are used successfully up to address fffb9fd0 (which seems to be 253 TRBs?). After th

Re: [PATCH 1/9] dt-bindings: clk: qcom: Add bindings for MSM8994 GCC driver

2021-04-01 Thread Stephen Boyd
Quoting Konrad Dybcio (2021-03-12 18:19:10) > Add documentation for the MSM8994 GCC driver. > > Signed-off-by: Konrad Dybcio > --- > .../bindings/clock/qcom,gcc-msm8994.yaml | 72 +++ > 1 file changed, 72 insertions(+) > create mode 100644 > Documentation/devicetree/bindin

[PATCH v4 3/5] ARM: dts: am33xx-clocks: add spread spectrum support

2021-04-01 Thread Dario Binacchi
Registers for adjusting the spread spectrum clocking (SSC) have been added. As reported by the TI spruh73x RM, SSC is supported only for LCD and MPU PLLs, but the CM_SSC_DELTAMSTEP_DPLL_XXX and CM_SSC_MODFREQDIV_DPLL_XXX registers, as well as the enable field in the CM_CLKMODE_DPLL_XXX registers ar

[PATCH v4 2/5] dt-bindings: ti: dpll: add spread spectrum support

2021-04-01 Thread Dario Binacchi
DT bindings for enabling and adjusting spread spectrum clocking have been added. Signed-off-by: Dario Binacchi Reviewed-by: Rob Herring --- Changes in v4: - Add Rob Herring review tag. Changes in v3: - Add '-hz' suffix to "ti,ssc-modfreq" binding. .../devicetree/bindings/clock/ti/dpll.txt

Re: [PATCH 9/9] clk: qcom: gcc-msm8994: Add a quirk for a different SDCC configuration

2021-04-01 Thread Stephen Boyd
Quoting Konrad Dybcio (2021-03-24 10:12:34) > > On 24.03.2021 18:11, Rob Herring wrote: > > On Sat, Mar 13, 2021 at 03:19:18AM +0100, Konrad Dybcio wrote: > >> Some devices come with a different SDCC clock configuration, > >> account for that. > >> > >> Signed-off-by: Konrad Dybcio > >> --- > >>

Re: [PATCH 1/5] mm: reuse only-pte-mapped KSM page in do_wp_page()

2021-04-01 Thread Greg KH
On Thu, Apr 01, 2021 at 11:17:37AM -0700, Suren Baghdasaryan wrote: > From: Kirill Tkhai > > Add an optimization for KSM pages almost in the same way that we have > for ordinary anonymous pages. If there is a write fault in a page, > which is mapped to an only pte, and it is not related to swap

[PATCH v4 5/5] clk: ti: add am33xx/am43xx spread spectrum clock support

2021-04-01 Thread Dario Binacchi
The patch enables spread spectrum clocking (SSC) for MPU and LCD PLLs. As reported by the TI spruh73x/spruhl7x RM, SSC is only supported for the DISP/LCD and MPU PLLs on am33xx/am43xx. SSC is not supported for DDR, PER, and CORE PLLs. Calculating the required values and setting the registers accor

[PATCH v4 4/5] ARM: dts: am43xx-clocks: add spread spectrum support

2021-04-01 Thread Dario Binacchi
Registers for adjusting the spread spectrum clocking (SSC) have been added. As reported by the TI spruhl7x RM, SSC is supported only for LCD and MPU PLLs, but the PRCM_CM_SSC_DELTAMSTEP_DPLL_XXX and PRCM_CM_SSC_MODFREQDIV_DPLL_XXX registers, as well as the enable field in the PRCM_CM_CLKMODE_DPLL_X

[PATCH v4 1/5] clk: ti: fix typo in routine description

2021-04-01 Thread Dario Binacchi
Replace _omap3_noncore_dpll_program with omap3_noncore_dpll_program. Signed-off-by: Dario Binacchi Reviewed-by: Stephen Boyd --- Changes in v4: - Add Stephen Boyd review tag. drivers/clk/ti/dpll3xxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/ti/dpll3xxx

[PATCH v4 0/5] clk: ti: add am33xx spread spectrum clock support

2021-04-01 Thread Dario Binacchi
As reported by the TI spruh73x/spruhl7x RM, MPU and LCD modules support spread spectrum clocking (SSC) on their output clocks. SSC is used to spread the spectral peaking of the clock to reduce any electromagnetic interference (EMI) that may be caused due to the clock’s fundamental or any of its har

Re: [PATCH v6 7/7] powercap/drivers/dtpm: Allow dtpm node device creation through configfs

2021-04-01 Thread Greg KH
On Thu, Apr 01, 2021 at 08:36:54PM +0200, Daniel Lezcano wrote: > The DTPM framework is built on top of the powercap framework as a new > controller to act on the power of the devices. The approach is to > provide an unified API to do power limitation on devices which are > capable of that with dif

Re: [PATCH 2/2] x86/sgx: Add sgx_nr_{all, free}_pages to the debugfs

2021-04-01 Thread Dave Hansen
On 3/31/21 10:21 PM, Jarkko Sakkinen wrote: > +#ifdef CONFIG_DEBUG_FS > + debugfs_create_file("sgx_nr_all_pages", 0400, arch_debugfs_dir, NULL, > + &sgx_nr_all_pages_fops); > + debugfs_create_file("sgx_nr_free_pages", 0400, arch_debugfs_dir, NULL, > +

Re: [PATCH] usb: isp1301-omap: Add missing gpiod_add_lookup_table function

2021-04-01 Thread Nick Desaulniers
On Thu, Apr 1, 2021 at 9:21 AM Maciej Falkowski wrote: > > The gpiod table was added without any usage making it unused > as reported by Clang compilation from omap1_defconfig on linux-next: > > arch/arm/mach-omap1/board-h2.c:347:34: warning: unused variable > 'isp1301_gpiod_table' [-Wunused-vari

[PATCH v4 1/3] sched/fair: Ignore percpu threads for imbalance pulls

2021-04-01 Thread Valentin Schneider
From: Lingutla Chandrasekhar During load balance, LBF_SOME_PINNED will bet set if any candidate task cannot be detached due to CPU affinity constraints. This can result in setting env->sd->parent->sgc->group_imbalance, which can lead to a group being classified as group_imbalanced (rather than an

[PATCH v4 2/3] sched/fair: Clean up active balance nr_balance_failed trickery

2021-04-01 Thread Valentin Schneider
When triggering an active load balance, sd->nr_balance_failed is set to such a value that any further can_migrate_task() using said sd will ignore the output of task_hot(). This behaviour makes sense, as active load balance intentionally preempts a rq's running task to migrate it right away, but t

[PATCH v4 0/3] sched/fair: load-balance vs capacity margins

2021-04-01 Thread Valentin Schneider
Hi folks, I split up the extra misfit patches from v3 as I'm still playing around with those following Vincent's comments. In the meantime, I believe the first few patches of the series can still be considered as standalone. o Patch 1 prevents pcpu kworkers from causing group_imbalanced o Patch 2

[PATCH v4 3/3] sched/fair: Introduce a CPU capacity comparison helper

2021-04-01 Thread Valentin Schneider
During load-balance, groups classified as group_misfit_task are filtered out if they do not pass group_smaller_max_cpu_capacity(, ); which itself employs fits_capacity() to compare the sgc->max_capacity of both groups. Due to the underlying margin, fits_capacity(X, 1024) will return false for

Re: [RFC] NUMA balancing: reduce TLB flush via delaying mapping on hint page fault

2021-04-01 Thread Nadav Amit
> On Apr 1, 2021, at 1:38 AM, Mel Gorman wrote: > > On Wed, Mar 31, 2021 at 09:36:04AM -0700, Nadav Amit wrote: >> >> >>> On Mar 31, 2021, at 6:16 AM, Mel Gorman wrote: >>> >>> On Wed, Mar 31, 2021 at 07:20:09PM +0800, Huang, Ying wrote: Mel Gorman writes: > On Mon, Mar 29,

Re: [PATCH v7 3/8] mm/rmap: Split try_to_munlock from try_to_unmap

2021-04-01 Thread Shakeel Butt
CC: Hugh Dickins On Wed, Mar 31, 2021 at 9:37 PM Alistair Popple wrote: > > On Wednesday, 31 March 2021 10:57:46 PM AEDT Jason Gunthorpe wrote: > > On Wed, Mar 31, 2021 at 03:15:47PM +1100, Alistair Popple wrote: > > > On Wednesday, 31 March 2021 2:56:38 PM AEDT John Hubbard wrote: > > > > On 3/3

Re: [PATCH v6 2/7] powercap/drivers/dtpm: Create a registering system

2021-04-01 Thread Greg KH
On Thu, Apr 01, 2021 at 08:36:49PM +0200, Daniel Lezcano wrote: > A SoC can be differently structured depending on the platform and the > kernel can not be aware of all the combinations, as well as the > specific tweaks for a particular board. > > The creation of the hierarchy must be delegated to

[git pull] drm fixes for 5.12-rc6

2021-04-01 Thread Dave Airlie
Hi Linus, Things have settled down in time for Easter, a random smattering of small fixes across a few drivers. I'm guessing though there might be some i915 and misc fixes out there I haven't gotten yet, but since today is a public holiday here, I'm sending this early so I can have the day off, I'

[PATCH] Where we are for this patch?

2021-04-01 Thread Roy Yang
Both Android and Chrome OS really want this feature; For Container-Optimized OS, we have customers interested in the defense too. Thank you very much. Change-Id: I1eb1b726007aa8f9c374b934cc1c690fb4924aa3 -- 2.31.0.208.g409f899ff0-goog

Re: [PATCH] ARM: Qualify enabling of swiotlb_init()

2021-04-01 Thread Florian Fainelli
On 4/1/21 10:33 AM, Konrad Rzeszutek Wilk wrote: > On Tue, Mar 30, 2021 at 07:36:07AM +0200, Christoph Hellwig wrote: >> On Mon, Mar 29, 2021 at 12:30:42PM -0700, Florian Fainelli wrote: >>> Should I toss this in Russell's patch tracker or do you need me to make >>> some changes to the patch? >> >>

Re: [syzbot] WARNING in mntput_no_expire (2)

2021-04-01 Thread Al Viro
On Thu, Apr 01, 2021 at 07:59:19PM +0200, Christian Brauner wrote: > I _think_ I see what the issue is. It seems that an assumption made in > this commit might be wrong and we're missing a mnt_add_count() bump that > we would otherwise have gotten if we've moved the failure handling into > the unl

Re: [PATCH v3 1/2] kunit: add a KUnit test for SLUB debugging functionality

2021-04-01 Thread Daniel Latypov
On Thu, Apr 1, 2021 at 2:16 AM 'Marco Elver' via KUnit Development wrote: > > [Note, if you'd like me to see future versions, please Cc me, otherwise > it's unlikely I see it in time. Also add kunit-...@googlegroups.com if > perhaps a KUnit dev should have another look, too.] > > On Wed, Mar 31, 2

Re: [PATCH] ARM: OMAP: Fix use of possibly uninitialized irq variable

2021-04-01 Thread Nick Desaulniers
On Thu, Apr 1, 2021 at 9:12 AM Maciej Falkowski wrote: > > The current control flow of IRQ number assignment to `irq` variable > allows a request of IRQ of unspecified value, > generating a warning under Clang compilation with omap1_defconfig on > linux-next: > > arch/arm/mach-omap1/pm.c:656:11:

Re: [PATCH 0/5] 4.14 backports of fixes for "CoW after fork() issue"

2021-04-01 Thread Linus Torvalds
On Thu, Apr 1, 2021 at 11:17 AM Suren Baghdasaryan wrote: > > We received a report that the copy-on-write issue repored by Jann Horn in > https://bugs.chromium.org/p/project-zero/issues/detail?id=2045 is still > reproducible on 4.14 and 4.19 kernels (the first issue with the reproducer > coded in

Re: [PATCH] ARM: OMAP1: ams-delta: remove unused function ams_delta_camera_power

2021-04-01 Thread Nick Desaulniers
On Thu, Apr 1, 2021 at 9:05 AM Maciej Falkowski wrote: > > The ams_delta_camera_power() function is unused as reports > Clang compilation with omap1_defconfig on linux-next: > > arch/arm/mach-omap1/board-ams-delta.c:462:12: warning: unused function > 'ams_delta_camera_power' [-Wunused-function] >

[PATCH] drm/msm: Drop mm_lock in scan loop

2021-04-01 Thread Rob Clark
From: Rob Clark lock_stat + mmm_donut[1] say that this reduces contention on mm_lock significantly (~350x lower waittime-max, and ~100x lower waittime-avg) [1] https://chromium.googlesource.com/chromiumos/platform/microbenchmarks/+/refs/heads/main/mmm_donut.py Signed-off-by: Rob Clark --- dr

[PATCH v6 6/7] powercap/drivers/dtpm: Export the symbols for the modules

2021-04-01 Thread Daniel Lezcano
The DTPM framework provides a generic API to register devices which power capable. The devices may be compiled as modules while the framework is not. Export the necessary API to let the drivers register themselves. Signed-off-by: Daniel Lezcano --- drivers/powercap/dtpm.c | 4 1 file chang

[PATCH v6 7/7] powercap/drivers/dtpm: Allow dtpm node device creation through configfs

2021-04-01 Thread Daniel Lezcano
The DTPM framework is built on top of the powercap framework as a new controller to act on the power of the devices. The approach is to provide an unified API to do power limitation on devices which are capable of that with different techniques. In addition, the DTPM framework allows to create a h

[PATCH v6 5/7] powercap/drivers/dtpm: Scale the power with the load

2021-04-01 Thread Daniel Lezcano
Currently the power consumption is based on the current OPP power assuming the entire performance domain is fully loaded. That gives very gross power estimation and we can do much better by using the load to scale the power consumption. Use the utilization to normalize and scale the power usage o

[PATCH v4] userfaultfd/shmem: fix MCOPY_ATOMIC_CONTINUE behavior

2021-04-01 Thread Axel Rasmussen
Previously, the continue implementation in shmem_mcopy_atomic_pte was incorrect for two main reasons: - It didn't correctly skip some sections of code which make sense for newly allocated pages, but absolutely don't make sense for pre-existing page cache pages. - Because shmem_mcopy_continue_

[PATCH v6 3/7] powercap/drivers/dtpm: Simplify the dtpm table

2021-04-01 Thread Daniel Lezcano
The dtpm table is an array of pointers, that forces the user of the table to define initdata along with the declaration of the table entry. It is more efficient to create an array of dtpm structure, so the declaration of the table entry can be done by initializing the different fields. Signed-off-

[PATCH v6 4/7] powercap/drivers/dtpm: Use container_of instead of a private data field

2021-04-01 Thread Daniel Lezcano
The dtpm framework provides an API to allocate a dtpm node. However when a backend dtpm driver needs to allocate a dtpm node it must define its own structure and store the pointer of this structure in the private field of the dtpm structure. It is more elegant to use the container_of macro and add

[PATCH v6 1/7] powercap/drivers/dtpm: Encapsulate even more the code

2021-04-01 Thread Daniel Lezcano
In order to increase the self-encapsulation of the dtpm generic code, the following changes are adding a power update ops to the dtpm ops. That allows the generic code to call directly the dtpm backend function to update the power values. The power update function does compute the power characteri

[PATCH v6 2/7] powercap/drivers/dtpm: Create a registering system

2021-04-01 Thread Daniel Lezcano
A SoC can be differently structured depending on the platform and the kernel can not be aware of all the combinations, as well as the specific tweaks for a particular board. The creation of the hierarchy must be delegated to userspace. These changes provide a registering mechanism where the diffe

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