[PATCH] vt: fix \e[2m using the wrong placeholder color on graphical consoles

2017-06-03 Thread Adam Borowski
Only vgacon and sisusbcon did it right, the rest (via generic code) tried underline (usually cyan). Signed-off-by: Adam Borowski --- Compare this if clause with the two above it. Nice copypaste. :) drivers/tty/vt/vt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/

[PATCH v4 4/6] clk: qcom: Add ipq8074 Global Clock Controller support

2017-06-03 Thread Varadarajan Narayanan
From: Abhishek Sahu This patch adds support for the global clock controller found on the ipq8074 based devices. This includes UART, I2C, SPI etc. Signed-off-by: Abhishek Sahu Signed-off-by: Varadarajan Narayanan --- drivers/clk/qcom/Kconfig |9 + drivers/clk/qcom/Makefile |

[PATCH v4 0/6] Add minimal boot support for IPQ8074

2017-06-03 Thread Varadarajan Narayanan
v4: * Split the clock patch and addressed a minor comment in the clock driver as per stephen's feedback. v3: * Addressed review feedback from Bjorn for pinctrl - Unified the names for qpic pads. - Corrected the names for pwm pins. * Updated pinctrl documentation. * Updated th

[PATCH v4 1/6] pinctrl: qcom: Add ipq8074 pinctrl driver

2017-06-03 Thread Varadarajan Narayanan
Add initial pinctrl driver to support pin configuration with pinctrl framework for ipq8074. Signed-off-by: Manoharan Vijaya Raghavan Signed-off-by: Varadarajan Narayanan --- .../bindings/pinctrl/qcom,ipq8074-pinctrl.txt | 172 drivers/pinctrl/qcom/Kconfig | 10

[PATCH v4 5/6] arm64: dts: Add ipq8074 SoC and HK01 board support

2017-06-03 Thread Varadarajan Narayanan
Add initial device tree support for the Qualcomm IPQ8074 SoC and HK01 evaluation board. Signed-off-by: Manoharan Vijaya Raghavan Signed-off-by: Abhishek Sahu Signed-off-by: Varadarajan Narayanan --- arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/ipq8074-hk01.dts |

[PATCH v4 3/6] clk: qcom: Add DT bindings for ipq8074 gcc clock controller

2017-06-03 Thread Varadarajan Narayanan
From: Abhishek Sahu Add the compatible strings and the include file for ipq8074 gcc clock controller. Acked-by: Rob Herring (bindings) Signed-off-by: Varadarajan Narayanan Signed-off-by: Abhishek Sahu --- .../devicetree/bindings/clock/qcom,gcc.txt | 1 + include/dt-bindings/clock/q

[PATCH v4 6/6] arm64: defconfig: Enable qcom ipq8074 clock and pinctrl

2017-06-03 Thread Varadarajan Narayanan
From: Abhishek Sahu These configs are required for booting kernel in qcom ipq8074 boards. Signed-off-by: Abhishek Sahu Signed-off-by: Varadarajan Narayanan --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/

[PATCH v4 2/6] dt-bindings: qcom: Add ipq8074 bindings

2017-06-03 Thread Varadarajan Narayanan
Acked-by: Rob Herring Signed-off-by: Varadarajan Narayanan --- Documentation/devicetree/bindings/arm/qcom.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.txt b/Documentation/devicetree/bindings/arm/qcom.txt index 028d16e..0ed4d39 100644 --- a

[PATCH 0/5] vt: get rid of worst cases of __put_user/__get_user

2017-06-03 Thread Adam Borowski
Hi! In a recent discussion, Linus and Al Viro said quite a bit of expletives about __put_user() and __get_user(), that it's a bad interface that's almost always the wrong thing to use: https://marc.info/?l=linux-kernel&m=149463725626316&w=2 https://marc.info/?l=linux-kernel&m=149465866929092&w=2 H

[PATCH 5/5] vt: drop access_ok() calls in unimap ioctls

2017-06-03 Thread Adam Borowski
Done by copy_{from,to}_user(). Signed-off-by: Adam Borowski --- drivers/tty/vt/vt_ioctl.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/tty/vt/vt_ioctl.c b/drivers/tty/vt/vt_ioctl.c index 0cbfe1ff6f6c..96d389cb506c 100644 --- a/drivers/tty/vt/vt_ioctl.c +++ b/drivers/tty/vt/

[PATCH 2/5] vt: fix unchecked __put_user() in tioclinux ioctls

2017-06-03 Thread Adam Borowski
Only read access is checked before this call. Actually, at the moment this is not an issue, as every in-tree arch does the same manual checks for VERIFY_READ vs VERIFY_WRITE, relying on the MMU to tell them apart, but this wasn't the case in the past and may happen again on some odd arch in the fu

[tip:smp/hotplug] perf/core: Don't release cred_guard_mutex if not taken

2017-06-03 Thread tip-bot for Alexander Levin
Commit-ID: e5aeee51f6b4fb22e851105ee6d8ad211c40a214 Gitweb: http://git.kernel.org/tip/e5aeee51f6b4fb22e851105ee6d8ad211c40a214 Author: Alexander Levin AuthorDate: Sat, 3 Jun 2017 03:39:13 + Committer: Thomas Gleixner CommitDate: Sat, 3 Jun 2017 09:28:45 +0200 perf/core: Don't relea

[PATCH 4/5] vt: use memdup_user in PIO_UNIMAP ioctl

2017-06-03 Thread Adam Borowski
Again, a nice linear transfer that simplifies the code. Signed-off-by: Adam Borowski --- drivers/tty/vt/consolemap.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/tty/vt/consolemap.c b/drivers/tty/vt/consolemap.c index c6a692f63a9b..a5f88cf0f61d 100644 -

