[tip:perf/urgent] perf version: Print the compiled-in status of libraries

2018-04-03 Thread tip-bot for Jin Yao
Commit-ID: 9ff2a64708a642b3dee867d0a083171077663b0a Gitweb: https://git.kernel.org/tip/9ff2a64708a642b3dee867d0a083171077663b0a Author: Jin Yao AuthorDate: Fri, 30 Mar 2018 17:27:14 +0800 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 2

[tip:perf/urgent] perf hists: Move hists__scnprintf_title() away from the TUI code

2018-04-03 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 25c312dbf88ca402bf47389c5aa4f1552799a8ca Gitweb: https://git.kernel.org/tip/25c312dbf88ca402bf47389c5aa4f1552799a8ca Author: Arnaldo Carvalho de Melo AuthorDate: Mon, 2 Apr 2018 14:24:28 -0300 Committer: Arnaldo Carvalho de Melo CommitDate:

[REGRESSION][BISECTED] i.MX6 pinctrl hogs stopped working

2018-04-03 Thread Mika Penttilä
Hi! Reverting this made the hogs on a i.MX6 board work again. : commit b89405b6102fcc3746f43697b826028caa94c823 Author: Richard Fitzgerald Date: Wed Feb 28 15:53:06 2018 + pinctrl: devicetree: Fix dt_to_map_one_config handling of hogs --Mika

[tip:perf/urgent] perf hists: Introduce hists__scnprint_title()

2018-04-03 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 967a464a7e6d939f0b0dbb4ee41bd3d515fa9a6d Gitweb: https://git.kernel.org/tip/967a464a7e6d939f0b0dbb4ee41bd3d515fa9a6d Author: Arnaldo Carvalho de Melo AuthorDate: Mon, 2 Apr 2018 14:20:20 -0300 Committer: Arnaldo Carvalho de Melo CommitDate:

[tip:perf/urgent] perf hists browser: Rename perf_evsel_browser_title to a more descriptive name

2018-04-03 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: f016d24acd95660ca264e0424c8037391d165553 Gitweb: https://git.kernel.org/tip/f016d24acd95660ca264e0424c8037391d165553 Author: Arnaldo Carvalho de Melo AuthorDate: Mon, 2 Apr 2018 14:00:04 -0300 Committer: Arnaldo Carvalho de Melo CommitDate:

[tip:perf/urgent] perf version: Add man page

2018-04-03 Thread tip-bot for Jin Yao
Commit-ID: 709846725673a944ee38da1c275a6dfbf0576d0f Gitweb: https://git.kernel.org/tip/709846725673a944ee38da1c275a6dfbf0576d0f Author: Jin Yao AuthorDate: Fri, 30 Mar 2018 17:27:16 +0800 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 2

[tip:perf/urgent] perf tools: Add 'perf -vv' as an alias to 'perf version --build-options'

2018-04-03 Thread tip-bot for Jin Yao
Commit-ID: 3aa94b10ab0a818ed9fa2dc06c40812c136f9a5a Gitweb: https://git.kernel.org/tip/3aa94b10ab0a818ed9fa2dc06c40812c136f9a5a Author: Jin Yao AuthorDate: Fri, 30 Mar 2018 17:27:15 +0800 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 2

[tip:perf/urgent] perf annotate browser: Show extra title line with event information

2018-04-03 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 6920e2854e9a16226ca57199d48fd6b68819f6d5 Gitweb: https://git.kernel.org/tip/6920e2854e9a16226ca57199d48fd6b68819f6d5 Author: Arnaldo Carvalho de Melo AuthorDate: Mon, 2 Apr 2018 16:18:45 -0300 Committer: Arnaldo Carvalho de Melo CommitDate:

[tip:perf/urgent] perf ui browser: Move the extra title lines from the hists browser

2018-04-03 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: ef9ff6017e3c4593f3efa5776784cb417c58ad6c Gitweb: https://git.kernel.org/tip/ef9ff6017e3c4593f3efa5776784cb417c58ad6c Author: Arnaldo Carvalho de Melo AuthorDate: Mon, 2 Apr 2018 15:48:18 -0300 Committer: Arnaldo Carvalho de Melo CommitDate:

[tip:perf/urgent] perf annotate: Introduce annotation__scnprintf_samples_period() method

2018-04-03 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: b213eac245aa2d29a3b9dd90f3b96ab182337ee8 Gitweb: https://git.kernel.org/tip/b213eac245aa2d29a3b9dd90f3b96ab182337ee8 Author: Arnaldo Carvalho de Melo AuthorDate: Tue, 3 Apr 2018 15:19:47 -0300 Committer: Arnaldo Carvalho de Melo CommitDate:

Re: [RFC] prctl: Deprecate non PR_SET_MM_MAP operations

2018-04-03 Thread Michal Hocko
On Tue 03-04-18 16:15:20, Yang Shi wrote: > > > On 4/3/18 3:37 PM, Cyrill Gorcunov wrote: > > An ability to manipulate mm_struct fields was introduced in > > sake of CRIU in first place. Later we provide more suitable > > and safe operation PR_SET_MM_MAP where all fields to be modifed > > are

[tip:perf/urgent] perf annotate stdio2: Print more descriptive event information header

2018-04-03 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 520d3f01ea5322edeedff4bb25a0aff07ad72d43 Gitweb: https://git.kernel.org/tip/520d3f01ea5322edeedff4bb25a0aff07ad72d43 Author: Arnaldo Carvalho de Melo AuthorDate: Mon, 2 Apr 2018 16:42:01 -0300 Committer: Arnaldo Carvalho de Melo CommitDate:

