Re: [PATCH v3 11/13] dt-bindings: tegra: Update csi data-lanes to maximum 8 lanes

2020-12-09 Thread Rob Herring
On Thu, 03 Dec 2020 11:00:00 -0800, Sowjanya Komatineni wrote: > Tegra VI/CSI hardware don't have native 8 lane CSI RX port. > > But x8 capture can be supported by using consecutive x4 ports > simultaneously with HDMI-to-CSI bridges where source image is split > on to two x4 ports. > > This

Re: [RESEND PATCH 2/2] dt-bindings: tegra: Add missing HDA properties

2020-12-09 Thread Rob Herring
On Thu, 03 Dec 2020 20:06:42 +0530, Sameer Pujar wrote: > Document the missing properties which are currently required for > Tegra186/Tegra194 DT files. > > Signed-off-by: Sameer Pujar > --- > .../devicetree/bindings/sound/nvidia,tegra30-hda.yaml | 14 > ++ > 1 file changed,

Re: [PATCH] spi: Limit the spi device max speed to controller's max speed

2020-12-09 Thread Serge Semin
On Wed, Dec 09, 2020 at 07:54:20PM +, Mark Brown wrote: > On Wed, Dec 09, 2020 at 10:46:36PM +0300, Serge Semin wrote: > > > On Wed, Dec 09, 2020 at 07:35:14PM +0200, Tudor Ambarus wrote: > > > > Make sure the max_speed_hz of spi_device does not override > > > the max_speed_hz of controller.

Re: linux-next: Tree for Dec 9 (ethernet/mellanox/mlx5)

2020-12-09 Thread Randy Dunlap
On 12/9/20 2:44 AM, Stephen Rothwell wrote: > Hi all, > > Changes since 20201208: > on i386: I see this warning:/note: repeated 106 times on i386 build: from ../drivers/net/ethernet/mellanox/mlx5/core/alloc.c:34: ../include/vdso/bits.h:7:26: warning: left shift count >= width

Re: [PATCH linux hwmon-next v4 1/3] hwmon: (sbtsi) Add basic support for SB-TSI sensors

2020-12-09 Thread Supreeth Venkatesh
On 12/2/20 10:55 AM, Kun Yi wrote: > [CAUTION: External Email] > > SB Temperature Sensor Interface (SB-TSI) is an SMBus compatible > interface that reports AMD SoC's Ttcl (normalized temperature), > and resembles a typical 8-pin remote temperature sensor's I2C interface > to BMC. > > This commit

Re: [BUG] iwlwifi: card unusable after firmware crash