[PATCH 3/5] vt: use copy_to_user instead of __put_user in GIO_UNIMAP ioctl

2017-06-03 Thread Adam Borowski
A nice big linear transfer, no need to flip stac/PAN/etc every half-entry. Also, yay __put_user() after checking only read. Signed-off-by: Adam Borowski --- drivers/tty/vt/consolemap.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/tty/vt/consolemap.c

[PATCH 1/5] vt: use copy_from/to_user instead of __get/put_user for scrnmap ioctls

2017-06-03 Thread Adam Borowski
Linus wants to get rid of these functions, and these uses are especially egregious: they copy a big linear array element by element. Signed-off-by: Adam Borowski --- drivers/tty/vt/consolemap.c | 31 +++ 1 file changed, 7 insertions(+), 24 deletions(-) diff --git a/d

[PATCH] acpi: handle the acpi hotplug schedule error

2017-06-03 Thread Lee, Chun-Yi
Kernel should the decrement reference count of acpi device when acpi hotplug work scheduling is failed. And, kernel should evaluates _OST to notify BIOS the failure. Cc: "Rafael J. Wysocki" Cc: Len Brown Signed-off-by: "Lee, Chun-Yi" --- drivers/acpi/bus.c | 10 -- 1 file changed, 8 in

Re: [PATCH] mm: make PR_SET_THP_DISABLE immediately active

2017-06-03 Thread Michal Hocko
On Fri 02-06-17 13:40:38, Andrew Morton wrote: > On Fri, 2 Jun 2017 22:31:47 +0200 Vlastimil Babka wrote: > > > On 06/02/2017 09:50 PM, Andrew Morton wrote: > > > On Fri, 2 Jun 2017 18:03:22 +0300 "Mike Rapoport" > > > wrote: > > > > > >> PR_SET_THP_DISABLE has a rather subtle semantic. It do

[tip:smp/urgent] cpu/hotplug: Drop the device lock on error

2017-06-03 Thread tip-bot for Sebastian Andrzej Siewior
Commit-ID: 40da1b11f01e43aad1aa6cea64681b6125e8a2a7 Gitweb: http://git.kernel.org/tip/40da1b11f01e43aad1aa6cea64681b6125e8a2a7 Author: Sebastian Andrzej Siewior AuthorDate: Fri, 2 Jun 2017 16:27:14 +0200 Committer: Thomas Gleixner CommitDate: Sat, 3 Jun 2017 09:35:04 +0200 cpu/hotplug:

Re: [PATCH RT] sched: Prevent task state corruption by spurious lock wakeup

