Re: [PATCH 01/11] ASoC: AMD: add ACP 3.x IP register header

2018-11-13 Thread Mark Brown
On Mon, Nov 12, 2018 at 11:04:52AM +0530, Vijendar Mukunda wrote: > @@ -0,0 +1,655 @@ > +/* > + * ACP 3.0 Register documentation > + * > + * Copyright (C) 2016 Advanced Micro Devices, Inc. Please use SPDX headers on new files. signature.asc Description: PGP signature

Re: [PATCHv5 3/6] ARM: dts: exynos: update maximum frequency for sdcard to 200MHz

2018-11-13 Thread Krzysztof Kozlowski
On Thu, Sep 27, 2018 at 02:07:35PM +, Anand Moon wrote: > set the max-frequency to 200MHz for optimal performace. > Thanks, applied. Best regards, Krzysztof

Re: Official Linux system wrapper library?

2018-11-13 Thread Dave Martin
On Mon, Nov 12, 2018 at 05:19:14AM -0800, Daniel Colascione wrote: [...] > We can learn something from how Windows does things. On that system, > what we think of as "libc" is actually two parts. (More, actually, but > I'm simplifying.) At the lowest level, you have the semi-documented > ntdll.dl

Re: [PATCH AUTOSEL 3.18 1/9] bfs: add sanity check at bfs_fill_super()

2018-11-13 Thread Tigran Aivazian
On Tue, 13 Nov 2018 at 08:31, Tigran Aivazian wrote: > Andrew, if you would like me to make the same patch against 4.19.1 as > well, please let me know. I decided to just go ahead and backport it to 4.19.1 anyway (see attached). Tested thoroughly under 4.19.1. From: Tigran Aivazian Subject: bfs:

Re: [PATCH 04/11] ASoC: amd: add ACP3x PCM platform driver

2018-11-13 Thread Mark Brown
On Mon, Nov 12, 2018 at 11:04:55AM +0530, Vijendar Mukunda wrote: > +static struct snd_pcm_ops acp3x_dma_ops = { > + .open = NULL, > + .close = NULL, > + .ioctl = NULL, > + .hw_params = NULL, > + .hw_free = NULL, > + .pointer = NULL, > + .mmap = NULL, > +}; > + > +struc

RE: [PATCH v5 1/2] clk: Add of_clk_get_by_name_optional() function

2018-11-13 Thread Stephen Boyd
Quoting Phil Edworthy (2018-09-03 06:21:02) > Hi Stephen, > > On 03 September 2018 10:33 Phil Edworthy wrote: > > On 01 September 2018 03:46, Stephen Boyd wrote: > > > Quoting Phil Edworthy (2018-08-31 07:07:22) > > > > diff --git a/drivers/clk/clkdev.c b/drivers/clk/clkdev.c index > > > > 9ab3db8

Applied "ASoC: amd: enable acp3x drivers build" to the asoc tree

2018-11-13 Thread Mark Brown
The patch ASoC: amd: enable acp3x drivers build has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus d

Re: [PATCH 11/11] ASoC: amd: enable acp3x drivers build

2018-11-13 Thread Mark Brown
On Mon, Nov 12, 2018 at 11:05:02AM +0530, Vijendar Mukunda wrote: > ACP3x drivers can be built by selecting necessary kernel config option. > The patch enables build support of the same. Apart from the SPDX headers this all looks fine so I've applied it, please send followup patches converting eve

Applied "ASoC: amd: add acp3x runtime pm ops" to the asoc tree

2018-11-13 Thread Mark Brown
The patch ASoC: amd: add acp3x runtime pm ops has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus dur

Applied "ASoC: amd: add acp3x system resume pm op" to the asoc tree

2018-11-13 Thread Mark Brown
The patch ASoC: amd: add acp3x system resume pm op has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linu

Applied "ASoC: amd: add acp3x tdm mode support" to the asoc tree

2018-11-13 Thread Mark Brown
The patch ASoC: amd: add acp3x tdm mode support has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus d

Applied "ASoC: amd: add acp3x i2s ops" to the asoc tree

2018-11-13 Thread Mark Brown
The patch ASoC: amd: add acp3x i2s ops has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the

Applied "ASoC: amd: Interrupt handler changes for ACP3x DMA driver" to the asoc tree

2018-11-13 Thread Mark Brown
The patch ASoC: amd: Interrupt handler changes for ACP3x DMA driver has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours)

Applied "ASoC: amd: add ACP3x PCM platform driver" to the asoc tree

2018-11-13 Thread Mark Brown
The patch ASoC: amd: add ACP3x PCM platform driver has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linu

Applied "ASoC: amd: add acp3x pcm driver dma ops" to the asoc tree

2018-11-13 Thread Mark Brown
The patch ASoC: amd: add acp3x pcm driver dma ops has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus

Applied "ASoC: amd: create ACP3x PCM platform device" to the asoc tree

2018-11-13 Thread Mark Brown
The patch ASoC: amd: create ACP3x PCM platform device has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to L

[PATCH] ARM: dts: exynos: Clarify comment explaining purpose of Odroid XU3 DTSI

2018-11-13 Thread Krzysztof Kozlowski
There are two common DTSI files for Exynos5422 Odroid XU3 family of boards. One is shared between all of them (XU3, XU3-Lite, XU4 and HC1) and the second skips HC1. Document this in the files. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5422-odroid-core.dtsi | 2 +- arc

Applied "ASoC: AMD: add ACP 3.x IP register header" to the asoc tree

2018-11-13 Thread Mark Brown
The patch ASoC: AMD: add ACP 3.x IP register header has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Lin

Applied "ASoC: AMD: add ACP3.0 PCI driver" to the asoc tree

2018-11-13 Thread Mark Brown
The patch ASoC: AMD: add ACP3.0 PCI driver has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during

Re: [PATCH v2] scripts/setlocalversion: Improve -dirty check with git-status --no-optional-locks

2018-11-13 Thread Genki Sky
Thanks all, On Tue, 13 Nov 2018 11:03:36 -0800, Brian Norris wrote: > [ ... ] > > Cc: Genki Sky > Cc: Christian Kujau > Cc: Guenter Roeck > Suggested-by: Alexander Kapshuk > Signed-off-by: Brian Norris Tested-by: Genki Sky

Re: [GIT PULL] PCI changes for v4.20

2018-11-13 Thread Lendacky, Thomas
On 11/13/2018 08:41 AM, Lendacky, Thomas wrote: > On 11/13/2018 04:20 AM, Borislav Petkov wrote: >> On Tue, Nov 13, 2018 at 08:17:12AM +0100, Ingo Molnar wrote: >>> >>> * Bjorn Helgaas wrote: >>> PCI changes: - Pay attention to device-specific _PXM node values (Jonathan Cameron) >

Re: [RFC PATCH] spi: add driver for the SiFive SPI controller

2018-11-13 Thread Emil Renner Berthing
Hi Mark, On Tue, 13 Nov 2018 at 19:35, Mark Brown wrote: > On Mon, Nov 12, 2018 at 03:27:36PM +0100, Emil Renner Berthing wrote: > > > I know the discussions about the sifive devicetree compatible > > strings haven't come to a conclusion, so I'm sending this as > > an RFC to get some feedback on t

Re: [PATCHv5 5/6] ARM: dts: exynos: update maximum frequency for emmc to 200MHz

2018-11-13 Thread Krzysztof Kozlowski
On Thu, Sep 27, 2018 at 02:07:37PM +, Anand Moon wrote: > Set the max-frequency to 200MHz for optimal performace of eMMC. > Thanks, applied. Best regards, Krzysztof

Re: [PATCH] Revert "clocksource: Make clocksource validation work for all clocksources"

2018-11-13 Thread Zhivich, Michael
On 11/12/18, 5:23 PM, "John Stultz" wrote: On Mon, Nov 12, 2018 at 10:56 AM, Michael Zhivich wrote: > Revert commit 1f45f1f33c8c ("clocksource: Make clocksource validation work > for all clocksources") to restore correct clocksource_delta() computation > for clocksources that wr

Applied "regulator: bd718x7: Use regulator_map_voltage_ascend for buck5 and buck7" to the regulator tree

2018-11-13 Thread Mark Brown
The patch regulator: bd718x7: Use regulator_map_voltage_ascend for buck5 and buck7 has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually someti

Re: [PATCHv5 4/6] ARM: dts: exynos: Add pin configuration for SD write protect on Odroid XU3/XU4

2018-11-13 Thread Krzysztof Kozlowski
On Thu, Sep 27, 2018 at 02:07:36PM +, Anand Moon wrote: > Add SD card write-protect pin configuration to be sure that it will be > properly pulled down to indicate write access. > > Suggested-by: Krzysztof Kozlowski > Signed-off-by: Anand Moon > --- > Changes since v4: > 1. Remove cd-gpios a

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-13 Thread Jacek Anaszewski
On 11/12/2018 10:23 PM, Linus Walleij wrote: > On Sun, Nov 11, 2018 at 1:03 PM Pavel Machek wrote: > >>> -"devicename:colour:function" >>> +"colour:function" >> >> I don't think we want to do it in all cases. >> >> So, on my cellphone seeing lp5523:green:led is indeed not useful. >> >> But on not

Re: [PATCH] l1tf: drop the swap storage limit restriction when l1tf=off

2018-11-13 Thread Jiri Kosina
On Tue, 13 Nov 2018, Michal Hocko wrote: > From: Michal Hocko > > Swap storage is restricted to max_swapfile_size (~16TB on x86_64) > whenever the system is deemed affected by L1TF vulnerability. Even > though the limit is quite high for most deployments it seems to be > too restrictive for depl

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

2018-11-13 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:442b8cea2477 Add linux-next specific files for 20181109 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=12fbd90540 kernel config: https://syzkaller.appspot.com/x/.config?x=2f72bdb11

[RFC/RFT 0/2] RISC-V: kprobes/kretprobe support

2018-11-13 Thread Patrick Stählin
Hi, this is first version of kprobes/kretprobe support for RISC-V. Most of the code is based on arm64 but obviously without the single-step functionality. It will insert a C.EBREAK instruction that is later being captured. The only instruction supported at the moment is C.ADDISP16 as this sets-up

[RFC/RFT 1/2] RISC-V: Implement ptrace regs and stack API

2018-11-13 Thread Patrick Stählin
Needed for kprobes support. Copied and adapted from arm64 code. Signed-off-by: Patrick Stählin --- arch/riscv/Kconfig | 1 + arch/riscv/include/asm/ptrace.h | 34 +++ arch/riscv/kernel/ptrace.c | 99 + 3 files changed, 134 insertions(+)

[RFC/RFT 2/2] RISC-V: kprobes/kretprobe support

2018-11-13 Thread Patrick Stählin
First implementation, adapted from arm64. The C.ADDISP16 instruction gets simulated and the kprobes-handler called by inserting a C.EBREAK instruction. C.ADDISP16 was chosen as it sets-up the stack frame for functions. Some work has been done to support probes on non-compressed instructions but th

Re: [PATCH AUTOSEL 3.18 1/9] bfs: add sanity check at bfs_fill_super()

2018-11-13 Thread Tigran Aivazian
On Tue, 13 Nov 2018 at 19:40, Tigran Aivazian wrote: > > On Tue, 13 Nov 2018 at 08:31, Tigran Aivazian > wrote: > > Andrew, if you would like me to make the same patch against 4.19.1 as > > well, please let me know. > > I decided to just go ahead and backport it to 4.19.1 anyway (see > attached)

Applied "dt-binding: spi: add NPCM PSPI controller documentation" to the spi tree

2018-11-13 Thread Mark Brown
The patch dt-binding: spi: add NPCM PSPI controller documentation has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and

Re: [PATCH 1/1] stackleak: Disable function tracing and kprobes for stackleak_erase()

2018-11-13 Thread Kees Cook
On Mon, Nov 12, 2018 at 3:08 PM, Alexander Popov wrote: > The stackleak_erase() function is called on the trampoline stack at the end > of syscall. This stack is not big enough for ftrace and kprobes operations, > e.g. it can be exhausted if we use kprobe_events for stackleak_erase(). > > So let's

[PATCH cgroup/for-4.21 1/2] cpuset: Minor cgroup2 interface updates

2018-11-13 Thread Tejun Heo
>From b1e3aeb11c5e86ee0988a038c4e7682d6beaa977 Mon Sep 17 00:00:00 2001 From: Tejun Heo Date: Tue, 13 Nov 2018 12:03:33 -0800 * Rename the partition file from "cpuset.sched.partition" to "cpuset.cpus.partition". * When writing to the partition file, drop "0" and "1" and only accept "member"

Re: [PATCH] selinux: check length properly in SCTP bind hook

2018-11-13 Thread Paul Moore
On Tue, Nov 13, 2018 at 2:20 PM Qian Cai wrote: > On Tue, 2018-11-13 at 16:16 +0100, Ondrej Mosnacek wrote: > > selinux_sctp_bind_connect() must verify if the address buffer has > > sufficient length before accessing the 'sa_family' field. See > > __sctp_connect() for a similar check. > > > > The

[PATCH cgroup/for-4.21 2/2] cgroup: Add .__DEBUG__. prefix to debug file names

2018-11-13 Thread Tejun Heo
>From c1bbd933e5fae83f96acd3f748bb01a0300b315d Mon Sep 17 00:00:00 2001 From: Tejun Heo Date: Tue, 13 Nov 2018 12:06:41 -0800 Clearly mark the debug files and hide them by default by prefixing ".__DEBUG__.". Signed-off-by: Tejun Heo Cc: Peter Zijlstra (Intel) Cc: Waiman Long --- kernel/cgrou

Re: [PATCH 1/2] exec: load_script: don't blindly truncate shebang string

2018-11-13 Thread Kees Cook
On Mon, Nov 12, 2018 at 10:09 AM, Oleg Nesterov wrote: > load_script() simply truncates bprm->buf and this is very wrong if the > length of shebang string exceeds BINPRM_BUF_SIZE-2. This can silently > truncate i_arg or (worse) we can execute the wrong binary if buf[2:126] > happens to be the vali

[PATCH v5 06/10] x86/alternative: use temporary mm for text poking

2018-11-13 Thread Nadav Amit
text_poke() can potentially compromise the security as it sets temporary PTEs in the fixmap. These PTEs might be used to rewrite the kernel code from other cores accidentally or maliciously, if an attacker gains the ability to write onto kernel memory. Moreover, since remote TLBs are not flushed a

[PATCH v5 04/10] fork: provide a function for copying init_mm

2018-11-13 Thread Nadav Amit
Provide a function for copying init_mm. This function will be later used for setting a temporary mm. Cc: Andy Lutomirski Cc: Kees Cook Cc: Peter Zijlstra Cc: Dave Hansen Reviewed-by: Masami Hiramatsu Tested-by: Masami Hiramatsu Signed-off-by: Nadav Amit --- include/linux/sched/task.h | 1

[PATCH v5 09/10] x86/jump-label: remove support for custom poker

2018-11-13 Thread Nadav Amit
There are only two types of poking: early and breakpoint based. The use of a function pointer to perform poking complicates the code and is probably inefficient due to the use of indirect branches. Cc: Andy Lutomirski Cc: Kees Cook Cc: Peter Zijlstra Cc: Dave Hansen Cc: Masami Hiramatsu Signe

[PATCH v5 03/10] x86/mm: temporary mm struct

2018-11-13 Thread Nadav Amit
From: Andy Lutomirski Sometimes we want to set a temporary page-table entries (PTEs) in one of the cores, without allowing other cores to use - even speculatively - these mappings. There are two benefits for doing so: (1) Security: if sensitive PTEs are set, temporary mm prevents their use in ot

[PATCH v5 08/10] x86: avoid W^X being broken during modules loading

2018-11-13 Thread Nadav Amit
When modules and BPF filters are loaded, there is a time window in which some memory is both writable and executable. An attacker that has already found another vulnerability (e.g., a dangling pointer) might be able to exploit this behavior to overwrite kernel code. This patch prevents having writa

[PATCH v5 02/10] x86/jump_label: Use text_poke_early() during early init

2018-11-13 Thread Nadav Amit
There is no apparent reason not to use text_poke_early() while we are during early-init and we do not patch code that might be on the stack (i.e., we'll return to the middle of the patched code). This appears to be the case of jump-labels, so do so. This is required for the next patches that would

[PATCH v5 10/10] x86/alternative: remove the return value of text_poke_*()

2018-11-13 Thread Nadav Amit
The return value of text_poke_early() and text_poke_bp() is useless. Remove it. Cc: Andy Lutomirski Cc: Kees Cook Cc: Peter Zijlstra Cc: Dave Hansen Cc: Masami Hiramatsu Signed-off-by: Nadav Amit --- arch/x86/include/asm/text-patching.h | 4 ++-- arch/x86/kernel/alternative.c| 11 +

[PATCH v5 07/10] x86/kgdb: avoid redundant comparison of patched code

2018-11-13 Thread Nadav Amit
text_poke() already ensures that the written value is the correct one and fails if that is not the case. There is no need for an additional comparison. Remove it. Signed-off-by: Nadav Amit --- arch/x86/kernel/kgdb.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/arch/x86/kernel/k

[PATCH v5 00/10] x86/alternative: text_poke() fixes

2018-11-13 Thread Nadav Amit
This patch-set addresses some issues that might affect the security and the correctness of code patching. The main issue that the patches deal with is the fact that the fixmap PTEs that are used for patching are available for access from other cores and might be exploited. They are not even flushe

[PATCH v5 05/10] x86/alternative: initializing temporary mm for patching

2018-11-13 Thread Nadav Amit
To prevent improper use of the PTEs that are used for text patching, we want to use a temporary mm struct. We initailize it by copying the init mm. The address that will be used for patching is taken from the lower area that is usually used for the task memory. Doing so prevents the need to freque

[PATCH v5 01/10] Fix "x86/alternatives: Lockdep-enforce text_mutex in text_poke*()"

2018-11-13 Thread Nadav Amit
text_mutex is currently expected to be held before text_poke() is called, but we kgdb does not take the mutex, and instead *supposedly* ensures the lock is not taken and will not be acquired by any other core while text_poke() is running. The reason for the "supposedly" comment is that it is not e

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

2018-11-13 Thread NeilBrown
On Tue, Nov 13 2018, Jeff Layton wrote: > On Mon, 2018-11-12 at 12:34 -0800, syzbot wrote: >> Hello, >> >> syzbot found the following crash on: >> >> HEAD commit:442b8cea2477 Add linux-next specific files for 20181109 >> git tree: linux-next >> console output: https://syzkaller.appspot

Re: [PATCH v7 14/17] tpm: remove TPM_TRANSMIT_UNLOCKED flag

2018-11-13 Thread Stefan Berger
On 11/13/18 1:36 PM, Jarkko Sakkinen wrote: Added locking as part of tpm_try_get_ops() and tpm_put_ops() as they are anyway used in most of the call sites except in tpmrm_release() where we take the locks manually. Ok, so this is pulling the locking further up. Signed-off-by: Jarkko Sakkinen

Re: [PATCH 2/2] exec: increase BINPRM_BUF_SIZE to 256

2018-11-13 Thread Andrew Morton
On Tue, 13 Nov 2018 17:55:58 +0100 Oleg Nesterov wrote: > > However it would be basically cost-free to increase > > BINPRM_BUF_SIZE up to the point where sizeof(struct linux_binprm) == > > PAGE_SIZE? > > I don't think we should take sizeof(struct linux_binprm) into account, the > new members can

Re: [PATCH] openrisc: make function cache_loop() inline

2018-11-13 Thread Stafford Horne
On Mon, Nov 12, 2018 at 11:55:44PM +0800, Changbin Du wrote: > The third operand of mtspr instruction must be a constraint. To guarantee > this condition, function cache_loop() which uses macro mtspr() must be > inlined. So let's force it as 'inline'. This is to fix compiling error with > new optio

Re: [PATCH v2 3/6] cgroup: cgroup v2 freezer

2018-11-13 Thread Roman Gushchin
On Tue, Nov 13, 2018 at 11:15:41AM -0800, Tejun Heo wrote: > Hello, Roman. > > On Tue, Nov 13, 2018 at 06:47:55PM +, Roman Gushchin wrote: > > > > + /* Should the cgroup and its descendants be frozen. */ > > > > + bool freeze; > > > > > > Why not have this in freezer too? > > > >

