Re: [PATCH v3 1/2] x86: Don't let pgprot_modify() change the page encryption bit

2019-09-30 Thread Thomas Hellstrom
Hi, On 9/18/19 7:57 PM, Dave Hansen wrote: > On 9/17/19 6:01 AM, Thomas Hellström (VMware) wrote: >> diff --git a/arch/x86/include/asm/pgtable_types.h >> b/arch/x86/include/asm/pgtable_types.h >> index b5e49e6bac63..8267dd426b15 100644 >> --- a/arch/x86/include/asm/pgtable_types.h >> +++

Re: [patch for-5.3 0/4] revert immediate fallback to remote hugepages

2019-09-30 Thread Michal Hocko
On Mon 30-09-19 13:28:17, Michal Hocko wrote: [...] > Do not get me wrong, but we have a quite a long history of fine tuning > for THP by adding kludges here and there and they usually turnout to > break something else. I really want to get to understand the underlying > problem and base a

Re: [PATCH v2 0/6] media: cedrus: h264: Support multi-slice frames

2019-09-30 Thread Jernej Škrabec
Dne torek, 01. oktober 2019 ob 00:43:34 CEST je Hans Verkuil napisal(a): > On 10/1/19 12:27 AM, Jernej Škrabec wrote: > > Dne ponedeljek, 30. september 2019 ob 10:10:48 CEST je Hans Verkuil > > > > napisal(a): > >> On 9/29/19 10:00 PM, Jernej Skrabec wrote: > >>> This series adds support for

drivers/gpu/drm/exynos/exynos_drm_dsi.c:1796:2-9: line 1796 is redundant because platform_get_irq() already prints an error (fwd)

2019-09-30 Thread Julia Lawall
-- Forwarded message -- Date: Tue, 1 Oct 2019 10:47:40 +0800 From: kbuild test robot To: kbu...@01.org Cc: Julia Lawall Subject: drivers/gpu/drm/exynos/exynos_drm_dsi.c:1796:2-9: line 1796 is redundant because platform_get_irq() already prints an error CC:

Re: [PATCH v3 0/2] mmc: sdhci-milbeaut: add Milbeaut SD driver

2019-09-30 Thread orito.takao
Hello Does anyone have any comments on this ? > The following patches add driver for SD Host controller on > Socionext's Milbeaut M10V platforms. > > SD Host controller on Milbeaut consists of two controller parts. > One is core controller F_SDH30, this is similar to sdhci-fujitsu >

RE: [PATCH] x86/PAT: priority the PAT warn to error to highlight the developer

2019-09-30 Thread Zhang, Jun
Please see my comments. Thanks, Jun -Original Message- From: Borislav Petkov Sent: Monday, September 30, 2019 8:03 PM To: Zhang, Jun Cc: dave.han...@linux.intel.com; l...@kernel.org; pet...@infradead.org; t...@linutronix.de; mi...@redhat.com; h...@zytor.com; He, Bo ;

Re: What populates /proc/partitions ?

2019-09-30 Thread David F.
It has something to do with devtmpfs that causes it. If I could set this GENHD_FL_HIDDEN flag on it, it would solve the problem on those system that say the have a floppy but doesn't really exist.Is something built-in to allow that or it's up to the driver itself? On Mon, Sep 30, 2019 at

Re: [PATCH v2 0/3] Add support for SBI v0.2

2019-09-30 Thread Alan Kao
On Fri, Sep 27, 2019 at 10:57:45PM +, Atish Patra wrote: > On Fri, 2019-09-27 at 15:19 -0700, Christoph Hellwig wrote: > > On Thu, Sep 26, 2019 at 05:09:12PM -0700, Atish Patra wrote: > > > The Supervisor Binary Interface(SBI) specification[1] now defines a > > > base extension that provides

Re: [PATCH -next] bfa: Make restart_bfa static

2019-09-30 Thread Martin K. Petersen
YueHaibing, > Fix sparse warning: > > drivers/scsi/bfa/bfad.c:1491:1: warning: > symbol 'restart_bfa' was not declared. Should it be static? Applied to 5.5/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 0/2] scsi: ufs: Add driver for TI wrapper for Cadence UFS IP

2019-09-30 Thread Martin K. Petersen
Vignesh, > This series add DT bindings and driver for TI wrapper for Cadence UFS > IP that is present on TI's J721e SoC Will need some reviews from DT and ufs folks respectively before I can queue this up. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v2] scsi: qla2xxx: Remove WARN_ON_ONCE in qla2x00_status_cont_entry()

2019-09-30 Thread Martin K. Petersen
Daniel, > Commit 88263208dd23 ("scsi: qla2xxx: Complain if sp->done() is not > called from the completion path") introduced the WARN_ON_ONCE in > qla2x00_status_cont_entry(). The assumption was that there is only one > status continuations element. According to the firmware documentation > it

Re: What populates /proc/partitions ?

