[PATCH 2/7] aio: remove an outdated BUG_ON and comment in aio_complete

2018-05-02 Thread Christoph Hellwig
These days we don't treat sync iocbs special in the aio completion code as they never use it. Remove the old comment and BUG_ON given that the current definition of is_sync_kiocb makes it impossible to hit. Signed-off-by: Christoph Hellwig Reviewed-by: Darrick J. Wong --- fs/aio.c | 9

Re: [PATCH v2 3/4] seccomp: Audit attempts to modify the actions_logged sysctl

2018-05-02 Thread James Morris
On Wed, 2 May 2018, Tyler Hicks wrote: > type=CONFIG_CHANGE msg=audit(1525275325.613:142): op=seccomp-logging > actions=kill_process,kill_thread,errno,trace,log > old-actions=kill_process,kill_thread,errno,trace,log res=1 > > No audit records are generated when reading the actions_logged sysct

[PATCH v14 2/8] ASoC: sun4i-codec: Add Mic1 Boost Volume, Mic2 Boost Volume

2018-05-02 Thread Danny Milosavljevic
Add Mic1 Boost Volume and Mic2 Boost Volume for Allwinner A10 and Allwinner A20. Also add support for extra controls to the sun4i_codec_quirks because the A10 and A20 have Mic1 Boost Volume at different places (likewise for Mic2 Boost Volume). Signed-off-by: Danny Milosavljevic --- sound/soc/su

[PATCH v14 5/8] ASoC: sun4i-codec: Add FM Playback Volume, FM Left, FM Right, FM Playback Switch

2018-05-02 Thread Danny Milosavljevic
Add FM Playback Volume for Allwinner A10 and Allwinner A20. Add FM Left, FM Right, FM Playback Switch for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic --- sound/soc/sunxi/sun4i-codec.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/sound/soc/sunxi/sun

[PATCH v14 1/8] ASoC: sun4i-codec: Add MIC2 Pre-Amplifier, Mic2, Mic Playback Volume

2018-05-02 Thread Danny Milosavljevic
Add MIC2 Pre-Amplifier, Mic2 input and Mic Playback Volume for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic --- sound/soc/sunxi/sun4i-codec.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c

[PATCH v14 7/8] ASoC: sun4i-codec: Add Differential Line Source

2018-05-02 Thread Danny Milosavljevic
Add Differential Line Source for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic --- sound/soc/sunxi/sun4i-codec.c | 24 1 file changed, 24 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index 4125d9ef0eb6..4

[PATCH v14 3/8] ASoC: sun4i-codec: Merge sun4i_codec_left_mixer_controls and sun4i_codec_right_mixer_controls into sun4i_codec_mixer_controls

2018-05-02 Thread Danny Milosavljevic
Since it's now possible to have a DAPM mixer control with multiple channels, use it to cut down the total number of controls. Keep "Left Mixer Left DAC Playback Switch" and "Right Mixer Right DAC Playback Switch" name & layout the same as before for compatibility. Signed-off-by: Danny Milosavljev

[PATCH v14 4/8] ASoC: sun4i-codec: Add Mic1 Playback Switch, Mic2 Playback Switch

2018-05-02 Thread Danny Milosavljevic
Add Mic1 Playback Switch and Mic2 Playback Switch for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic --- sound/soc/sunxi/sun4i-codec.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index b62a

[PATCH v14 0/8] ASoC: sun4i-codec: Add Line-In, FM-In, Mic 2, Capture Source, Differential Line-In

2018-05-02 Thread Danny Milosavljevic
This patchset adds some mixer controls to sun4i-codec for the Allwinner A10 and the Allwinner A20. It also adds a mux for the capture source and the PGA for the MIC2 preamp. Where possible, it uses SOC_DAPM_DOUBLE in order to cut down on the number of distinct controls in alsamixer. v14 changes

[PATCH] selftests: memory-hotplug: delete RUN_TESTS and EMIT_TESTS overrides

2018-05-02 Thread Shuah Khan (Samsung OSG)
Delete RUN_TESTS and EMIT_TESTS overrides and use common defines in lib.mk. Common defines work after making the change the test to run with ratio=2 as the default mode to be able to invoke the test without the "-r 2" argument from the common RUN_TESTS and EMIT_TESTS. The run_full_tests target now

[PATCH] selftests: android: delete RUN_TESTS and EMIT_TESTS overrides

2018-05-02 Thread Shuah Khan (Samsung OSG)
Delete RUN_TESTS and EMIT_TESTS overrides and use common defines in lib.mk. Common defines work just fine and there is no need to define custom overrides. Signed-off-by: Shuah Khan (Samsung OSG) --- tools/testing/selftests/android/Makefile | 8 1 file changed, 8 deletions(-) diff --git

[PATCH] selftests: mount: delete RUN_TESTS and EMIT_TESTS overrides

2018-05-02 Thread Shuah Khan (Samsung OSG)
Delete RUN_TESTS and EMIT_TESTS overrides and use common defines in lib.mk. Add new run_tests.sh to do the dependency checks the custom RUN_TESTS did. Common defines work with the run_tests.sh set as the TEST_PROGS and defining unprivileged-remount-test in TEST_GEN_FILES. Kselftest framework build

[PATCH] selftests: futex: delete RUN_TESTS and EMIT_TESTS overrides

2018-05-02 Thread Shuah Khan (Samsung OSG)
Delete RUN_TESTS and EMIT_TESTS overrides and use common defines in lib.mk. Common defines work just fine and there is no need to define custom overrides. Signed-off-by: Shuah Khan (Samsung OSG) --- tools/testing/selftests/futex/Makefile | 12 1 file changed, 12 deletions(-) diff -

