[PATCH v5 06/18] nitro_enclaves: Handle out-of-band PCI device events

2020-07-15 Thread Andra Paraschiv
In addition to the replies sent by the Nitro Enclaves PCI device in response to command requests, out-of-band enclave events can happen e.g. an enclave crashes. In this case, the Nitro Enclaves driver needs to be aware of the event and notify the corresponding user space process that abstracts the

[PATCH v5 03/18] nitro_enclaves: Define enclave info for internal bookkeeping

2020-07-15 Thread Andra Paraschiv
The Nitro Enclaves driver keeps an internal info per each enclave. This is needed to be able to manage enclave resources state, enclave notifications and have a reference of the PCI device that handles command requests for enclave lifetime management. Signed-off-by: Alexandru-Catalin Vasile Sign

[PATCH v5 08/18] nitro_enclaves: Add logic for creating an enclave VM

2020-07-15 Thread Andra Paraschiv
Add ioctl command logic for enclave VM creation. It triggers a slot allocation. The enclave resources will be associated with this slot and it will be used as an identifier for triggering enclave run. Return a file descriptor, namely enclave fd. This is further used by the associated user space en

[PATCH v5 05/18] nitro_enclaves: Handle PCI device command requests

2020-07-15 Thread Andra Paraschiv
The Nitro Enclaves PCI device exposes a MMIO space that this driver uses to submit command requests and to receive command replies e.g. for enclave creation / termination or setting enclave resources. Add logic for handling PCI device command requests based on the given command type. Register an

[PATCH v5 04/18] nitro_enclaves: Init PCI device driver

2020-07-15 Thread Andra Paraschiv
The Nitro Enclaves PCI device is used by the kernel driver as a means of communication with the hypervisor on the host where the primary VM and the enclaves run. It handles requests with regard to enclave lifetime. Setup the PCI device driver and add support for MSI-X interrupts. Signed-off-by: A

[PATCH v5 13/18] nitro_enclaves: Add logic for terminating an enclave

2020-07-15 Thread Andra Paraschiv
An enclave is associated with an fd that is returned after the enclave creation logic is completed. This enclave fd is further used to setup enclave resources. Once the enclave needs to be terminated, the enclave fd is closed. Add logic for enclave termination, that is mapped to the enclave fd rel

[PATCH v5 09/18] nitro_enclaves: Add logic for setting an enclave vCPU

2020-07-15 Thread Andra Paraschiv
An enclave, before being started, has its resources set. One of its resources is CPU. A NE CPU pool is set and enclave CPUs are chosen from it. Offline the CPUs from the NE CPU pool during the pool setup and online them back during the NE CPU pool teardown. The CPU offline is necessary so that the

[PATCH v5 12/18] nitro_enclaves: Add logic for starting an enclave

2020-07-15 Thread Andra Paraschiv
After all the enclave resources are set, the enclave is ready for beginning to run. Add ioctl command logic for starting an enclave after all its resources, memory regions and CPUs, have been set. The enclave start information includes the local channel addressing - vsock CID - and the flags asso

[PATCH v5 10/18] nitro_enclaves: Add logic for getting the enclave image load info

2020-07-15 Thread Andra Paraschiv
Before setting the memory regions for the enclave, the enclave image needs to be placed in memory. After the memory regions are set, this memory cannot be used anymore by the VM, being carved out. Add ioctl command logic to get the offset in enclave memory where to place the enclave image. Then th

[PATCH v5 14/18] nitro_enclaves: Add Kconfig for the Nitro Enclaves driver

2020-07-15 Thread Andra Paraschiv
Signed-off-by: Andra Paraschiv --- Changelog v4 -> v5 * Add arch dependency for Arm / x86. v3 -> v4 * Add PCI and SMP dependencies. v2 -> v3 * Remove the GPL additional wording as SPDX-License-Identifier is already in place. v1 -> v2 * Update path to Kconfig to match the drivers/virt/nit

[PATCH v5 11/18] nitro_enclaves: Add logic for setting an enclave memory region

2020-07-15 Thread Andra Paraschiv
Another resource that is being set for an enclave is memory. User space memory regions, that need to be backed by contiguous memory regions, are associated with the enclave. One solution for allocating / reserving contiguous memory regions, that is used for integration, is hugetlbfs. The user spac

[PATCH v5 16/18] nitro_enclaves: Add sample for ioctl interface usage

2020-07-15 Thread Andra Paraschiv
Signed-off-by: Alexandru Vasile Signed-off-by: Andra Paraschiv --- Changelog v4 -> v5 * Print enclave vCPU ids when they are created. * Update logic to map the modified vCPU ioctl call. * Add check for the path to the enclave image to be less than PATH_MAX. * Update the ioctl calls error checki

[PATCH v5 17/18] nitro_enclaves: Add overview documentation

2020-07-15 Thread Andra Paraschiv
Signed-off-by: Andra Paraschiv --- Changelog v4 -> v5 * No changes. v3 -> v4 * Update doc type from .txt to .rst. * Update documentation based on the changes from v4. v2 -> v3 * No changes. v1 -> v2 * New in v2. --- Documentation/nitro_enclaves/ne_overview.rst | 87 1

[PATCH v5 18/18] MAINTAINERS: Add entry for the Nitro Enclaves driver

2020-07-15 Thread Andra Paraschiv
Signed-off-by: Andra Paraschiv --- Changelog v4 -> v5 * No changes. v3 -> v4 * No changes. v2 -> v3 * Update file entries to be in alphabetical order. v1 -> v2 * No changes. --- MAINTAINERS | 13 + 1 file changed, 13 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index