2019-09-30 Thread David F.
Well, it's not straightforward. No direct calls, it must be somehow when kmod is used to load the module. The only difference I see in the udevadm output is the old system has attribute differences capability new==11, old==1, event_poll_msec new=2000, old=-1. I figured if i could set the

Re: [PATCH] scsi: libcxgbi: remove unused function to stop warning

2019-09-30 Thread Martin K. Petersen
Austin, > Since 'commit fc8d0590d914 ("libcxgbi: Add ipv6 api to driver")' was > introduced, there is no call to csk_print_port() > and csk_print_ip() is made. Applied to 5.5/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering

KMSAN: uninit-value in adu_disconnect

2019-09-30 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:014077b5 DO-NOT-SUBMIT: usb-fuzzer: main usb gadget fuzzer.. git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=108b582660 kernel config:

[PATCH v2] perf script python: integrate page reclaim analyze script

2019-09-30 Thread Yafang Shao
A new perf script page-reclaim is introduced in this patch. This new script is used to report the page reclaim details. The possible usage of this script is as bellow, - identify latency spike caused by direct reclaim - whehter the latency spike is relevant with pageout - why is page reclaim

Re: [PATCH] kasan: fix the missing underflow in memmove and memcpy with CONFIG_KASAN_GENERIC=y

2019-09-30 Thread Walter Wu
On Tue, 2019-10-01 at 05:01 +0200, Dmitry Vyukov wrote: > On Tue, Oct 1, 2019 at 4:36 AM Walter Wu wrote: > > > > On Mon, 2019-09-30 at 10:57 +0200, Marc Gonzalez wrote: > > > On 30/09/2019 06:36, Walter Wu wrote: > > > > > > > bool check_memory_region(unsigned long addr, size_t size, bool

Re: [PATCH] scsi: smartpqi: clean up an indentation issue

2019-09-30 Thread Martin K. Petersen
Colin, > There are some statements that are indented too deeply, remove the > extraneous tabs and rejoin split lines. Applied (additional hunk) to 5.5/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: csiostor: clean up indentation issue

2019-09-30 Thread Martin K. Petersen
Colin, > The goto statement is indented incorrectly, remove the extraneous tab. Applied to 5.5/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering

KASAN: use-after-free Read in batadv_iv_ogm_queue_add

2019-09-30 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:faeacb6d net: tap: clean up an indentation issue git tree: net console output: https://syzkaller.appspot.com/x/log.txt?x=1241cbd360 kernel config: https://syzkaller.appspot.com/x/.config?x=6c210ff0b9a35071 dashboard link:

Re: [PATCH v2] scsi: core: Log SCSI command age with errors

2019-09-30 Thread Martin K. Petersen
Milan, > Couple of users had requested to print the SCSI command age along with > command failure errors. This is a small change, but allows users to > get more important information about the command that was failed, it > would help the users in debugging the command failures: Applied to

Re: [PATCH v2] scsi: qedf: Add port_id getter

2019-09-30 Thread Martin K. Petersen
Daniel, > Add qedf_get_host_port_id() to the transport template. > > The fc_transport_template initializes the port_id member to the > default value of -1. The new getter ensures that the sysfs entry shows > the current value and not the default one, e.g by using 'lsscsi -H -t' Applied to

Re: Problem sharing interrupts between gpioa and uart0 on Broadcom Hurricane 2 (iProc)

2019-09-30 Thread Chris Packham
Hi Florian, On Mon, 2019-09-30 at 19:54 -0700, Florian Fainelli wrote: > > On 9/30/2019 7:33 PM, Chris Packham wrote: > > Hi, > > > > We have a platform using the BCM53344 integrated switch/CPU. This is > > part of the Hurricane 2 (technically Wolfhound) family of devices. > > > > Currently

Re: [PATCH] kasan: fix the missing underflow in memmove and memcpy with CONFIG_KASAN_GENERIC=y

2019-09-30 Thread Dmitry Vyukov
On Tue, Oct 1, 2019 at 4:36 AM Walter Wu wrote: > > On Mon, 2019-09-30 at 10:57 +0200, Marc Gonzalez wrote: > > On 30/09/2019 06:36, Walter Wu wrote: > > > > > bool check_memory_region(unsigned long addr, size_t size, bool write, > > > unsigned long ret_ip) > > >

Re: [PATCH][next] scsi: hisi_sas: fix spelling mistake "digial" -> "digital"

2019-09-30 Thread Martin K. Petersen
Colin, > There is a spelling mistake in literal string. Fix it. Applied to 5.5/scsi-queue. Thanks. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: bfa: release allocated memory in case of error

2019-09-30 Thread Martin K. Petersen
Navid, > In bfad_im_get_stats if bfa_port_get_stats fails, allocated memory > needs to be released. Applied to 5.5/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: Problem sharing interrupts between gpioa and uart0 on Broadcom Hurricane 2 (iProc)

2019-09-30 Thread Florian Fainelli
On 9/30/2019 7:33 PM, Chris Packham wrote: > Hi, > > We have a platform using the BCM53344 integrated switch/CPU. This is > part of the Hurricane 2 (technically Wolfhound) family of devices. > > Currently we're using pieces of Broadcom's "iProc" SDK based on an out > of date kernel and we'd

Re: [PATCH] PCI: Add Loongson vendor ID and device IDs

2019-09-30 Thread Tiezhu Yang
On 09/30/2019 10:02 PM, Andrew Murray wrote: On Mon, Sep 30, 2019 at 12:55:20PM +0800, Tiezhu Yang wrote: Add the Loongson vendor ID and device IDs to pci_ids.h to be used in the future. The Loongson IDs can be found at the following link:

Re: [PATCH] phy-brcm-usb: Use devm_platform_ioremap_resource() in brcm_usb_phy_probe()

2019-09-30 Thread Florian Fainelli
On 9/26/2019 9:08 AM, Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 26 Sep 2019 18:00:14 +0200 > > Simplify this function implementation a bit by using > a known wrapper function. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring

Re: [PATCH] scsi: fnic: make array dev_cmd_err static const, makes object smaller

2019-09-30 Thread Martin K. Petersen
Colin, > Don't populate the array dev_cmd_err on the stack but instead make it > static const. Makes the object code smaller by 80 bytes. Applied to 5.5/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 1/3] perf/core: Provide a kernel-internal interface to recalibrate event period

2019-09-30 Thread kbuild test robot
Hi Like, Thank you for the patch! Yet something to improve: [auto build test ERROR on kvm/linux-next] [cannot apply to v5.4-rc1 next-20190930] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify

Re: [PATCH] scsi: ufs: make array setup_attrs static const, makes object smaller

2019-09-30 Thread Martin K. Petersen
Colin, > Don't populate the array setup_attrs on the stack but instead make it > static const. Makes the object code smaller by 180 bytes. Applied to 5.5/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: ips: make array 'options' static const, makes object smaller

2019-09-30 Thread Martin K. Petersen
Colin, > Don't populate the array 'options' on the stack but instead make it > static const. Makes the object code smaller by 143 bytes. Applied to 5.5/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: mvsas: remove redundant assignment to variable rc

2019-09-30 Thread Martin K. Petersen
Colin, > The variable rc is being initialized with a value that is never read > and is being re-assigned a little later on. The assignment is > redundant and hence can be removed. Applied to 5.5/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: qla2xxx: remove redundant assignment to pointer host

2019-09-30 Thread Martin K. Petersen
Colin, > The pointer host is being initialized with a value that is never read > and is being re-assigned a little later on. The assignment is > redundant and hence can be removed. Applied to 5.5/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH -next] scsi: smartpqi: remove set but not used variable 'ctrl_info'

