Re: [PATCH v5 3/3] x86/platform/intel-mid: Add special handling of ACPI HW reduced platforms

2018-02-20 Thread Rafael J. Wysocki
On Tue, Feb 20, 2018 at 7:05 PM, Andy Shevchenko wrote: > When switching to ACPI HW reduced platforms we still want to initialize > timers. > Override x86_init.acpi.reduced_hw_init to achieve that. > > Signed-off-by: Andy Shevchenko Reviewed-by: Rafael J. Wysocki > --- > arch/x86/platform/in

[PATCH] xchg/alpha: Add unconditional memory barrier to cmpxchg

2018-02-20 Thread Andrea Parri
Continuing along with the fight against smp_read_barrier_depends() [1] (or rather, against its improper use), add an unconditional barrier to cmpxchg. This guarantees that dependency ordering is preserved when a dependency is headed by an unsuccessful cmpxchg. As it turns out, the change could en

Re: [PATCH v2 01/19] clk: renesas: cpg-mssr: Add support for R-Car M3-N

2018-02-20 Thread Geert Uytterhoeven
On Tue, Feb 20, 2018 at 4:12 PM, Jacopo Mondi wrote: > Initial support for R-Car M3-N (r8a77965), including core and module > clocks. > > Based on Table 8.2d of "R-Car Series, 3rd Generation User's Manual: > Hardware (Rev. 0.80, Oct 31, 2017)". > > Signed-off-by: Jacopo Mondi > Reviewed-by: Geert