[PATCH v5 15/18] nitro_enclaves: Add Makefile for the Nitro Enclaves driver

2020-07-15 Thread Andra Paraschiv
Signed-off-by: Andra Paraschiv Reviewed-by: Alexander Graf --- Changelog v4 -> v5 * No changes. v3 -> v4 * No changes. v2 -> v3 * Remove the GPL additional wording as SPDX-License-Identifier is already in place. v1 -> v2 * Update path to Makefile to match the drivers/virt/nitro_enclaves

Re: [PATCH v4 70/75] x86/head/64: Don't call verify_cpu() on starting APs

2020-07-15 Thread Kees Cook
On Wed, Jul 15, 2020 at 05:48:56PM +0200, Joerg Roedel wrote: > It is actually the CPUID instructions that cause #VC exceptions. The > MSRs that are accessed on AMD processors are not intercepted in the > hypervisors this code has been tested on, so these will not cause #VC > exceptions. Aaah. I s

Re: [PATCH v6 10/18] sh/tlb: Convert SH to generic mmu_gather

2020-07-15 Thread John Paul Adrian Glaubitz
Hi Rob! On 12/5/19 8:24 PM, Rob Landley wrote: > No, but most people running this kind of hardware tend not to upgrade to > current > kernels on a regular basis. > > The j-core guys tested the 5.3 release. I can't find an email about 5.4 so I > dunno if that's been tested yet? > > I just tested

Re: [PATCH v2] hwmon: corsair-cpro: Change to HID driver

