Re: [PATCH V31 25/25] debugfs: Disable open() when kernel is locked down

2019-03-27 Thread Matthew Garrett
On Wed, Mar 27, 2019 at 10:40 AM Andy Lutomirski wrote: > As far as I'm concerned, preventing root from crashing the system > should not be a design goal of lockdown at all. And I think that the > "integrity" mode should be as non-annoying as possible, so I think we > should allow reading from

Issues with i.MX SPI DMA transfers

2019-03-27 Thread Igor Plyatov
Dear developers, please, help to resolve two issues with SPI DMA transfers at i.MX6Q platform. First issue is  [ 4465.008003] spi_master spi0: I/O Error in DMA RX Second issue is duplication for one of received bytes. Probably, these issues related to each one. I think suspicious code is

Re: [PATCH V31 25/25] debugfs: Disable open() when kernel is locked down

2019-03-27 Thread Andy Lutomirski
On Tue, Mar 26, 2019 at 10:33 PM Greg KH wrote: > > On Tue, Mar 26, 2019 at 10:29:41PM -0700, Andy Lutomirski wrote: > > > > > > > On Mar 26, 2019, at 10:06 PM, Greg KH wrote: > > > > > >> On Tue, Mar 26, 2019 at 09:29:14PM -0700, Andy Lutomirski wrote: > > >>> On Tue, Mar 26, 2019 at 5:31 PM

Re: [PATCHv4 16/28] PCI: mobiveil: refactor Mobiveil PCIe Host Bridge IP driver

2019-03-27 Thread Lorenzo Pieralisi
On Wed, Mar 27, 2019 at 02:04:00AM +, Z.q. Hou wrote: > Hi Lorenzo, > > Thanks for your comments! > > > -Original Message- > > From: Lorenzo Pieralisi > > Sent: 2019年3月27日 1:34 > > To: Z.q. Hou > > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > >

Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree

2019-03-27 Thread Tim Harvey
On Sun, Mar 17, 2019 at 10:00 AM Russell King - ARM Linux admin wrote: > > On Sun, Mar 17, 2019 at 04:48:24PM +, Måns Rullgård wrote: > > Stefan Agner writes: > > > > > On 16.03.2019 16:39, Russell King - ARM Linux admin wrote: > > >> On Sat, Mar 16, 2019 at 01:33:58PM +0100, Marek Vasut

Re: [RFC PATCH 0/10] Another Approach to Use PMEM as NUMA Node

2019-03-27 Thread Dan Williams
On Wed, Mar 27, 2019 at 2:01 AM Michal Hocko wrote: > > On Tue 26-03-19 19:58:56, Yang Shi wrote: > > > > > > On 3/26/19 11:37 AM, Michal Hocko wrote: > > > On Tue 26-03-19 11:33:17, Yang Shi wrote: > > > > > > > > On 3/26/19 6:58 AM, Michal Hocko wrote: > > > > > On Sat 23-03-19 12:44:25, Yang

Re: [PATCH V2 2/2] watchdog: f71808e_wdt: fix F81866 bit operation

2019-03-27 Thread Guenter Roeck
On Wed, Mar 27, 2019 at 02:42:51PM +0800, Ji-Ze Hong (Peter Hong) wrote: > Fix error bit operation in watchdog_start() > > Fixes: 14b24a88a3660 ("watchdog: f71808e_wdt: Add F81866 support") > Signed-off-by: Ji-Ze Hong (Peter Hong) Reviewed-by: Guenter Roeck > --- >

Re: [PATCH V2 1/2] watchdog: f71808e_wdt: separate declaration and assignment

2019-03-27 Thread Guenter Roeck
On Wed, Mar 27, 2019 at 02:42:50PM +0800, Ji-Ze Hong (Peter Hong) wrote: > Separate declaration and assignment in watchdog_start() > > Signed-off-by: Ji-Ze Hong (Peter Hong) Reviewed-by: Guenter Roeck Note though that it would be much more valuable if you could consider converting the driver

Re: [PATCH 05/25] coresight: Merge the static and dynamic replicator drivers

2019-03-27 Thread Suzuki K Poulose
On 03/27/2019 03:27 PM, Mathieu Poirier wrote: On Wed, Mar 20, 2019 at 06:49:22PM +, Suzuki K Poulose wrote: Merge the drivers for the two varieties of replicators into a singel one. The dynamic replicator has programming base which can be programmed to filter the trace data. The driver

Re: [PATCH v4] kmemleak: survive in a low-memory situation

2019-03-27 Thread Catalin Marinas
On Wed, Mar 27, 2019 at 09:44:32AM +0100, Michal Hocko wrote: > On Tue 26-03-19 20:59:48, Qian Cai wrote: > [...] > > Unless there is a brave soul to reimplement the kmemleak to embed it's > > metadata into the tracked memory itself in a foreseeable future, Revisiting the kmemleak memory scanning

Re: [PATCH] pinctrl: intel: save HOSTSW_OWN register over suspend/resume

2019-03-27 Thread Mika Westerberg
+Andy On Wed, Mar 27, 2019 at 04:22:04PM +0800, Daniel Drake wrote: > Hi Mika, > > Digging up this old thread again... > > On Tue, Nov 21, 2017 at 8:13 PM Mika Westerberg > wrote: > > > > On Tue, Nov 21, 2017 at 07:54:26PM +0800, Chris Chiu wrote: > > > Yup, I checked the value of the

Re: [PATCH v6 2/2] dt-bindings: net: bluetooth: Add device tree bindings for QTI chip WCN3998

