RE: [PATCH v1 2/2] kunit: tool: allow generating test results in JSON

2020-08-11 Thread Bird, Tim
> -Original Message- > From: Brendan Higgins > Sent: Friday, August 7, 2020 7:17 PM > > From: Heidi Fahim > > Add a --json flag, which when specified when kunit_tool is run, > generates JSON formatted test results conforming to the KernelCI API > test_group spec[1]. The user can the

Re: [PATCH 02/10] remoteproc: imx_rproc: correct err message

2020-08-11 Thread Mathieu Poirier
On Fri, Jul 24, 2020 at 04:08:05PM +0800, Peng Fan wrote: > It is using devm_ioremap, so not devm_ioremap_resource. Correct > the error message and print out sa/size. > > Signed-off-by: Peng Fan > --- > drivers/remoteproc/imx_rproc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >

Re: [PATCH v7 4/7] fs: Introduce O_MAYEXEC flag for openat2(2)

2020-08-11 Thread Eric W. Biederman
Mickaël Salaün writes: > When the O_MAYEXEC flag is passed, openat2(2) may be subject to > additional restrictions depending on a security policy managed by the > kernel through a sysctl or implemented by an LSM thanks to the > inode_permission hook. This new flag is ignored by open(2) and >

Re: [Cocci] [PATCH v4] documentation: coccinelle: Improve command example for make C={1, 2}

2020-08-11 Thread Julia Lawall
On Tue, 11 Aug 2020, Sumera Priyadarsini wrote: > Modify coccinelle documentation to further clarify > the usage of the makefile C variable by coccicheck. > > Signed-off-by: Sumera Priyadarsini Acked-by: Julia Lawall Thanks. > > --- > Changes in v4: > - Modify commit message to

Accept my greetings to you

2020-08-11 Thread Sgt,Shannon Mccraney
-- Hello Darling, I am happy to have you here as a friend, i hope all is well with you, and how are you enjoying your day over there in your country? My name is Sergeant ,Shannon Mccraney. I’m 29 years an orphan my parents died when I was five years old nobody to help me,I send you my business

Re: file metadata via fs API (was: [GIT PULL] Filesystem Information)

2020-08-11 Thread Christian Brauner
On Tue, Aug 11, 2020 at 09:31:05PM +0200, Lennart Poettering wrote: > On Di, 11.08.20 20:49, Miklos Szeredi (mik...@szeredi.hu) wrote: > > > On Tue, Aug 11, 2020 at 6:05 PM Linus Torvalds > > wrote: > > > > > and then people do "$(srctree)/". If you haven't seen that kind of > > > pattern where

[PATCH 1/3] selftests: Add VRF icmp error route lookup test

2020-08-11 Thread Mathieu Desnoyers
From: Michael Jeanson The objective is to check that the incoming vrf routing table is selected to send an ICMP error back to the source when the ttl of a packet reaches 1 while it is forwarded between different vrfs. The first test sends a ping with a ttl of 1 from h1 to h2 and parses the

[PATCH 0/3] l3mdev icmp error route lookup fixes

2020-08-11 Thread Mathieu Desnoyers
Hi, Here is a series of fixes for ipv4 and ipv6 which which ensure the route lookup is performed on the right routing table in VRF configurations. It includes a test for both ipv4 and ipv6. The series has been rebased on the net tree. Thanks, Mathieu Mathieu Desnoyers (2): ipv4/icmp:

[PATCH 3/3] ipv6/icmp: l3mdev: Perform icmp error route lookup on source device routing table

2020-08-11 Thread Mathieu Desnoyers
As per RFC4443, the destination address field for ICMPv6 error messages is copied from the source address field of the invoking packet. In configurations with Virtual Routing and Forwarding tables, looking up which routing table to use for sending ICMPv6 error messages is currently done by using

[PATCH 2/3] ipv4/icmp: l3mdev: Perform icmp error route lookup on source device routing table