2020-07-15 Thread Guenter Roeck
On 7/15/20 12:12 PM, Marius Zachmann wrote: > On 15.07.20 at 17:35:08 CEST, Guenter Roeck wrote >> On 7/15/20 8:14 AM, Marius Zachmann wrote: >>> This changes corsair-cpro to a hid driver using hid reports. >>> >>> Signed-off-by: Marius Zachmann >>> >>> --- >> > ... >>> -module_usb_driver(ccp_driv

Re: [PATCH v2 00/11] Fix PM hibernation in Xen guests

2020-07-15 Thread Anchal Agarwal
On Mon, Jul 13, 2020 at 03:43:33PM -0400, Boris Ostrovsky wrote: > CAUTION: This email originated from outside of the organization. Do not click > links or open attachments unless you can confirm the sender and know the > content is safe. > > > > On 7/10/20 2:17 PM, Agarwal, Anchal wrote: > >

Re: [PATCH v3 1/3] kprobes: Add text_alloc() and text_free()

2020-07-15 Thread Mike Rapoport
On Wed, Jul 15, 2020 at 12:36:02PM -0700, Kees Cook wrote: > On Wed, Jul 15, 2020 at 01:32:27AM +0300, Jarkko Sakkinen wrote: > > Introduce new API for allocating space for code generaed at run-time > > leveraging from module_alloc() and module_memfree() code. Use this to > > perform memory allocat

Re: [PATCH v3 1/3] kprobes: Add text_alloc() and text_free()

2020-07-15 Thread Kees Cook
On Wed, Jul 15, 2020 at 10:49:33PM +0300, Mike Rapoport wrote: > On Wed, Jul 15, 2020 at 12:36:02PM -0700, Kees Cook wrote: > > On Wed, Jul 15, 2020 at 01:32:27AM +0300, Jarkko Sakkinen wrote: > > > Introduce new API for allocating space for code generaed at run-time > > > leveraging from module_al

Re: [PATCH v2] hwmon: corsair-cpro: Change to HID driver

2020-07-15 Thread Marius Zachmann
On 15.07.20 at 21:49:59 CEST, Guenter Roeck wrote > On 7/15/20 12:12 PM, Marius Zachmann wrote: > > On 15.07.20 at 17:35:08 CEST, Guenter Roeck wrote > >> On 7/15/20 8:14 AM, Marius Zachmann wrote: > >>> This changes corsair-cpro to a hid driver using hid reports. > >>> > >>> Signed-off-by: Marius

Re: [PATCH] dt-bindings: pci: convert QCOM pci bindings to YAML

2020-07-15 Thread Rob Herring
On Wed, Jun 24, 2020 at 12:32:04PM +0530, Sivaprakash Murugesan wrote: > Convert QCOM pci bindings to YAML schema > > Signed-off-by: Sivaprakash Murugesan > --- > .../devicetree/bindings/pci/qcom,pcie.txt | 330 --- > .../devicetree/bindings/pci/qcom,pcie.yaml | 470

possible deadlock in uprobe_clear_state (2)

2020-07-15 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:a581387e Merge tag 'io_uring-5.8-2020-07-10' of git://git... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=111a004f10 kernel config: https://syzkaller.appspot.com/x/.config?x=66ad203c2bb6d8b dash

Re: [PATCH 1/3] dt-bindings: pinctrl: Add bindings for Actions S500 SoC

2020-07-15 Thread Rob Herring
On Thu, Jun 25, 2020 at 11:16:18PM +0300, Cristian Ciocaltea wrote: > Add pinctrl and gpio bindings for Actions Semi S500 SoC. > > Signed-off-by: Cristian Ciocaltea > --- > .../pinctrl/actions,s500-pinctrl.yaml | 228 ++ > 1 file changed, 228 insertions(+) > create mode

Re: [PATCH 2/4] KVM: x86: Introduce paravirt feature CR0/CR4 pinning

2020-07-15 Thread Andersen, John
On Tue, Jul 14, 2020 at 09:41:29PM -0700, Sean Christopherson wrote: > On Tue, Jul 14, 2020 at 05:39:30AM +, Andersen, John wrote: > > With regards to FSGSBASE, are we open to validating and adding that to the > > DEFAULT set as a part of a separate patchset? This patchset is focused on > > rep

Re: [PATCH] drm/msm/adreno: fix gpu probe if no interconnect-names

2020-07-15 Thread Jordan Crouse
On Wed, Jul 15, 2020 at 12:07:30PM -0700, Rob Clark wrote: > From: Rob Clark > > If there is no interconnect-names, but there is an interconnects > property, then of_icc_get(dev, "gfx-mem"); would return an error > rather than NULL. > > Also, if there is no interconnect-names property, there wil

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

2020-07-15 Thread Kees Cook
On Tue, Jul 14, 2020 at 08:16:35PM +0200, Mickaël Salaün wrote: > 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 n

Re: [RFC PATCH bpf-next 0/3] bpf, riscv: Add compressed instructions to rv64 JIT

2020-07-15 Thread Luke Nelson
> > First of all; Really nice work. I like this, and it makes the code > easier to read as well (e.g. emit_mv). I'm a bit curious why you only > did it for RV64, and not RV32? I have some minor comments on the > patches. I strongly encourage you to submit this as a proper (non-RFC) > set for bpf-ne

[PATCH v2] Drivers: hv: vmbus: Copy packets sent by Hyper-V out of the ring buffer

2020-07-15 Thread Andres Beltran
Pointers to ring-buffer packets sent by Hyper-V are used within the guest VM. Hyper-V can send packets with erroneous values or modify packet fields after they are processed by the guest. To defend against these scenarios, return a copy of the incoming VMBus packet after validating its length and o

Re: strace of io_uring events?

2020-07-15 Thread Miklos Szeredi
On Wed, Jul 15, 2020 at 9:43 PM Pavel Begunkov wrote: > > To clear details for those who are not familiar with io_uring: > > io_uring has a pair of queues, submission (SQ) and completion queues (CQ), > both shared between kernel and user spaces. The userspace submits requests > by filling a chunk

[PATCH v3 0/3] um: allow static linking for non-glibc libc implementations

2020-07-15 Thread Ignat Korchagin
Changes from v2: * rebased to accomodate b816b3db15f68690ee72a4a414624f8e82942b25 ("kbuild: fix CONFIG_CC_CAN_LINK(_STATIC) for cross-compilation with Clang") * removed unused FORBID_STATIC_LINK config option * cc-ed Masahiro Yamada for can-link.sh approve This is a continuation of [1]. Si

[PATCH v3 2/3] um: some fixes to build UML with musl

2020-07-15 Thread Ignat Korchagin
musl toolchain and headers are a bit more strict. These fixes enable building UML with musl as well as seem not to break on glibc. Signed-off-by: Ignat Korchagin Tested-by: Brendan Higgins --- arch/um/drivers/daemon_user.c | 1 + arch/um/drivers/pcap_user.c | 12 ++-- arch/um/drivers

[PATCH v3 3/3] um: allow static linking for non-glibc implementations

2020-07-15 Thread Ignat Korchagin
It is possible to produce a statically linked UML binary with UML_NET_VECTOR, UML_NET_VDE and UML_NET_PCAP options enabled using alternative libc implementations, which do not rely on NSS, such as musl. Allow static linking in this case. Signed-off-by: Ignat Korchagin Reviewed-by: Brendan Higgin

Re: [PATCH v2] hwmon: corsair-cpro: Change to HID driver

2020-07-15 Thread Guenter Roeck
On 7/15/20 12:55 PM, Marius Zachmann wrote: > On 15.07.20 at 21:49:59 CEST, Guenter Roeck wrote >> On 7/15/20 12:12 PM, Marius Zachmann wrote: >>> On 15.07.20 at 17:35:08 CEST, Guenter Roeck wrote On 7/15/20 8:14 AM, Marius Zachmann wrote: > This changes corsair-cpro to a hid driver using

[PATCH v3 1/3] um/kconfig: introduce CC_CAN_LINK_STATIC_NO_RUNTIME_DEPS

2020-07-15 Thread Ignat Korchagin
For statically linked UML build it is important to take into account the standard C-library implementation. Some implementations, notably glibc have caveats: even when linked statically, the final program might require some runtime dependencies, if certain functions are used within the code. Consi

Re: [PATCH 1/2] reboot: add a "power cycle" quirk to prepare for a power off on reboot

2020-07-15 Thread Martin K. Petersen
Christoph, > Except for the fact that I think that usage of the BIT() macro is > a horrible pattern, this looks good: > > Reviewed-by: Christoph Hellwig Looks good to me too. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 4/4] dt-bindings: tas2562: Convert the tas2562 binding to yaml

2020-07-15 Thread Rob Herring
On Fri, Jun 26, 2020 at 10:41:43AM -0500, Dan Murphy wrote: > Convert the TAS2562 text file to yaml format. > > Signed-off-by: Dan Murphy > --- > .../devicetree/bindings/sound/tas2562.txt | 37 - > .../devicetree/bindings/sound/tas2562.yaml| 77 +++ > 2 files chan

Re: [PATCH v4 1/2] remoteproc: Add remoteproc character device interface

2020-07-15 Thread Mathieu Poirier
On Tue, Jul 07, 2020 at 12:07:49PM -0700, Siddharth Gupta wrote: > Add the character device interface into remoteproc framework. > This interface can be used in order to boot/shutdown remote > subsystems and provides a basic ioctl based interface to implement > supplementary functionality. An ioctl

Re: [PATCH v3 0/2] Export max open zones and max active zones to sysfs