Re: [RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core

2018-02-20 Thread Reinette Chatre
Hi Thomas, On 2/20/2018 9:15 AM, Thomas Gleixner wrote: > On Tue, 13 Feb 2018, Reinette Chatre wrote: >> static void __pseudo_lock_region_release(struct pseudo_lock_region *plr) >> { >> bool is_new_plr = (plr == new_plr); >> @@ -93,6 +175,23 @@ static void __pseudo_lock_region_release(struc

Re: [Intel-gfx] [PATCH] drm/i915: Remove unused IRQ chip data of HDMI LPE audio

2018-02-20 Thread Ville Syrjälä
On Mon, Jan 29, 2018 at 07:09:22PM +0200, Ville Syrjälä wrote: > On Wed, Dec 13, 2017 at 03:06:55PM +0100, Thomas Gleixner wrote: > > On Wed, 13 Dec 2017, Takashi Iwai wrote: > > > On Wed, 13 Dec 2017 12:35:54 +0100, > > > Thomas Gleixner wrote: > > > > > > > > > > On Mon, 11 Dec 2017, Anand, Jero

Re: [PATCH net-next 1/4] dpaa_eth: fix SG mapping

2018-02-20 Thread David Miller
From: Madalin Bucur Date: Mon, 19 Feb 2018 10:10:41 -0600 > An issue in the code mapping the skb fragments into > scatter-gather frames was evidentiated by netperf > TCP_SENDFILE tests. This patch addresses the issue. > > Signed-off-by: Madalin Bucur This is a poorly worded commit message. Yo

Re: [perf/x86/intel] 41e062cd2e: WARNING:at_arch/x86/events/intel/ds.c:#intel_pmu_save_and_restart_reload

2018-02-20 Thread Liang, Kan
On 2/19/2018 7:44 AM, Peter Zijlstra wrote: On Sat, Feb 17, 2018 at 02:21:19PM +0800, kernel test robot wrote: [ 242.731381] WARNING: CPU: 3 PID: 1107 at arch/x86/events/intel/ds.c:1326 intel_pmu_save_and_restart_reload+0x87/0x90 That's the one asserting the PMU is in fact disabled. [ 2

Re: [PATCH v3 14/15] selinux: allow setxattr on rootfs so initramfs code can set them

2018-02-20 Thread Stephen Smalley
On Fri, 2018-02-16 at 20:33 +, Taras Kondratiuk wrote: > From: Victor Kamensky > > initramfs code supporting extended cpio format have ability to > fill extended attributes from cpio archive, but if SELinux enabled > and security server is not initialized yet, selinux callback would > refuse

Re: [PATCH] PCI: Add quirk for Cavium Thunder-X2 PCIe erratum #173

2018-02-20 Thread Bjorn Helgaas
[+cc Huang] On Tue, Feb 20, 2018 at 02:54:33AM +0100, Lukas Wunner wrote: > On Mon, Feb 19, 2018 at 12:21:56PM +0100, Rafael J. Wysocki wrote: > > On Friday, February 16, 2018 9:34:34 PM CET Bjorn Helgaas wrote: > > > On Fri, Feb 16, 2018 at 01:40:37PM +0100, Rafael J. Wysocki wrote: > > > > On Fr

Re: [PATCH v1 2/2] PCI: Allow user to request power management of conventional and hotplug bridges

2018-02-20 Thread Rafael J. Wysocki
On Tue, Feb 20, 2018 at 7:15 PM, Bjorn Helgaas wrote: > On Tue, Feb 20, 2018 at 10:41:33AM +0100, Rafael J. Wysocki wrote: >> On Tue, Feb 20, 2018 at 12:14 AM, Bjorn Helgaas wrote: >> > From: Bjorn Helgaas >> > >> > Previously "pcie_port_pm=force" enabled power management of PCI bridges, >> > bu

Re: [PATCH v3 15/15] selinux: delay sid population for rootfs till init is complete

2018-02-20 Thread Stephen Smalley
On Fri, 2018-02-16 at 20:33 +, Taras Kondratiuk wrote: > From: Victor Kamensky > > With initramfs cpio format that supports extended attributes > we need to skip sid population on sys_lsetxattr call from > initramfs for rootfs if security server is not initialized yet. > > Otherwise callback

Re: [PATCHv2 4/8] dt-bindings: panel: common: document orientation property

2018-02-20 Thread Rob Herring
On Mon, Feb 19, 2018 at 5:06 AM, Sebastian Reichel wrote: > Hi, > > On Sun, Feb 18, 2018 at 05:24:24PM -0600, Rob Herring wrote: >> On Thu, Feb 08, 2018 at 07:30:31PM +0100, Sebastian Reichel wrote: >> > Introduce new "orientation" property for describing in which >> > orientation a panel has been

Re: [PATCH net-next 0/7] stmmac multi-queue fixes and cleanups

2018-02-20 Thread David Miller
From: Niklas Cassel Date: Mon, 19 Feb 2018 18:11:08 +0100 > stmmac multi-queue fixes and cleanups Looks good to me, series applied, thanks Niklas.

Re: [PATCH 0/5] x86/dumpstack: Cleanups and user opcode bytes Code: section

2018-02-20 Thread Andy Lutomirski
On Mon, Feb 19, 2018 at 8:28 PM, Borislav Petkov wrote: > From: Borislav Petkov > > Hi, > > so I've been thinking about doing this for a while now: be able to dump > the opcode bytes around the user rIP just like we do for kernel faults. > > Why? > > See patch 5's commit message. That's why I've

Re: [PATCH] locking/ww_mutex: add ww_mutex_is_owned_by function v4

2018-02-20 Thread kbuild test robot
Hi Christian, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.16-rc2 next-20180220] [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

Re: [PATCH 1/2] fs/efivarfs: restrict inode permissions

2018-02-20 Thread Andy Lutomirski
On 02/15/2018 10:22 AM, Joe Konno wrote: From: Joe Konno Efivarfs nodes are created with group and world readable permissions. Reading certain EFI variables trigger SMIs. So, this is a potential DoS surface. Make permissions more restrictive-- only the owner may read or write to created inodes

[PATCH v5 0/4] drivers: firmware: xilinx: Add firmware driver support

2018-02-20 Thread Jolly Shah
v5: - Added ATF version check support - Updated some functions to be static - Minor function name corrections v4: - Changed clock setrate/getrate API prototype to support 64 bit rate - Defined macros for get_node_status return values - Moved DT node as a child of firmware - Changed debugfs

[PATCH v5 1/4] dt-bindings: firmware: Add bindings for ZynqMP firmware

2018-02-20 Thread Jolly Shah
Add documentation to describe Xilinx ZynqMP firmware driver bindings. Firmware driver provides an interface to firmware APIs. Interface APIs can be used by any driver to communicate to PMUFW (Platform Management Unit). Signed-off-by: Jolly Shah Signed-off-by: Rajan Vaja --- .../firmware/xilinx/

[PATCH v5 2/4] drivers: firmware: xilinx: Add ZynqMP firmware driver

2018-02-20 Thread Jolly Shah
This patch is adding communication layer with firmware. Firmware driver provides an interface to firmware APIs. Interface APIs can be used by any driver to communicate to PMUFW(Platform Management Unit). All requests go through ATF. Signed-off-by: Jolly Shah Signed-off-by: Rajan Vaja --- arch/a

[PATCH v5 4/4] drivers: firmware: xilinx: Add debugfs interface

2018-02-20 Thread Jolly Shah
Firmware-debug provides debugfs interface to all APIs. Debugfs can be used to call firmware APIs with required parameters. Usage: * Calling firmware API through debugfs: # echo " .. " > /sys/kernel/debug/zynqmp-firmware/pm * Read output of last called firmware API: # cat /sys/kernel/debug/zy

[PATCH v5 3/4] drivers: firmware: xilinx: Add sysfs interface

2018-02-20 Thread Jolly Shah
Add Firmware-ggs sysfs interface which provides read/write interface to global storage registers. Signed-off-by: Jolly Shah Signed-off-by: Rajan Vaja --- .../ABI/stable/sysfs-driver-zynqmp-firmware| 50 drivers/firmware/xilinx/zynqmp/Makefile| 2 +- drivers/firmware/

Re: [PATCH v2] fs: fsnotify: account fsnotify metadata to kmemcg

2018-02-20 Thread Shakeel Butt
On Tue, Feb 20, 2018 at 4:43 AM, Jan Kara wrote: > On Mon 19-02-18 21:07:28, Amir Goldstein wrote: >> On Mon, Feb 19, 2018 at 3:50 PM, Jan Kara wrote: >> [...] >> > For fanotify without FAN_UNLIMITED_QUEUE the situation is similar as for >> > inotify - IMO low practical impact, apps should genera

A "domain invalid" cgroup *can* sometimes have member tasks

2018-02-20 Thread Michael Kerrisk (man-pages)
Hello Tejun According to Documentation/cgroup-v2.txt, a "domain invalid" cgroup can't have member tasks. And indeed this is generally not permitted. However, someone recently showed me a scenario where a "domain invalid" cgroup can have member processes. See the following example: # mkdir -p /sy

Re: [PATCH NAND v2] mtd: nand: Replace printk() with appropriate pr_*macro()

2018-02-20 Thread Boris Brezillon
On Tue, 20 Feb 2018 23:07:18 +0530 Shreeya Patel wrote: > On Tue, 2018-02-20 at 18:16 +0100, Boris Brezillon wrote: > > On Tue, 20 Feb 2018 22:36:41 +0530 > > Shreeya Patel wrote: > > > > > > > > On Mon, 2018-02-19 at 15:51 +0100, Boris Brezillon wrote: > > > > > > > > Hi Shreeya, > > > >

Re: [PATCH 0/5] x86/dumpstack: Cleanups and user opcode bytes Code: section

2018-02-20 Thread Josh Poimboeuf
On Tue, Feb 20, 2018 at 07:14:00PM +, Andy Lutomirski wrote: > On Mon, Feb 19, 2018 at 8:28 PM, Borislav Petkov wrote: > > From: Borislav Petkov > > > > Hi, > > > > so I've been thinking about doing this for a while now: be able to dump > > the opcode bytes around the user rIP just like we do

Re: [PATCH] Make kernel taint on invalid module signatures configurable

2018-02-20 Thread Jessica Yu
+++ Matthew Garrett [15/02/18 19:36 +]: On Thu, Feb 15, 2018 at 7:25 AM Jessica Yu wrote: I'm still unclear on why a distro would enable CONFIG_MODULE_SIG and then _not_ want to know about unsigned modules. The same kernel image may be used in situations where the use case benefits from e

Re: [PATCH v4 2/2] ptrace, seccomp: add support for retrieving seccomp metadata

2018-02-20 Thread Dmitry V. Levin
Hi, On Tue, Nov 14, 2017 at 07:00:19PM -0700, Tycho Andersen wrote: > With the new SECCOMP_FILTER_FLAG_LOG, we need to be able to extract these > flags for checkpoint restore, since they describe the state of a filter. > > So, let's add PTRACE_SECCOMP_GET_METADATA, similar to ..._GET_FILTER, whic

[PATCH v2 0/3] new driver for Valve Steam Controller

2018-02-20 Thread Rodrigo Rivas Costa
This patchset implements a driver for Valve Steam Controller, based on a reverse analysis by myself. Notable changes from patchset v1: * Remove references to USB. Now the interesting interfaces are selected by looking for the ones with feature reports. * Feature reports buffers are allocated

[PATCH v2 3/3] HID: steam: add battery device

2018-02-20 Thread Rodrigo Rivas Costa
The wireless Steam Controller is battery operated, so add the battery device and power information. Signed-off-by: Rodrigo Rivas Costa --- drivers/hid/hid-steam.c | 128 +++- 1 file changed, 127 insertions(+), 1 deletion(-) diff --git a/drivers/hid/hi

[PATCH v2 2/3] HID: steam: add serial number information

2018-02-20 Thread Rodrigo Rivas Costa
This device has a feature report to send and receive commands. Use it to get the serial number and set the device's uniq value. Signed-off-by: Rodrigo Rivas Costa --- drivers/hid/hid-steam.c | 105 ++-- 1 file changed, 102 insertions(+), 3 deletions(-)

[PATCH v2 1/3] HID: add driver for Valve Steam Controller

2018-02-20 Thread Rodrigo Rivas Costa
There are two ways to connect the Steam Controller: directly to the USB or with the USB wireless adapter. Both methods are similar, but the wireless adapter can connect up to 4 devices at the same time. The wired device will appear as 3 interfaces: a virtual mouse, a virtual keyboard and a custom

Re: A "domain invalid" cgroup *can* sometimes have member tasks

2018-02-20 Thread Tejun Heo
On Tue, Feb 20, 2018 at 08:26:59PM +0100, Michael Kerrisk (man-pages) wrote: > Hello Tejun > > According to Documentation/cgroup-v2.txt, a "domain invalid" cgroup > can't have member tasks. And indeed this is generally not permitted. > > However, someone recently showed me a scenario where a "dom

Re: [PATCH] xchg/alpha: Add unconditional memory barrier to cmpxchg

2018-02-20 Thread Paul E. McKenney
On Tue, Feb 20, 2018 at 07:45:56PM +0100, Andrea Parri wrote: > Continuing along with the fight against smp_read_barrier_depends() [1] > (or rather, against its improper use), add an unconditional barrier to > cmpxchg. This guarantees that dependency ordering is preserved when a > dependency is he

[PATCH] block: sed-opal: fix u64 short atom length

2018-02-20 Thread Jonas Rabenstein
The length must be given as bytes and not as 4 bit tuples. Signed-off-by: Jonas Rabenstein --- block/sed-opal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/sed-opal.c b/block/sed-opal.c index 36842bfa572e..d5f565e1557a 100644 --- a/block/sed-opal.c +++ b/block/sed-o

[PATCH] block: sed-opal: fix response string extraction

2018-02-20 Thread Jonas Rabenstein
Tokens are prefixed by a variable length of bytes. If a bytestring is not stored in an tiny or short atom, we have to skip more than one byte in order to have the actual bytes not prefixed by the bytes describing the actual length of the string. Signed-off-by: Jonas Rabenstein --- block/sed-opal

Re: [PATCH 2/2] i2c: add support for Socionext SynQuacer I2C controller

2018-02-20 Thread Andy Shevchenko
On Tue, Feb 20, 2018 at 8:04 PM, Ard Biesheuvel wrote: > On 20 February 2018 at 14:02, Andy Shevchenko > wrote: >> On Tue, Feb 20, 2018 at 11:08 AM, Ard Biesheuvel >> wrote: >>> +/* SPDX-License-Identifier: GPL-2.0 */ >> >> Shouldn't be // ? > IIUC, this applies to .h files only, and /* */ is

Re: [PATCH RESEND] KEYS: remove CONFIG_KEYS_COMPAT

2018-02-20 Thread Eric Biggers
On Fri, Jan 05, 2018 at 11:19:47AM -0800, Eric Biggers wrote: > From: Eric Biggers > > KEYS_COMPAT now always takes the value of COMPAT && KEYS. But the > security/keys/ directory is only compiled if KEYS is enabled, so in > practice KEYS_COMPAT is the same as COMPAT. Therefore, remove the > un

[PATCH 3/3] fs: fsnotify: account fsnotify metadata to kmemcg

2018-02-20 Thread Shakeel Butt
A lot of memory can be consumed by the events generated for the huge or unlimited queues if there is either no or slow listener. This can cause system level memory pressure or OOMs. So, it's better to account the fsnotify kmem caches to the memcg of the listener. There are seven fsnotify kmem cach

[PATCH 1/3] mm: memcg: plumbing memcg for kmem cache allocations

2018-02-20 Thread Shakeel Butt
Introducing the memcg variant for kmem cache allocation functions. Currently the kernel switches the root kmem cache with the memcg specific kmem cache for __GFP_ACCOUNT allocations to charge those allocations to the memcg. However, the memcg to charge is extracted from the current task_struct. Thi

[PATCH 2/3] mm: memcg: plumbing memcg for kmalloc allocations

2018-02-20 Thread Shakeel Butt
Introducing the memcg variant for kmalloc allocation functions. The kmalloc allocations are underlying served using the kmem caches unless the size of the allocation request is larger than KMALLOC_MAX_CACHE_SIZE, in which case, the kmem caches are bypassed and the request is routed directly to page

[PATCH 0/3] Directed kmem charging

2018-02-20 Thread Shakeel Butt
This patchset introduces memcg variant memory allocation functions. The caller can explicitly pass the memcg to charge for kmem allocations. Currently the kernel, for __GFP_ACCOUNT memory allocation requests, extract the memcg of the current task to charge for the kmem allocation. This patch series

Re: [PATCH v4] rtc: isl12026: Add driver.

2018-02-20 Thread David Daney
On 02/20/2018 03:03 AM, Alexandre Belloni wrote: [...] diff --git a/drivers/rtc/rtc-isl12026.c b/drivers/rtc/rtc-isl12026.c new file mode 100644 index ..29e5bdf96c67 --- /dev/null +++ b/drivers/rtc/rtc-isl12026.c @@ -0,0 +1,529 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * An I2C

Re: [PATCH 3/3] fs: fsnotify: account fsnotify metadata to kmemcg

2018-02-20 Thread Shakeel Butt
On Tue, Feb 20, 2018 at 11:41 AM, Shakeel Butt wrote: > A lot of memory can be consumed by the events generated for the huge or > unlimited queues if there is either no or slow listener. This can cause > system level memory pressure or OOMs. So, it's better to account the > fsnotify kmem caches to

[PATCH] fs: proc: use down_read_killable in proc_pid_cmdline_read()

2018-02-20 Thread Yang Shi
When running vm-scalability with large memory (> 300GB), the below hung task issue happens occasionally. INFO: task ps:14018 blocked for more than 120 seconds. Tainted: GE 4.9.79-009.ali3000.alios7.x86_64 #1 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this messa

Re: [PATCH 3/6] struct page: add field for vm_struct

2018-02-20 Thread Igor Stoppa
On 12/02/18 18:24, Igor Stoppa wrote: > > > On 11/02/18 23:16, Matthew Wilcox wrote: >> On Sun, Feb 11, 2018 at 05:19:17AM +0200, Igor Stoppa wrote: >>> The struct page has a "mapping" field, which can be re-used, to store a >>> pointer to the parent area. This will avoid more expensive searche

Re: [PATCH] kconfig: Don't leak choice names during parsing

2018-02-20 Thread Ulf Magnusson
On Tue, Feb 20, 2018 at 12:40 PM, Masahiro Yamada wrote: > The named choice is not used in the kernel tree, but if it were used, > it would not be freed. > > The intention of the named choice can be seen in the log of > commit 5a1aa8a1aff6 ("kconfig: add named choice group"). > > There is room for

Re: [PATCH v4] rtc: isl12026: Add driver.

2018-02-20 Thread Alexandre Belloni
On 20/02/2018 at 11:43:47 -0800, David Daney wrote: > On 02/20/2018 03:03 AM, Alexandre Belloni wrote: > [...] > > > > > diff --git a/drivers/rtc/rtc-isl12026.c b/drivers/rtc/rtc-isl12026.c > > > new file mode 100644 > > > index ..29e5bdf96c67 > > > --- /dev/null > > > +++ b/drivers/r

Re: [PATCH] ARM: dtc: tegra: enable front panel leds in TrimSlice

2018-02-20 Thread Stephen Warren
On 02/19/2018 01:16 PM, Tomasz Maciej Nowak wrote: Adds device nodes for two front panel LEDs. Why do you need to change the pinmux settings? Configuring a pin as a GPIO should override any pinmux special function selection and hence make it irrelevant, so I don't think you should need to cha

Re: [PATCH v4 2/2] ptrace, seccomp: add support for retrieving seccomp metadata

2018-02-20 Thread Eugene Syromiatnikov
On Tue, Nov 14, 2017 at 07:00:19PM -0700, Tycho Andersen wrote: > With the new SECCOMP_FILTER_FLAG_LOG, we need to be able to extract these > flags for checkpoint restore, since they describe the state of a filter. > > So, let's add PTRACE_SECCOMP_GET_METADATA, similar to ..._GET_FILTER, which > r

Re: linux-next: manual merge of the drm tree with Linus' tree

2018-02-20 Thread Rodrigo Vivi
On Mon, Feb 19, 2018 at 10:10:50AM +1100, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the drm tree got a conflict in: > > drivers/gpu/drm/i915/intel_breadcrumbs.c > > between commit: > > 117172c8f9d4 ("drm/i915/breadcrumbs: Ignore unsubmitted signalers") > > from Linu

Re: [PATCH] iio: chemical: ccs811: Renamed resistance member in ccs811_reading struct

2018-02-20 Thread Narcisa Ana Maria Vasile
On Sat, Feb 17, 2018 at 02:14:42PM +, Jonathan Cameron wrote: > On Wed, 14 Feb 2018 01:08:35 + > Richard Lai wrote: > > > The resistance member in ccs811_reading struct is an unsigned 16-bit > > integer variable used to store RAW_DATA register bytes read from CCS811. > > It is kind of mis

[PATCH] iommu/rockchip: Perform a reset on shutdown

2018-02-20 Thread Marc Zyngier
Trying to do a kexec whilst the iommus are still on is proving to be a challenging exercise. It is terribly unsafe, as we're reusing the memory allocated for the page tables, leading to a likely crash. Let's implement a shutdown method that will at least try to stop DMA from going crazy behind our

RE: [PATCH 1/2 v3] tpm: cmd_ready command can be issued only after granting locality

2018-02-20 Thread Winkler, Tomas
> > On Mon, 2018-02-19 at 11:43 +, Winkler, Tomas wrote: > > > All local variable declarations must be in the beginning of the > > > function. > > > > Who says? > > It is coherent how we have everything else. I will have to care about its value out of the scope where the variable existence

Re: [PATCH v2] fs: fsnotify: account fsnotify metadata to kmemcg

2018-02-20 Thread Amir Goldstein
On Tue, Feb 20, 2018 at 2:43 PM, Jan Kara wrote: > On Mon 19-02-18 21:07:28, Amir Goldstein wrote: [...] >> >> I just feel sorry about passing an opportunity to improve functionality. >> The fact that fanotify does not have a way for defining the events queue >> size is a deficiency IMO, one which

Re: [PATCH] tools/libbpf: Avoid possibly using uninitialized variable

2018-02-20 Thread Daniel Borkmann
On 02/20/2018 02:00 AM, Jeremy Cline wrote: > Fixes a GCC maybe-uninitialized warning introduced by 48cca7e44f9f. > "text" is only initialized inside the if statement so only print debug > info there. > > Signed-off-by: Jeremy Cline Looks good, applied to bpf tree, thanks Jeremy!

drivers/media/common/videobuf2/videobuf2-v4l2.c:678: undefined reference to `video_devdata'

2018-02-20 Thread kbuild test robot
Hi Hans, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: af3e79d29555b97dd096e2f8e36a0f50213808a8 commit: 7952be9b6ece3d3c4d61f9811d7e5a984580064a media: drivers/media/common/videobuf2: rename from videobuf date:

Re: [PATCH] Make kernel taint on invalid module signatures configurable

2018-02-20 Thread Matthew Garrett
On Tue, Feb 20, 2018 at 11:21 AM Jessica Yu wrote: > Ah, OK. So if I'm understanding correctly, you want to use the same kernel > image/configuration but for two different use cases, one where the module > signatures do not matter, and one where they do matter. But the config you > want to use in

Re: [PATCH] kconfig: Don't leak choice names during parsing

2018-02-20 Thread Sam Ravnborg
On Tue, Feb 20, 2018 at 08:54:58PM +0100, Ulf Magnusson wrote: > On Tue, Feb 20, 2018 at 12:40 PM, Masahiro Yamada > wrote: > > The named choice is not used in the kernel tree, but if it were used, > > it would not be freed. > > > > The intention of the named choice can be seen in the log of > > c

[PATCH 14/21 - v2] staging: lustre: fix assorted checkpatch errors

2018-02-20 Thread NeilBrown
Possibly the most interesting is the for-loop with no body. Rearranging and initializing end_dirent on each iteration of the outer while, makes the intent clearer. Reviewed-by: "Eremin, Dmitry" Signed-off-by: NeilBrown --- This version has a correct conversion for that for loop with not body,

Re: [PATCH 0/5] x86/dumpstack: Cleanups and user opcode bytes Code: section

2018-02-20 Thread Borislav Petkov
On Tue, Feb 20, 2018 at 01:29:56PM -0600, Josh Poimboeuf wrote: > > Maybe this series already has this side-effect, but I'd really love to > > see oopses show the code bytes for each kernel entry, not just the > > innermode one. We already dump full regs including RIP -- adding > > Code: should be

linux-next: Signed-off-by missing for commits in the kvms390 tree

2018-02-20 Thread Stephen Rothwell
Hi all, Commits 6558ff10e614 ("Kconfig : Remove HAS_IOMEM dependency for Graphics support") 60da5bfd79f7 ("s390/char : Rename EBCDIC keymap variables") 74113cf840c7 ("s390/setup : enable display support for KVM guest") are missing a Signed-off-by from their committer. -- Cheers, Stephen

Re: [PATCH 3/6] struct page: add field for vm_struct

2018-02-20 Thread Matthew Wilcox
On Tue, Feb 20, 2018 at 09:53:30PM +0200, Igor Stoppa wrote: > The patch relies on the function vmalloc_to_page ... which will return > NULL when applied to huge mappings, while the original implementation > will still work. Huh? vmalloc_to_page() should work for huge mappings... > It was found

Re: linux-next: Signed-off-by missing for commits in the kvms390 tree

2018-02-20 Thread Christian Borntraeger
Fixed. thanks a lot. On 02/20/2018 09:51 PM, Stephen Rothwell wrote: > Hi all, > > Commits > > 6558ff10e614 ("Kconfig : Remove HAS_IOMEM dependency for Graphics support") > 60da5bfd79f7 ("s390/char : Rename EBCDIC keymap variables") > 74113cf840c7 ("s390/setup : enable display support for

[PATCH 1/2] infiniband: qplib_fp: fix pointer cast

2018-02-20 Thread Arnd Bergmann
Building for a 32-bit target results in a couple of warnings from casting between a 32-bit pointer and a 64-bit integer: drivers/infiniband/hw/bnxt_re/qplib_fp.c: In function 'bnxt_qplib_service_nq': drivers/infiniband/hw/bnxt_re/qplib_fp.c:333:23: error: cast to pointer from integer of differen

[PATCH 2/2] infiniband: bnxt_re: use BIT_ULL() for 64-bit bit masks

2018-02-20 Thread Arnd Bergmann
On 32-bit targets, we otherwise get a warning about an impossible constant integer expression: In file included from include/linux/kernel.h:11, from include/linux/interrupt.h:6, from drivers/infiniband/hw/bnxt_re/ib_verbs.c:39: drivers/infiniband/hw/bnxt_re/ib_ver

[PATCH] RDMA/core: reduce IB_POLL_BATCH constant

2018-02-20 Thread Arnd Bergmann
The ib_wc structure has grown to much that putting 16 of them on the stack hits the warning limit for dangerous kernel stack consumption: drivers/infiniband/core/cq.c: In function 'ib_process_cq_direct': drivers/infiniband/core/cq.c:78:1: error: the frame size of 1032 bytes is larger than 1024 by

[PATCH] x86: oprofile: nmi_int: fix bogus gcc-8 warning

2018-02-20 Thread Arnd Bergmann
gcc-8 shows a warning for the x86 oprofile code that copies per-cpu data from CPU 0 to all other CPUs, which when building a non-SMP kernel turns into a memcpy() with identical source and destination pointers: arch/x86/oprofile/nmi_int.c: In function 'mux_clone': arch/x86/oprofile/nmi_int.c:285:2:

[RFC PATCH v3 3/6] x86/entry/64: move switch_to_thread_stack to interrupt_entry

2018-02-20 Thread Dominik Brodowski
We can also move the CLD, SWAPGS, and the switch_to_thread_stack to the interrupt_entry helper function. As we do not want call depths of two, convert switch_to_thread_stack to a macro. However, switch_to_thread_stack has another user in entry_64_compat.S, which currently expects it to be a functi

Re: [PATCH] EDAC, layerscape: allow building for LS1021A

2018-02-20 Thread York Sun
Sorry for top posting. I am on vacation and replying from my phone. The controller is compatible and the driver should work. Please double check to make sure you can inject errors and receive interrupt. After that you are good to go. York Sent from my iPhone > On Feb 20, 2018, at 23:09, Rasmu

[RFC PATCH v3 0/6] x86/entry/64: interrupt entry size reduction

2018-02-20 Thread Dominik Brodowski
Here is another re-spin of the interrupt entry size reduction patchset, which applies on top of tip/pti and tries to implement what Linus suggested a few days ago.[*] Patch 1/5 provides the most significant cuttings (-3k) and gets us below the text size of entry_64.o (by about 2k) compared to befo

[RFC PATCH v3 4/6] x86/entry/64: remove interrupt macro

2018-02-20 Thread Dominik Brodowski
It is now trivial to call interrupt_entry and then the actual worker. Therefore, remove the interrupt macro. Suggested-by: Linus Torvalds Signed-off-by: Dominik Brodowski --- arch/x86/entry/entry_64.S | 16 ++-- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/arch/x86

[RFC PATCH v3 1/6] x86/entry/64: move PUSH_AND_CLEAR_REGS from interrupt macro to helper function

2018-02-20 Thread Dominik Brodowski
The PUSH_AND_CLEAR_REGS macro is able to insert the GP registers "above" the original return address. This allows us to move a sizeable part of the interrupt entry macro to an interrupt entry helper function: textdata bss dec hex filename 21088 0 0 210885260

[RFC PATCH v3 6/6] x86/entry/64: open-code switch_to_thread_stack

2018-02-20 Thread Dominik Brodowski
Open-code the two instances which used switch_to_thread_stack. This allows us to remove the wrapper around DO_SWITCH_TO_THREAD_STACK. While at it, update the UNWIND hint to reflect where the IRET frame is, and update the commentary to reflect what we are actually doing here. Signed-off-by: Domini

[RFC PATCH v3 2/6] x86/entry/64: move ENTER_IRQ_STACK from interrupt macro to interrupt_entry

2018-02-20 Thread Dominik Brodowski
Moving the switch to IRQ stack from the interrupt macro to the helper function requires some trickery: All ENTER_IRQ_STACK really cares about is where the "original" stack -- meaning the GP registers etc. -- is stored. Therefore, we need to offset the stored RSP value by 8 whenever ENTER_IRQ_STACK

[RFC PATCH v3 5/6] x86/entry/64: move ASM_CLAC to interrupt_entry

2018-02-20 Thread Dominik Brodowski
Moving ASM_CLAC to interrupt_entry means two instructions (addq / pushq and call interrupt_entry) are not covered by it. However, it offers a noticeable size reduction (-.2k): textdata bss dec hex filename 16882 0 0 1688241f2 entry_64.o-orig 16623 0

RE: [PATCH] RDMA/core: reduce IB_POLL_BATCH constant

2018-02-20 Thread Parav Pandit
Hi Arnd Bergmann, > -Original Message- > From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma- > ow...@vger.kernel.org] On Behalf Of Arnd Bergmann > Sent: Tuesday, February 20, 2018 2:59 PM > To: Doug Ledford ; Jason Gunthorpe > Cc: Arnd Bergmann ; Leon Romanovsky > ; Sagi Grimberg ;

Re: [PATCH] RDMA/core: reduce IB_POLL_BATCH constant

2018-02-20 Thread Bart Van Assche
On Tue, 2018-02-20 at 21:59 +0100, Arnd Bergmann wrote: > /* # of WCs to poll for with a single call to ib_poll_cq */ > -#define IB_POLL_BATCH16 > +#define IB_POLL_BATCH8 The purpose of batch polling is to minimize contention on the cq spinlock. Red

[PATCH] bpf: hide a possibly unused variable

2018-02-20 Thread Arnd Bergmann
The only user of this variable is inside of an #ifdef, causing a warning without CONFIG_INET: net/core/filter.c: In function 'bpf_sock_ops_cb_flags_set': net/core/filter.c:3382:6: error: unused variable 'val' [-Werror=unused-variable] int val = argval & BPF_SOCK_OPS_ALL_CB_FLAGS; This adds

Re: [PATCH 1/2] fs/efivarfs: restrict inode permissions

2018-02-20 Thread Luck, Tony
On Tue, Feb 20, 2018 at 11:18:57AM -0800, Andy Lutomirski wrote: > On 02/15/2018 10:22 AM, Joe Konno wrote: > > From: Joe Konno > > > > Efivarfs nodes are created with group and world readable permissions. > > Reading certain EFI variables trigger SMIs. So, this is a potential DoS > > surface. >

Re: [PATCH 1/2] fs/efivarfs: restrict inode permissions

2018-02-20 Thread Matthew Garrett
On Tue, Feb 20, 2018 at 1:18 PM Luck, Tony wrote: > Does this rate an exception to the "don't break userspace" for a security issue? To be clear, when you say "security" is this in reference to it being a denial of service, or are you worried about other interactions that may cause wider securit

Re: [PATCH] Make kernel taint on invalid module signatures configurable

2018-02-20 Thread Jessica Yu
+++ Matthew Garrett [20/02/18 20:37 +]: On Tue, Feb 20, 2018 at 11:21 AM Jessica Yu wrote: Ah, OK. So if I'm understanding correctly, you want to use the same kernel image/configuration but for two different use cases, one where the module signatures do not matter, and one where they do ma

Re: [PATCH 7/8] ARM: dts: artpec: add disabled node for PCIe endpoint mode

2018-02-20 Thread Niklas Cassel
On Tue, Feb 20, 2018 at 06:00:48PM +0100, Niklas Cassel wrote: > The PCIe controller in the artpec6 SoC supports both root complex and > endpoint mode, however, the controller can only be used in one of the > modes. > > Both pci nodes are disabled by default. A DTS file can enable one of > them, d

Re: [PATCH v2] libata: disable LPM for Crucial BX100 SSD 500GB drive

2018-02-20 Thread Tejun Heo
On Sun, Feb 18, 2018 at 10:17:09PM +0800, Kai-Heng Feng wrote: > After Laptop Mode Tools starts to use min_power for LPM, a user found > out Crucial BX100 SSD can't get mounted. > > Crucial BX100 SSD 500GB drive don't work well with min_power. This also > happens to med_power_with_dipm. > > So le

Re: [PATCH 1/2] fs/efivarfs: restrict inode permissions

2018-02-20 Thread Luck, Tony
On Tue, Feb 20, 2018 at 09:22:29PM +, Matthew Garrett wrote: > On Tue, Feb 20, 2018 at 1:18 PM Luck, Tony wrote: > > > Does this rate an exception to the "don't break userspace" for a security > issue? > > To be clear, when you say "security" is this in reference to it being a > denial of se

Re: [PATCH 1/2] fs/efivarfs: restrict inode permissions

2018-02-20 Thread Matthew Garrett
On Tue, Feb 20, 2018 at 1:32 PM Luck, Tony wrote: > The immediate problem is the denial of service attack. I have > a nagging worry that allowing a user to cause an SMI at a precise > time might also be a problem. But I don't know how that could be > leveraged in some other attack. The thing th

Re: [RFC PATCH v16 0/6] mm: security: ro protection for dynamic data

2018-02-20 Thread Dave Chinner
On Tue, Feb 20, 2018 at 08:03:49PM +0200, Igor Stoppa wrote: > > > On 20/02/18 03:21, Dave Chinner wrote: > > On Mon, Feb 12, 2018 at 03:32:36PM -0800, Kees Cook wrote: > >> On Mon, Feb 12, 2018 at 8:52 AM, Igor Stoppa > >> wrote: > >>> This patch-set introduces the possibility of protecting me

Re: [PATCH] PCMCIA / PM: Combine system resume callbacks

2018-02-20 Thread Dominik Brodowski
On Tue, Feb 20, 2018 at 12:47:27PM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > There is a problem with PCMCIA system resume callbacks with respect > to suspend-to-idle in which the ->suspend_noirq() callback may be > invoked after the ->resume_noirq() one without resuming the sy

Re: [V9fs-developer] [PATCH] net/9p: avoid -ERESTARTSYS leak to userspace

2018-02-20 Thread Greg Kurz
Hi Al, It's been two years without any sign of life from 9p maintainers... :-\ Would you apply (or nack) this patch ? Thanks, -- Greg PS: in the case you apply it, probable Cc sta...@vger.kernel.org as well On Thu, 08 Feb 2018 18:38:49 +0100 Greg Kurz wrote: > If it was interrupted by a s

[PATCH v2 20/21] mk68/mac: Switch to use %ptR

2018-02-20 Thread Andy Shevchenko
Use %ptR instead of open coded variant to print content of struct rtc_time in human readable format. Cc: Geert Uytterhoeven Signed-off-by: Andy Shevchenko --- arch/m68k/Kconfig.machine | 1 + arch/m68k/mac/misc.c | 8 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/

[PATCH v2 01/21] lib/vsprintf: Print time and date in human readable format via %pt

2018-02-20 Thread Andy Shevchenko
There are users which print time and date represented by content of struct rtc_time in human readable format. Instead of open coding that each time introduce %ptR[dt][rv] specifier. Note, users have to select PRINTK_PEXT_TIMEDATE option in a Kconfig. Cc: Arnd Bergmann Cc: Bartlomiej Zolnierkiew

Re: [PATCH] Make kernel taint on invalid module signatures configurable

2018-02-20 Thread Jessica Yu
+++ Matthew Garrett [07/08/17 12:50 -0700]: The default kernel behaviour is for unsigned or invalidly signed modules to load without warning. Right now, If CONFIG_MODULE_SIG is enabled the kernel will be tainted in this case. Distributions may wish to enable CONFIG_MODULE_SIG in order to permit s

[PATCH v2 19/21] Input: hp_sdc_rtc - Switch to use %ptR

2018-02-20 Thread Andy Shevchenko
Use %ptR instead of open coded variant to print content of struct rtc_time in human readable format. Cc: Dmitry Torokhov Signed-off-by: Andy Shevchenko --- drivers/input/misc/Kconfig | 1 + drivers/input/misc/hp_sdc_rtc.c | 8 +++- 2 files changed, 4 insertions(+), 5 deletions(-) diff

Re: [PATCH] bpf: hide a possibly unused variable

2018-02-20 Thread Daniel Borkmann
Hi Arnd, On 02/20/2018 10:16 PM, Arnd Bergmann wrote: > The only user of this variable is inside of an #ifdef, causing > a warning without CONFIG_INET: > > net/core/filter.c: In function 'bpf_sock_ops_cb_flags_set': > net/core/filter.c:3382:6: error: unused variable 'val' > [-Werror=unused-v

[PATCH v2 17/21] rtc: tegra: Switch to use %ptR

2018-02-20 Thread Andy Shevchenko
Use %ptR instead of open coded variant to print content of struct rtc_time in human readable format. Cc: Thierry Reding Cc: Jonathan Hunter Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-tegra.c | 30 +++--- 1 file changed, 3 insertions(+), 27 deletions(-) diff --g

[PATCH v2 21/21] PM: Switch to use %ptR

2018-02-20 Thread Andy Shevchenko
Use %ptR instead of open coded variant to print content of struct rtc_time in human readable format. Cc: linux...@vger.kernel.org Acked-by: Rafael J. Wysocki Signed-off-by: Andy Shevchenko --- drivers/base/power/trace.c | 4 +--- kernel/power/Kconfig | 1 + 2 files changed, 2 insertions(+

[PATCH v2 16/21] rtc: s5m: Switch to use %ptR

2018-02-20 Thread Andy Shevchenko
Use %ptR instead of open coded variant to print content of struct rtc_time in human readable format. Cc: Bartlomiej Zolnierkiewicz Reviewed-by: Krzysztof Kozlowski Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-s5m.c | 27 ++- 1 file changed, 6 insertions(+), 21 del

[PATCH v2 10/21] rtc: pm8xxx: Switch to use %ptR

2018-02-20 Thread Andy Shevchenko
Use %ptR instead of open coded variant to print content of struct rtc_time in human readable format. Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-pm8xxx.c | 16 +--- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/drivers/rtc/rtc-pm8xxx.c b/drivers/rtc/rtc-pm8xxx

[PATCH v2 15/21] rtc: s3c: Switch to use %ptR

2018-02-20 Thread Andy Shevchenko
Use %ptR instead of open coded variant to print content of struct rtc_time in human readable format. Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-s3c.c | 21 + 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c i

[PATCH v2 05/21] rtc: m41t80: Switch to use %ptR

2018-02-20 Thread Andy Shevchenko
Use %ptR instead of open coded variant to print content of struct rtc_time in human readable format. Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-m41t80.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/rtc/rtc-m41t80.c b/drivers/rtc/rtc-m41t80.c index c90f

[PATCH v2 18/21] ds1302: Switch to use %ptR

2018-02-20 Thread Andy Shevchenko
Use %ptR instead of open coded variant to print content of struct rtc_time in human readable format. Cc: Arnd Bergmann Acked-by: Greg Kroah-Hartman Signed-off-by: Andy Shevchenko --- drivers/char/Kconfig | 1 + drivers/char/ds1302.c | 39 ++- 2 files chang

<    1   2   3   4   5   6   7   8   9   >