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

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

Re: [PATCH] scripts: LOL what a patch! change Linus to Linux

2021-01-21 Thread Randy Dunlap
On 1/21/21 6:30 AM, Bhaskar Chowdhury wrote: > s/Linus/Linux/ > > ...how dare I?? :) > > Signed-off-by: Bhaskar Chowdhury Hi, You missed a second occurrence of that a few lines later. However, it is correct as is. It means the kernel tree that Linus maintains -- sometimes known as mainline.

Re: [PATCH] diffconfig: use python3 instead of python in Shebang line

2021-01-21 Thread Scott Branden
Hi Andy, On 2021-01-21 12:35 p.m., Andy Shevchenko wrote: > On Thu, Jan 21, 2021 at 10:31 PM Andy Shevchenko > wrote: >> On Thu, Jan 21, 2021 at 10:28 PM Masahiro Yamada >> wrote: >>> On Fri, Jan 22, 2021 at 2:17 AM Scott Branden >>> wrote: Use python3 instead of python in diffconfig

Re: [PATCH v3 03/21] dt-bindings: pinctrl: Add Allwinner H616 compatible strings

2021-01-21 Thread Linus Walleij
On Mon, Jan 18, 2021 at 3:09 AM Andre Przywara wrote: > A new SoC, a new compatible string. > Also we were too miserly with just allowing seven interrupt banks. > > Signed-off-by: Andre Przywara Patch applied to the pinctrl tree. Yours, Linus Walleij

Re: [PATCH 1/6] tty: implement write_iter

2021-01-21 Thread Linus Torvalds
On Thu, Jan 21, 2021 at 11:43 AM Greg Kroah-Hartman wrote: > > This works, thanks for these. I'll wait for Jiri to review them before > applying them to my branches... Let's hope Jiri sees them, since he had some email issue earlier.. I'll add his suse address here too. Linus

Re: [PATCH v2 6/7] platform: x86: Add intel_skl_int3472 driver

2021-01-21 Thread Daniel Scally
Hi both On 20/01/2021 11:44, Andy Shevchenko wrote: > On Wed, Jan 20, 2021 at 06:18:53AM +0200, Laurent Pinchart wrote: >> On Tue, Jan 19, 2021 at 07:43:15PM +0200, Andy Shevchenko wrote: >>> On Tue, Jan 19, 2021 at 06:36:31PM +0200, Laurent Pinchart wrote: On Tue, Jan 19, 2021 at 11:33:58AM

Re: [PATCH v4] x86/mce: Avoid infinite loop for copy from user recovery

2021-01-21 Thread Luck, Tony
On Wed, Jan 20, 2021 at 01:18:12PM +0100, Borislav Petkov wrote: > On Tue, Jan 19, 2021 at 03:57:59PM -0800, Luck, Tony wrote: > > But the real validation folks took my patch and found that it has > > destabilized cases 1 & 2 (and case 3 also chokes if you repeat a few > > more times). System

[PATCH v1 2/2] isa: Make the remove callback for isa drivers return void

2021-01-21 Thread Uwe Kleine-König
The driver core ignores the return value of the remove callback, so don't give isa drivers the chance to provide a value. Adapt all isa_drivers with a remove callbacks accordingly; they all return 0 unconditionally anyhow. Signed-off-by: Uwe Kleine-König --- drivers/base/isa.c

[PATCH v1 0/2] isa: Make the remove callback for isa drivers return void

2021-01-21 Thread Uwe Kleine-König
Hello, as described in the commit log of the 2nd patch returning an error code from a bus' remove callback doesn't make any difference as the driver core ignores it and still considers the device removed. So change the remove callback to return void to not give driver authors an incentive to

[PATCH v1 1/2] watchdog: pcwd: drop always-false if from remove callback

2021-01-21 Thread Uwe Kleine-König
If pcwd_isa_probe() succeeded pcwd_private.io_addr cannot be NULL. (And if pcwd_isa_probe() failed, pcwd_isa_remove() isn't called.) Signed-off-by: Uwe Kleine-König --- drivers/watchdog/pcwd.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/watchdog/pcwd.c

linux-next: Fixes tag needs some work in the jc_docs tree

2021-01-21 Thread Stephen Rothwell
Hi all, In commit cf9cadf16b19 ("docs/admin-guide: cgroup-v2: typos and spaces") Fixes tag Fixes: 5f9a4f4a70960 has these problem(s): - missing subject Maybe you meant Fixes: 5f9a4f4a7096 ("mm: memcontrol: add the missing numa_stat interface for cgroup v2") -- Cheers, Stephen

Re: [PATCH v2 2/7] acpi: utils: Add function to fetch dependent acpi_devices

2021-01-21 Thread Daniel Scally
On 21/01/2021 18:08, Rafael J. Wysocki wrote: > On Thu, Jan 21, 2021 at 5:34 PM Daniel Scally wrote: >> >> On 21/01/2021 14:39, Rafael J. Wysocki wrote: >>> On Thu, Jan 21, 2021 at 1:04 PM Daniel Scally wrote: On 21/01/2021 11:58, Rafael J. Wysocki wrote: > On Thu, Jan 21, 2021 at

Re: [PATCH V2] opp: Prepare for ->set_opp() helper to work without regulators

2021-01-21 Thread Dmitry Osipenko
21.01.2021 14:30, Viresh Kumar пишет: > @@ -1952,9 +1930,16 @@ void dev_pm_opp_put_regulators(struct opp_table > *opp_table) > for (i = opp_table->regulator_count - 1; i >= 0; i--) > regulator_put(opp_table->regulators[i]); > > - _free_set_opp_data(opp_table); > +

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

2021-01-21 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).