2019-03-27 Thread Matthias Kaehlcke
On Wed, Mar 27, 2019 at 05:58:43PM +0530, Harish Bandi wrote: > This patch enables regulators for the Qualcomm Bluetooth WCN3998 > controller. I commented on this on v3, but you didn't update it: No, it doesn't. The next version should probably say something like "Add compatible string

Re: KASAN: use-after-free Read in path_lookupat

2019-03-27 Thread Jan Kara
On Mon 25-03-19 23:02:11, Al Viro wrote: > On Tue, Mar 26, 2019 at 09:48:23AM +1100, Dave Chinner wrote: > > > And when it comes to VFS inode reclaim, XFS does not implement > > ->evict_inode because there is nothing at the VFS level to do. > > And ->destroy_inode ends up doing cleanup work (e.g.

Re: [PATCH v3 2/2] dt-bindings: net: bluetooth: Add device tree bindings for QTI chip wcn3998

2019-03-27 Thread Matthias Kaehlcke
On Wed, Mar 27, 2019 at 03:53:58PM +0530, Harish Bandi wrote: > Hi Matthias, > > > > > > > You mentioned in an earlier version of the series that there are > > > > > > multiple WCN3998 variants with different requirements for > > > > > > voltage/current. This seems to suggests that multiple

syzbot bisection analysis

2019-03-27 Thread Dmitry Vyukov
Hello, As most of you probably already noticed, syzbot started bisecting cause commits for crashes about 2 weeks ago and sending emails like this: https://groups.google.com/d/msg/syzkaller-bugs/2XhfN2Kfbqs/0U3YnKsGBQAJ The bisection results are also available on the dashboard, e.g.:

[PATCH] kernel/trace/trace.h: Remove duplicate header

2019-03-27 Thread jagdsh . linux
From: Jagadeesh Pagadala Remove duplicate header which is included twice. Signed-off-by: Jagadeesh Pagadala --- kernel/trace/trace.h | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index d80cee4..e1e16f9 100644 --- a/kernel/trace/trace.h +++

Device Description for FPGA Components on x86 system

2019-03-27 Thread Federico Vaga
Hello, I'm looking for guidance What I have: * Intel x86_64 computer * PCIe card with FPGA on it What I want to achieve: * load an FPGA bitstream on the card * load a device-tree like description for the FPGA devices contained in the bitstream This is achievable on ARM with DeviceTree,

Re: [PATCH v3] KEYS: trusted: allow trusted.ko to initialize w/o a TPM

2019-03-27 Thread Dan Williams
On Tue, Mar 26, 2019 at 5:13 AM Jarkko Sakkinen wrote: > > Allow trusted.ko to initialize w/o a TPM. This commit adds checks to the > key type callbacks and exported functions to fail when a TPM is not > available. > > Cc: James Morris > Reported-by: Dan Williams > Tested-by: Dan Williams >

Re: [RFC 0/7] cpuidle: Add poking mechanism to support non-IPI wakeup

2019-03-27 Thread Lucas Stach
Am Mittwoch, den 27.03.2019, 17:00 + schrieb Leonard Crestez: > On Wed, 2019-03-27 at 17:06 +0100, Lucas Stach wrote: > > Am Mittwoch, den 27.03.2019, 15:57 + schrieb Marc Zyngier: > > > On 27/03/2019 15:44, Lucas Stach wrote: > > > > Am Mittwoch, den 27.03.2019, 13:21 + schrieb Abel

Re: [PATCH] vhost: zero vhost_vsock memory on allocation

2019-03-27 Thread Vitaly Mayatskih
On Wed, Mar 27, 2019 at 12:49 PM Stefan Hajnoczi wrote: > Which field was accessed before initialization? > > I ask because the situation is now unclear since code remains that > assumes vsock is *not* zero-initialized: > > vsock->guest_cid = 0; /* no CID assigned yet */ > >

Re: [PATCH 2/4] pid: add pidfd_open()

2019-03-27 Thread Jann Horn
On Wed, Mar 27, 2019 at 5:22 PM Christian Brauner wrote: > pidfd_open() allows to retrieve pidfds for processes and removes the > dependency of pidfd on procfs. Multiple people have expressed a desire to > do this even when pidfd_send_signal() was merged. It is even recorded in [...] > IF

Re: [PATCH 06/10] mm: vmscan: demote anon DRAM pages to PMEM node

2019-03-27 Thread Dave Hansen
On 3/27/19 10:00 AM, Zi Yan wrote: > I ask this because I observe that migrating a list of pages can > achieve higher throughput compared to migrating individual page. > For example, migrating 512 4KB pages can achieve ~750MB/s > throughput, whereas migrating one 4KB page might only achieve >

Re: [PATCH v6 1/2] Bluetooth: hci_qca: Added support for WCN3998

2019-03-27 Thread Matthias Kaehlcke
On Wed, Mar 27, 2019 at 05:58:42PM +0530, Harish Bandi wrote: > Added new compatible for WCN3998 and corresponding voltage > and current values to WCN3998 compatible. > Changed driver code to support WCN3998 > > Signed-off-by: Harish Bandi You forgot to add 'Reviewed-by' my tag from v5. No need

Re: [PATCH 06/10] mm: vmscan: demote anon DRAM pages to PMEM node

2019-03-27 Thread Zi Yan
On 27 Mar 2019, at 6:08, Keith Busch wrote: > On Tue, Mar 26, 2019 at 08:41:15PM -0700, Yang Shi wrote: >> On 3/26/19 5:35 PM, Keith Busch wrote: >>> migration nodes have higher free capacity than source nodes. And since >>> your attempting THP's without ever splitting them, that also requires

Re: [RFC 0/7] cpuidle: Add poking mechanism to support non-IPI wakeup

2019-03-27 Thread Leonard Crestez
On Wed, 2019-03-27 at 17:06 +0100, Lucas Stach wrote: > Am Mittwoch, den 27.03.2019, 15:57 + schrieb Marc Zyngier: > > On 27/03/2019 15:44, Lucas Stach wrote: > > > Am Mittwoch, den 27.03.2019, 13:21 + schrieb Abel Vesa: > > > > This work is a workaround I'm looking into (more as a

Re: KASAN: use-after-free Read in path_lookupat

2019-03-27 Thread Jan Kara
On Tue 26-03-19 04:15:10, Al Viro wrote: > On Mon, Mar 25, 2019 at 08:18:25PM -0700, Mark Fasheh wrote: > > > Hey Al, > > > > It's been a while since I've looked at that bit of code but it looks like > > Ocfs2 is syncing the inode to disk and disposing of it's memory > > representation (which

Re: [PATCH 1/3] fs: stream_open - opener for stream-like files so that read and write can run simultaneously without deadlock

2019-03-27 Thread Juergen Gross
On 26/03/2019 23:20, Kirill Smelkov wrote: > Commit 9c225f2655 (vfs: atomic f_pos accesses as per POSIX) added locking for > file.f_pos access and in particular made concurrent read and write not > possible > - now both those functions take f_pos lock for the whole run, and so if e.g. a > read is

Re: [PATCH V31 19/25] x86/mmiotrace: Lock down the testmmiotrace module

2019-03-27 Thread Matthew Garrett
On Wed, Mar 27, 2019 at 8:57 AM Steven Rostedt wrote: > > On Tue, 26 Mar 2019 11:27:35 -0700 > Matthew Garrett wrote: > > > From: David Howells > > > > The testmmiotrace module shouldn't be permitted when the kernel is locked > > down as it can be used to arbitrarily read and write MMIO space.

Re: [PATCH V31 25/25] debugfs: Disable open() when kernel is locked down

2019-03-27 Thread James Morris
On Wed, 27 Mar 2019, Greg KH wrote: > Personally, I think these are all just "confidentiality" type things, > but who really knows given the wild-west nature of debugfs (which is as > designed). And given that I think this patch series just crazy anyway, > I really don't care :) Why do you

[PATCH] selftests:powerpc/tm/tm-vmx-unavail.c : Remove duplicate header

2019-03-27 Thread jagdsh . linux
From: Jagadeesh Pagadala Remove duplicate header which is included twice. Signed-off-by: Jagadeesh Pagadala --- tools/testing/selftests/powerpc/tm/tm-vmx-unavail.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/testing/selftests/powerpc/tm/tm-vmx-unavail.c

Re: [PATCH] vhost: zero vhost_vsock memory on allocation

2019-03-27 Thread Stefan Hajnoczi
On Tue, Mar 26, 2019 at 08:56:14PM -0400, Vitaly Mayatskikh wrote: > This fixes OOPS when using under-initialized vhost_vsock object. > > The code had a combo of kzalloc plus vmalloc as a fallback > initially, but it has been replaced by plain kvmalloc in > commit 6c5ab6511f71 ("mm: support

[PATCH] perf: fix help message of perf-record --no-bpf-event

2019-03-27 Thread Song Liu
It should be "do not record bpf events". Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Alexander Shishkin Signed-off-by: Song Liu --- tools/perf/builtin-record.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

Re: [PATCH v6 1/2] Bluetooth: hci_qca: Added support for WCN3998

2019-03-27 Thread Balakrishna Godavarthi
Hi Harish, On 2019-03-27 17:58, Harish Bandi wrote: Added new compatible for WCN3998 and corresponding voltage and current values to WCN3998 compatible. Changed driver code to support WCN3998 Signed-off-by: Harish Bandi --- Changes in V6: - changed return value to false in the

Re: [PATCH 2/2] arm64: dts: imx8qxp: Add EDMA0/EDMA1 nodes

2019-03-27 Thread Daniel Baluta
On Wed, Mar 27, 2019 at 11:33 AM Lucas Stach wrote: > > Hi Daniel, > > Am Mittwoch, den 27.03.2019, 10:51 +0200 schrieb Daniel Baluta: > [...] > > > > > or > > > "fsl,imx8qxp-edma", "fsl,imx8qm-edma"? > > > > One thing that it is not clear for me is why there are places > > where we use two

Re: [PATCH] [v2] ceph: fix clang warning for CEPH_DEFINE_OID_ONSTACK

2019-03-27 Thread Ilya Dryomov
On Mon, Mar 25, 2019 at 1:51 PM Arnd Bergmann wrote: > > clang complains about assigning a variable to itself during the > declaration: > > fs/ceph/ioctl.c:187:26: error: variable 'oid' is uninitialized when used > within its own initialization [-Werror,-Wuninitialized] >

[PATCH] arch:sparc:kernel/uprobes.c : Remove duplicate header

2019-03-27 Thread jagdsh . linux
From: Jagadeesh Pagadala Remove duplicate header which is included twice. Signed-off-by: Jagadeesh Pagadala --- arch/sparc/kernel/uprobes.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/sparc/kernel/uprobes.c b/arch/sparc/kernel/uprobes.c index d852ae5..c44bf5b 100644 ---

Re: [PATCH] tracing: Kernel access to Ftrace instances

2019-03-27 Thread Steven Rostedt
On Wed, 20 Mar 2019 11:28:51 -0700 Divya Indi wrote: > Ftrace provides the feature “instances” that provides the capability to > create multiple Ftrace ring buffers. However, currently these buffers > are created/accessed via userspace only. The kernel APIs providing these > features are not

Re: [PATCH 09/14] bus: ti-sysc: Move rstctrl reset to happen later

2019-03-27 Thread Suman Anna
Hi Tony, On 3/26/19 6:40 PM, Tony Lindgren wrote: > Hi, > > * Suman Anna [190326 23:22]: >> On 3/26/19 6:13 PM, Tony Lindgren wrote: >> Hmm, are you envisioning the SYSC reset (OCP SoftReset) here or the PRCM >> RSTCTRL hardresets here? The latter in general requires the clocks to be >> running

Re: [PATCH] MIPS: KGDB: fix kgdb support for SMP platforms.

2019-03-27 Thread Doug Anderson
Hi, On Wed, Mar 27, 2019 at 8:06 AM qiaochong wrote: > > KGDB_call_nmi_hook is called by other cpu through smp call. > MIPS smp call is processed in ipi irq handler and regs is saved in > handle_int. > So kgdb_call_nmi_hook get regs by get_irq_regs and regs will be passed > to kgdb_cpu_enter.

Re: [PATCH] jbd2: remove repeated assignments in __jbd2_log_wait_for_space

2019-03-27 Thread Jan Kara
On Wed 27-03-19 22:31:35, Liu Song wrote: > From: Liu Song > > At the beginning, nblocks has been assigned. There is no need > to repeat the assignment in the while loop, and remove it. > > Signed-off-by: Liu Song Looks good. You can add: Reviewed-by: Jan Kara

[PATCH 2/4] pid: add pidfd_open()

2019-03-27 Thread Christian Brauner
pidfd_open() allows to retrieve pidfds for processes and removes the dependency of pidfd on procfs. Multiple people have expressed a desire to do this even when pidfd_send_signal() was merged. It is even recorded in the commit message for pidfd_send_signal() itself (cf. commit

[PATCH 0/4] pidfd_open()

2019-03-27 Thread Christian Brauner
Hey, After the discussion over the last days, this is a fresh approach to getting pidfds independent of the translate_pid() patchset. pidfd_open() allows to retrieve pidfds for processes and removes the dependency of pidfd on procfs. These pidfds are allocated using anon_inode_getfd(), are

[PATCH 4/4] tests: add pidfd_open() tests

2019-03-27 Thread Christian Brauner
This adds a simple test case for pidfd_open(). Signed-off-by: Christian Brauner Cc: Arnd Bergmann Cc: "Eric W. Biederman" Cc: Kees Cook Cc: Alexey Dobriyan Cc: Thomas Gleixner Cc: Jann Horn Cc: "Michael Kerrisk (man-pages)" Cc: Konstantin Khlebnikov Cc: Jonathan Kowalski Cc: "Dmitry V.

[PATCH 3/4] signal: support pidfd_open() with pidfd_send_signal()

2019-03-27 Thread Christian Brauner
Let pidfd_send_signal() use pidfds retrieved via pidfd_open(). With this patch pidfd_send_signal() becomes independent of procfs. This fullfils the request made when we merged the pidfd_send_signal() patchset. The pidfd_send_signal() syscall is now always available allowing for it to be used by

[PATCH 1/4] Make anon_inodes unconditional

2019-03-27 Thread Christian Brauner
From: David Howells Make the anon_inodes facility unconditional so that it can be used by core VFS code and the pidfd_open() syscall. Signed-off-by: David Howells Signed-off-by: Al Viro [christ...@brauner.io: adapt commit message to mention pidfd_open()] Signed-off-by: Christian Brauner ---

[PATCH] arch:sh:mach-sh03/rtc.c : Remove duplicate header

2019-03-27 Thread jagdsh . linux
From: Jagadeesh Pagadala Remove duplicate header which is included twice. Signed-off-by: Jagadeesh Pagadala --- arch/sh/boards/mach-sh03/rtc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/sh/boards/mach-sh03/rtc.c b/arch/sh/boards/mach-sh03/rtc.c index 8b23ed7..165e2cc 100644 ---

Re: [PATCH v2] arch_topology: Make cpu_capacity sysfs node as ready-only

2019-03-27 Thread Mukesh Ojha
On 3/27/2019 5:27 PM, Lingutla Chandrasekhar wrote: If user updates any cpu's cpu_capacity, then the new value is going to be applied to all its online sibling cpus. But this need not to be correct always, as sibling cpus (in ARM, same micro architecture cpus) would have different cpu_capacity

Re: [Patch v3 2/2] tracing: gpio: add Kconfig option for enabling/disabling trace events

2019-03-27 Thread Uwe Kleine-König
On Sat, Aug 01, 2015 at 03:27:58PM +0300, Tal Shorer wrote: > Add a new options to trace Kconfig, CONFIG_TRACING_EVENTS_GPIO, that is > used for enabling/disabling compilation of gpio function trace events. > > Signed-off-by: Tal Shorer > Acked-by: Linus Walleij > --- >

Re: [PATCH v6 1/7] s390: ap: kvm: add PQAP interception for AQIC

2019-03-27 Thread Tony Krowiak
On 3/26/19 2:57 PM, Tony Krowiak wrote: On 3/22/19 10:43 AM, Pierre Morel wrote: We prepare the interception of the PQAP/AQIC instruction for the case the AQIC facility is enabled in the guest. First of all we do not want to change existing behavior when intercepting AP instructions without

Re: [RFC 0/7] cpuidle: Add poking mechanism to support non-IPI wakeup

2019-03-27 Thread Lucas Stach
Hi Marc, Am Mittwoch, den 27.03.2019, 15:57 + schrieb Marc Zyngier: > On 27/03/2019 15:44, Lucas Stach wrote: > > Hi Abel, > > > > Am Mittwoch, den 27.03.2019, 13:21 + schrieb Abel Vesa: > > > This work is a workaround I'm looking into (more as a background task) > > > in order to add

Re: [RESEND PATCH v1] moduleparam: Save information about built-in modules in separate file

2019-03-27 Thread Alexey Gladkov
On Wed, Mar 27, 2019 at 04:40:25PM +0100, Jessica Yu wrote: > +++ Alexey Gladkov [26/03/19 18:24 +0100]: > >On Fri, Mar 22, 2019 at 02:34:12PM +0900, Masahiro Yamada wrote: > >> Hi. > >> > >> (added some people to CC) > > (Thanks Masahiro for the CC!) > > >> > >> On Fri, Mar 15, 2019 at 7:10 PM

Re: [PATCH v2] mtd: spi-nor: Return error when nor->addr_width does not match the device size

2019-03-27 Thread Vignesh Raghavendra
On 26/03/19 8:50 PM, Liu Xiang wrote: > At 2019-03-19 13:22:15, "Vignesh Raghavendra" wrote: >> Hi, >> >> On 13/03/19 7:15 PM, Liu Xiang wrote: >>> In some is25lp256, the DWORD1 of JEDEC Basic Flash Parameter Header >>> is 0xfff920e5. So the DWORD1[18:17] Address Bytes bits are 0b00, >>> means

Re: [PATCH] HID: intel-ish-hid: ISH firmware loader client driver

2019-03-27 Thread Nick Crews
On Tue, Mar 26, 2019 at 8:22 PM Srinivas Pandruvada wrote: > > On Tue, 2019-03-26 at 18:39 -0600, Nick Crews wrote: > > Hi Rushikesh, I know I've been reviewing this on Chromium, but I have > > some more larges-scale design thoughts. > Hi Nick. > > Does this fundamentally change, the way it is

Re: [PATCH v1] gpio: gpio-mlxbf: Add dependency on 64BIT to Kconfig entry

2019-03-27 Thread Bartosz Golaszewski
śr., 27 mar 2019 o 15:15 Shravan Kumar Ramani napisał(a): > > Fixes a compile test failure > > Signed-off-by: Shravan Kumar Ramani > --- > drivers/gpio/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig > index

Re: [PATCH V31 19/25] x86/mmiotrace: Lock down the testmmiotrace module

2019-03-27 Thread Steven Rostedt
On Tue, 26 Mar 2019 11:27:35 -0700 Matthew Garrett wrote: > From: David Howells > > The testmmiotrace module shouldn't be permitted when the kernel is locked > down as it can be used to arbitrarily read and write MMIO space. This is > a runtime check rather than buildtime in order to allow

Re: [RFC 0/7] cpuidle: Add poking mechanism to support non-IPI wakeup

2019-03-27 Thread Marc Zyngier
On 27/03/2019 15:44, Lucas Stach wrote: > Hi Abel, > > Am Mittwoch, den 27.03.2019, 13:21 + schrieb Abel Vesa: >> This work is a workaround I'm looking into (more as a background task) >> in order to add support for cpuidle on i.MX8MQ based platforms. >> >> The main idea here is getting

[PATCH] keys: safe concurrent user->{session,uid}_keyring access

2019-03-27 Thread Jann Horn
The current code can perform concurrent updates and reads on user->session_keyring and user->uid_keyring. Add a comment to struct user_struct to document the nontrivial locking semantics, and use READ_ONCE() for unlocked readers and smp_store_release() for writers to prevent memory ordering

Re: [PATCH v2 2/4] rcutree: Add checks for dynticks counters in rcu_is_cpu_rrupt_from_idle

2019-03-27 Thread Paul E. McKenney
On Wed, Mar 27, 2019 at 11:34:01AM -0400, Joel Fernandes wrote: > On Tue, Mar 26, 2019 at 07:47:51PM -0700, Paul E. McKenney wrote: > > On Tue, Mar 26, 2019 at 03:24:09PM -0400, Joel Fernandes (Google) wrote: > > > In the future we would like to combine the dynticks and dynticks_nesting > > >

Re: [PATCH] trace: events: fix error directive in argument list

2019-03-27 Thread Steven Rostedt
On Tue, 26 Mar 2019 01:23:03 +0530 Hariprasad Kelam wrote: > This patch fixes below spare errors. > > Sparse error: > make C=2 CF=-D__CHECK_ENDIAN__ M=net/core > ./include/trace/events/neigh.h:73:1: error: directive in argument list > ./include/trace/events/neigh.h:78:1: error: directive in

hello dear

2019-03-27 Thread Aisha Gadafi
Assalamu Alaikum Wa Rahmatullahi Wa Barakatuh, hello dear I came across your contact during my private search. Mrs Aisha Al- Qaddafi is my name, the only daughter of late Libyan president, am a single Mother and a Widow with three Children.I have funds the sum of $27.5 million USD for,

Re: [PATCH 5/6] acpi/cppc: Add support for optional CPPC registers

2019-03-27 Thread Pandruvada, Srinivas
On Fri, 2019-03-22 at 20:26 +, Natarajan, Janakarajan wrote: > From: Yazen Ghannam > > Newer AMD processors support a subset of the optional CPPC registers. > Create show, store and helper routines for supported CPPC registers. > > Signed-off-by: Yazen Ghannam > [ carved out into a patch,

Re: [PATCH 02/17] x86, lto: Mark all top level asm statements as .text

2019-03-27 Thread Andi Kleen
> Why on earth is this needed for LTO? > > From the GCC manual: > > "This attribute, attached to a global variable or function, nullifies the > effect of the -fw hole-program command-line option, so the object remains > visible outside the current compilation unit." > > Neither the

Re: [RFC 0/7] cpuidle: Add poking mechanism to support non-IPI wakeup

2019-03-27 Thread Lucas Stach
Hi Abel, Am Mittwoch, den 27.03.2019, 13:21 + schrieb Abel Vesa: > This work is a workaround I'm looking into (more as a background task) > in order to add support for cpuidle on i.MX8MQ based platforms. > > The main idea here is getting around the missing GIC wake_request signal > (due to

[PATCH -next] ASoC: fix SND_SOC_LOCHNAGAR_SC kconfig warning

2019-03-27 Thread Randy Dunlap
alsa-project.org --- sound/soc/codecs/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20190327.orig/sound/soc/codecs/Kconfig +++ linux-next-20190327/sound/soc/codecs/Kconfig @@ -94,7 +94,7 @@ config SND_SOC_ALL_CODECS select SND_SOC_JZ4725B_CODEC

Re: [RESEND PATCH v1] moduleparam: Save information about built-in modules in separate file

2019-03-27 Thread Jessica Yu
+++ Alexey Gladkov [26/03/19 18:24 +0100]: On Fri, Mar 22, 2019 at 02:34:12PM +0900, Masahiro Yamada wrote: Hi. (added some people to CC) (Thanks Masahiro for the CC!) On Fri, Mar 15, 2019 at 7:10 PM Alexey Gladkov wrote: > > Problem: > > When a kernel module is compiled as a separate

[PATCH] security: don't use RCU accessors for cred->session_keyring

2019-03-27 Thread Jann Horn
sparse complains that a bunch of places in kernel/cred.c access cred->session_keyring without the RCU helpers required by the __rcu annotation. cred->session_keyring is written in the following places: - prepare_kernel_cred() [in a new cred struct] - keyctl_session_to_parent() [in a new cred

[PATCH v2] MAiNTAINERS: add Paolo, Stefan for virtio blk/scsi

2019-03-27 Thread Michael S. Tsirkin
Jason doesn't really have the time to review blk/scsi patches. Paolo and Setfan agreed to help out. Thanks guys! Signed-off-by: Michael S. Tsirkin --- changes from v1: - use R tag for new reviewers - readd Jason as M MAINTAINERS | 15 ++- 1 file changed, 14 insertions(+), 1

Re: [PATCH v4 00/11] ARM: davinci: modernize the timer support

2019-03-27 Thread Sekhar Nori
Hi Daniel, Thomas, On 18/03/19 5:40 PM, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > This series removes the legacy timer code from mach-davinci in favor of > a new clocksource driver it introduces. > > Patch 1 adds a new clocksource driver for davinci. > > Patch 2 enables the

Re: [PATCH v2 2/4] rcutree: Add checks for dynticks counters in rcu_is_cpu_rrupt_from_idle

2019-03-27 Thread Joel Fernandes
On Tue, Mar 26, 2019 at 07:47:51PM -0700, Paul E. McKenney wrote: > On Tue, Mar 26, 2019 at 03:24:09PM -0400, Joel Fernandes (Google) wrote: > > In the future we would like to combine the dynticks and dynticks_nesting > > counters thus leading to simplifying the code. At the moment we cannot > >

Re: Linux 5.0-ad1: -march=native support

2019-03-27 Thread Pavel Machek
On Mon 2019-03-04 20:19:16, Alexey Dobriyan wrote: > -ad1 patchset adds support for compiling kernel with "-march=native" > compiler option optimizing kernel for the specific CPU. "-march=native" > has been available in userspace for a long time and is trivial to enable > in Gentoo specifically. >

Re: [PATCH 05/25] coresight: Merge the static and dynamic replicator drivers

2019-03-27 Thread Mathieu Poirier
On Wed, Mar 20, 2019 at 06:49:22PM +, Suzuki K Poulose wrote: > Merge the drivers for the two varieties of replicators into > a singel one. The dynamic replicator has programming base > which can be programmed to filter the trace data. The driver > detects the type based on the "base" address

Re: [PATCH v2 1/6] leds: netdev trigger: use memcpy in device_name_store

2019-03-27 Thread Rasmus Villemoes
On 26/03/2019 20.53, Jacek Anaszewski wrote: > Hi Rasmus, > > Thank you for the patch. > > On 3/14/19 3:06 PM, Rasmus Villemoes wrote: >> If userspace doesn't end the input with a newline (which can easily >> happen if the write happens from a C program that does write(fd, >> iface,

Re: [PATCH] arm:mach-sa1100/hackkit.c : Remove duplicate header

2019-03-27 Thread Mukesh Ojha
On 3/28/2019 12:41 AM, jagdsh.li...@gmail.com wrote: From: Jagadeesh Pagadala Remove duplicate header which is included twice. Signed-off-by: Jagadeesh Pagadala Reviewed-by: Mukesh Ojha -Mukesh --- arch/arm/mach-sa1100/hackkit.c | 1 - 1 file changed, 1 deletion(-) diff --git

Re: [PATCH -next] selinux: Make selinux_kernfs_init_security static

2019-03-27 Thread Mukesh Ojha
On 3/22/2019 7:34 PM, Yue Haibing wrote: From: YueHaibing Fix sparse warning: security/selinux/hooks.c:3389:5: warning: symbol 'selinux_kernfs_init_security' was not declared. Should it be static? Signed-off-by: YueHaibing Reviewed-by: Mukesh Ojha -Mukesh ---

Re: possible deadlock in acct_pin_kill

2019-03-27 Thread syzbot
Hello, syzbot has tested the proposed patch and the reproducer did not trigger crash: Reported-and-tested-by: syzbot+2a73a6ea9507b7112...@syzkaller.appspotmail.com Tested on: commit: 6c66f635 kernel/acct.c: fix locking order when switching a.. git tree:

Re: WARNING in arch_install_hw_breakpoint

2019-03-27 Thread Borislav Petkov
On Wed, Mar 27, 2019 at 02:45:24PM +0100, Dmitry Vyukov wrote: > And run this program: > https://syzkaller.appspot.com/text?tag=ReproC=15439f2720 Yap, that worked in my guest, after segfaulting a lot first: [ 101.600512][ T7333] Code: Bad RIP value. [ 101.606103][ T7337] repro[7337]:

Re: [PATCH] watchdog: Respect watchdog cpumask on CPU hotplug

2019-03-27 Thread Oleg Nesterov
On 03/26, Thomas Gleixner wrote: > > The rework of the watchdog core to use cpu_stop_work broke the watchdog > cpumask on CPU hotplug. > > The watchdog_enable/disable() functions are now called unconditionally from > the hotplug callback, i.e. even on CPUs which are not in the watchdog > cpumask.

Re: [PATCH v4 0/2] Add IPROC PCIe new features

2019-03-27 Thread Srinath Mannam
Hi Lorenzo, Thanks for feedback, I will talk to our HW engineer. Regards, Srinath. On Wed, Mar 27, 2019 at 6:01 PM Lorenzo Pieralisi wrote: > > On Wed, Mar 27, 2019 at 02:08:46PM +0530, Srinath Mannam wrote: > > Hi Lorenzo/Bjorn, > > > > Could you please help to review this patch series when

[PATCH v2 RESEND] x86: modernize sync_bitops.h

2019-03-27 Thread Jan Beulich
Add missing insn suffixes and use rmwcc.h just like was (more or less) recently done for bitops.h as well. Signed-off-by: Jan Beulich --- v2: Re-base over rmwcc.h changes. --- arch/x86/include/asm/sync_bitops.h | 31 +-- 1 file changed, 9 insertions(+), 22

[PATCH] clk: meson: vid-pll-div: remove warning and return 0 on invalid config

2019-03-27 Thread Neil Armstrong
The vid_pll_div is a programmable fractional divider, but vendor gives a limited of known configuration value and it's corresponding fraction. Thus when at reset value (0) or unknown value, we cannot determine the result rate. The initial behaviour was to print a warning, but the warning

Re: [PATCH 3.18 132/134] rcu: Do RCU GP kthread self-wakeup from softirq and interrupt

2019-03-27 Thread Paul E. McKenney
Hello, Jun, Do you see the same hang without the patch? Thanx, Paul On Wed, Mar 27, 2019 at 01:50:57AM +, Zhang, Jun wrote: > Hello,Paul > > I use a new NUC (made in 2017) to test, meet the same hang. System run very > slowly. > >

Re: [PATCH 02/17] x86, lto: Mark all top level asm statements as .text

2019-03-27 Thread Thomas Gleixner
On Wed, 27 Mar 2019, Andi Kleen wrote: > On Wed, Mar 27, 2019 at 03:20:08PM +0100, Thomas Gleixner wrote: > > /* Simple instruction patching code. */ > > -#define NATIVE_LABEL(a,x,b) "\n\t.globl " a #x "_" #b "\n" a #x "_" #b > > ":\n\t" > > +#define NATIVE_LABEL(a,x,b) "\n" a #x "_" #b ":\n\t"

[PATCH] MIPS: KGDB: fix kgdb support for SMP platforms.

2019-03-27 Thread qiaochong
KGDB_call_nmi_hook is called by other cpu through smp call. MIPS smp call is processed in ipi irq handler and regs is saved in handle_int. So kgdb_call_nmi_hook get regs by get_irq_regs and regs will be passed to kgdb_cpu_enter. Signed-off-by: qiaochong --- arch/mips/kernel/kgdb.c | 3 ++- 1

Re: [PATCH v2 2/5] tools/lib/traceevent: Rename input arguments of libtraceevent APIs from pevent to tep

2019-03-27 Thread Steven Rostedt
On Wed, 27 Mar 2019 16:19:43 +0200 Tzvetomir Stoyanov wrote: > This patch renames "struct tep_handle *pevent" input arguments of > libtraceevent > APIs to "struct tep_handle *tep". This makes the API consistent with the > chosen > naming convention: tep (trace event parser), instead of the old

[PATCH v4] mtd: cfi: fix deadloop in cfi_cmdset_0002.c do_write_buffer

2019-03-27 Thread Liu Jian
In function do_write_buffer(), in the for loop, there is a case chip_ready() returns 1 while chip_good() returns 0, so it never break the loop. To fix this, chip_good() is enough and it should timeout if it stay not good status for a while. Fixes: dfeae1073583("mtd: cfi_cmdset_0002: Change write

Re: [PATCH 02/17] x86, lto: Mark all top level asm statements as .text

2019-03-27 Thread Andi Kleen
On Wed, Mar 27, 2019 at 03:20:08PM +0100, Thomas Gleixner wrote: > +void __init foo(void) > +{ > + pr_info("foo\n"); > +} > > right before the kretprobe_trampoline and compiling it with GCC 6. > > So one would assume that kretprobe_trampoline now ends up in > .init.text. But it ends up in

Re: [PATCH v2 2/4] rcutree: Add checks for dynticks counters in rcu_is_cpu_rrupt_from_idle

2019-03-27 Thread Paul E. McKenney
On Tue, Mar 26, 2019 at 03:24:09PM -0400, Joel Fernandes (Google) wrote: > In the future we would like to combine the dynticks and dynticks_nesting > counters thus leading to simplifying the code. At the moment we cannot > do that due to concerns about usermode upcalls appearing to RCU as half >

[PATCH] Convert struct pid count to refcount_t

2019-03-27 Thread Joel Fernandes (Google)
struct pid's count is an atomic_t field used as a refcount. Use refcount_t for it which is basically atomic_t but does additional checking to prevent use-after-free bugs. No change in behavior if CONFIG_REFCOUNT_FULL=n. Cc: keesc...@chromium.org Cc: kernel-t...@android.com Cc:

Re: [PATCH v2 -next] ASoC: simple-card-utils: remove set but not used variable 'dai_name'

2019-03-27 Thread Mukesh Ojha
On 3/25/2019 8:47 AM, YueHaibing wrote: Fixes gcc '-Wunused-but-set-variable' warning: sound/soc/generic/simple-card-utils.c: In function 'asoc_simple_parse_clk': sound/soc/generic/simple-card-utils.c:164:18: warning: parameter 'dai_name' set but not used [-Wunused-but-set-parameter] It's

[PATCH v5] kmemleak: survive in a low-memory situation

2019-03-27 Thread Qian Cai
Kmemleak could quickly fail to allocate an object structure and then disable itself below in a low-memory situation. For example, running a mmap() workload triggering swapping and OOM. This is especially problematic for running things like LTP testsuite where one OOM test case would disable the

Re: [PATCH] vc04_services: vchiq_arm: fix a NULL pointer dereference

2019-03-27 Thread Mukesh Ojha
On 3/25/2019 4:13 AM, Kangjie Lu wrote: When kzalloc fails, "platform_state->inited = 1" is a NULL pointer dereference. The fix returns VCHIQ_ERROR in case it failed to avoid NULL pointer dereference. Signed-off-by: Kangjie Lu Reviewed-by: Mukesh Ojha -Mukesh ---

Re: [PATCH v2 -next] drm/virtio: remove set but not used variable 'vgdev'

2019-03-27 Thread Mukesh Ojha
On 3/25/2019 2:56 PM, YueHaibing wrote: Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/virtio/virtgpu_ttm.c: In function 'virtio_gpu_init_mem_type': drivers/gpu/drm/virtio/virtgpu_ttm.c:117:28: warning: variable 'vgdev' set but not used [-Wunused-but-set-variable]

Re: [PATCH V4 4/5] mmc: mmci: stm32: define get_dctrl_cfg

2019-03-27 Thread Ulf Hansson
On Wed, 27 Mar 2019 at 15:44, Ludovic BARRE wrote: > > > > On 3/27/19 11:54 AM, Ulf Hansson wrote: > > On Wed, 27 Mar 2019 at 10:05, Ludovic Barre wrote: > >> > >> From: Ludovic Barre > >> > >> This patch defines get_dctrl_cfg callback for sdmmc variant. > >> sdmmc variant has specific stm32

[PATCH 1/2] dt-bindings: scsi: ufs-cdns: Update Cadence UFS compatibility list

2019-03-27 Thread Jan Kotas
This patch adds a new compatible string description for CDNS UFS HCD + M31 16nm PHY. Signed-off-by: Jan Kotas --- Documentation/devicetree/bindings/ufs/cdns,ufshc.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/ufs/cdns,ufshc.txt

Re: [PATCH] thunderbolt: property: fix a buffer overflow and a missing check

2019-03-27 Thread Mukesh Ojha
On 3/25/2019 4:19 AM, Kangjie Lu wrote: First, no memory is allocated for "property->value.text"; the following strcpy will lead to a buffer overflow. Fix the commit text as there is no  overflow. only the check and resource cleanp is the fix. Second, no check is enforced for the return

[PATCH 2/2] scsi: ufs-cdns: Add support for UFSHCI with M31 PHY

2019-03-27 Thread Jan Kotas
This patch adds an additional PHY initialization, required for M31 PHY when used with Cadence UFS HC. A new compatible string has been added for this purpose. Signed-off-by: Jan Kotas --- drivers/scsi/ufs/cdns-pltfrm.c | 77 -- 1 file changed, 67

Re: [PATCH V4 4/5] mmc: mmci: stm32: define get_dctrl_cfg

2019-03-27 Thread Ludovic BARRE
On 3/27/19 11:54 AM, Ulf Hansson wrote: On Wed, 27 Mar 2019 at 10:05, Ludovic Barre wrote: From: Ludovic Barre This patch defines get_dctrl_cfg callback for sdmmc variant. sdmmc variant has specific stm32 transfer modes. sdmmc data transfer mode selection could be: -Block data transfer

Re: [PATCH V4 04/23] perf/x86/intel: Support adaptive PEBSv4

2019-03-27 Thread Andi Kleen
> We need to call perf_event_overflow() for the last record of each event. > It's hard to detect which record is the last record of the event with one > pass walking. > > Also, I'm not sure how much we can save with one pass walking. The > optimization should only benefit large PEBS. The total

Re: [PATCH v2 1/5] tools/perf,tools/lib/traceevent: Make traceevent APIs more consistent

2019-03-27 Thread Steven Rostedt
On Wed, 27 Mar 2019 16:19:42 +0200 Tzvetomir Stoyanov wrote: > /** > - * tep_file_bigendian - get if the file is in big endian order > + * tep_is_file_bigendian - return the endian of the file > * @pevent: a handle to the tep_handle > * > - * This returns if the file is in big endian order >

Re: [PATCH v3 5/5] drm/virtio: rework resource creation workflow.

2019-03-27 Thread Noralf Trønnes
Den 18.03.2019 12.33, skrev Gerd Hoffmann: > This patch moves the virtio_gpu_cmd_create_resource() call (which > notifies the host about the new resource created) into the > virtio_gpu_object_create() function. That way we can call > virtio_gpu_cmd_create_resource() before ttm_bo_init(), so

<    5   6   7   8   9   10   11   12   13   >