Re: Multiple generic PHY instances for DWC3 USB IP

2018-04-03 Thread Felipe Balbi
Hi, Masahiro Yamada writes: > Currently, DWC3 core IP (drivers/usb/dwc3/core.c) > can take only one PHY phandle for each of SS, HS. > (phy-names DT property is "usb2-phy" and "usb3-phy" for each) We never had any other requirements :-) > The DWC3 core IP is

[tip:perf/urgent] perf trace: Remove redundant ')'

2018-04-03 Thread tip-bot for Changbin Du
Commit-ID: 51125a29a395048fdb3429b8c4ca0ada57097744 Gitweb: https://git.kernel.org/tip/51125a29a395048fdb3429b8c4ca0ada57097744 Author: Changbin Du AuthorDate: Tue, 13 Mar 2018 18:40:01 +0800 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 3

tools include: define READ_ONCE/WRITE_ONCE for C++

2018-04-03 Thread Sandipan Das
From: Li Zhijian since 6aa7de0, we failed to build perf with C++(clang) to fix the following compile errors -- lizhijian@haswell-OptiPlex-9020:~/lkp/linux/tools/perf$ make LLVM_CONFIG=/usr/bin/llvm-config-3.9 LIBCLANGLLVM=1 ... CC

Re: [PATCH] dmaengine: rcar-dmac: Fix too early/late system suspend/resume callbacks

2018-04-03 Thread Vinod Koul
On Thu, Mar 29, 2018 at 06:53:32PM +0200, Geert Uytterhoeven wrote: > If serial console wake-up is enabled ("echo enabled > > /sys/.../ttySC0/power/wakeup"), and any serial input is received while > the system is suspended, serial port input no longer works after system > resume. > > Note that: >

Re: [PATCH 1/1] dmaengine:jz4740:fix memory leak

2018-04-03 Thread Vinod Koul
On Wed, Apr 04, 2018 at 11:21:58AM +0800, Xidong Wang wrote: > In function jz4740_dma_probe(), the memory allocated by > clk_get() is not released on the error path that ret, which holds > the return value of dma_async_device_register(), is not NULL. > This will result in a memory leak bug. I

Re: Multiple generic PHY instances for DWC3 USB IP