[PATCH v27 08/12] landlock: Add syscall implementations

2021-01-21 Thread Mickaël Salaün
From: Mickaël Salaün These 3 system calls are designed to be used by unprivileged processes to sandbox themselves: * landlock_create_ruleset(2): Creates a ruleset and returns its file descriptor. * landlock_add_rule(2): Adds a rule (e.g. file hierarchy access) to a ruleset, identified by the

[PATCH v27 11/12] samples/landlock: Add a sandbox manager example

2021-01-21 Thread Mickaël Salaün
From: Mickaël Salaün Add a basic sandbox tool to launch a command which can only access a list of file hierarchies in a read-only or read-write way. Cc: James Morris Cc: Kees Cook Cc: Serge E. Hallyn Signed-off-by: Mickaël Salaün Reviewed-by: Jann Horn --- Changes since v25: * Improve

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

2021-01-21 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

[PATCH v27 09/12] arch: Wire up Landlock syscalls

2021-01-21 Thread Mickaël Salaün
From: Mickaël Salaün Wire up the following system calls for all architectures: * landlock_create_ruleset(2) * landlock_add_rule(2) * landlock_enforce_ruleset_self(2) Cc: Arnd Bergmann Cc: James Morris Cc: Jann Horn Cc: Kees Cook Cc: Serge E. Hallyn Signed-off-by: Mickaël Salaün ---

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

2021-01-21 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

[PATCH v27 00/12] Landlock LSM

2021-01-21 Thread Mickaël Salaün
Hi, This patch series adjusts the semantic of file hierarchy access-control per layer to get a more pragmatic and compatible approach. I updated the documentation to explain how layers, bind mounts and overlayfs are handled by Landlock. A syscall is also renamed to make it less ambiguous for

Re: [PATCH 4/4] vfio-pci/zdev: Introduce the zPCI I/O vfio region

