Re: [PATCH V2 5/6] x86/intel_rdt: Use perf infrastructure for measurements

2018-09-06 Thread Peter Zijlstra
On Thu, Aug 16, 2018 at 01:16:08PM -0700, Reinette Chatre wrote: > + l2_miss_event = perf_event_create_kernel_counter(&perf_miss_attr, > + plr->cpu, > + NULL, NULL, NULL); > + if (IS_ER

Re: [PATCH 2/5] gpio: davinci: Use dev name for label and automatic base selection

2018-09-06 Thread Keerthy
On Wednesday 05 September 2018 04:07 PM, Linus Walleij wrote: > On Mon, Sep 3, 2018 at 7:40 AM Keerthy wrote: >> On Saturday 01 September 2018 12:43 AM, Andrew F. Davis wrote: >>> Use dev_name to get a unique label and use -1 for a base to get our >>> selection automatically. We pull in all GPI

Re: [PATCH V3 17/26] csky: Misc headers

2018-09-06 Thread Arnd Bergmann
On Wed, Sep 5, 2018 at 2:08 PM Guo Ren wrote: > diff --git a/arch/csky/boot/dts/qemu.dts b/arch/csky/boot/dts/qemu.dts > new file mode 100644 > index 000..d36e4cd > --- /dev/null > +++ b/arch/csky/boot/dts/qemu.dts > @@ -0,0 +1,77 @@ > +/dts-v1/; > +/ { > + compatible = "csky,qemu"; > +

Re: [PATCH] lockdep: Have assert functions test for actual interrupts disabled

2018-09-06 Thread Steven Rostedt
On Thu, 6 Sep 2018 15:52:58 +0200 Peter Zijlstra wrote: > On Wed, Sep 05, 2018 at 11:20:31AM -0400, Steven Rostedt wrote: > > > > Peter, you OK with this patch? I'm currently triggering a bug (in rc2) > > where this patch is telling me that lockdep is getting it wrong. It > > would be good to ha

Re: [PATCH] mm: hugepage: mark splitted page dirty when needed

2018-09-06 Thread Jerome Glisse
On Thu, Sep 06, 2018 at 07:39:33PM +0800, Peter Xu wrote: > On Wed, Sep 05, 2018 at 03:55:22PM +0300, Kirill A. Shutemov wrote: > > On Wed, Sep 05, 2018 at 03:30:37PM +0800, Peter Xu wrote: > > > On Tue, Sep 04, 2018 at 10:00:28AM -0400, Zi Yan wrote: > > > > On 4 Sep 2018, at 4:01, Kirill A. Shute

Re: [PATCH v5 5/5] x86/kvm: Avoid dynamic allocation of pvclock data when SEV is active

2018-09-06 Thread Sean Christopherson
On Thu, Sep 06, 2018 at 06:50:41AM -0700, Sean Christopherson wrote: > On Thu, Sep 06, 2018 at 02:24:23PM +0200, Borislav Petkov wrote: > > On Thu, Sep 06, 2018 at 06:43:02AM -0500, Brijesh Singh wrote: > > > Currently, the per-cpu pvclock data is allocated dynamically when > > > cpu > HVC_BOOT_ARR

Re: [PATCH v2 3/5] irqchip: RISC-V Local Interrupt Controller Driver

2018-09-06 Thread Anup Patel
On Thu, Sep 6, 2018 at 7:36 PM, Christoph Hellwig wrote: > Just as before: NAK to entirely pointless abstractions. Please stop > beating the dead horse. That's just your opinion without any concrete reasoning. Even after explaining in various ways, you fail to understand the flexibility brough

Re: [PATCH V3 13/26] csky: Library functions

2018-09-06 Thread Arnd Bergmann
On Wed, Sep 5, 2018 at 2:08 PM Guo Ren wrote: > --- /dev/null > +++ b/arch/csky/abiv1/memset.c > @@ -0,0 +1,38 @@ > +// SPDX-License-Identifier: GPL-2.0 > +// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. > +#include > + > +void *memset(void *dest, int c, size_t l) > +{ > + char

Re: [PATCH 4.19 regression fix] printk: For early boot messages check loglevel when flushing the buffer

2018-09-06 Thread Petr Mladek
On Thu 2018-09-06 16:29:40, Sergey Senozhatsky wrote: > On (09/05/18 13:02), Petr Mladek wrote: > > Note that the first registered console prints all messages > > even without this flag. > > Hmm, OK, interesting point. > > I assumed that the first console usually has CON_PRINTBUFFER bit set. > Or

Re: [PATCH] acpi: remove a meaningless null check before debugfs_remove

2018-09-06 Thread zhong jiang
+to maintainers On 2018/8/18 18:49, zhong jiang wrote: > debugfs_remove has taken null pointer into account. So it is safe > to remove the check before debugfs_remove. > > Signed-off-by: zhong jiang > --- > drivers/acpi/custom_method.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) >

[PATCH] Yama: use READ_ONCE() when reading ptrace_scope

2018-09-06 Thread Jann Horn
ptrace_scope can be modified concurrently. To ensure that the compiler only reads ptrace_scope once, use READ_ONCE() here. (In practice, at least the version of gcc on my machine only generates a single read anyway, and it seems unlikely that a compiler would do something different.) This also ser

Re: [PATCH V3 06/26] csky: Cache and TLB routines

2018-09-06 Thread Arnd Bergmann
On Wed, Sep 5, 2018 at 2:08 PM Guo Ren wrote: > diff --git a/arch/csky/include/asm/io.h b/arch/csky/include/asm/io.h > new file mode 100644 > index 000..fcb2142 > --- /dev/null > +++ b/arch/csky/include/asm/io.h > @@ -0,0 +1,23 @@ > +// SPDX-License-Identifier: GPL-2.0 > +// Copyright (C) 201

Re: [PATCH] gpio: ep93xx: fix test for end of loop

2018-09-06 Thread Linus Walleij
On Thu, Sep 6, 2018 at 3:34 PM Dan Carpenter wrote: > The problem is that if port == ARRAY_SIZE() and "gc == &epg->gc[port]" > then that should be treated as invalid. > > Fixes: fd935fc421e7 ("gpio: ep93xx: Do not pingpong irq numbers") > Signed-off-by: Dan Carpenter Patch applied! Yours, Linu

Re: [PATCH 4.19 regression fix] printk: For early boot messages check loglevel when flushing the buffer

2018-09-06 Thread Petr Mladek
On Wed 2018-09-05 17:20:53, Hans de Goede wrote: > HI, > > On 05-09-18 13:02, Petr Mladek wrote: > > On Wed 2018-09-05 17:33:26, Sergey Senozhatsky wrote: > > > On (09/05/18 14:36), Sergey Senozhatsky wrote: > > > > > > > > Just a demonstration of the idea. It does not look very good, tho. > > >

Re: [PATCH v2] HID: i2c-hid: Don't reset device upon system resume

2018-09-06 Thread Jiri Kosina
On Thu, 6 Sep 2018, Kai-Heng Feng wrote: > Raydium touchscreen triggers interrupt storm after system-wide suspend: > [ 179.085033] i2c_hid i2c-CUST:00: i2c_hid_get_input: incomplete > report (58/65535) > > According to Raydium, Windows driver does not reset the device after > system resume. >

[PATCH] interconnect: core: Fix uninitialized variable

2018-09-06 Thread Gustavo A. R. Silva
There is a potential execution path in which variable *ret* is returned without being properly initialized previously. Fix this by initializing variable *ret* to -EINVAL. Addresses-Coverity-ID: 1473202 ("Uninitialized scalar variable") Fixes: 81b4cdb447fe ("interconnect: Add generic on-chip inter

Re: [PATCH V3 00/26] C-SKY(csky) Linux Kernel Port

2018-09-06 Thread Arnd Bergmann
On Wed, Sep 5, 2018 at 2:08 PM Guo Ren wrote: > > This is the 3th version patchset to add the Linux kernel port for C-SKY(csky). > Thanks to everyone who provided feedback on the previous version. > > This patchset adds architecture support to Linux for C-SKY's 32-bit embedded > CPU cores and the

Re: [RFC][PATCH 4/5] [PATCH 4/5] kvm-ept-idle: EPT page table walk for A bits

2018-09-06 Thread Dave Hansen
On 09/01/2018 04:28 AM, Fengguang Wu wrote: > (2) would need fundemental changes to the interface. It seems existing > solutions > for sparse files like SEEK_HOLE/SEEK_DATA and FIEMAP ioctl may not serve this > situation well. The most efficient way could be to fill user space read() > buffer with

Re: [PATCH 4.19 regression fix] printk: For early boot messages check loglevel when flushing the buffer

2018-09-06 Thread kbuild test robot
Hi Hans, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.19-rc2 next-20180906] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits

Re: [PATCH] firmware: arm_scmi: fix divide by zero when sustained_perf_level is zero

2018-09-06 Thread Sudeep Holla
On 06/09/18 14:17, Quentin Perret wrote: > Hi Sudeep, > > On Wednesday 05 Sep 2018 at 17:38:11 (+0100), Sudeep Holla wrote: >> @@ -166,7 +166,12 @@ scmi_perf_domain_attributes_get(const struct >> scmi_handle *handle, u32 domain, >> le32_to_cpu(attr->sustain

Re: [PATCH v6 13/14] sched/topology: Make Energy Aware Scheduling depend on schedutil

2018-09-06 Thread Quentin Perret
Hi Rafael, On Thursday 06 Sep 2018 at 11:18:55 (+0200), Rafael J. Wysocki wrote: > I'm not a particular fan of notifiers to be honest and you don't need > to add an extra chain just in order to be able to register a callback > from a single user. Right. I agree there are alternatives to using not

Re: [PATCH V2 5/6] x86/intel_rdt: Use perf infrastructure for measurements

2018-09-06 Thread Peter Zijlstra
On Thu, Aug 16, 2018 at 01:16:08PM -0700, Reinette Chatre wrote: > + l2_miss_event = perf_event_create_kernel_counter(&perf_miss_attr, > + plr->cpu, > + NULL, NULL, NULL); > + if (IS_ER

Re: [PATCH v4 14/16] sched/core: uclamp: request CAP_SYS_ADMIN by default

2018-09-06 Thread Patrick Bellasi
On 04-Sep 15:47, Juri Lelli wrote: > Hi, > > On 28/08/18 14:53, Patrick Bellasi wrote: > > The number of clamp groups supported is limited and defined at compile > > time. However, a malicious user can currently ask for many different > > Even if not malicious.. :-) Yeah... I should had write "a

Re: Plumbers 2018 - Performance and Scalability Microconference

2018-09-06 Thread Christopher Lameter
On Thu, 6 Sep 2018, Huang, Ying wrote: > > Certainly interested in attending but this overlaps supercomputing 2018 in > > Dallas Texas... > > Sorry to know this. It appears that there are too many conferences in > November... I will try to get to it in the middle of SC18, RDMA track and RISC V

[RFC PATCH v2 0/2] phy: cadence: Add driver and dt-bindings for Sierra PHY

2018-09-06 Thread Alan Douglas
The Cadence Sierra PHY supports a number of different protocols. This series adds a driver with support for USB3 and PCIe modes. Only one clock frequency is currently supported, so the value of clock provided in device tree is ignored. Changes from v1: * Each group of lanes is now treated as a s

[RFC PATCH v2 2/2] phy: cadence: Add driver for Sierra PHY

2018-09-06 Thread Alan Douglas
Add a Sierra PHY driver with PCIe and USB support. The PHY has multiple lanes, which can be configured into groups, and a generic PHY device is created for each group. There are two resets controlling the overall PHY block, one to enable the APB interface for programming registers, and another to

Re: cmpxchg.h:245:2: error: ‘asm’ operand has impossible constraints

2018-09-06 Thread Juergen Gross
On 06/09/18 15:54, Juergen Gross wrote: > Hey Meelis, > > On Mon, 27 Aug 2018, Meelis Roos wrote: > >> While trying to compile v4.18-13105-gaba16dc5cf93 with gcc 5.3.1 on a >> 32-bit x86 configured for AMD K6 >> CC mm/slub.o >> In file included from ./arch/x86/include/asm/atomic.h:8:0, >>

Re: [PATCH v5 5/5] x86/kvm: Avoid dynamic allocation of pvclock data when SEV is active

2018-09-06 Thread Borislav Petkov
On Thu, Sep 06, 2018 at 06:50:41AM -0700, Sean Christopherson wrote: > That would prevent adding __decrypted to existing declarations, e.g. > hv_clock_boot, which would be ugly in its own right. A more generic > solution would be to add something like __decrypted_exclusive to mark I still don't u

RE: [PATCH v2] ACPI: surface3_power: MSHW0011 rev-eng implementation

2018-09-06 Thread Moore, Robert
> -Original Message- > From: Benjamin Tissoires [mailto:benjamin.tissoi...@redhat.com] > Sent: Friday, August 31, 2018 7:55 AM > To: Andy Shevchenko > Cc: Hans de Goede ; Bastien Nocera > ; stephenj...@gmail.com; Sebastian Reichel > ; Wysocki, Rafael J ; > l...@kernel.org; Moore, Robert

Re: [PATCH v5 5/5] x86/kvm: Avoid dynamic allocation of pvclock data when SEV is active

2018-09-06 Thread Borislav Petkov
On Thu, Sep 06, 2018 at 07:18:25AM -0700, Sean Christopherson wrote: > Oh, and we'd need to make sure __decrypted_exclusive is freed when > !CONFIG_AMD_MEM_ENCRYPT, and preferably !sev_active() since the big > array is used only if SEV is active. This patch unconditionally > defines hv_clock_dec b

[RFC PATCH v2 1/2] dt-bindings: phy: Document cadence Sierra PHY bindings

2018-09-06 Thread Alan Douglas
Add DT binding documentation for Sierra PHY. The PHY supports a number of different protocols, including PCIe and USB. The PHY lanes may be configured as single or multi-lane links. Each link is treated as a separate subnode. For example, if there are 4 lanes in total the first 2 may be configur

Re: [PATCH V2 4/6] x86/intel_rdt: Add helper to obtain performance counter index

2018-09-06 Thread Peter Zijlstra
On Thu, Aug 16, 2018 at 01:16:07PM -0700, Reinette Chatre wrote: > +static inline int x86_perf_rdpmc_ctr_get(struct perf_event *event) > +{ > + lockdep_assert_irqs_disabled(); > + > + return IS_ERR_OR_NULL(event) ? -1 : event->hw.event_base_rdpmc; > +} That should be in arch/x86/include/a

Re: [PATCH 1/5] mfd: lochnagar: Add support for the Cirrus Logic Lochnagar

2018-09-06 Thread Charles Keepax
On Thu, Sep 06, 2018 at 03:46:12PM +0200, Linus Walleij wrote: > On Wed, Sep 5, 2018 at 12:41 PM Charles Keepax > wrote: > > > From: Charles Keepax > > > > Lochnagar is an evaluation and development board for Cirrus > > Logic Smart CODEC and Amp devices. It allows the connection of > > most Cirr

Re: [PATCH] gpio: ep93xx: fix test for end of loop

2018-09-06 Thread Dan Carpenter
On Thu, Sep 06, 2018 at 02:50:44PM +0100, Colin Ian King wrote: > On 06/09/18 14:33, Dan Carpenter wrote: > > The problem is that if port == ARRAY_SIZE() and "gc == &epg->gc[port]" > > then that should be treated as invalid. > > > > Fixes: fd935fc421e7 ("gpio: ep93xx: Do not pingpong irq numbers")

Re: [PATCH 05/11] UAPI: coda: Don't use internal kernel structs in UAPI

2018-09-06 Thread David Howells
Yann Droneaud wrote: > At first I thought the first lines (see below) could have been useful > for userspace: > > #define CODA_PSDEV_MAJOR 67 > #define MAX_CODADEVS 5/* how many do we allow */ Note that I was asking about include/linux/coda_psdev.h (the internal kernel header), not inc

Re: [PATCH v5 5/5] x86/kvm: Avoid dynamic allocation of pvclock data when SEV is active

2018-09-06 Thread Sean Christopherson
On Thu, Sep 06, 2018 at 04:43:42PM +0200, Borislav Petkov wrote: > On Thu, Sep 06, 2018 at 06:50:41AM -0700, Sean Christopherson wrote: > > That would prevent adding __decrypted to existing declarations, e.g. > > hv_clock_boot, which would be ugly in its own right. A more generic > > solution woul

Re: [PATCH v2 1/2] mm: Move page struct poisoning to CONFIG_DEBUG_VM_PAGE_INIT_POISON

2018-09-06 Thread Dave Hansen
On 09/05/2018 10:47 PM, Michal Hocko wrote: > why do you have to keep DEBUG_VM enabled for workloads where the boot > time matters so much that few seconds matter? There are a number of distributions that run with it enabled in the default build. Fedora, for one. We've basically assumed for a wh

Re: [PATCH v4 14/16] sched/core: uclamp: request CAP_SYS_ADMIN by default

2018-09-06 Thread Juri Lelli
On 06/09/18 15:40, Patrick Bellasi wrote: > On 04-Sep 15:47, Juri Lelli wrote: [...] > > Wondering if you want to fold the check below inside the > > > > if (user && !capable(CAP_SYS_NICE)) { > >... > > } > > > > block. It would also save you from adding another parameter to the > > funct

Project Loan

2018-09-06 Thread Nicholas John Edwards
Greetings, I am a broker linked with high profile private investors from the Arabian Gulf,Asia and Europe, who are interested and willing to fund you in any current project you are undergoing, My clients are privately seeking means of expanding their investment portfolio global. they are i

Re: [PATCHv3] perf tools: Add struct ordered_events_buffer layer

2018-09-06 Thread Stephane Eranian
On Thu, Sep 6, 2018 at 6:29 AM Jiri Olsa wrote: > > On Mon, Sep 03, 2018 at 07:37:56PM -0700, Stephane Eranian wrote: > > SNIP > > > > > I think the code is correct now for the issue related to uninitialized > > pointer. > > But there is still one problem I found stressing the code with > > max_

Re: [PATCH] mips: txx9: fix iounmap related issue

2018-09-06 Thread Atsushi Nemoto
On Thu, 6 Sep 2018 12:19:19 +0800, Ding Xiang wrote: > if device_register return error, iounmap should be called, also iounmap > need to call before put_device. > > Signed-off-by: Ding Xiang > --- > arch/mips/txx9/generic/setup.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) T

Please Help me

2018-09-06 Thread Aisha Gaddafi
-- Dear Assalamu Alaikum, I came across your contact during my private search Mrs Aisha Al-Qaddafi is my name, the only daughter of late Libyan president, I have funds the sum of $27.5 million USD for investment, I am interested in you for investment project assistance in your country, i shall c

[PATCH v2] firmware: arm_scmi: fix divide by zero when sustained_perf_level is zero

2018-09-06 Thread Sudeep Holla
Firmware can provide zero as values for sustained performance level and corresponding sustained frequency in kHz in order to hide the actual frequencies and provide only abstract values. It may endup with divide by zero scenario resulting in kernel panic. Let's set the multiplication factor to one

Re: [PATCH RFC tools/memory-model] Add litmus-test naming scheme

2018-09-06 Thread Paul E. McKenney
On Thu, Sep 06, 2018 at 02:52:18PM +0100, Will Deacon wrote: > On Wed, Sep 05, 2018 at 05:01:17PM -0700, Paul E. McKenney wrote: > > On Tue, May 29, 2018 at 09:17:13PM +0100, Will Deacon wrote: > > > On Tue, May 29, 2018 at 05:11:07AM -0700, Paul E. McKenney wrote: > > > > On Tue, May 29, 2018 at 1

Re: [PATCH v2 1/2] mm: Move page struct poisoning to CONFIG_DEBUG_VM_PAGE_INIT_POISON

2018-09-06 Thread Michal Hocko
On Thu 06-09-18 07:59:03, Dave Hansen wrote: > On 09/05/2018 10:47 PM, Michal Hocko wrote: > > why do you have to keep DEBUG_VM enabled for workloads where the boot > > time matters so much that few seconds matter? > > There are a number of distributions that run with it enabled in the > default b

Re: [PATCH] gpio: ep93xx: fix test for end of loop

2018-09-06 Thread Colin Ian King
On 06/09/18 15:48, Dan Carpenter wrote: > On Thu, Sep 06, 2018 at 02:50:44PM +0100, Colin Ian King wrote: >> On 06/09/18 14:33, Dan Carpenter wrote: >>> The problem is that if port == ARRAY_SIZE() and "gc == &epg->gc[port]" >>> then that should be treated as invalid. >>> >>> Fixes: fd935fc421e7 ("g

Re: [PATCH v5 5/5] x86/kvm: Avoid dynamic allocation of pvclock data when SEV is active

2018-09-06 Thread Borislav Petkov
On Thu, Sep 06, 2018 at 07:56:40AM -0700, Sean Christopherson wrote: > Wouldn't that result in @hv_clock_boot being incorrectly freed in the > !SEV case? Ok, maybe I'm missing something but why do we need 4K per CPU? Why can't we map all those pages which contain the clock variable, decrypted in a

RE: [PATCH 2/3] iio: adc: Add Xilinx AMS driver

2018-09-06 Thread Manish Narani
Hi Jonathan, Thanks a lot for the review. Please see my response inline. > -Original Message- > From: Jonathan Cameron [mailto:ji...@kernel.org] > Sent: Monday, September 3, 2018 1:27 AM > To: Manish Narani > Cc: knaac...@gmx.de; l...@metafoo.de; pme...@pmeerw.net; > robh...@kernel.org;

RE: [PATCH v5 2/4] dt: bindings: Document ZynqMP DDRC in Synopsys documentation

2018-09-06 Thread Manish Narani
Hi Rob, > -Original Message- > From: Rob Herring [mailto:r...@kernel.org] > Sent: Tuesday, September 4, 2018 7:46 PM > To: Manish Narani > Cc: mark.rutl...@arm.com; Michal Simek ; > b...@alien8.de; mche...@kernel.org; leoyang...@nxp.com; > amit.kuche...@linaro.org; o...@lixom.net; Sriniva

Re: [PATCH] printk/tracing: Do not trace printk_nmi_enter()

2018-09-06 Thread Steven Rostedt
On Thu, 6 Sep 2018 11:31:51 +0900 Sergey Senozhatsky wrote: > Hello, > > On (09/05/18 21:33), Steven Rostedt wrote: > > do_idle { > > > > [interrupts enabled] > > > > [interrupts disabled] > > TRACE_IRQS_OFF [lockdep says irqs off] > > [...] > > TRACE_IRQS_IRET > >

Re: Widespread crashes in next-20180906

2018-09-06 Thread Guenter Roeck
uild arm64? Because KernelCI is seeing build failures in arm64 > defconfig for next-20180906 > Clearly it's a module build problem for sunxi but I'm not sure who to > CC about this. > I do, but as part of the boot tests, not as explicit build test, to save a bit of time. Mayb

RE: [PATCH 4/4] PCI: xilinx-nwl: Add method to setup_platform_service_irq hook

2018-09-06 Thread Bharat Kumar Gogada
> Subject: Re: [PATCH 4/4] PCI: xilinx-nwl: Add method to > setup_platform_service_irq hook > > On Fri, Aug 10, 2018 at 09:09:40PM +0530, Bharat Kumar Gogada wrote: > > Add nwl_setup_service_irqs hook to setup_platform_service_irq IRQs to > > register platform provided IRQ number to kernel AER ser

[PATCH v6 0/5] seccomp trap to userspace

2018-09-06 Thread Tycho Andersen
Hi all, Here's a v6 of the seccomp trap to userspace series. v5 [1] was fairly quiet, with Christian reminding me that I had forgotten to update the docs for the ioctl change. Other than that, there are no changes. [1]: https://lkml.org/lkml/2018/8/28/590 Thoughts welcome, Tycho Tycho Andersen

[PATCH v6 1/5] seccomp: add a return code to trap to userspace

2018-09-06 Thread Tycho Andersen
This patch introduces a means for syscalls matched in seccomp to notify some other task that a particular filter has been triggered. The motivation for this is primarily for use with containers. For example, if a container does an init_module(), we obviously don't want to load this untrusted code,

[PATCH v6 3/5] seccomp: add a way to get a listener fd from ptrace

2018-09-06 Thread Tycho Andersen
As an alternative to SECCOMP_FILTER_FLAG_GET_LISTENER, perhaps a ptrace() version which can acquire filters is useful. There are at least two reasons this is preferable, even though it uses ptrace: 1. You can control tasks that aren't cooperating with you 2. You can control tasks whose filters blo

[PATCH v6 4/5] seccomp: add support for passing fds via USER_NOTIF

2018-09-06 Thread Tycho Andersen
The idea here is that the userspace handler should be able to pass an fd back to the trapped task, for example so it can be returned from socket(). I've proposed one API here, but I'm open to other options. In particular, this only lets you return an fd from a syscall, which may not be enough in a

[PATCH v6 2/5] seccomp: make get_nth_filter available outside of CHECKPOINT_RESTORE

2018-09-06 Thread Tycho Andersen
In the next commit we'll use this same mnemonic to get a listener for the nth filter, so we need it available outside of CHECKPOINT_RESTORE in the USER_NOTIFICATION case as well. v2: new in v2 v3: no changes v4: no changes v5: switch to CHECKPOINT_RESTORE || USER_NOTIFICATION to avoid warning when

[PATCH v6 5/5] samples: add an example of seccomp user trap

2018-09-06 Thread Tycho Andersen
The idea here is just to give a demonstration of how one could safely use the SECCOMP_RET_USER_NOTIF feature to do mount policies. This particular policy is (as noted in the comment) not very interesting, but it serves to illustrate how one might apply a policy dodging the various TOCTOU issues. v

Re: [PATCH 0/3] tools/lib/lockdep: fixes for v4.19

2018-09-06 Thread Sasha Levin
Ping? On Tue, Aug 28, 2018 at 08:03:56PM -0400, Sasha Levin wrote: >Ping? > >On Mon, Aug 13, 2018 at 07:05:36PM +, Sasha Levin wrote: >>Hi Ingo, >> >>Please pull the following minor fixes for liblockdep. >> >>Also available at: >> >> git://git.kernel.org/pub/scm/linux/kernel/git/sashal/li

RE: [PATCH 3/4] PCI/portdrv: Check platform supported service IRQ's

2018-09-06 Thread Bharat Kumar Gogada
> Subject: Re: [PATCH 3/4] PCI/portdrv: Check platform supported service IRQ's > > On Fri, Aug 10, 2018 at 09:09:39PM +0530, Bharat Kumar Gogada wrote: > > Platforms may have dedicated IRQ lines for PCIe services like AER/PME > > etc., check for such IRQ lines. > > Check mask and fill legacy irq l

Re: [PATCH] leds: pwm: silently error out on EPROBE_DEFER

2018-09-06 Thread Pavel Machek
On Thu 2018-09-06 15:59:04, Jerome Brunet wrote: > When probing, if we fail to get the pwm due to probe deferal, we shouldn't > print an error message. Just be silent in this case. > > Signed-off-by: Jerome Brunet > --- > drivers/leds/leds-pwm.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 de

Re: Widespread crashes in next-20180906

2018-09-06 Thread Guenter Roeck
On Thu, Sep 06, 2018 at 10:04:13AM -0400, Theodore Y. Ts'o wrote: > On Thu, Sep 06, 2018 at 06:45:15AM -0700, Guenter Roeck wrote: > > Build results: > > total: 134 pass: 133 fail: 1 > > Failed builds: > > sparc32:allmodconfig > > Qemu test results: > > total: 311 pass: 76 fail: 235 > >

Re: [PATCH v2 1/2] mm: Move page struct poisoning to CONFIG_DEBUG_VM_PAGE_INIT_POISON

2018-09-06 Thread Alexander Duyck
On Thu, Sep 6, 2018 at 8:13 AM Michal Hocko wrote: > > On Thu 06-09-18 07:59:03, Dave Hansen wrote: > > On 09/05/2018 10:47 PM, Michal Hocko wrote: > > > why do you have to keep DEBUG_VM enabled for workloads where the boot > > > time matters so much that few seconds matter? > > > > There are a nu

Re: [PATCH v3 3/8] arm64: dts: qcom: msm8998: Add tsens and thermal-zones

2018-09-06 Thread Bjorn Andersson
On Thu 06 Sep 06:53 PDT 2018, Amit Kucheria wrote: > On Tue, Sep 4, 2018 at 10:31 AM, Bjorn Andersson > > diff --git a/arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi > > b/arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi [..] > > + tsens0: thermal@10aa000 { > > + compatible

Re: [PATCH v6 3/5] seccomp: add a way to get a listener fd from ptrace

2018-09-06 Thread Jann Horn
On Thu, Sep 6, 2018 at 5:29 PM Tycho Andersen wrote: > > As an alternative to SECCOMP_FILTER_FLAG_GET_LISTENER, perhaps a ptrace() > version which can acquire filters is useful. There are at least two reasons > this is preferable, even though it uses ptrace: > > 1. You can control tasks that aren'

Re: [PATCH] uio: fix is_source param for check_copy_size() in copy_to_iter_mcsafe()

2018-09-06 Thread Dave Jiang
On 09/05/2018 01:31 PM, Dave Jiang wrote: > copy_to_iter_mcsafe() is passing in the is_source parameter as "false" > to check_copy_size(). This is different than what copy_to_iter() does. > Also, the addr parameter passed to check_copy_size() is the source so > therefore we should be passing in

Re: [PATCH v5 10/16] x86/mce: enable Hygon support to MCE infrastructure

2018-09-06 Thread Pu Wen
On 2018/9/6 20:29, Borislav Petkov wrote: Say what now?! What testing do you do if you boot a kernel which doesn't even use the functionality you're testing?! I'm sorry, this case is not good to demonstrate the useage. And I think there are no other people will do the test without MCE in kernel

Re: [PATCH v6 3/5] seccomp: add a way to get a listener fd from ptrace

2018-09-06 Thread Tycho Andersen
On Thu, Sep 06, 2018 at 05:45:25PM +0200, Jann Horn wrote: > On Thu, Sep 6, 2018 at 5:29 PM Tycho Andersen wrote: > > > > As an alternative to SECCOMP_FILTER_FLAG_GET_LISTENER, perhaps a ptrace() > > version which can acquire filters is useful. There are at least two reasons > > this is preferable

Re: [PATCH V3 13/26] csky: Library functions

2018-09-06 Thread Geert Uytterhoeven
On Thu, Sep 6, 2018 at 4:25 PM Arnd Bergmann wrote: > On Wed, Sep 5, 2018 at 2:08 PM Guo Ren wrote: > > --- /dev/null > > +++ b/arch/csky/abiv1/memset.c > > @@ -0,0 +1,38 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. > > +#include > >

Re: [PATCH v2 2/3] arm64: dts: msm8916: Drop model and compatible

2018-09-06 Thread Bjorn Andersson
On Wed 05 Sep 11:35 PDT 2018, Niklas Cassel wrote: > DTS board files should always specify model and compatible. > > All DTS board files that includes msm8916.dtsi > already specifies model and compatible, and will thus > override the model and compatible in msm8916.dtsi. > > Drop model and comp

Re: [PATCH] efi_stub: update documentation on dtb= parameter

2018-09-06 Thread Jonathan Corbet
On Wed, 5 Sep 2018 20:07:50 +0100 Grant Likely wrote: > The dtb= parameter is no longer the primary mechanism for providing a > devicetree to the kernel. Now either firmware or the boot selector (ex. > Grub) should provide the devicetree and dtb= should only be used for > debug or when using fir

Re: [PATCH v2 3/3] arm64: dts: msm8996: Drop model

2018-09-06 Thread Bjorn Andersson
On Wed 05 Sep 11:35 PDT 2018, Niklas Cassel wrote: > DTS board files should always specify model and compatible. > > All DTS board files that includes msm8996.dtsi > already specifies model and compatible, and will thus > override the model and compatible in msm8996.dtsi. > > Drop model from msm

RE: [PATCH v5 1/4] edac: synps: Add platform specific structures for ddrc controller

2018-09-06 Thread Manish Narani
Hi Boris, Thanks a lot for the review. Please see my comments inline. > -Original Message- > From: Borislav Petkov [mailto:b...@alien8.de] > Sent: Tuesday, September 4, 2018 10:28 PM > To: Manish Narani > Cc: robh...@kernel.org; mark.rutl...@arm.com; Michal Simek > ; mche...@kernel.org;

[PATCH 1/2] tracing: Add back in rcu_irq_enter/exit_irqson() for rcuidle tracepoints

2018-09-06 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Borislav reported the following splat: = WARNING: suspicious RCU usage 4.19.0-rc1+ #1 Not tainted - ./include/linux/rcupdate.h:631 rcu_read_lock() used illegally while idle! other info that might help u

[PATCH 2/2] printk/tracing: Do not trace printk_nmi_enter()

2018-09-06 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" I hit the following splat in my tests: [ cut here ] IRQs not enabled as expected WARNING: CPU: 3 PID: 0 at kernel/time/tick-sched.c:982 tick_nohz_idle_enter+0x44/0x8c Modules linked in: ip6t_REJECT nf_reject_ipv6 ip6table_filter ip6_tables

[PATCH 0/2] [GIT PULL] tracing: Fix two annoying bugs

2018-09-06 Thread Steven Rostedt
Linus, This fixes two bugs: - The first one is a side effect caused by using SRCU for rcuidle tracepoints. It seems that perf was depending on the rcuidle tracepoints to make RCU watch when it wasn't. The real fix will be to have perf use SRCU instead of depending on RCU watching,

Re: [PATCH v5 5/5] x86/kvm: Avoid dynamic allocation of pvclock data when SEV is active

2018-09-06 Thread Sean Christopherson
On Thu, Sep 06, 2018 at 05:19:38PM +0200, Borislav Petkov wrote: > On Thu, Sep 06, 2018 at 07:56:40AM -0700, Sean Christopherson wrote: > > Wouldn't that result in @hv_clock_boot being incorrectly freed in the > > !SEV case? > > Ok, maybe I'm missing something but why do we need 4K per CPU? Why ca

tty locking issues? (v4.19-rc2)

2018-09-06 Thread Mark Rutland
Hi, While fuzzing arm64 v4.19-rc2 with Syzkaller, I'm seeing a number of splats (e.g. use-after-frees) in tty ioctl handling, e.g. n_tty_set_termios. I've included one such splat at the end of this email. It looks like syzbot has been hitting these (e.g. [1]) for a number of months, so I guess th

Re: [PATCH v2] mm: slowly shrink slabs with a relatively small number of objects

2018-09-06 Thread Roman Gushchin
On Thu, Sep 06, 2018 at 03:42:07PM +0800, kbuild test robot wrote: > Hi Roman, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on linus/master] > [also build test WARNING on v4.19-rc2 next-20180905] > [if your patch is applied to the wrong git tree, please

Re: [PATCH] arm64: dts: qcom: Add AOSS reset driver node for SDM845

2018-09-06 Thread Doug Anderson
Hi, On Sat, Sep 1, 2018 at 3:23 PM, Bjorn Andersson wrote: > From: Sibi Sankar > > This patch adds the node to support AOSS reset driver on > SDM845 > > Signed-off-by: Sibi Sankar > [bjorn: Updated addresses to match the binding that was merged] > Signed-off-by: Bjorn Andersson > --- > arch/a

Re: linux-next test error

2018-09-06 Thread Matthew Wilcox
On Thu, Sep 06, 2018 at 09:12:12AM -0400, Theodore Y. Ts'o wrote: > So I don't see the point of changing return value block_page_mkwrite() > (although to be honest I haven't see the value of the vm_fault_t > change at all in the first place, at least not compared to the pain it > has caused) but no

Re: [PATCH] wil6210: fix unsigned cid comparison with >= 0

2018-09-06 Thread Kalle Valo
"Gustavo A. R. Silva" wrote: > The comparison of cid >= 0 is always true because cid is of type u8 > (8 bits, unsigned). > > Fix this by removing such comparison and updating the type of > variable cid to u8 in the caller function. > > Addresses-Coverity-ID: 1473079 ("Unsigned compared against

Re: [PATCH v2 1/2] mm: Move page struct poisoning to CONFIG_DEBUG_VM_PAGE_INIT_POISON

2018-09-06 Thread Dave Hansen
On 09/06/2018 08:13 AM, Michal Hocko wrote: >> CONFIG_DEBUG_VM_SLOW_AS_HECK >> >> under which we can put this an other really slow VM debugging. Or, we >> need some kind of boot-time parameter to trigger the extra checking >> instead of a new CONFIG option. > I strongly suspect nobody will ev

Re: [UDF] BUG: KASAN: slab-out-of-bounds in iput+0x8df/0xa80

2018-09-06 Thread Jan Kara
On Thu 28-06-18 22:48:51, Anatoly Trosinenko wrote: > Mounting broken UDF image causes KASAN warning on v4.18-rc2. > > How to reproduce: > 1. Compile v4.18-rc2 kernel with the attached config > 2. Unpack and mount the attached FS image as UDF Thanks for the report and reproducer. I'll send fixes

Re: [PATCH v2 1/2] mm: Move page struct poisoning to CONFIG_DEBUG_VM_PAGE_INIT_POISON

2018-09-06 Thread Pasha Tatashin
On 9/6/18 11:41 AM, Alexander Duyck wrote: > On Thu, Sep 6, 2018 at 8:13 AM Michal Hocko wrote: >> >> On Thu 06-09-18 07:59:03, Dave Hansen wrote: >>> On 09/05/2018 10:47 PM, Michal Hocko wrote: why do you have to keep DEBUG_VM enabled for workloads where the boot time matters so much

Re: [PATCH v6 4/5] seccomp: add support for passing fds via USER_NOTIF

2018-09-06 Thread Jann Horn
On Thu, Sep 6, 2018 at 5:29 PM Tycho Andersen wrote: > The idea here is that the userspace handler should be able to pass an fd > back to the trapped task, for example so it can be returned from socket(). [...] > diff --git a/Documentation/userspace-api/seccomp_filter.rst > b/Documentation/usersp

RE: [PATCH v5 3/4] edac: synopsys: Add EDAC ECC support for ZynqMP DDRC

2018-09-06 Thread Manish Narani
Hi Boris, Thanks for the review. > -Original Message- > From: Borislav Petkov [mailto:b...@alien8.de] > Sent: Wednesday, September 5, 2018 3:50 PM > To: Manish Narani > Cc: robh...@kernel.org; mark.rutl...@arm.com; Michal Simek > ; mche...@kernel.org; leoyang...@nxp.com; > amit.kuche...@

[GIT PULL] apparmor fix for v4.19-rc3

2018-09-06 Thread John Johansen
Hi, Please pull this fix for an issue syzbot discovered last week thanks - John The following changes since commit 57361846b52bc686112da6ca5368d11210796804: Linux 4.19-rc2 (2018-09-02 14:37:30 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/jj

Re: [PATCH v6 4/5] seccomp: add support for passing fds via USER_NOTIF

2018-09-06 Thread Tycho Andersen
On Thu, Sep 06, 2018 at 06:15:18PM +0200, Jann Horn wrote: > On Thu, Sep 6, 2018 at 5:29 PM Tycho Andersen wrote: > > The idea here is that the userspace handler should be able to pass an fd > > back to the trapped task, for example so it can be returned from socket(). > [...] > > diff --git a/Doc

[PATCH] arm64: dts: rockchip: fix vcc_host1_5v pin assign

2018-09-06 Thread Katsuhiro Suzuki
This patch fixes pin assign of vcc_host1_5v. This regulator is controlled by USB20_HOST_DRV signal. ROCK64 schematic says that GPIO0_A2 pin is used as USB20_HOST_DRV. GPIO0_D3 pin is for SPDIF_TX_M0. ROCK64 schematic: http://files.pine64.org/doc/rock64/ROCK64_Schematic_v2.0_20171019.pdf Signed-o

Re: [PATCH 2/2] soc: qcom: geni: geni_se_clk_freq_match() should always accept multiples

2018-09-06 Thread Doug Anderson
Hi, On Wed, Sep 5, 2018 at 5:20 PM, Matthias Kaehlcke wrote: > On Thu, Aug 30, 2018 at 11:36:12AM -0700, Douglas Anderson wrote: >> The geni_se_clk_freq_match() has some strange semantics. Specifically >> it is defined with two modes: >> 1. It can find a clock that's an exact multiple of the req

[PATCH v2 2/2] soc: qcom: geni: geni_se_clk_freq_match() should always accept multiples

2018-09-06 Thread Douglas Anderson
The geni_se_clk_freq_match() has some strange semantics. Specifically it is defined with two modes: 1. It can find a clock that's an exact multiple of the requested rate 2. It can find a non-exact match but it can't handle multiples then ...but callers should always be able to handle a clock that

[PATCH v2 1/2] soc: qcom: geni: Don't ignore clk_round_rate() errors in geni_se_clk_tbl_get()

2018-09-06 Thread Douglas Anderson
The function clk_round_rate() is defined to return a "long", not an "unsigned long". That's because it might return a negative error code. Change the call in geni_se_clk_tbl_get() to check for errors. While we're at it, get rid of a useless init of "freq". NOTE: overall the idea that we should

Re: [PATCH 1/2] soc: qcom: geni: Don't ignore clk_round_rate() errors in geni_se_clk_tbl_get()

2018-09-06 Thread Doug Anderson
Hi, On Wed, Sep 5, 2018 at 4:37 PM, Matthias Kaehlcke wrote: >> int geni_se_clk_tbl_get(struct geni_se *se, unsigned long **tbl) >> { >> - unsigned long freq = 0; >> + long freq = 0; > > nit: Since you are already touching this you could also remove the > pointless initialization, 'freq

Re: Ensuring wall_to_monotonic is not positive breaks use case

2018-09-06 Thread Thomas Gleixner
Rick, On Wed, 5 Sep 2018, Rick Ratzel wrote: > We're looking for suggestions on how best to proceed with a new change > that ideally both supports the use case described above, as well as > addresses the symptoms brought up in the initial commit (negative boot > time causes get_expiry() to overfl

Re: [PATCH RESEND v1 2/5] drivers: pinctrl: msm: enable PDC interrupt only during suspend

2018-09-06 Thread Lina Iyer
On Tue, Sep 04 2018 at 16:00 -0600, Stephen Boyd wrote: Quoting Lina Iyer (2018-09-04 14:09:34) On Mon, Aug 27 2018 at 14:01 -0600, Stephen Boyd wrote: > >Can't we just configure a different chained IRQ handler with >irq_set_chained_handler_and_data() for each of the GPIO IRQs that are >handled

possible deadlock in ext4_evict_inode

2018-09-06 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:b36fdc6853a3 Merge tag 'gpio-v4.19-2' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1716bc9e40 kernel config: https://syzkaller.appspot.com/x/.config?x=6c9564cd177daf0c da

[PATCH] arm64: dts: rockchip: add i2s and spdif endpoint of rk3328

2018-09-06 Thread Katsuhiro Suzuki
This patch adds port and endpoint of i2s and spdif nodes for rk3328. Because to use modern sound card interface such as audio-graph-card. Signed-off-by: Katsuhiro Suzuki --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 24 1 file changed, 24 insertions(+) diff --git a/arc

Re: linux-next: build warnings from the build of Linus' tree

2018-09-06 Thread Masami Hiramatsu
On Thu, 6 Sep 2018 12:49:39 +0200 Peter Oberparleiter wrote: > On 28.08.2018 02:43, Masami Hiramatsu wrote: > > I recently added a gcov profiling for ftrace, following > > Documentation/dev-tools/gcov.rst. > > 6b7dca401cb1 ("tracing: Allow gcov profiling on only ftrace subsystem") > > > > and i

Re: [PATCH RT 00/22] Linux 4.14.63-rt41-rc1

2018-09-06 Thread Steven Rostedt
On Thu, 6 Sep 2018 09:54:34 +0200 Sebastian Andrzej Siewior wrote: > On 2018-09-05 08:27:54 [-0400], Steven Rostedt wrote: > > Dear RT Folks, > > > > This is the RT stable review cycle of patch 4.14.63-rt41-rc1. > > > > Please scream at me if I messed something up. Please test the patches too.

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