2018-04-03 Thread Masahiro Yamada
2018-04-04 14:36 GMT+09:00 Felipe Balbi : > > Hi, > > Masahiro Yamada writes: >> Currently, DWC3 core IP (drivers/usb/dwc3/core.c) >> can take only one PHY phandle for each of SS, HS. >> (phy-names DT property is "usb2-phy" and

Re: [PATCH v9 15/24] mm: Introduce __vm_normal_page()

2018-04-03 Thread David Rientjes
On Tue, 3 Apr 2018, Jerome Glisse wrote: > > When dealing with the speculative fault path we should use the VMA's field > > cached value stored in the vm_fault structure. > > > > Currently vm_normal_page() is using the pointer to the VMA to fetch the > > vm_flags value. This patch provides a new

Re: Sony Vaio VGN-CS31S touch sensor buttons breaking touchpad

2018-04-03 Thread Ondrej Zary
On Monday 02 April 2018 22:39:59 Ondrej Zary wrote: > On Sunday 01 April 2018 23:21:55 Ondrej Zary wrote: > > Hello, > > I got a Sony Vaio VGN-CS31S laptop with Synaptics touchpad that exhibits > > weird behavior. It seems to work until I touch the "Touch Sensor Buttons" > > bar above the keyboard

Re: [PATCH 4.4 51/97] mfd: palmas: Reset the POWERHOLD mux during power off

2018-04-03 Thread Ben Hutchings
On Fri, 2018-03-23 at 10:54 +0100, Greg Kroah-Hartman wrote: > 4.4-stable review patch.  If anyone has any objections, please let me know. > > -- > > From: Keerthy > > > [ Upstream commit 85fdaf8eb9bbec1f0f8a52fd5d85659d60738816 ] > > POWERHOLD signal has higher priority  

Re: [RFC PATCH 1/1] vmscan: Support multiple kswapd threads per node

2018-04-03 Thread Buddy Lumpkin
> On Apr 3, 2018, at 12:07 PM, Matthew Wilcox wrote: > > On Tue, Apr 03, 2018 at 03:31:15PM +0200, Michal Hocko wrote: >> On Mon 02-04-18 09:24:22, Buddy Lumpkin wrote: >>> The presence of direct reclaims 10 years ago was a fairly reliable >>> indicator that too much was being asked of a Linux

Re: [GIT PULL] Kernel lockdown for secure boot

2018-04-03 Thread Linus Torvalds
On Tue, Apr 3, 2018 at 9:29 AM, Matthew Garrett wrote: > On Tue, Apr 3, 2018 at 8:11 AM Andy Lutomirski wrote: >> Can you explain that much more clearly? I'm asking why booting via >> UEFI Secure Boot should enable lockdown, and I don't see what this has >> to do with kexec. And "someone

Re: [GIT PULL] Kernel lockdown for secure boot

2018-04-03 Thread Matthew Garrett
On Tue, Apr 3, 2018 at 1:53 PM Linus Torvalds wrote: > On Tue, Apr 3, 2018 at 9:29 AM, Matthew Garrett wrote: > > On Tue, Apr 3, 2018 at 8:11 AM Andy Lutomirski wrote: > >> Can you explain that much more clearly? I'm asking why booting via > >> UEFI Secure Boot should enable lockdown, and I

Re: [PATCH 2/2] kfree_rcu() should use kfree_bulk() interface

2018-04-03 Thread Matthew Wilcox
On Tue, Apr 03, 2018 at 10:22:53AM -0700, rao.sho...@oracle.com wrote: > +++ b/mm/slab.h > @@ -80,6 +80,29 @@ extern const struct kmalloc_info_struct { > unsigned long size; > } kmalloc_info[]; > > +#define RCU_MAX_ACCUMULATE_SIZE 25 > + > +struct rcu_bulk_free_container { > +

Re: [PATCH 5/5] MIPS: perf: Fold vpe_id() macro into it's one last usage

2018-04-03 Thread kbuild test robot
Hi Matt, Thank you for the patch! Yet something to improve: [auto build test ERROR on tip/perf/core] [also build test ERROR on v4.16 next-20180403] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

[PATCH v2 char-misc 1/1] x86/hyperv: Add interrupt handler annotations

2018-04-03 Thread mhkelley58
From: Michael Kelley Add standard interrupt handler annotations to hyperv_vector_handler(). Signed-off-by: Michael Kelley --- Changes in v2: * Fixed From: line --- arch/x86/kernel/cpu/mshyperv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/mshyperv.c

Re: [PATCH 4.4 52/97] mtip32xx: use runtime tag to initialize command header

2018-04-03 Thread Ben Hutchings
On Fri, 2018-03-23 at 10:54 +0100, Greg Kroah-Hartman wrote: > 4.4-stable review patch.  If anyone has any objections, please let me know. > > -- > > From: Ming Lei > > > [ Upstream commit a4e84aae8139aca9fbfbced1f45c51ca81b57488 ] > > mtip32xx supposes that 'request_idx'

[PATCH v2] cifs: smb2pdu: Fix potential NULL pointer dereference

2018-04-03 Thread Gustavo A. R. Silva
tcon->ses is being dereferenced before it is null checked, hence there is a potential null pointer dereference. Fix this by moving the pointer dereference after tcon->ses has been properly null checked. Addresses-Coverity-ID: 1467426 ("Dereference before null check") Fixes: 93012bf98416 ("cifs:

Re: [GIT PULL] Kernel lockdown for secure boot

2018-04-03 Thread Linus Torvalds
On Tue, Apr 3, 2018 at 1:54 PM, Matthew Garrett wrote: > >> .. maybe you don't *want* secure boot, but it's been pushed in your >> face by people with an agenda? > > Then turn it off, or build a self-signed kernel that doesn't do this? Umm. So you asked a question, and then when you got an

Re: [PATCH] cifs: cifssmb: Fix potential NULL pointer dereference

2018-04-03 Thread Gustavo A. R. Silva
Hi, I noticed the subject was incorrect. Drop this patch, please. I just sent v2. Thanks -- Gustavo On 04/03/2018 03:55 PM, Gustavo A. R. Silva wrote: tcon->ses is being dereferenced before it is null checked, hence there is a potential null pointer dereference. Fix this by moving the

Re: [PATCH v9 06/24] mm: make pte_unmap_same compatible with SPF

2018-04-03 Thread Jerome Glisse
On Tue, Apr 03, 2018 at 01:40:18PM -0700, David Rientjes wrote: > On Tue, 3 Apr 2018, Jerome Glisse wrote: > > > > diff --git a/mm/memory.c b/mm/memory.c > > > index 21b1212a0892..4bc7b0bdcb40 100644 > > > --- a/mm/memory.c > > > +++ b/mm/memory.c > > > @@ -2309,21 +2309,29 @@ static bool

Re: [PATCH v4 2/2] media: ov2680: Add Omnivision OV2680 sensor driver

2018-04-03 Thread kbuild test robot
Hi Rui, I love your patch! Yet something to improve: [auto build test ERROR on v4.16] [cannot apply to linuxtv-media/master next-20180403] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Rui

Re: [RFC][PATCH] tracing, printk: Force no hashing when trace_printk() is used

2018-04-03 Thread Steven Rostedt
On Tue, 3 Apr 2018 13:07:58 -0700 Kees Cook wrote: > On Tue, Apr 3, 2018 at 12:41 PM, Steven Rostedt wrote: > > Both trace_debug is set and kptr_restrict is set to zero in the same > > code that produces the above banner. This will allow trace_printk() to > > not be affected by security code,

Re: [GIT PULL] Kernel lockdown for secure boot

2018-04-03 Thread Matthew Garrett
On Tue, Apr 3, 2018 at 2:01 PM Linus Torvalds wrote: > On Tue, Apr 3, 2018 at 1:54 PM, Matthew Garrett wrote: > > > >> .. maybe you don't *want* secure boot, but it's been pushed in your > >> face by people with an agenda? > > > > Then turn it off, or build a self-signed kernel that doesn't do

[PATCH] lib: logic_pio: Fix potential NULL pointer dereference

2018-04-03 Thread Gustavo A. R. Silva
new_range is being dereferenced before it is null checked, hence there is a potential null pointer dereference. Fix this by moving the pointer dereference after new_range has been properly null checked. Addresses-Coverity-ID: 1466163 ("Dereference before null check") Fixes: 0a7198426259 ("lib:

[PATCH v4] x86,sched: allow topologies where NUMA nodes share an LLC

2018-04-03 Thread Alison Schofield
From: Alison Schofield Intel's Skylake Server CPUs have a different LLC topology than previous generations. When in Sub-NUMA-Clustering (SNC) mode, the package is divided into two "slices", each containing half the cores, half the LLC, and one memory controller and each slice is enumerated to

Re: [RFC PATCH 1/1] vmscan: Support multiple kswapd threads per node

2018-04-03 Thread Matthew Wilcox
On Tue, Apr 03, 2018 at 01:49:25PM -0700, Buddy Lumpkin wrote: > > Yes, very much this. If you have a single-threaded workload which is > > using the entirety of memory and would like to use even more, then it > > makes sense to use as many CPUs as necessary getting memory out of its > > way. If

[PATCH] lib: logic_pio: Fix potential NULL pointer dereference

2018-04-03 Thread Gustavo A. R. Silva
new_range is being dereferenced before it is null checked, hence there is a potential null pointer dereference. Fix this by moving the pointer dereference after new_range has been properly null checked. Addresses-Coverity-ID: 1466163 ("Dereference before null check") Fixes: 0a7198426259 ("lib:

[GIT PULL] Audit patches for v4.17

2018-04-03 Thread Paul Moore
available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit.git tags/audit-pr- 20180403 for you to fetch changes up to ea841bafda3f7f9aa8b06a09f0f3e41c207af84f: audit: add refused symlink to audit_names (2018-03-21 11:3

[PATCH 4/5] media: docs: selection: improve formatting

2018-04-03 Thread Luca Ceresoli
Split section "Comparison with old cropping API" in paragraphs for easier reading and improve visible links text. Cc: Hans Verkuil Signed-off-by: Luca Ceresoli --- .../media/uapi/v4l/selection-api-vs-crop-api.rst | 55 -- 1 file changed, 29 insertions(+), 26 deletions(-)

[PATCH 2/5] media: docs: clarify relationship between crop and selection APIs

2018-04-03 Thread Luca Ceresoli
Having two somewhat similar and largely overlapping APIs is confusing, especially since the older one appears in the docs before the newer and most featureful counterpart. Clarify all of this in several ways: - swap the two sections - give a name to the two APIs in the section names - add a

[PATCH 1/5] media: docs: selection: fix typos

2018-04-03 Thread Luca Ceresoli
Cc: Hans Verkuil Signed-off-by: Luca Ceresoli --- Documentation/media/uapi/v4l/selection-api-004.rst | 2 +- Documentation/media/uapi/v4l/selection.svg | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/media/uapi/v4l/selection-api-004.rst

[PATCH 5/5] media: docs: selection: fix misleading sentence about the CROP API

2018-04-03 Thread Luca Ceresoli
The API limitation described here is about the CROP API, not about the entire V4L2. Cc: Hans Verkuil Signed-off-by: Luca Ceresoli --- Documentation/media/uapi/v4l/selection-api-vs-crop-api.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 3/5] media: docs: selection: rename files to something meaningful

2018-04-03 Thread Luca Ceresoli
These files have an automatically-generated numbering. Replaname them to something that suggests their meaning. Reported-by: Hans Verkuil Cc: Hans Verkuil Signed-off-by: Luca Ceresoli --- .../{selection-api-004.rst => selection-api-configuration.rst} | 0 .../v4l/{selection-api-006.rst =>

Re: [PATCH 1/1] checkpatch: allow space between colon and bracket

2018-04-03 Thread Joe Perches
On Tue, 2018-04-03 at 21:16 +0200, Heinrich Schuchardt wrote: > Allow a space between a colon and subsequent opening bracket. > This sequence may occur in inline assembler statements like > > asm( > "ldr %[out], [%[in]]\n\t" > : [out] "=r" (ret) > :

Re: [GIT PULL] Kernel lockdown for secure boot

2018-04-03 Thread Al Viro
On Tue, Apr 03, 2018 at 09:08:54PM +, Matthew Garrett wrote: > > The fact is, some hardware pushes secure boot pretty hard. That has > > *nothing* to do with some "lockdown" mode. > > Secure Boot ensures that the firmware will only load signed bootloaders. If > a signed bootloader loads a

[PATCH] cifs: cifssmb: Fix potential NULL pointer dereference

2018-04-03 Thread Gustavo A. R. Silva
tcon->ses is being dereferenced before it is null checked, hence there is a potential null pointer dereference. Fix this by moving the pointer dereference after tcon->ses has been properly null checked. Addresses-Coverity-ID: 1467426 ("Dereference before null check") Fixes: 93012bf98416 ("cifs:

Re: [GIT PULL] Kernel lockdown for secure boot

2018-04-03 Thread Linus Torvalds
On Tue, Apr 3, 2018 at 2:08 PM, Matthew Garrett wrote: > > Secure Boot ensures that the firmware will only load signed bootloaders. If > a signed bootloader loads a kernel that's effectively an unsigned > bootloader, there's no point in using Secure Boot Bullshit. I may want to know that I'm

[PATCH] net: thunderx: nicvf_main: Fix potential NULL pointer dereference

2018-04-03 Thread Gustavo A. R. Silva
Add null check on kmalloc() return value in order to prevent a null pointer dereference. Addresses-Coverity-ID: 1467429 ("Dereference null return value") Fixes: 37c3347eb247 ("net: thunderx: add ndo_set_rx_mode callback implementation for VF") Signed-off-by: Gustavo A. R. Silva ---

[PATCH v2] tracing, printk: Force no hashing when trace_printk() is used

2018-04-03 Thread Steven Rostedt
From: Steven Rostedt (VMware) While debugging an issue I needed to see if the pointers were being processed correctly with trace_printk() and after using "%p" and triggering my bug and trace output, I was disappointed that all my pointers were random garbage and didn't produce anything useful

Re: [PATCH 4.4 63/97] md/raid10: skip spare disk as first disk

2018-04-03 Thread Ben Hutchings
On Fri, 2018-03-23 at 10:54 +0100, Greg Kroah-Hartman wrote: > 4.4-stable review patch.  If anyone has any objections, please let me know. > > -- > > From: Shaohua Li > > > [ Upstream commit b506335e5d2b4ec687dde392a3bdbf7601778f1d ] > > Commit 6f287ca(md/raid10: reset the

Re: [GIT PULL] Kernel lockdown for secure boot

2018-04-03 Thread Matthew Garrett
On Tue, Apr 3, 2018 at 2:26 PM Linus Torvalds wrote: > On Tue, Apr 3, 2018 at 2:08 PM, Matthew Garrett wrote: > > > > Secure Boot ensures that the firmware will only load signed bootloaders. If > > a signed bootloader loads a kernel that's effectively an unsigned > > bootloader, there's no

Re: [GIT PULL] Kernel lockdown for secure boot

2018-04-03 Thread Matthew Garrett
On Tue, Apr 3, 2018 at 2:21 PM Al Viro wrote: > On Tue, Apr 03, 2018 at 09:08:54PM +, Matthew Garrett wrote: > > If you don't want Secure Boot, turn it off. If you want Secure Boot, use a > > kernel that behaves in a way that actually increases your security. > That assumes you *can* turn

Re: [v3] crypto: ctr - avoid VLA use

2018-04-03 Thread Laura Abbott
On 03/30/2018 01:53 AM, Salvatore Mesoraca wrote: All ciphers implemented in Linux have a block size less than or equal to 16 bytes and the most demanding hw require 16 bytes alignment for the block buffer. We avoid 2 VLAs[1] by always allocating 16 bytes with 16 bytes alignment, unless the

Re: [RESEND PATCH V4] pidns: introduce syscall translate_pid

2018-04-03 Thread Andrew Morton
On Mon, 2 Apr 2018 15:57:29 -0600 nagarathnam.muthus...@oracle.com wrote: > pid_t translate_pid(pid_t pid, int source, int target); > > This syscall converts pid from source pid-ns into pid in target pid-ns. > If pid is unreachable from target pid-ns it returns zero. > > Pid-namespaces are

Re: [PATCH 4.4 68/97] net: hns: fix ethtool_get_strings overflow in hns driver

2018-04-03 Thread Ben Hutchings
On Fri, 2018-03-23 at 10:54 +0100, Greg Kroah-Hartman wrote: > 4.4-stable review patch.  If anyone has any objections, please let me know. > > -- > > From: Timmy Li > > > [ Upstream commit 412b65d15a7f8a93794653968308fc100f2aa87c ] [...] This is not a correct fix; please also

Re: [PATCH v2 1/3] locking: Document the semantics of spin_is_locked()

2018-04-03 Thread David Howells
Alan Stern wrote: > + * Returns: 1 if @lock is locked, 0 otherwise. > + * However, on !CONFIG_SMP builds with !CONFIG_DEBUG_SPINLOCK, > + * the return value is always 0 (see include/linux/spinlock_up.h). > + * Therefore you should not rely heavily on the return value. Seems reasonable. It

Re: [PATCH v2] tracing, printk: Force no hashing when trace_printk() is used

2018-04-03 Thread Kees Cook
On Tue, Apr 3, 2018 at 2:31 PM, Steven Rostedt wrote: > From: Steven Rostedt (VMware) > > While debugging an issue I needed to see if the pointers were being > processed correctly with trace_printk() and after using "%p" and > triggering my bug and trace output, I was disappointed that all my >

Re: [RFC][PATCH] tracing, printk: Force no hashing when trace_printk() is used

2018-04-03 Thread Tobin C. Harding
On Tue, Apr 03, 2018 at 05:06:12PM -0400, Steven Rostedt wrote: > On Tue, 3 Apr 2018 13:07:58 -0700 > Kees Cook wrote: > > > On Tue, Apr 3, 2018 at 12:41 PM, Steven Rostedt wrote: > > > Both trace_debug is set and kptr_restrict is set to zero in the same > > > code that produces the above

Re: [PATCH 4.4 70/97] rtc: ds1374: wdt: Fix issue with timeout scaling from secs to wdt ticks

2018-04-03 Thread Ben Hutchings
On Fri, 2018-03-23 at 10:54 +0100, Greg Kroah-Hartman wrote: > 4.4-stable review patch.  If anyone has any objections, please let me know. > > -- > > From: Moritz Fischer > > > [ Upstream commit 453d0744f6c6ca3f9749b8c57c2e85b5b9f52514 ] > > The issue is that the internal

[crypto-chtls] Supicious code in chtls_io

2018-04-03 Thread Gustavo A. R. Silva
Hi all, While doing some static analysis I came across the following piece of code at drivers/crypto/chelsio/chtls/chtls_io.c:1203: 1203 if (!size) 1204 break; 1205 1206 if (unlikely(ULP_SKB_CB(skb)->flags & ULPCB_FLAG_NO_APPEND)) 1207

Re: [PATCH] net: thunderx: nicvf_main: Fix potential NULL pointer dereference

2018-04-03 Thread Eric Dumazet
On 04/03/2018 02:29 PM, Gustavo A. R. Silva wrote: > Add null check on kmalloc() return value in order to prevent > a null pointer dereference. > > Addresses-Coverity-ID: 1467429 ("Dereference null return value") > Fixes: 37c3347eb247 ("net: thunderx: add ndo_set_rx_mode callback >

Re: [PATCH v2 1/3] locking: Document the semantics of spin_is_locked()

2018-04-03 Thread Randy Dunlap
On 04/03/2018 02:43 PM, David Howells wrote: > Alan Stern wrote: > >> + * Returns: 1 if @lock is locked, 0 otherwise. >> + * However, on !CONFIG_SMP builds with !CONFIG_DEBUG_SPINLOCK, >> + * the return value is always 0 (see include/linux/spinlock_up.h). >> + * Therefore you should not rely

Re: [GIT PULL] Kernel lockdown for secure boot

2018-04-03 Thread James Morris
On Tue, 3 Apr 2018, Ard Biesheuvel wrote: > [snip] Thanks for the input -- there are obviously still issues to be resolved. I'll now not be pushing these to Linus for v4.17. -- James Morris

Re: [RESEND PATCH V4] pidns: introduce syscall translate_pid

2018-04-03 Thread Nagarathnam Muthusamy
On 04/03/2018 02:38 PM, Andrew Morton wrote: On Mon, 2 Apr 2018 15:57:29 -0600 nagarathnam.muthus...@oracle.com wrote: pid_t translate_pid(pid_t pid, int source, int target); This syscall converts pid from source pid-ns into pid in target pid-ns. If pid is unreachable from target pid-ns it

Re: [GIT PULL] Kernel lockdown for secure boot

2018-04-03 Thread Andy Lutomirski
On Tue, Apr 3, 2018 at 12:29 PM, Matthew Garrett wrote: > On Tue, Apr 3, 2018 at 9:46 AM Andy Lutomirski wrote: >> On Tue, Apr 3, 2018 at 9:29 AM, Matthew Garrett wrote: >> > A kernel that allows users arbitrary access to ring 0 is just an >> > overfeatured bootloader. Why would you want secure

Re: [RESEND PATCH V4] pidns: introduce syscall translate_pid

2018-04-03 Thread Andrew Morton
On Tue, 3 Apr 2018 14:45:28 -0700 Nagarathnam Muthusamy wrote: > > This changelog doesn't explain what the value is to our users. I > > assume it is a performance optimization because "backward translation > > requires scanning all tasks"? If so, please show us real-world > > examples of the

Re: [PATCH] net: thunderx: nicvf_main: Fix potential NULL pointer dereference

2018-04-03 Thread Gustavo A. R. Silva
On 04/03/2018 04:47 PM, Eric Dumazet wrote: On 04/03/2018 02:29 PM, Gustavo A. R. Silva wrote: Add null check on kmalloc() return value in order to prevent a null pointer dereference. Addresses-Coverity-ID: 1467429 ("Dereference null return value") Fixes: 37c3347eb247 ("net: thunderx: add

Re: [RESEND PATCH V4] pidns: introduce syscall translate_pid

2018-04-03 Thread Nagarathnam Muthusamy
On 04/03/2018 02:52 PM, Andrew Morton wrote: On Tue, 3 Apr 2018 14:45:28 -0700 Nagarathnam Muthusamy wrote: This changelog doesn't explain what the value is to our users. I assume it is a performance optimization because "backward translation requires scanning all tasks"? If so, please

Re: [PATCH v9 04/24] mm: Prepare for FAULT_FLAG_SPECULATIVE

2018-04-03 Thread David Rientjes
On Wed, 28 Mar 2018, Laurent Dufour wrote: > >> diff --git a/include/linux/mm.h b/include/linux/mm.h > >> index 4d02524a7998..2f3e98edc94a 100644 > >> --- a/include/linux/mm.h > >> +++ b/include/linux/mm.h > >> @@ -300,6 +300,7 @@ extern pgprot_t protection_map[16]; > >> #define FAULT_FLAG_USER

Re: [GIT PULL] x86/build changes for v4.17

2018-04-03 Thread Nick Desaulniers
Speaking more with our internal LLVM teams, there ARE a few different approaches to implementing asm-goto in LLVM proposed, by external parties to Google. These proposals haven't progressed to code review, so we've asked our LLVM teams to reignite these discussions with increased priority, if not

Re: [GIT PULL] Kernel lockdown for secure boot

2018-04-03 Thread Andy Lutomirski
On Tue, Apr 3, 2018 at 12:49 PM, David Howells wrote: > Andy Lutomirski wrote: > >> >>> A kernel that allows users arbitrary access to ring 0 is just an >> >>> overfeatured bootloader. Why would you want secure boot in that case? >> >> >> >> To get a chain of trust. >> > >> > You don't have a

[RFC PATCH] mm: use rbtree for page-wait

2018-04-03 Thread Sebastian Andrzej Siewior
I noticed commit 2554db916586 ("sched/wait: Break up long wake list walk") in which it is claimed that |We saw page wait list that are up to 3700+ entries long in tests of |large 4 and 8 socket systems. Here is another approach: instead of a waitlist a rbtree is used. The tree is ordered by page

Re: [PATCH v2] tracing, printk: Force no hashing when trace_printk() is used

2018-04-03 Thread Steven Rostedt
On Tue, 3 Apr 2018 14:43:43 -0700 Kees Cook wrote: > > A static_key is added called "trace_debug" and if it is set, then %p will > > not be hashed. > > Hrm, well, using a static key does make it weirder for an attacker to enable. > :) Not just weirder, much more difficult. static_keys are

[PATCH v2] net: thunderx: nicvf_main: Fix potential NULL pointer dereferences

2018-04-03 Thread Gustavo A. R. Silva
Add null check on kmalloc() return value in order to prevent a null pointer dereference. Addresses-Coverity-ID: 1467429 ("Dereference null return value") Fixes: 37c3347eb247 ("net: thunderx: add ndo_set_rx_mode callback implementation for VF") Signed-off-by: Gustavo A. R. Silva --- Changes in

[RFC PATCH] packet: mark ring entry as in-use inside spin_lock to prevent RX ring overrun

2018-04-03 Thread Jon Rosen
Fix PACKET_RX_RING bug for versions TPACKET_V1 and TPACKET_V2 which casues the ring to get corrupted by allowing multiple kernel threads to claim ownership of the same ring entry, Mark the ring entry as already being used within the spin_lock to prevent other kernel threads from reusing the same

Re: call/normal switch was Re: omap4-droid4: voice call support was

2018-04-03 Thread Pavel Machek
Hi! > > If you had a register dump from android with mics working, preferably > > not in speaker mode, perhaps I could try to figure it out? > > OK here are four diffs against starting the phone app for regular > call, speaker call, and muted versions of them: > >

Re: [RFC PATCH 2/3] drm: bridge: panel: allow override of the bus format

2018-04-03 Thread Laurent Pinchart
Hi Jacopo, On Tuesday, 27 March 2018 11:16:01 EEST jacopo mondi wrote: > On Mon, Mar 26, 2018 at 10:03:31PM +0300, Laurent Pinchart wrote: > > On Sunday, 25 March 2018 15:01:11 EEST Peter Rosin wrote: > >> On 2018-03-20 14:56, Laurent Pinchart wrote: > >>> On Sunday, 18 March 2018 00:15:24 EET

[PATCH v2] lan78xx: Connect phy early

2018-04-03 Thread Alexander Graf
When using wicked with a lan78xx device attached to the system, we end up with ethtool commands issued on the device before an ifup got issued. That lead to the following crash: Unable to handle kernel NULL pointer dereference at virtual address 039c pgd = 800035b3

Re: [PATCH v2 1/5] dt-bindings: display: bridge: lvds-transmitter: add ti,ds90c185

2018-04-03 Thread Laurent Pinchart
Hi Peter, Thank you for the patch. On Tuesday, 27 March 2018 00:24:43 EEST Peter Rosin wrote: > Start list of actual chips compatible with "lvds-encoder". > > Signed-off-by: Peter Rosin Reviewed-by: Laurent Pinchart > --- > .../devicetree/bindings/display/bridge/lvds-transmitter.txt

Re: [PATCH v2 0/5] allow override of bus format in bridges

2018-04-03 Thread Laurent Pinchart
Hi again, On Wednesday, 4 April 2018 01:28:29 EEST Laurent Pinchart wrote: > On Wednesday, 28 March 2018 10:08:26 EEST Daniel Vetter wrote: > > On Mon, Mar 26, 2018 at 11:24:42PM +0200, Peter Rosin wrote: > > > Hi! > > > > > > [I got to v2 sooner than expected] > > > > > > I have an Atmel

Re: [PATCH] mm/migrate: properly preserve write attribute in special migrate entry

2018-04-03 Thread Andrew Morton
On Sun, 1 Apr 2018 22:35:06 -0400 jgli...@redhat.com wrote: > From: Ralph Campbell > > Use of pte_write(pte) is only valid for present pte, the common code > which set the migration entry can be reach for both valid present > pte and special swap entry (for device memory). Fix the code to use

Re: [GIT PULL] Kernel lockdown for secure boot

2018-04-03 Thread David Howells
Andy Lutomirski wrote: > > If the user can arbitrarily modify the running kernel image, you cannot > > trust anything. You cannot determine the trustworthiness of something > > because your basis for determining that trust can be compromised. > > I'm having a very, very hard time coming up

Re: [PATCH v2 2/2] io: prevent compiler reordering on the default readX() implementation

2018-04-03 Thread Palmer Dabbelt
On Tue, 03 Apr 2018 05:56:18 PDT (-0700), Arnd Bergmann wrote: On Tue, Apr 3, 2018 at 2:44 PM, Sinan Kaya wrote: On 4/3/2018 7:13 AM, Arnd Bergmann wrote: On Tue, Apr 3, 2018 at 12:49 PM, Mark Rutland wrote: Hi, On Fri, Mar 30, 2018 at 11:58:13AM -0400, Sinan Kaya wrote: The default

Re: [PATCH v2 0/5] allow override of bus format in bridges

2018-04-03 Thread Laurent Pinchart
Hi Daniel, On Wednesday, 28 March 2018 10:08:26 EEST Daniel Vetter wrote: > On Mon, Mar 26, 2018 at 11:24:42PM +0200, Peter Rosin wrote: > > Hi! > > > > [I got to v2 sooner than expected] > > > > I have an Atmel sama5d31 hooked up to an lvds encoder and then > > on to an lvds panel. Which seems

[PATCH char-misc 1/1] Drivers: hv: vmbus: Add comments on ring buffer signaling

2018-04-03 Thread mhkelley58
From: Michael Kelley Add comments describing intricacies of Hyper-V ring buffer signaling code. This information is not in Hyper-V public documents, so include here to capture the knowledge for future coders. There are no code changes in this commit. Signed-off-by: Michael Kelley ---

Re: [PATCH v3 0/4] Ktest: add email support

2018-04-03 Thread Steven Rostedt
On Tue, 3 Apr 2018 12:52:20 -0700 Tim Tianyang Chen wrote: > Hi Steve, did you get a chance to take a look? cc'ing myself and a > personal email. When I sent the patchset I forgot to include. Sorry, I'm trying to get my own ktest patches in (I have a bunch of non committed changes) and I need

[RFC] prctl: Deprecate non PR_SET_MM_MAP operations

2018-04-03 Thread Cyrill Gorcunov
An ability to manipulate mm_struct fields was introduced in sake of CRIU in first place. Later we provide more suitable and safe operation PR_SET_MM_MAP where all fields to be modifed are passed in one structure which allows us to make more detailed verification. Still old interface remains

Re: [PATCH v5 2/3] lib: Rename compiler intrinsic selects to GENERIC_LIB_*

2018-04-03 Thread Palmer Dabbelt
On Tue, 03 Apr 2018 02:24:25 PDT (-0700), matt.redfe...@mips.com wrote: When these are included into arch Kconfig files, maintaining alphabetical ordering of the selects means these get split up. To allow for keeping things tidier and alphabetical, rename the selects to GENERIC_LIB_*

[PATCH] x86/entry/64: Drop idtentry's manual stack switch for user entries

2018-04-03 Thread Andy Lutomirski
For non-paranoid entries, idtentry knows how to switch from the kernel stack to the user stack, as does error_entry. This results in pointless duplication and code bloat. Make idtentry stop thinking about stacks for non-paranoid entries. This reduces text size by 5377 bytes. This goes back to

Re: [GIT PULL] Kernel lockdown for secure boot

2018-04-03 Thread Andy Lutomirski
On Tue, Apr 3, 2018 at 3:32 PM, David Howells wrote: > Andy Lutomirski wrote: > >> > If the user can arbitrarily modify the running kernel image, you cannot >> > trust anything. You cannot determine the trustworthiness of something >> > because your basis for determining that trust can be

Re: [GIT pull] irq updates for 4.17

2018-04-03 Thread Palmer Dabbelt
On Tue, 03 Apr 2018 05:03:56 PDT (-0700), t...@linutronix.de wrote: Palmer Dabbelt (2): genirq: Add CONFIG_GENERIC_IRQ_MULTI_HANDLER RISC-V: Move to the new GENERIC_IRQ_MULTI_HANDLER handler Oh, sorry, I must have screwed something up here. I attempted to send out a v4 of this

Re: [PATCH v4 1/3] Add notrace to lib/ucmpdi2.c

2018-04-03 Thread Palmer Dabbelt
On Tue, 03 Apr 2018 06:51:06 PDT (-0700), matt.redfe...@mips.com wrote: Hi Palmer, On 29/03/18 22:59, Palmer Dabbelt wrote: On Thu, 29 Mar 2018 03:41:21 PDT (-0700), matt.redfe...@mips.com wrote: From: Palmer Dabbelt As part of the MIPS conversion to use the generic GCC library routines,

[RFC] drm/atomic+msm: add helper to implement legacy dirtyfb

2018-04-03 Thread Rob Clark
Add an atomic helper to implement dirtyfb support. This is needed to support DSI command-mode panels with x11 userspace (ie. when we can't rely on pageflips to trigger a flush to the panel). To signal to the driver that the async atomic update needs to synchronize with fences, even though the fb

Re: [PATCH v4 1/3] Add notrace to lib/ucmpdi2.c

2018-04-03 Thread Palmer Dabbelt
On Tue, 03 Apr 2018 07:45:45 PDT (-0700), jho...@kernel.org wrote: On Tue, Apr 03, 2018 at 02:51:06PM +0100, Matt Redfearn wrote: On 29/03/18 22:59, Palmer Dabbelt wrote: > Ah, thanks, I think I must have forgotten about this.  I assume these > three are going through your tree? Yeah I think

Re: [GIT PULL] Kernel lockdown for secure boot

2018-04-03 Thread Linus Torvalds
On Tue, Apr 3, 2018 at 3:39 PM, Andy Lutomirski wrote: > > Sure. I have no problem with having an upstream kernel have a > lockdown feature, although I think that feature should distinguish > between reads and writes. But I don't think the upstream kernel > should apply a patch that ties any of

Re: [GIT PULL] Kernel lockdown for secure boot

2018-04-03 Thread Matthew Garrett
On Tue, Apr 3, 2018 at 3:46 PM Linus Torvalds wrote: > For example, I love signed kernel modules. The fact that I love them > has absolutely zero to do with secure boot, though. There is > absolutely no linkage between the two issues: I use (self-)signed > kernel modules simply because I think

Re: [PATCH 00/12] SWIM driver fixes

2018-04-03 Thread Finn Thain
On Tue, 3 Apr 2018, Laurent Vivier wrote: > FWIW, for the series: > FWIW, https://en.wikipedia.org/wiki/Floppy_disk_hardware_emulator ;-)

Re: [GIT PULL] Kernel lockdown for secure boot

2018-04-03 Thread Andy Lutomirski
On Tue, Apr 3, 2018 at 3:51 PM, Matthew Garrett wrote: > On Tue, Apr 3, 2018 at 3:46 PM Linus Torvalds > > wrote: > >> For example, I love signed kernel modules. The fact that I love them >> has absolutely zero to do with secure boot, though. There is >> absolutely no linkage between the two

<    5   6   7   8   9   10   11   12   13   14   >