[PATCH] selftests: mqueue: delete RUN_TESTS and EMIT_TESTS overrides

2018-05-02 Thread Shuah Khan (Samsung OSG)
Delete RUN_TESTS and EMIT_TESTS overrides and use common defines in lib.mk. The overrides are in place to call mq_open_tests with queue name argument. The change to delete overrides is coupled with a change to mq_open_tests to use default queue name when it is called without one. Signed-off-by: Sh

[PATCH v14 8/8] ASoC: sun4i-codec: Add Left Capture Select, Right Capture Select

2018-05-02 Thread Danny Milosavljevic
Add Left Capture Select and Right Capture Select for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic --- sound/soc/sunxi/sun4i-codec.c | 50 +++ 1 file changed, 50 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/su

[PATCH v14 6/8] ASoC: sun4i-codec: Add Line Playback Volume, Line Boost Volume, Line Right, Line Left, Line Playback Switch

2018-05-02 Thread Danny Milosavljevic
Add Line Playback Volume for Allwinner A10 and Allwinner A20. Add Line Boost Volume for Allwinner A10 and Allwinner A20. Add Line Right, Line Left, Line Playback Switch for Allwinner A10 and Allwinner A20. Signed-off-by: Danny Milosavljevic --- sound/soc/sunxi/sun4i-codec.c | 21

Re: led: hw-trigger, global brightness and multi-colored leds

2018-05-02 Thread Pavel Machek
Hi! > on the Turris Omnia[1] the LEDs are controllable via an i2c device. Each > LED can be either in "manual mode" or in a mode I'd call "native mode" > which is the default. In this native mode the LED being on or off > depends on an input line that is controlled by another hardware. So a > LED

Re: [PATCH 2/2] arm64: Clear the stack

2018-05-02 Thread Kees Cook
On Wed, May 2, 2018 at 1:33 PM, Laura Abbott wrote: > > Implementation of stackleak based heavily on the x86 version Awesome! Notes below for both you and Alexander, since I think we can create a common code base instead of having near-duplicates in the arch/ trees... > > Signed-off-by: Laura Ab

Re: Motorola Droid 4 progress, power consumption

2018-05-02 Thread Pavel Machek
Hi! > > I also have some hacks to allow configuration of the full > > voltage. Charging to 4.35V is pretty agressive, and I believe baterry > > will be damaged less if we only charge to 4.1V. > > That should be based on the PMIC register values that Android > uses. Worth rechecking for sure, I th

Re: [RFC PATCH] Add /proc//numa_vamaps for numa node information

2018-05-02 Thread Andrew Morton
On Tue, 1 May 2018 22:58:06 -0700 Prakash Sangappa wrote: > For analysis purpose it is useful to have numa node information > corresponding mapped address ranges of the process. Currently > /proc//numa_maps provides list of numa nodes from where pages are > allocated per VMA of the process. Thi

Re: linux-next: Tree for May 2 (objtool bug!)

2018-05-02 Thread Randy Dunlap
On 05/02/2018 02:06 PM, Josh Poimboeuf wrote: > On Wed, May 02, 2018 at 08:59:38AM -0700, Randy Dunlap wrote: >> On 05/02/2018 08:43 AM, Josh Poimboeuf wrote: >>> On Wed, May 02, 2018 at 08:37:53AM -0700, Randy Dunlap wrote: On 05/01/2018 11:59 PM, Stephen Rothwell wrote: > Hi all, > >

Re: [PATCH v7 0/7] KVM: x86: Allow Qemu/KVM to use PVH entry point

2018-05-02 Thread Maran Wilson
On 4/18/2018 1:11 AM, Linus Walleij wrote: I wonder why I am starting to get CCed on Xen patches all of a sudden. I happened to run into Jürgen at a conference only last weekend, but I still don't know anything whatsoever about Xen or how it works. If get_maintainer.pl has started to return my

Re: [PATCH] memcg: Replace mm->owner with mm->memcg

2018-05-02 Thread Eric W. Biederman
Andrew Morton writes: > On Wed, 02 May 2018 14:21:35 -0500 ebied...@xmission.com (Eric W. Biederman) > wrote: > >> Recently it was reported that mm_update_next_owner could get into >> cases where it was executing it's fallback for_each_process part of >> the loop and thus taking up a lot of time

Re: [PATCHv3] drm/amdkfd: Remove vla

2018-05-02 Thread Kees Cook
On Fri, Apr 13, 2018 at 2:24 PM, Laura Abbott wrote: > > There's an ongoing effort to remove VLAs[1] from the kernel to eventually > turn on -Wvla. Switch to a constant value that covers all hardware. > > [1] https://lkml.org/lkml/2018/3/7/621 > > Reviewed-by: Felix Kuehling > Acked-by: Christian

Re: [PATCH 0/3 v2] linux-next: mm: Track genalloc allocations

2018-05-02 Thread Andrew Morton
On Wed, 2 May 2018 05:05:19 +0400 Igor Stoppa wrote: > This patchset was created as part of an older version of pmalloc, however > it has value per-se, as it hardens the memory management for the generic > allocator genalloc. > > Genalloc does not currently track the size of the allocations it

Introducing a nanoMIPS port for Linux

2018-05-02 Thread James Hogan
Yesterday MIPS Tech announced the latest generation of the MIPS family of architectures called nanoMIPS [1]. As part of the development we have been designing all the open source tools necessary to support the architecture and, thanks to the speed with which we were able to prototype, we have also