2020-07-15 Thread Martin K. Petersen
Niklas, > Export max open zones and max active zones to sysfs. Looks fine. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] af_packet: TPACKET_V3: replace busy-wait loop

2020-07-15 Thread Jakub Kicinski
On Tue, 7 Jul 2020 17:28:04 +0206 John Ogness wrote: > A busy-wait loop is used to implement waiting for bits to be copied > from the skb to the kernel buffer before retiring a block. This is > a problem on PREEMPT_RT because the copying task could be preempted > by the busy-waiting task and thus

Re: strace of io_uring events?

2020-07-15 Thread Pavel Begunkov
On 15/07/2020 23:09, Miklos Szeredi wrote: > On Wed, Jul 15, 2020 at 9:43 PM Pavel Begunkov wrote: >> >> To clear details for those who are not familiar with io_uring: >> >> io_uring has a pair of queues, submission (SQ) and completion queues (CQ), >> both shared between kernel and user spaces. Th

Re: [PATCH 1/2] dt: bindings: Add new regulator as optional property for WCN3990

2020-07-15 Thread Rob Herring
On Fri, 26 Jun 2020 23:31:41 +0530, Rakesh Pillai wrote: > Add an additional regulator supply as an optional > property for WCN3990. > > Tested-on: WCN3990 hw1.0 SNOC WLAN.HL.3.1-01040-QCAHLSWMTPLZ-1 > > Signed-off-by: Rakesh Pillai > --- > Documentation/devicetree/bindings/net/wireless/qcom,at

[PATCH 03/10] media: uapi: h264: Split prediction weight parameters