2019-09-30 Thread Martin K. Petersen
YueHaibing, > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/scsi/smartpqi/smartpqi_init.c: In function 'pqi_driver_version_show': > drivers/scsi/smartpqi/smartpqi_init.c:6164:24: warning: > variable 'ctrl_info' set but not used [-Wunused-but-set-variable] Applied to

Re: [PATCH] kasan: fix the missing underflow in memmove and memcpy with CONFIG_KASAN_GENERIC=y

2019-09-30 Thread Walter Wu
On Mon, 2019-09-30 at 10:57 +0200, Marc Gonzalez wrote: > On 30/09/2019 06:36, Walter Wu wrote: > > > bool check_memory_region(unsigned long addr, size_t size, bool write, > > unsigned long ret_ip) > > { > > + if (long(size) < 0) { > > +

Re: [PATCH][smartpqi-next] scsi: smartpqi: clean up indentation of a statement

2019-09-30 Thread Martin K. Petersen
Colin, > There is a statement that is indented one level too deeply, remove the > tab, re-join broken line and remove some empty lines. Applied to 5.5/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v4 4/4] perf_event_open: switch to copy_struct_from_user()

2019-09-30 Thread Christian Brauner
On Tue, Oct 01, 2019 at 11:10:55AM +1000, Aleksa Sarai wrote: > The change is very straightforward, and helps unify the syscall > interface for struct-from-userspace syscalls. > > Reviewed-by: Kees Cook > Signed-off-by: Aleksa Sarai Reviewed-by: Christian Brauner

Problem sharing interrupts between gpioa and uart0 on Broadcom Hurricane 2 (iProc)

2019-09-30 Thread Chris Packham
Hi, We have a platform using the BCM53344 integrated switch/CPU. This is part of the Hurricane 2 (technically Wolfhound) family of devices. Currently we're using pieces of Broadcom's "iProc" SDK based on an out of date kernel and we'd very much like to be running as close to upstream as

Re: [PATCH v4 2/4] clone3: switch to copy_struct_from_user()

2019-09-30 Thread Christian Brauner
On Tue, Oct 01, 2019 at 11:10:53AM +1000, Aleksa Sarai wrote: > The change is very straightforward, and helps unify the syscall > interface for struct-from-userspace syscalls. Additionally, explicitly > define CLONE_ARGS_SIZE_VER0 to match the other users of the > struct-extension pattern. > >

Re: [PATCH v4 3/4] sched_setattr: switch to copy_struct_from_user()

2019-09-30 Thread Christian Brauner
On Tue, Oct 01, 2019 at 11:10:54AM +1000, Aleksa Sarai wrote: > The change is very straightforward, and helps unify the syscall > interface for struct-from-userspace syscalls. Ideally we could also > unify sched_getattr(2)-style syscalls as well, but unfortunately the > correct semantics for such

Re: [PATCH v4 1/4] lib: introduce copy_struct_from_user() helper

2019-09-30 Thread Christian Brauner
On Mon, Sep 30, 2019 at 06:58:39PM -0700, Kees Cook wrote: > On Tue, Oct 01, 2019 at 11:10:52AM +1000, Aleksa Sarai wrote: > > A common pattern for syscall extensions is increasing the size of a > > struct passed from userspace, such that the zero-value of the new fields > > result in the old

Re: [PATCH 1/3] perf/core: Provide a kernel-internal interface to recalibrate event period

2019-09-30 Thread kbuild test robot
Hi Like, Thank you for the patch! Yet something to improve: [auto build test ERROR on kvm/linux-next] [cannot apply to v5.4-rc1 next-20190930] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify

include/linux/spinlock.h:393:9: sparse: sparse: context imbalance in 'linflex_console_write' - unexpected unlock

2019-09-30 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c commit: 09864c1cdf5c537bd01bff45181406e422ea988c tty: serial: Add linflexuart driver for S32V234 date: 4 weeks ago reproduce: # apt-get install sparse

Re: x86/random: Speculation to the rescue

2019-09-30 Thread hgntkwis
Why not get entropy from the white noise that can be obtained from any attached ADC? Audio cards, some SBCs, and microcontrollers all have ADCs. Not that I'm familiar with when the kernel first needs entropy or an expert in the field. Thanks

Re: [PATCH 3/4] perf inject --jit: Remove //anon mmap events

2019-09-30 Thread Andi Kleen
On Mon, Sep 30, 2019 at 08:49:00PM +, Steve MacLean wrote: > SNIP > > > I can't apply this one: > > > patching file builtin-inject.c > > Hunk #1 FAILED at 263. > > 1 out of 1 hunk FAILED -- saving rejects to file builtin-inject.c.rej > > I assume this is because I based my patches on the

Re: [PATCH v1 0/2] perf stat: Support --all-kernel and --all-user

2019-09-30 Thread Andi Kleen
> > I think it's useful. Makes it easy to do kernel/user break downs. > > perf record should support the same. > > Don't we have this already with: > > [root@quaco ~]# perf stat -e cycles:u,instructions:u,cycles:k,instructions:k > -a -- sleep 1 This only works for simple cases. Try it for

Re: [PATCH v15 1/4] soc: mediatek: cmdq: define the instruction struct

2019-09-30 Thread CK Hu
Hi, Bibby: On Fri, 2019-09-27 at 19:42 +0800, Bibby Hsieh wrote: > Define an instruction structure for gce driver to append command. > This structure can make the client's code more readability. > > Signed-off-by: Bibby Hsieh > Reviewed-by: CK Hu You've modified this patch in this version, so

[PATCH] tty: n_hdlc: fix build on SPARC

2019-09-30 Thread Randy Dunlap
From: Randy Dunlap Fix tty driver build on SPARC by not using __exitdata. It appears that SPARC does not support section .exit.data. Fixes these build errors: `.exit.data' referenced in section `.exit.text' of drivers/tty/n_hdlc.o: defined in discarded section `.exit.data' of

linux-next: Tree for Oct 1

2019-09-30 Thread Stephen Rothwell
Hi all, Changes since 20190930: New trees: erofs-fixes, erofs, kunit My fixes tree contains: 04e6dac68d9b ("powerpc/64s/radix: fix for "tidy up TLB flushing code" and !CONFIG_PPC_RADIX_MMU") Non-merge commits (relative to Linus' tree): 455 594 files changed, 15071

Re: [PATCH v4 1/4] lib: introduce copy_struct_from_user() helper

2019-09-30 Thread Kees Cook
On Tue, Oct 01, 2019 at 11:10:52AM +1000, Aleksa Sarai wrote: > A common pattern for syscall extensions is increasing the size of a > struct passed from userspace, such that the zero-value of the new fields > result in the old kernel behaviour (allowing for a mix of userspace and > kernel vintages

Re: [PATCH v1 1/2] dt-bindings: spi: Add support for cadence-qspi IP Intel LGM SoC

2019-09-30 Thread Ramuthevar, Vadivel MuruganX
Hi Rob,    Thank you for the review comments. On 1/10/2019 6:36 AM, Rob Herring wrote: On Mon, Sep 16, 2019 at 03:38:42PM +0800, Ramuthevar,Vadivel MuruganX wrote: From: Ramuthevar Vadivel Murugan On Intel Lightening Mountain(LGM) SoCs QSPI controller support to QSPI-NAND flash. This

[PATCH v4 3/4] sched_setattr: switch to copy_struct_from_user()

2019-09-30 Thread Aleksa Sarai
The change is very straightforward, and helps unify the syscall interface for struct-from-userspace syscalls. Ideally we could also unify sched_getattr(2)-style syscalls as well, but unfortunately the correct semantics for such syscalls are much less clear (see [1] for more detail). In future we

[PATCH v4 4/4] perf_event_open: switch to copy_struct_from_user()

2019-09-30 Thread Aleksa Sarai
The change is very straightforward, and helps unify the syscall interface for struct-from-userspace syscalls. Reviewed-by: Kees Cook Signed-off-by: Aleksa Sarai --- kernel/events/core.c | 47 +--- 1 file changed, 9 insertions(+), 38 deletions(-) diff

[PATCH v4 2/4] clone3: switch to copy_struct_from_user()

2019-09-30 Thread Aleksa Sarai
The change is very straightforward, and helps unify the syscall interface for struct-from-userspace syscalls. Additionally, explicitly define CLONE_ARGS_SIZE_VER0 to match the other users of the struct-extension pattern. Reviewed-by: Kees Cook Signed-off-by: Aleksa Sarai ---

[PATCH v4 1/4] lib: introduce copy_struct_from_user() helper

2019-09-30 Thread Aleksa Sarai
A common pattern for syscall extensions is increasing the size of a struct passed from userspace, such that the zero-value of the new fields result in the old kernel behaviour (allowing for a mix of userspace and kernel vintages to operate on one another in most cases). While this interface

[PATCH v4 0/4] lib: introduce copy_struct_from_user() helper

2019-09-30 Thread Aleksa Sarai
Patch changelog: v4: * __always_inline copy_struct_from_user(). [Kees Cook] * Rework test_user_copy.ko changes. [Kees Cook] v3: v2:

Re: [PATCH 5.3 00/25] 5.3.2-stable review

2019-09-30 Thread Dan Rue
On Sun, Sep 29, 2019 at 03:56:03PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.3.2 release. > There are 25 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know.

Re: [PATCH 5.2 00/45] 5.2.18-stable review

2019-09-30 Thread Dan Rue
On Sun, Sep 29, 2019 at 03:55:28PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.2.18 release. > There are 45 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH 4.19 00/63] 4.19.76-stable review

2019-09-30 Thread Dan Rue
On Sun, Sep 29, 2019 at 03:53:33PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.19.76 release. > There are 63 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH 5.2 00/45] 5.2.18-stable review

2019-09-30 Thread shuah
On 9/29/19 7:55 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.2.18 release. There are 45 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

[PATCH v7 0/1] Add bounds check for Hotplugged memory

2019-09-30 Thread Alastair D'Silva
From: Alastair D'Silva This series adds bounds checks for hotplugged memory, ensuring that it is within the physically addressable range (for platforms that define MAX_(POSSIBLE_)PHYSMEM_BITS. This allows for early failure, rather than attempting to access bogus section numbers. Changelog:

[PATCH v7 1/1] memory_hotplug: Add a bounds check to __add_pages

2019-09-30 Thread Alastair D'Silva
From: Alastair D'Silva On PowerPC, the address ranges allocated to OpenCAPI LPC memory are allocated from firmware. These address ranges may be higher than what older kernels permit, as we increased the maximum permissable address in commit 4ffe713b7587 ("powerpc/mm: Increase the max addressable

Re: [PATCH RESEND v3 2/4] clone3: switch to copy_struct_from_user()

2019-09-30 Thread Aleksa Sarai
On 2019-09-30, Kees Cook wrote: > On Tue, Oct 01, 2019 at 05:15:24AM +1000, Aleksa Sarai wrote: > > From: Aleksa Sarai > > > > The change is very straightforward, and helps unify the syscall > > interface for struct-from-userspace syscalls. Additionally, explicitly > > define

Re: [PATCH 1/3] KVM: X86: Add "nopvspin" parameter to disable PV spinlocks

2019-09-30 Thread Zhenzhong Duan
On 2019/9/30 23:41, Vitaly Kuznetsov wrote: Zhenzhong Duan writes: There are cases where a guest tries to switch spinlocks to bare metal behavior (e.g. by setting "xen_nopvspin" on XEN platform and "hv_nopvspin" on HYPER_V). That feature is missed on KVM, add a new parameter "nopvspin" to

[PATCH v3] perf tools: avoid sample_reg_masks being const + weak

2019-09-30 Thread Ian Rogers
Being const + weak breaks with some compilers that constant-propagate from the weak symbol. This behavior is outside of the specification, but in LLVM is chosen to match GCC's behavior. LLVM's implementation was set in this patch:

Re: [PATCH v2] perf tools: avoid sample_reg_masks being const + weak

2019-09-30 Thread Ian Rogers
Apologies for that. I've addressed in v3 but only tested for riscv. There is potential for additional tidy up related to this change, let me know what would be appropriate. Thanks, Ian On Mon, Sep 30, 2019 at 5:42 AM Jiri Olsa wrote: > > On Mon, Sep 30, 2019 at 09:23:35AM -0300, Arnaldo

Re: [PATCH RESEND v3 1/4] lib: introduce copy_struct_from_user() helper

2019-09-30 Thread Aleksa Sarai
On 2019-09-30, Kees Cook wrote: > On Tue, Oct 01, 2019 at 05:15:23AM +1000, Aleksa Sarai wrote: > > From: Aleksa Sarai > > > > A common pattern for syscall extensions is increasing the size of a > > struct passed from userspace, such that the zero-value of the new fields > > result in the old

[v6 PATCH] RISC-V: Remove unsupported isa string info print

2019-09-30 Thread Atish Patra
/proc/cpuinfo should just print all the isa string as an information instead of determining what is supported or not. ELF hwcap can be used by the userspace to figure out that. Simplify the isa string printing by removing the unsupported isa string print and all related code. The relevant

[PATCH mmotm] sparc64: pgtable_64.h: fix mismatched parens

2019-09-30 Thread Randy Dunlap
From: Randy Dunlap Fix lib-untag-user-pointers-in-strn_user.patch unmatched left paren. Fixes many of these build errors: ../mm/gup.c: In function '__get_user_pages': ../mm/gup.c:791:30: error: expected ')' before ';' token start = untagged_addr(start); ^ In file

lening

2019-09-30 Thread Simple Federal Credit Union
Hallo beste klant, Dit is Simple Federal Credit Union. We bieden een lening variërend van 5.000 tot 30.000.000 euro over een periode van 1 tot 30 jaar en met een rente van 3%. Dus we zijn klaar om u te helpen bij particuliere geldschieters / investeerders en bieden zowel persoonlijke lening,

Re: What populates /proc/partitions ?

2019-09-30 Thread David F.
Thanks for the replies. I'll see if I can figure this out. I know with the same kernel and older udev version in use that it didn't add it, but with the new udev (eudev) it does (one big difference is the new one requires and uses devtmpfs and the old one didn't). I tried making the floppy a

clk/clk-next boot bisection: v5.4-rc1 on bcm2837-rpi-3-b-32

2019-09-30 Thread kernelci.org bot
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This automated bisection report was sent to you on the basis * * that you may be involved with the breaking commit it has * * found. No manual investigation has been done to verify it, * * and the root cause of the

[PATCH RFC 0/1] VFIO: Region-specific file descriptors

2019-09-30 Thread Shawn Anastasio
This patch adds region file descriptors to VFIO, a simple file descriptor type that allows read/write/mmap operations on a single region of a VFIO device. This feature is particularly useful for privileged applications that use VFIO and wish to share file descriptors with unprivileged

[PATCH RFC 1/1] vfio/pci: Introduce region file descriptors

2019-09-30 Thread Shawn Anastasio
Introduce a new type of VFIO file descriptor that allows memfd-style semantics for regions of a VFIO device. Unlike VFIO device file descriptors, region file descriptors are limited to a single region, and all offsets (read, etc.) are relative to the start of the region. This allows for finer

Re: [PATCH 1/1] blk-mq: fill header with kernel-doc

2019-09-30 Thread André Almeida
On 9/30/19 6:54 PM, Minwoo Im wrote: > Hi André, > >> -/* >> +/** >> + * blk_mq_rq_from_pdu - cast a PDU to a request >> + * @pdu: the PDU (protocol unit request) to be casted > > It makes sense, but it looks like PDU stands for protocol unit request. > Could we have it "PDU(Protocol Data Unit)"

Re: [PATCH 1/1] blk-mq: fill header with kernel-doc

2019-09-30 Thread André Almeida
On 9/30/19 7:01 PM, Bart Van Assche wrote: > On 9/30/19 12:48 PM, André Almeida wrote: >> Insert documentation for structs, enums and functions at header file. >> Format existing and new comments at struct blk_mq_ops as >> kernel-doc comments. > > Hi André, > > Seeing the documentation being

Re: What populates /proc/partitions ?

2019-09-30 Thread Randy Dunlap
On 9/30/19 3:47 PM, David F. wrote: > Hi, > > I want to find out why fd0 is being added to /proc/partitions and stop > that for my build. I've searched "/proc/partitions" and "partitions", > not finding anything that matters. /proc/partitions is produced on demand by causing a read of it. That

Re: [PATCH v2 2/3] mm, page_owner: decouple freeing stack trace from debug_pagealloc

2019-09-30 Thread Qian Cai
> On Sep 30, 2019, at 5:43 PM, Vlastimil Babka wrote: > > Well, my use case is shipping production kernels with CONFIG_PAGE_OWNER > and CONFIG_DEBUG_PAGEALLOC enabled, and instructing users to boot-time > enable only for troubleshooting a crash or memory leak, without a need > to install a

Re: What populates /proc/partitions ?

2019-09-30 Thread Brian Masney
On Mon, Sep 30, 2019 at 03:47:21PM -0700, David F. wrote: > Hi, > > I want to find out why fd0 is being added to /proc/partitions and stop > that for my build. I've searched "/proc/partitions" and "partitions", > not finding anything that matters. It looks like it is done in block/genhd.c with

Re: [GIT PULL] scheduler fixes

2019-09-30 Thread John Stultz
On Sat, Sep 28, 2019 at 5:40 AM Ingo Molnar wrote: > > Please pull the latest sched-urgent-for-linus git tree from: > >git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > sched-urgent-for-linus > ># HEAD: 4892f51ad54ddff2883a60b6ad4323c1f632a9d6 sched/fair: Avoid > redundant EAS

Re: [PATCH RESEND v3 4/4] perf_event_open: switch to copy_struct_from_user()

2019-09-30 Thread Kees Cook
On Tue, Oct 01, 2019 at 05:15:26AM +1000, Aleksa Sarai wrote: > From: Aleksa Sarai > > The change is very straightforward, and helps unify the syscall > interface for struct-from-userspace syscalls. > > Signed-off-by: Aleksa Sarai Reviewed-by: Kees Cook -Kees > --- > kernel/events/core.c

Re: [PATCH RESEND v3 3/4] sched_setattr: switch to copy_struct_from_user()

2019-09-30 Thread Kees Cook
On Tue, Oct 01, 2019 at 05:15:25AM +1000, Aleksa Sarai wrote: > From: Aleksa Sarai > > The change is very straightforward, and helps unify the syscall > interface for struct-from-userspace syscalls. Ideally we could also > unify sched_getattr(2)-style syscalls as well, but unfortunately the >

Re: [PATCH 00/14] Add support for FM radio in hcill and kill TI_ST

2019-09-30 Thread Adam Ford
On Fri, May 10, 2019 at 10:38 AM Marcel Holtmann wrote: > > Hi Adam, > > >>> This moves all remaining users of the legacy TI_ST driver to hcill > >>> (patches > >>> 1-3). Then patches 4-7 convert wl128x-radio driver to a standard > >>> platform > >>> device driver with

Re: [PATCH RESEND v3 2/4] clone3: switch to copy_struct_from_user()

2019-09-30 Thread Kees Cook
On Tue, Oct 01, 2019 at 05:15:24AM +1000, Aleksa Sarai wrote: > From: Aleksa Sarai > > The change is very straightforward, and helps unify the syscall > interface for struct-from-userspace syscalls. Additionally, explicitly > define CLONE_ARGS_SIZE_VER0 to match the other users of the >

Re: [PATCH RESEND v3 1/4] lib: introduce copy_struct_from_user() helper

2019-09-30 Thread Kees Cook
On Tue, Oct 01, 2019 at 05:15:23AM +1000, Aleksa Sarai wrote: > From: Aleksa Sarai > > A common pattern for syscall extensions is increasing the size of a > struct passed from userspace, such that the zero-value of the new fields > result in the old kernel behaviour (allowing for a mix of

Re: [PATCH v2] vfio/type1: avoid redundant PageReserved checking

2019-09-30 Thread Andrea Arcangeli
Hello, On Fri, Sep 13, 2019 at 12:05:26PM -0600, Alex Williamson wrote: > On Mon, 2 Sep 2019 15:32:42 +0800 > Ben Luo wrote: > > > 在 2019/8/30 上午1:06, Alex Williamson 写道: > > > On Fri, 30 Aug 2019 00:58:22 +0800 > > > Ben Luo wrote: > > > > > >> 在 2019/8/28 下午11:55, Alex Williamson 写道: > >

[PATCH 0/3] KVM: x86/vPMU: Efficiency optimization by reusing last created perf_event

2019-09-30 Thread Like Xu
Hi Paolo & Community: Performance Monitoring Unit is designed to monitor micro architectural events which helps in analyzing how an application or operating systems are performing on the processors. In KVM/X86, version 2 Architectural PMU on Intel and AMD hosts have been enabled. This patch

[PATCH 2/3] KVM: x86/vPMU: Reuse perf_event to avoid unnecessary pmc_reprogram_counter

2019-09-30 Thread Like Xu
The perf_event_create_kernel_counter() in the pmc_reprogram_counter() is a high-frequency and heavyweight operation, especially when host disables the watchdog (maximum 2100 ns) which leads to an unacceptable latency of the guest NMI handler and limits the vPMU usage scenario. When a vPMC is

[PATCH 3/3] KVM: x86/vPMU: Add lazy mechanism to release perf_event per vPMC

2019-09-30 Thread Like Xu
Currently, a host perf_event is created for a vPMC functionality emulation. It’s unpredictable to determine if a disabled perf_event will be reused. If they are disabled and are not reused for a considerable period of time, those obsolete perf_events would increase host context switch overhead

[PATCH 1/3] perf/core: Provide a kernel-internal interface to recalibrate event period

2019-09-30 Thread Like Xu
Currently, perf_event_period() is used by user tool via ioctl. Exporting perf_event_period() for kernel users (such as KVM) who may recalibrate the event period for their assigned counters according to their requirements. The perf_event_period() is an external accessor, just like the

Re: [PATCH v2] i2c: i2c-mt65xx: fix NULL ptr dereference

2019-09-30 Thread Hsin-Yi Wang
On Mon, Sep 30, 2019 at 2:20 PM Cengiz Can wrote: > > On 2019-09-30 18:28, Fabien Parent wrote: > > Fixes: abf4923e97c3 ("i2c: mediatek: disable zero-length transfers for > > mt8183") > > Signed-off-by: Fabien Parent > > Reviewed-by: Cengiz Can Reviewed-by: Hsin-Yi Wang Thanks!

[PATCH] scatterlist: Validate page before calling PageSlab()

2019-09-30 Thread Alan Mikhak
From: Alan Mikhak Modify sg_miter_stop() to validate the page pointer before calling PageSlab(). This check prevents a crash that will occur if PageSlab() gets called with a page pointer that is not backed by page struct. A virtual address obtained from ioremap() for a physical address in PCI

Re: [PATCH] PCI: Enhance the ACS quirk for Cavium devices

2019-09-30 Thread Jayachandran Chandrasekharan Nair
On Mon, Sep 30, 2019 at 03:34:10PM -0500, Bjorn Helgaas wrote: > [+cc Vadim, Manish] Manish and Vadim are no longer with Cavium, adding Robert for ThunderX1 and Sunil for Cavium networking processors. > On Thu, Sep 19, 2019 at 02:43:34AM +, George Cherian wrote: > > Enhance the ACS quirk for

Re: [PATCH] uaccess: Add missing __must_check attributes

2019-09-30 Thread Kees Cook
On Mon, Sep 30, 2019 at 12:33:19PM +0200, Arnd Bergmann wrote: > On Wed, Aug 28, 2019 at 7:38 PM Kees Cook wrote: > > > > The usercopy implementation comments describe that callers of the > > copy_*_user() family of functions must always have their return values > > checked. This can be enforced

Re: [PATCH v2 linux-next 4/4] arm64: configs: defconfig: Change CONFIG_REMOTEPROC from m to y

2019-09-30 Thread keerthy
On 10/1/2019 12:16 AM, Olof Johansson wrote: On Mon, Sep 30, 2019 at 6:49 AM Will Deacon wrote: On Fri, Sep 20, 2019 at 01:29:46PM +0530, Keerthy wrote: Commit 6334150e9a36 ("remoteproc: don't allow modular build") changes CONFIG_REMOTEPROC to a boolean from a tristate config option which

[PATCH 02/37] MIPS: Use compact branch for LL/SC loops on MIPSr6+

2019-09-30 Thread Paul Burton
When targeting MIPSr6 or higher make use of a compact branch in LL/SC loops, preventing the insertion of a delay slot nop that only serves to waste space. Signed-off-by: Paul Burton --- arch/mips/include/asm/llsc.h | 4 1 file changed, 4 insertions(+) diff --git

[PATCH 03/37] MIPS: barrier: Add __SYNC() infrastructure

2019-09-30 Thread Paul Burton
Introduce an asm/sync.h header which provides infrastructure that can be used to generate sync instructions of various types, and for various reasons. For example if we need a sync instruction that provides a full completion barrier but only on systems which have weak memory ordering, we can

[PATCH 18/37] MIPS: bitops: Only use ins for bit 16 or higher

2019-09-30 Thread Paul Burton
set_bit() can set bits 0-15 using an ori instruction, rather than loading the value -1 into a register & then using an ins instruction. That is, rather than the following: li t0, -1 ll t1, 0(t2) ins t1, t0, 4, 1 sc t1, 0(t2) We can have the simpler: ll t1, 0(t2) ori t1,

[PATCH 22/37] MIPS: bitops: Allow immediates in test_and_{set,clear,change}_bit

2019-09-30 Thread Paul Burton
The logical operations or & xor used in the test_and_set_bit_lock(), test_and_clear_bit() & test_and_change_bit() functions currently force the value 1< --- arch/mips/include/asm/bitops.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git

  1   2   3   4   5   6   7   8   >