[PATCH] evm: Don't update hmacs in user ns mounts

2018-05-02 Thread Eric W. Biederman
From: Seth Forshee Date: Fri, 22 Dec 2017 15:32:35 +0100 The kernel should not calculate new hmacs for mounts done by non-root users. Update evm_calc_hmac_or_hash() to refuse to calculate new hmacs for mounts for non-init user namespaces. Cc: linux-integr...@vger.kernel.org Cc: linux-security-mo

RE:PRIVATE...

2018-05-02 Thread oracle
I have a business Proposal that will be of benefit to the both of us.Kindly contact me on mrmichealwu...@yahoo.com.hk should this be of interest to you.

Re: [PATCH 3/3] vsprintf: Add use-early-random-bytes cmd line option

2018-05-02 Thread Andrew Morton
On Wed, 2 May 2018 09:33:40 +1000 "Tobin C. Harding" wrote: > Currently if an attempt is made to print a pointer before there is > enough entropy then '(ptrval)' is printed. This makes debugging > early stage stack traces difficult. We can relax the requirement for > cryptographically

Re: [PATCH 1/3] sched: remove select_idle_core() for scalability

2018-05-02 Thread Subhra Mazumdar
On 05/01/2018 11:03 AM, Peter Zijlstra wrote: On Mon, Apr 30, 2018 at 04:38:42PM -0700, Subhra Mazumdar wrote: I also noticed a possible bug later in the merge code. Shouldn't it be: if (busy < best_busy) {     best_busy = busy;     best_cpu = first_idle; } Uhh, quite. I did say it

Re: [PATCH v2] libata: blacklist Micron SSD

2018-05-02 Thread Sudip Mukherjee
Hi Martin, On Mon, Apr 30, 2018 at 11:24:49PM -0400, Martin K. Petersen wrote: > > Sudip, > > > v1: Only M500IT MU01 was blacklisted. > > > > v2: Whitelist M500IT BG02 and M500DC and then blacklist all other Micron. > > I think my preference would be to blacklist M500IT with the MU01 > firmwar

[PATCHv2] x86/mm: Introduce 'no5lvl' kernel parameter

2018-05-02 Thread Kirill A. Shutemov
The kernel parameter allows to force kernel to use 4-level paging even if hardware and kernel support 5-level paging. The option may be useful to workaround regressions related to 5-level paging. Signed-off-by: Kirill A. Shutemov --- v2: - Fix build issue. --- Documentation/admin-guide/kerne

Re: [PATCH 4/7] aio: remove the extra get_file/fput pair in io_submit_one

2018-05-02 Thread Darrick J. Wong
On Wed, May 02, 2018 at 11:14:45PM +0200, Christoph Hellwig wrote: > If we release the lockdep write protection token before calling into > ->write_iter and thus never access the file pointer after an -EIOCBQUEUED > return from ->write_iter or ->read_iter we don't need this extra > reference. > >

[PATCH] sctp: fix a potential missing-check bug

2018-05-02 Thread Wenwen Wang
In sctp_setsockopt_maxseg(), the integer 'val' is compared against min_len and max_len to check whether it is in the appropriate range. If it is not, an error code -EINVAL will be returned. This is enforced by a security check. But, this check is only executed when 'val' is not 0. In fact, if 'val'

Re: [PATCH v5] bpf, x86_32: add eBPF JIT compiler for ia32

2018-05-02 Thread Daniel Borkmann
Hi Wang, On 04/29/2018 02:37 PM, Wang YanQing wrote: > The JIT compiler emits ia32 bit instructions. Currently, It supports eBPF > only. Classic BPF is supported because of the conversion by BPF core. > > Almost all instructions from eBPF ISA supported except the following: > BPF_ALU64 | BPF_DIV

[PATCH] scsi: dpt_i2o: Remove VLA usage