2020-07-15 Thread Ezequiel Garcia
The prediction weight parameters are only required under certain conditions, which depend on slice header parameters. The slice header syntax specifies that the prediction weight table is present if: ((weighted_pred_flag && (slice_type == P || slice_type == SP)) || \ (weighted_bipred_idc == 1 &&

[PATCH 01/10] media: uapi: h264: Update reference lists

2020-07-15 Thread Ezequiel Garcia
From: Jernej Skrabec When dealing with with interlaced frames, reference lists must tell if each particular reference is meant for top or bottom field. This info is currently not provided at all in the H264 related controls. Make reference lists hold a structure which will also hold flags along

Re: [PATCH v2] hwmon: corsair-cpro: Change to HID driver

2020-07-15 Thread Marius Zachmann
On 15.07.20 at 22:11:39 CEST, Guenter Roeck wrote > On 7/15/20 12:55 PM, Marius Zachmann wrote: > > On 15.07.20 at 21:49:59 CEST, Guenter Roeck wrote > >> On 7/15/20 12:12 PM, Marius Zachmann wrote: > >>> On 15.07.20 at 17:35:08 CEST, Guenter Roeck wrote > On 7/15/20 8:14 AM, Marius Zachmann w

[PATCH 04/10] media: uapi: h264: Clarify pic_order_cnt_bit_size field

2020-07-15 Thread Ezequiel Garcia
From: Philipp Zabel Since pic_order_cnt_bit_size is not a syntax element itself, explicitly state that it is the total size in bits of the pic_order_cnt_lsb, delta_pic_order_cnt_bottom, delta_pic_order_cnt[0], and delta_pic_order_cnt[1] syntax elements contained in the slice. Signed-off-by: Phil

[PATCH 02/10] media: uapi: h264: Further clarify scaling lists order

2020-07-15 Thread Ezequiel Garcia
Commit 0b0393d59eb4a ("media: uapi: h264: clarify expected scaling_list_4x4/8x8 order") improved the documentation on H264 scaling lists order. This commit improves the documentation by clarifying that the lists themselves are expected in matrix order. Signed-off-by: Ezequiel Garcia --- Documen

[PATCH 05/10] media: uapi: h264: Increase size of 'first_mb_in_slice' field

2020-07-15 Thread Ezequiel Garcia
Slice header syntax element 'first_mb_in_slice' can point to the last macroblock, currently the field can only reference 65536 macroblocks which is insufficient for 8K videos. Although unlikely, a 8192x4320 video (where macroblocks are 16x16), would contain 138240 macroblocks on a frame. As per t

[PATCH 06/10] media: uapi: h264: Cleanup DPB entry interface

2020-07-15 Thread Ezequiel Garcia
As discussed recently, the current interface for the Decoded Picture Buffer is not enough to properly support field coding. This commit introduces enough semantics to support frame and field coding, and to signal how DPB entries are "used for reference". Signed-off-by: Ezequiel Garcia --- .../m

[PATCH 0/7] media: Clean H264 stateless uAPI

2020-07-15 Thread Ezequiel Garcia
The recent patch posted by Jernej (which I'm including for context), encouraged me to address all the known issues in the uAPI. I hope we can finally make this uAPI interface public; and then also address the other codec interfaces so we can move the codec drivers out of staging. It should be not

[PATCH 08/10] media: uapi: h264: Clean slice invariants syntax elements

2020-07-15 Thread Ezequiel Garcia
The H.264 specification requires in its "Slice header semantics" section that the following values shall be the same in all slice headers: pic_parameter_set_id frame_num field_pic_flag bottom_field_flag idr_pic_id pic_order_cnt_lsb delta_pic_order_cnt_bottom delta_pic_order_cnt[ 0

[PATCH 09/10] media: hantro: Don't require unneeded H264_SLICE_PARAMS

2020-07-15 Thread Ezequiel Garcia
Now that slice invariant parameters have been moved, the driver no longer needs this control, so drop it. Signed-off-by: Ezequiel Garcia --- drivers/staging/media/hantro/hantro_drv.c | 5 - drivers/staging/media/hantro/hantro_h264.c | 5 - drivers/staging/media/hantro/hantro_hw.h | 2

[PATCH 07/10] media: uapi: h264: Increase size of DPB entry pic_num

2020-07-15 Thread Ezequiel Garcia
DPB entry PicNum maximum value is 2*MaxFrameNum for interlaced content (field_pic_flag=1). As specified, MaxFrameNum is 2^(log2_max_frame_num_minus4 + 4) and log2_max_frame_num_minus4 is in the range of 0 to 12, which means pic_num should be a 32-bit field. The v4l2_h264_dpb_entry struct needs to

Re: [PATCH 1/2] dt-bindings: pinctrl: qcom: Add msm8226 pinctrl bindings

2020-07-15 Thread Rob Herring
On Sat, Jun 27, 2020 at 09:28:30PM +0200, Bartosz Dudziak wrote: > Add device tree binding Documentation details for Qualcomm msm8226 > pinctrl driver. > > - Bindings documentation was based on qcom,sm8250-pinctrl.yaml by > Bjorn Andersson and then modified for > msm8226 content > > Signed-o

[PATCH 10/10] media: rkvdec: Don't require unneeded H264_SLICE_PARAMS

2020-07-15 Thread Ezequiel Garcia
Now that slice invariant parameters have been moved, the driver no longer needs this control, so drop it. Signed-off-by: Ezequiel Garcia --- drivers/staging/media/rkvdec/rkvdec-h264.c | 4 drivers/staging/media/rkvdec/rkvdec.c | 5 - 2 files changed, 9 deletions(-) diff --git a/dr

Re: [PATCH 1/3] dt-bindings: ARM: imx: add kamstrup flex concentrator to schema

2020-07-15 Thread Rob Herring
On Mon, 29 Jun 2020 13:49:25 +0200, Bruno Thomsen wrote: > Add Kamstrup flex concentrator compatibles to the schema so we can > make use of them for the validation. > > Signed-off-by: Bruno Thomsen > --- > Documentation/devicetree/bindings/arm/fsl.yaml | 2 ++ > 1 file changed, 2 insertions(+) >

Re: [PATCH v3 0/2] Export max open zones and max active zones to sysfs

2020-07-15 Thread Jens Axboe
On 7/14/20 3:18 PM, Niklas Cassel wrote: > Export max open zones and max active zones to sysfs. > > This patch series in based on Jens's linux-block/for-next branch. > > All zoned block devices in the kernel utilize the "zoned block device > support" (CONFIG_BLK_DEV_ZONED). > > The Zoned Namespa

Re: [PATCH] dt-bindings: arm: samsung: Do not require clkout on Exynos5260 and Exynos7

2020-07-15 Thread Rob Herring
On Mon, 29 Jun 2020 22:38:59 +0200, Krzysztof Kozlowski wrote: > The PMU (Power Management Unit) driver is a clkout clock provider (for > clock signal monitoring) only for certain Exynos SoCs. It was never > implemented for Exynos5260 and Exynos7. This fixes dtschema validator > warnings like: >

Re: [PATCH 16/30] scsi: arcmsr: arcmsr_hba: Make room for the trailing NULL, even if it is over-written

2020-07-15 Thread Martin K. Petersen
Lee, > Ensure we do not copy the final one (which is not overwitten). > > - strncpy(&inqdata[8], "Areca ", 8); > + strncpy(&inqdata[8], "Areca ", 9); > /* Vendor Identification */ > - strncpy(&inqdata[16], "RAID controller ", 16); > +

Re: [PATCH 2/3] ARM: dts: imx7: add support for kamstrup flex concentrator

2020-07-15 Thread Fabio Estevam
Hi Bruno, On Wed, Jul 15, 2020 at 11:22 AM Bruno Thomsen wrote: > Thanks for the hints. > > Yes, the address is correct and configured with external resistors, > but just realised that I wrote the wrong device name in the comment, > it's actually KSZ8081RNB. > > Ethernet has been working with mu

Re: [PATCH] MAINTAINERS: update Amit Kucheria's email to a single email address

2020-07-15 Thread Rob Herring
On Tue, 30 Jun 2020 11:52:32 +0530, Amit Kucheria wrote: > Emails currently go to different mailboxes. Switch to the kernel.org > address so I can forward them to a single mailbox. > > Signed-off-by: Amit Kucheria > --- > Documentation/devicetree/bindings/thermal/qcom-tsens.yaml | 2 +- > MAINTA

[PATCH v3] hwmon: corsair-cpro: Change to HID driver

2020-07-15 Thread Marius Zachmann
This changes corsair-cpro to a hid driver using hid reports. Signed-off-by: Marius Zachmann --- Changes from v2 - add more explanatory comment to justify late_initcall Changes from v1 - add comment at the beginning about using hid and hidraw - use hwmon_device_register_with_info and hwmon_devic

Re: [PATCH net-next v6 1/4] net: phy: add USXGMII link partner ability constants

2020-07-15 Thread Michael Walle
Am 2020-07-13 20:37, schrieb Michael Walle: Am 2020-07-13 20:23, schrieb Russell King - ARM Linux admin: On Thu, Jul 09, 2020 at 11:35:23PM +0200, Michael Walle wrote: The constants are taken from the USXGMII Singleport Copper Interface specification. The naming are based on the SGMII ones, but

Re: [PATCH] of/address: Fix variable name in comment of of_iomap

2020-07-15 Thread Rob Herring
On Thu, 02 Jul 2020 00:24:44 +0800, Wenchao Hao wrote: > The first variable name of of_iomap is np while previous > comment write device here. > > Signed-off-by: Wenchao Hao > --- > drivers/of/address.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Applied, thanks!

Re: [PATCH v6 5/7] fs,doc: Enable to enforce noexec mounts or file exec through O_MAYEXEC

2020-07-15 Thread Kees Cook
On Tue, Jul 14, 2020 at 08:16:36PM +0200, Mickaël Salaün wrote: > @@ -2849,7 +2855,7 @@ static int may_open(const struct path *path, int > acc_mode, int flag) > case S_IFLNK: > return -ELOOP; > case S_IFDIR: > - if (acc_mode & (MAY_WRITE | MAY_EXEC)) > +

Re: [PATCH v6 6/7] selftest/openat2: Add tests for O_MAYEXEC enforcing

2020-07-15 Thread Kees Cook
On Tue, Jul 14, 2020 at 08:16:37PM +0200, Mickaël Salaün wrote: > Test propagation of noexec mount points or file executability through > files open with or without O_MAYEXEC, thanks to the > fs.open_mayexec_enforce sysctl. > > Signed-off-by: Mickaël Salaün > Reviewed-by: Thibaut Sautereau > Cc:

Re: [PATCH] Staging: speakup: Replace HTTP links with HTTPS ones

2020-07-15 Thread Samuel Thibault
Alexander A. Klimov, le lun. 13 juil. 2020 11:13:05 +0200, a ecrit: > Rationale: > Reduces attack surface on kernel devs opening the links for MITM > as HTTPS traffic is much harder to manipulate. > > Deterministic algorithm: > For each file: > If not .svg: > For each line: > If doesn'

RE: [PATCH] cpufreq: intel_pstate: Implement passive mode with HWP enabled

2020-07-15 Thread Doug Smythies
On 2020.07.14 11:16 Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki ... > Since the passive mode hasn't worked with HWP at all, and it is not going to > the default for HWP systems anyway, I don't see any drawbacks related to > making > this change, so I would consider this as 5.9 material

Re: [PATCH v6 7/7] ima: add policy support for the new file open MAY_OPENEXEC flag

2020-07-15 Thread Kees Cook
On Tue, Jul 14, 2020 at 08:16:38PM +0200, Mickaël Salaün wrote: > From: Mimi Zohar > > The kernel has no way of differentiating between a file containing data > or code being opened by an interpreter. The proposed O_MAYEXEC > openat2(2) flag bridges this gap by defining and enabling the > MAY_OP

Re: [PATCH v5 07/13] pwm: add support for sl28cpld PWM controller

2020-07-15 Thread Michael Walle
Hi Uwe, Am 2020-07-15 20:18, schrieb Uwe Kleine-König: On Wed, Jul 15, 2020 at 07:45:10PM +0200, Michael Walle wrote: Am 2020-07-15 18:36, schrieb Uwe Kleine-König: > On Tue, Jul 14, 2020 at 11:09:28PM +0200, Michael Walle wrote: > > > My wishlist (just as it comes to my mind, so no guarantee

[PATCH 2/3] arm64: stacktrace: Make stack walk callback consistent with generic code

2020-07-15 Thread Mark Brown
As with the generic arch_stack_walk() code the arm64 stack walk code takes a callback that is called per stack frame. Currently the arm64 code always passes a struct stackframe to the callback and the generic code just passes the pc, however none of the users ever reference anything in the struct o

[PATCH 0/3] arm64: Convert to ARCH_STACKWALK

2020-07-15 Thread Mark Brown
This series updates the arm64 stacktrace code to use the newer and much simpler arch_stack_walk() interface, the main benefit being a single entry point to the arch code with no need for the arch code to worry about skipping frames. Along the way I noticed that the reliable parameter to the arch_st

Re: [PATCH 1/2] doc: filesystems: proc: Remove stray '-' preventing table output

2020-07-15 Thread Chris Packham
On 15/07/20 1:51 am, Jonathan Corbet wrote: > On Tue, 14 Jul 2020 21:06:43 +1200 > Chris Packham wrote: > >> When processing proc.rst sphinx complained >> >>Documentation/filesystems/proc.rst:548: WARNING: Malformed table. >>Text in column margin in table line 29. >> >> This caused the en

[PATCH 1/3] stacktrace: Remove reliable argument from arch_stack_walk() callback

2020-07-15 Thread Mark Brown
Currently the callback passed to arch_stack_walk() has an argument called reliable passed to it to indicate if the stack entry is reliable, a comment says that this is used by some printk() consumers. However in the current kernel none of the arch_stack_walk() implementations ever set this flag to

Re: [PATCH 0/3] bootconfig: Add value override operator

2020-07-15 Thread Steven Rostedt
On Thu, 16 Jul 2020 01:00:21 +0900 Masami Hiramatsu wrote: > With this change, if the bootloader wants to change some value > in the default bootconfig, it doesn't need to parse the existing > bootconfig, but it can just append the new configs at the tail > of the bootconfig and update the footer

[PATCH 3/3] arm64: stacktrace: Convert to ARCH_STACKWALK

2020-07-15 Thread Mark Brown
Historically architectures have had duplicated code in their stack trace implementations for filtering what gets traced. In order to avoid this duplication some generic code has been provided using a new interface arch_stack_walk(), enabled by selecting ARCH_STACKWALK in Kconfig, which factors all

Re: [PATCH 0/4] ASoC: fsl_asrc: allow selecting arbitrary clocks

2020-07-15 Thread Nicolin Chen
On Wed, Jul 15, 2020 at 06:18:38PM +0200, Arnaud Ferraris wrote: > Hi, > > Le 15/07/2020 à 16:05, Mark Brown a écrit : > > On Tue, Jul 14, 2020 at 01:50:50PM -0700, Nicolin Chen wrote: > > Anything wrong with ASRC selecting SSI1 clock for both cases? The > > driver calculates the divisors based on

Re: [PATCH 2/2] doc: filesystems: proc: Fix literal blocks

2020-07-15 Thread Chris Packham
Hi Jon, On 14/07/20 9:06 pm, Chris Packham wrote: > Sphinx complains > >Documentation/filesystems/proc.rst:2194: WARNING: Inconsistent literal > block quoting. > > Update the command line snippets to be properly formed literal blocks. > > Signed-off-by: Chris Packham > --- > Documentation/

Re: [PATCH v2 1/1] ASoC: fsl: fsl-asoc-card: Trivial: Fix misspelling of 'exists'

2020-07-15 Thread Nicolin Chen
On Wed, Jul 15, 2020 at 04:00:09PM +0100, Lee Jones wrote: > Cc: Timur Tabi > Cc: Nicolin Chen Acked-by: Nicolin Chen > Cc: Xiubo Li > Cc: Fabio Estevam > Cc: linuxppc-...@lists.ozlabs.org > Signed-off-by: Lee Jones > --- > sound/soc/fsl/fsl-asoc-card.c | 2 +- > 1 file changed, 1 insertio

Re: [PATCH v2 01/11] xen/manage: keep track of the on-going suspend mode

2020-07-15 Thread Anchal Agarwal
On Mon, Jul 13, 2020 at 11:52:01AM -0400, Boris Ostrovsky wrote: > CAUTION: This email originated from outside of the organization. Do not click > links or open attachments unless you can confirm the sender and know the > content is safe. > > > > On 7/2/20 2:21 PM, Anchal Agarwal wrote: > > Fr

Re: [PATCH v2 00/11] Fix PM hibernation in Xen guests

2020-07-15 Thread Boris Ostrovsky
On 7/15/20 3:49 PM, Anchal Agarwal wrote: > On Mon, Jul 13, 2020 at 03:43:33PM -0400, Boris Ostrovsky wrote: >> CAUTION: This email originated from outside of the organization. Do not >> click links or open attachments unless you can confirm the sender and know >> the content is safe. >> >> >> >>

Re: [PATCH 1/4] dt-bindings: mediatek: add mediatek,infracfg phandle

2020-07-15 Thread Rob Herring
On Thu, Jul 02, 2020 at 05:37:17PM +0800, Miles Chen wrote: > Add a description for mediatek,infracfg. We can check if 4GB mode > is enable by reading it instead of checking the unexported > symbol "max_pfn". > > This is a step towards building mtk_iommu as a kernel module. You determined this be

Re: [PATCH] ata: Disable queued TRIM for Samsung 860 SSDs

2020-07-15 Thread Martin K. Petersen
Hi Simon! > Despite the unsubstantiated claim from Samsung that "the improved > queued trim enhances Linux compatibility" this does not appear to be > true, even on Intel SATA controllers: I am aware of several people using 860 drives with queued TRIM. And I haven't heard any complaints outside

Re: [PATCHv2] mm: Fix warning in move_normal_pmd()

2020-07-15 Thread Joel Fernandes
Hi Linus, On Wed, Jul 15, 2020 at 11:36:59AM -0700, Linus Torvalds wrote: > On Wed, Jul 15, 2020 at 6:50 AM Kirill A. Shutemov > wrote: > > > > mremap(2) does not allow source and destination regions to overlap, but > > shift_arg_pages() calls move_page_tables() directly and in this case the > >

Re: [PATCHv2] mm: Fix warning in move_normal_pmd()

2020-07-15 Thread Kirill A. Shutemov
On Wed, Jul 15, 2020 at 11:36:59AM -0700, Linus Torvalds wrote: > On Wed, Jul 15, 2020 at 6:50 AM Kirill A. Shutemov > wrote: > > > > mremap(2) does not allow source and destination regions to overlap, but > > shift_arg_pages() calls move_page_tables() directly and in this case the > > source and

Re: [PATCH 2/2] dt-bindings: arm: fsl: Add Kontron i.MX8MM SoMs and boards

2020-07-15 Thread Rob Herring
On Thu, 02 Jul 2020 16:33:07 +0200, Schrempf Frieder wrote: > From: Frieder Schrempf > > Add entries for the SoMs and boards based on i.MX8MM from Kontron > Electronics GmbH. > > Signed-off-by: Frieder Schrempf > --- > Documentation/devicetree/bindings/arm/fsl.yaml | 14 ++ > 1 fil

Re: [PATCH 1/6] dt-bindings: omap: Update PRM binding for genpd

2020-07-15 Thread Rob Herring
On Thu, 02 Jul 2020 08:45:08 -0700, Tony Lindgren wrote: > The PRM (Power and Reset Module) has a register to enable and disable > the related power domain, so let's update the binding for that. > > Cc: devicet...@vger.kernel.org > Cc: Rob Herring > Signed-off-by: Tony Lindgren > --- > Document

Re: [PATCH 07/18] perf metric: Add add_metric function

2020-07-15 Thread Jiri Olsa
On Tue, Jul 14, 2020 at 02:11:02PM -0700, Ian Rogers wrote: > On Sun, Jul 12, 2020 at 6:27 AM Jiri Olsa wrote: > > > > Decouple metric adding login into add_metric function, > > s/login/logging/ ? ugh yes > > > so it can be used from other places in following changes. > > > > Signed-off-by: Ji

Re: [PATCH 1/5] dt-bingings: arm: stm32: Add compatibles for syscon nodes

2020-07-15 Thread Rob Herring
On Fri, 03 Jul 2020 11:55:16 +0200, Benjamin Gaignard wrote: > Since commit ad440432d1f9 ("dt-bindings: mfd: Ensure 'syscon' has a more > specific compatible") > it is required to provide at least 2 compatibles string for syscon node. > This patch document the missing compatibles for stm32 SoCs. >

Re: [PATCH 0/4] ASoC: fsl_asrc: allow selecting arbitrary clocks

2020-07-15 Thread Nicolin Chen
On Wed, Jul 15, 2020 at 03:05:19PM +0100, Mark Brown wrote: > On Tue, Jul 14, 2020 at 01:50:50PM -0700, Nicolin Chen wrote: > > On Tue, Jul 14, 2020 at 09:27:53PM +0100, Mark Brown wrote: > > > > The nominal rate might be the same but if they're in different clock > > > domains then the actual rat

Re: [PATCH 4/4] iommu/mediatek: check 4GB mode by reading infracfg

2020-07-15 Thread Matthias Brugger
On 02/07/2020 11:37, Miles Chen wrote: In previous disscusion [1] and [2], we found that it is risky to use max_pfn or totalram_pages to tell if 4GB mode is enabled. Check 4GB mode by reading infracfg register, remove the usage of the unexported symbol max_pfn. [1] https://lkml.org/lkml/2020

Re: [Linux-kernel-mentees] [PATCH v3] bpf: Fix NULL pointer dereference in __btf_resolve_helper_id()

2020-07-15 Thread Daniel Borkmann
On 7/14/20 8:09 PM, Peilin Ye wrote: Prevent __btf_resolve_helper_id() from dereferencing `btf_vmlinux` as NULL. This patch fixes the following syzbot bug: https://syzkaller.appspot.com/bug?id=f823224ada908fa5c207902a5a62065e53ca0fcc Reported-by: syzbot+ee09bda7017345f1f...@syzkaller.apps

Re: [PATCH 2/2] dt-binding: display: Allow a single port node on rocktech, jh057n00900

2020-07-15 Thread Rob Herring
On Fri, 03 Jul 2020 13:47:17 +0200, Ondrej Jirman wrote: > The display has one port. Allow it in the binding. > > Signed-off-by: Ondrej Jirman > --- > .../devicetree/bindings/display/panel/rocktech,jh057n00900.yaml | 1 + > 1 file changed, 1 insertion(+) > Reviewed-by: Rob Herring

Re: [PATCH 1/2] dt-bindings: display: Fix example in nwl-dsi.yaml

2020-07-15 Thread Rob Herring
On Fri, 03 Jul 2020 13:47:16 +0200, Ondrej Jirman wrote: > The example is now validated against rocktech,jh057n00900 schema > that was ported to yaml, and didn't validate with: > > - '#address-cells', '#size-cells', 'port@0' do not match any of > the regexes: 'pinctrl-[0-9]+' > - 'vcc-supply' is

Re: [PATCHv2] mm: Fix warning in move_normal_pmd()

2020-07-15 Thread Kirill A. Shutemov
On Wed, Jul 15, 2020 at 04:54:28PM -0400, Joel Fernandes wrote: > Hi Linus, > > On Wed, Jul 15, 2020 at 11:36:59AM -0700, Linus Torvalds wrote: > Regarding the ADDR_AFTER_NEXT checks, shouldn't you check for: > > if (ADDR_AFTER_NEXT(ALIGN(*old_addr + *len, PMD_SIZE), old)) > r

Re: [PATCH] ata: Disable queued TRIM for Samsung 860 SSDs

2020-07-15 Thread Simon Arlott
On 15/07/2020 21:53, Martin K. Petersen wrote: >> Despite the unsubstantiated claim from Samsung that "the improved >> queued trim enhances Linux compatibility" this does not appear to be >> true, even on Intel SATA controllers: > > I am aware of several people using 860 drives with queued TRIM. A

Re: [PATCH 09/18] perf metric: Collect referenced metrics in struct metric_ref_node

2020-07-15 Thread Jiri Olsa
On Tue, Jul 14, 2020 at 05:07:04PM -0700, Ian Rogers wrote: > On Sun, Jul 12, 2020 at 6:27 AM Jiri Olsa wrote: > > > > Collecting referenced metrics in struct metric_ref_node object, > > so we can process them later on. > > > > The change will parse nested metric names out of expression and > > 'r

Re: [PATCH v5 4/6] proc: allow access in init userns for map_files with CAP_CHECKPOINT_RESTORE

2020-07-15 Thread Cyrill Gorcunov
On Wed, Jul 15, 2020 at 04:49:52PM +0200, Adrian Reber wrote: > Opening files in /proc/pid/map_files when the current user is > CAP_CHECKPOINT_RESTORE capable in the root namespace is useful for > checkpointing and restoring to recover files that are unreachable via > the file system such as delete

Re: [PATCH v2 01/11] xen/manage: keep track of the on-going suspend mode

2020-07-15 Thread Boris Ostrovsky
On 7/15/20 4:49 PM, Anchal Agarwal wrote: > On Mon, Jul 13, 2020 at 11:52:01AM -0400, Boris Ostrovsky wrote: >> CAUTION: This email originated from outside of the organization. Do not >> click links or open attachments unless you can confirm the sender and know >> the content is safe. >> >> >> >>

<    5   6   7   8   9   10   11   12   13   14   >