Re: decruft the early init / initrd / initramfs code v2

2020-07-09 Thread Linus Torvalds
On Thu, Jul 9, 2020 at 8:18 AM Christoph Hellwig wrote: > > There is no really good tree for this, so if there are no objections > I'd like to set up a new one for linux-next. All looks good to me. I had a wish-list change for one of the patches that I sent a reply out for, but even without that

Re: [PATCH] security: selinux: ss: conditional.c fixed a checkpatch warning

2020-07-09 Thread Paul Moore
On Thu, Jul 9, 2020 at 9:11 AM Ethan Edwards wrote: > > `sizeof buf` changed to `sizeof(buf)` > > Signed-off-by: Ethan Edwards > --- > security/selinux/ss/conditional.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Why are you reposting this when I applied your original patch last

Re: [patch v2 09/13] x86: Remove efi=old_map command line option

2020-07-09 Thread Steve Wahl
On Thu, Jul 09, 2020 at 09:02:01AM -0700, Andy Lutomirski wrote: > On Thu, Jul 9, 2020 at 7:55 AM wrote: > > > > As a part of UV1 platform removal, delete the efi=old_map option, > > which should no longer be needed. > > Can you also update kernel_parameters.txt? > > --Andy I plan to, but (I me

Re: [PATCH v2 2/4] remoteproc: k3-r5: Add a remoteproc driver for R5F subsystem

2020-07-09 Thread Mathieu Poirier
Good day Suman, On Mon, Jun 29, 2020 at 09:49:20PM -0500, Suman Anna wrote: > The TI K3 family of SoCs typically have one or more dual-core Arm Cortex > R5F processor clusters/subsystems (R5FSS). This R5F subsystem/cluster > can be configured at boot time to be either run in a LockStep mode or in

[PATCH] Documentation/security-bugs: Explain why plain text is preferred

2020-07-09 Thread Kees Cook
The security contact list gets regular reports contained in archive attachments. This tends to add some back-and-forth delay in dealing with security reports since we have to ask for plain text, etc. Signed-off-by: Kees Cook --- Documentation/admin-guide/security-bugs.rst | 9 - 1 file c

Re: [PATCH 15/17] initramfs: switch initramfs unpacking to struct file based APIs

2020-07-09 Thread Christoph Hellwig
On Thu, Jul 09, 2020 at 11:07:08AM -0700, Linus Torvalds wrote: > On Thu, Jul 9, 2020 at 8:18 AM Christoph Hellwig wrote: > > > > There is no good reason to mess with file descriptors from in-kernel > > code, switch the initramfs unpacking to struct file based write > > instead. As we don't have

KASAN: invalid-free in hsr_forward_skb

2020-07-09 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:0bddd227 Documentation: update for gcc 4.9 requirement git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=12ac618f10 kernel config: https://syzkaller.appspot.com/x/.config?x=66ad203c2bb6d8b dashboard

Re: [PATCH v4 1/2] linux/bits.h: fix unsigned less than zero warnings

2020-07-09 Thread Linus Torvalds
On Thu, Jul 9, 2020 at 5:30 AM Herbert Xu wrote: > > I'm still getting the same warning even with the patch, for example: Are you building with W=1? There's a patch to move that broken -Wtype-limits thing to W=2. https://lore.kernel.org/lkml/20200708190756.16810-1-rikard.falkeb...@gmail.co

Re: [PATCH 24/24] scsi: aic7xxx: aic79xx_osm: Remove set but unused variabes 'saved_scsiid' and 'saved_modes'

2020-07-09 Thread James Bottomley
On Thu, 2020-07-09 at 18:45 +0100, Lee Jones wrote: > Haven't been used since 2006. > > Fixes the following W=1 kernel build warning(s): > > drivers/scsi/aic7xxx/aic79xx_osm.c: In function > ‘ahd_linux_queue_abort_cmd’: > drivers/scsi/aic7xxx/aic79xx_osm.c:2155:17: warning: variable > ‘saved_mo

Re: [PATCH 05/11] perf intel-pt: Use itrace error flags to suppress some errors

2020-07-09 Thread Adrian Hunter
On 9/07/20 8:50 pm, Andi Kleen wrote: > On Thu, Jul 09, 2020 at 08:36:22PM +0300, Adrian Hunter wrote: >> The itrace "e" option may be followed by a number which has the >> following effect for Intel PT: >> 1 Suppress overflow events >> 2 Suppress trace data lost events >> The

Re: [PATCH bpf] selftests: bpf: fix detach from sockmap tests

2020-07-09 Thread Jakub Sitnicki
On Thu, Jul 09, 2020 at 01:51 PM CEST, Lorenz Bauer wrote: > Fix sockmap tests which rely on old bpf_prog_dispatch behaviour. > In the first case, the tests check that detaching without giving > a program succeeds. Since these are not the desired semantics, > invert the condition. In the second cas

Re: [PATCH 1/2] KVM: X86: Move ignore_msrs handling upper the stack

2020-07-09 Thread Peter Xu
On Tue, Jun 30, 2020 at 08:47:26AM -0700, Sean Christopherson wrote: > On Sat, Jun 27, 2020 at 04:24:34PM +0200, Paolo Bonzini wrote: > > On 26/06/20 20:18, Sean Christopherson wrote: > > >> Btw, would it be more staightforward to check > > >> "vcpu->arch.arch_capabilities & > > >> ARCH_CAP_TSX_CT

Re: [PATCH 05/11] perf intel-pt: Use itrace error flags to suppress some errors

2020-07-09 Thread Adrian Hunter
On 9/07/20 9:13 pm, Adrian Hunter wrote: > On 9/07/20 8:50 pm, Andi Kleen wrote: >> On Thu, Jul 09, 2020 at 08:36:22PM +0300, Adrian Hunter wrote: >>> The itrace "e" option may be followed by a number which has the >>> following effect for Intel PT: >>> 1 Suppress overflow events >>>

Re: [PATCH 1/2] KVM: X86: Move ignore_msrs handling upper the stack

2020-07-09 Thread Paolo Bonzini
On 09/07/20 20:22, Peter Xu wrote: >>> So I think Peter's patch is fine, but (possibly on top as a third patch) >>> __must_check should be added to MSR getters and setters. Also one >>> possibility is to return -EINVAL for invalid MSRs. > Yeah I can add another patch for that. Also if to repost,

Re: [PATCH 15/17] initramfs: switch initramfs unpacking to struct file based APIs

2020-07-09 Thread Linus Torvalds
On Thu, Jul 9, 2020 at 11:12 AM Christoph Hellwig wrote: > > On Thu, Jul 09, 2020 at 11:07:08AM -0700, Linus Torvalds wrote: > > On Thu, Jul 9, 2020 at 8:18 AM Christoph Hellwig wrote: > > > > > > There is no good reason to mess with file descriptors from in-kernel > > > code, switch the initramf

[PATCH v7 9/9] selftests/seccomp: Test SECCOMP_IOCTL_NOTIF_ADDFD

2020-07-09 Thread Kees Cook
From: Sargun Dhillon Test whether we can add file descriptors in response to notifications. This injects the file descriptors via notifications, and then uses kcmp to determine whether or not it has been successful. It also includes some basic sanity checking for arguments. Signed-off-by: Sargu

[PATCH v7 8/9] seccomp: Introduce addfd ioctl to seccomp user notifier

2020-07-09 Thread Kees Cook
From: Sargun Dhillon The current SECCOMP_RET_USER_NOTIF API allows for syscall supervision over an fd. It is often used in settings where a supervising task emulates syscalls on behalf of a supervised task in userspace, either to further restrict the supervisee's syscall abilities or to circumven

[PATCH v7 0/9] Add seccomp notifier ioctl that enables adding fds

2020-07-09 Thread Kees Cook
Hello! v7: - break out sock usage counting fixes into more cleanly backportable pieces - code style cleanups (christian) - clarify addfd commit log (christian) - add ..._SIZE_{VER0,LATEST} and BUILD_BUG_ON()s (christian) - remove undef (christian) - fix addfd embedded URL reference numbers v6: htt

[PATCH v7 3/9] net/scm: Regularize compat handling of scm_detach_fds()

2020-07-09 Thread Kees Cook
Duplicate the cleanups from commit 2618d530dd8b ("net/scm: cleanup scm_detach_fds") into the compat code. Replace open-coded __receive_sock() with a call to the helper. Move the check added in commit 1f466e1f15cf ("net: cleanly handle kernel vs user buffers for ->msg_control") to before the compa

[PATCH v7 2/9] pidfd: Add missing sock updates for pidfd_getfd()

2020-07-09 Thread Kees Cook
The sock counting (sock_update_netprioidx() and sock_update_classid()) was missing from pidfd's implementation of received fd installation. Add a call to the new __receive_sock() helper. Cc: sta...@vger.kernel.org Fixes: 8649c322f75c ("pid: Implement pidfd_getfd syscall") Signed-off-by: Kees Cook

[PATCH v7 5/9] fs: Add receive_fd() wrapper for __receive_fd()

2020-07-09 Thread Kees Cook
For both pidfd and seccomp, the __user pointer is not used. Update __receive_fd() to make writing to ufd optional via a NULL check. However, for the receive_fd_user() wrapper, ufd is NULL checked so an -EFAULT can be returned to avoid changing the SCM_RIGHTS interface behavior. Add new wrapper rece

[PATCH] S390: Replace HTTP links with HTTPS ones

2020-07-09 Thread Alexander A. Klimov
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't contain `\bxmlns\b`: For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:

[PATCH v7 7/9] fs: Expand __receive_fd() to accept existing fd

2020-07-09 Thread Kees Cook
Expand __receive_fd() with support for replace_fd() for the coming seccomp "addfd" ioctl(). Add new wrapper receive_fd_replace() for the new behavior and update existing wrappers to retain old behavior. Thanks to Colin Ian King for pointing out an uninitialized variable exposure in an earlier ver

[PATCH v7 6/9] pidfd: Replace open-coded receive_fd()

2020-07-09 Thread Kees Cook
Replace the open-coded version of receive_fd() with a call to the new helper. Thanks to Vamshi K Sthambamkadi for catching a missed fput() in an earlier version of this patch. Reviewed-by: Sargun Dhillon Acked-by: Christian Brauner Signed-off-by: Kees Cook --- kernel/pid.c | 15 ++---

[PATCH v7 4/9] fs: Move __scm_install_fd() to __receive_fd()

2020-07-09 Thread Kees Cook
In preparation for users of the "install a received file" logic outside of net/ (pidfd and seccomp), relocate and rename __scm_install_fd() from net/core/scm.c to __receive_fd() in fs/file.c, and provide a wrapper named receive_fd_user(), as future patches will change the interface to __receive_fd(

Re: [PATCH 1/2] riscv: Register System RAM as iomem resources

2020-07-09 Thread Palmer Dabbelt
On Tue, 16 Jun 2020 00:45:46 PDT (-0700), zong...@sifive.com wrote: Add System RAM to /proc/iomem, various tools expect it such as kdump. It is also needed for page_is_ram API which checks the specified address whether registered as System RAM in iomem_resource list. Signed-off-by: Zong Li ---

[PATCH v7 1/9] net/compat: Add missing sock updates for SCM_RIGHTS

2020-07-09 Thread Kees Cook
Add missed sock updates to compat path via a new helper, which will be used more in coming patches. (The net/core/scm.c code is left as-is here to assist with -stable backports for the compat path.) Cc: sta...@vger.kernel.org Fixes: 48a87cc26c13 ("net: netprio: fd passed in SCM_RIGHTS datagram not

Re: [PATCH] KVM: nSVM: vmentry ignores EFER.LMA and possibly RFLAGS.VM

2020-07-09 Thread Jim Mattson
On Thu, Jul 9, 2020 at 10:25 AM Paolo Bonzini wrote: > > On 09/07/20 19:12, Jim Mattson wrote: > >> + > >> + /* The processor ignores EFER.LMA, but svm_set_efer needs it. */ > >> + efer &= ~EFER_LMA; > >> + if ((nested_vmcb->save.cr0 & X86_CR0_PG) > >> + && (nested_vmc

drivers/pinctrl/pinctrl-mcp23s08_spi.c:129:1-3: WARNING: PTR_ERR_OR_ZERO can be used

2020-07-09 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0bddd227f3dc55975e2b8dfa7fc6f959b062a2c7 commit: 0f04a81784fe3ddc00cae74c517265b3ddb8825c pinctrl: mcp23s08: Split to three parts: core, I²C, SPI date: 3 months ago config: i386-randconfig-c001-20200709

Re: [v2][PATCH] platform/x86: thinkpad_acpi: not loading brightness_init when _BCL invalid

2020-07-09 Thread Andy Shevchenko
On Thu, Jul 2, 2020 at 2:07 PM Aaron Ma wrote: > > When _BCL invalid, disable thinkpad_acpi backlight brightness control. > > brightness_enable is already checked at the beginning. > Most new thinkpads are using GPU driver to control brightness now, > print notice when enabled brightness control e

Re: [PATCH] Replace HTTP links with HTTPS ones: YAMA SECURITY MODULE

2020-07-09 Thread Kees Cook
On Thu, Jul 09, 2020 at 08:45:14AM +0200, Alexander A. Klimov wrote: > And as it's the only URL here, of course the whole patch makes no sense > anymore. If I'd replace the URL as you said, I'd make a *new patch* with a > *new title* and just send it --in-reply-to here. And my statement "just > for

Re: [PATCH] KVM: nSVM: vmentry ignores EFER.LMA and possibly RFLAGS.VM

2020-07-09 Thread Paolo Bonzini
On 09/07/20 20:28, Jim Mattson wrote: >> That said, the VMCB here is guest memory and it can change under our >> feet between nested_vmcb_checks and nested_prepare_vmcb_save. Copying >> the whole save area is overkill, but we probably should copy at least >> EFER/CR0/CR3/CR4 in a struct at the beg

Re: [PATCH 16/17] init: open code setting up stdin/stdout/stderr

2020-07-09 Thread Brian Gerst
On Thu, Jul 9, 2020 at 11:19 AM Christoph Hellwig wrote: > > Don't rely on the implicit set_fs(KERNEL_DS) for ksys_open to work, but > instead open a struct file for /dev/console and then install it as FD > 0/1/2 manually. > > Signed-off-by: Christoph Hellwig > --- > fs/file.c|

Re: [PATCH 1/2] KVM: X86: Move ignore_msrs handling upper the stack

2020-07-09 Thread Peter Xu
On Thu, Jul 09, 2020 at 08:24:03PM +0200, Paolo Bonzini wrote: > On 09/07/20 20:22, Peter Xu wrote: > >>> So I think Peter's patch is fine, but (possibly on top as a third patch) > >>> __must_check should be added to MSR getters and setters. Also one > >>> possibility is to return -EINVAL for inva

Re: [REGRESSION] mlx5: Driver remove during hot unplug is broken

2020-07-09 Thread Parav Pandit
On 7/9/2020 3:36 PM, Niklas Schnelle wrote: > > On 7/8/20 5:44 PM, Parav Pandit wrote: > ... snip .. >>> >> >> It is likely because events_cleanup() freed the memory using kvfree() that >> health recovery context is trying to access in notifier chain. >> >> While reviewing I see few more errors a

Re: [PATCH v2] kernel: Implement selective syscall userspace redirection

2020-07-09 Thread Gabriel Krisman Bertazi
Matthew Wilcox writes: > On Thu, Jul 09, 2020 at 12:38:40AM -0400, Gabriel Krisman Bertazi wrote: >> The proposed interface looks like this: >> >> prctl(PR_SET_SYSCALL_USER_DISPATCH, , , [selector]) >> >> Dispatcher is the address of a syscall instruction that is allowed to >> by-pass the blo

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-09 Thread Kanchan Joshi
On Thu, Jul 9, 2020 at 7:36 PM Jens Axboe wrote: > > On 7/9/20 8:00 AM, Christoph Hellwig wrote: > > On Thu, Jul 09, 2020 at 07:58:04AM -0600, Jens Axboe wrote: > >>> We don't actually need any new field at all. By the time the write > >>> returned ki_pos contains the offset after the write, and

Re: [PATCH] KVM: nSVM: vmentry ignores EFER.LMA and possibly RFLAGS.VM

2020-07-09 Thread Jim Mattson
On Thu, Jul 9, 2020 at 11:31 AM Paolo Bonzini wrote: > > On 09/07/20 20:28, Jim Mattson wrote: > >> That said, the VMCB here is guest memory and it can change under our > >> feet between nested_vmcb_checks and nested_prepare_vmcb_save. Copying > >> the whole save area is overkill, but we probably

Linux kernel in-tree Rust support

2020-07-09 Thread Nick Desaulniers
Hello folks, I'm working on putting together an LLVM "Micro Conference" for the upcoming Linux Plumbers Conf (https://www.linuxplumbersconf.org/event/7/page/47-attend). It's not solidified yet, but I would really like to run a session on support for Rust "in tree." I suspect we could cover techni

Re: [PATCH] KVM: nSVM: vmentry ignores EFER.LMA and possibly RFLAGS.VM

2020-07-09 Thread Paolo Bonzini
On 09/07/20 20:40, Jim Mattson wrote: > On Thu, Jul 9, 2020 at 11:31 AM Paolo Bonzini wrote: >> >> On 09/07/20 20:28, Jim Mattson wrote: That said, the VMCB here is guest memory and it can change under our feet between nested_vmcb_checks and nested_prepare_vmcb_save. Copying the wh

[PATCH net-next] net: dsa: mv88e6xxx: Add serdes read/write dynamic debug

2020-07-09 Thread Chris Healy
Add deb_dbg print statements in both serdes_read and serdes_write functions. Signed-off-by: Chris Healy --- drivers/net/dsa/mv88e6xxx/serdes.c | 27 +-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/drivers/net/dsa/mv88e6xxx/serdes.c b/drivers/net/dsa/mv

[PATCH V5] drivers/nvme: Add support for ACPI StorageD3Enable property

2020-07-09 Thread David E. Box
This patch implements a solution for a BIOS hack used on some currently shipping Intel systems to change driver power management policy for PCIe NVMe drives. Some newer Intel platforms, like some Comet Lake systems, require that PCIe devices use D3 when doing suspend-to-idle in order to allow the p

[PATCH] DRM PANEL DRIVERS: Replace HTTP links with HTTPS ones

2020-07-09 Thread Alexander A. Klimov
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't contain `\bxmlns\b`: For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-09 Thread Jens Axboe
On 7/9/20 12:36 PM, Kanchan Joshi wrote: > On Thu, Jul 9, 2020 at 7:36 PM Jens Axboe wrote: >> >> On 7/9/20 8:00 AM, Christoph Hellwig wrote: >>> On Thu, Jul 09, 2020 at 07:58:04AM -0600, Jens Axboe wrote: > We don't actually need any new field at all. By the time the write > returned ki_

[PATCH v2] doc: yama: Swap HTTP for HTTPS and replace dead link

2020-07-09 Thread Kees Cook
Replace one dead link for the same person's original presentation on the topic and swap an HTTP URL with HTTPS. While here, linkify the text to make it more readable when rendered. Link: https://lore.kernel.org/lkml/20200708073346.13177-1-grandmas...@al2klimov.de/ Co-developed-by: Alexander A. Kl

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-09 Thread Pavel Begunkov
On 09/07/2020 21:36, Kanchan Joshi wrote: > On Thu, Jul 9, 2020 at 7:36 PM Jens Axboe wrote: >> >> On 7/9/20 8:00 AM, Christoph Hellwig wrote: >>> On Thu, Jul 09, 2020 at 07:58:04AM -0600, Jens Axboe wrote: > We don't actually need any new field at all. By the time the write > returned ki

[PATCH 1/2] ASoC: tlv320adcx140: Add ASI enable for channel 5-8

2020-07-09 Thread Dan Murphy
Add the ALSA controls to enable the ASI for channels 5-8 Signed-off-by: Dan Murphy --- sound/soc/codecs/tlv320adcx140.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/sound/soc/codecs/tlv320adcx140.c b/sound/soc/codecs/tlv320adcx140.c index 35fe8ee5bce9..f884abdb576e

[PATCH 2/2] ASoC: tlv320adcx140: Add tx offset slot programming

2020-07-09 Thread Dan Murphy
Add the TX offset slot programming. There is no RX offset slot register. Since there is no RX offset the check for slot symmetry can be removed. Signed-off-by: Dan Murphy --- sound/soc/codecs/tlv320adcx140.c | 40 1 file changed, 10 insertions(+), 30 deletions(

Re: [PATCH v2 1/2] riscv: Add STACKPROTECTOR supported

2020-07-09 Thread kernel test robot
Hi, I love your patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.8-rc4 next-20200709] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use as documented in https://git

Re: [PATCH 2/5] iommu/arm-smmu: Emulate bypass by using context banks

2020-07-09 Thread Rob Clark
On Thu, Jul 9, 2020 at 9:56 AM Rob Clark wrote: > > On Thu, Jul 9, 2020 at 9:48 AM Bjorn Andersson > wrote: > > > > On Thu 09 Jul 09:17 PDT 2020, Rob Clark wrote: > > > > > On Wed, Jul 8, 2020 at 10:01 PM Bjorn Andersson > > > wrote: > > [..] > > > > @@ -678,7 +680,11 @@ static int arm_smmu_init

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-09 Thread Pavel Begunkov
On 09/07/2020 21:50, Pavel Begunkov wrote: > On 09/07/2020 21:36, Kanchan Joshi wrote: >> On Thu, Jul 9, 2020 at 7:36 PM Jens Axboe wrote: >>> >>> On 7/9/20 8:00 AM, Christoph Hellwig wrote: On Thu, Jul 09, 2020 at 07:58:04AM -0600, Jens Axboe wrote: >> We don't actually need any new fiel

Re: [PATCH net] ethtool: fix genlmsg_put() failure handling in ethnl_default_dumpit()

2020-07-09 Thread Jakub Kicinski
On Thu, 9 Jul 2020 12:11:50 +0200 (CEST) Michal Kubecek wrote: > If the genlmsg_put() call in ethnl_default_dumpit() fails, we bail out > without checking if we already have some messages in current skb like we do > with ethnl_default_dump_one() failure later. Therefore if existing messages > almo

Re: [PATCH v3] mm/hugetlb: avoid hardcoding while checking if cma is enable

2020-07-09 Thread Mike Kravetz
Looks like this produced a warning in linux-next. I suspect it is due to the combination CONFIG_HUGETLB_PAGE && !CONFIG_CMA. Instead of adding the routine hugetlb_cma_enabled() to scan the hugetlb_cma array, could we just use a boolean as follows? It can simply be set in hugetlb_cma_reserve when

Re: [PATCH v2 11/12] PM, libnvdimm: Add 'mem-quiet' state and callback for firmware activation

2020-07-09 Thread Dan Williams
On Thu, Jul 9, 2020 at 7:57 AM Rafael J. Wysocki wrote: > > On Tuesday, July 7, 2020 3:59:32 AM CEST Dan Williams wrote: > > The runtime firmware activation capability of Intel NVDIMM devices > > requires memory transactions to be disabled for 100s of microseconds. > > This timeout is large enough

Re: [f2fs-dev] [PATCH] f2fs: don't skip writeback of quota data

2020-07-09 Thread Jaegeuk Kim
On 07/09, Chao Yu wrote: > On 2020/7/9 13:30, Jaegeuk Kim wrote: > > It doesn't need to bypass flushing quota data in background. > > The condition is used to flush quota data in batch to avoid random > small-sized udpate, did you hit any problem here? I suspect this causes fault injection test b

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-09 Thread Kanchan Joshi
On Fri, Jul 10, 2020 at 12:20 AM Jens Axboe wrote: > > On 7/9/20 12:36 PM, Kanchan Joshi wrote: > > On Thu, Jul 9, 2020 at 7:36 PM Jens Axboe wrote: > >> > >> On 7/9/20 8:00 AM, Christoph Hellwig wrote: > >>> On Thu, Jul 09, 2020 at 07:58:04AM -0600, Jens Axboe wrote: > > We don't actually ne

[PATCH] FILESYSTEMS (VFS and infrastructure): Replace HTTP links with HTTPS ones

2020-07-09 Thread Alexander A. Klimov
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't contain `\bxmlns\b`: For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:

Re: [Ksummit-discuss] [PATCH v3] CodingStyle: Inclusive Terminology

2020-07-09 Thread Dan Williams
On Thu, Jul 9, 2020 at 12:26 AM Daniel Vetter wrote: > > On Wed, Jul 8, 2020 at 8:30 PM Dan Williams wrote: > > > > Linux maintains a coding-style and its own idiomatic set of terminology. > > Update the style guidelines to recommend replacements for the terms > > master/slave and blacklist/white

Re: [Ksummit-discuss] [PATCH v3] CodingStyle: Inclusive Terminology

2020-07-09 Thread Dan Williams
On Thu, Jul 9, 2020 at 2:45 AM Matthias Brugger wrote: > > > > On 08/07/2020 20:14, Dan Williams wrote: > > Linux maintains a coding-style and its own idiomatic set of terminology. > > Update the style guidelines to recommend replacements for the terms > > master/slave and blacklist/whitelist. > >

Re: WARNING: at mm/mremap.c:211 move_page_tables in i386

2020-07-09 Thread Linus Torvalds
On Wed, Jul 8, 2020 at 10:28 PM Naresh Kamboju wrote: > > While running LTP mm test suite on i386 or qemu_i386 this kernel warning > has been noticed from stable 5.4 to stable 5.7 branches and mainline 5.8.0-rc4 > and linux next. Hmm If this is repeatable, would you mind making the warning also

[PATCH] kprobes: Replace HTTP links with HTTPS ones

2020-07-09 Thread Alexander A. Klimov
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't contain `\bxmlns\b`: For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:

[bugzilla-dae...@bugzilla.kernel.org: [Bug 208507] New: BISECTED: i2c timeout loading module ddbridge with commit d2345d1231d80ecbea5fb764eb43123440861462]

2020-07-09 Thread Bjorn Helgaas
Bisected to Debian commit d2345d1231d8, which is a backport of the upstream commit b88bf6c3b6ff ("PCI: Add boot interrupt quirk mechanism for Xeon chipsets"). Reporter confirmed that reverting the Debian backport from 4.19.132 fixes the problem. - Forwarded message from bugzilla-dae...@bugzil

[PATCH] fsi: aspeed: Enable 23-bit addressing

2020-07-09 Thread Eddie James
In order to access more than the second hub link, 23-bit addressing is required. The core provides the highest two bits of address as the slave ID to the master. OpenBMC-Staging-Count: 1 Signed-off-by: Eddie James Acked-by: Jeremy Kerr Signed-off-by: Joel Stanley --- drivers/fsi/fsi-master-asp

[tip:master] BUILD SUCCESS 0f6d693c11daf83ae38a279047db9136024a7092

2020-07-09 Thread kernel test robot
randconfig-a004-20200708 i386 randconfig-a003-20200708 i386 randconfig-a002-20200709 i386 randconfig-a001-20200709 i386 randconfig-a006-20200709 i386 randconfig-a005-20200709 i386 randconfig-a004-202

[PATCH] x86/cpu: Add Rocket Lake to Intel family

2020-07-09 Thread Tony Luck
From: Gayatri Kammela Add the model number/CPUID of Rocket Lake desktop to the Intel family. Reviewed-by: Tony Luck Signed-off-by: Gayatri Kammela Signed-off-by: Tony Luck --- Thomas, Ingo: I'd appreciate if this could go into some TIP branch quickly. As usual we have a bunch of different in

Re: [PATCH 1/2] KVM: X86: Move ignore_msrs handling upper the stack

2020-07-09 Thread Sean Christopherson
On Thu, Jul 09, 2020 at 02:22:20PM -0400, Peter Xu wrote: > On Tue, Jun 30, 2020 at 08:47:26AM -0700, Sean Christopherson wrote: > > On Sat, Jun 27, 2020 at 04:24:34PM +0200, Paolo Bonzini wrote: > > > On 26/06/20 20:18, Sean Christopherson wrote: > > > >> Btw, would it be more staightforward to ch

Re: [PATCH v29 01/16] dt: bindings: Add multicolor class dt bindings documention

2020-07-09 Thread Rob Herring
On Mon, 22 Jun 2020 13:59:04 -0500, Dan Murphy wrote: > Add DT bindings for the LEDs multicolor class framework. > Add multicolor ID to the color ID list for device tree bindings. > > CC: Rob Herring > Acked-by: Pavel Machek > Acked-by: Jacek Anaszewski > Signed-off-by: Dan Murphy > --- > ...

Re: [PATCH v29 04/16] dt: bindings: lp50xx: Introduce the lp50xx family of RGB drivers

2020-07-09 Thread Rob Herring
On Mon, 22 Jun 2020 13:59:07 -0500, Dan Murphy wrote: > Introduce the bindings for the Texas Instruments LP5036, LP5030, LP5024, > LP5018, LP5012 and LP5009 RGB LED device driver. The LP5036/30/24/18/12/9 > can control RGB LEDs individually or as part of a control bank group. > These devices have

Re: [PATCH v29 06/16] dt-bindings: leds: Convert leds-lp55xx to yaml

2020-07-09 Thread Rob Herring
On Mon, 22 Jun 2020 13:59:09 -0500, Dan Murphy wrote: > Convert the leds-lp55xx.txt to yaml binding. > > Signed-off-by: Dan Murphy > --- > .../devicetree/bindings/leds/leds-lp55xx.txt | 228 -- > .../devicetree/bindings/leds/leds-lp55xx.yaml | 220 + > 2 files ch

[PATCH] IDE SUBSYSTEM: Replace HTTP links with HTTPS ones

2020-07-09 Thread Alexander A. Klimov
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't contain `\bxmlns\b`: For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:

Re: [PATCH v4 0/3] platform/x86: dell-wmi: new keys

2020-07-09 Thread Andy Shevchenko
On Wed, Jun 10, 2020 at 10:23 PM wrote: > > > -Original Message- > > From: Y Paritcher > > Sent: Wednesday, June 10, 2020 12:57 PM > > To: Pali Rohár > > Cc: linux-kernel@vger.kernel.org; platform-driver-...@vger.kernel.org; > > Matthew Garrett; Limonciello, Mario > > Subject: [PATCH v4 0

Re: [PATCH v2 3/4] remoteproc: k3-r5: Initialize TCM memories for ECC

2020-07-09 Thread Mathieu Poirier
On Mon, Jun 29, 2020 at 09:49:21PM -0500, Suman Anna wrote: > The R5F processors on K3 SoCs all have two TCMs (ATCM and BTCM) that > support 32-bit ECC. The TCMs are typically loaded with some boot-up > code to initialize the R5 MPUs to further execute code out of DDR. > The ECC for the TCMs is ena

Re: [PATCH 24/24] scsi: aic7xxx: aic79xx_osm: Remove set but unused variabes 'saved_scsiid' and 'saved_modes'

2020-07-09 Thread Lee Jones
On Thu, 09 Jul 2020, James Bottomley wrote: > On Thu, 2020-07-09 at 18:45 +0100, Lee Jones wrote: > > Haven't been used since 2006. > > > > Fixes the following W=1 kernel build warning(s): > > > > drivers/scsi/aic7xxx/aic79xx_osm.c: In function > > ‘ahd_linux_queue_abort_cmd’: > > drivers/scsi

Re: [PATCH v4 7/9] bus: mhi: core: Introduce debugfs entries and counters for MHI

2020-07-09 Thread bbhatt
On 2020-07-04 08:41, Manivannan Sadhasivam wrote: On Mon, Jun 29, 2020 at 09:39:40AM -0700, Bhaumik Bhatt wrote: Introduce debugfs entries to show state, register, channel, and event ring information. Add MHI state counters to keep track of the state changes on the device. Also, allow the host t

Re: [PATCH] net: enetc: use eth_broadcast_addr() to assign broadcast

2020-07-09 Thread David Miller
From: Xu Wang Date: Thu, 9 Jul 2020 06:48:55 + > This patch is to use eth_broadcast_addr() to assign broadcast address > insetad of memset(). > > Signed-off-by: Xu Wang Applied to net-next, thanks.

Re: [PATCH v16 2/4] dt-bindings: power: Convert battery.txt to battery.yaml

2020-07-09 Thread Rob Herring
On Tue, Jul 07, 2020 at 04:29:12PM -0500, Ricardo Rivera-Matos wrote: > From: Dan Murphy > > Convert the battery.txt file to yaml and fix up the examples. > > Signed-off-by: Dan Murphy > --- > .../bindings/power/supply/battery.txt | 86 +- > .../bindings/power/supply/battery.y

Re: [PATCH net] ethtool: fix genlmsg_put() failure handling in ethnl_default_dumpit()

2020-07-09 Thread David Miller
From: Michal Kubecek Date: Thu, 9 Jul 2020 12:11:50 +0200 (CEST) > If the genlmsg_put() call in ethnl_default_dumpit() fails, we bail out > without checking if we already have some messages in current skb like we do > with ethnl_default_dump_one() failure later. Therefore if existing messages >

arch/mips/boot/compressed/bswapsi.c:5:22: warning: no previous prototype for function '__bswapsi2'

2020-07-09 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0bddd227f3dc55975e2b8dfa7fc6f959b062a2c7 commit: ff487d41036035376e47972c7c522490b839ab37 MIPS: Truncate link address into 32bit for 32bit kernel date: 9 weeks ago config: mips-randconfig-r012-20200709

Re: [Patch v4 0/4] mm/mremap: cleanup move_page_tables() a little

2020-07-09 Thread Dmitry Osipenko
tch 4 to simplify the logic to calculate next and extent Hello, Wei! Unfortunately you re-introduced the offending change that was fixed in v2 and today's next-20200709 on ARM32 is broken once again: BUG: Bad rss-counter state mm:db85ec46 type:MM_ANONPAGES val:190 Please don't do it ;)

xtensa-linux-ld: section .start VMA overlaps section .image VMA

2020-07-09 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0bddd227f3dc55975e2b8dfa7fc6f959b062a2c7 commit: 5e4417f921238b5acf101bfcd59a7b3463fb2dbd xtensa: reorganize vectors placement date: 5 months ago config: xtensa-randconfig-r014-20200709 (attached as

[PATCH] MAINTAINERS: XDP: restrict N: and K:

2020-07-09 Thread Alexander A. Klimov
Rationale: Documentation/arm/ixp4xx.rst contains "xdp" as part of "ixdp465" which has nothing to do with XDP. Signed-off-by: Alexander A. Klimov --- See also: https://lore.kernel.org/lkml/20200709132607.7fb42415@carbon/ MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) dif

Re: [PATCH 2/5] iommu/arm-smmu: Emulate bypass by using context banks

2020-07-09 Thread Bjorn Andersson
On Thu 09 Jul 11:55 PDT 2020, Rob Clark wrote: > On Thu, Jul 9, 2020 at 9:56 AM Rob Clark wrote: > > > > On Thu, Jul 9, 2020 at 9:48 AM Bjorn Andersson > > wrote: > > > > > > On Thu 09 Jul 09:17 PDT 2020, Rob Clark wrote: > > > > > > > On Wed, Jul 8, 2020 at 10:01 PM Bjorn Andersson > > > > wro

Plumbers session on GNU+LLVM collab?

2020-07-09 Thread Nick Desaulniers
Hi Segher, Rasmus, and Ramana, I am working on finalizing a proposal for an LLVM microconference at plumbers, which is focusing on a lot of issues we currently face on the LLVM side. I'd really like to host a session with more GNU toolchain developers to discuss collaboration more. I was curious;

Re: [PATCH 1/2] dt-bindings: interconnect: Add generic qcom bindings

2020-07-09 Thread Mike Tipton
On 7/9/2020 8:35 AM, Matthias Kaehlcke wrote: On Mon, Jun 22, 2020 at 09:05:14PM -0700, Mike Tipton wrote: Add generic qcom interconnect bindings that are common across platforms. In particular, these include QCOM_ICC_TAG_* macros that clients can use when calling icc_set_tag(). Signed-off-by:

Re: [PATCH net-next] net: dsa: mv88e6xxx: Add serdes read/write dynamic debug

2020-07-09 Thread David Miller
From: Chris Healy Date: Thu, 9 Jul 2020 11:43:18 -0700 > Add deb_dbg print statements in both serdes_read and serdes_write > functions. > > Signed-off-by: Chris Healy Please just use tracepoints or similar for this.

[PATCH] SCSI RDMA PROTOCOL (SRP) TARGET: Replace HTTP links with HTTPS ones

2020-07-09 Thread Alexander A. Klimov
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't contain `\bxmlns\b`: For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:

Aw: Re: [PATCH v2] net: ethernet: mtk_eth_soc: fix mtu warning

2020-07-09 Thread Frank Wunderlich
> Gesendet: Donnerstag, 09. Juli 2020 um 15:41 Uhr > Von: "Andrew Lunn" > > + eth->netdev[id]->max_mtu = 1536; > > I assume this is enough to make the DSA warning go away, but it is the > true max? I have a similar patch for the FEC driver which i should > post sometime. Reviewing the FEC code

Re: [PATCH v5] x86/speculation/l1tf: Add KConfig for setting the L1D cache flush mode

2020-07-09 Thread Doug Anderson
Hi, On Thu, Jul 9, 2020 at 3:51 AM Thomas Gleixner wrote: > > Abhishek Bhardwaj writes: > > This change adds a new kernel configuration that sets the l1d cache > > flush setting at compile time rather than at run time. > > > > The reasons for this change are as follows - > > > > - Kernel comman

Re: [PATCH v2 4/4] remoteproc: k3-r5: Add loading support for on-chip SRAM regions

2020-07-09 Thread Mathieu Poirier
On Mon, Jun 29, 2020 at 09:49:22PM -0500, Suman Anna wrote: > The K3 SoCs has various internal on-chip SRAM memories like the SRAM > within the MCU domain or the shared MSMC RAM within NavSS that can be > used for multiple purposes. One such purpose is to have the R5F cores > use a portion of such

[PATCH stable v4.9 v2] arm64: entry: Place an SB sequence following an ERET instruction

2020-07-09 Thread Florian Fainelli
From: Will Deacon commit 679db70801da9fda91d26caf13bf5b5ccc74e8e8 upstream Some CPUs can speculate past an ERET instruction and potentially perform speculative accesses to memory before processing the exception return. Since the register state is often controlled by a lower privilege level at th

Re: [PATCH v2] ACPI / platform: Fix return value check in check_acpi_dev()

2020-07-09 Thread Andy Shevchenko
On Fri, Jun 5, 2020 at 2:42 PM Lu Wei wrote: > > In the function check_acpi_dev(), if it fails to create > platform device, the return value is ERR_PTR() or NULL. Thus it must > use IS_ERR_OR_NULL to check return value. > Thanks! > Fixes: ecc83e52b28c (intel-hid: new hid event driver for hotkeys

Re: [PATCH 5/5] iommu/arm-smmu: Setup identity domain for boot mappings

2020-07-09 Thread Bjorn Andersson
On Thu 09 Jul 08:50 PDT 2020, Laurentiu Tudor wrote: > > > On 7/9/2020 8:01 AM, Bjorn Andersson wrote: > > With many Qualcomm platforms not having functional S2CR BYPASS a > > temporary IOMMU domain, without translation, needs to be allocated in > > order to allow these memory transactions. > >

Re: [PATCH v7 2/9] pidfd: Add missing sock updates for pidfd_getfd()

2020-07-09 Thread Jann Horn
On Thu, Jul 9, 2020 at 8:26 PM Kees Cook wrote: > The sock counting (sock_update_netprioidx() and sock_update_classid()) > was missing from pidfd's implementation of received fd installation. Add > a call to the new __receive_sock() helper. [...] > diff --git a/kernel/pid.c b/kernel/pid.c [...] >

[PATCH v4 6/7] arm64: dts: qcom: sc7180: Add interconnects property for GPU

2020-07-09 Thread Akhil P Oommen
From: Sharat Masetty This patch adds the interconnects property to the GPU node. This enables the GPU->DDR path bandwidth voting. Signed-off-by: Sharat Masetty Signed-off-by: Akhil P Oommen --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm

[PATCH v4 0/7] Add support for GPU DDR BW scaling

2020-07-09 Thread Akhil P Oommen
This is mostly a rebase of Sharat's patches [1] on the tip of msm-next branch. Changes compared to v3: 1. Rebased on top of Jonathan's patch which adds support for changing gpu freq through hfi on newer targets. Created patch 1 to make this the generic approach of setting gp

[PATCH v4 4/7] drm: msm: a6xx: use dev_pm_opp_set_bw to scale DDR

2020-07-09 Thread Akhil P Oommen
From: Sharat Masetty This patches replaces the previously used static DDR vote and uses dev_pm_opp_set_bw() to scale GPU->DDR bandwidth along with scaling GPU frequency. Also since the icc path voting is handled completely in the opp driver, remove the icc_path handle and its usage in the drm dri

[PATCH v4 2/7] drm: msm: a6xx: send opp instead of a frequency

2020-07-09 Thread Akhil P Oommen
From: Sharat Masetty This patch changes the plumbing to send the devfreq recommended opp rather than the frequency. Also consolidate and rearrange the code in a6xx to set the GPU frequency and the icc vote in preparation for the upcoming changes for GPU->DDR scaling votes. Signed-off-by: Sharat

[PATCH v4 3/7] drm: msm: a6xx: set gpu freq through hfi

2020-07-09 Thread Akhil P Oommen
Newer targets support changing gpu frequency through HFI. So use that wherever supported instead of the legacy method. Signed-off-by: Akhil P Oommen --- drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/msm/adren

Re: [PATCH] fpga: stratix10-soc: make FPGA task un-interruptible

2020-07-09 Thread Tom Rix
Mostly fine, see inline question. On 7/7/20 9:14 AM, richard.g...@linux.intel.com wrote: > From: Richard Gong > > When CTRL+C occurs during the process of FPGA reconfiguration, the FPGA > reconfiguration process stops and the user can't perform a new FPGA > reconfiguration properly. > > Set FPGA

[PATCH v4 5/7] arm64: dts: qcom: SDM845: Enable GPU DDR bw scaling

2020-07-09 Thread Akhil P Oommen
From: Sharat Masetty This patch adds the interconnects property for the gpu node and the opp-peak-kBps property to the opps of the gpu opp table. This should help enable DDR bandwidth scaling dynamically and proportionally to the GPU frequency. Signed-off-by: Sharat Masetty Signed-off-by: Akhil

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