2020-12-09 Thread Rui Salvaterra
Hi, guys, On Wed, 9 Dec 2020 at 17:13, Jakub Kicinski wrote: > > Any luck figuring this out, Luca? If this is a 5.10 regression we need > to let Linus know tomorrow, so the time is ticking :( I don't have the possibility to test other kernels at the moment, but I will do so in a few days (at

Re: [PATCH V2 2/2] mm/highmem: Lift memcpy_[to|from]_page to core

2020-12-09 Thread Matthew Wilcox
On Wed, Dec 09, 2020 at 11:47:56AM -0800, Dan Williams wrote: > On Tue, Dec 8, 2020 at 8:03 PM Matthew Wilcox wrote: > > On Tue, Dec 08, 2020 at 06:22:50PM -0800, Ira Weiny wrote: > > > Therefore, I tend to agree with Dan that if anything is to be done it > > > should be > > > a WARN_ON() which

Re: [PATCH v4 3/3] spi: dt-bindings: document zero value for spi-{rx,tx}-bus-width properties

2020-12-09 Thread Rob Herring
On Thu, 03 Dec 2020 16:05:31 +0200, Alexandru Ardelean wrote: > Following a change to the SPI framework, providing a value of zero for > 'spi-rx-bus-width' and 'spi-tx-bus-width' is now possible and will > essentially mean that no RX or TX is allowed. > > Signed-off-by: Alexandru Ardelean > ---

Re: [PATCH v5 0/2] MTE support for KVM guest

2020-12-09 Thread Richard Henderson
On 12/9/20 12:39 PM, Catalin Marinas wrote: >> I would have thought that the best way is to use TCO, so that we don't have >> to >> have dual mappings (and however many MB of extra page tables that might >> imply). > > The problem appears when the VMM wants to use MTE itself (e.g. linked >

Re: [PATCH v1] scripts: switch explicitly to Python 3

2020-12-09 Thread Pavel Machek
Hi! > Some distributions are about to switch to Python 3 support only. > This means that /usr/bin/python, which is Python 2, is not available > anymore. Hence, switch scripts to use Python 3 explicitly. Should python be mentioned in Documentation/process/changes.rst ? Best regards,

Re: [PATCH net-next v5 2/9] dt-bindings: net: dsa: microchip,ksz: add interrupt property

2020-12-09 Thread Rob Herring
On Thu, 03 Dec 2020 11:21:10 +0100, Christian Eggers wrote: > The devices have an optional interrupt line. > > Signed-off-by: Christian Eggers > --- > .../devicetree/bindings/net/dsa/microchip,ksz.yaml | 7 +++ > 1 file changed, 7 insertions(+) > Reviewed-by: Rob Herring

Re: [PATCH] spi: dt-bindings: clarify CS behavior for spi-cs-high and gpio descriptors

2020-12-09 Thread H. Nikolaus Schaller
Hi Andreas, > Am 09.12.2020 um 21:01 schrieb Andreas Kemnade : > > On Wed, 9 Dec 2020 14:04:26 -0500 > Sven Van Asbroeck wrote: > >> On Wed, Dec 9, 2020 at 1:16 PM H. Nikolaus Schaller >> wrote: >>> >>> This is also what made me wonder if that is really intended because then >>> the whole

Re: [PATCH linux hwmon-next v4 3/3] dt-bindings: (hwmon/sbtsi_tmep) Add SB-TSI hwmon driver bindings

2020-12-09 Thread Rob Herring
On Wed, 02 Dec 2020 08:56:01 -0800, Kun Yi wrote: > Document device tree bindings for AMD SB-TSI emulated temperature > sensor. > > Signed-off-by: Kun Yi > --- > .../devicetree/bindings/hwmon/amd,sbtsi.yaml | 54 +++ > 1 file changed, 54 insertions(+) > create mode 100644

Re: [PATCH net-next] vrf: handle CONFIG_IPV6 not set for vrf_add_mac_header_if_unset()

2020-12-09 Thread Jakub Kicinski
On Tue, 8 Dec 2020 12:51:55 -0700 David Ahern wrote: > On 12/8/20 10:52 AM, Andrea Mayer wrote: > > The vrf_add_mac_header_if_unset() is defined within a conditional > > compilation block which depends on the CONFIG_IPV6 macro. > > However, the vrf_add_mac_header_if_unset() needs to be called also

Re: [PATCH v2 sl-b 3/5] mm: Make mem_dump_obj() handle vmalloc() memory

2020-12-09 Thread Uladzislau Rezki
On Wed, Dec 09, 2020 at 11:42:39AM -0800, Paul E. McKenney wrote: > On Wed, Dec 09, 2020 at 08:36:37PM +0100, Uladzislau Rezki wrote: > > On Tue, Dec 08, 2020 at 05:13:01PM -0800, paul...@kernel.org wrote: > > > From: "Paul E. McKenney" > > > > > > This commit adds vmalloc() support to

Re: [PATCH] dt-bindings: mfd: fix stm32 timers example

2020-12-09 Thread Rob Herring
On Wed, 02 Dec 2020 13:45:14 +0100, Fabrice Gasnier wrote: > The stm32 timers example name should match the pattern timer@. Also, > the example is based on stm32mp1 timer 2, so the identifier should be > '1' instead of '0' (e.g. timer 1). > > Fixes: bfbcbf88f9db ("dt-bindings: timer: Convert

Re: [BUG] iwlwifi: card unusable after firmware crash

2020-12-09 Thread Coelho, Luciano
Hi Jakub et al, On Wed, 2020-12-09 at 09:13 -0800, Jakub Kicinski wrote: > On Tue, 8 Dec 2020 23:17:48 + Rui Salvaterra wrote: > > Hi, Luca, > > > > On Tue, 8 Dec 2020 at 16:27, Coelho, Luciano > > wrote: > > > On Tue, 2020-12-08 at 11:27 +, Rui Salvaterra wrote: > > > > > > > > [

Re: [PATCH] spi: dt-bindings: clarify CS behavior for spi-cs-high and gpio descriptors

2020-12-09 Thread Andreas Kemnade
On Wed, 9 Dec 2020 14:04:26 -0500 Sven Van Asbroeck wrote: > On Wed, Dec 9, 2020 at 1:16 PM H. Nikolaus Schaller > wrote: > > > > This is also what made me wonder if that is really intended because then > > the whole discussion about the cs-gpio-flags and inversion and the fixes > > would not

Re: [PATCH v11 4/5] dt-bindings: leds: Add bindings for MT6360 LED

2020-12-09 Thread Rob Herring
On Wed, Dec 02, 2020 at 06:46:50PM +0800, Gene Chen wrote: > From: Gene Chen > > Add bindings document for LED support on MT6360 PMIC > > Signed-off-by: Gene Chen > --- > .../devicetree/bindings/leds/leds-mt6360.yaml | 159 > + > 1 file changed, 159 insertions(+) >

Re: [PATCH v11 3/5] dt-bindings: leds: Add LED_FUNCTION_MOONLIGHT definitions

2020-12-09 Thread Rob Herring
On Thu, Dec 03, 2020 at 09:06:42PM +0100, Jacek Anaszewski wrote: > Hi Pavel, > > On 12/3/20 12:40 PM, Pavel Machek wrote: > > Hi! > > > > > > > +++ b/include/dt-bindings/leds/common.h > > > > > @@ -78,6 +78,7 @@ > > > > > #define LED_FUNCTION_INDICATOR "indicator" > > > > > #define

Re: [PATCH] spi: Limit the spi device max speed to controller's max speed

2020-12-09 Thread Mark Brown
On Wed, Dec 09, 2020 at 10:46:36PM +0300, Serge Semin wrote: > On Wed, Dec 09, 2020 at 07:35:14PM +0200, Tudor Ambarus wrote: > > Make sure the max_speed_hz of spi_device does not override > > the max_speed_hz of controller. > I have doubts that's right thing to do. It seems better to let > the

Re: [PATCH v3 1/9] dt-binding: soc: xilinx: ai-engine: Add AI engine binding

2020-12-09 Thread Jiaying Liang
On 12/8/20 3:41 PM, Rob Herring wrote: On Sun, Nov 29, 2020 at 11:48:17PM -0800, Wendy Liang wrote: Xilinx AI engine array can be partitioned statically for different applications. In the device tree, there will be device node for the AI engine device, and device nodes for the statically

Re: [PATCH] files: rcu free files_struct

2020-12-09 Thread Al Viro
On Wed, Dec 09, 2020 at 11:13:38AM -0800, Linus Torvalds wrote: > On Wed, Dec 9, 2020 at 10:05 AM Eric W. Biederman > wrote: > > > > - struct file * file = xchg(>fd[i], > > NULL); > > + struct file * file = fdt->fd[i]; > >

Re: [PATCH] files: rcu free files_struct

2020-12-09 Thread Matthew Wilcox
On Wed, Dec 09, 2020 at 12:04:38PM -0600, Eric W. Biederman wrote: > @@ -397,8 +397,9 @@ static struct fdtable *close_files(struct files_struct * > files) > set = fdt->open_fds[j++]; > while (set) { > if (set & 1) { > -

Re: [PATCH] PCI: Save/restore L1 PM Substate extended capability registers

2020-12-09 Thread David E. Box
Great. Thanks Vidya. On Wed, 2020-12-09 at 09:38 +0530, Vidya Sagar wrote: > There is a change already available for it in linux-next > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=4257f7e008ea394fcecc050f1569c3503b8bcc15 > > Thanks, > Vidya Sagar > > On

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

2020-12-09 Thread Jeffrey Hugo
On 12/9/2020 11:34 AM, Hemant Kumar wrote: On 12/7/20 7:55 PM, Carl Huang wrote: If client driver has specified the irq_flags, mhi uses this specified irq_flags. Otherwise, mhi uses default irq_flags. The purpose of this change is to support one MSI vector for QCA6390. MHI will use one same

Re: [PATCHv3 net-next] octeontx2-pf: Add RSS multi group support

2020-12-09 Thread Jakub Kicinski
On Wed, 09 Dec 2020 11:08:24 -0800 Saeed Mahameed wrote: > > -/* Configure RSS table and hash key */ > > -static int otx2_set_rxfh(struct net_device *dev, const u32 *indir, > > -const u8 *hkey, const u8 hfunc) > > +static int otx2_get_rxfh_context(struct net_device *dev, u32

Re: [PATCH V2 2/2] mm/highmem: Lift memcpy_[to|from]_page to core

2020-12-09 Thread Dan Williams
On Tue, Dec 8, 2020 at 8:03 PM Matthew Wilcox wrote: > > On Tue, Dec 08, 2020 at 06:22:50PM -0800, Ira Weiny wrote: > > Right now we have a mixed bag. zero_user() [and it's variants, circa 2008] > > does a BUG_ON.[0] While the other ones do nothing; clear_highpage(), > > clear_user_highpage(),

Re: [PATCH net-next] net: sja1105: simplify the return sja1105_cls_flower_stats()

2020-12-09 Thread Jakub Kicinski
On Wed, 9 Dec 2020 17:25:04 +0800 Zheng Yongjun wrote: > Simplify the return expression. > > Signed-off-by: Zheng Yongjun Looks like this one doesn't apply cleanly to net-next.

[PATCH v7 3/8] IMA: define a hook to measure kernel integrity critical data

2020-12-09 Thread Tushar Sugandhi
IMA provides capabilities to measure file data, and in-memory buffer data. However, various data structures, policies, and states stored in kernel memory also impact the integrity of the system. Several kernel subsystems contain such integrity critical data. These kernel subsystems help protect

[PATCH v7 0/8] IMA: support for measuring kernel integrity critical data

2020-12-09 Thread Tushar Sugandhi
IMA measures files and buffer data such as keys, command-line arguments passed to the kernel on kexec system call, etc. While these measurements are necessary for monitoring and validating the integrity of the system, they are not sufficient. Various data structures, policies, and states stored in

Re: [PATCH] spi: Limit the spi device max speed to controller's max speed

2020-12-09 Thread Serge Semin
Hello Tudor, On Wed, Dec 09, 2020 at 07:35:14PM +0200, Tudor Ambarus wrote: > Make sure the max_speed_hz of spi_device does not override > the max_speed_hz of controller. I have doubts that's right thing to do. It seems better to let the controller driver to handle the speed clamping itself,

[PATCH v7 4/8] IMA: add policy rule to measure critical data

2020-12-09 Thread Tushar Sugandhi
A new IMA policy rule is needed for the IMA hook ima_measure_critical_data() and the corresponding func CRITICAL_DATA for measuring the input buffer. The policy rule should ensure the buffer would get measured only when the policy rule allows the action. The policy rule should also support the

[PATCH v7 1/8] IMA: generalize keyring specific measurement constructs

2020-12-09 Thread Tushar Sugandhi
IMA functions such as ima_match_keyring(), process_buffer_measurement(), ima_match_policy() etc. handle data specific to keyrings. Currently, these constructs are not generic to handle any func specific data. This makes it harder to extend them without code duplication. Refactor the keyring

Re: [PATCH v2 sl-b 3/5] mm: Make mem_dump_obj() handle vmalloc() memory

2020-12-09 Thread Paul E. McKenney
On Wed, Dec 09, 2020 at 08:36:37PM +0100, Uladzislau Rezki wrote: > On Tue, Dec 08, 2020 at 05:13:01PM -0800, paul...@kernel.org wrote: > > From: "Paul E. McKenney" > > > > This commit adds vmalloc() support to mem_dump_obj(). Note that the > > vmalloc_dump_obj() function combines the checking

[PATCH v7 6/8] IMA: extend critical data hook to limit the measurement based on a label

2020-12-09 Thread Tushar Sugandhi
The IMA hook ima_measure_critical_data() does not support a way to specify the source of the critical data provider. Thus, the data measurement cannot be constrained based on the data source label in the IMA policy. Extend the IMA hook ima_measure_critical_data() to support passing the data

Re: [PATCH v8] swiotlb: Adjust SWIOTBL bounce buffer size for SEV guests.

2020-12-09 Thread Borislav Petkov
On Wed, Dec 09, 2020 at 07:34:16PM +, Ashish Kalra wrote: > This should work, but i am concerned about making IO_TLB_DEFAULT_SIZE > (which is pretty much private to generic swiotlb code) to be visible > externally, i don't know if there are any concerns with that ? Meh, it's just a define and

[PATCH v7 5/8] IMA: limit critical data measurement based on a label

2020-12-09 Thread Tushar Sugandhi
System administrators should be able to limit which kernel subsystems they want to measure the critical data for. To enable that, an IMA policy condition to choose specific kernel subsystems is needed. This policy condition would constrain the measurement of the critical data based on a label for

[PATCH] mmc: owl-mmc: Fix a resource leak in an error handling path and in the remove function

2020-12-09 Thread Christophe JAILLET
'dma_request_chan()' calls should be balanced by a corresponding 'dma_release_channel()' call. Add the missing call both in the error handling path of the probe function and in the remove function. Fixes: ff65ffe46d28 ("mmc: Add Actions Semi Owl SoCs SD/MMC driver") Signed-off-by: Christophe

[PATCH v7 7/8] IMA: define a builtin critical data measurement policy

2020-12-09 Thread Tushar Sugandhi
From: Lakshmi Ramasubramanian Define a new critical data builtin policy to allow measuring early kernel integrity critical data before a custom IMA policy is loaded. Add critical data to built-in IMA rules if the kernel command line contains "ima_policy=critical_data". Update the documentation

[PATCH v7 8/8] selinux: include a consumer of the new IMA critical data hook

2020-12-09 Thread Tushar Sugandhi
From: Lakshmi Ramasubramanian IMA measures files and buffer data such as keys, command line arguments passed to the kernel on kexec system call, etc. While these measurements enable monitoring and validating the integrity of the system, it is not sufficient. Various data structures, policies and

Re: [PATCH] Staging: silabs si4455 serial driver

2020-12-09 Thread József Horváth
Hello Jérôme, On Wed, Dec 09, 2020 at 06:38:08PM +0100, Jérôme Pouiller wrote: > On Wednesday 9 December 2020 12:09:58 CET Info wrote: > > > > This is a serial port driver for > > Silicon Labs Si4455 Sub-GHz transciver. > > Hello József, > > Thank you for taking care of support of Silabs

[PATCH v7 2/8] IMA: add support to measure buffer data hash

2020-12-09 Thread Tushar Sugandhi
The original IMA buffer data measurement sizes were small (e.g. boot command line), but the new buffer data measurement use cases have data sizes that are a lot larger. Just as IMA measures the file data hash, not the file data, IMA should similarly support the option for measuring the hash of

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

2020-12-09 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 v26 02/12] landlock: Add ruleset and domain management

2020-12-09 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

[PATCH v26 00/12] Landlock LSM

2020-12-09 Thread Mickaël Salaün
Hi, This patch series adds new built-time checks, a new test, renames some variables and functions to improve readability, and shift syscall numbers to align with -next. The SLOC count is 1289 for security/landlock/ and 1791 for tools/testing/selftest/landlock/ . Test coverage for

Re: [PATCH v5 4/5] Driver core: platform: Add devm_platform_get_irqs_affinity()

2020-12-09 Thread Marc Zyngier
On 2020-12-09 19:13, Greg KH wrote: On Wed, Dec 09, 2020 at 07:04:02PM +, John Garry wrote: On 09/12/2020 18:32, Greg KH wrote: > On Wed, Dec 02, 2020 at 06:36:56PM +0800, John Garry wrote: > > Drivers for multi-queue platform devices may also want managed interrupts > > for handling HW

Re: [PATCH v2 sl-b 3/5] mm: Make mem_dump_obj() handle vmalloc() memory

2020-12-09 Thread Uladzislau Rezki
On Wed, Dec 09, 2020 at 06:51:20PM +0100, Vlastimil Babka wrote: > On 12/9/20 2:13 AM, paul...@kernel.org wrote: > > From: "Paul E. McKenney" > > > > This commit adds vmalloc() support to mem_dump_obj(). Note that the > > vmalloc_dump_obj() function combines the checking and dumping, in > >

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

2020-12-09 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 v26 03/12] landlock: Set up the security framework and manage credentials

2020-12-09 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

Re: [PATCH v11 0/4] Add support for mv88e6393x family of Marvell

2020-12-09 Thread Jakub Kicinski
On Wed, 9 Dec 2020 15:02:54 +1000 Pavana Sharma wrote: > Updated patchset after incorporating feedback. This set does not apply to net-next. Please rebase.

Re: [PATCH v5 4/5] Driver core: platform: Add devm_platform_get_irqs_affinity()

2020-12-09 Thread John Garry
On 09/12/2020 19:13, Greg KH wrote: Hi Greg, For this HW version, the device is on the system bus, directly addressable by the CPU. What do you mean by "system bus"? Maybe my terminology is wrong, the point is that we have a platform device driver. Motivation is that I wanted to

[PATCH] mt76: Fixed kernel test robot warning

2020-12-09 Thread Souptick Joarder
Kernel test robot throws below warning -> drivers/net/wireless/mediatek/mt76/tx.c: In function 'mt76_txq_schedule': >> drivers/net/wireless/mediatek/mt76/tx.c:499:21: warning: variable 'q' >> set but not used [-Wunused-but-set-variable] 499 | struct mt76_queue *q; |

Re: [PATCH v2 sl-b 3/5] mm: Make mem_dump_obj() handle vmalloc() memory

2020-12-09 Thread Uladzislau Rezki
On Tue, Dec 08, 2020 at 05:13:01PM -0800, paul...@kernel.org wrote: > From: "Paul E. McKenney" > > This commit adds vmalloc() support to mem_dump_obj(). Note that the > vmalloc_dump_obj() function combines the checking and dumping, in > contrast with the split between kmem_valid_obj() and

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

2020-12-09 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_current(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 v26 04/12] landlock: Add ptrace restrictions

2020-12-09 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(),

Re: [PATCH v8] swiotlb: Adjust SWIOTBL bounce buffer size for SEV guests.

2020-12-09 Thread Ashish Kalra
On Wed, Dec 09, 2020 at 06:51:05PM +0100, Borislav Petkov wrote: > On Wed, Dec 09, 2020 at 01:19:46PM +, Ashish Kalra wrote: > > reserve_crashkernel() calls swiotlb_size_or_default() to get SWIOTLB > ... > > Thanks for explaining. > > > There is a need to introduce an architecture specific

Re: [PATCH] dt-bindings: usb: Add new compatible string for AM64 SoC

2020-12-09 Thread Rob Herring
On Wed, Dec 09, 2020 at 10:27:32PM +0530, Aswath Govindraju wrote: > Add compatible string in j721e-usb binding file as similar USB subsystem > is present in AM64. > > Signed-off-by: Aswath Govindraju > Acked-by: Roger Quadros > --- > Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml | 7

Re: [PATCH] spi: dt-bindings: clarify CS behavior for spi-cs-high and gpio descriptors

2020-12-09 Thread H. Nikolaus Schaller
> Am 09.12.2020 um 20:04 schrieb Sven Van Asbroeck : > > On Wed, Dec 9, 2020 at 1:16 PM H. Nikolaus Schaller > wrote: >> >> This is also what made me wonder if that is really intended because then >> the whole discussion about the cs-gpio-flags and inversion and the fixes >> would not have

Re: [PATCH] dt-bindings: usb: Add new compatible string for AM64 SoC

2020-12-09 Thread Rob Herring
On Wed, 09 Dec 2020 22:27:32 +0530, Aswath Govindraju wrote: > Add compatible string in j721e-usb binding file as similar USB subsystem > is present in AM64. > > Signed-off-by: Aswath Govindraju > Acked-by: Roger Quadros > --- > Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml | 7

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

2020-12-09 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

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

2020-12-09 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 v26 10/12] selftests/landlock: Add user space tests

2020-12-09 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:

[PATCH v26 12/12] landlock: Add user and kernel documentation

2020-12-09 Thread Mickaël Salaün
From: Mickaël Salaün This documentation can be built with the Sphinx framework. Cc: James Morris Cc: Kees Cook Cc: Serge E. Hallyn Signed-off-by: Mickaël Salaün Reviewed-by: Vincent Dagonneau Reviewed-by: Jann Horn --- Changes since v24: * Add Reviewed-by: Jann Horn * Add a paragraph to

Does SCM_RIGHTS limit on fd array apply to a particular cmsghdr or the whole ancillary data?

2020-12-09 Thread Wolfgang Draxinger
Hi, in the documentation on SCM_RIGHTS the maximum number of file descriptors that can be passed is described as (release 5.09 of the Linux man-pages project): | SCM_RIGHTS | Send or receive a set of open file descriptors from another | process. The data portion contains an integer array of

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

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

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

2020-12-09 Thread Mickaël Salaün
From: Mickaël Salaün Thanks to the Landlock objects and ruleset, it is possible to identify 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

Re: [PATCH v2 5/7] ubsan: Enable for all*config builds

2020-12-09 Thread Arnd Bergmann
On Wed, Dec 9, 2020 at 7:46 PM Kees Cook wrote: > > On Thu, Dec 03, 2020 at 09:51:40AM +0100, Arnd Bergmann wrote: > > On Thu, Dec 3, 2020 at 1:44 AM Kees Cook wrote: > > > > > > With UBSAN_OBJECT_SIZE disabled for GCC, only UBSAN_ALIGNMENT remained > > > a noisy UBSAN option. Disable it for

Re: [PATCH v8 00/16] Add support for Clang LTO

2020-12-09 Thread Arnd Bergmann
On Wed, Dec 9, 2020 at 5:09 PM 'Sami Tolvanen' via Clang Built Linux wrote: > On Tue, Dec 8, 2020 at 1:02 PM Arnd Bergmann wrote: > > On Tue, Dec 8, 2020 at 9:59 PM Arnd Bergmann wrote: > > > > > > Attaching the config for "ld.lld: error: Never resolved function from > > > blockaddress

Re: [GIT PULL] IOMMU fix for 5.10 (-final)

2020-12-09 Thread Jerry Snitselaar
On Wed, Dec 9, 2020 at 12:18 PM Linus Torvalds wrote: > > On Wed, Dec 9, 2020 at 11:12 AM Jerry Snitselaar wrote: > > > > Since the field in the device table entry format expects it to be n > > where there are 2^n entries in the table I guess it should be: > > > > #define DTE_IRQ_TABLE_LEN 9 > >

Re: [GIT PULL] IOMMU fix for 5.10 (-final)

2020-12-09 Thread Linus Torvalds
On Wed, Dec 9, 2020 at 11:12 AM Jerry Snitselaar wrote: > > Since the field in the device table entry format expects it to be n > where there are 2^n entries in the table I guess it should be: > > #define DTE_IRQ_TABLE_LEN 9 > #define MAX_IRQS_PER_TABLE (1 << DTE_IRQ_TABLE_LEN) No, that

Re: [PATCH v4 11/19] sched/core: Make migrate disable and CPU hotplug cooperative

2020-12-09 Thread Valentin Schneider
On 08/12/20 13:46, Qian Cai wrote: > On Mon, 2020-12-07 at 19:27 +, Valentin Schneider wrote: >> Ok, can reproduce this on a TX2 on next-20201207. I didn't use your config, >> I oldconfig'd my distro config and only modified it to CONFIG_PREEMPT_NONE. >> Interestingly the BUG happens on

Re: [GIT PULL] IOMMU fix for 5.10 (-final)

2020-12-09 Thread Jerry Snitselaar
On Wed, Dec 9, 2020 at 12:12 PM Jerry Snitselaar wrote: > > > Will Deacon @ 2020-12-09 11:50 MST: > > > On Wed, Dec 09, 2020 at 10:07:46AM -0800, Linus Torvalds wrote: > >> On Wed, Dec 9, 2020 at 6:12 AM Will Deacon wrote: > >> > > >> > Please pull this one-liner AMD IOMMU fix for 5.10. It's

Re: [PATCH] files: rcu free files_struct

2020-12-09 Thread Linus Torvalds
On Wed, Dec 9, 2020 at 10:05 AM Eric W. Biederman wrote: > > - struct file * file = xchg(>fd[i], NULL); > + struct file * file = fdt->fd[i]; > if (file) { > +

Re: [GIT PULL] IOMMU fix for 5.10 (-final)

2020-12-09 Thread Jerry Snitselaar
Will Deacon @ 2020-12-09 11:50 MST: > On Wed, Dec 09, 2020 at 10:07:46AM -0800, Linus Torvalds wrote: >> On Wed, Dec 9, 2020 at 6:12 AM Will Deacon wrote: >> > >> > Please pull this one-liner AMD IOMMU fix for 5.10. It's actually a fix >> > for a fix, where the size of the interrupt remapping

Re: [PATCH 00/18] keys: Miscellaneous fixes

2020-12-09 Thread Ben Boeckel
On Wed, Dec 09, 2020 at 12:14:24 +, David Howells wrote: > I've extended my collection of minor keyrings fixes for the next merge > window. Anything else I should add (or anything I should drop)? > > The patches can be found on the following branch: > > >

Re: Urgent: BUG: PPP ioctl Transport endpoint is not connected

2020-12-09 Thread Martin Zaharinov
> On 9 Dec 2020, at 20:10, Guillaume Nault wrote: > > On Wed, Dec 09, 2020 at 06:57:44PM +0200, Martin Zaharinov wrote: >>> On 9 Dec 2020, at 18:40, Guillaume Nault wrote: >>> On Wed, Dec 09, 2020 at 04:47:52PM +0200, Martin Zaharinov wrote: Hi All I have problem with latest

Re: [PATCH v5 4/5] Driver core: platform: Add devm_platform_get_irqs_affinity()

2020-12-09 Thread Greg KH
On Wed, Dec 09, 2020 at 07:04:02PM +, John Garry wrote: > On 09/12/2020 18:32, Greg KH wrote: > > On Wed, Dec 02, 2020 at 06:36:56PM +0800, John Garry wrote: > > > Drivers for multi-queue platform devices may also want managed interrupts > > > for handling HW queue completion interrupts, so

Re: [PATCHv3 net-next] octeontx2-pf: Add RSS multi group support

2020-12-09 Thread Saeed Mahameed
On Wed, 2020-12-09 at 22:39 +0530, Geetha sowjanya wrote: > Hardware supports 8 RSS groups per interface. Currently we are using > only group '0'. This patch allows user to create new RSS > groups/contexts > and use the same as destination for flow steering rules. > > usage: > To steer the

Re: [PATCH] mm/vmalloc: randomize vmalloc() allocations

2020-12-09 Thread Topi Miettinen
On 3.12.2020 8.58, Mike Rapoport wrote: On Wed, Dec 02, 2020 at 08:49:06PM +0200, Topi Miettinen wrote: On 1.12.2020 23.45, Topi Miettinen wrote: Memory mappings inside kernel allocated with vmalloc() are in predictable order and packed tightly toward the low addresses. With new kernel boot

Re: [PATCH 07/18] KEYS: remove redundant memset

2020-12-09 Thread Ben Boeckel
On Wed, Dec 09, 2020 at 12:15:19 +, David Howells wrote: > From: Tom Rix > > Reviewing use of memset in keyctrl_pkey.c Typo: `keyctl_pkey.c` --Ben

[tip: x86/cache] x86/resctrl: Fix incorrect local bandwidth when mba_sc is enabled

2020-12-09 Thread tip-bot2 for Xiaochen Shen
The following commit has been merged into the x86/cache branch of tip: Commit-ID: 2ba836dbe2467d31fffb439258c2f454c6f1a317 Gitweb: https://git.kernel.org/tip/2ba836dbe2467d31fffb439258c2f454c6f1a317 Author:Xiaochen Shen AuthorDate:Fri, 04 Dec 2020 14:27:59 +08:00

Re: [PATCH] lockdep: report broken irq restoration

2020-12-09 Thread Andy Lutomirski
On Wed, Dec 9, 2020 at 10:33 AM Mark Rutland wrote: > > We generally expect local_irq_save() and local_irq_restore() to be > paired and sanely nested, and so local_irq_restore() expects to be > called with irqs disabled. Thus, within local_irq_restore() we only > trace irq flag changes when

[PATCH v3] drm/vkms: Add setup and testing information

2020-12-09 Thread Sumera Priyadarsini
Update the vkms documentation to contain steps to: - setup the vkms driver - run tests using igt Signed-off-by: Sumera Priyadarsini ___ Changes in v2: - Change heading to title case (Daniel) - Add examples to run tests directly (Daniel) - Add examples to run subtests (Melissa) Changes in

Re: [PATCH v5 4/5] Driver core: platform: Add devm_platform_get_irqs_affinity()

2020-12-09 Thread John Garry
On 09/12/2020 18:32, Greg KH wrote: On Wed, Dec 02, 2020 at 06:36:56PM +0800, John Garry wrote: Drivers for multi-queue platform devices may also want managed interrupts for handling HW queue completion interrupts, so add support. Hi Greg, Why would a platform device want all of this?

Re: [PATCH] spi: dt-bindings: clarify CS behavior for spi-cs-high and gpio descriptors

2020-12-09 Thread Sven Van Asbroeck
On Wed, Dec 9, 2020 at 1:16 PM H. Nikolaus Schaller wrote: > > This is also what made me wonder if that is really intended because then > the whole discussion about the cs-gpio-flags and inversion and the fixes > would not have been needed. The current code and fixes are all about > not ignoring

Re: [PATCH 1/2] mm: Allow architectures to request 'old' entries when prefaulting

2020-12-09 Thread Linus Torvalds
On Wed, Dec 9, 2020 at 10:40 AM Will Deacon wrote: > > > And yes, that probably means that you need to change "alloc_set_pte()" > > to actually pass in the real address, and leave "vmf->address" alone - > > so that it can know which ones are prefaulted and which one is real, > > but that sounds

Re: [PATCH v24 5/5] remoteproc: Add initial zynqmp R5 remoteproc driver

2020-12-09 Thread Mathieu Poirier
On Mon, Nov 30, 2020 at 07:57:17AM -0800, Ben Levinsky wrote: > R5 is included in Xilinx Zynq UltraScale MPSoC so by adding this > remotproc driver, we can boot the R5 sub-system in two different > configurations - > * Split > * Lockstep > > The Xilinx R5 Remoteproc Driver boots the

Re: [PATCH] Staging: silabs si4455 serial driver

2020-12-09 Thread Dan Carpenter
On Wed, Dec 09, 2020 at 06:56:13PM +, József Horváth wrote: > Thank you for your suggestions. I made the canges suggested by you. > > I'll test the driver in my development environment, then I'll come > back with a new patch soon. Take your time. No rush. > > I set up a mail client on my

Re: [PATCH mm 1/2] kasan: don't use read-only static keys

2020-12-09 Thread Marco Elver
On Wed, 9 Dec 2020 at 19:57, Kees Cook wrote: > > On Wed, Dec 09, 2020 at 07:49:36PM +0100, Marco Elver wrote: > > On Wed, 9 Dec 2020 at 19:24, Andrey Konovalov wrote: > > > __ro_after_init static keys are incompatible with usage in loadable kernel > > > modules and cause crashes. Don't use

Re: [PATCH mm 1/2] kasan: don't use read-only static keys

2020-12-09 Thread Kees Cook
On Wed, Dec 09, 2020 at 07:49:36PM +0100, Marco Elver wrote: > On Wed, 9 Dec 2020 at 19:24, Andrey Konovalov wrote: > > __ro_after_init static keys are incompatible with usage in loadable kernel > > modules and cause crashes. Don't use those, use normal static keys. > > > > Signed-off-by: Andrey

Re: [PATCH] Staging: silabs si4455 serial driver

2020-12-09 Thread József Horváth
On Wed, Dec 09, 2020 at 03:42:06PM +0300, Dan Carpenter wrote: > Change the From email header to say your name. > > The patch is corrupted and can't be applied. Please read the first > paragraphs of Documentation/process/email-clients.rst > > This driver is pretty small and it might be easier

Re: linux-next: build warning after merge of the akpm tree

2020-12-09 Thread Kees Cook
On Tue, Dec 08, 2020 at 11:01:57PM +1100, Stephen Rothwell wrote: > Hi Stephen, > > On Fri, 4 Dec 2020 21:00:00 +1100 Stephen Rothwell > wrote: > > > > Hi all, > > > > After merging the akpm tree, today's linux-next build (powerpc > > allyesconfig) produced warnings like this: > > > > ld:

RE: [PATCH net 1/4] net: freescale/fman: Split the main resource region reservation

2020-12-09 Thread Madalin Bucur
> -Original Message- > From: Patrick Havelange > Sent: 09 December 2020 16:17 > To: Madalin Bucur ; David S. Miller > ; Jakub Kicinski ; > net...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH net 1/4] net: freescale/fman: Split the main resource > region reservation

Re: [PATCH v2 1/3] KVM: x86: implement KVM_{GET|SET}_TSC_STATE

2020-12-09 Thread Marcelo Tosatti
On Tue, Dec 08, 2020 at 10:33:15PM +0100, Thomas Gleixner wrote: > On Tue, Dec 08 2020 at 15:11, Marcelo Tosatti wrote: > > On Tue, Dec 08, 2020 at 05:02:07PM +0100, Thomas Gleixner wrote: > >> On Tue, Dec 08 2020 at 16:50, Maxim Levitsky wrote: > >> > On Mon, 2020-12-07 at 20:29 -0300, Marcelo

Re: [PATCH] kcov: don't instrument with UBSAN

2020-12-09 Thread Kees Cook
On Wed, Dec 09, 2020 at 11:01:52AM +0100, Dmitry Vyukov wrote: > Both KCOV and UBSAN use compiler instrumentation. If UBSAN detects a bug > in KCOV, it may cause infinite recursion via printk and other common > functions. We already don't instrument KCOV with KASAN/KCSAN for this > reason, don't

Re: [PATCH -tip 23/32] sched: Add a per-thread core scheduling interface

2020-12-09 Thread Chris Hyser
On Sun, Dec 06, 2020 at 12:34:18PM -0500, Joel Fernandes wrote: > ... > Looks ok to me except the missing else { } clause you found. Also, maybe > dest/src can be renamed to from/to to make meaning of variables more clear? > > Also looking forward to the docs/test updates. > > thanks! > > -

Re: [PATCH v2 05/12] x86: rework arch_local_irq_restore() to not use popf

2020-12-09 Thread Thomas Gleixner
On Wed, Dec 09 2020 at 18:15, Mark Rutland wrote: > In arch/x86/kernel/apic/io_apic.c's timer_irq_works() we do: > > local_irq_save(flags); > local_irq_enable(); > > [ trigger an IRQ here ] > > local_irq_restore(flags); > > ... and in check_timer() we call that a number of

Re: [PATCH v3 0/2] siox: two cleanups

2020-12-09 Thread Greg Kroah-Hartman
On Wed, Nov 25, 2020 at 03:47:20PM +0100, Thorsten Scherer wrote: > Hello, > > On Wed, Nov 25, 2020 at 10:31:04AM +0100, Uwe Kleine-König wrote: > > Hello, > > > > compared to v2 sent starting with Message-Id: > > 20201124141834.3096325-1-u.kleine-koe...@pengutronix.de: > > > > - fix typo in

Re: [PATCH mm 2/2] Revert "kasan, arm64: don't allow SW_TAGS with ARM64_MTE"

2020-12-09 Thread Marco Elver
On Wed, 9 Dec 2020 at 19:24, Andrey Konovalov wrote: > > This reverts "kasan, arm64: don't allow SW_TAGS with ARM64_MTE". > > In earlier versions on the hardware tag-based KASAN patchset in-kernel > MTE used to be always enabled when CONFIG_ARM64_MTE is on. This caused > conflicts with the

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