2018-05-02 Thread Kees Cook
On the quest to remove all VLAs from the kernel[1] this moves the sg_list variable off the stack, as already done for other allocated buffers in adpt_i2o_passthru(). Additionally consolidates the error path for kfree(). [1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qpxydaacu1r

Re: Linux messages full of `random: get_random_u32 called from`

2018-05-02 Thread Theodore Y. Ts'o
On Wed, May 02, 2018 at 10:49:34AM -0700, Laura Abbott wrote: > > It is a Fedora patch we're carrying > https://src.fedoraproject.org/rpms/libgcrypt/blob/master/f/libgcrypt-1.6.2-fips-ctor.patch#_23 > so yes, it is a Fedora specific use case. > From talking to the libgcrypt team, this is a FIPS mo

[PATCH] dcache: fix quadratic behavior with parallel shrinkers

2018-05-02 Thread Miklos Szeredi
When multiple shrinkers are operating on a directory containing many dentries, it takes much longer than if only one shrinker is operating on the directory. Call the shrinker instances A and B, which shrink DIR containing NUM dentries. Assume A wins the race for locking DIR's d_lock, then it goes

Re: [RFC PATCH] Add /proc//numa_vamaps for numa node information

2018-05-02 Thread Dave Hansen
On 05/02/2018 02:33 PM, Andrew Morton wrote: > On Tue, 1 May 2018 22:58:06 -0700 Prakash Sangappa > wrote: >> For analysis purpose it is useful to have numa node information >> corresponding mapped address ranges of the process. Currently >> /proc//numa_maps provides list of numa nodes from wher

Re: [PATCH v8 13/13] arm64: topology: divorce MC scheduling domain from core_siblings

2018-05-02 Thread Jeremy Linton
Hi, On 05/02/2018 06:49 AM, Morten Rasmussen wrote: On Tue, May 01, 2018 at 03:33:33PM +0100, Sudeep Holla wrote: On 26/04/18 00:31, Jeremy Linton wrote: Now that we have an accurate view of the physical topology we need to represent it correctly to the scheduler. Generally MC should equal t

Re: [V9fs-developer] [PATCH v2 1/2] net/9p: detecting invalid options as much as possible

2018-05-02 Thread Andrew Morton
On Tue, 17 Apr 2018 14:45:01 +0800 Chengguang Xu wrote: > Currently when detecting invalid options in option parsing, > some options(e.g. msize) just set errno and allow to continuously > validate other options so that it can detect invalid options > as much as possible and give proper error mess

Re: [PATCH v8 13/13] arm64: topology: divorce MC scheduling domain from core_siblings

2018-05-02 Thread Jeremy Linton
Hi, Thanks for taking a look at this. On 05/01/2018 09:33 AM, Sudeep Holla wrote: On 26/04/18 00:31, Jeremy Linton wrote: Now that we have an accurate view of the physical topology we need to represent it correctly to the scheduler. Generally MC should equal the LLC in the system, but there

Re: [PATCH v8 11/13] arm64: topology: enable ACPI/PPTT based CPU topology

2018-05-02 Thread Jeremy Linton
Hi, On 05/02/2018 03:24 AM, Rafael J. Wysocki wrote: On Tue, May 1, 2018 at 4:46 PM, Sudeep Holla wrote: On 26/04/18 00:31, Jeremy Linton wrote: Propagate the topology information from the PPTT tree to the cpu_topology array. We can get the thread id and core_id by assuming certain levels o

[PATCH] i2c: core-smbus: fix a potential uninitialization bug

2018-05-02 Thread Wenwen Wang
In i2c_smbus_xfer_emulated(), there are two buffers: msgbuf0 and msgbuf1, which are used to save a series of messages, as mentioned in the comment. According to the value of the variable "size", msgbuf0 is initialized to various values. In contrast, msgbuf1 is left uninitialized until the function

linux-next: manual merge of the rockchip tree with the renesas tree

2018-05-02 Thread Stephen Rothwell
Hi Heiko, Today's linux-next merge of the rockchip tree got a conflict in: arch/arm64/configs/defconfig between commits: 93f7bfd930c0 ("arm64: defconfig: makes SND_SIMPLE_CARD to module") ddf3fa8b8a16 ("arm64: defconfig: Enable CONFIG_SND_AUDIO_GRAPH_CARD") from the renesas tree and comm

[PATCH] media: staging: atomisp: fix a potential missing-check bug

2018-05-02 Thread Wenwen Wang
At the end of atomisp_subdev_set_selection(), the function atomisp_subdev_get_rect() is invoked to get the pointer to v4l2_rect. Since this function may return a NULL pointer, it is firstly invoked to check the returned pointer. If the returned pointer is not NULL, then the function is invoked agai

Re: [GIT PULL] f2fs update for 4.16-rc1

2018-05-02 Thread Stephen Rothwell
Hi all, On Tue, 3 Apr 2018 12:29:19 +1000 Stephen Rothwell wrote: > > Ping? Ping again ... So has Chris gone missing? Or should I just remove the btrfs tree from linux-next? > On Wed, 14 Mar 2018 10:17:04 +1100 Stephen Rothwell > wrote: > > > > On Thu, 1 Feb 2018 09:25:51 +1100 Stephen Ro

Re: [PATCH] dcache: fix quadratic behavior with parallel shrinkers

2018-05-02 Thread Al Viro
On Thu, May 03, 2018 at 12:26:35AM +0200, Miklos Szeredi wrote: > When multiple shrinkers are operating on a directory containing many > dentries, it takes much longer than if only one shrinker is operating on > the directory. > > Call the shrinker instances A and B, which shrink DIR containing NU

[PATCH v2 0/4] enable early printing of hashed pointers

2018-05-02 Thread Tobin C. Harding
Currently if an attempt is made to print a pointer before there is enough entropy then '(ptrval)' is printed. This makes debugging stack traces during early boot difficult. It was observed that we can relax the requirement for cryptographically secure hashing when debugging while still ma

[PATCH v2 1/4] random: Fix whitespace pre random-bytes work

2018-05-02 Thread Tobin C. Harding
There are a couple of whitespace issues around the function get_random_bytes_arch(). In preparation for patching this function let's clean them up. Signed-off-by: Tobin C. Harding Acked-by: Theodore Ts'o --- drivers/char/random.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --

[PATCH v2 4/4] vsprintf: Add command line option debug_early_boot

2018-05-02 Thread Tobin C. Harding
Currently printing [hashed] pointers requires either a hw RNG or enough entropy to be available. Early in the boot sequence these conditions may not be met resulting in a dummy string '(ptrval)' being printed. This makes debugging the early boot sequence difficult. We can relax the requi

[PATCH v2 3/4] vsprintf: Use hw RNG for ptr_key

2018-05-02 Thread Tobin C. Harding
Currently we must wait for enough entropy to become available before hashed pointers can be printed. We can remove this wait by using the hw RNG if available. Use hw RNG to get keying material by default if available. Suggested-by: Kees Cook Signed-off-by: Tobin C. Harding --- lib/vsprintf.c

[PATCH v2 2/4] random: Return nbytes filled from hw RNG

2018-05-02 Thread Tobin C. Harding
Currently the function get_random_bytes_arch() has return value 'void'. If the hw RNG fails we currently fall back to using get_random_bytes(). This defeats the purpose of requesting random material from the hw RNG in the first place. There are currently no intree users of get_random_bytes_arch().

[PATCH] scsi: libosd: Remove VLA usage

2018-05-02 Thread Kees Cook
On the quest to remove all VLAs from the kernel[1] this rearranges the code to avoid a VLA warning under -Wvla (gcc doesn't recognize "const" variables as not triggering VLA creation). Additionally cleans up variable naming to avoid 80 character column limit. [1] https://lkml.kernel.org/r/CA+55aF

Re: [PATCH 0/3 v2] linux-next: mm: Track genalloc allocations

2018-05-02 Thread Igor Stoppa
On 03/05/18 01:50, Andrew Morton wrote: On Wed, 2 May 2018 05:05:19 +0400 Igor Stoppa wrote: This patchset was created as part of an older version of pmalloc, however it has value per-se, as it hardens the memory management for the generic allocator genalloc. Genalloc does not currently tr

Re: [PATCH 2/2] arm64: Clear the stack

2018-05-02 Thread Laura Abbott
On 05/02/2018 02:31 PM, Kees Cook wrote: On Wed, May 2, 2018 at 1:33 PM, Laura Abbott wrote: Implementation of stackleak based heavily on the x86 version Awesome! Notes below for both you and Alexander, since I think we can create a common code base instead of having near-duplicates in the a

[PATCH v6 0/4] Certificate insertion support for x86 bzImages

2018-05-02 Thread Mehmet Kayaalp
These patches add support for modifying the reserved space for extra certificates in a compressed bzImage in x86. This allows separating the system keyring certificate from the kernel build process. After the kernel image is distributed, the insert-sys-cert script can be used to insert the certific

[PATCH v6 2/4] KEYS: Add ELF class-independent certificate insertion support

2018-05-02 Thread Mehmet Kayaalp
This patch adds support for handling either 32-bit or 64-bit ELF files by moving ELF class checks to runtime. This makes it possible to compile the script for 64-bit, and the kernel for 32-bit (e.g. make ARCH=i386 on x86-64). Gelf/libelf is purposely not used to avoid the build dependency. Signed-

[PATCH v6 3/4] KEYS: Support for inserting a certificate into x86 bzImage

2018-05-02 Thread Mehmet Kayaalp
The config option SYSTEM_EXTRA_CERTIFICATE (introduced in c4c361059585) reserves space in vmlinux file, which is compressed to create the self-extracting bzImage. This patch adds the capability of extracting the vmlinux, inserting the certificate, and repackaging the result into a bzImage. It only

[PATCH v6 1/4] KEYS: Insert incompressible bytes to reserve space in bzImage

2018-05-02 Thread Mehmet Kayaalp
Include a random filled binary in vmlinux at the space reserved with CONFIG_SYSTEM_EXTRA_CERTIFICATE. This results in an uncompressed reserved area inside the bzImage as well, so that it can be replaced with an actual certificate later (after the bzImage is distributed). The bzImage contains a str

[PATCH v6 4/4] KEYS: Print insert-sys-cert information to stdout instead of stderr

2018-05-02 Thread Mehmet Kayaalp
Detailed INFO output should go to stdout instead of stderr. Signed-off-by: Mehmet Kayaalp --- scripts/insert-sys-cert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/insert-sys-cert.c b/scripts/insert-sys-cert.c index a3bd7ea8a436..caa446fe91b8 100644 --- a/scripts/

Re: Hello

2018-05-02 Thread Rev.James Darlington.
Rev. Dr.James Darlington >From (UNITED NATIONS). http://www.un.org/sg The U.S.A Government World Bank I.M.F And United Nations Organization, this is to inform you of your long overdue Payment outstanding in our records. We saw your name in the Central Computer among list of unpaid inheritance clai

Re: [RFC PATCH] Add /proc//numa_vamaps for numa node information

2018-05-02 Thread prakash.sangappa
On 05/02/2018 03:28 PM, Dave Hansen wrote: On 05/02/2018 02:33 PM, Andrew Morton wrote: On Tue, 1 May 2018 22:58:06 -0700 Prakash Sangappa wrote: For analysis purpose it is useful to have numa node information corresponding mapped address ranges of the process. Currently /proc//numa_maps p

Re: [PATCH] sctp: fix a potential missing-check bug

2018-05-02 Thread Marcelo Ricardo Leitner
Hi Wenwen, On Wed, May 02, 2018 at 05:12:45PM -0500, Wenwen Wang wrote: > In sctp_setsockopt_maxseg(), the integer 'val' is compared against min_len > and max_len to check whether it is in the appropriate range. If it is not, > an error code -EINVAL will be returned. This is enforced by a security

Re: config option for SQUASHFS_CACHED_BLKS,

2018-05-02 Thread Daniel Walker
On 04/25/2018 01:34 PM, Daniel Walker wrote: Hi, We have found that we can attain a better boot time by increasing SQUASHFS_CACHED_BLKS from 8 to 11. We also noticed that you made a special config option for allow people to configure fragment cache size (i.e. SQUASHFS_FRAGMENT_CACHE_SIZE).

Re: [PATCH 2/2] arm64: Clear the stack

2018-05-02 Thread Kees Cook
On Wed, May 2, 2018 at 4:07 PM, Laura Abbott wrote: > On 05/02/2018 02:31 PM, Kees Cook wrote: >> struct stackleak { >> #ifdef CONFIG_GCC_PLUGIN_STACKLEAK >> unsigned long lowest; >> #ifdef CONFIG_STACKLEAK_METRICS >> unsigned long prev_lowest; >> #endif >> #end

[PATCH] drm/nouveau: Fix deadlock in nv50_mstm_register_connector()

2018-05-02 Thread Lyude Paul
Currently; we're grabbing all of the modesetting locks before adding MST connectors to fbdev. This isn't actually necessary, and causes a deadlock as well: == WARNING: possible circular locking dependency detected 4.17.0-rc3Lyude-Test+ #1 Tainted

Re: [RFC PATCH] Add /proc//numa_vamaps for numa node information

2018-05-02 Thread prakash.sangappa
On 05/02/2018 02:33 PM, Andrew Morton wrote: On Tue, 1 May 2018 22:58:06 -0700 Prakash Sangappa wrote: For analysis purpose it is useful to have numa node information corresponding mapped address ranges of the process. Currently /proc//numa_maps provides list of numa nodes from where pages

Re: [PATCH v2 RESEND 2/2] mm: ignore memory.min of abandoned memory cgroups

2018-05-02 Thread kbuild test robot
Hi Roman, Thank you for the patch! Yet something to improve: [auto build test ERROR on mmotm/master] [also build test ERROR on next-20180502] [cannot apply to v4.17-rc3] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https

Re: [PATCHv4 2/2] iommu/vt-d: Limit number of faults to clear in irq handler

2018-05-02 Thread Lu Baolu
Hi, On 05/02/2018 08:38 PM, Dmitry Safonov wrote: > Hi Lu, > > On Wed, 2018-05-02 at 14:34 +0800, Lu Baolu wrote: >> Hi, >> >> On 03/31/2018 08:33 AM, Dmitry Safonov wrote: >>> Theoretically, on some machines faults might be generated faster >>> than >>> they're cleared by CPU. >> Is this a real c

Re: [RESEND][PATCH] iommu/vt-d: fix shift-out-of-bounds in bug checking

2018-05-02 Thread Lu Baolu
Hi, On 04/28/2018 02:39 PM, changbin...@intel.com wrote: > From: Changbin Du > > It allows to flush more than 4GB of device TLBs. So the mask should be > 64bit wide. UBSAN captured this fault as below. > > [3.760024] > =

[PATCH] scsi: ufs: ufshcd: Remove VLA usage

2018-05-02 Thread Kees Cook
On the quest to remove all VLAs from the kernel[1] this moves buffers off the stack. In the second instance, this collapses two separately allocated buffers into a single buffer, since they are used consecutively, which saves 256 bytes (QUERY_DESC_MAX_SIZE + 1) of stack space. [1] https://lkml.ke

Re: [RFC][PATCH] memcg: Replace mm->owner with mm->memcg

2018-05-02 Thread Balbir Singh
On Tue, 01 May 2018 12:35:16 -0500 ebied...@xmission.com (Eric W. Biederman) wrote: > Recently it was reported that mm_update_next_owner could get into > cases where it was executing it's fallback for_each_process part of > the loop and thus taking up a lot of time. > > To deal with this replace

Re: [Ksummit-discuss] bug-introducing patches

2018-05-02 Thread Theodore Y. Ts'o
On Wed, May 02, 2018 at 10:41:56PM +0200, Geert Uytterhoeven wrote: > > Between v4.17-rc1 and v4.17-rc3, there are 660 non-merge commits, of which > - 245 carry a Fixes tag, > - 196 carry a CC stable, > - 395 contain the string "fix". > (non-mutually exclusive) > > That leaves us with 200 c

[PATCH] drivers: dma-buf: Change %p to %pK in debug messages

2018-05-02 Thread Daniel Rosenberg
The format specifier %p can leak kernel addresses while not valuing the kptr_restrict system settings. Use %pK instead of %p, which also evaluates whether kptr_restrict is set. Signed-off-by: Divya Ponnusamy Signed-off-by: Daniel Rosenberg Cc: stable --- drivers/dma-buf/sync_debug.c | 2 +- 1

Re: [PATCH v2 1/2] regulator: dt-bindings: add QCOM RPMh regulator bindings

2018-05-02 Thread David Collins
On 05/02/2018 09:37 AM, Doug Anderson wrote: > On Fri, Apr 13, 2018 at 7:50 PM, David Collins > wrote: >> +- vdd_l26-supply >> +- vdd_lvs1_lvs2-supply >> +- vdd_lvs1_lvs2-supply >> + Usage: optional (PM8998 only) >> + Value type: >> + Definition: phandle of the parent supp

Re: [v2 PATCH 1/1] tg3: fix meaningless hw_stats reading after tg3_halt memset 0 hw_stats

2018-05-02 Thread Zumeng Chen
On 2018年05月03日 01:32, Michael Chan wrote: On Wed, May 2, 2018 at 3:27 AM, Zumeng Chen wrote: On 2018年05月02日 13:12, Michael Chan wrote: On Tue, May 1, 2018 at 5:42 PM, Zumeng Chen wrote: diff --git a/drivers/net/ethernet/broadcom/tg3.h b/drivers/net/ethernet/broadcom/tg3.h index 3b5e98e..c61

Re: [Ksummit-discuss] bug-introducing patches

2018-05-02 Thread Guenter Roeck
On 05/02/2018 05:06 PM, Theodore Y. Ts'o wrote: On Wed, May 02, 2018 at 10:41:56PM +0200, Geert Uytterhoeven wrote: Between v4.17-rc1 and v4.17-rc3, there are 660 non-merge commits, of which - 245 carry a Fixes tag, - 196 carry a CC stable, - 395 contain the string "fix". (non-mutually

RE

2018-05-02 Thread Ken W
I wish to make a donation to you for charity purpose, Email back on kenwilla...@outlook.com for more details Ken W

Re: [PATCHv4 2/2] iommu/vt-d: Limit number of faults to clear in irq handler

2018-05-02 Thread Dmitry Safonov
On Thu, 2018-05-03 at 07:49 +0800, Lu Baolu wrote: > Hi, > > On 05/02/2018 08:38 PM, Dmitry Safonov wrote: > > Hi Lu, > > > > On Wed, 2018-05-02 at 14:34 +0800, Lu Baolu wrote: > > > Hi, > > > > > > On 03/31/2018 08:33 AM, Dmitry Safonov wrote: > > > > Theoretically, on some machines faults migh

Re: [PATCH] sctp: fix a potential missing-check bug

2018-05-02 Thread Wenwen Wang
Hi Marcelo, I guess I worked on an old version of the kernel. I will re-submit the patch. Sorry :( Wenwen On Wed, May 2, 2018 at 6:23 PM, Marcelo Ricardo Leitner wrote: > Hi Wenwen, > > On Wed, May 02, 2018 at 05:12:45PM -0500, Wenwen Wang wrote: >> In sctp_setsockopt_maxseg(), the integer 'val

Re: [PATCH v2 RESEND 2/2] mm: ignore memory.min of abandoned memory cgroups

2018-05-02 Thread kbuild test robot
Hi Roman, Thank you for the patch! Yet something to improve: [auto build test ERROR on mmotm/master] [also build test ERROR on next-20180502] [cannot apply to v4.17-rc3] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https

Re: [RFC v3 4/5] virtio_ring: add event idx support in packed ring

2018-05-02 Thread Tiwei Bie
On Wed, May 02, 2018 at 06:42:57PM +0300, Michael S. Tsirkin wrote: > On Wed, May 02, 2018 at 11:12:55PM +0800, Tiwei Bie wrote: > > On Wed, May 02, 2018 at 04:51:01PM +0300, Michael S. Tsirkin wrote: > > > On Wed, May 02, 2018 at 03:28:19PM +0800, Tiwei Bie wrote: > > > > On Wed, May 02, 2018 at 1

Re: [RFC PATCH for 4.18 00/14] Restartable Sequences

2018-05-02 Thread Steven Rostedt
On Wed, 02 May 2018 20:37:13 + Daniel Colascione wrote: > On Wed, May 2, 2018 at 1:23 PM Peter Zijlstra wrote: > > > On Wed, May 02, 2018 at 06:27:22PM +, Daniel Colascione wrote: > > > On Wed, May 2, 2018 at 10:22 AM Peter Zijlstra > wrote: > > > >> On Wed, May 02, 2018 at 03:53:4

[PATCH] sctp: fix a potential missing-check bug

2018-05-02 Thread Wenwen Wang
In sctp_setsockopt_maxseg(), the integer 'val' is compared against min_len and max_len to check whether it is in the appropriate range. If it is not, an error code -EINVAL will be returned. This is enforced by a security check. But, this check is only executed when 'val' is not 0. In fact, if 'val'

Re: [PATCH v2 4/5] kernel hacking: new config DEBUG_EXPERIENCE to apply GCC -Og optimization

2018-05-02 Thread Steven Rostedt
On Wed, 2 May 2018 13:45:58 -0700 Andrew Morton wrote: > On Wed, 2 May 2018 10:17:07 -0400 Steven Rostedt wrote: > > > > Comparison of vmlinux size: a bit smaller. > > > > > > w/o CONFIG_DEBUG_EXPERIENCE > > > > I hate the config name. > > > > I probably can't come up with better ones

Re: [PATCH 1/2] dt-bindings: add MediaTek XS-PHY binding

2018-05-02 Thread Chunfeng Yun
On Wed, 2018-05-02 at 07:41 -0500, Rob Herring wrote: > On Wed, May 2, 2018 at 2:04 AM, Chunfeng Yun > wrote: > > Hi Rob, > > On Tue, 2018-05-01 at 09:24 -0500, Rob Herring wrote: > >> On Wed, Apr 25, 2018 at 03:45:28PM +0800, Chunfeng Yun wrote: > >> > Add a DT binding documentation of XS-PHY fo

Re: [PATCH] sctp: fix a potential missing-check bug

2018-05-02 Thread Marcelo Ricardo Leitner
On Wed, May 02, 2018 at 08:15:45PM -0500, Wenwen Wang wrote: > In sctp_setsockopt_maxseg(), the integer 'val' is compared against min_len > and max_len to check whether it is in the appropriate range. If it is not, > an error code -EINVAL will be returned. This is enforced by a security > check. Bu

Re: [PATCH] sctp: fix a potential missing-check bug

2018-05-02 Thread Wenwen Wang
On Wed, May 2, 2018 at 8:24 PM, Marcelo Ricardo Leitner wrote: > On Wed, May 02, 2018 at 08:15:45PM -0500, Wenwen Wang wrote: >> In sctp_setsockopt_maxseg(), the integer 'val' is compared against min_len >> and max_len to check whether it is in the appropriate range. If it is not, >> an error code

Re: [PATCH v6 2/5] KVM: x86: Add IBPB support

2018-05-02 Thread Wanpeng Li
Hi Ashok, 2018-02-02 5:59 GMT+08:00 KarimAllah Ahmed : > From: Ashok Raj > > The Indirect Branch Predictor Barrier (IBPB) is an indirect branch > control mechanism. It keeps earlier branches from influencing > later ones. > > Unlike IBRS and STIBP, IBPB does not define a new mode of operation. > I

Re: [PATCHv4 2/2] iommu/vt-d: Limit number of faults to clear in irq handler

2018-05-02 Thread Lu Baolu
Hi, On 05/03/2018 08:52 AM, Dmitry Safonov wrote: > On Thu, 2018-05-03 at 07:49 +0800, Lu Baolu wrote: >> Hi, >> >> On 05/02/2018 08:38 PM, Dmitry Safonov wrote: >>> Hi Lu, >>> >>> On Wed, 2018-05-02 at 14:34 +0800, Lu Baolu wrote: Hi, On 03/31/2018 08:33 AM, Dmitry Safonov wrote: >

Applied "ASoC: Intel: bytcr_rt565: fix missing assignment to ret_val" to the asoc tree

2018-05-02 Thread Mark Brown
The patch ASoC: Intel: bytcr_rt565: fix missing assignment to ret_val 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 hour

Re: [J-core] [PATCH v5 00/22] sh: LANDISK and R2Dplus convert to device tree

2018-05-02 Thread Rich Felker
On Fri, Jan 05, 2018 at 04:28:57PM -0500, Rich Felker wrote: > On Fri, Nov 17, 2017 at 08:54:47PM +0100, John Paul Adrian Glaubitz wrote: > > On 11/17/2017 08:17 PM, Rich Felker wrote: > > > There were significant problems that I don't think were ever > > > addressed, including incompatible changes

Re: [PATCH v2] ASoC: da7219: read fmw property to get mclk for non-dts systems

2018-05-02 Thread Mark Brown
On Wed, May 02, 2018 at 10:13:55AM +, Adam Thomson wrote: > On 01 May 2018 21:50, Mark Brown wrote: > > There's a lot of things that ACPI *should* do but doesn't - it's a bit > > of a shambles how ACPI standards get defined and what's there is not > > really intended to handle systems like the

Re: [PATCH] evm: Don't update hmacs in user ns mounts

2018-05-02 Thread Mimi Zohar
On Wed, 2018-05-02 at 16:49 -0500, Eric W. Biederman wrote: > From: Seth Forshee > Date: Fri, 22 Dec 2017 15:32:35 +0100 > > The kernel should not calculate new hmacs for mounts done by > non-root users. Update evm_calc_hmac_or_hash() to refuse to > calculate new hmacs for mounts for non-init use

Re: [RFC v3 4/5] virtio_ring: add event idx support in packed ring

2018-05-02 Thread Michael S. Tsirkin
On Thu, May 03, 2018 at 09:11:16AM +0800, Tiwei Bie wrote: > On Wed, May 02, 2018 at 06:42:57PM +0300, Michael S. Tsirkin wrote: > > On Wed, May 02, 2018 at 11:12:55PM +0800, Tiwei Bie wrote: > > > On Wed, May 02, 2018 at 04:51:01PM +0300, Michael S. Tsirkin wrote: > > > > On Wed, May 02, 2018 at 0

Re: [PATCH] sctp: fix a potential missing-check bug

2018-05-02 Thread Marcelo Ricardo Leitner
On Wed, May 02, 2018 at 08:27:05PM -0500, Wenwen Wang wrote: > On Wed, May 2, 2018 at 8:24 PM, Marcelo Ricardo Leitner > wrote: > > On Wed, May 02, 2018 at 08:15:45PM -0500, Wenwen Wang wrote: > >> In sctp_setsockopt_maxseg(), the integer 'val' is compared against min_len > >> and max_len to check

Re: [PATCHv4 2/2] iommu/vt-d: Limit number of faults to clear in irq handler

2018-05-02 Thread Dmitry Safonov
On Thu, 2018-05-03 at 09:32 +0800, Lu Baolu wrote: > Hi, > > On 05/03/2018 08:52 AM, Dmitry Safonov wrote: > > AFAICS, we're doing fault-clearing in a loop inside irq handler. > > That means that while we're clearing if a fault raises, it'll make > > an irq level triggered (or on edge) on lapic. S

Re: [PATCH V4 1/8] dt-bindings: pwrap: mediatek: add MT6351 PMIC support for MT6797

2018-05-02 Thread Sean Wang
On Wed, 2018-05-02 at 17:21 +0800, argus@mediatek.com wrote: > From: Argus Lin > > We add MT6351 PMIC support for MT6797 SoCs. > > Signed-off-by: Argus Lin > --- > Documentation/devicetree/bindings/soc/mediatek/pwrap.txt | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentati

Re: [PATCH] KVM: arm/arm64: fix unaligned hva start and end in handle_hva_to_gpa

2018-05-02 Thread Jia He
Hi Marc Thanks for the review On 5/2/2018 10:26 PM, Marc Zyngier Wrote: [+ Suzuki] On 02/05/18 08:08, Jia He wrote: From: Jia He In our armv8a server (QDF2400), I noticed a WARN_ON as follows: [ 800.202850] WARNING: CPU: 33 PID: 255 at arch/arm64/kvm/../../../virt/kvm/arm/mmu.c:1670 kvm

<    4   5   6   7   8   9   10   11   >