[PATCH 1/1] docs: admin-guide: fdt and initrd load in EFI stub

2020-10-02 Thread Heinrich Schuchardt
Describe how a device tree and an initial RAM disk can be passed to the EFI Boot Stub. Signed-off-by: Heinrich Schuchardt --- Documentation/admin-guide/efi-stub.rst | 35 ++ 1 file changed, 35 insertions(+) diff --git a/Documentation/admin-guide/efi-stub.rst b/Documenta

Re: [PATCH] mm: Remove src/dst mm parameter in copy_page_range()

2020-10-02 Thread Peter Xu
On Fri, Oct 02, 2020 at 08:43:12AM -0300, Jason Gunthorpe wrote: > > -static int copy_pte_range(struct mm_struct *dst_mm, struct mm_struct > > *src_mm, > > - pmd_t *dst_pmd, pmd_t *src_pmd, struct vm_area_struct *vma, > > - struct vm_area_struct *new, > > +static int copy

Re: [GIT PULL] MMC/MEMSTICK fixes for v5.9-rc8

2020-10-02 Thread pr-tracker-bot
The pull request you sent on Fri, 2 Oct 2020 09:55:02 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git tags/mmc-v5.9-rc4-3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/2270b890bc295c6de2f4e4e3a770025b76657699 Thank you! -- Deet-doot-dot, I am a

Re: [GIT PULL] RISC-V Fixes for 5.9

2020-10-02 Thread pr-tracker-bot
The pull request you sent on Fri, 02 Oct 2020 09:07:27 -0700 (PDT): > git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git > tags/riscv-for-linus-5.9-rc8 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/db23baa28eb1f93df1fc175a419e7ffe5b6f1582 Thank you! --

Re: [GIT PULL] IIO driver fixes for 5.9-rc8

2020-10-02 Thread pr-tracker-bot
The pull request you sent on Fri, 2 Oct 2020 16:20:11 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git > tags/staging-5.9-rc8 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/cc8ad8fa844aeae64c10f002b97a7c56619f1f57 Thank you! -- Deet-doot-do

Re: [RFC PATCH 22/22] x86/fpu/xstate: Introduce boot-parameters for control some state component support

2020-10-02 Thread Andy Lutomirski
On Thu, Oct 1, 2020 at 1:43 PM Chang S. Bae wrote: > > "xstate.disable=0x6000" will disable AMX on a system that has AMX compiled > into XFEATURE_MASK_USER_SUPPORTED. Can we please use words for this? Perhaps: xstate.disable=amx,zmm and maybe add a list in /proc/cpuinfo or somewhere in /proc o

Re: [GIT PULL] Btrfs fixes for 5.9-rc8

2020-10-02 Thread pr-tracker-bot
The pull request you sent on Fri, 2 Oct 2020 17:30:36 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-5.9-rc7-tag has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/4e3b9ce271b4b54d2293a3916d22e4ddc0c89aab Thank you! -- Deet-doot-dot, I am a

Re: [GIT PULL] Power management fixes for v5.9-rc8

2020-10-02 Thread pr-tracker-bot
The pull request you sent on Fri, 2 Oct 2020 18:47:05 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git pm-5.9-rc8 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/c5130911033149c18bf84fa094c8e5def26ec8d0 Thank you! -- Deet-doot-dot, I am a bo

Re: [GIT PULL] late GPIO fixes for v5.9

2020-10-02 Thread pr-tracker-bot
The pull request you sent on Fri, 2 Oct 2020 11:31:55 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git > tags/gpio-v5.9-2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/0bf0dfda003eb98ca2b26441dec28751991d76d3 Thank you! -- Deet-doot-dot

Re: [RFC PATCH v1 10/26] docs: reporting-bugs: remind people to look for existing reports

2020-10-02 Thread Randy Dunlap
On 10/1/20 1:39 AM, Thorsten Leemhuis wrote: > Tells users to search for existing reports, as not reporting them a > second time is in their own interest. Tel them where to look and provide > a few hints how to search properly, as that is easy to get wrong. That > seems to be especially true when i

Re: [PATCH v2 0/3] PM / Domains: Add power on/off notifiers for genpd

2020-10-02 Thread Rafael J. Wysocki
On Mon, Sep 28, 2020 at 1:57 PM Ulf Hansson wrote: > > Rafael, > > On Thu, 24 Sep 2020 at 13:06, Ulf Hansson wrote: > > > > Changes in v2: > > - Improved error handling in patch3. > > > > A device may have specific HW constraints that must be obeyed to, before its > > corresponding PM dom

Re: [PATCH v3 02/21] spi: dw: Add DWC SSI capability

2020-10-02 Thread Serge Semin
On Fri, Oct 02, 2020 at 01:19:29PM +0300, Andy Shevchenko wrote: > On Fri, Oct 02, 2020 at 01:28:10AM +0300, Serge Semin wrote: > > Currently DWC SSI core is supported by means of setting up the > > core-specific update_cr0() callback. It isn't suitable for multiple > > reasons. First of all having

Re: [PATCH v4 01/11] mm: add Kernel Electric-Fence infrastructure

2020-10-02 Thread Marco Elver
Hi Jann, Thanks for your comments!! On Fri, Oct 02, 2020 at 08:33AM +0200, Jann Horn wrote: > On Tue, Sep 29, 2020 at 3:38 PM Marco Elver wrote: > > This adds the Kernel Electric-Fence (KFENCE) infrastructure. KFENCE is a > > low-overhead sampling-based memory safety error detector of heap > > u

[PATCH] mm: optionally disable brk()

2020-10-02 Thread Topi Miettinen
The brk() system call allows to change data segment size (heap). This is mainly used by glibc for memory allocation, but it can use mmap() and that results in more randomized memory mappings since the heap is always located at fixed offset to program while mmap()ed memory is randomized. Signed-off

[git pull] epoll fixes

2020-10-02 Thread Al Viro
Several race fixes in epoll. The following changes since commit 77f4689de17c0887775bb77896f4cc11a39bf848: fix regression in "epoll: Keep a reference on files added to the check list" (2020-09-02 11:30:48 -0400) are available in the git repository at: git://git.kernel.org/pub/scm/li

Re: [PATCH 1/1] docs: admin-guide: fdt and initrd load in EFI stub

2020-10-02 Thread Ard Biesheuvel
Hi Heinrich, Thanks for documenting this. On Fri, 2 Oct 2020 at 19:11, Heinrich Schuchardt wrote: > > Describe how a device tree and an initial RAM disk can be passed to the EFI > Boot Stub. > > Signed-off-by: Heinrich Schuchardt > --- > Documentation/admin-guide/efi-stub.rst | 35 +++

drivers/net/wireless/realtek/rtw88/rtw8822b.c:90:8: warning: type qualifiers ignored on function return type

2020-10-02 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 472e5b056f000a778abb41f1e443de58eb259783 commit: 416e87fcc780cae8d72cb9370fa0f46007faa69a rtw88: extract: make 8822b an individual kernel module date: 5 months ago config: parisc-randconfig-r024-20201002

Re: [PATCH v5 02/10] vfio/fsl-mc: Scan DPRC objects on vfio-fsl-mc driver bind

2020-10-02 Thread Alex Williamson
On Tue, 29 Sep 2020 12:03:31 +0300 Diana Craciun wrote: > The DPRC (Data Path Resource Container) device is a bus device and has > child devices attached to it. When the vfio-fsl-mc driver is probed > the DPRC is scanned and the child devices discovered and initialized. > > Signed-off-by: Bharat

Re: [RFC PATCH 22/22] x86/fpu/xstate: Introduce boot-parameters for control some state component support

2020-10-02 Thread Dave Hansen
On 10/1/20 1:39 PM, Chang S. Bae wrote: > + if ((custom & XFEATURE_MASK_XTILE) != XFEATURE_MASK_XTILE) { > + pr_warn("x86/fpu: Disable 0x%x components due to > incorrect setup\n", > + XFEATURE_MASK_XTILE); > + custom &

[PATCH v5 3/4] mm: introduce page memcg flags

2020-10-02 Thread Roman Gushchin
The lowest bit in page->memcg_data is used to distinguish between struct memory_cgroup pointer and a pointer to a objcgs array. All checks and modifications of this bit are open-coded. Let's formalize it using page memcg flags, defined in enum page_memcg_data_flags. Additional flags might be adde

[PATCH v5 0/4] mm: allow mapping accounted kernel pages to userspace

2020-10-02 Thread Roman Gushchin
Currently a non-slab kernel page which has been charged to a memory cgroup can't be mapped to userspace. The underlying reason is simple: PageKmemcg flag is defined as a page type (like buddy, offline, etc), so it takes a bit from a page->mapped counter. Pages with a type set can't be mapped to use

[PATCH v5 4/4] mm: convert page kmemcg type to a page memcg flag

2020-10-02 Thread Roman Gushchin
PageKmemcg flag is currently defined as a page type (like buddy, offline, table and guard). Semantically it means that the page was accounted as a kernel memory by the page allocator and has to be uncharged on the release. As a side effect of defining the flag as a page type, the accounted page ca

[PATCH v5 2/4] mm: memcontrol/slab: use helpers to access slab page's memcg_data

2020-10-02 Thread Roman Gushchin
To gather all direct accesses to struct page's memcg_data field in one place, let's introduce 3 new helpers to use in the slab accounting code: struct obj_cgroup **page_objcgs(struct page *page); struct obj_cgroup **page_objcgs_check(struct page *page); bool set_page_objcgs(struct page *page,

[PATCH v5 1/4] mm: memcontrol: use helpers to read page's memcg data

2020-10-02 Thread Roman Gushchin
Currently there are many open-coded reads of the page->mem_cgroup pointer, as well as a couple of read helpers, which are barely used. It creates an obstacle on a way to reuse some bits of the pointer for storing additional bits of information. In fact, we already do this for slab pages, where the

Re: [RFC PATCH 22/22] x86/fpu/xstate: Introduce boot-parameters for control some state component support

2020-10-02 Thread Dave Hansen
On 10/2/20 10:15 AM, Andy Lutomirski wrote: >> "xstate.enable=0x6000" will enable AMX on a system that does NOT have AMX >> compiled into XFEATURE_MASK_USER_SUPPORTED (assuming the kernel is new >> enough to support this feature). > This sounds like it will be quite confusing to anyone reading the

Re: [PATCH][next] net: phy: dp83869: fix unsigned comparisons against less than zero values

2020-10-02 Thread Dan Murphy
Colin On 10/2/20 11:54 AM, Colin King wrote: From: Colin Ian King Currently the comparisons of u16 integers value and sopass_val with less than zero for error checking is always false because the values are unsigned. Fix this by making these variables int. This does not affect the shift and m

Re: [PATCH v2] cpupower: Provide online and offline CPU information

2020-10-02 Thread Shuah Khan
On 9/29/20 7:11 AM, Brahadambal Srinivasan wrote: When a user tries to modify cpuidle or cpufreq properties on offline CPUs, the tool returns success (exit status 0) but also does not provide any warning message regarding offline cpus that may have been specified but left unchanged. In case of al

Re: [RFC PATCH v1 12/26] docs: reporting-bugs: tell users to disable DKMS et al.

2020-10-02 Thread Randy Dunlap
On 10/1/20 1:39 AM, Thorsten Leemhuis wrote: > Tell users to disable solutions like DKMS to make sure the mainline > kernel they have to install later remains vanilla. The old text did not > do that, but back when it was written these solutions were not that > widespread. > > Signed-off-by: Thorst

Re: [PATCH] KVM: x86: VMX: Make smaller physical guest address space support user-configurable

2020-10-02 Thread Naresh Kamboju
Hi Paolo, Thanks for the patch. On Tue, 29 Sep 2020 at 20:17, Paolo Bonzini wrote: > > On 29/09/20 15:39, Qian Cai wrote: > > On Tue, 2020-09-29 at 14:26 +0200, Paolo Bonzini wrote: > >> On 29/09/20 13:59, Qian Cai wrote: > >>> WARN_ON_ONCE(!allow_smaller_maxphyaddr); > >>> > >>> I noticed the o

Re: [PATCH v6 4/5] PCI: only return true when dev io state is really changed

2020-10-02 Thread Bjorn Helgaas
[+cc Sinan] On Wed, Sep 30, 2020 at 03:05:36AM -0400, Ethan Zhao wrote: > When uncorrectable error happens, AER driver and DPC driver interrupt > handlers likely call > >pcie_do_recovery() >->pci_walk_bus() > ->report_frozen_detected() > > with pci_channel_io_frozen the same time. >

Re: [PATCH] mm: Remove src/dst mm parameter in copy_page_range()

2020-10-02 Thread Jason Gunthorpe
On Fri, Oct 02, 2020 at 01:14:29PM -0400, Peter Xu wrote: > On Fri, Oct 02, 2020 at 08:43:12AM -0300, Jason Gunthorpe wrote: > > > -static int copy_pte_range(struct mm_struct *dst_mm, struct mm_struct > > > *src_mm, > > > -pmd_t *dst_pmd, pmd_t *src_pmd, struct vm_area_struct *vma, > >

Re: linux tooling mailing list

2020-10-02 Thread Segher Boessenkool
On Fri, Oct 02, 2020 at 02:01:13PM +0200, Sedat Dilek wrote: > On Thu, Oct 1, 2020 at 12:26 AM David Miller wrote: > > From: Nick Desaulniers > > Date: Wed, 30 Sep 2020 12:29:38 -0700 > > > linux-toolcha...@vger.kernel.org > > > > Created. > > I am subscribed, too. > > Will there be a(n)...? >

Re: [PATCH] KVM: x86: VMX: Make smaller physical guest address space support user-configurable

2020-10-02 Thread Paolo Bonzini
On 02/10/20 19:28, Naresh Kamboju wrote: >> >> commit 608e2791d7353e7d777bf32038ca3e7d548155a4 (HEAD -> kvm-master) >> Author: Paolo Bonzini >> Date: Tue Sep 29 08:31:32 2020 -0400 >> >> KVM: VMX: update PFEC_MASK/PFEC_MATCH together with PF intercept >> >> The PFEC_MASK and PFEC_MATCH f

Re: selftests: pidfd: pidfd_wait hangs on linux next kernel on all devices

2020-10-02 Thread Naresh Kamboju
On Thu, 24 Sep 2020 at 21:51, Christian Brauner wrote: > > On Thu, Sep 24, 2020 at 04:33:17PM +0200, Christian Brauner wrote: > > On Wed, Sep 23, 2020 at 07:52:05PM +0530, Naresh Kamboju wrote: > > > selftests: pidfd: pidfd_wait hangs on linux next kernel on x86_64, > > > i386 and arm64 Juno-r2 >

Re: [RFC PATCH v1 13/26] docs: reporting-bugs: point out the environment might be causing issue

2020-10-02 Thread Randy Dunlap
On 10/1/20 1:39 AM, Thorsten Leemhuis wrote: > Help users to avoid a few pitfalls, as they might be the real reason why > the kernel is acting up somehow. > > Signed-off-by: Thorsten Leemhuis > --- > Documentation/admin-guide/reporting-bugs.rst | 34 > 1 file changed, 34 ins

Re: [RFC PATCH 0/7] RAS/CEC: Extend CEC for errors count check on short time period

2020-10-02 Thread James Morse
Hi Shiju, On 02/10/2020 16:38, Shiju Jose wrote: >> -Original Message- >> From: Borislav Petkov [mailto:b...@alien8.de] >> Sent: 02 October 2020 13:44 >> To: Shiju Jose >> Cc: linux-e...@vger.kernel.org; linux-a...@vger.kernel.org; linux- >> ker...@vger.kernel.org; tony.l...@intel.com; r.

Re: [PATCHv2 1/9] perf tools: Add build id shell test

2020-10-02 Thread Ian Rogers
On Fri, Oct 2, 2020 at 6:07 AM Namhyung Kim wrote: > > Hi Jiri, > > On Fri, Oct 2, 2020 at 4:05 AM Jiri Olsa wrote: > > > > Adding test for build id cache that adds binary > > with sha1 and md5 build ids and verifies it's > > added properly. > > > > The test updates build id cache with perf recor

Re: [RFC PATCH v1 14/26] docs: reporting-bugs: make users write notes, one for each issue

2020-10-02 Thread Randy Dunlap
On 10/1/20 1:39 AM, Thorsten Leemhuis wrote: > Tell users to write some rough notes how to reproduce the issue. They > will need those notes soon once they have to reproduce the issue with > the latest mainline kernel. At the same time they can serve as basis for > the report later. > > While at i

Re: [PATCH v3 2/3] media: rockchip: Introduce driver for Rockhip's camera interface

2020-10-02 Thread Ezequiel Garcia
Hi Maxime, Thanks to Dafna, I found the patch ^_^ The driver looks real good. Just a few comments below. Is the driver passing latest v4l2-compliance tests? On Tue, 22 Sep 2020 at 13:55, Maxime Chevallier wrote: > > Introduce a driver for the camera interface on some Rockchip platforms. > > T

Re: [git pull] epoll fixes

2020-10-02 Thread pr-tracker-bot
The pull request you sent on Fri, 2 Oct 2020 18:20:25 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.epoll has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/712138c7f7427c9cb67634ba432be98d42435deb Thank you! -- Deet-doot-dot, I am a bot. http

Re: [PATCH 1/3] watchdog: cadence: Simplify with dev_err_probe()

2020-10-02 Thread Guenter Roeck
On Fri, Oct 02, 2020 at 06:31:24PM +0200, Krzysztof Kozlowski wrote: > On Tue, Sep 01, 2020 at 08:49:52AM -0700, Guenter Roeck wrote: > > On Tue, Sep 01, 2020 at 05:31:39PM +0200, Krzysztof Kozlowski wrote: > > > Common pattern of handling deferred probe can be simplified with > > > dev_err_probe()

Re: linux tooling mailing list

2020-10-02 Thread Randy Dunlap
On 10/2/20 10:22 AM, Segher Boessenkool wrote: > On Fri, Oct 02, 2020 at 02:01:13PM +0200, Sedat Dilek wrote: >> On Thu, Oct 1, 2020 at 12:26 AM David Miller wrote: >>> From: Nick Desaulniers >>> Date: Wed, 30 Sep 2020 12:29:38 -0700 linux-toolcha...@vger.kernel.org >>> >>> Created. >> >> I

[PATCH v5 13/16] fs/kernel_file_read: Add "offset" arg for partial reads

2020-10-02 Thread Kees Cook
To perform partial reads, callers of kernel_read_file*() must have a non-NULL file_size argument and a preallocated buffer. The new "offset" argument can then be used to seek to specific locations in the file to fill the buffer to, at most, "buf_size" per call. Where possible, the LSM hooks can re

Re: [PATCH] arm: dts: IPQ4019: add SDHCI VQMMC LDO node

2020-10-02 Thread Robert Marko
On Mon, Sep 7, 2020 at 12:19 PM Robert Marko wrote: > > Since we now have driver for the SDHCI VQMMC LDO needed > for I/0 voltage levels lets introduce the necessary node for it. > > Signed-off-by: Robert Marko > Cc: Luka Perkov > --- > arch/arm/boot/dts/qcom-ipq4019.dtsi | 10 ++ > 1 f

[PATCH v5 00/16] Introduce partial kernel_read_file() support

2020-10-02 Thread Kees Cook
v5: - add more reviews (thank you!) - add "description" string to post_load_data API (mimi) - drop bug fix that got taken already v4: https://lore.kernel.org/lkml/20200729175845.1745471-1-keesc...@chromium.org/ v3: https://lore.kernel.org/lkml/20200724213640.389191-1-keesc...@chromium.org/ v2: lost

[PATCH v5 14/16] firmware: Store opt_flags in fw_priv

2020-10-02 Thread Kees Cook
Instead of passing opt_flags around so much, store it in the private structure so it can be examined by internals without needing to add more arguments to functions. Co-developed-by: Scott Branden Signed-off-by: Scott Branden Signed-off-by: Kees Cook --- drivers/base/firmware_loader/fallback.c

[PATCH v5 15/16] firmware: Add request_partial_firmware_into_buf()

2020-10-02 Thread Kees Cook
From: Scott Branden Add request_partial_firmware_into_buf() to allow for portions of a firmware file to be read into a buffer. This is needed when large firmware must be loaded in portions from a file on memory constrained systems. Signed-off-by: Scott Branden Co-developed-by: Kees Cook Signed

[PATCH v5 10/16] module: Call security_kernel_post_load_data()

2020-10-02 Thread Kees Cook
Now that there is an API for checking loaded contents for modules loaded without a file, call into the LSM hooks. Signed-off-by: Kees Cook Reviewed-by: KP Singh Acked-by: Jessica Yu --- kernel/module.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/kernel/m

[PATCH v5 09/16] firmware_loader: Use security_post_load_data()

2020-10-02 Thread Kees Cook
Now that security_post_load_data() is wired up, use it instead of the NULL file argument style of security_post_read_file(), and update the security_kernel_load_data() call to indicate that a security_kernel_post_load_data() call is expected. Wire up the IMA check to match earlier logic. Perhaps a

[PATCH v5 04/16] fs/kernel_read_file: Split into separate source file

2020-10-02 Thread Kees Cook
These routines are used in places outside of exec(2), so in preparation for refactoring them, move them into a separate source file, fs/kernel_read_file.c. Signed-off-by: Kees Cook Reviewed-by: Mimi Zohar Reviewed-by: Luis Chamberlain Acked-by: Scott Branden --- fs/Makefile | 3 +-

[PATCH v5 11/16] LSM: Add "contents" flag to kernel_read_file hook

2020-10-02 Thread Kees Cook
As with the kernel_load_data LSM hook, add a "contents" flag to the kernel_read_file LSM hook that indicates whether the LSM can expect a matching call to the kernel_post_read_file LSM hook with the full contents of the file. With the coming addition of partial file read support for kernel_read_fil

Re: [PATCH v8] ARM: dts: qcom: ipq4019: add USB devicetree nodes

2020-10-02 Thread Robert Marko
On Wed, Sep 9, 2020 at 6:38 PM Robert Marko wrote: > > From: John Crispin > > Since we now have driver for the USB PHY, and USB controller is already > supported by the DWC3 driver lets add the necessary nodes to DTSI. > > Signed-off-by: John Crispin > Signed-off-by: Robert Marko > Cc: Luka Pe

[PATCH v5 12/16] IMA: Add support for file reads without contents

2020-10-02 Thread Kees Cook
From: Scott Branden When the kernel_read_file LSM hook is called with contents=false, IMA can appraise the file directly, without requiring a filled buffer. When such a buffer is available, though, IMA can continue to use it instead of forcing a double read here. Signed-off-by: Scott Branden Li

[PATCH v5 06/16] fs/kernel_read_file: Switch buffer size arg to size_t

2020-10-02 Thread Kees Cook
In preparation for further refactoring of kernel_read_file*(), rename the "max_size" argument to the more accurate "buf_size", and correct its type to size_t. Add kerndoc to explain the specifics of how the arguments will be used. Note that with buf_size now size_t, it can no longer be negative (an

[PATCH v5 07/16] fs/kernel_read_file: Add file_size output argument

2020-10-02 Thread Kees Cook
In preparation for adding partial read support, add an optional output argument to kernel_read_file*() that reports the file size so callers can reason more easily about their reading progress. Signed-off-by: Kees Cook Reviewed-by: Mimi Zohar Reviewed-by: Luis Chamberlain Reviewed-by: James Mor

[PATCH v5 02/16] fs/kernel_read_file: Remove FIRMWARE_EFI_EMBEDDED enum

2020-10-02 Thread Kees Cook
The "FIRMWARE_EFI_EMBEDDED" enum is a "where", not a "what". It should not be distinguished separately from just "FIRMWARE", as this confuses the LSMs about what is being loaded. Additionally, there was no actual validation of the firmware contents happening. Fixes: e4c2c0ff00ec ("firmware: Add ne

[PATCH v5 01/16] fs/kernel_read_file: Remove FIRMWARE_PREALLOC_BUFFER enum

2020-10-02 Thread Kees Cook
FIRMWARE_PREALLOC_BUFFER is a "how", not a "what", and confuses the LSMs that are interested in filtering between types of things. The "how" should be an internal detail made uninteresting to the LSMs. Fixes: a098ecd2fa7d ("firmware: support loading into a pre-allocated buffer") Fixes: fd90bc559bf

Re: [PATCH v2 1/4] arm: dts: qcom: ipq4019: add more labels

2020-10-02 Thread Robert Marko
On Wed, Sep 9, 2020 at 9:56 PM Robert Marko wrote: > > Lets add labels to more commonly used nodes for easier modification in board > DTS files. > > Signed-off-by: Robert Marko > Cc: Luka Perkov > --- > Changes since v1: > * Drop include that does not exist > > arch/arm/boot/dts/qcom-ipq4019.d

Re: [PATCH][next] net: phy: dp83869: fix unsigned comparisons against less than zero values

2020-10-02 Thread Andrew Lunn
On Fri, Oct 02, 2020 at 12:26:49PM -0500, Dan Murphy wrote: > Colin > > On 10/2/20 11:54 AM, Colin King wrote: > > From: Colin Ian King > > > > Currently the comparisons of u16 integers value and sopass_val with > > less than zero for error checking is always false because the values > > are uns

[PATCH v5 05/16] fs/kernel_read_file: Remove redundant size argument

2020-10-02 Thread Kees Cook
In preparation for refactoring kernel_read_file*(), remove the redundant "size" argument which is not needed: it can be included in the return code, with callers adjusted. (VFS reads already cannot be larger than INT_MAX.) Signed-off-by: Kees Cook Reviewed-by: Mimi Zohar Reviewed-by: Luis Chambe

Re: [PATCH v2 3/3] dt-bindings: thermal: update sustainable-power with abstract scale

2020-10-02 Thread Doug Anderson
Hi, On Fri, Oct 2, 2020 at 9:40 AM Lukasz Luba wrote: > > On 10/2/20 4:47 PM, Doug Anderson wrote: > > Hi, > > > > On Fri, Oct 2, 2020 at 8:13 AM Lukasz Luba wrote: > >> > >> Hi Doug, > >> > >> On 10/2/20 3:31 PM, Doug Anderson wrote: > >>> Hi, > >>> > >>> On Fri, Oct 2, 2020 at 4:45 AM Lukasz L

[PATCH v5 08/16] LSM: Introduce kernel_post_load_data() hook

2020-10-02 Thread Kees Cook
There are a few places in the kernel where LSMs would like to have visibility into the contents of a kernel buffer that has been loaded or read. While security_kernel_post_read_file() (which includes the buffer) exists as a pairing for security_kernel_read_file(), no such hook exists to pair with s

[PATCH v5 03/16] fs/kernel_read_file: Split into separate include file

2020-10-02 Thread Kees Cook
From: Scott Branden Move kernel_read_file* out of linux/fs.h to its own linux/kernel_read_file.h include file. That header gets pulled in just about everywhere and doesn't really need functions not related to the general fs interface. Suggested-by: Christoph Hellwig Signed-off-by: Scott Branden

[PATCH net-next v2 1/6] bonding: rename 802.3ad's struct port to ad_port

2020-10-02 Thread Jarod Wilson
The intention is to reuse "port" in place of "slave" in the bonding driver after making this change, as port is consistent with the bridge and team drivers, and allows us to remove socially problematic language from the bonding driver. Cc: Jay Vosburgh Cc: Veaceslav Falico Cc: Andy Gospodarek C

Re: [PATCH v2 3/4] arm: dts: add Alfa Network AP120C-AC

2020-10-02 Thread Robert Marko
On Wed, Sep 9, 2020 at 9:56 PM Robert Marko wrote: > > ALFA Network AP120C-AC is a dual-band ceiling AP, based on Qualcomm > IPQ4018 + QCA8075 platform. > > Specification: > > - Qualcomm IPQ4018 (717 MHz) > - 256 MB of RAM (DDR3) > - 16 MB (SPI NOR) + 128 or 512 MB (SPI NAND) of flash > - 2x Gbps

[PATCH net-next v2 2/6] bonding: replace use of the term master where possible

2020-10-02 Thread Jarod Wilson
Simply refer to what was the bonding "master" as the "bond" or bonding device, depending on context. However, do retain compat code for the bonding_masters sysfs interface to avoid breaking userspace. Cc: Jay Vosburgh Cc: Veaceslav Falico Cc: Andy Gospodarek Cc: "David S. Miller" Cc: Jakub Kic

Re: [PATCH v2 2/4] arm: dts: add 8devices Jalapeno

2020-10-02 Thread Robert Marko
On Wed, Sep 9, 2020 at 9:56 PM Robert Marko wrote: > > 8devices Jalapeno is a dual-band SoM, based on Qualcomm > IPQ4018 + QCA8072 platform. > > Specification: > QCA IPQ4018, Quad core ARM v7 Cortex A7 717MHz > 256 MB of DDR3 RAM > 8 MB of SPI NOR flash > 128 MB of Winbond SPI NAND flash > WLAN1:

[PATCH net-next v2 0/6] bonding: rename bond components

2020-10-02 Thread Jarod Wilson
The bonding driver's use of master and slave, while largely understood in technical circles, poses a barrier for inclusion to some potential members of the development and user community, due to the historical context of masters and slaves, particularly in the United States. This is a first full pa

[PATCH net-next v2 6/6] bonding: make Kconfig toggle to disable legacy interfaces

2020-10-02 Thread Jarod Wilson
By default, enable retaining all user-facing API that includes the use of master and slave, but add a Kconfig knob that allows those that wish to remove it entirely do so in one shot. Cc: Jay Vosburgh Cc: Veaceslav Falico Cc: Andy Gospodarek Cc: "David S. Miller" Cc: Jakub Kicinski Cc: Thomas

Re: [PATCH v2 4/4] arm: dts: add 8devices Habanero DVK

2020-10-02 Thread Robert Marko
On Wed, Sep 9, 2020 at 9:56 PM Robert Marko wrote: > > 8devices Habanero DVK is a dual-band SoM development kit based on Qualcomm > IPQ4019 + QCA8075 platform. > > Specs are: > CPU: QCA IPQ4019 > RAM: DDR3L 512MB > Storage: 32MB SPI-NOR and optional Parallel SLC NAND(Some boards ship with it > an

[PATCH net-next v2 5/6] bonding: update Documentation for port/bond terminology

2020-10-02 Thread Jarod Wilson
Point users to the new interface names instead of the old ones, where appropriate. Userspace bits referenced still include use of master/slave, but those can't be altered until userspace changes too, ideally after these changes propagate to the community at large. Cc: Jay Vosburgh Cc: Veaceslav F

[PATCH net-next v2 4/6] bonding: rename bonding_sysfs_slave.c to _port.c

2020-10-02 Thread Jarod Wilson
Now that use of "slave" has been replaced by "port", rename this file too. Cc: Jay Vosburgh Cc: Veaceslav Falico Cc: Andy Gospodarek Cc: "David S. Miller" Cc: Jakub Kicinski Cc: Thomas Davis Cc: net...@vger.kernel.org Signed-off-by: Jarod Wilson --- drivers/net/bonding/Makefile

Re: [git pull] epoll fixes

2020-10-02 Thread Linus Torvalds
On Fri, Oct 2, 2020 at 10:20 AM Al Viro wrote: > > Several race fixes in epoll. Fudge. I screwed up the commit message due to a cut-and-paste error (don't ask - sometimes google chrome and gnome-terminal seem to stop agreeing about the normal X paste buffer) And I extra stupidly pushed t

[PATCH v5 16/16] test_firmware: Test partial read support

2020-10-02 Thread Kees Cook
From: Scott Branden Add additional hooks to test_firmware to pass in support for partial file read using request_firmware_into_buf(): buf_size: size of buffer to request firmware into partial: indicates that a partial file request is being made file_offset: to indicate of

Re: [PATCH v3 03/21] spi: dw: Detach SPI device specific CR0 config method

2020-10-02 Thread Serge Semin
On Fri, Oct 02, 2020 at 01:22:46PM +0300, Andy Shevchenko wrote: > On Fri, Oct 02, 2020 at 01:28:11AM +0300, Serge Semin wrote: > > Indeed there is no point in detecting the SPI peripheral device parameters > > and initializing the CR0 register fields each time an SPI transfer is > > executed. Inst

[GIT PULL] io_uring fixes for 5.9-rc

2020-10-02 Thread Jens Axboe
Hi Linus, - Fix for async buffered reads if read-ahead is fully disabled (Hao) - double poll match fix - ->show_fdinfo() potential ABBA deadlock complaint fix Please pull! The following changes since commit f38c7e3abfba9a9e180b34f642254c43782e7ffe: io_uring: ensure async buffered read-retr

Re: [PATCH v1] of: platform: Batch fwnode parsing in the init_machine() path

2020-10-02 Thread Saravana Kannan
On Fri, Oct 2, 2020 at 8:03 AM 'Grygorii Strashko' via kernel-team wrote: > > > > On 02/10/2020 14:40, Grygorii Strashko wrote: > > > > > > On 02/10/2020 02:19, Laurent Pinchart wrote: > >> Hi Saravana, > >> > >> Thank you for the patch. > >> > >> On Thu, Oct 01, 2020 at 03:59:51PM -0700, Saravana

Re: [RESEND PATCH] spmi: prefix spmi bus device names with "spmi"

2020-10-02 Thread Stephen Boyd
Quoting Mark Brown (2020-10-02 09:03:24) > On Thu, Oct 01, 2020 at 05:45:00PM -0700, David Collins wrote: > > > The SPMI regmap debugfs files are used extensively for testing and debug > > purposes internally at Qualcomm and by our customers. It would be helpful > > if the more verbose naming sch

Re: [PATCH 8/8] WIP: add a dma_alloc_contiguous API

2020-10-02 Thread Tomasz Figa
Hi Christoph, On Wed, Sep 30, 2020 at 06:09:17PM +0200, Christoph Hellwig wrote: > Add a new API that returns a virtually non-contigous array of pages > and dma address. This API is only implemented for dma-iommu and will > not be implemented for non-iommu DMA API instances that have to allocate

Re: [RFC PATCH v1 15/26] docs: reporting-bugs: make readers test mainline, but leave a loophole

2020-10-02 Thread Randy Dunlap
On 10/1/20 1:39 AM, Thorsten Leemhuis wrote: > Now that the document described all preparatory steps tell users to > install the latest kernel. Try pretty hard to motivate them installing a > mainline kernel, as that is best for reporting issues. Mention the > latest stable kernel as an acceptable

Re: [PATCH v4 3/3] iommu/tegra-smmu: Add PCI support

2020-10-02 Thread Nicolin Chen
On Fri, Oct 02, 2020 at 05:35:24PM +0300, Dmitry Osipenko wrote: > 02.10.2020 09:08, Nicolin Chen пишет: > > @@ -865,7 +866,11 @@ static struct iommu_group > > *tegra_smmu_device_group(struct device *dev) > > group->smmu = smmu; > > group->soc = soc; > > > > - group->group = iommu_grou

Re: [PATCH v1] of: platform: Batch fwnode parsing in the init_machine() path

2020-10-02 Thread Saravana Kannan
On Fri, Oct 2, 2020 at 7:08 AM Rob Herring wrote: > > On Thu, Oct 1, 2020 at 5:59 PM Saravana Kannan wrote: > > > > When commit 93d2e4322aa7 ("of: platform: Batch fwnode parsing when > > adding all top level devices") optimized the fwnode parsing when all top > > level devices are added, it misse

Re: [PATCH] mm: optionally disable brk()

2020-10-02 Thread David Hildenbrand
On 02.10.20 19:19, Topi Miettinen wrote: > The brk() system call allows to change data segment size (heap). This > is mainly used by glibc for memory allocation, but it can use mmap() > and that results in more randomized memory mappings since the heap is > always located at fixed offset to program

Re: Linux 5.9-rc7 / VmallocTotal wrongly reported | Patch OK

2020-10-02 Thread Roman Gushchin
On Fri, Oct 02, 2020 at 09:01:14AM +0200, Bastian Bittorf wrote: > On Thu, Oct 01, 2020 at 01:39:31PM -0700, Roman Gushchin wrote: > > > # Processor type and features > > > # > > > # CONFIG_ZONE_DMA is not set > > > # CONFIG_SMP is not set > > > > Yes, here is the deal. > > > > The SMP-version of

[PATCH 2/2] mm/frame-vec: use FOLL_LONGTERM

2020-10-02 Thread Daniel Vetter
For $reasons I've stumbled over this code and I'm not sure the change to the new gup functions in 55a650c35fea ("mm/gup: frame_vector: convert get_user_pages() --> pin_user_pages()") was entirely correct. This here is used for long term buffers (not just quick I/O) like RDMA, and John notes this i

[PATCH 1/2] mm/frame-vec: Drop gup_flags from get_vaddr_frames()

2020-10-02 Thread Daniel Vetter
FOLL_WRITE | FOLL_FORCE is really the only reasonable thing to do for simple dma device that can't guarantee write protection. Which is also what all the callers are using. So just simplify this. Signed-off-by: Daniel Vetter Cc: Inki Dae Cc: Joonyoung Shim Cc: Seung-Woo Kim Cc: Kyungmin Park

Re: [PATCH v1] of: platform: Batch fwnode parsing in the init_machine() path

2020-10-02 Thread Laurent Pinchart
Hi Saravana, On Fri, Oct 02, 2020 at 10:51:51AM -0700, Saravana Kannan wrote: > On Fri, Oct 2, 2020 at 7:08 AM Rob Herring wrote: > > On Thu, Oct 1, 2020 at 5:59 PM Saravana Kannan wrote: > > > > > > When commit 93d2e4322aa7 ("of: platform: Batch fwnode parsing when > > > adding all top level de

Re: [PATCH v2 0/3] drm: commit_work scheduling

2020-10-02 Thread Rob Clark
On Fri, Oct 2, 2020 at 4:05 AM Ville Syrjälä wrote: > > On Fri, Oct 02, 2020 at 01:52:56PM +0300, Ville Syrjälä wrote: > > On Thu, Oct 01, 2020 at 05:25:55PM +0200, Daniel Vetter wrote: > > > On Thu, Oct 1, 2020 at 5:15 PM Rob Clark wrote: > > > > > > > > On Thu, Oct 1, 2020 at 12:25 AM Daniel Ve

Re: [kbuild-all] Re: [PATCH] mm: memcg/slab: fix slab statistics in !SMP configuration

2020-10-02 Thread Roman Gushchin
On Fri, Oct 02, 2020 at 01:34:06PM +0800, Philip Li wrote: > On Thu, Oct 01, 2020 at 05:55:59PM -0700, Roman Gushchin wrote: > > On Fri, Oct 02, 2020 at 08:08:40AM +0800, kbuild test robot wrote: > > > Hi Roman, > > > > > > Thank you for the patch! Yet something to improve: > > > > > > [auto buil

Re: [PATCH 1/1] docs: admin-guide: fdt and initrd load in EFI stub

2020-10-02 Thread Heinrich Schuchardt
On 02.10.20 19:21, Ard Biesheuvel wrote: > Hi Heinrich, > > Thanks for documenting this. > > > On Fri, 2 Oct 2020 at 19:11, Heinrich Schuchardt wrote: >> >> Describe how a device tree and an initial RAM disk can be passed to the EFI >> Boot Stub. >> >> Signed-off-by: Heinrich Schuchardt >> --- >>

Re: [WARNING] kernel/rcu/tree.c:1058 rcu_irq_enter+0x15/0x20

2020-10-02 Thread Steven Rostedt
On Wed, 30 Sep 2020 20:13:23 +0200 Peter Zijlstra wrote: > Blergh, IIRC there's header hell that way. The sane fix is killing off > that trace_*_rcuidle() disease. > > But I think this will also cure it. I guess you still don't build modules ;-). I had to add a EXPORT_SYMBOL(lockdep_recursion)

Re: [PATCH v1] of: platform: Batch fwnode parsing in the init_machine() path

2020-10-02 Thread Saravana Kannan
On Fri, Oct 2, 2020 at 10:55 AM Laurent Pinchart wrote: > > Hi Saravana, > > On Fri, Oct 02, 2020 at 10:51:51AM -0700, Saravana Kannan wrote: > > On Fri, Oct 2, 2020 at 7:08 AM Rob Herring wrote: > > > On Thu, Oct 1, 2020 at 5:59 PM Saravana Kannan > > > wrote: > > > > > > > > When commit 93d2e

Re: [PATCH v2 0/6] kselftest: arm64/mte: Tests for user-space MTE

2020-10-02 Thread Catalin Marinas
On Fri, Oct 02, 2020 at 05:26:24PM +0530, Amit Daniel Kachhap wrote: > Amit Daniel Kachhap (6): > kselftest/arm64: Add utilities and a test to validate mte memory > kselftest/arm64: Verify mte tag inclusion via prctl > kselftest/arm64: Check forked child mte memory accessibility > kselftest

Re: [PATCH ] scsi: page warning: 'page' may be used uninitialized

2020-10-02 Thread Mike Christie
On 9/23/20 7:19 PM, john.p.donne...@oracle.com wrote: > From: John Donnelly > > corrects: drivers/target/target_core_user.c:688:6: warning: 'page' may be used > uninitialized > > Fixes: 3c58f737231e ("scsi: target: tcmu: Optimize use of > flush_dcache_page") > > To: linux-s...@vger.kernel.org >

Re: [PATCH v4] block/scsi-ioctl: Fix kernel-infoleak in scsi_put_cdrom_generic_arg()

2020-10-02 Thread Jens Axboe
On 10/2/20 8:22 AM, Peilin Ye wrote: > scsi_put_cdrom_generic_arg() is copying uninitialized stack memory to > userspace, since the compiler may leave a 3-byte hole in the middle of > `cgc32`. Fix it by adding a padding field to `struct > compat_cdrom_generic_command`. Applied, thanks. -- Jens A

Re: [RFC PATCH 0/7] RAS/CEC: Extend CEC for errors count check on short time period

2020-10-02 Thread Borislav Petkov
On Fri, Oct 02, 2020 at 06:33:17PM +0100, James Morse wrote: > > I think adding the CPU error collection to the kernel > > has the following advantages, > > 1. The CPU error collection and isolation would not be active if the > > rasdaemon stopped running or not running on a machine.

Re: [PATCH v4 3/3] iommu/tegra-smmu: Add PCI support

2020-10-02 Thread Dmitry Osipenko
02.10.2020 20:45, Nicolin Chen пишет: > On Fri, Oct 02, 2020 at 05:35:24PM +0300, Dmitry Osipenko wrote: >> 02.10.2020 09:08, Nicolin Chen пишет: >>> @@ -865,7 +866,11 @@ static struct iommu_group >>> *tegra_smmu_device_group(struct device *dev) >>> group->smmu = smmu; >>> group->soc = soc

Re: [PATCH] mm: Remove src/dst mm parameter in copy_page_range()

2020-10-02 Thread Peter Xu
On Fri, Oct 02, 2020 at 02:28:58PM -0300, Jason Gunthorpe wrote: > On Fri, Oct 02, 2020 at 01:14:29PM -0400, Peter Xu wrote: > > On Fri, Oct 02, 2020 at 08:43:12AM -0300, Jason Gunthorpe wrote: > > > > -static int copy_pte_range(struct mm_struct *dst_mm, struct mm_struct > > > > *src_mm, > > > > -

Re: [PATCH v2] net: qrtr: ns: Fix the incorrect usage of rcu_read_lock()

2020-10-02 Thread Doug Anderson
Hi, On Fri, Oct 2, 2020 at 10:06 AM Manivannan Sadhasivam wrote: > > The rcu_read_lock() is not supposed to lock the kernel_sendmsg() API > since it has the lock_sock() in qrtr_sendmsg() which will sleep. Hence, > fix it by excluding the locking for kernel_sendmsg(). > > While at it, let's also u

Re: [PATCH v4 3/3] iommu/tegra-smmu: Add PCI support

2020-10-02 Thread Dmitry Osipenko
02.10.2020 09:08, Nicolin Chen пишет: > This patch simply adds support for PCI devices. > > Signed-off-by: Nicolin Chen > --- Reviewed-by: Dmitry Osipenko

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