2017-06-03 Thread Thomas Gleixner
On Fri, 2 Jun 2017, Thomas Gleixner wrote: > Mathias and some others reported GDB failures on RT. > > The following scenario leads to task state corruption: > > CPU0 CPU1 > > T1->state = TASK_XXX; > spin_lock(&lock) > rt_spin_lock_slowlock(&lock->rtmut

Re: ath9k_htc - Division by zero in kernel (as well as firmware panic)

2017-06-03 Thread Oleksij Rempel
Hi, Am 03.06.2017 um 00:02 schrieb Nathan Royce: > ODroid XU4 > > $ uname -a > Linux computer 4.12.0-rc3-dirty #1 SMP Wed May 31 15:02:05 CDT 2017 > armv7l GNU/Linux > > $ lsusb > ... > Bus 001 Device 002: ID 2109:2813 VIA Labs, Inc. > Bus 001 Device 010: ID 0cf3:7015 Qualcomm Atheros Communicat

Re: [PATCH v3 3/8] nvmet: implement namespace identify descriptor list

2017-06-03 Thread Sagi Grimberg
switch (type) { case NVME_NQN_NVME: diff --git a/drivers/nvme/target/nvmet.h b/drivers/nvme/target/nvmet.h index cfc5c7fb0ab7..4c6cb5ea1186 100644 --- a/drivers/nvme/target/nvmet.h +++ b/drivers/nvme/target/nvmet.h @@ -46,6 +46,7 @@ struct nvmet_ns { u32

Re: security/keys: add CONFIG_KEYS_COMPAT to Kconfig

2017-06-03 Thread David Howells
Eric Biggers wrote: > This patch is in the "keys-fixes" branch now, but it doesn't remove > KEYS_COMPAT > from arch/arm64/Kconfig. David, can you fix it? Thanks! Done. See below. David --- commit 90fe15899ffa2f7c6dd9a7c257c840cfbd523aad Author: Bilal Amarni Date: Fri Jun 2 14:29:19 2017

Re: [PATCH 2/2] tick: Make sure tick timer is active when bypassing reprogramming

2017-06-03 Thread Levin, Alexander (Sasha Levin)
On Fri, Apr 21, 2017 at 04:00:55PM +0200, Frederic Weisbecker wrote: > diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c > index 502b320..be7ca4d 100644 > --- a/kernel/time/tick-sched.c > +++ b/kernel/time/tick-sched.c > @@ -783,8 +783,13 @@ static ktime_t tick_nohz_stop_sched_tick(s

Re: Support for RGB/YUV 10, 12 BPC(bits per color/component) image data formats in kernel

2017-06-03 Thread Sakari Ailus
Hi Ajay, On Fri, Jun 02, 2017 at 06:38:53PM +0530, Ajay kumar wrote: > Hi all, > > I have tried searching for RGB/YUV 10, 12 BPC formats in videodev2.h, > media-bus-format.h and drm_fourcc.h > I could only find RGB 10BPC support in drm_fourcc.h. > I guess not much support is present for formats w

Re: ath9k_htc - Division by zero in kernel (as well as firmware panic)

2017-06-03 Thread Nathan Royce
On Sat, Jun 3, 2017 at 2:57 AM, Oleksij Rempel wrote: > Hm... this function and file: > linux/drivers/net/wireless/ath/ath9k/common-beacon.c > didn't changed since 2015. So, it should be some thing different. > Can you run > git bisect to find exact patch caused this regression? > That was the fir

Re: [PATCH] iio: humidity: hdc100x: document compatible HDC10xx devices

2017-06-03 Thread Jonathan Cameron
On Fri, 2 Jun 2017 10:09:21 -0500 Michael Stecklein wrote: > Include datasheet links to compatible HDC10xx devices. > > Signed-off-by: Michael Stecklein Hi Michael, Would you mind also adding the i2c_device_id entries for these other parts and updating the kconfig help to mention that they are

Re: [PATCH] iio: adc: mxs-lradc: fix non-static symbol warnings

2017-06-03 Thread Jonathan Cameron
On Thu, 1 Jun 2017 01:50:55 +0200 Paolo Cretaro wrote: > Fix sparse warning "symbol foo was not declared. Should it be static?" > for the following symbols: > mx23_lradc_adc_irq_names > mx28_lradc_adc_irq_names > iio_dev_attr_in_voltage0_scale_available > iio_dev_attr_in_voltage1_scale_available

Re: [PATCH] iio:adc:lpc32xx Handle return value of clk_prepare_enable

2017-06-03 Thread Jonathan Cameron
On Tue, 30 May 2017 16:35:27 +0530 Arvind Yadav wrote: > clk_prepare_enable() can fail here and we must check its return value. > > Signed-off-by: Arvind Yadav Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. Thanks, Jonathan > --- > dri

Re: [PATCH] iio: Aspeed ADC - Handle return value of clk_prepare_enable

2017-06-03 Thread Jonathan Cameron
On Mon, 29 May 2017 13:12:12 +0530 Arvind Yadav wrote: > clk_prepare_enable() can fail here and we must check its return value. > > Signed-off-by: Arvind Yadav Please make sure to cc the driver author. This is a fairly new driver, so chances are Rick will still be answering this email address.

Re: [PATCH] iio: adc: meson-saradc: use NULL instead of 0 for pointer

2017-06-03 Thread Jonathan Cameron
On Sun, 28 May 2017 23:17:57 +0200 Martin Blumenstingl wrote: > Hi Paolo, Hi Jonathan, > > On Sun, May 28, 2017 at 4:43 PM, Jonathan Cameron wrote: > > On Sun, 28 May 2017 13:24:38 +0200 > > Paolo Cretaro wrote: > > > >> Fix sparse warning: Using plain integer as NULL pointer > >> > >> Signe

Re: [PATCH v2 2/3] iio: adc: Fix integration time/averaging for INA219/220

2017-06-03 Thread Jonathan Cameron
On Sun, 28 May 2017 17:00:51 +0100 Jonathan Cameron wrote: > On Wed, 24 May 2017 20:50:45 +0100 > Jonathan Cameron wrote: > > > On Wed, 24 May 2017 02:09:06 +0200 > > Stefan Brüns wrote: > > > > > INA226/230/231 has integration times per voltage channel and common > > > averaging setting fo

Re: [PATCH/RFC] iio: hi8435: do not enable all events by default

2017-06-03 Thread Jonathan Cameron
On Mon, 29 May 2017 08:40:26 +0300 Nikita Yushchenko wrote: > >> Still, isn't there subsystem-level default that all events are disabled > >> by default? If such, then current hi8435 state breaks subsystem-level > >> rules, which is a [userspace-visible] bug. I'm not sure how far should > >> we

[PATCH 1/1] usb/early: Remove trace_printk() callers in xhci-dbc

2017-06-03 Thread Lu Baolu
Trace_printk() was used to log debug messages in xhci-dbc.c where printk() isn't feasible. As there should not be a single caller to trace_printk() in normal kernels, replace them with empty functions. Cc: Vlastimil Babka Cc: Steven Rostedt Cc: Peter Zijlstra Cc: Greg Kroah-Hartman Signed-off-

Re: [HMM 00/15] HMM (Heterogeneous Memory Management) v22

2017-06-03 Thread Balbir Singh
On Fri, Jun 2, 2017 at 8:38 AM, Jerome Glisse wrote: > On Thu, Jun 01, 2017 at 12:04:02PM +1000, Balbir Singh wrote: >> On Thu, May 25, 2017 at 3:53 AM, Jerome Glisse wrote: >> > On Wed, May 24, 2017 at 11:55:12AM +1000, Balbir Singh wrote: >> >> On Tue, May 23, 2017 at 2:51 AM, Jérôme Glisse wr

Re: [PATCH v2 1/5] dt-bindings: iio: stm32-adc: add support for STM32H7

2017-06-03 Thread Jonathan Cameron
On Mon, 29 May 2017 11:28:16 +0200 Fabrice Gasnier wrote: > Document support for STM32H7 Analog to Digital Converter. > Main difference is regarding compatible, clock definitions and new > features like differential channels support: > STM32H7 ADC block has two clock inputs, common clock for all

Re: [PATCH v2 2/5] iio: adc: stm32: make core adc clock optional by default

2017-06-03 Thread Jonathan Cameron
On Mon, 29 May 2017 11:28:17 +0200 Fabrice Gasnier wrote: > Analog clock input is mandatory on stm32f4. But newer version of > ADC hardware block allow to select either bus clock or asynchronous > clock, for analog circuitry. > > So, make it optional by default, but enforce clk presence on stm32

Re: [PATCH v2 4/5] iio: adc: stm32: make per instance bus clock optional

2017-06-03 Thread Jonathan Cameron
On Mon, 29 May 2017 11:28:19 +0200 Fabrice Gasnier wrote: > STM32F4 requires one clock per ADC instance for register access. But, > newer version of ADC hardware block have common bus clock for all > instances (per instance driver isn't responsible for getting it). > So, make it optional by defau

Re: [PATCH v2 5/5] iio: adc: stm32: add support for STM32H7

2017-06-03 Thread Jonathan Cameron
On Mon, 29 May 2017 11:28:20 +0200 Fabrice Gasnier wrote: > Add support for STM32H7 Analog to Digital Converter. It has up > to 20 external channels, resolution ranges from 8 to 16bits. > Either bus or asynchronous adc clock may be used. > > Add registers & bitfields definition. Also add new con

Re: [PATCH v2 3/5] iio: adc: stm32: introduce compatible data cfg

2017-06-03 Thread Jonathan Cameron
On Mon, 29 May 2017 11:28:18 +0200 Fabrice Gasnier wrote: > Prepare support for stm32h7 adc variant by introducing compatible > configuration data. > Move STM32F4 specific stuff to compatible data structure: > - registers & bit fields > - input channels data > - start/stop procedures > - trigger

Re: [PATCH 5/7] iio: adc: twl4030: Drop struct twl4030_madc_user_parms

2017-06-03 Thread Jonathan Cameron
On Thu, 27 Apr 2017 17:30:10 +0200 Sebastian Reichel wrote: > This struct is no longer used by anything in the kernel. > > Signed-off-by: Sebastian Reichel Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to see if we have missed anything. Jonathan > --- >

Re: [PATCH 4/7] iio: adc: twl4030: Unexport twl4030_madc_conversion()

2017-06-03 Thread Jonathan Cameron
On Sun, 30 Apr 2017 17:35:47 +0100 Jonathan Cameron wrote: > On 27/04/17 16:30, Sebastian Reichel wrote: > > All madc users have been converted to IIO API, so drop the > > legacy API. The function is still used inside of the driver. > > > > Signed-off-by: Sebastian Reichel > Acked-by: Jonatha

Re: [PATCH 3/7] iio: adc: twl4030: Drop twl4030_get_madc_conversion()

2017-06-03 Thread Jonathan Cameron
On Sun, 30 Apr 2017 17:35:04 +0100 Jonathan Cameron wrote: > On 27/04/17 16:30, Sebastian Reichel wrote: > > Drop legacy twl4030_get_madc_conversion() method. It has been > > used by drivers to get madc data before it conversion to IIO > > API. There are no users in the mainline kernel anymore. >

Re: [PATCH 7/7] iio: adc: twl4030: Fold twl4030-madc.h into driver

2017-06-03 Thread Jonathan Cameron
On Sun, 30 Apr 2017 17:38:07 +0100 Jonathan Cameron wrote: > On 27/04/17 16:30, Sebastian Reichel wrote: > > twl4030-madc.h is no longer used by anything outside of > > the iio driver, so it can be merged into the driver. > > > > Signed-off-by: Sebastian Reichel > Acked-by: Jonathan Cameron

[PATCH V2] regmap: drop LZO cache support

2017-06-03 Thread Jonas Gorski
This is effectivly a revert of 2cbbb579bcbe3 ("regmap: Add the LZO cache support"). After it was added there were never any users added, the only submitted user was changed to RBTREE before being added. It has been unused code for almost six years. Since LZO support itself has its own size, it cur

Re: [RFC PATCH v2 11/17] cgroup: Implement new thread mode semantics

2017-06-03 Thread Tejun Heo
Hello, On Fri, Jun 02, 2017 at 04:36:22PM -0400, Waiman Long wrote: > I wouldn't argue further on that if you insist. However, I still want to Oh, please don't get me wrong. I'm not trying to shut down the discussion or anything. It's just that whole-scope discussions can get very meandering an

Re: [PATCH] mm: make PR_SET_THP_DISABLE immediately active

2017-06-03 Thread Mike Rapoprt
On June 2, 2017 11:55:12 PM GMT+03:00, Vlastimil Babka wrote: >On 06/02/2017 10:40 PM, Andrew Morton wrote: >> On Fri, 2 Jun 2017 22:31:47 +0200 Vlastimil Babka >wrote: Perhaps we should be adding new prctl modes to select this new behaviour and leave the existing PR_SET_THP_DISABLE b

Re: [kernel-hardening] [PATCH v1 1/1] Add Trusted Path Execution as a stackable LSM

2017-06-03 Thread Jann Horn
On Sat, Jun 3, 2017 at 7:53 AM, Matt Brown wrote: > This patch was modified from Brad Spengler's Trusted Path Execution (TPE) > feature in Grsecurity and also incorporates logging ideas from > cormander's tpe-lkm. > > Modifications from the Grsecurity implementation of TPE were made to > turn it i

Re: [PATCH] mm: make PR_SET_THP_DISABLE immediately active

2017-06-03 Thread Mike Rapoprt
On June 2, 2017 10:50:59 PM GMT+03:00, Andrew Morton wrote: >On Fri, 2 Jun 2017 18:03:22 +0300 "Mike Rapoport" > wrote: > >> PR_SET_THP_DISABLE has a rather subtle semantic. It doesn't affect >any >> existing mapping because it only updated mm->def_flags which is a >template >> for new mapping

[PATCH] kernel/power/suspend: use CONFIG_HAVE_SET_MEMORY for include condition

2017-06-03 Thread Balbir Singh
Kbuild reported a build failure when CONFIG_STRICT_KERNEL_RWX was enabled on powerpc. We don't yet have ARCH_HAS_SET_MEMORY and ppc32 saw a build failure. fixes(50327dd kernel/power/snapshot.c: use set_memory.h header) I've only done a basic compile test with a config that has hibernation enabled

Re: [PATCH v5 3/7] selftests/seccomp: Force rebuild according to dependencies

2017-06-03 Thread Mickaël Salaün
Hi Shuah, On 02/06/2017 21:31, Shuah Khan wrote: > Hi Mickaël, > > On 05/26/2017 12:43 PM, Mickaël Salaün wrote: >> Rebuild the seccomp tests when kselftest_harness.h is updated. >> >> Signed-off-by: Mickaël Salaün >> Acked-by: Kees Cook >> Cc: Andy Lutomirski >> Cc: Shuah Khan >> Cc: Will Dr

Re: [PATCH v5 7/7] Documentation/dev-tools: Add kselftest_harness documentation

2017-06-03 Thread Mickaël Salaün
On 02/06/2017 22:02, Shuah Khan wrote: > Hi Mickaël, > > On 05/26/2017 12:44 PM, Mickaël Salaün wrote: >> Add ReST metadata to kselftest_harness.h to be able to include the >> comments in the Sphinx documentation. >> > > These don't belong the change log. These types of changes are for > reviewe

Re: [PATCH 1/2] perf report: ensure the perf DSO mapping matches what libdw sees

2017-06-03 Thread Milian Wolff
On Freitag, 2. Juni 2017 21:49:10 CEST Arnaldo Carvalho de Melo wrote: > Em Fri, Jun 02, 2017 at 06:21:44PM +0200, Milian Wolff escreveu: > > On Freitag, 2. Juni 2017 17:23:41 CEST Arnaldo Carvalho de Melo wrote: > > > Looks ok, having both implementations matching and the callchains making > > > s

Re: [PATCH 2/6] x86/elf: move 32 bit ELF_ET_DYN_BASE to 256MB

2017-06-03 Thread Daniel Micay
On Fri, 2017-06-02 at 21:22 -0700, Kees Cook wrote: > On Fri, Jun 2, 2017 at 8:20 AM, wrote: > > From: Rik van Riel > > > > When setting up mmap_base, we take care to start the mmap base > > below the maximum extent to which the stack will grow. However, > > we take no such precautions with PIE

[PATCH] net: Update TCP congestion control documentation

2017-06-03 Thread Anmol Sarma
Update tcp.txt to fix mandatory congestion control ops and default CCA selection. Also, fix comment in tcp.h for undo_cwnd. Signed-off-by: Anmol Sarma --- Documentation/networking/tcp.txt | 31 +-- include/net/tcp.h| 2 +- 2 files changed, 14 insertio

Re: [kernel-hardening] [PATCH 0/6] move mmap_area and PIE binaries away from the stack

2017-06-03 Thread Daniel Micay
On Fri, 2017-06-02 at 21:37 -0700, Kees Cook wrote: > > Patches 3 and 4 need some (minor?) adjustments It's currently a bug fix. Doing something further would be more than fixing the bug and should probably be separate.

Re: [kernel-hardening] [PATCH 3/6] x86/mmap: properly account for stack randomization in mmap_base

2017-06-03 Thread Daniel Micay
On Fri, 2017-06-02 at 21:46 -0700, Kees Cook wrote: > On Fri, Jun 2, 2017 at 8:20 AM, wrote: > > From: Rik van Riel > > > > When RLIMIT_STACK is, for example, 256MB, the current code results > > in > > a gap between the top of the task and mmap_base of 256MB, failing to > > take into account th

Re: get_random_bytes returns bad randomness before seeding is complete

2017-06-03 Thread Jason A. Donenfeld
On Sat, Jun 3, 2017 at 7:04 AM, Theodore Ts'o wrote: > has been pretty terrible? > This kind of "my shit doesn't stink, but yours does", is not > The reason why I keep harping on this is because I'm concerned about > an absolutist attitude towards technical design, where the good is the Moving pa

[PATCH] Staging: ccree: ssi_aead.h: Fixed a comment coding style issue.

2017-06-03 Thread srishti sharma
Fixed a comment coding style issue , block comments use * on subsequent lines. Signed-off-by: srishti sharma --- drivers/staging/ccree/ssi_aead.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/ccree/ssi_aead.h b/drivers/staging/ccree/ssi_aead.h index 9cf

Re: [PATCH 2/2] tick: Make sure tick timer is active when bypassing reprogramming

2017-06-03 Thread Frederic Weisbecker
On Sat, Jun 03, 2017 at 08:06:41AM +, Levin, Alexander (Sasha Levin) wrote: > On Fri, Apr 21, 2017 at 04:00:55PM +0200, Frederic Weisbecker wrote: > > diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c > > index 502b320..be7ca4d 100644 > > --- a/kernel/time/tick-sched.c > > +++ b/

Re: [PATCH v5 3/8] thermal: intel_bxt_pmic_thermal: Use first level PMIC thermal irq

2017-06-03 Thread Andy Shevchenko
On Thu, Jun 1, 2017 at 1:37 AM, wrote: > From: Kuppuswamy Sathyanarayanan > > PMIC mfd driver only exports first level irq for thermal device. > But currently we are reading the irqs from the second level irq > chip, So this patch fixes this issue by adding support to use > first level PMIC therm

Re: [PATCH 2/2] tick: Make sure tick timer is active when bypassing reprogramming

2017-06-03 Thread Levin, Alexander (Sasha Levin)
On Sat, Jun 03, 2017 at 02:42:43PM +0200, Frederic Weisbecker wrote: > On Sat, Jun 03, 2017 at 08:06:41AM +, Levin, Alexander (Sasha Levin) > wrote: > > On Fri, Apr 21, 2017 at 04:00:55PM +0200, Frederic Weisbecker wrote: > > > diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c >

Re: [PATCH v5 5/8] gpio: gpio-wcove: Use first level PMIC GPIO irq

2017-06-03 Thread Andy Shevchenko
On Thu, Jun 1, 2017 at 1:37 AM, wrote: > From: Kuppuswamy Sathyanarayanan > > PMIC mfd driver only exports first level irq for GPIO device. > But currently we are reading the irqs from the second level irq > chip, So this patch fixes this issue by adding support to use > first level PMIC GPIO irq

Re: [PATCH v5 6/8] mfd: intel_soc_pmic_bxtwc: Utilize devm_* functions in driver probe

2017-06-03 Thread Andy Shevchenko
On Thu, Jun 1, 2017 at 1:37 AM, wrote: > Cleanup the resource allocation/free code in probe function by using > devm_* calls. This change is okay. Reviewed-by: Andy Shevchenko > Signed-off-by: Kuppuswamy Sathyanarayanan > > Acked-for-MFD-by: Lee Jones > --- > drivers/mfd/intel_soc_pmic_bxt

[PATCH 0/4] mfd: make da90xx drivers explicitly non-modular

2017-06-03 Thread Paul Gortmaker
At the risk of repeating the same boiler plate, in this cleanup we continue to make driver code consistent with the Makefiles/Kconfigs that control them. This means not using modular functions/macros for drivers that can never be built as a module. Some of the main downfalls this leads to are:

[PATCH 3/4] mfd: da9055-core: make it explicitly non-modular

2017-06-03 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config MFD_DA9055 drivers/mfd/Kconfig:bool "Dialog Semiconductor DA9055 PMIC Support" ...meaning that it is never being built as a module. Remove the modular code that is essentially orphaned, so that when rea

[PATCH 2/4] mfd: da9052-*: Make it explicitly non-modular

2017-06-03 Thread Paul Gortmaker
The Kconfigis currently controlling compilation of this code are: mfd/Kconfig:config MFD_DA9052_SPI mfd/Kconfig:bool "Dialog Semiconductor DA9052/53 PMIC variants with SPI" mfd/Kconfig:config MFD_DA9052_I2C mfd/Kconfig:bool "Dialog Semiconductor DA9052/53 PMIC variants with I2C" drivers/

[PATCH 4/4] mfd: da9055-i2c: Make it explicitly non-modular

2017-06-03 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config MFD_DA9055 drivers/mfd/Kconfig:bool "Dialog Semiconductor DA9055 PMIC Support" ...meaning that it is never being built as a module. Remove the modular code that is essentially orphaned, so that when rea

[PATCH 1/4] mfd: da903x: Make it explicitly non-modular

2017-06-03 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config PMIC_DA903X drivers/mfd/Kconfig:bool "Dialog Semiconductor DA9030/DA9034 PMIC Support" ...meaning that it currently is not being built as a module by anyone. Remove the modular code that is essentially

Re: [PATCH v5 7/8] mfd: intel_soc_pmic_bxtwc: Use chained irqs for second level irq chips

2017-06-03 Thread Andy Shevchenko
On Thu, Jun 1, 2017 at 1:37 AM, wrote: > From: Kuppuswamy Sathyanarayanan > > Whishkey cove PMIC has support to mask/unmask interrupts at two levels. > At first level we can mask/unmask interrupt domains like TMU, GPIO, ADC, > CHGR, BCU THERMAL and PWRBTN and at second level, it provides facility

Re: [PATCH v5 0/8] mfd: intel_soc_pmic_bxtwc: Add chained IRQ support

2017-06-03 Thread Andy Shevchenko
On Thu, Jun 1, 2017 at 1:37 AM, wrote: > From: Kuppuswamy Sathyanarayanan > > Following patch set adds chained IRQ support to WCOVE PMIC driver. I commented some patches, the rest looks okay. Please, address and send new version. -- With Best Regards, Andy Shevchenko

Re: [PATCH] kernel/power/suspend: use CONFIG_HAVE_SET_MEMORY for include condition

2017-06-03 Thread Pavel Machek
On Sat 2017-06-03 20:52:32, Balbir Singh wrote: > Kbuild reported a build failure when CONFIG_STRICT_KERNEL_RWX was > enabled on powerpc. We don't yet have ARCH_HAS_SET_MEMORY and ppc32 > saw a build failure. > > fixes(50327dd kernel/power/snapshot.c: use set_memory.h header) > > I've only done a

Re: nouveau "eDP-1: EDID is invalid" regression after 4.11 with HP ZBook 15 G3

2017-06-03 Thread Tommi Rantala
2017-05-15 8:20 GMT+03:00 Tommi Rantala : > 2017-05-15 3:03 GMT+03:00 Ben Skeggs : >> On 05/15/2017 01:10 AM, Tommi Rantala wrote: >>> >>> Hi, >> >> Hey Tommi, >> >> Thanks for bisecting this. It's rather unexpected that you should be seeing >> problems here, but, the commit makes sense for it at

[PATCH v3 0/2] tty: add TIOCGPTPEER ioctl

2017-06-03 Thread Aleksa Sarai
Changes in v3: * Defined a compat_ioctl callback for all pty ioctls, since they are all 32-bit and 64-bit compatible. * Made TIOCGPTPEER support 32-bit userspace. Aleksa Sarai (2): tty: add compat_ioctl callbacks tty: add TIOCGPTPEER ioctl Makefile | 1

[PATCH v3 1/2] tty: add compat_ioctl callbacks

2017-06-03 Thread Aleksa Sarai
In order to avoid future diversions between fs/compat_ioctl.c and drivers/tty/pty.c, define .compat_ioctl callbacks for the relevant tty_operations structs. Since both pty_unix98_ioctl() and pty_bsd_ioctl() are compatible between 32-bit and 64-bit userspace no special translation is required. Sign

Re: [PATCH 6/7] perf report: mark inlined frames in output by " (inlined)" suffix

2017-06-03 Thread Milian Wolff
On Montag, 22. Mai 2017 14:48:18 CEST Namhyung Kim wrote: > On Thu, May 18, 2017 at 09:34:10PM +0200, Milian Wolff wrote: > > The original patch that introduced inline frame output in the > > various browsers used this suffix already. The new centralized > > approach that uses fake symbols for inli

[PATCH v3 2/2] tty: add TIOCGPTPEER ioctl

2017-06-03 Thread Aleksa Sarai
When opening the slave end of a PTY, it is not possible for userspace to safely ensure that /dev/pts/$num is actually a slave (in cases where the mount namespace in which devpts was mounted is controlled by an untrusted process). In addition, there are several unresolvable race conditions if usersp

[GIT PULL] hwmon fixes for v4.12-rc4

2017-06-03 Thread Guenter Roeck
Hi Linus, Please pull hwmon fixes for Linux v4.12-rc4 from signed tag: git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-for-linus-v4.12-rc4 Thanks, Guenter -- The following changes since commit 08332893e37af6ae779367e78e444f8f9571511d: Linux 4.12-rc2 (201

Re: [PATCH] fs/buffer.c: make bh_lru_install() more efficient

2017-06-03 Thread Sean Fu
On Sat, Mar 25, 2017 at 08:34:30PM -0700, Eric Biggers wrote: > On Thu, Dec 29, 2016 at 01:34:45PM -0600, Eric Biggers wrote: > > From: Eric Biggers > > > > To install a buffer_head into the cpu's LRU queue, bh_lru_install() > > would construct a new copy of the queue and then memcpy it over the

[PATCH 4/8] genirq/affinity: assign vectors to all present CPUs

2017-06-03 Thread Christoph Hellwig
Currently we only assign spread vectors to online CPUs, which ties the IRQ mapping to the currently online devices and doesn't deal nicely with the fact that CPUs could come and go rapidly due to e.g. power management. Instead assign vectors to all present CPUs to avoid this churn. For this we ha

[PATCH 5/8] genirq/affinity: update CPU affinity for CPU hotplug events

2017-06-03 Thread Christoph Hellwig
Remove a CPU from the affinity mask when it goes offline and add it back when it returns. In case the vetor was assigned only to the CPU going offline it will be shutdown and re-started when the CPU reappears. Signed-off-by: Christoph Hellwig --- arch/x86/kernel/irq.c | 3 +- include/lin

[PATCH 7/8] blk-mq: create hctx for each present CPU

2017-06-03 Thread Christoph Hellwig
Currently we only create hctx for online CPUs, which can lead to a lot of churn due to frequent soft offline / online operations. Instead allocate one for each present CPU to avoid this and dramatically simplify the code. Signed-off-by: Christoph Hellwig --- block/blk-mq.c | 120 +++

[PATCH 3/8] genirq/affinity: factor out a irq_affinity_set helper

2017-06-03 Thread Christoph Hellwig
Factor out code from the x86 cpu hot plug code to program the affinity for a vector for a hot plug / hot unplug event. Signed-off-by: Christoph Hellwig --- arch/x86/kernel/irq.c | 23 ++- include/linux/interrupt.h | 1 + kernel/irq/affinity.c | 28 +++

[PATCH 8/8] nvme: allocate queues for all possible CPUs

2017-06-03 Thread Christoph Hellwig
Unlike most drіvers that simply pass the maximum possible vectors to pci_alloc_irq_vectors NVMe needs to configure the device before allocting the vectors, so it needs a manual update for the new scheme of using all present CPUs. Signed-off-by: Christoph Hellwig --- drivers/nvme/host/pci.c | 2 +

[PATCH 6/8] blk-mq: include all present CPUs in the default queue mapping

2017-06-03 Thread Christoph Hellwig
This way we get a nice distribution independent of the current cpu online / offline state. Signed-off-by: Christoph Hellwig --- block/blk-mq-cpumap.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/block/blk-mq-cpumap.c b/block/blk-mq-cpumap.c index 8e61e8640e17..5eaecd4

[PATCH 1/8] genirq: allow assigning affinity to present but not online CPUs

2017-06-03 Thread Christoph Hellwig
This will allow us to spread MSI/MSI-X affinity over all present CPUs and thus better deal with systems where cpus are take on and offline all the time. Signed-off-by: Christoph Hellwig --- kernel/irq/manage.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/irq/m

[PATCH 2/8] genirq: move pending helpers to internal.h

2017-06-03 Thread Christoph Hellwig
So that the affinity code can reuse them. Signed-off-by: Christoph Hellwig --- kernel/irq/internals.h | 38 ++ kernel/irq/manage.c| 28 2 files changed, 38 insertions(+), 28 deletions(-) diff --git a/kernel/irq/internals.h b/k

spread MSI(-X) vectors to all possible CPUs V2

2017-06-03 Thread Christoph Hellwig
Hi all, this series changes our automatic MSI-X vector assignment so that it takes all present CPUs into account instead of all online ones. This allows to better deal with cpu hotplug events, which could happen frequently due to power management for example. Changes since V1: - rebase to curre

Re: [PATCH] Staging: ccree: cc_crypto_ctx.h: Fixed a comment coding style issue.

2017-06-03 Thread Greg KH
On Wed, May 31, 2017 at 06:24:55PM +0530, srishti sharma wrote: > Fixed a comment coding style issue that generated a warning stating that > block comments should align the * on each line. > Please properly line-wrap your changelog comments :( You also sent 2 different patches, that did differe

Re: [PATCH] drivers: staging: lustre: lustre: llite: file.c - fixed sparse warning about different fmode_t type

2017-06-03 Thread Greg Kroah-Hartman
On Mon, Apr 24, 2017 at 11:28:58AM +0100, Andrea della Porta wrote: > Fixed the following sparse warning: > > CHECK drivers/staging/lustre/lustre/llite//file.c > drivers/staging/lustre/lustre/llite//file.c:441:24: warning: incorrect > type in assignment (different base types) > drivers/s

Re: [PATCH] Staging: ccree: ssi_aead.h: Fixed a pointer declaration error.

2017-06-03 Thread Greg KH
On Sat, Jun 03, 2017 at 04:15:17AM +0530, srishti sharma wrote: > Fixed a pointer declaration error , the dereferencing operator was misplaced. Odd use of a , Also, I don't understand what was "misplaced" here? There does not seem to be a "error" fixed here...

Re: [PATCH v4 10/10] staging: fsl-mc: move bus driver out of staging

2017-06-03 Thread Greg KH
On Wed, May 31, 2017 at 01:58:52PM +0300, laurentiu.tu...@nxp.com wrote: > From: Stuart Yoder Your subject says 'v4' yet the other patches here in the series do not, they say nothing, or 'v2', and the 0/10 patch says 'v6'! Please fix up and do this correctly. The _whole_ patch series is version

Re: [PATCH 01/10] staging: fsl-mc: enclose macro params in parens

2017-06-03 Thread Greg KH
On Wed, May 31, 2017 at 01:58:43PM +0300, laurentiu.tu...@nxp.com wrote: > From: Laurentiu Tudor > > Several macros didn't had macro params enclosed > in parens. Fix them to avoid precedence issues. > > Found with checkpatch.pl who was issuing this > message: > "Macro argument 'id' may be bett

Re: [PATCH v2 02/20] staging: ccree: replace bit shift with BIT macro

2017-06-03 Thread Greg Kroah-Hartman
On Thu, Jun 01, 2017 at 02:02:52PM +0300, Gilad Ben-Yossef wrote: > CC_CTX_SIZE was being defined using a hand rolled bit shift operation. > Replace with use of BIT macro. > > Signed-off-by: Gilad Ben-Yossef > --- > drivers/staging/ccree/cc_crypto_ctx.h | 2 +- > 1 file changed, 1 insertion(+),

Re: [PATCH V2] libcfs: Fix a sleep-in-atomic bug in cfs_wi_exit

2017-06-03 Thread Greg KH
On Wed, May 31, 2017 at 04:00:41PM +0800, Jia-Ju Bai wrote: > The driver may sleep under a spin lock, and the function call path is: > cfs_wi_exit (acquire the lock by spin_lock) > LASSERT > lbug_with_loc > libcfs_debug_dumplog > schedule and kthread_run --> may sleep > > To fi

Re: [PATCH V2 00/27] Drivers: ccree - align block comments

2017-06-03 Thread Greg KH
On Tue, May 30, 2017 at 06:09:37PM +1200, Derek Robson wrote: > Fixed block comments across whole ccree driver > > Version #1 has some trailing white space issue in a few patches Some of these applied, some did not :(

Re: [PATCH V2 01/27] Drivers: ccree: ssi_sysfs.h - align block comments

2017-06-03 Thread Greg KH
On Tue, May 30, 2017 at 06:09:54PM +1200, Derek Robson wrote: > Fixed block comment alignment, Style fix only > Found using checkpatch > > Signed-off-by: Derek Robson > --- > drivers/staging/ccree/ssi_sysfs.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Does not apply to my tree :(

Re: [PATCH] rts5208: Fix a sleep-in-atomic bug in rtsx_exclusive_enter_ss

2017-06-03 Thread Greg KH
On Thu, Jun 01, 2017 at 11:43:35AM +0800, Jia-Ju Bai wrote: > The driver may sleep under a spin lock, and the function call path is: > rtsx_exclusive_enter_ss (acquire the lock by spin_lock) > rtsx_enter_ss > rtsx_power_off_card > sd_cleanup_work > sd_stop_seq_mode > s

Re: [PATCH v3 26/27] thunderbolt: Add documentation how Thunderbolt bus can be used

2017-06-03 Thread Greg Kroah-Hartman
On Fri, Jun 02, 2017 at 05:05:23PM +0300, Mika Westerberg wrote: > Since there are no such tool yet that handles all the low-level details > of connecting devices and upgrading their firmware, add a small document > that shows how the Thunderbolt bus can be used directly from command > line. > > S

Re: [PATCH v3 00/27] Thunderbolt security levels and NVM firmware upgrade

2017-06-03 Thread Greg Kroah-Hartman
On Fri, Jun 02, 2017 at 05:04:57PM +0300, Mika Westerberg wrote: > Hi, > > This is a third version of the patch series adding support for Thunderbolt > security levels and NVM firmware upgrade. PCs running Intel Falcon Ridge or > newer need these in order to connect devices if the security level i

Re: [PATCH v2] misc: atmel-ssc: Handle return value of clk_prepare_enable and clk_prepare

2017-06-03 Thread Greg KH
On Fri, Jun 02, 2017 at 11:09:02AM +0530, Arvind Yadav wrote: > clk_prepare_enable() and clk_prepare() can fail here and > we must check its return value. > > Signed-off-by: Arvind Yadav > --- > drivers/misc/atmel-ssc.c | 12 ++-- > 1 file changed, 10 insertions(+), 2 deletions(-) What

  1   2   3   >