[PATCH 4.4 51/57] md: fix super_offset endianness in super_1_rdev_size_change

2017-07-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Jason Yan commit 3fb632e40d7667d8bedfabc28850ac06d5493f54 upstream. The sb->super_offset should be big-endian, but the rdev->sb_start is in host byte order, so fix this by

[PATCH 4.4 52/57] tcp: fix tcp_mark_head_lost to check skb len before fragmenting

2017-07-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Neal Cardwell commit d88270eef4b56bd7973841dd1fed387ccfa83709 upstream. This commit fixes a corner case in tcp_mark_head_lost() which was causing the WARN_ON(len >

[PATCH 4.4 54/57] staging: comedi: fix clean-up of comedi_class in comedi_init()

2017-07-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Ian Abbott commit a9332e9ad09c2644c99058fcf6ae2f355e93ce74 upstream. There is a clean-up bug in the core comedi module initialization functions, `comedi_init()`. If the

Re: [PATCH net 01/20] net/hinic: Initialize hw interface

2017-07-13 Thread Aviad Krawczyk (A)
Hi Andrew, Now is the merge window and we need to resubmit. We will fix it when we will resubmit. The version number was used for the ethtool information and module version and will be removed. devm_kzalloc - will be used for the allocation of the memory at initialization. We used pr_ for

[PATCH 2/2] crypto: stm32 - Support for STM32 HASH module

2017-07-13 Thread Lionel Debieve
This module register a HASH module that support multiples algorithms: MD5, SHA1, SHA224, SHA256. It includes the support of HMAC hardware processing corresponding to the supported algorithms. DMA or IRQ mode are used depending on data length. Signed-off-by: Lionel Debieve

Re: KASAN vs. boot-time switching between 4- and 5-level paging

2017-07-13 Thread Kirill A. Shutemov
On Thu, Jul 13, 2017 at 04:52:28PM +0300, Kirill A. Shutemov wrote: > On Thu, Jul 13, 2017 at 03:58:29PM +0300, Andrey Ryabinin wrote: > > On 07/11/2017 10:05 PM, Kirill A. Shutemov wrote: > > >>> Can use your Signed-off-by for a [cleaned up version of your] patch? > > >> > > >> Sure. > > > > > >

[PATCH 05/18] drm/sun4i: tcon: remove unused function

2017-07-13 Thread Maxime Ripard
Even though that function is defined in the TCON header, it's not defined nor used anywhere. Remove the prototype. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_tcon.h | 2 -- 1 file changed, 2 deletions(-) diff --git

[PATCH 04/18] drm/sun4i: Remove useless atomic_check

2017-07-13 Thread Maxime Ripard
The atomic_check callback is optional, and we don't implement anything in some parts of our drivers. Let's remove it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_layer.c | 7 --- drivers/gpu/drm/sun4i/sun4i_rgb.c | 8

[PATCH 03/18] drm/sun4i: Realign Makefile padding and reorder it

2017-07-13 Thread Maxime Ripard
Some options were not padded as they should, and the order in the Makefile was chaotic. Fix that. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/Makefile | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git

[PATCH 01/18] regmap: mmio: Add function to attach a clock

2017-07-13 Thread Maxime Ripard
regmap_init_mmio_clk allows to specify a clock that needs to be enabled while accessing the registers. However, that clock is retrieved through its clock ID, which means it will lookup that clock based on the current device that registers the regmap, and, in the DT case, will only look in that

[PATCH 14/18] dt-bindings: panel: Add Huarui LHR050H41 panel documentation

2017-07-13 Thread Maxime Ripard
The LHR050H41 is a 1280x700 4-lanes DSI panel. Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/display/panel/huarui,lhr050h41.txt | 19 +++ 1 file changed, 19 insertions(+) create mode 100644

Re: [PATCH v8 2/7] perf/x86/intel: Record branch type

2017-07-13 Thread Jin, Yao
On 7/13/2017 10:31 PM, Peter Zijlstra wrote: On Thu, Jul 13, 2017 at 08:04:14PM +0800, Jin Yao wrote: +#define X86_BR_TYPE_MAP_MAX16 + +static int +common_branch_type(int type) +{ + int i, mask; + const int branch_map[X86_BR_TYPE_MAP_MAX] = { + PERF_BR_CALL,

Re: [PATCH v4 1/2] wire: export w1_touch_bit

2017-07-13 Thread Evgeniy Polyakov
Hi Jan, Greg 11.07.2017, 02:00, "Jan Kandziora" : > Changes in v4 against v3 in this subpatch: >   - adapted to linux-4.12.0 > > No changes in v3 against v2,v1 in this subpatch. > > The w1_ds28e17 driver from the next part of this patch needs to emit > single-bit read timeslots to

Re: [RFC PATCH v1 00/11] Create fast idle path for short idle periods

2017-07-13 Thread Li, Aubrey
On 2017/7/13 22:53, Peter Zijlstra wrote: > On Thu, Jul 13, 2017 at 10:48:55PM +0800, Li, Aubrey wrote: > >> - totally from arch_cpu_idle_enter entry to arch_cpu_idle_exit return costs >> 9122ns - 15318ns. >> In this period(arch idle), rcu_idle_enter costs 1985ns - 2262ns, >>

Re: [PATCH v2] power: supply: ltc2941-battery-gauge: Add LTC2944 support

2017-07-13 Thread Bogdan, Dragos
On 07/12/2017 02:12 AM, Ladislav Michl wrote: > On Tue, Jul 11, 2017 at 10:59:11PM +0200, Ladislav Michl wrote: >> On Tue, Jul 11, 2017 at 07:07:32PM +0300, Dragos Bogdan wrote: >>> The only difference between the already supported LTC2943 and LTC2944 is >>> the operating range (3.6V - 20V

[PATCH 4.4 08/57] usb: dwc3: replace %p with %pK

2017-07-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Felipe Balbi commit 04fb365c453e14ff9e8a28f1c46050d920a27a4a upstream. %p will leak kernel pointers, so let's not expose the information on dmesg and instead use

[PATCH 4.4 00/57] 4.4.77-stable review

2017-07-13 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.4.77 release. There are 57 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Sat Jul 15 15:39:40 UTC 2017. Anything

[PATCH 4.4 05/57] mm: fix classzone_idx underflow in shrink_zones()

2017-07-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Vlastimil Babka [Not upstream as that would take 34+ patches] We've got reported a BUG in do_try_to_free_pages(): BUG: unable to handle kernel paging request at

[PATCH 4.4 03/57] driver core: platform: fix race condition with driver_override

2017-07-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Adrian Salido commit 6265539776a0810b7ce6398c27866ddb9c6bd154 upstream. The driver_override implementation is susceptible to race condition when different threads are

Re: [PATCH v2 01/18] mfd: madera: Add register definitions for Cirrus Logic Madera codecs

2017-07-13 Thread Mark Brown
On Thu, Jul 13, 2017 at 01:44:10PM +0100, Richard Fitzgerald wrote: > On Thu, 2017-07-13 at 11:05 +0100, Mark Brown wrote: > > On Thu, Jul 13, 2017 at 09:02:10AM +0100, Lee Jones wrote: > > > This patch has been rejected by Linus. > > > https://lkml.org/lkml/2017/7/7/579 > > Hrm, when I used to

Re: [PATCH net 20/20] net/hinic: Add ethtool and stats

2017-07-13 Thread Aviad Krawczyk (A)
Hi Andrew, We will separate the patches when we will resubmit. Aviad On 7/12/2017 6:43 PM, Andrew Lunn wrote: > On Wed, Jul 12, 2017 at 10:17:26PM +0800, Aviad Krawczyk wrote: > > Hi Avaid > >> + >> +static void hinic_tx_timeout(struct net_device *netdev) >> +{ >> +struct hinic_dev

Re: [PATCH V4 3/6] iommu/arm-smmu: Invoke pm_runtime during probe, add/remove device

2017-07-13 Thread Vivek Gautam
On Thu, Jul 13, 2017 at 11:05 AM, Sricharan R wrote: > Hi Vivek, > > On 7/13/2017 10:43 AM, Vivek Gautam wrote: >> Hi Stephen, >> >> >> On 07/13/2017 04:24 AM, Stephen Boyd wrote: >>> On 07/06, Vivek Gautam wrote: @@ -1231,12 +1237,18 @@ static int

Re: [PATCH 0/2] Notifications for perf sideband events

2017-07-13 Thread Naveen N. Rao
[ Adding Vince...] On 2017/07/12 12:48PM, Jiri Olsa wrote: > On Mon, Jun 19, 2017 at 08:01:06PM +0530, Naveen N. Rao wrote: > > Currently, there is no way to ask for signals to be delivered when a > > certain number of sideband events have been logged into the ring buffer. > > This is

Re: [PATCH 2/2] kernel/events: Add option to enable counting sideband events in wakeup_events

2017-07-13 Thread Naveen N. Rao
On 2017/07/12 12:48PM, Jiri Olsa wrote: > On Mon, Jun 19, 2017 at 08:01:08PM +0530, Naveen N. Rao wrote: > > SNIP > > > - if (!event->attr.watermark) { > > + if (!event->attr.count_sb_events && !event->attr.watermark) { > > int wakeup_events = event->attr.wakeup_events; > > > >

Re: [PATCH V4 3/6] iommu/arm-smmu: Invoke pm_runtime during probe, add/remove device

2017-07-13 Thread Rob Clark
On Thu, Jul 13, 2017 at 9:53 AM, Sricharan R wrote: > Hi, > > On 7/13/2017 5:20 PM, Rob Clark wrote: >> On Thu, Jul 13, 2017 at 1:35 AM, Sricharan R >> wrote: >>> Hi Vivek, >>> >>> On 7/13/2017 10:43 AM, Vivek Gautam wrote: Hi Stephen,

Re: [PATCH] nvmet: preserve controller serial number between reboots

2017-07-13 Thread Martin Wilck
On Thu, 2017-07-13 at 12:48 +0200, Johannes Thumshirn wrote: > The NVMe target has no way to preserve controller serial > IDs across reboots which breaks udev scripts doing > SYMLINK+="dev/disk/by-id/nvme-$env{ID_SERIAL}-part%n. > > Export the randomly generated serial number via configfs and

Re: [PATCH v2] f2fs: Don't clear SGID when inheriting ACLs

2017-07-13 Thread Jan Kara
On Tue 11-07-17 16:31:24, Jaegeuk Kim wrote: > This patch copies commit b7f8a09f80: > "btrfs: Don't clear SGID when inheriting ACLs" written by Jan. > > Fixes: 073931017b49d9458aa351605b43a7e34598caef > CC: sta...@vger.kernel.org > Signed-off-by: Jan Kara > Signed-off-by: Jaegeuk

[PATCH 4.9 13/25] perf scripting perl: Fix compile error with some perl5 versions

2017-07-13 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Wang YanQing commit d7dd112ea5cacf91ae72c0714c3b911eb6016fea upstream. Fix below compile error: CC util/scripting-engines/trace-event-perl.o In file included

[PATCH 4.9 12/25] perf header: Fix handling of PERF_EVENT_UPDATE__SCALE

2017-07-13 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Arnaldo Carvalho de Melo commit 8434a2ec13d5c8cb25716950bfbf7c9d7b64628a upstream. In commit daeecbc0c431 ("perf tools: Add event_update event scale type"), the handling of

[PATCH 4.12 06/10] staging: comedi: fix clean-up of comedi_class in comedi_init()

2017-07-13 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Ian Abbott commit a9332e9ad09c2644c99058fcf6ae2f355e93ce74 upstream. There is a clean-up bug in the core comedi module initialization functions, `comedi_init()`. If the

[PATCH 4.12 04/10] locking/rwsem-spinlock: Fix EINTR branch in __down_write_common()

2017-07-13 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Kirill Tkhai commit a0c4acd2c220376b4e9690e75782d0c0afdaab9f upstream. If a writer could been woken up, the above branch if (sem->count == 0)

[PATCH 4.9 15/25] perf probe: Add error checks to offline probe post-processing

2017-07-13 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Masami Hiramatsu commit 3e96dac7c956089d3f23aca98c4dfca57b6aaf8a upstream. Add error check codes on post processing and improve it for offline probe events as: - post

[PATCH 4.4 44/57] perf annotate browser: Fix behaviour of Shift-Tab with nothing focussed

2017-07-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Markus Trippelsdorf commit d4913cbd05bab685e49c8174896e563b2487d054 upstream. The issue was pointed out by gcc-6's -Wmisleading-indentation. Signed-off-by: Markus

[PATCH 4.4 42/57] perf script: Use readdir() instead of deprecated readdir_r()

2017-07-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arnaldo Carvalho de Melo commit a5e8e825bd1704c488bf6a46936aaf3b9f203d6a upstream. The readdir() function is thread safe as long as just one thread uses a DIR, which is the

[PATCH 4.4 43/57] perf tools: Remove duplicate const qualifier

2017-07-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Eric Engestrom commit 3b556bced46aa6b1873da7faa18eff235e896adc upstream. Signed-off-by: Eric Engestrom Cc: Adrian Hunter

[PATCH 0/3] STM32 CRC update

2017-07-13 Thread Lionel Debieve
This set of patches update the STM32 CRC driver. It contains two corrections and one global Kconfig rework. First correction is about the relaxed usage in scope of arm platform usage, second about a unbind driver issue. Last patch is about a Kconfig rework that make configuration generic for STM32

[PATCH 2/3] crypto: stm32 - solve crc issue during unbind

2017-07-13 Thread Lionel Debieve
Use the correct unregister_shashes function to to remove the registered algo Signed-off-by: Lionel Debieve Reviewed-by: Fabien Dessenne --- drivers/crypto/stm32/stm32_crc32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 1/3] crypto: stm32 - CRC use relaxed function

2017-07-13 Thread Lionel Debieve
In case of arm soc support, readl and writel will be optimized using relaxed functions Signed-off-by: Lionel Debieve Reviewed-by: Fabien Dessenne --- drivers/crypto/stm32/stm32_crc32.c | 15 --- 1 file changed, 8 insertions(+), 7

[PATCH 3/3] crypto: stm32 - Rename module to use generic crypto

2017-07-13 Thread Lionel Debieve
The complete stm32 module is rename as crypto in order to use generic naming Signed-off-by: Lionel Debieve Reviewed-by: Fabien Dessenne --- drivers/crypto/Makefile | 2 +- drivers/crypto/stm32/Kconfig | 6 +++---

[PATCH] usb: gadget: ffs: handle I/O completion in-order

2017-07-13 Thread John Keeping
By submitting completed transfers to the system workqueue there is no guarantee that completion events will be queued up in the correct order, so if a large bulk transfer is being read with aio the data may arrive in the wrong order. Create a single-threaded workqueue for FunctionFS so that

Re: [PATCH v3 0/2] [media] videobuf2-dc: Add support for cacheable MMAP

2017-07-13 Thread Russell King - ARM Linux
On Thu, Jul 13, 2017 at 01:13:28PM +0200, Marek Szyprowski wrote: > Hi Christoph, > > On 2017-07-05 19:33, Christoph Hellwig wrote: > >On Mon, Jul 03, 2017 at 11:27:32AM +0200, Marek Szyprowski wrote: > >>The main question here if we want to merge incomplete solution or not. As > >>for now, there

Re: [PATCH] nbd: kill unused ret in recv_work

2017-07-13 Thread Jens Axboe
On 07/13/2017 05:20 AM, Kefeng Wang wrote: > No need to return value in queue work, kill ret variable. Applied, thanks. -- Jens Axboe

[PATCH v5 2/2] clk: stm32h7: Add stm32h743 clock driver

2017-07-13 Thread gabriel.fernandez
From: Gabriel Fernandez This patch enables clocks for STM32H743 boards. Signed-off-by: Gabriel Fernandez for MFD changes: Acked-by: Lee Jones for DT-Bindings Acked-by: Rob Herring ---

Re: [PATCH v2 02/10] cpufreq: provide data for frequency-invariant load-tracking support

2017-07-13 Thread Sudeep Holla
On 12/07/17 12:14, Peter Zijlstra wrote: > On Wed, Jul 12, 2017 at 02:57:55PM +0530, Viresh Kumar wrote: >> On 12-07-17, 10:31, Peter Zijlstra wrote: >>> So the problem with the thread is two-fold; one the one hand we like the >>> scheduler to directly set frequency, but then we need to schedule

[PATCH v5 0/2] clk: stm32h7: Add stm32h743 clock driver

2017-07-13 Thread gabriel.fernandez
From: Gabriel Fernandez v5: - return bool instead int for enable_power_domain_write_protection() - add comment to explain use of CLK_OF_DECLARE_DRIVER() - add comment to explain why we can't use read_poll_timeout() - expose clk_gate_ops::is_enabled - use of

[PATCH 16/18] arm: dts: sun8i: a33: Add the DSI-related nodes

2017-07-13 Thread Maxime Ripard
The A33 has a MIPI-DSI block, along with its D-PHY. Let's add it in order to use it in the relevant boards. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-a33.dtsi | 50 - 1 file changed, 49 insertions(+), 1 deletion(-)

[PATCH 10/18] drm/sun4i: tcon: Move out the tcon0 common setup

2017-07-13 Thread Maxime Ripard
Some channel0 setup has to be done, no matter what the output interface is (RGB, CPU, LVDS). Move that code into a common function in order to avoid duplication. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 26 --

[PATCH 07/18] drm/sun4i: tcon: Don't rely on encoders to set the TCON mode

2017-07-13 Thread Maxime Ripard
Just like we did for the TCON enable and disable, for historical reasons we used to rely on the encoders calling the TCON mode_set function, while the CRTC has a callback for that. Let's implement it in order to reduce the boilerplate code. Signed-off-by: Maxime Ripard

[PATCH 08/18] drm/sun4i: tcon: Add TRI finish interrupt for vblank

2017-07-13 Thread Maxime Ripard
The "CPU" (or Intel 8080) interface uses a different interrupt called TRI_FINISH (most likely TRI being for trigger) to notify the end of frames, and hence the VBLANK period. And that interrupt to the possible VBLANK interrupts source. Signed-off-by: Maxime Ripard

[PATCH 06/18] drm/sun4i: tcon: Don't rely on encoders to enable the TCON

2017-07-13 Thread Maxime Ripard
So far, we've required all the TCON-connected encoders to call the TCON enable and disable functions. This was made this way because in the RGB/LVDS case, the TCON is the CRTC and the encoder. However, in all the other cases (HDMI, TV, DSI, etc.), we have another encoder down the road that needs

[PATCH 09/18] drm/sun4i: tcon: Adjust dotclock dividers range

2017-07-13 Thread Maxime Ripard
It seems like the dotclock dividers are a bit less strict range, and can operate even with a smaller than 6 divider. Loose the boundaries a bit. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_dotclock.c | 20 +++- 1 file changed,

Re: [PATCH] staging drivers fixed coding style error

2017-07-13 Thread Greg KH
On Thu, Jul 13, 2017 at 07:17:56AM -0700, smklearn wrote: > Fixed coding style error flagged checkpatch.pl: > - ERROR: space prohibited after that open parenthesis '(' > - WARNING: Block comments use * on subsequent lines > > Signed-off-by: Shy More > > Output

Re: [PATCH v1] staging: rts5208: Change fixed function names with "%s: ", __func__

2017-07-13 Thread Greg KH
On Thu, Jul 13, 2017 at 08:02:20PM +0530, Gaurav Pathak wrote: > staging: rts5208: Fixed compiler errors for dev_dbg() That's not what this patch does :( Please also use the correct mailing list, scripts/get_maintainer.pl is your friend... thanks, greg k-h

Re: [PATCH v8 2/7] perf/x86/intel: Record branch type

2017-07-13 Thread Jin, Yao
Sorry, please ignore my previous response. On 7/13/2017 10:31 PM, Peter Zijlstra wrote: On Thu, Jul 13, 2017 at 08:04:14PM +0800, Jin Yao wrote: +#define X86_BR_TYPE_MAP_MAX16 + +static int +common_branch_type(int type) +{ + int i, mask; + const int

[PATCH] [media] staging/atomisp: fix minor coding style warnings

2017-07-13 Thread smklearn
Below were the minor issues flagged by checkpatch.pl: - WARNING: Block comments use * on subsequent lines - ERROR: space prohibited after that open parenthesis '(' Signed-off-by: Shy More --- .../css2400/runtime/isys/src/ibuf_ctrl_rmgr.c | 26 +++--- 1

[BUG]: NULL ptr dereference in xlog_cil_push+0x274/0x430

2017-07-13 Thread Dmitry Safonov
] [ 60.995694] Oops: 0002 [#1] SMP [ 60.996004] CPU: 0 PID: 2053 Comm: unix_sock Not tainted 4.12.0-next-20170713 #6 [ 60.996706] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-20170228_101828-anatol 04/01/2014 [ 60.997657] task: 880074748c80 task.stack: c9594000

Re: [PATCH] nvmet: preserve controller serial number between reboots

2017-07-13 Thread Christoph Hellwig
On Thu, Jul 13, 2017 at 05:08:25PM +0200, Martin Wilck wrote: > I'm wondering if this should be a write-once attribute. Also, > Once the serial number has been passed on to some host (or maybe only: > while the device is in use by some host), the attribute should probably > be read-only. In

[PATCH 4.9 11/25] perf bench numa: Avoid possible truncation when using snprintf()

2017-07-13 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Arnaldo Carvalho de Melo commit 3aff8ba0a4c9c9191bb788171a1c54778e1246a2 upstream. Addressing this warning from gcc 7: CC /tmp/build/perf/bench/numa.o

[PATCH 4.9 02/25] Add "shutdown" to "struct class".

2017-07-13 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Josh Zimmerman commit f77af15165847406b15d8f70c382c4cb15846b2a upstream. The TPM class has some common shutdown code that must be executed for all drivers. This adds some

[PATCH 4.9 06/25] tools strfilter: Use __fallthrough

2017-07-13 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Arnaldo Carvalho de Melo commit d64b721d27aef3fbeb16ecda9dd22ee34818ff70 upstream. The implicit fall through case label here is intended, so let us inform that to gcc >= 7:

[PATCH 4.9 10/25] perf tests: Avoid possible truncation with dirent->d_name + snprintf

2017-07-13 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Arnaldo Carvalho de Melo commit 2e2bbc039fad9eabad6c4c1a473c8b2554cdd2d4 upstream. Addressing a few cases spotted by a new warning in gcc 7: tests/parse-events.c: In

[PATCH 4.9 08/25] perf thread_map: Correctly size buffer used with dirent->dt_name

2017-07-13 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Arnaldo Carvalho de Melo commit bdf23a9a190d7ecea092fd5c4aabb7d4bd0a9980 upstream. The size of dirent->dt_name is NAME_MAX + 1, but the size for the 'path' buffer is hard

[PATCH 3.18 14/22] pinctrl: sh-pfc: Update info pointer after SoC-specific init

2017-07-13 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Geert Uytterhoeven commit 3091ae775fae17084013021d01513bc1ad274e6a upstream. Update the sh_pfc_soc_info pointer after calling the SoC-specific initialization

[PATCH 3.18 12/22] usb: Fix typo in the definition of Endpoint[out]Request

2017-07-13 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Benjamin Herrenschmidt commit 7cf916bd639bd26db7214f2205bccdb4b9306256 upstream. The current definition is wrong. This breaks my upcoming Aspeed virtual hub driver.

[PATCH 3.18 01/22] driver core: platform: fix race condition with driver_override

2017-07-13 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Adrian Salido commit 6265539776a0810b7ce6398c27866ddb9c6bd154 upstream. The driver_override implementation is susceptible to race condition when different threads are

[PATCH 3.18 00/22] 3.18.61-stable review

2017-07-13 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 3.18.61 release. There are 22 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Sat Jul 15 15:39:17 UTC 2017. Anything

Re: [PATCH] nvmet: preserve controller serial number between reboots

2017-07-13 Thread Christoph Hellwig
On Thu, Jul 13, 2017 at 03:30:39PM +0300, Sagi Grimberg wrote: > It seems weird that a subsystem has a serial. But that's actually how NVMe defines them. Which mean we first need to fix our code to generate a serial number per subsystem, and on top of that the patch from Johannes seems perfectly

[PATCH v2] clk: qcom: clk-smd-rpm: Fix the reported rate of branches

2017-07-13 Thread Georgi Djakov
As there is no way to actually query the hardware for the current clock rate, now racalc_rate() just returns the last rate that was previously set. But if the rate was not set yet, we return the bogus rate of 1000Hz. The branch clocks actually have the same rate as their parent (xo_board), so

[PATCH 11/18] dt-bindings: display: Add Allwinner MIPI-DSI bindings

2017-07-13 Thread Maxime Ripard
The Allwinner SoCs usually come with a DSI encoder. Add a binding for it. Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/display/sunxi/sun6i-dsi.txt | 85 +++- 1 file changed, 85 insertions(+) create mode 100644

[PATCH 18/18] [DO NOT MERGE] arm: dts: sun8i: bpi-m2m: Add DSI display

2017-07-13 Thread Maxime Ripard
The BananaPi M2M has an optional 1280x720 DSI panel. Since that panel is optional, we can only show a DT patch that would show how to enable it. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dts | 39 +- 1 file

[PATCH v5 4/4] x86/boot/KASLR: Restrict kernel to be randomized in mirror regions

2017-07-13 Thread Baoquan He
Kernel text may be located in non-mirror regions (movable zone) when both address range mirroring feature and KASLR are enabled. The address range mirroring feature arranges such mirror region into normal zone and other region into movable zone in order to locate kernel code and data in mirror

[PATCH v5 3/4] x86/boot/KASLR: Rename process_e820_entry() into process_mem_region()

2017-07-13 Thread Baoquan He
Now process_e820_entry() is not limited to e820 entry processing, rename it to process_mem_region(). And adjust the code comment accordingly. Signed-off-by: Baoquan He Acked-by: Kees Cook --- arch/x86/boot/compressed/kaslr.c | 6 +++--- 1 file changed, 3

[PATCH v5 2/4] x86/boot/KASLR: Switch to pass struct mem_vector to process_e820_entry()

2017-07-13 Thread Baoquan He
This makes process_e820_entry() be able to process any kind of memory region. Signed-off-by: Baoquan He Acked-by: Kees Cook --- arch/x86/boot/compressed/kaslr.c | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git

[PATCH v5 1/4] x86/boot/KASLR: Wrap e820 entries walking code into new function process_e820_entries()

2017-07-13 Thread Baoquan He
The original function process_e820_entry() only takes care of each e820 entry passed. And move the E820_TYPE_RAM checking logic into process_e820_entries(). And remove the redundent local variable 'addr' definition in find_random_phys_addr(). Signed-off-by: Baoquan He

[PATCH v5 0/4] x86/boot/KASLR: Restrict kernel to be randomized in mirror regions

2017-07-13 Thread Baoquan He
Our customer reported that Kernel text may be located on non-mirror region (movable zone) when both address range mirroring feature and KASLR are enabled. The functions of address range mirroring feature are as follows. - The physical memory region whose descriptors in EFI memory map have

Re: [PATCH v8 2/7] perf/x86/intel: Record branch type

2017-07-13 Thread Peter Zijlstra
On Thu, Jul 13, 2017 at 08:04:14PM +0800, Jin Yao wrote: > +#define X86_BR_TYPE_MAP_MAX 16 > + > +static int > +common_branch_type(int type) > +{ > + int i, mask; > + const int branch_map[X86_BR_TYPE_MAP_MAX] = { > + PERF_BR_CALL, /* X86_BR_CALL */ > +

Re: [PATCH v2 02/10] cpufreq: provide data for frequency-invariant load-tracking support

2017-07-13 Thread Sudeep Holla
On 13/07/17 15:42, Peter Zijlstra wrote: > On Thu, Jul 13, 2017 at 03:04:09PM +0100, Sudeep Holla wrote: > >> The question is whether we *need* to know the completion of frequency >> transition. What is the impact of absence of it ? I am considering >> platforms which may take up to a ms or

Re: [BUG]: NULL ptr dereference in unix_stream_sendmsg+0x1c1/0x380

2017-07-13 Thread Dmitry Safonov
-20170713 #6 [ 60.996706] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-20170228_101828-anatol 04/01/2014 [ 60.997657] task: 880074748c80 task.stack: c9594000 [ 60.998208] RIP: 0010:skb_queue_tail+0x2e/0x50 [ 60.998614] RSP: 0018:c9597cf8 EFLAGS: 00010046

Re: [kernel-hardening] [PATCH 00/11] S.A.R.A. a new stacked LSM

2017-07-13 Thread Mimi Zohar
On Thu, 2017-07-13 at 08:39 -0400, Matt Brown wrote: > On 7/11/17 3:31 PM, Mimi Zohar wrote: > > On Tue, 2017-07-11 at 13:49 -0400, Matt Brown wrote: > > > >> I have merged my TPE LSM with Mimi Zohar's shebang LSM and will be > >> releasing a version 3 soon. I have also added securityfs support

Re: [PATCH 0/2] Notifications for perf sideband events

2017-07-13 Thread Vince Weaver
On Thu, 13 Jul 2017, Naveen N. Rao wrote: > > could you please check on this? thanks > > > > Naveen, > > have you run Vince's test suite on this? > > http://github.com/deater/perf_event_tests.git > > I just tried this and I see quite a few failures even without these > patches. > > The

[PATCH 3.18 18/22] mqueue: fix a use-after-free in sys_mq_notify()

2017-07-13 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Cong Wang commit f991af3daabaecff34684fd51fac80319d1baad1 upstream. The retry logic for netlink_attachskb() inside sys_mq_notify() is nasty and vulnerable: 1) The

[PATCH 3.18 04/22] bgmac: add check for oversized packets

2017-07-13 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Felix Fietkau commit 6a6c708469c9e10fd87adcc3abff164270538d62 upstream. In very rare cases, the MAC can catch an internal buffer that is bigger than it's supposed to be.

[PATCH 4.4 11/57] usb: usbip: set buffer pointers to NULL after free

2017-07-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Michael Grzeschik commit b3b51417d0af63fb9a06662dc292200aed9ea53f upstream. The usbip stack dynamically allocates the transfer_buffer and setup_packet of each urb

[PATCH 4.4 12/57] usb: Fix typo in the definition of Endpoint[out]Request

2017-07-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Benjamin Herrenschmidt commit 7cf916bd639bd26db7214f2205bccdb4b9306256 upstream. The current definition is wrong. This breaks my upcoming Aspeed virtual hub driver.

[PATCH 3.18 21/22] staging: comedi: fix clean-up of comedi_class in comedi_init()

2017-07-13 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Ian Abbott commit a9332e9ad09c2644c99058fcf6ae2f355e93ce74 upstream. There is a clean-up bug in the core comedi module initialization functions, `comedi_init()`. If the

[GIT PULL] pwm: Changes for v4.13-rc1

2017-07-13 Thread Thierry Reding
Hi Linus, The following changes since commit 2ea659a9ef488125eb46da6eb571de5eae5c43f6: Linux 4.12-rc1 (2017-05-13 13:19:49 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm.git tags/pwm/for-4.13-rc1 for you to fetch

[PATCH] input: serio: Fix multiline comments style in xilinx_ps2

2017-07-13 Thread Michal Simek
Fix multiline comments style not to be reported by checkpatch. Signed-off-by: Michal Simek --- drivers/input/serio/xilinx_ps2.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/input/serio/xilinx_ps2.c b/drivers/input/serio/xilinx_ps2.c

Re: [PATCH linux v2 1/3] drivers: w1: add hwmon support structures

2017-07-13 Thread Guenter Roeck
On 07/12/2017 02:41 PM, Jaghathiswari Rankappagounder Natarajan wrote: This patch has changes to w1.h/w1.c/w1_family.h generic files to add (optional) hwmon support structures. Signed-off-by: Jaghathiswari Rankappagounder Natarajan Acked-by: Evgeniy Polyakov

[PATCH 17/18] arm: dts: sun8i: Add BananaPI M2-Magic DTS

2017-07-13 Thread Maxime Ripard
The Bananapi M2-Magic is a board with an A33, a USB host and USB OTG connectors, and 8GB eMMC, an AP6212 WiFi/Bluetooth chip and connectors for DSI, CSI and GPIOs. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/Makefile | 1 +-

[PATCH 15/18] drm/panel: Add Huarui LHR050H41 panel driver

2017-07-13 Thread Maxime Ripard
The LHR050H41 panel is the panel shipped with the BananaPi M2-Magic. Add a driver for it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/panel/Kconfig | 9 +- drivers/gpu/drm/panel/Makefile | 1 +-

[PATCH v7 0/3] Add new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag

2017-07-13 Thread Ding Tianhong
Some devices have problems with Transaction Layer Packets with the Relaxed Ordering Attribute set. This patch set adds a new PCIe Device Flag, PCI_DEV_FLAGS_NO_RELAXED_ORDERING, a set of PCI Quirks to catch some known devices with Relaxed Ordering issues, and a use of this new flag by the cxgb4

[PATCH] Crypto_user: Make crypto user API available for all net ns

2017-07-13 Thread Christian Langrock
With this patch it's possible to use crypto user API form all network namespaces, not only form the initial net ns. Signed-off-by: Christian Langrock --- crypto/crypto_user.c| 39 ++- include/net/net_namespace.h | 1 +

[PATCH v7 2/3] PCI: Enable PCIe Relaxed Ordering if supported

2017-07-13 Thread Ding Tianhong
The PCIe Device Control Register use the bit 4 to indicate that whether the device is permitted to enable relaxed ordering or not. But relaxed ordering is not safe for some platform which could only use strong write ordering, so devices are allowed (but not required) to enable relaxed ordering bit

[PATCH v7 3/3] net/cxgb4: Use new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag

2017-07-13 Thread Ding Tianhong
From: Casey Leedom cxgb4 Ethernet driver now queries PCIe configuration space to determine if it can send TLPs to it with the Relaxed Ordering Attribute set. Remove the enable_pcie_relaxed_ordering() to avoid enable PCIe Capability Device Control[Relaxed Ordering Enable] at

Re: [PATCH 1/2] kernel/events: Add option to notify through signals on wakeup

2017-07-13 Thread Naveen N. Rao
On 2017/07/12 01:46PM, Peter Zijlstra wrote: > On Mon, Jun 19, 2017 at 08:01:07PM +0530, Naveen N. Rao wrote: > > > diff --git a/kernel/events/core.c b/kernel/events/core.c > > index 6c4e523dc1e2..812fcfc767f4 100644 > > --- a/kernel/events/core.c > > +++ b/kernel/events/core.c > > @@ -2679,7

Re: [RFC PATCH v1 00/11] Create fast idle path for short idle periods

2017-07-13 Thread Peter Zijlstra
On Thu, Jul 13, 2017 at 10:48:55PM +0800, Li, Aubrey wrote: > - totally from arch_cpu_idle_enter entry to arch_cpu_idle_exit return costs > 9122ns - 15318ns. > In this period(arch idle), rcu_idle_enter costs 1985ns - 2262ns, > rcu_idle_exit > costs 1813ns - 3507ns > > Besides RCU,

Re: [PATCH 2/2] kernel/events: Add option to enable counting sideband events in wakeup_events

2017-07-13 Thread Naveen N. Rao
On 2017/07/12 01:48PM, Peter Zijlstra wrote: > On Mon, Jun 19, 2017 at 08:01:08PM +0530, Naveen N. Rao wrote: > > diff --git a/kernel/events/ring_buffer.c b/kernel/events/ring_buffer.c > > index 4e7c728569a8..f43a6081141f 100644 > > --- a/kernel/events/ring_buffer.c > > +++

[PATCH 7/9] dt-bindings: serial: add compatible for stm32h7

2017-07-13 Thread Bich HEMON
From: Fabrice Gasnier Introduce new compatibles for "st,stm32h7-usart" and "st,stm32h7-uart". This new compatible allow to use optional wake-up interrupt. Signed-off-by: Fabrice Gasnier Signed-off-by: Bich Hemon ---

[PATCH 1/9] serial: stm32: fix copyright

2017-07-13 Thread Bich HEMON
Fix missing copyright for STMicroelectronics Signed-off-by: Bich Hemon --- drivers/tty/serial/stm32-usart.c | 1 + drivers/tty/serial/stm32-usart.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index

Re: [linux,v2,3/3] drivers: w1: add hwmon temp support for w1_therm

2017-07-13 Thread Guenter Roeck
On Wed, Jul 12, 2017 at 02:41:18PM -0700, Jaghathiswari Rankappagounder Natarajan wrote: > This change adds hwmon temp support for w1_therm. > > Signed-off-by: Jaghathiswari Rankappagounder Natarajan > Acked-by: Evgeniy Polyakov > --- > v2 > - make changes

<    1   2   3   4   5   6   7   8   9   10   >