Re: [PATCH 04/24] dt-bindings: leds: Add function and color properties

2018-11-13 Thread Jacek Anaszewski
On 11/12/2018 07:27 PM, Rob Herring wrote: > On Tue, Nov 06, 2018 at 11:07:12PM +0100, Jacek Anaszewski wrote: >> Introduce dedicated properties for conveying information about >> LED function and color. Mark old "label" property as deprecated. >> >> Signed-off-by: Jacek Anaszewski >> Cc: Baolin W

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-13 Thread Jacek Anaszewski
On 11/12/2018 11:06 PM, Pavel Machek wrote: > On Mon 2018-11-12 21:11:32, Jacek Anaszewski wrote: >> On 11/12/2018 08:05 PM, Pavel Machek wrote: >>> Hi! >>> >>> My system looks like this: >>> >>> input16::capslocktpacpi::bay_activetpacpi::standby >>> input16::numlock tpa

Re: [PATCH v2 3/6] cgroup: cgroup v2 freezer

2018-11-13 Thread Tejun Heo
On Tue, Nov 13, 2018 at 08:55:11PM +, Roman Gushchin wrote: > > > > > + if (lock_task_sighand(task, &flags)) { > > > > > + if (test_bit(CGRP_FREEZE, &dst->flags)) > > > > > + task->jobctl |= JOBCTL_TRAP_FREEZE; > > > > > + else > > > > > +

Re: Official Linux system wrapper library?

2018-11-13 Thread Andy Lutomirski
> On Nov 13, 2018, at 11:39 AM, Dave Martin wrote: > > On Mon, Nov 12, 2018 at 05:19:14AM -0800, Daniel Colascione wrote: > > [...] > >> We can learn something from how Windows does things. On that system, >> what we think of as "libc" is actually two parts. (More, actually, but >> I'm simpli

Re: [PATCH] jffs2: implement mount option to configure endianness

2018-11-13 Thread Daniel Walker
On Mon, Nov 12, 2018 at 03:43:37PM -0800, David Woodhouse wrote: > > That can't hurt. We should probably look at the time elapsed before you > can *write* to it (when the background scan and crc checking is > complete) rather than just reading. > Here are more data points. This is again with 10

[GIT PULL] nfsd bugfixes

2018-11-13 Thread J. Bruce Fields
Please pull: git://linux-nfs.org/~bfields/linux.git tags/nfsd-4.20-1 Three nfsd bugfixes. None are new bugs, but they all take a little effort to hit, which might explain why they weren't found sooner. --b. Frank Sorenson (1): sunrpc: correct the computation for page_ptr when truncatin

Re: [PATCH] mailbox: tegra-hsp: use devm_kstrdup_const()

2018-11-13 Thread Thierry Reding
On Thu, Nov 08, 2018 at 05:46:10PM +0100, Bartosz Golaszewski wrote: > Use devm_kstrdup_const() in the tegra-hsp driver. This mostly serves as > an example of how to use this new routine to shrink driver code. > > Also use devm_kzalloc() instead of regular kzalloc() to shrink the > driver even mor

[GIT PULL] integrity: fixup for new struct public_key_signature encoding field

2018-11-13 Thread James Morris
Hi Linus, Please pull this fix for a bug introduced with '82f94f24475c ("KEYS: Provide software public key query function [ver #2]")'. The following changes since commit ccda4af0f4b92f7b4c308d3acc262f4a7e3affad: Linux 4.20-rc2 (2018-11-11 17:12:31 -0600) are available in the Git repository

Re: [PATCH v7 15/17] tpm: introduce tpm_chip_start() and tpm_chip_stop()

2018-11-13 Thread Stefan Berger
On 11/13/18 1:36 PM, Jarkko Sakkinen wrote: Encapsulate power gating and locality functionality to tpm_chip_start() and tpm_chip_stop() in order to clean up the branching mess in tpm_transmit(). Signed-off-by: Jarkko Sakkinen Reviewed-by: Stefan Berger --- drivers/char/tpm/tpm-chip.c

Re: [PATCH] vfio/pci: Parallelize device open and release

2018-11-13 Thread Auger Eric
Hi Alex, On 11/13/18 5:34 PM, Alex Williamson wrote: > On Tue, 13 Nov 2018 15:42:49 +0100 > Auger Eric wrote: > >> Hi Alex, >> >> On 11/9/18 11:09 PM, Alex Williamson wrote: >>> In commit 61d792562b53 ("vfio-pci: Use mutex around open, release, and >>> remove") a mutex was added to freeze the re

Re: [PATCH v7 16/17] tpm: take TPM chip power gating out of tpm_transmit()

2018-11-13 Thread Stefan Berger
On 11/13/18 1:36 PM, Jarkko Sakkinen wrote: Call tpm_chip_start() and tpm_chip_stop() in * tpm_try_get_ops() and tpm_put_ops() * tpm_chip_register() * tpm2_del_space() And remove these calls from tpm_transmit(). The core reason for this change is that in tpm_vtpm_proxy a locality change require

Re: [PATCH v7 17/17] tpm: remove @flags from tpm_transmit()

2018-11-13 Thread Stefan Berger
On 11/13/18 1:36 PM, Jarkko Sakkinen wrote: Remove @flags from tpm_transmit() API. It is no longer used for anything. Signed-off-by: Jarkko Sakkinen Reviewed-by: Stefan Berger --- drivers/char/tpm/tpm-chip.c | 32 ++--- drivers/char/tpm/tpm-dev-common.c | 2 +-

Kernel panic - not syncing: corrupted stack end detected inside scheduler

2018-11-13 Thread Qian Cai
Running a runc testsuite [1] on an aarch64 server with the latest mainline (rc2) triggered this, [1] https://fedorapeople.org/cgit/caiqian/public_git/runctst.git/tree/runctst.py = # python runctst.py ... - start: runc ocf poststart load container root: container "root" does not exist

Donation

2018-11-13 Thread Mr Neil Trotter
A Donation Of 1 Million British Pounds To You In Good Faith

[GIT PULL] kgdb changes for v4.20-rc3

2018-11-13 Thread Daniel Thompson
Hi Linus Normally pull requests for kgdb come from Jason Wessel but he's seems to have been struggling for time this dev cycle so I've stepped in. That I've put this together at (somewhat past) the last minute goes some way to explaining why I've included some -Wimplicit-fallthrough fixes here.

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-13 Thread Geert Uytterhoeven
Hi Pavel, On Mon, Nov 12, 2018 at 11:07 PM Pavel Machek wrote: > Not really, I'm afraid. Hard drives have no red LEDs on them (and the > LED would not be visible, anyway) so the "device" symlink in such case > would point to some kind of i2c LED controller. I've seen hard drives with LEDs on the

[PATCH RFC] selftests/x86: Add a selftest for SGX

2018-11-13 Thread Jarkko Sakkinen
Add a selftest for SGX. It is a trivial test where a simple enclave copies one 64-bit word of memory between two memory locations given to the enclave as arguments. Signed-off-by: Jarkko Sakkinen --- Since this is my very first addition to selftests, I decided to roll out an RFC patch before incl

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-13 Thread Pavel Machek
On Tue 2018-11-13 22:38:49, Geert Uytterhoeven wrote: > Hi Pavel, > > On Mon, Nov 12, 2018 at 11:07 PM Pavel Machek wrote: > > Not really, I'm afraid. Hard drives have no red LEDs on them (and the > > LED would not be visible, anyway) so the "device" symlink in such case > > would point to some k

Re: [PATCH RFC] selftests/x86: Add a selftest for SGX

2018-11-13 Thread Dave Hansen
On 11/13/18 1:40 PM, Jarkko Sakkinen wrote: > +int main(int argc, char **argv) > +{ > + unsigned long bin_size = (unsigned long)&encl_bin_end - > + (unsigned long)&encl_bin; > + struct sgx_secs secs; > + uint64_t result = 0; > + > + if (!encl_load(&secs,

Re: [RFC PATCH 01/13] arm: Fix mutual exclusion in arch_gettimeoffset

2018-11-13 Thread Finn Thain
On Tue, 13 Nov 2018, Russell King - ARM Linux wrote: > On Tue, Nov 13, 2018 at 02:39:00PM +1100, Finn Thain wrote: > > > > You could remove the old arch_gettimeoffset API without dropping any > > platforms. > > > > If no-one converts a given platform to the clocksource API it would mean > > th

Re: [PATCH v2 3/6] cgroup: cgroup v2 freezer

2018-11-13 Thread Roman Gushchin
Hi Oleg! On Tue, Nov 13, 2018 at 04:48:25PM +0100, Oleg Nesterov wrote: > On 11/12, Roman Gushchin wrote: > > > > --- a/include/linux/sched.h > > +++ b/include/linux/sched.h > > @@ -83,7 +83,8 @@ struct task_group; > > #define TASK_WAKING0x0200 > > #define TASK_NOLOAD

Re: [PATCH v2] scripts/setlocalversion: Improve -dirty check with git-status --no-optional-locks

2018-11-13 Thread Andreas Schwab
On Nov 13 2018, Brian Norris wrote: > + } | grep -qv '^\(.. \)\?scripts/package'; then \? is a GNU extension, so if you want to stay portable you need to switch to ERE. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780

Re: [RFC PATCH 13/13] m68k: mvme16x: Convert to clocksource API

2018-11-13 Thread Finn Thain
On Tue, 13 Nov 2018, I wrote: > On Mon, 12 Nov 2018, Thomas Gleixner wrote: > > > > +static u32 clk_total; > > > + > > > +#define PCC_TIMER_CLOCK_FREQ 100 > > > +#define PCC_TIMER_CYCLES (PCC_TIMER_CLOCK_FREQ / HZ) > > > + > > > static irqreturn_t mvme16x_timer_int (int irq, void *dev_id

Re: [PATCH 06/15] Platform: OLPC: Add XO-1.75 EC driver

2018-11-13 Thread James Cameron
On Tue, Nov 13, 2018 at 06:26:09PM +0100, Lubomir Rintel wrote: > Hi, > > first of all -- thanks for such a careful review. It is very helpful. > > Wherever I don't respond to you, I'm just following what you wrote. It > would perhaps be tiresome to respond to "Yes, will fix in next version" > to

Re: [RFC PATCH 06/13] m68k: Drop ARCH_USES_GETTIMEOFFSET

2018-11-13 Thread Finn Thain
On Tue, 13 Nov 2018, Michael Schmitz wrote: > > Running a recent kernel under ARAnyM shows 40 ns resolution so the Atari > hardware emulation is a little more complete. > You mean, 40 us resolution, right? > Using that for initial tests, I can confirm that timer resolution is > reduced to 10

Re: [RFC PATCH 1/1] vmalloc: add test driver to analyse vmalloc allocator

2018-11-13 Thread Andrew Morton
On Tue, 13 Nov 2018 16:16:29 +0100 "Uladzislau Rezki (Sony)" wrote: > This adds a new kernel module for analysis of vmalloc allocator. It is > only enabled as a module. There are two main reasons this module should > be used for. Those are performance evaluation and stressing of vmalloc > subsys

Re: [RFC PATCH 13/13] m68k: mvme16x: Convert to clocksource APIy

2018-11-13 Thread Thomas Gleixner
On Wed, 14 Nov 2018, Finn Thain wrote: > On Tue, 13 Nov 2018, I wrote: > > > On Mon, 12 Nov 2018, Thomas Gleixner wrote: > > > > > > +static u32 clk_total; > > > > + > > > > +#define PCC_TIMER_CLOCK_FREQ 100 > > > > +#define PCC_TIMER_CYCLES (PCC_TIMER_CLOCK_FREQ / HZ) > > > > + > > > >

Re: [PATCH] MIPS: OCTEON: cavium_octeon_defconfig: re-enable OCTEON USB driver

2018-11-13 Thread Paul Burton
Hello, Aaro Koskinen wrote: > Re-enable OCTEON USB driver which is needed on older hardware > (e.g. EdgeRouter Lite) for mass storage etc. This got accidentally > deleted when config options were changed for OCTEON2/3 USB. > > Fixes: f922bc0ad08b ("MIPS: Octeon: cavium_octeon_defconfig: Enable mo

Re: [PATCH 1/2] MIPS: Use Kconfig to select CPU_NO_EFFICIENT_FFS

2018-11-13 Thread Paul Burton
Hello, Paul Burton wrote: > Select CONFIG_CPU_NO_EFFICIENT_FFS via Kconfig when the kernel is > configured for a pre-MIPS32r1 CPU, rather than defining its equivalent > in asm/cpu-features.h based upon overrides of cpu_has_mips* macros. > > The latter only works if a platform has an cpu-feature-o

Re: [PATCH v2 1/2] mips: delete duplicated BUILTIN_DTB and LIBFDT configs

2018-11-13 Thread Paul Burton
Hello, Maksym Kokhan wrote: > CONFIG_BUILTIN_DTB and CONFIG_LIBFDT selection is duplicated > in menu "Machine selection" under MIPS_MALTA. > > Signed-off-by: Maksym Kokhan > Signed-off-by: Andrii Bordunov Series applied to mips-next. Thanks, Paul [ This message was auto-generated; if you

[PATCH] drivers/char/random.c: add missing include

2018-11-13 Thread Paolo Cretaro
Include linux/hw_random.h header file to silence the following Wmissing-prototypes gcc warning: drivers/char/random.c:2346:6: warning: no previous prototype for ‘add_hwgenerator_randomness’ [-Wmissing-prototypes] Signed-off-by: Paolo Cretaro --- drivers/char/random.c | 1 + 1 file changed, 1 in

Re: [RFC PATCH 13/13] m68k: mvme16x: Convert to clocksource APIy

2018-11-13 Thread Finn Thain
On Tue, 13 Nov 2018, Thomas Gleixner wrote: > On Wed, 14 Nov 2018, Finn Thain wrote: > > > > What I mean by that is, the interrupt level (IPL) prevents interrupt > > handlers from being re-entered. But a handler can still get > > interrupted by a higher priority interrupt request. In the past I

Re: [PATCH v7 15/17] tpm: introduce tpm_chip_start() and tpm_chip_stop()

2018-11-13 Thread Stefan Berger
On 11/13/18 1:36 PM, Jarkko Sakkinen wrote: Encapsulate power gating and locality functionality to tpm_chip_start() and tpm_chip_stop() in order to clean up the branching mess in tpm_transmit(). I ran the vtpm proxy test suite on this series and got this error when running it with 'make check

Re: [PATCH V3] KSM: allow dedup all tasks memory

2018-11-13 Thread Pavel Tatashin
> Wait, what? Can you name specific ones? Nowadays, enabling KSM for > untrusted VMs seems like a terrible idea to me, security-wise. Of course it is not used to share data among different customers/tenants, as far as I know it is used by Oracle Cloud to merge the same pages in clear containers.

Re: [RFC PATCH] spi: add driver for the SiFive SPI controller

2018-11-13 Thread Mark Brown
On Tue, Nov 13, 2018 at 08:48:43PM +0100, Emil Renner Berthing wrote: > On Tue, 13 Nov 2018 at 19:35, Mark Brown wrote: > > On Mon, Nov 12, 2018 at 03:27:36PM +0100, Emil Renner Berthing wrote: > > > I know the discussions about the sifive devicetree compatible > > > strings haven't come to a con

[PATCH v3 1/3] MIPS: SiByte: Set 32-bit bus mask for BCM1250 PCI

2018-11-13 Thread Maciej W. Rozycki
The Broadcom SiByte BCM1250, BCM1125H and BCM1125 SOCs have an onchip 32-bit PCI host bridge, and the two former SOCs also have an onchip HT host bridge. The HT host bridge, where present, appears in the PCI configuration space as if it was a device on the 32-bit PCI bus behind the PCI host br

[PATCH v3 0/3] MIPS: SiByte: Handle PCI DMA with 64-bit memory addressing

2018-11-13 Thread Maciej W. Rozycki
Hi, This mini patch series enables correct support for DMA in the presence of memory outside the 32-bit address range with the Broadcom SiByte SOCs and the relevant development boards. There is a quirk in the BCM1250, BCM1125 and BCM1125H SOCs in that their onchip 32-bit PCI host bridge does

[PATCH v3 2/3] MIPS: SiByte: Enable ZONE_DMA32 for LittleSur

2018-11-13 Thread Maciej W. Rozycki
The LittleSur board is marked for high memory support and therefore clearly must provide a way to have enough memory installed for some to be present outside the low 4GiB physical address range. With the memory map of the BCM1250 SOC it has been built around it means over 1GiB of actual DRAM,

[PATCH v3 3/3] MIPS: SiByte: Enable swiotlb for SWARM, LittleSur and BigSur

2018-11-13 Thread Maciej W. Rozycki
The Broadcom SiByte BCM1250, BCM1125, and BCM1125H SOCs have an onchip DRAM controller that supports memory amounts of up to 16GiB, and due to how the address decoder has been wired in the SOC any memory beyond 1GiB is actually mapped starting from 4GiB physical up, that is beyond the 32-bit ad

Re: [PATCH v2 0/2] perf tests: Check for ARM [vectors] page

2018-11-13 Thread Florian Fainelli
On 10/25/18 10:55 AM, Florian Fainelli wrote: > Hi all, > > I just painfully learned that perf would segfault when > CONFIG_KUSER_HELPERS is disabled because it unconditionally makes use of > it. This patch series adds an ARM test for that by leveraging the > existing find_vdso_map() function and

Re: [RFC 0/9] ASoC/ARM: Merge the davinci and omap audio directories

2018-11-13 Thread Mark Brown
On Thu, Nov 08, 2018 at 10:37:45AM +0200, Peter Ujfalusi wrote: > Hi, > > This RFC series is on top of the omap-mcbsp cleanup series: > http://mailman.alsa-project.org/pipermail/alsa-devel/2018-November/141604.html This is all fine by me. signature.asc Description: PGP signature

Re: [PATCH 1/2] ASoC: ak4118: Add support for AK4118 S/PDIF transceiver

2018-11-13 Thread Mark Brown
On Thu, Nov 08, 2018 at 01:49:33PM +0100, Clément Péron wrote: This looks mostly good, a few small things below but nothing too major: > --- /dev/null > +++ b/sound/soc/codecs/ak4118.c > @@ -0,0 +1,449 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * ak4118.c -- Asahi Kasei ALSA Soc Audio

Re: [PATCH v3] scripts/kconfig/merge_config: don't redefine 'y' to 'm'

2018-11-13 Thread Masahiro Yamada
On Mon, Nov 12, 2018 at 5:39 PM Anders Roxell wrote: > > In today's merge_config.sh the order of the config fragment files dictates > the output of a config option. With this approach we will get different > .config files depending on the order of the config fragment files. > > So doing something

Re: [PATCH v7 15/17] tpm: introduce tpm_chip_start() and tpm_chip_stop()

2018-11-13 Thread Stefan Berger
On 11/13/18 1:36 PM, Jarkko Sakkinen wrote: Encapsulate power gating and locality functionality to tpm_chip_start() and tpm_chip_stop() in order to clean up the branching mess in tpm_transmit(). Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-chip.c | 110

Re: WARNING: CPU: 26 PID: 64391 at lib/vsprintf.c:2193 set_precision+0x84/0x90

2018-11-13 Thread Petr Mladek
On Tue 2018-11-13 14:23:17, Steven Rostedt wrote: > On Tue, 13 Nov 2018 13:58:18 -0500 > Qian Cai wrote: > > > > Care to print the len and name parameters before this line? > > len = 60612; name = > > How big are pages on arm64? Because we shouldn't get to this path if > the string is bigger t

<    1   2   3   4   5   6   7   >