2020-08-11 Thread Mathieu Desnoyers
As per RFC792, ICMP errors should be sent to the source host. However, in configurations with Virtual Routing and Forwarding tables, looking up which routing table to use is currently done by using the destination net_device. commit 9d1a6c4ea43e ("net: icmp_route_lookup should use rt dev to

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

2020-08-11 Thread tanmay
On 2020-08-07 13:28, Randy Dunlap wrote: On 8/7/20 1:24 PM, Stephen Boyd wrote: Quoting Rob Clark (2020-08-07 08:51:48) On Fri, Aug 7, 2020 at 8:27 AM Randy Dunlap wrote: On 8/7/20 12:17 AM, Tanmay Shah wrote: diff --git a/drivers/gpu/drm/msm/Kconfig b/drivers/gpu/drm/msm/Kconfig index

Re: [PATCH -next] arm64: Export __cpu_logical_map

2020-08-11 Thread Sumit Gupta
ERROR: modpost: "__cpu_logical_map" [drivers/cpufreq/tegra194-cpufreq.ko] undefined! ARM64 tegra194-cpufreq driver use cpu_logical_map, export __cpu_logical_map to fix build issue. I wonder why like other instances in the drivers, the mpidr is not get directly from the cpu. The

Re: [PATCH] USB: realtek_cr: fix return check for dma functions

2020-08-11 Thread Alan Stern
On Tue, Aug 11, 2020 at 11:54:28AM -0700, Tom Rix wrote: > > On 8/11/20 10:53 AM, Alan Stern wrote: > >>> Instead of changing all these call sites, wouldn't it be a lot easier > >>> just to change rts51x_read_mem() to make it always return a negative > >>> value (such as -EIO) when there's an

[Patch] cpufreq: replace cpu_logical_map with read_cpuid_mpir

2020-08-11 Thread Sumit Gupta
Commit eaecca9e7710 ("arm64: Fix __cpu_logical_map undefined issue") fixes the issue with building tegra194 cpufreq driver as module. But the fix might cause problem while supporting physical cpu hotplug[1]. This patch fixes the original problem by avoiding use of cpu_logical_map(). Instead

Re: [PATCH v7 3/7] exec: Move path_noexec() check earlier

2020-08-11 Thread Eric W. Biederman
Mickaël Salaün writes: > From: Kees Cook > > The path_noexec() check, like the regular file check, was happening too > late, letting LSMs see impossible execve()s. Check it earlier as well > in may_open() and collect the redundant fs/exec.c path_noexec() test > under the same robustness comment

Re: [PATCH v1] usb: typec: tcpm: Fix TDA 2.2.1.1 and TDA 2.2.1.2 failures

2020-08-11 Thread Badhri Jagan Sridharan
On Tue, Aug 11, 2020 at 11:45 AM Guenter Roeck wrote: > > On Tue, Aug 11, 2020 at 11:24:07AM -0700, Badhri Jagan Sridharan wrote: > > On Mon, Aug 10, 2020 at 6:51 PM Guenter Roeck wrote: > > > > > > On 8/10/20 6:11 PM, Badhri Jagan Sridharan wrote: > > > >>From the spec: > > > > "7.1.5 Response

RE: [PATCH v2 2/2] platform/chrome: cros_ec_typec: Avoid setting usb role during disconnect

2020-08-11 Thread Shaikh, Azhar
Hi, > -Original Message- > From: Heikki Krogerus > Sent: Tuesday, August 11, 2020 6:07 AM > To: Prashant Malani ; Shaikh, Azhar > > Cc: ble...@chromium.org; enric.balle...@collabora.com; > gro...@chromium.org; linux-kernel@vger.kernel.org; Patel, Utkarsh H > ; Bowman, Casey G > ; Mani,

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

2020-08-11 Thread Thomas Gleixner
Thomas Gleixner writes: > "Paul E. McKenney" writes: >> On Tue, Aug 11, 2020 at 04:44:21PM +0200, Thomas Gleixner wrote: >>> Now RCU creates a new thing which enforces to make page allocation in >>> atomic context possible on RT. What for? >>> >>> What's the actual use case in truly atomic

Re: file metadata via fs API (was: [GIT PULL] Filesystem Information)

2020-08-11 Thread Christian Brauner
On Tue, Aug 11, 2020 at 09:05:22AM -0700, Linus Torvalds wrote: > On Tue, Aug 11, 2020 at 8:30 AM Miklos Szeredi wrote: > > > > What's the disadvantage of doing it with a single lookup WITH an enabling > > flag? > > > > It's definitely not going to break anything, so no backward > >

[PATCH v3 0/3] TypeC Connector Class driver improvements

2020-08-11 Thread Azhar Shaikh
Changes in v3: * Patch 1: "platform/chrome: cros_ec_typec: Send enum values to usb_role_switch_set_role()" - No change * Patch 2: "platform/chrome: cros_ec_typec: Avoid setting usb role twice during disconnect" - Move the location of calling usb_role_switch_set_role() to

[PATCH v3 1/3] platform/chrome: cros_ec_typec: Send enum values to usb_role_switch_set_role()

2020-08-11 Thread Azhar Shaikh
usb_role_switch_set_role() has the second argument as enum for usb_role. Currently depending upon the data role i.e. UFP(0) or DFP(1) is sent. This eventually translates to USB_ROLE_NONE in case of UFP and USB_ROLE_DEVICE in case of DFP. Correct this by sending correct enum values as

[PATCH v3 3/3] platform/chrome: cros_ec_typec: Re-order connector configuration steps

2020-08-11 Thread Azhar Shaikh
As per USB Type-C Spec R2.0 section 4.5.1.2 (Connecting Sources and Sinks) and section 4.5.2.2 (Connection State Machine Requirements), the typical flow for configuring a device connected to a typeC port is as below: 1. Source/sink detection 2. Orientation 3. Data role 4. VCONN 5. VBUS (USB

[PATCH v3 2/3] platform/chrome: cros_ec_typec: Avoid setting usb role twice during disconnect

2020-08-11 Thread Azhar Shaikh
On disconnect port partner is removed and usb role is set to NONE. But then in cros_typec_port_update() the role is set again. Avoid this by moving usb_role_switch_set_role() to cros_typec_configure_mux(). Signed-off-by: Azhar Shaikh --- Changes in v3: - Move the location of calling

Re: [PATCH v3 4/5] mm: memcg: charge memcg percpu memory to the parent cgroup

2020-08-11 Thread Roman Gushchin
On Tue, Aug 11, 2020 at 08:32:25PM +0200, Michal Koutny wrote: > On Tue, Aug 11, 2020 at 09:55:27AM -0700, Roman Gushchin wrote: > > As I said, there are 2 problems with charging systemd (or a similar daemon): > > 1) It often belongs to the root cgroup. > This doesn't hold for systemd (if we

Re: [PATCH v4 1/7] pinctrl: qcom: Add msmgpio irqchip flags

2020-08-11 Thread Stephen Boyd
Can the subject be more specific? "pinctrl: qcom: Set IRQCHIP_SET_TYPE_MASKED flag"? Quoting Maulik Shah (2020-08-10 04:20:54) > Add irqchip specific flags for msmgpio irqchip to mask non wakeirqs > during suspend and mask before setting irq type. > > Masking before changing type should make

Re: [PATCH v7 2/7] exec: Move S_ISREG() check earlier

2020-08-11 Thread Eric W. Biederman
Mickaël Salaün writes: > From: Kees Cook > > The execve(2)/uselib(2) syscalls have always rejected non-regular > files. Recently, it was noticed that a deadlock was introduced when trying > to execute pipes, as the S_ISREG() test was happening too late. This was > fixed in commit 73601ea5b7b1

Re: [PATCH v4 2/7] pinctrl: qcom: Use return value from irq_set_wake call

2020-08-11 Thread Stephen Boyd
Quoting Maulik Shah (2020-08-10 04:20:55) > msmgpio irqchip is not using return value of irq_set_wake call. > Start using it. Does this work when the irq parent isn't setup in a hierarchy? I seem to recall that this was written this way because sometimes irq_set_irq_wake() would fail for the

Re: [PATCH v6 00/12] HWPOISON: soft offline rework

2020-08-11 Thread Naoya Horiguchi
On Tue, Aug 11, 2020 at 01:39:24PM -0400, Qian Cai wrote: > On Tue, Aug 11, 2020 at 03:11:40AM +, HORIGUCHI NAOYA(堀口 直也) wrote: > > I'm still not sure why the test succeeded by reverting these because > > current mainline kernel provides similar mechanism to prevent reuse of > > soft offlined

Re: file metadata via fs API (was: [GIT PULL] Filesystem Information)

2020-08-11 Thread Lennart Poettering
On Di, 11.08.20 20:49, Miklos Szeredi (mik...@szeredi.hu) wrote: > On Tue, Aug 11, 2020 at 6:05 PM Linus Torvalds > wrote: > > > and then people do "$(srctree)/". If you haven't seen that kind of > > pattern where the pathname has two (or sometimes more!) slashes in the > > middle, you've led a

Re: [PATCH v5] arm64: dts: qcom: sc7180: Add Display Port dt node

2020-08-11 Thread Stephen Boyd
Quoting Tanmay Shah (2020-08-10 19:15:53) > @@ -2440,6 +2447,71 @@ dsi_phy: dsi-phy@ae94400 { > > status = "disabled"; > }; > + > + msm_dp: displayport-controller@ae9 { > + status =

Re: [dm-devel] [RFC PATCH v5 00/11] Integrity Policy Enforcement LSM (IPE)

2020-08-11 Thread Pavel Machek
Hi! > > > > (eg, a specification) will be critical for remote filesystems. > > > > > > > > If any of this is to be supported by a remote filesystem, then we > > > > need an unencumbered description of the new metadata format > > > > rather than code. GPL-encumbered formats cannot be contributed

Re: [PATCH] selftests: Add VRF icmp error route lookup test

2020-08-11 Thread Mathieu Desnoyers
- On Aug 11, 2020, at 3:14 PM, David Ahern dsah...@gmail.com wrote: > On 8/11/20 1:11 PM, Mathieu Desnoyers wrote: >> One thing I am missing before this series can be considered for upstreaming >> is an Acked-by of the 2 fixes for ipv4 and ipv6 from you, as maintainer >> of l3mdev, if you

[PATCH v2 2/2] ima: Fail rule parsing when asymmetric key measurement isn't supportable

2020-08-11 Thread Tyler Hicks
Measuring keys is currently only supported for asymmetric keys. In the future, this might change. For now, the "func=KEY_CHECK" and "keyrings=" options are only appropriate when CONFIG_IMA_MEASURE_ASYMMETRIC_KEYS is enabled. Make this clear at policy load so that IMA policy authors don't assume

[PATCH v2 0/2] ima: Fix keyrings race condition and other key related bugs

2020-08-11 Thread Tyler Hicks
v2: - Always return an ERR_PTR from ima_alloc_rule_opt_list() (Nayna) - Add Lakshmi's Reviewed-by to both patches - Rebased on commit 3db0d0c276a7 ("integrity: remove redundant initialization of variable ret") of next-integrity v1:

[PATCH v2 1/2] ima: Pre-parse the list of keyrings in a KEY_CHECK rule

2020-08-11 Thread Tyler Hicks
The ima_keyrings buffer was used as a work buffer for strsep()-based parsing of the "keyrings=" option of an IMA policy rule. This parsing was re-performed each time an asymmetric key was added to a kernel keyring for each loaded policy rule that contained a "keyrings=" option. An example rule

Re: [PATCH v3] mm/gup: Allow real explicit breaking of COW

2020-08-11 Thread Linus Torvalds
On Tue, Aug 11, 2020 at 11:40 AM Peter Xu wrote: > > index 206f52b36ffb..c88f773d03af 100644 > --- a/mm/huge_memory.c > +++ b/mm/huge_memory.c > @@ -1296,7 +1296,17 @@ vm_fault_t do_huge_pmd_wp_page(struct vm_fault *vmf, > pmd_t orig_pmd) > if (reuse_swap_page(page, NULL)) { >

Re: [PATCH v3 4/4] MIPS: BCM63xx: refactor board declarations

2020-08-11 Thread Philippe Mathieu-Daudé
On Tue, Aug 11, 2020 at 6:48 PM Philippe Mathieu-Daudé wrote: > On Tue, Aug 11, 2020 at 5:01 PM Álvaro Fernández Rojas > wrote: > > > > Current board declarations are a mess. Let's put some order and make them > > follow the same structure. Also board declarations tabs. > > Switch to SPDX

[PATCH] arm64: dts: qcom: sc7180: Drop flags on mdss irqs

2020-08-11 Thread Stephen Boyd
The number of interrupt cells for the mdss interrupt controller is 1, meaning there should only be one cell for the interrupt number, not two where the second cell is the irq flags. Drop the second cell to match the binding. Cc: Kalyan Thota Cc: Harigovindan P ---

Re: [PATCH] genirq/PM: Always unlock IRQ descriptor in rearm_wake_irq

2020-08-11 Thread Rafael J. Wysocki
On 8/11/2020 8:00 PM, Guenter Roeck wrote: rearm_wake_irq() does not unlock the irq descriptor if the interrupt is not suspended or if wakeup is not enabled on it. Fix it. Fixes: 3a79bc63d9075 ("PCI: irq: Introduce rearm_wake_irq()") Cc: Rafael J. Wysocki Signed-off-by: Guenter Roeck

Re: [PATCH v8 2/2] display/drm/bridge: TC358775 DSI/LVDS driver

2020-08-11 Thread Sam Ravnborg
Hi Vinay. > > > > If Laurent or others identify further things to improve we can take > > it in-tree. > > Just one thing, please see below. > > > > > >> + d2l_write(tc->i2c, VTIM1, vtime1); > > > > >> + d2l_write(tc->i2c, HTIM2, htime2); > > > > >> + d2l_write(tc->i2c, VTIM2,

Re: [PATCH v7 1/7] exec: Change uselib(2) IS_SREG() failure to EACCES

2020-08-11 Thread Eric W. Biederman
ebied...@xmission.com (Eric W. Biederman) writes: > Mickaël Salaün writes: > >> From: Kees Cook >> >> Change uselib(2)' S_ISREG() error return to EACCES instead of EINVAL so >> the behavior matches execve(2), and the seemingly documented value. >> The "not a regular file" failure mode of

Re: [PATCH] selftests: Add VRF icmp error route lookup test

2020-08-11 Thread David Ahern
On 8/11/20 1:11 PM, Mathieu Desnoyers wrote: > One thing I am missing before this series can be considered for upstreaming > is an Acked-by of the 2 fixes for ipv4 and ipv6 from you, as maintainer > of l3mdev, if you think the approach I am taking with those fixes makes sense. Send the set, and I

Re: [PATCH v3 02/18] gpio: uapi: define uAPI v2

2020-08-11 Thread Bartosz Golaszewski
On Sun, Aug 9, 2020 at 3:26 PM Kent Gibson wrote: > > Add a new version of the uAPI to address existing 32/64-bit alignment > issues, add support for debounce and event sequence numbers, allow > requested lines with different configurations, and provide some future > proofing by adding padding

Re: [PATCH] selftests: Add VRF icmp error route lookup test

2020-08-11 Thread Mathieu Desnoyers
- On Aug 11, 2020, at 2:57 PM, David Ahern dsah...@gmail.com wrote: > On 8/11/20 11:28 AM, David Miller wrote: >> From: Michael Jeanson >> Date: Thu, 6 Aug 2020 14:51:21 -0400 >> >>> The objective is to check that the incoming vrf routing table is selected >>> to send an ICMP error back to

Re: [PATCH v3] mm/gup: Allow real explicit breaking of COW

2020-08-11 Thread Jann Horn
On Tue, Aug 11, 2020 at 8:39 PM Peter Xu wrote: > Starting from commit 17839856fd58 ("gup: document and work around "COW can > break either way" issue", 2020-06-02), explicit copy-on-write behavior is > enforced for private gup pages even if it's a read-only. It is achieved by > always passing

Re: [PATCH] kunit: added lockdep support

2020-08-11 Thread peterz
On Tue, Aug 11, 2020 at 12:03:51PM -0500, Uriel Guajardo wrote: > On Mon, Aug 10, 2020 at 4:43 PM Peter Zijlstra wrote: > > > > On Mon, Aug 10, 2020 at 09:32:57PM +, Uriel Guajardo wrote: > > > +static inline void kunit_check_locking_bugs(struct kunit *test, > > > +

[PATCH 2/2] soc: qcom: aoss: Use GENPD_FLAG_SUSPEND_ON flag

2020-08-11 Thread Sibi Sankar
All the power domains exposed as part of AOSS QMP driver require to stay powered on for suspend. They are powered on when the remote processors boots up and powered off on remote processor crash/shutdown. Mark the power domains with GENPD_FLAG_SUSPEND_ON to model this behavior. Signed-off-by:

Re: [PATCH v7 1/7] exec: Change uselib(2) IS_SREG() failure to EACCES

2020-08-11 Thread Eric W. Biederman
Mickaël Salaün writes: > From: Kees Cook > > Change uselib(2)' S_ISREG() error return to EACCES instead of EINVAL so > the behavior matches execve(2), and the seemingly documented value. > The "not a regular file" failure mode of execve(2) is explicitly > documented[1], but it is not mentioned

[PATCH 1/2] PM / Domains: Add GENPD_FLAG_SUSPEND_ON flag

2020-08-11 Thread Sibi Sankar
This is for power domains which needs to stay powered on for suspend but can be powered on/off as part of runtime PM. This flag is aimed at power domains coupled to remote processors which enter suspend states independent to that of the application processor. Such power domains are turned off only

Re: [PATCH] USB: realtek_cr: fix return check for dma functions

2020-08-11 Thread Tom Rix
On 8/11/20 10:53 AM, Alan Stern wrote: > On Tue, Aug 11, 2020 at 10:29:29AM -0700, Tom Rix wrote: >> On 8/11/20 9:03 AM, Alan Stern wrote: >>> On Tue, Aug 11, 2020 at 08:15:05AM -0700, t...@redhat.com wrote: From: Tom Rix clang static analysis reports this representative problem

Re: [PATCH] selftests: Add VRF icmp error route lookup test

2020-08-11 Thread David Ahern
On 8/11/20 11:28 AM, David Miller wrote: > From: Michael Jeanson > Date: Thu, 6 Aug 2020 14:51:21 -0400 > >> The objective is to check that the incoming vrf routing table is selected >> to send an ICMP error back to the source when the ttl of a packet reaches 1 >> while it is forwarded between

Re: [PATCH v5 3/9] x86: vdso: Expose sigreturn address on vdso to the kernel

2020-08-11 Thread Andy Lutomirski
On Mon, Aug 10, 2020 at 4:26 PM Gabriel Krisman Bertazi wrote: > > Syscall user redirection requires the signal trampoline code to not be > captured, in order to support returning with a locked selector while > avoiding recursion back into the signal handler. For ia-32, which has > the

Re: file metadata via fs API (was: [GIT PULL] Filesystem Information)

2020-08-11 Thread Miklos Szeredi
On Tue, Aug 11, 2020 at 6:05 PM Linus Torvalds wrote: > and then people do "$(srctree)/". If you haven't seen that kind of > pattern where the pathname has two (or sometimes more!) slashes in the > middle, you've led a very sheltered life. Oh, I have. That's why I opted for triple slashes,

Re: [PATCH v9 09/10] media: tegra-video: Add CSI MIPI pads calibration

2020-08-11 Thread Dmitry Osipenko
06.08.2020 22:01, Sowjanya Komatineni пишет: ... > + err = tegra_mipi_finish_calibration(csi_chan->mipi); > + > + if (ret < 0 && ret != -ENOIOCTLCMD) > + goto err_disable_csi_stream; > + > + if (err < 0) > + dev_warn(csi_chan->csi->dev, > +

Re: power-off delay/hang due to commit 6d25be57 (mainline)

2020-08-11 Thread Sebastian Andrzej Siewior
On 2020-08-11 19:22:19 [+0200], Stephen Berman wrote: > Attached. ssdt6.dsl: | ThermalZone (TZ10) | { … | Method (_TSP, 0, Serialized) // _TSP: Thermal Sampling Period | { | Return (0x0A) | } | | Method (_TZP, 0, Serialized) // _TZP: Thermal Zone Polling | {

Re: [PATCH] riscv: Setup exception vector for K210 properly

2020-08-11 Thread Atish Patra
On Tue, Aug 11, 2020 at 1:41 AM Anup Patel wrote: > > On Tue, Aug 11, 2020 at 12:07 PM Qiu Wenbo wrote: > > > > Exception vector is missing on nommu platform and it is a big issue. > > This patch is tested in Sipeed MAIX Bit Dev Board. > > > > Fixes: 79b1feba5455 ("RISC-V: Setup exception vector

Re: [PATCH RFC v2 02/18] irq/dev-msi: Add support for a new DEV_MSI irq domain

2020-08-11 Thread Dey, Megha
Hi Thomas, On 8/11/2020 2:53 AM, Thomas Gleixner wrote: Thomas Gleixner writes: CC+: XEN folks Thomas Gleixner writes: The infrastructure itself is not more than a thin wrapper around the existing msi domain infrastructure and might even share code with platform-msi. And the annoying

Re: [PATCH v1] usb: typec: tcpm: Fix TDA 2.2.1.1 and TDA 2.2.1.2 failures

2020-08-11 Thread Guenter Roeck
On Tue, Aug 11, 2020 at 11:24:07AM -0700, Badhri Jagan Sridharan wrote: > On Mon, Aug 10, 2020 at 6:51 PM Guenter Roeck wrote: > > > > On 8/10/20 6:11 PM, Badhri Jagan Sridharan wrote: > > >>From the spec: > > > "7.1.5 Response to Hard Resets > > > Hard Reset Signaling indicates a communication

[PATCH v3] mm/gup: Allow real explicit breaking of COW

2020-08-11 Thread Peter Xu
Starting from commit 17839856fd58 ("gup: document and work around "COW can break either way" issue", 2020-06-02), explicit copy-on-write behavior is enforced for private gup pages even if it's a read-only. It is achieved by always passing FOLL_WRITE to emulate a write. That should fix the COW

Re: [PATCH RFC v2 02/18] irq/dev-msi: Add support for a new DEV_MSI irq domain

2020-08-11 Thread Dey, Megha
Hi Thomas, On 8/8/2020 12:47 PM, Thomas Gleixner wrote: Megha, "Dey, Megha" writes: On 8/7/2020 9:47 AM, Thomas Gleixner wrote: I'm all for sharing code and making the life of driver writers simple because that makes my life simple as well, but not by creating a layer at the wrong level and

RE: [PATCH 33/41] hexagon: switch to ->get2()

2020-08-11 Thread Brian Cain
> -Original Message- > From: linux-arch-ow...@vger.kernel.org > On Behalf Of Al Viro Acked-by: Brian Cain > From: Al Viro > > Signed-off-by: Al Viro > --- > arch/hexagon/kernel/ptrace.c | 62 +++- > 1 file changed, 21 insertions(+), 41

RE: [PATCH 07/24] hexagon: use asm-generic/mmu_context.h for no-op implementations

2020-08-11 Thread Brian Cain
> -Original Message- > From: linux-arch-ow...@vger.kernel.org > On Behalf Of Nicholas Piggin Acked-by: Brian Cain > Cc: Brian Cain > Cc: linux-hexa...@vger.kernel.org > Signed-off-by: Nicholas Piggin > --- > arch/hexagon/include/asm/mmu_context.h | 33 --

Re: [PATCH 19/20] media: platform: vpdma.c: fix comparison to bool

2020-08-11 Thread Joe Perches
On Tue, 2020-08-11 at 07:57 -0500, Benoit Parrot wrote: > Daniel W. S. Almeida wrote on Fri [2020-Aug-07 > 05:35:46 -0300]: > > From: "Daniel W. S. Almeida" > > > > Fix the following coccinelle report: > > > > drivers/media/platform/ti-vpe/vpdma.c:946:5-26: WARNING: > > Comparison to bool > >

[PATCH net v4 2/2] net: initialize fastreuse on inet_inherit_port

2020-08-11 Thread Tim Froidcoeur
In the case of TPROXY, bind_conflict optimizations for SO_REUSEADDR or SO_REUSEPORT are broken, possibly resulting in O(n) instead of O(1) bind behaviour or in the incorrect reuse of a bind. the kernel keeps track for each bind_bucket if all sockets in the bind_bucket support SO_REUSEADDR or

[PATCH net v4 1/2] net: refactor bind_bucket fastreuse into helper

2020-08-11 Thread Tim Froidcoeur
Refactor the fastreuse update code in inet_csk_get_port into a small helper function that can be called from other places. Acked-by: Matthieu Baerts Signed-off-by: Tim Froidcoeur --- include/net/inet_connection_sock.h | 4 ++ net/ipv4/inet_connection_sock.c| 97

[PATCH net v4 0/2] net: initialize fastreuse on inet_inherit_port

2020-08-11 Thread Tim Froidcoeur
In the case of TPROXY, bind_conflict optimizations for SO_REUSEADDR or SO_REUSEPORT are broken, possibly resulting in O(n) instead of O(1) bind behaviour or in the incorrect reuse of a bind. the kernel keeps track for each bind_bucket if all sockets in the bind_bucket support SO_REUSEADDR or

Re: [PATCH v3 4/5] mm: memcg: charge memcg percpu memory to the parent cgroup

2020-08-11 Thread Michal Koutný
On Tue, Aug 11, 2020 at 09:55:27AM -0700, Roman Gushchin wrote: > As I said, there are 2 problems with charging systemd (or a similar daemon): > 1) It often belongs to the root cgroup. This doesn't hold for systemd (if we agree that systemd is the most common case). > 2) OOMing or failing some

Re: [dm-devel] [RFC PATCH v5 00/11] Integrity Policy Enforcement LSM (IPE)

2020-08-11 Thread James Bottomley
On Tue, 2020-08-11 at 10:48 -0400, Chuck Lever wrote: > Mimi's earlier point is that any IMA metadata format that involves > unsigned digests is exposed to an alteration attack at rest or in > transit, thus will not provide a robust end-to-end integrity > guarantee. I don't believe that is Mimi's

[PATCH v2] arch/ia64: Restore arch-specific pgd_offset_k implementation

2020-08-11 Thread Jessica Clarke
IA-64 is special and treats pgd_offset_k differently from pgd_offset by not including the region number, and init_mm's PGD is such that it only points to the kernel's region's PGD. This was broken in 974b9b2c68 which unified the two and therefore included the region number, causing it to go way

Re: [PATCH v1] usb: typec: tcpm: Fix TDA 2.2.1.1 and TDA 2.2.1.2 failures

2020-08-11 Thread Badhri Jagan Sridharan
On Mon, Aug 10, 2020 at 6:51 PM Guenter Roeck wrote: > > On 8/10/20 6:11 PM, Badhri Jagan Sridharan wrote: > >>From the spec: > > "7.1.5 Response to Hard Resets > > Hard Reset Signaling indicates a communication failure has occurred and > > the Source Shall stop driving VCONN, Shall remove Rp

[PATCH v4 1/2] dt-bindings: display: panel: Add bindings for Tianma nt36672a panel

2020-08-11 Thread Sumit Semwal
The nt36672a panel from Tianma is a FHD+ panel with a resolution of 1080x2246 and 6.18 inches size. It is found in some of the Poco F1 phones. Signed-off-by: Sumit Semwal Reviewed-by: Rob Herring --- v2: remove ports node, making port@0 directly under panel@0 node. v3: updated to replace

[PATCH v4 2/2] drm: panel: Add tianma nt36672a panel driver

2020-08-11 Thread Sumit Semwal
Some Poco F1 phones have an LCD panel from Tianma, model nt36672a, with a resolution of 1080x2246 that operates in DSI video mode. Add the drm panel driver for it. During testing, Benni Steini helped us fix the reset sequence timing (from 10ms to 20ms), to get the bootanimation to work on

[PATCH v4 0/2] Add support for Tianma nt36672a video mode panel

2020-08-11 Thread Sumit Semwal
Some Poco F1 phones from Xiaomi have an nt36672a video mode panel; add support for the same. Most of the panel data is taken from downstream panel dts, and is converted to drm-panel based driver by me. It has been validated with v5.8-rc5 on Poco F1 phone; my tree with other dependent patches is

Re: [PATCH v2 2/3] perf/x86/rapl: Support multiple rapl unit quirks

2020-08-11 Thread Joe Perches
On Tue, 2020-08-11 at 23:31 +0800, Zhang Rui wrote: > There will be more platforms with different fixed energy units. > Enhance the code to support different rapl unit quirks for different > platforms. This seems like one quirk per platform. Should multiple quirks on individual platforms be

Re: "mm: consolidate pte_index() and pte_offset_*() definitions" broke ia64

2020-08-11 Thread John Paul Adrian Glaubitz
On 8/11/20 7:20 PM, Jessica Clarke wrote: > From 6c13e42cb95025e5f7ea3ac1a1262817bf3fcfec Mon Sep 17 00:00:00 2001 > From: Jessica Clarke > Date: Tue, 11 Aug 2020 19:18:28 +0200 > Subject: [PATCH] arch/ia64: Restore arch-specific pgd_offset_k implementation > > IA-64 is special and treats

Re: [PATCH v2] module: Harden STRICT_MODULE_RWX

2020-08-11 Thread peterz
On Tue, Aug 11, 2020 at 06:01:35PM +0200, Jessica Yu wrote: > > > On Tue, Aug 11, 2020 at 04:34:27PM +0200, Mauro Carvalho Chehab wrote: > > > > [33] .plt PROGBITS 0340 00035c80 > > > >0001 WAX 0 0 1 > > > >

pidfd and O_NONBLOCK

2020-08-11 Thread Josh Triplett
As far as I can tell, O_NONBLOCK has no effect on a pidfd. When calling waitid on a pidfd for a running process, it always blocks unless you provide WNOHANG. I don't think anything depends on that behavior. Would it be possible to make O_NONBLOCK on a pidfd cause waitid on a running process to

drivers/net/wireless/intel/iwlwifi/pcie/drv.c:1032 iwl_pci_probe() warn: we never enter this loop

2020-08-11 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 00e4db51259a5f936fec1424b884f029479d3981 commit: 2a612a60ab440e6480c77b73403dfee061f74e4b iwlwifi: implement a new device configuration table date: 7 months ago config: parisc-randconfig-m031-20200811

Re: [PATCH 1/2] perf: Add closing sibling events' file descriptors

2020-08-11 Thread Andi Kleen
On Tue, Aug 11, 2020 at 02:47:03PM +, David Laight wrote: > From: Andi Kleen > > On Mon, Aug 10, 2020 at 10:36:32PM +0200, Peter Zijlstra wrote: > > > On Mon, Aug 10, 2020 at 07:45:18AM -0700, Andi Kleen wrote: > > > > > > > Unfortunately we're kind of stuck with the old NFILE=1024 default > >

[PATCH] genirq: Unlock irq descriptor after errors

2020-08-11 Thread Guenter Roeck
In irq_set_irqchip_state(), the irq descriptor is not unlocked after an error is encountered. While that should never happen in practice, a buggy driver may trigger it. This would result in a lockup, so let's fix it. Fixes: 1d0326f352bb ("genirq: Check irq_data_get_irq_chip() return value before

[PATCH] genirq/PM: Always unlock IRQ descriptor in rearm_wake_irq

2020-08-11 Thread Guenter Roeck
rearm_wake_irq() does not unlock the irq descriptor if the interrupt is not suspended or if wakeup is not enabled on it. Fix it. Fixes: 3a79bc63d9075 ("PCI: irq: Introduce rearm_wake_irq()") Cc: Rafael J. Wysocki Signed-off-by: Guenter Roeck --- kernel/irq/pm.c | 8 ++-- 1 file changed, 6

Re: [PATCH] x86/boot/compressed: Disable relocation relaxation for non-pie link

2020-08-11 Thread Nick Desaulniers
On Tue, Aug 11, 2020 at 10:36 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: [PATCH v2 15/20] fuse, dax: Take ->i_mmap_sem lock during dax page fault

2020-08-11 Thread Vivek Goyal
On Tue, Aug 11, 2020 at 08:22:38AM +1000, Dave Chinner wrote: > On Fri, Aug 07, 2020 at 03:55:21PM -0400, Vivek Goyal wrote: > > We need some kind of locking mechanism here. Normal file systems like > > ext4 and xfs seems to take their own semaphore to protect agains > > truncate while fault is

[PATCHv7] drivers: optee: allow op-tee to access devices on the i2c bus

2020-08-11 Thread Jorge Ramirez-Ortiz
Some secure elements like NXP's SE050 sit on I2C buses. For OP-TEE to control this type of cryptographic devices it needs coordinated access to the bus, so collisions and RUNTIME_PM dont get in the way. This trampoline driver allow OP-TEE to access them. Signed-off-by: Jorge Ramirez-Ortiz ---

Re: [PATCH v7 00/11] Introduce features and debugfs/sysfs entries for MHI

2020-08-11 Thread bbhatt
On 2020-08-10 23:26, Manivannan Sadhasivam wrote: Hi Bhaumik, On Mon, Aug 10, 2020 at 03:00:54PM -0700, Bhaumik Bhatt wrote: Save hardware information from BHI. Allow reading and modifying some MHI variables for debug, test, and informational purposes using debugfs. Read values for device

Re: [PATCH] USB: realtek_cr: fix return check for dma functions

2020-08-11 Thread Alan Stern
On Tue, Aug 11, 2020 at 10:29:29AM -0700, Tom Rix wrote: > > On 8/11/20 9:03 AM, Alan Stern wrote: > > On Tue, Aug 11, 2020 at 08:15:05AM -0700, t...@redhat.com wrote: > >> From: Tom Rix > >> > >> clang static analysis reports this representative problem > >> > >> realtek_cr.c:639:3: warning:

Re: [PATCH 00/33] Add driver for HiSilicon SPMI PMIC for Hikey 970

2020-08-11 Thread Jonathan Cameron
On Tue, 11 Aug 2020 17:54:29 +0200 Mauro Carvalho Chehab wrote: > Em Tue, 11 Aug 2020 17:41:26 +0200 > Mauro Carvalho Chehab escreveu: > > > The Hikey 970 board uses a different PMIC than the one found on Hikey 960. > > > > This PMIC uses a SPMI board. > > > > This patch series backport the

Re: [PATCH v2 13/20] fuse, dax: Implement dax read/write operations

2020-08-11 Thread Vivek Goyal
On Tue, Aug 11, 2020 at 08:06:55AM +1000, Dave Chinner wrote: > On Fri, Aug 07, 2020 at 03:55:19PM -0400, Vivek Goyal wrote: > > This patch implements basic DAX support. mmap() is not implemented > > yet and will come in later patches. This patch looks into implemeting > > read/write. > > >

Re: [PATCH v2] media: rcar-vin: Add support to select data pins for YCbCr422-8bit input

2020-08-11 Thread Lad, Prabhakar
Hi Laurent, On Tue, Aug 11, 2020 at 12:41 PM Laurent Pinchart wrote: > > Hi Prabhakar, > > On Fri, Aug 07, 2020 at 09:20:36PM +0100, Lad, Prabhakar wrote: > > On Wed, Aug 5, 2020 at 1:35 PM Laurent Pinchart wrote: > > > On Wed, Aug 05, 2020 at 10:43:25AM +0200, Geert Uytterhoeven wrote: > > >>

[GIT PULL] arm64 fix for 5.9-rc1

2020-08-11 Thread Catalin Marinas
Hi Linus, Please pull the fix below. Thanks. The following changes since commit eaecca9e7710281be7c31d892c9f447eafd7ddd9: arm64: Fix __cpu_logical_map undefined issue (2020-08-08 19:25:04 +0100) are available in the Git repository at:

Re: [PATCH v6 00/12] HWPOISON: soft offline rework

2020-08-11 Thread Qian Cai
On Tue, Aug 11, 2020 at 03:11:40AM +, HORIGUCHI NAOYA(堀口 直也) wrote: > I'm still not sure why the test succeeded by reverting these because > current mainline kernel provides similar mechanism to prevent reuse of > soft offlined page. So this success seems to me something suspicious. > > To

[PATCH] x86/boot/compressed: Disable relocation relaxation for non-pie link

2020-08-11 Thread Arvind Sankar
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 (relaxation) at link time. This is supported by LLD and binutils

Re: [PATCH net] net: qcom/emac: add missed clk_disable_unprepare in error path of emac_clks_phase1_init

2020-08-11 Thread David Miller
From: Wang Hai Date: Mon, 10 Aug 2020 10:57:05 +0800 > Fix the missing clk_disable_unprepare() before return > from emac_clks_phase1_init() in the error handling case. > > Fixes: b9b17debc69d ("net: emac: emac gigabit ethernet controller driver") > Reported-by: Hulk Robot > Signed-off-by: Wang

Re: [RFC PROPOSAL] memcg: per-memcg user space reclaim interface

2020-08-11 Thread Michal Koutný
Hi Shakeel. On Tue, Jul 07, 2020 at 10:02:50AM -0700, Shakeel Butt wrote: > > Well, I was talkingg about memory.low. It is not meant only to protect > > from the global reclaim. It can be used for balancing memory reclaim > > from _any_ external memory pressure source. So it is somehow related

Re: [PATCH] ionic_lif: Use devm_kcalloc() in ionic_qcq_alloc()

2020-08-11 Thread David Miller
From: Xu Wang Date: Mon, 10 Aug 2020 02:38:07 + > A multiplication for the size determination of a memory allocation > indicated that an array data structure should be processed. > Thus use the corresponding function "devm_kcalloc". > > Signed-off-by: Xu Wang Applied, thanks.

Re: [PATCH] net/nfc/rawsock.c: add CAP_NET_RAW check.

2020-08-11 Thread David Miller
From: Qingyu Li Date: Mon, 10 Aug 2020 09:51:00 +0800 > When creating a raw AF_NFC socket, CAP_NET_RAW needs to be checked first. > > Signed-off-by: Qingyu Li Applied and queued up for -stable, thank you.

Re: [PATCH net-next v2] hinic: fix strncpy output truncated compile warnings

2020-08-11 Thread David Miller
From: Luo bin Date: Sun, 9 Aug 2020 11:53:49 +0800 > fix the compile warnings of 'strncpy' output truncated before > terminating nul copying N bytes from a string of the same length > > Signed-off-by: Luo bin > Reported-by: kernel test robot Applied.

Re: [PATCH net] drivers/net/wan/x25_asy: Added needed_headroom and a skb->len check

2020-08-11 Thread David Miller
From: Xie He Date: Sat, 8 Aug 2020 19:35:48 -0700 > 1. Added a skb->len check > > This driver expects upper layers to include a pseudo header of 1 byte > when passing down a skb for transmission. This driver will read this > 1-byte header. This patch added a skb->len check before reading the >

net/ipv4/tcp_cong.c:228:24: sparse: sparse: incorrect type in argument 3 (different address spaces)

2020-08-11 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 00e4db51259a5f936fec1424b884f029479d3981 commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 8 weeks ago config: s390-randconfig-s032-20200811 (attached

KASAN: wild-memory-access Read in do_ebt_set_ctl

2020-08-11 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:86cfccb6 Merge tag 'dlm-5.9' of git://git.kernel.org/pub/s.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1419de8a90 kernel config: https://syzkaller.appspot.com/x/.config?x=bcf489e08c9b8c5e

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