2021-01-21 Thread Alex Williamson
On Wed, 20 Jan 2021 14:21:59 +0100 Niklas Schnelle wrote: > On 1/19/21 9:02 PM, Matthew Rosato wrote: > > Some s390 PCI devices (e.g. ISM) perform I/O operations that have very > .. snip ... > > + > > +static size_t vfio_pci_zdev_io_rw(struct vfio_pci_device *vdev, > > +

Re: [ANNOUNCE] v5.11-rc4-rt1

2021-01-21 Thread Pavel Machek
Hi! > I'm pleased to announce the v5.11-rc4-rt1 patch set. > > Changes since v5.10.8-rt24: > > - Updated to v5.11-rc4 > > Known issues > - kdb/kgdb can easily deadlock. > - kmsg dumpers expecting not to be called in parallel can clobber >their temp buffer. > -

Re: [RESEND PATCH v3 0/2] ata: ahci_brcm: Fix use of BCM7216 reset controller

2021-01-21 Thread Florian Fainelli
On 1/14/2021 12:46 PM, Florian Fainelli wrote: > On 1/5/21 1:22 PM, Florian Fainelli wrote: >> On 12/23/20 4:05 PM, Florian Fainelli wrote: >>> >>> >>> On 12/16/2020 1:41 PM, Jim Quinlan wrote: v3 -- discard commit from v2; instead rely on the new function reset_control_rearm

Re: [PATCH] ata: ahci_brcm: Add back regulators management

2021-01-21 Thread Florian Fainelli
On 1/14/2021 12:46 PM, Florian Fainelli wrote: > On 12/23/20 2:41 PM, Florian Fainelli wrote: >> While reworking the resources management and departing from using >> ahci_platform_enable_resources() which did not allow a proper step >> separation like we need, we unfortunately lost the ability

Re: [PATCH] diffconfig: use python3 instead of python in Shebang line

2021-01-21 Thread Scott Branden
Hi Masahiro, On 2021-01-21 12:25 p.m., Masahiro Yamada wrote: > On Fri, Jan 22, 2021 at 2:17 AM Scott Branden > wrote: >> Use python3 instead of python in diffconfig Shebang line. >> python2 was sunset January 1, 2000 and environments do not need >> to support python any more. >> >> Fixes:

Re: [PATCH v17 08/26] x86/mm: Introduce _PAGE_COW

2021-01-21 Thread Yu, Yu-cheng
On 1/21/2021 12:26 PM, Dave Hansen wrote: Usually, the compiler is better at making code efficient than humans. I find that coding it in the most human-readable way is best unless I *know* the compiler is unable to generate god code. "good code", even. I really want a "god code" compiler,

[PATCH net v2 0/2] fix and move definitions of MRP data structures

2021-01-21 Thread Rasmus Villemoes
v2: update commit log of the patch to include comments on 32 bit alignment; include second patch moving the structs out of uapi. Rasmus Villemoes (2): net: mrp: fix definitions of MRP test packets net: mrp: move struct definitions out of uapi include/uapi/linux/mrp_bridge.h | 86

Re: [PATCH v17 08/26] x86/mm: Introduce _PAGE_COW

2021-01-21 Thread Borislav Petkov
On Thu, Jan 21, 2021 at 12:16:23PM -0800, Yu, Yu-cheng wrote: > It clears _PAGE_DIRTY and sets _PAGE_COW. That is, > > if (pte.pte & _PAGE_DIRTY) { > pte.pte &= ~_PAGE_DIRTY; > pte.pte |= _PAGE_COW; > } > > So, shifting makes resulting code more efficient. Efficient for what? Is

[PATCH net v2 1/2] net: mrp: fix definitions of MRP test packets

2021-01-21 Thread Rasmus Villemoes
Wireshark says that the MRP test packets cannot be decoded - and the reason for that is that there's a two-byte hole filled with garbage between the "transitions" and "timestamp" members. So Wireshark decodes the two garbage bytes and the top two bytes of the timestamp written by the kernel as

[PATCH net v2 2/2] net: mrp: move struct definitions out of uapi

2021-01-21 Thread Rasmus Villemoes
None of these are actually used in the kernel/userspace interface - there's a userspace component of implementing MRP, and userspace will need to construct certain frames to put on the wire, but there's no reason the kernel should provide the relevant definitions in a UAPI header. In fact, most

Re: [PATCH -V9 2/3] NOT kernel/man2/set_mempolicy.2: Add mode flag MPOL_F_NUMA_BALANCING

2021-01-21 Thread Alejandro Colomar (man-pages)
Hi Huang Ying, On 1/20/21 7:12 AM, Huang Ying wrote: > Signed-off-by: "Huang, Ying" > Cc: "Alejandro Colomar" Sorry, for the confusion. I have a different email for reading lists. I use alx.manpages@ for everything, and alx.mailinglists@ just for reading lists, but sometimes, when I answer

Re: [PATCH 2/6] bitmap: move some macros from linux/bitmap.h to linux/bitops.h

2021-01-21 Thread Yury Norov
On Thu, Jan 21, 2021 at 2:18 AM Andy Shevchenko wrote: > > On Wed, Jan 20, 2021 at 04:06:26PM -0800, Yury Norov wrote: > > In the following patches of the series they are used by > > find_bit subsystem. > > s/subsystem/API/ > > ... > > > --- a/include/linux/bitops.h > > +++

Re: [PATCH v1] trace: Fix race in trace_open and buffer resize call

2021-01-21 Thread Steven Rostedt
On Thu, 21 Jan 2021 23:15:22 +0300 Denis Efremov wrote: > On 1/21/21 10:09 PM, Steven Rostedt wrote: > > On Thu, 21 Jan 2021 17:30:40 +0300 > > Denis Efremov wrote: > > > >> Hi, > >> > >> This patch (CVE-2020-27825) was tagged with > >> Fixes: b23d7a5f4a07a ("ring-buffer: speed up buffer

linux-next: Fixes tag needs some work in the qcom tree

2021-01-21 Thread Stephen Rothwell
Hi all, In commit d4863ef399a2 ("arm64: dts: qcom: sdm845-db845c: Fix reset-pin of ov8856 node") Fixes tag Fixes: d4919a44564b ("arm64: dts: qcom: sdm845-db845c: Add ov8856 & ov7251 has these problem(s): - Subject has leading but no trailing parentheses - Subject has leading but no

[PATCH 15/29] csky: Fixup update_mmu_cache called with user io mapping

2021-01-21 Thread guoren
From: Guo Ren The function update_mmu_cache could be called by user-io mapping. There is no space of struct page in mem_map for the pte. Just ignore the user-io mmaping in update_mmu_cache. Signed-off-by: Guo Ren --- arch/csky/abiv2/cacheflush.c | 3 +++ 1 file changed, 3 insertions(+) diff

Re: [tip: x86/entry] x86/entry: Build thunk_$(BITS) only if CONFIG_PREEMPTION=y

2021-01-21 Thread Ingo Molnar
* tip-bot2 for Andrea Righi wrote: > The following commit has been merged into the x86/entry branch of tip: > > Commit-ID: e6d92b6680371ae1aeeb6c5eb2387fdc5d9a2c89 > Gitweb: > https://git.kernel.org/tip/e6d92b6680371ae1aeeb6c5eb2387fdc5d9a2c89 > Author:Andrea Righi >

Re: [PATCH 0/2] irqchip: Remove obsolete drivers

2021-01-21 Thread Marc Zyngier
On Wed, 20 Jan 2021 14:30:06 +0100, Arnd Bergmann wrote: > A few Arm platforms are getting removed in v5.12, this removes > the corresponding irqchip drivers. > > Link: > https://lore.kernel.org/linux-arm-kernel/20210120124812.2800027-1-a...@kernel.org/T/ > > > Arnd Bergmann (2): > irqchip:

Re: [PATCH v5 00/10] sunxi: Support IRQ wakeup from deep sleep

2021-01-21 Thread Marc Zyngier
On Sun, 17 Jan 2021 23:50:30 -0600, Samuel Holland wrote: > Allwinner sun6i/sun8i/sun50i SoCs (A31 and newer) have two interrupt > controllers: GIC and R_INTC. GIC does not support wakeup. R_INTC handles > the external NMI pin, and provides 32+ IRQs to the ARISC. The first 16 > of these correspond

Re: [PATCH] diffconfig: use python3 instead of python in Shebang line

2021-01-21 Thread Andy Shevchenko
On Thu, Jan 21, 2021 at 10:31 PM Andy Shevchenko wrote: > > On Thu, Jan 21, 2021 at 10:28 PM Masahiro Yamada wrote: > > > > On Fri, Jan 22, 2021 at 2:17 AM Scott Branden > > wrote: > > > > > > Use python3 instead of python in diffconfig Shebang line. > > > python2 was sunset January 1, 2000 and

[PATCH RESEND] pinctrl: mediatek: Fix trigger type setting follow for unexpected interrupt

2021-01-21 Thread Hailong Fan
When flipping the polarity will be generated interrupt under certain circumstances, but GPIO external signal has not changed. Then, mask the interrupt before polarity setting, and clear the unexpected interrupt after trigger type setting completed. Signed-off-by: Hailong Fan --- Resend since

Re: [PATCH v3] mhi: use irq_flags if controller driver configures it

2021-01-21 Thread Manivannan Sadhasivam
On Wed, Jan 13, 2021 at 09:40:19AM +0200, Kalle Valo wrote: > Manivannan Sadhasivam writes: > > > On Mon, Jan 04, 2021 at 06:11:28PM +0800, Carl Huang wrote: > >> If controller driver has specified the irq_flags, mhi uses this specified > >> irq_flags. Otherwise, mhi uses default irq_flags. > >>

[PATCH 09/29] csky: Fixup PTE global for 2.5:1.5 virtual memory

2021-01-21 Thread guoren
From: Guo Ren Fixup commit c2d1adfa9a24 "csky: Add memory layout 2.5G(user):1.5G (kernel)". That patch broke the global bit in PTE. C-SKY TLB's entry contain two pages: vpn, vpn + 1 -> ppn0, ppn1 All PPN's attributes contain global bit and final global is PPN0.G & PPN1.G. So we must keep

[PATCH v2 4/6] touchscreen/wacom_i2c: Clean up the query device fields

2021-01-21 Thread Alistair Francis
Improve the query device fields to be more verbose. Signed-off-by: Alistair Francis --- drivers/input/touchscreen/wacom_i2c.c | 73 +++ 1 file changed, 52 insertions(+), 21 deletions(-) diff --git a/drivers/input/touchscreen/wacom_i2c.c

module loader dead code removal and cleanusp

2021-01-21 Thread Christoph Hellwig
Hi all, this series removes support for long term unused export types and cleans up various loose ends in the module loader. Diffstat: arch/arm/configs/bcm2835_defconfig |1 arch/arm/configs/mxs_defconfig |1 arch/mips/configs/nlm_xlp_defconfig |1

[PATCH] media: pwc: Fix the URB buffer allocation

2021-01-21 Thread Takashi Iwai
The URB buffer allocation of pwc driver involves with the dma_map_single(), and it needs to pass the right device. Currently it passes usb_device.dev, but it's no real device that manages the DMA. Since the passed device has no DMA mask set up, now the pwc driver hits the WARN_ON_ONCE() check in

Re: [PATCH] perf metricgroup: Fix system PMU metrics

2021-01-21 Thread Arnaldo Carvalho de Melo
Em Wed, Jan 20, 2021 at 09:15:54AM +, John Garry escreveu: > On 20/01/2021 05:15, Joakim Zhang wrote: > > For this patch: Tested-by: Joakim Zhang > > Hi John, Jolsa, > > Is there any way to avoid breaking exist metric expressions? If not, it > > will always happened after metricgroup

Re: [PATCH] regulator: core: avoid regulator_resolve_supply() race condition

2021-01-21 Thread Marek Szyprowski
Hi Mark, On 21.01.2021 16:44, Mark Brown wrote: > On Thu, Jan 21, 2021 at 10:41:59AM +0100, Marek Szyprowski wrote: >> On 18.01.2021 21:49, Mark Brown wrote: >>> Does this help (completely untested): >> Sadly nope. I get same warning: > Try this instead: > > diff --git a/drivers/regulator/core.c

Re: [PATCH] diffconfig: use python3 instead of python in Shebang line

2021-01-21 Thread Andy Shevchenko
On Thu, Jan 21, 2021 at 10:28 PM Masahiro Yamada wrote: > > On Fri, Jan 22, 2021 at 2:17 AM Scott Branden > wrote: > > > > Use python3 instead of python in diffconfig Shebang line. > > python2 was sunset January 1, 2000 and environments do not need > > to support python any more. > Just from

Re: [PATCH v3 00/12] OPP API fixes and improvements

2021-01-21 Thread Dmitry Osipenko
21.01.2021 10:51, Viresh Kumar пишет: > On 20-01-21, 18:41, Dmitry Osipenko wrote: >> 19.01.2021 20:35, Dmitry Osipenko пишет: >>> 18.01.2021 14:46, Viresh Kumar пишет: On 18-01-21, 03:55, Dmitry Osipenko wrote: > Hi, > > This series fixes problems and adds features to OPP API

Re: [PATCH 04/24] kvm: x86/mmu: change TDP MMU yield function returns to match cond_resched

2021-01-21 Thread Paolo Bonzini
On 20/01/21 19:38, Sean Christopherson wrote: Currently the TDP MMU yield / cond_resched functions either return nothing or return true if the TLBs were not flushed. These are confusing semantics, especially when making control flow decisions in calling functions. To clean things up, change

Re: [PATCH] rcu: Release per-cpu krcp page cache when CPU going offline

2021-01-21 Thread Uladzislau Rezki
Hello, Qiang, > On Thu, Jan 21, 2021 at 02:49:49PM +0800, qiang.zh...@windriver.com wrote: > > From: Zqiang > > > > If CPUs go offline, the corresponding krcp's page cache can > > not be use util the CPU come back online, or maybe the CPU > > will never go online again, this commit therefore

Re: [PATCH 07/13] opp: Allow _generic_set_opp_clk_only() to work for non-freq devices

2021-01-21 Thread Dmitry Osipenko
21.01.2021 14:17, Viresh Kumar пишет: > In order to avoid conditional statements at the caller site, this patch > updates _generic_set_opp_clk_only() to work for devices that don't > change frequency (like power domains, etc.). Return 0 if the clk pointer > passed to this routine is not valid. >

Re: [PATCH v17 08/26] x86/mm: Introduce _PAGE_COW

2021-01-21 Thread Dave Hansen
> Usually, the compiler is better at making code efficient than humans. I > find that coding it in the most human-readable way is best unless I > *know* the compiler is unable to generate god code. "good code", even. I really want a "god code" compiler, though. :)

Re: [PATCH] diffconfig: use python3 instead of python in Shebang line

2021-01-21 Thread Masahiro Yamada
On Fri, Jan 22, 2021 at 2:17 AM Scott Branden wrote: > > Use python3 instead of python in diffconfig Shebang line. > python2 was sunset January 1, 2000 and environments do not need > to support python any more. > > Fixes: b24413180f56 ("tweewide: Fix most Shebang lines") > Signed-off-by: Scott

Trying to get Sound Blaster Extigy to work under Kbuntu 20.10 kernel 5.8.0-38

2021-01-21 Thread Łukasz Czuja
Hi, I don't know if its best place to ask for a little help in what I think are errors in linux audio driver, however I thought I ask for some assistance. I found a very old Creative Sound Blaster Extigy device and connected it to my Acer Aspire e5-571g laptop. I was hopeful it would give

Re: [PATCH v2] perf script: Fix overrun issue for dynamically-allocated pmu type number

2021-01-21 Thread Arnaldo Carvalho de Melo
Em Wed, Jan 20, 2021 at 10:50:04PM +0100, Jiri Olsa escreveu: > On Wed, Dec 09, 2020 at 08:58:28AM +0800, Jin Yao wrote: > > After: > > swapper 0 [000] 1397040.402011: 272384 > > cpu-clock: 9d4ddb6f cpuidle_enter_state+0xdf ([kernel.kallsyms]) > >

Re: [PATCH v17 08/26] x86/mm: Introduce _PAGE_COW

2021-01-21 Thread Dave Hansen
On 1/21/21 12:16 PM, Yu, Yu-cheng wrote: > >>> @@ -343,6 +349,16 @@ static inline pte_t pte_mkold(pte_t pte) >>>     static inline pte_t pte_wrprotect(pte_t pte) >>>   { >>> +    /* >>> + * Blindly clearing _PAGE_RW might accidentally create >>> + * a shadow stack PTE (RW=0, Dirty=1). 

[PATCH 01/13] powerpc/powernv: remove get_cxl_module

2021-01-21 Thread Christoph Hellwig
The static inline get_cxl_module function is entirely unused, remove it. Signed-off-by: Christoph Hellwig --- arch/powerpc/platforms/powernv/pci-cxl.c | 22 -- 1 file changed, 22 deletions(-) diff --git a/arch/powerpc/platforms/powernv/pci-cxl.c

[PATCH 02/13] module: add a module_loaded helper

2021-01-21 Thread Christoph Hellwig
Add a helper that takes modules_mutex and uses find_module to check if a given module is loaded. This provides a better abstraction for the two callers, and allows to unexport modules_mutex and find_module. Signed-off-by: Christoph Hellwig --- drivers/gpu/drm/drm_fb_helper.c | 7 +--

Re: [PATCH v17 08/26] x86/mm: Introduce _PAGE_COW

2021-01-21 Thread Yu, Yu-cheng
On 1/21/2021 10:44 AM, Borislav Petkov wrote: On Tue, Dec 29, 2020 at 01:30:35PM -0800, Yu-cheng Yu wrote: [...] @@ -343,6 +349,16 @@ static inline pte_t pte_mkold(pte_t pte) static inline pte_t pte_wrprotect(pte_t pte) { + /* +* Blindly clearing _PAGE_RW might

Re: [PATCH 15/24] kvm: mmu: Wrap mmu_lock cond_resched and needbreak

2021-01-21 Thread Paolo Bonzini
On 21/01/21 01:19, Sean Christopherson wrote: IMO, moving the lock to arch-specific code is bad for KVM. The architectures' MMUs already diverge pretty horribly, and once things diverge it's really hard to go the other direction. And this change, along with all of the wrappers, thrash a lot of

Re: [PATCH net 1/4] net: dsa: mv88e6xxx: Remove bogus Kconfig dependency.

2021-01-21 Thread Brandon Streiff
On 1/20/2021 10:06 PM, Richard Cochran wrote: The mv88e6xxx is a DSA driver, and it implements DSA style time stamping of PTP frames. It has no need of the expensive option to enable PHY time stamping. Remove the bogus dependency. Signed-off-by: Richard Cochran Fixes: 2fa8d3af4bad ("net:

Re: [PATCH] hugetlbfs: make hugepage size conversion more readable

2021-01-21 Thread Mike Kravetz
On 1/20/21 1:23 AM, Miaohe Lin wrote: > The calculation 1U << (h->order + PAGE_SHIFT - 10) is actually equal to > (PAGE_SHIFT << (h->order)) >> 10. So we can make it more readable by > replace it with huge_page_size(h) / SZ_1K. > > Signed-off-by: Miaohe Lin > --- > fs/hugetlbfs/inode.c | 4 ++--

Re: [PATCH 0/9] tools/nolibc: fix build issues on aarch64 after unistd cleanup

2021-01-21 Thread Willy Tarreau
On Thu, Jan 21, 2021 at 11:54:32AM -0800, Paul E. McKenney wrote: > > > It would be great if this could be applied soon so that it's possible to > > > use the rcutorture scripts without applying local hacks. > > > > Makes sense. I was wondering, should we mark them for stable ? I don't > > know

[net-next PATCH 1/7] octeontx2-af: forward error correction configuration

2021-01-21 Thread Hariprasad Kelam
From: Christina Jacob CGX block supports forward error correction modes baseR and RS. This patch adds support to set encoding mode and to read corrected/uncorrected block counters Adds new mailbox handlers set_fec to configure encoding modes and fec_stats to read counters and also increase mbox

Re: [PATCH] lightnvm: fix memory leak when submit fails

2021-01-21 Thread Matias Bjørling
On 21/01/2021 20.49, Heiner Litz wrote: there are a couple more, but again I would understand if those are deemed not important enough to keep it. device emulation of (non-ZNS) SSD block device That'll soon be available. We will be open-sourcing a new device mapper (dm-zap), which implements

Re: [PATCH v1] trace: Fix race in trace_open and buffer resize call

2021-01-21 Thread Denis Efremov
On 1/21/21 10:09 PM, Steven Rostedt wrote: > On Thu, 21 Jan 2021 17:30:40 +0300 > Denis Efremov wrote: > >> Hi, >> >> This patch (CVE-2020-27825) was tagged with >> Fixes: b23d7a5f4a07a ("ring-buffer: speed up buffer resets by avoiding >> synchronize_rcu for each CPU") >> >> I'm not an

[net-next PATCH 4/7] octeontx2-af: Physical link configuration support

2021-01-21 Thread Hariprasad Kelam
From: Christina Jacob CGX LMAC, the physical interface support link configuration parameters like speed, auto negotiation, duplex etc. Firmware saves these into memory region shared between firmware and this driver. This patch adds mailbox handler set_link_mode, fw_data_get to configure and

[PATCH v2 3/6] touchscreen/wacom_i2c: Add support for distance and tilt x/y

2021-01-21 Thread Alistair Francis
This is based on the out of tree rM2 driver. Signed-off-by: Alistair Francis --- drivers/input/touchscreen/wacom_i2c.c | 25 +++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/wacom_i2c.c b/drivers/input/touchscreen/wacom_i2c.c

Re: [PATCH 2/2] Documentation: arm: marvell: Add link to public Armada 37xx Hardware Spec

2021-01-21 Thread Andrew Lunn
On Thu, Jan 21, 2021 at 08:34:18PM +0100, Pali Rohár wrote: > Signed-off-by: Pali Rohár Reviewed-by: Andrew Lunn Andrew

[net-next PATCH 6/7] octeontx2-pf: ethtool physical link status

2021-01-21 Thread Hariprasad Kelam
From: Christina Jacob Register get_link_ksettings callback to get link status information from the driver. As virtual function (vf) shares same physical link same API is used for both the drivers and for loop back drivers simply returns the fixed values as its does not have physical link.

[PATCH 04/13] livepatch: move klp_find_object_module to module.c

2021-01-21 Thread Christoph Hellwig
To uncouple the livepatch code from module loader internals move a slightly refactored version of klp_find_object_module to module.c This allows to mark find_module static and removes one of the last users of module_mutex outside of module.c. Signed-off-by: Christoph Hellwig ---

Re: [PATCH 1/2] Documentation: arm: Fix marvell file name

2021-01-21 Thread Andrew Lunn
On Thu, Jan 21, 2021 at 08:34:17PM +0100, Pali Rohár wrote: > Signed-off-by: Pali Rohár Fixes: dc7a12bdfccd ("docs: arm: convert docs to ReST and rename to *.rst") Reviewed-by: Andrew Lunn Andrew

Re: [PATCH net-next 0/2] Add devlink health reporters for NIX block

2021-01-21 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (refs/heads/master): On Tue, 19 Jan 2021 15:31:18 +0530 you wrote: > Devlink health reporters are added for the NIX block. > > Address Jakub's comment to add devlink support for error reporting. >

Re: [RFC][PATCH 00/25] Network fs helper library & fscache kiocb API

2021-01-21 Thread David Howells
J. Bruce Fields wrote: > > J. Bruce Fields wrote: > > > > > > Fixing this requires a much bigger overhaul of cachefiles than this > > > > patchset > > > > performs. > > > > > > That sounds like "sometimes you may get file corruption and there's > > > nothing you can do about it". But I know

Re: [PATCH] ARM: brcmstb: Add debug UART entry for 72116

2021-01-21 Thread Florian Fainelli
On 1/20/2021 12:01 PM, Florian Fainelli wrote: > 72116 has the same memory map as 7255 and the same physical address for > the UART, alias the definition accordingly. > > Signed-off-by: Florian Fainelli Applied to soc/next, thanks! -- Florian

[PATCH 05/13] kallsyms: refactor {,module_}kallsyms_on_each_symbol

2021-01-21 Thread Christoph Hellwig
Require an explicit cll to module_kallsyms_on_each_symbol to look for symbols in modules instead of the call from kallsyms_on_each_symbol, and acquire module_mutex inside of module_kallsyms_on_each_symbol instead of leaving that up to the caller. Signed-off-by: Christoph Hellwig ---

Re: [PATCH] ACPI/IORT: Do not blindly trust DMA masks from firmware

2021-01-21 Thread Robin Murphy
On 2021-01-21 19:16, Moritz Fischer wrote: Address issue observed on real world system with suboptimal IORT table where DMA masks of PCI devices would get set to 0 as result. iort_dma_setup() would query the root complex' IORT entry for a DMA mask, and use that over the one the device has been

Re: [PATCH v2 2/5] hugetlb: convert page_huge_active() HPageMigratable flag

2021-01-21 Thread Oscar Salvador
On Wed, Jan 20, 2021 at 01:48:05PM -0800, Mike Kravetz wrote: > >> This comment addresses both this patch and the next one. > >> > >> Instead of putting the SetHPageMigratable flag spread over the > >> allocation paths, would it make more sense to place it in > >> alloc_huge_page before returning

Re: linux-next: Tree for Jan 21 (mmc/host/sdhci-of-aspeed-test.c)

2021-01-21 Thread Randy Dunlap
On 1/20/21 11:28 PM, Stephen Rothwell wrote: > Hi all, > > Changes since 20210120: > Hi, I suppose that I have some config combo that has not been tested. on i386: CONFIG_MMC_SDHCI_OF_ASPEED=m CONFIG_MMC_SDHCI_OF_ASPEED_TEST=y Full randconfig file is attached. In file included from

Re: [PATCH v7 0/6] Intel MAX10 BMC Secure Update Driver

2021-01-21 Thread Russ Weight
On 1/19/21 12:49 PM, Tom Rix wrote: > On 1/5/21 3:08 PM, Russ Weight wrote: > > ... > >> .../testing/sysfs-driver-intel-m10-bmc-secure | 61 ++ >> MAINTAINERS | 2 + >> drivers/fpga/Kconfig | 11 + >> drivers/fpga/Makefile

Re: [PATCH] arch/Kconfig: update a broken file reference

2021-01-21 Thread Jonathan Corbet
On Tue, 19 Jan 2021 10:53:26 +0100 Lukas Bulwahn wrote: > Commit adab66b71abf ("Revert: "ring-buffer: Remove > HAVE_64BIT_ALIGNED_ACCESS"") > added the config HAVE_64BIT_ALIGNED_ACCESS back into arch/Kconfig with this > revert. In the meantime, commit c9b54d6f362c ("docs: move other kAPI >

Re: [PATCH] swap: Check nrexceptional of swap cache before being freed

2021-01-21 Thread Matthew Wilcox
On Wed, Jan 20, 2021 at 03:27:11PM +0800, Huang Ying wrote: > To catch the error in updating the swap cache shadow entries or their count. I just resent a patch that removes nrexceptional tracking. Can you use !mapping_empty() instead? > void exit_swap_address_space(unsigned int type) > { > -

RE: [PATCH] drm/ast: Update the sequence of Clearing Fast-reset

2021-01-21 Thread Kuo-Hsiang Chou
-Original Message- From: Thomas Zimmermann [mailto:tzimmerm...@suse.de] Sent: Thursday, January 21, 2021 3:56 PM To: Kuo-Hsiang Chou ; dri-de...@lists.freedesktop.org; linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/ast: Update the sequence of Clearing Fast-reset Hi Am 18.01.21

Re: [PATCH v6 1/2] fpga: dfl: add the userspace I/O device support for DFL devices

2021-01-21 Thread Moritz Fischer
Hi Tom, On Thu, Jan 21, 2021 at 06:30:20AM -0800, Tom Rix wrote: > > On 1/17/21 8:22 AM, Moritz Fischer wrote: > > Greg, > > > > On Sun, Jan 17, 2021 at 04:45:04PM +0100, Greg KH wrote: > >> On Wed, Jan 13, 2021 at 09:54:07AM +0800, Xu Yilun wrote: > >>> This patch supports the DFL drivers be

[PATCH] selinux: measure state and policy capabilities

2021-01-21 Thread Lakshmi Ramasubramanian
SELinux stores the configuration state and the policy capabilities in kernel memory. Changes to this data at runtime would have an impact on the security guarantees provided by SELinux. Measuring SELinux configuration state and policy capabilities through IMA subsystem provides a

[PATCH v5 3/7] dt-bindings: arm: cpus: Document 'qcom,freq-domain' property

2021-01-21 Thread AngeloGioacchino Del Regno
From: Manivannan Sadhasivam Add devicetree documentation for 'qcom,freq-domain' property specific to Qualcomm CPUs. This property is used to reference the CPUFREQ node along with Domain ID (0/1). Signed-off-by: Manivannan Sadhasivam Signed-off-by: AngeloGioacchino Del Regno ---

Re: [PATCH] perf metricgroup: Fix for metrics containing duration_time

2021-01-21 Thread Arnaldo Carvalho de Melo
Em Wed, Jan 20, 2021 at 10:35:35PM +0100, Jiri Olsa escreveu: > On Thu, Jan 21, 2021 at 12:18:38AM +0800, John Garry wrote: > > Metrics containing duration_time cause a segfault: > > > > $./perf stat -v -M L1D_Cache_Fill_BW sleep 1 > > Using CPUID GenuineIntel-6-3D-4 > > metric expr 64 *

[PATCH v5 0/7] cpufreq-qcom-hw: Implement full OSM programming

2021-01-21 Thread AngeloGioacchino Del Regno
** ** NOTE: To "view the full picture", please look at the following ** patch series: ** https://patchwork.kernel.org/project/linux-arm-msm/list/?series=413355 ** This is a subset of that series. ** Changes in v5: - Fixed OPP table API abuse, in conjunction with the CPR3

Re: [GIT PULL] printk regression fixes for 5.11-rc5

2021-01-21 Thread pr-tracker-bot
The pull request you sent on Thu, 21 Jan 2021 17:04:01 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux.git > tags/printk-for-5.11-printk-rework-fixup has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/2561bbbe2e959c966e21ee23de91b9bd4bbf98af Thank

Re: [GIT PULL] gpio: fixes for v5.11-rc5

2021-01-21 Thread pr-tracker-bot
The pull request you sent on Thu, 21 Jan 2021 10:52:46 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git > tags/gpio-fixes-for-v5.11-rc5 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/d7631e4378f26c8e1ba1ad372888e89e69678709 Thank you! --

[PATCH] x86/apic/x2apic: Fix parallel handling of cluster_mask

2021-01-21 Thread David Woodhouse
From: David Woodhouse For each CPU being brought up, the alloc_clustermask() function allocates a new struct cluster_mask just in case it's needed. Then the target CPU actually runs, and in init_x2apic_ldr() it either uses a cluster_mask from a previous CPU in the same cluster, or consumes the

Re: [PATCH] xfs: set inode size after creating symlink

2021-01-21 Thread Brian Foster
On Thu, Jan 21, 2021 at 09:19:12AM -0600, Jeffrey Mitchell wrote: > When XFS creates a new symlink, it writes its size to disk but not to the > VFS inode. This causes i_size_read() to return 0 for that symlink until > it is re-read from disk, for example when the system is rebooted. > > I found

Re: [PATCH v2] ARM: dts: sun7i: a20: bananapro: Fix ethernet node

2021-01-21 Thread Jernej Škrabec
Dne četrtek, 21. januar 2021 ob 18:08:36 CET je Hermann Lauer napisal(a): > BPi Pro needs TX and RX delay for Gbit to work reliable and avoid high > packet loss rates. The realtek phy driver overrides the settings of the > pull ups for the delays, so fix this for Banana Pro. > > Signed-off-by:

Re: [PATCH] perf stat: Add Topdown metrics events as default events

2021-01-21 Thread Arnaldo Carvalho de Melo
Em Thu, Jan 21, 2021 at 05:37:52AM -0800, kan.li...@linux.intel.com escreveu: > From: Kan Liang > > The Topdown Microarchitecture Analysis (TMA) Method is a structured > analysis methodology to identify critical performance bottlenecks in > out-of-order processors. From the Ice Lake and later

Re: [PATCH -v3 0/9] sched: Fix hot-unplug regression

2021-01-21 Thread Paul E. McKenney
On Thu, Jan 21, 2021 at 11:17:02AM +0100, Peter Zijlstra wrote: > Hi, > > Some cautious optimism lets me post v3 of these patches. They (knock on wood) > fix the regression introduced by commit: > > 1cf12e08bc4d ("sched/hotplug: Consolidate task migration on CPU unplug") > > These patches

[PATCH v5 7/7] dt-bindings: cpufreq: qcom-hw: Add bindings for 8998

2021-01-21 Thread AngeloGioacchino Del Regno
The OSM programming addition has been done under the qcom,cpufreq-hw-8998 compatible name: specify the requirement of two additional register spaces for this functionality. This implementation, with the same compatible, has been tested on MSM8998 and SDM630. Signed-off-by: AngeloGioacchino Del

[PATCH v5 6/7] cpufreq: qcom-hw: Allow getting the maximum transition latency for OPPs

2021-01-21 Thread AngeloGioacchino Del Regno
In order to fine-tune the frequency scaling from various governors, allow to set a maximum transition latency from OPPs, which may be different depending on the SoC. Signed-off-by: AngeloGioacchino Del Regno --- drivers/cpufreq/qcom-cpufreq-hw.c | 7 +++ 1 file changed, 7 insertions(+)

Re: [PATCH 0/9] tools/nolibc: fix build issues on aarch64 after unistd cleanup

2021-01-21 Thread Paul E. McKenney
On Thu, Jan 21, 2021 at 03:18:09PM +0100, Willy Tarreau wrote: > On Thu, Jan 21, 2021 at 11:11:17AM +, Mark Rutland wrote: > > So FWIW: > > > > Tested-by: Mark Rutland [arm64] Thank you all! > Perfect, thanks! Paul, may I let you copy-paste the tested-by yourself ? > If you prefer I'm fine

[PATCH v5 4/7] dt-bindings: cpufreq: cpufreq-qcom-hw: Convert to YAML bindings

2021-01-21 Thread AngeloGioacchino Del Regno
From: Manivannan Sadhasivam Convert Qualcomm cpufreq devicetree binding to YAML. Signed-off-by: Manivannan Sadhasivam Signed-off-by: AngeloGioacchino Del Regno --- .../bindings/cpufreq/cpufreq-qcom-hw.txt | 172 --- .../bindings/cpufreq/cpufreq-qcom-hw.yaml | 204

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