[PATCH 02/11] perf data: Don't store auxtrace index for directory data file

2019-03-08 Thread Jiri Olsa
We can't store auxtrace index when we store to multiple files, because we keep only offset for it, not the file. The auxtrace data will be processed correctly in the 'pipe' mode. Link: http://lkml.kernel.org/n/tip-og11od5s6nfxuf0ftxyu8...@git.kernel.org Signed-off-by: Jiri Olsa ---

[PATCH 05/11] perf header: Add DIR_FORMAT feature to describe directory data

2019-03-08 Thread Jiri Olsa
The data files layout is described by HEADER_DIR_FORMAT feature. Currently it holds only version number (1): uint64_t version; The current version holds only version value (1) means that data files: - follow the 'data.*' name format - contain raw events data in standard perf format as

[PATCH 04/11] perf data: Make perf_data__size to work over directory

2019-03-08 Thread Jiri Olsa
Making perf_data__size to return proper size for directory data. Link: http://lkml.kernel.org/n/tip-t4dm8cctat2ginmy2bb08...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/data.c | 17 + tools/perf/util/data.h | 6 +- 2 files changed, 18 insertions(+), 5

[PATCH 03/11] perf data: Add perf_data__update_dir function

2019-03-08 Thread Jiri Olsa
Adding perf_data__update_dir function to update size for every file within the perf.data directory. Link: http://lkml.kernel.org/n/tip-3ii12l48u4tyvrzxo1797...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/data.c | 20 tools/perf/util/data.h | 1 + 2 files

[PATCHv5 00/11] perf record: Add support to store data in directory

2019-03-08 Thread Jiri Olsa
hi, this patchset adds the --dir option to record command (and all the other record command that overload cmd_record) that allows the data to be stored in directory with multiple data files. It's next step for multiple threads implementation in record. It's now possible to make directory data via

Re: [PATCH 2/3] scripts/ima: define a set of common functions

2019-03-08 Thread Mimi Zohar
On Fri, 2019-03-08 at 10:44 +0800, Dave Young wrote: > Hi Mimi, > > Still did not get change to have a look at V2, but seems you missed the > last chunk of comments about the secure boot mode in previous reply? > > I just copy it hear: > ''' > Do you want to get the Secureboot status here? > I

Re: [PATCH v4 05/15] perf tools report: Parse time quantum

2019-03-08 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 05, 2019 at 06:47:48AM -0800, Andi Kleen escreveu: > From: Andi Kleen > > Many workloads change over time. perf report currently aggregates > the whole time range reported in perf.data. > > This patch adds an option for a time quantum to quantisize the > perf.data over time. > >

Re: [PATCH 8/8] media: vimc: propagate pixel format in the stream

2019-03-08 Thread Hans Verkuil
Hi Helen, On 3/6/19 11:42 PM, Helen Koike wrote: > Media bus codes were being mapped to pixelformats, which causes a > limitation on vimc because not all pixelformats can be mapped to media > bus codes. > Also, media bus codes are an internal configuration from the device. > Userspace only

Re: [PATCH 5/7] drivers: firmware: psci: Simplify state node parsing

2019-03-08 Thread Ulf Hansson
On Fri, 8 Mar 2019 at 14:31, Lorenzo Pieralisi wrote: > > On Fri, Mar 08, 2019 at 02:23:26PM +0100, Ulf Hansson wrote: > > On Fri, 8 Mar 2019 at 14:17, Lorenzo Pieralisi > > wrote: > > > > > > On Fri, Mar 08, 2019 at 02:07:51PM +0100, Ulf Hansson wrote: > > > > On Fri, 8 Mar 2019 at 12:49,

Re: [PATCH v4 1/2] Provide in-kernel headers for making it easy to extend the kernel

2019-03-08 Thread Joel Fernandes
HI Geert, On Fri, Mar 8, 2019, 3:53 AM Geert Uytterhoeven wrote: > > It is just so much easier to use tar + xz at build time, and leave the > > decompression task to the user. After decompression, the files will live on > > the disk and the page-cache mechanism will free memory when/if the files

Re: [PATCH net] net: selinux: fix memory leak in selinux_netlbl_socket_post_create()

2019-03-08 Thread maowenan
On 2019/3/8 21:20, Paul Moore wrote: > On Fri, Mar 8, 2019 at 1:31 AM maowenan wrote: >> On 2019/3/8 4:36, Paul Moore wrote: >>> On Wed, Mar 6, 2019 at 9:44 PM Mao Wenan wrote: If netlbl_sock_setattr() is failed, it directly returns rc and forgets to free secattr.

Re: [PATCH 3/3] x86/ima: retry detecting secure boot mode

2019-03-08 Thread Mimi Zohar
On Thu, 2019-03-07 at 14:50 -0800, Matthew Garrett wrote: > On Thu, Mar 7, 2019 at 2:48 PM Mimi Zohar wrote: > > I added this last attempt because I'm seeing this on my laptop, with > > some older, buggy firmware. > > Is the issue that it gives incorrect results on the first read, or is > the

Re: [PATCH v4 03/15] perf tools script: Filter COMM/FORK/.. events by CPU

2019-03-08 Thread Arnaldo Carvalho de Melo
Em Thu, Mar 07, 2019 at 12:02:31PM +0100, Jiri Olsa escreveu: > On Wed, Mar 06, 2019 at 04:23:40PM +0200, Adrian Hunter wrote: > > On 5/03/19 4:47 PM, Andi Kleen wrote: > > > From: Andi Kleen > > > > > > The --cpu option only filtered samples. Filter other perf events, > > > such as COMM, FORK,

Re: [PATCH v2 1/8] mmc: sdhci: Get rid of finish_tasklet

2019-03-08 Thread Adrian Hunter
On 6/03/19 12:00 PM, Faiz Abbas wrote: > Adrian, > > On 25/02/19 1:47 PM, Adrian Hunter wrote: >> On 15/02/19 9:20 PM, Faiz Abbas wrote: >>> sdhci.c has two bottom halves implemented. A threaded_irq for handling >>> card insert/remove operations and a tasklet for finishing mmc requests. >>> With

Re: [PATCH v4 02/15] perf tools script: Support insn output for normal samples

2019-03-08 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 05, 2019 at 06:47:45AM -0800, Andi Kleen escreveu: > From: Andi Kleen > > perf script -F +insn was only working for PT traces because > the PT instruction decoder was filling in the insn/insn_len > sample attributes. Support it for non PT samples too on x86 > using the existing x86

Re: [PATCH 1/5] x86/percpu: Differentiate this_cpu_{}() and __this_cpu_{}()

2019-03-08 Thread Peter Zijlstra
On Wed, Feb 27, 2019 at 11:41:31AM -0800, Linus Torvalds wrote: > On Wed, Feb 27, 2019 at 9:57 AM Nadav Amit wrote: > > > > I’ll have a look at some specific function assembly, but overall, the “+m” > > approach might prevent even more code optimizations than the “volatile” one. > > Ok, that

Re: [PATCH 5/7] drivers: firmware: psci: Simplify state node parsing

2019-03-08 Thread Lorenzo Pieralisi
On Fri, Mar 08, 2019 at 02:23:26PM +0100, Ulf Hansson wrote: > On Fri, 8 Mar 2019 at 14:17, Lorenzo Pieralisi > wrote: > > > > On Fri, Mar 08, 2019 at 02:07:51PM +0100, Ulf Hansson wrote: > > > On Fri, 8 Mar 2019 at 12:49, Lorenzo Pieralisi > > > wrote: > > > > > > > > On Fri, Mar 08, 2019 at

Re: [PATCH v7 1/4] can: m_can: Create a m_can platform framework

2019-03-08 Thread Wolfgang Grandegger
Hello Dan, Am 08.03.19 um 13:44 schrieb Dan Murphy: > Wolfgang > > On 3/8/19 4:10 AM, Wolfgang Grandegger wrote: >> Hallo Dan, >> >> Am 05.03.19 um 16:52 schrieb Dan Murphy: >>> Create a m_can platform framework that peripherial >>> devices can register to and use common code and register sets.

Re: [PATCH 4/4] leds: lm3532: Introduce the lm3532 LED driver

2019-03-08 Thread Dan Murphy
Hello On 3/7/19 4:09 PM, Dan Murphy wrote: > Introduce the Texas Instruments LM3532 White LED driver. > The driver supports ALS configurability or manual brightness > control. > > The driver also supports associating LED strings with specific > control banks in a group or as individually

Re: [PATCH] kasan: fix variable 'tag' set but not used warning

2019-03-08 Thread Andrey Konovalov
On Thu, Mar 7, 2019 at 7:53 PM Qian Cai wrote: > > set_tag() compiles away when CONFIG_KASAN_SW_TAGS=n, so make > arch_kasan_set_tag() a static inline function to fix warnings below. > > mm/kasan/common.c: In function '__kasan_kmalloc': > mm/kasan/common.c:475:5: warning: variable 'tag' set but

Re: [PATCH] nvmet-fc: use zero-sized array and struct_size() in kzalloc()

2019-03-08 Thread Christoph Hellwig
James, can you take a look at this one? On Sat, Feb 23, 2019 at 12:51:08PM -0600, Gustavo A. R. Silva wrote: > Update the code to use a zero-sized array instead of a pointer in > structure nvmet_fc_tgt_queue and use struct_size() in kzalloc(). > > Notice that one of the more common cases of

Re: [PATCH V3] bpf: fix warning about using plain integer as NULL

2019-03-08 Thread Daniel Borkmann
On 03/08/2019 07:45 AM, Bo YU wrote: > Sparse warning below: > > sudo make C=2 CF=-D__CHECK_ENDIAN__ M=net/bpf/ > CHECK net/bpf//test_run.c > net/bpf//test_run.c:19:77: warning: Using plain integer as NULL pointer > ./include/linux/bpf-cgroup.h:295:77: warning: Using plain integer as NULL >

Re: [PATCH] nvmet: disable direct I/O when unavailable

2019-03-08 Thread Christoph Hellwig
On Mon, Feb 25, 2019 at 01:18:10PM -0800, Sagi Grimberg wrote: > >> Frankly, we have a ton of testing related special cases in the kernel. >> >> This one is a) simple and small, only 10 LoC, b) far away from the fast >> path or any other place where it could have any impact on legitimate >> users

Re: [PATCH 5/7] drivers: firmware: psci: Simplify state node parsing

2019-03-08 Thread Ulf Hansson
On Fri, 8 Mar 2019 at 14:17, Lorenzo Pieralisi wrote: > > On Fri, Mar 08, 2019 at 02:07:51PM +0100, Ulf Hansson wrote: > > On Fri, 8 Mar 2019 at 12:49, Lorenzo Pieralisi > > wrote: > > > > > > On Fri, Mar 08, 2019 at 11:36:49AM +0100, Ulf Hansson wrote: > > > > > > [...] > > > > > > > Instead,

Re: [PATCH] nvme-core: Share code between nvme_wait_ready() and nvme_shutdown_ctrl()

2019-03-08 Thread Christoph Hellwig
On Wed, Feb 06, 2019 at 04:13:12PM -0800, Andrey Smirnov wrote: > Code polling NVME_CSTS_SHST_CMPLT in nvme_shutdown_ctrl() is very > similar to polling loop in nvme_wait_ready(). Move shared polling loop > code into __nvme_wait_ready() and re-implement both > nvme_shutdown_ctrl() and

[PATCH] platform/x86: thinkpad_acpi: Read EC information on newer models

2019-03-08 Thread Jiaxun Yang
Newer ThinkPads have a totally different EC program information DMI table. And thermal subdriver can't work without correct EC version. Read from this entry if the old method failed to get EC information. Signed-off-by: Jiaxun Yang --- drivers/platform/x86/thinkpad_acpi.c | 62

Re: [PATCH net] net: selinux: fix memory leak in selinux_netlbl_socket_post_create()

2019-03-08 Thread Paul Moore
On Fri, Mar 8, 2019 at 1:31 AM maowenan wrote: > On 2019/3/8 4:36, Paul Moore wrote: > > On Wed, Mar 6, 2019 at 9:44 PM Mao Wenan wrote: > >> > >> If netlbl_sock_setattr() is failed, it directly returns rc and forgets > >> to free secattr. > >> > >> BUG: memory leak > >> unreferenced object

Re: [PATCH 5/7] drivers: firmware: psci: Simplify state node parsing

2019-03-08 Thread Lorenzo Pieralisi
On Fri, Mar 08, 2019 at 02:07:51PM +0100, Ulf Hansson wrote: > On Fri, 8 Mar 2019 at 12:49, Lorenzo Pieralisi > wrote: > > > > On Fri, Mar 08, 2019 at 11:36:49AM +0100, Ulf Hansson wrote: > > > > [...] > > > > > Instead, my suggestion is according to what I propose in patch 4 and > > > $subject

Re: [PATCH] regulator: ab3100: Remove ab3100_regulators_remove function

2019-03-08 Thread Linus Walleij
On Thu, Mar 7, 2019 at 2:54 PM Axel Lin wrote: > Current code is using devm_regulator_register() so it is not necessary > to save reg->rdev for clean up. Remove *rdev from struct ab3100_regulator, > then ab3100_regulators_remove() can be removed as well. > > Signed-off-by: Axel Lin

Re: [PATCH v4 armsoc/drivers/bus+gpio 1/5] bus: Add support for Moxtet bus

2019-03-08 Thread Linus Walleij
On Thu, Mar 7, 2019 at 1:53 PM Marek Behún wrote: > On the Turris Mox router different modules can be connected to the main > CPU board: currently a module with a SFP cage, a module with MiniPCIe > connector, a PCIe pass-through MiniPCIe connector module, a 4-port > switch module, an 8-port

Re: [PATCH v4 armsoc/drivers/bus+gpio 3/5] bus: moxtet: Add sysfs and debugfs documentation

2019-03-08 Thread Linus Walleij
On Thu, Mar 7, 2019 at 1:53 PM Marek Behún wrote: > Add sysfs ABI documentation for the attribute files module_id and > module_name > > Add debugfs ABI documentation for reading input from the shift registers > and reading last written output or write output to the shift registers. > >

[PATCH 2/2] spi: spi-mem: stm32-qspi: add suspend/resume support

2019-03-08 Thread Ludovic Barre
From: Ludovic Barre This patch adds suspend and resume support for spi-stm32-qspi drivers. Signed-off-by: Ludovic Barre --- drivers/spi/spi-stm32-qspi.c | 39 +++ 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/drivers/spi/spi-stm32-qspi.c

Re: [PATCH] doc: add boot protocol 2.13 description to Documentation/x86/boot.txt

2019-03-08 Thread Konrad Rzeszutek Wilk
On March 8, 2019 6:43:10 AM EST, Juergen Gross wrote: >Documentation/x86/boot.txt is missing protocol 2.13 description. > >Signed-off-by: Juergen Gross You forgot Reported-by: Ross Philipson ... And pls feel free to add Reviewed-by from me as well. >--- > Documentation/x86/boot.txt | 4

[PATCH 0/2] spi: spi-mem: stm32-qspi: add suspend support and fix

2019-03-08 Thread Ludovic Barre
From: Ludovic Barre This patch series adds suspend support and fix a nor memory corruption due to timeout counter issue. Ludovic Barre (2): spi: spi-mem: stm32-qspi: avoid memory corruption at low frequency spi: spi-mem: stm32-qspi: add suspend/resume support drivers/spi/spi-stm32-qspi.c

[PATCH 1/2] spi: spi-mem: stm32-qspi: avoid memory corruption at low frequency

2019-03-08 Thread Ludovic Barre
From: Ludovic Barre This patch solves a memory corruption seen at 8 MHz. To avoid such issue, timeout counter is disabled. Signed-off-by: Ludovic Barre --- drivers/spi/spi-stm32-qspi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/spi/spi-stm32-qspi.c

Re: [PATCH v4 armsoc/drivers/bus+gpio 5/5] dt-bindings: gpio: Document GPIOs via Moxtet bus

2019-03-08 Thread Linus Walleij
On Thu, Mar 7, 2019 at 1:53 PM Marek Behún wrote: > This patch adds documentation of the device tree bindings for GPIOs > on the devices connected via Moxtet bus. > > Signed-off-by: Marek Behún > Cc: Rob Herring > Cc: devicet...@vger.kernel.org Reviewed-by: Linus Walleij Yours, Linus

Re: [PATCH v2 2/3] dt-bindings: mmc: Add a new property disable-cqe-dcmd.

2019-03-08 Thread Christoph Müllner
> On 08.03.2019, at 13:46, Adrian Hunter wrote: > > On 7/03/19 10:43 AM, Christoph Muellner wrote: >> This patch documents the new property disable-cqe-dcmd >> for the Arasan eMMC 5.1 driver. >> >> Signed-off-by: Christoph Muellner >> Signed-off-by: Philipp Tomsich >> --- >>

[PATCH 5.0 27/46] team: Free BPF filter when unregistering netdev

2019-03-08 Thread Greg Kroah-Hartman
5.0-stable review patch. If anyone has any objections, please let me know. -- From: Ido Schimmel [ Upstream commit 692c31bd4054212312396b1d303bffab2c5b93a7 ] When team is used in loadbalance mode a BPF filter can be used to provide a hash which will determine the Tx port.

[PATCH 5.0 23/46] net-sysfs: Fix mem leak in netdev_register_kobject

2019-03-08 Thread Greg Kroah-Hartman
5.0-stable review patch. If anyone has any objections, please let me know. -- From: YueHaibing [ Upstream commit 895a5e96dbd6386c8e78e5b78e067dcc67b7f0ab ] syzkaller report this: BUG: memory leak unreferenced object 0x88837a71a500 (size 256): comm "syz-executor.2", pid

[PATCH 5.0 26/46] sky2: Disable MSI on Dell Inspiron 1545 and Gateway P-79

2019-03-08 Thread Greg Kroah-Hartman
5.0-stable review patch. If anyone has any objections, please let me know. -- From: Kai-Heng Feng [ Upstream commit b33b7cd6fd86478dd2890a9abeb6f036aa01fdf7 ] Some sky2 chips fire IRQ after S3, before the driver is fully resumed: [ 686.804877] do_IRQ: 1.37 No irq handler for

[PATCH 5.0 32/46] xhci: tegra: Prevent error pointer dereference

2019-03-08 Thread Greg Kroah-Hartman
5.0-stable review patch. If anyone has any objections, please let me know. -- From: Thierry Reding commit 0326ccb5feac6eac35ba6254260e2774277cd976 upstream. During initialization, the host and super-speed power domains will contain an ERR_PTR() encoded error code rather than

Re: [PATCH v2 7/7] perf script python: add printdate function to SQL exporters

2019-03-08 Thread Adrian Hunter
On 6/03/19 11:13 PM, Arnaldo Carvalho de Melo wrote: > Em Fri, Mar 01, 2019 at 05:19:03PM -0800, Tony Jones escreveu: >> Introduce a printdate function to eliminate the repetitive use of >> datetime.datetime.today() in the SQL exporting scripts. > > Seems easy enough, but since Adrian provided

[PATCH 5.0 21/46] net: mscc: Enable all ports in QSGMII

2019-03-08 Thread Greg Kroah-Hartman
5.0-stable review patch. If anyone has any objections, please let me know. -- From: Kavya Sree Kotagiri [ Upstream commit 084e5bb16bd7dc2b551bbd9fb358bf73e03ee8d8 ] When Ocelot phy-mode is QSGMII, all 4 ports involved in QSGMII shall be kept out of reset and Tx lanes shall be

[PATCH 5.0 30/46] x86/boot/compressed/64: Do not read legacy ROM on EFI system

2019-03-08 Thread Greg Kroah-Hartman
5.0-stable review patch. If anyone has any objections, please let me know. -- From: Kirill A. Shutemov commit 6f913de3231e1d70a871135b38219da7810df218 upstream. EFI systems do not necessarily provide a legacy ROM. If the ROM is missing the memory is not mapped at all. Trying

[PATCH 5.0 05/46] USB: serial: cp210x: add ID for Ingenico 3070

2019-03-08 Thread Greg Kroah-Hartman
5.0-stable review patch. If anyone has any objections, please let me know. -- From: Ivan Mironov commit dd9d3d86b08d6a106830364879c42c78db85389c upstream. Here is how this device appears in kernel log: usb 3-1: new full-speed USB device number 18 using xhci_hcd

[PATCH 5.0 37/46] aio: Fix locking in aio_poll()

2019-03-08 Thread Greg Kroah-Hartman
5.0-stable review patch. If anyone has any objections, please let me know. -- From: Bart Van Assche commit d3d6a18d7d351cbcc9b33dbedf710e65f8ce1595 upstream. wake_up_locked() may but does not have to be called with interrupts disabled. Since the fuse filesystem calls

[GIT PULL] arch/nios2 updates for v5.1

2019-03-08 Thread Ley Foon Tan
Hi Linus Please pull the arch/nios2 updates below. Most of updates are MMU related. Thanks. Regards Ley Foon The following changes since commit 1c163f4c7b3f621efff9b28a47abb36f7378d783:   Linux 5.0 (2019-03-03 15:21:29 -0800) are available in the git repository at:  

[PATCH 5.0 44/46] Bluetooth: btrtl: Restore old logic to assume firmware is already loaded

2019-03-08 Thread Greg Kroah-Hartman
5.0-stable review patch. If anyone has any objections, please let me know. -- From: Kai-Heng Feng commit 00df214b1faae520880cc5c57e206f21239ef741 upstream. Realtek bluetooth may not work after reboot: [ 12.446130] Bluetooth: hci0: RTL: rtl: unknown IC info, lmp subver a99e,

[PATCH 5.0 36/46] MIPS: irq: Allocate accurate order pages for irq stack

2019-03-08 Thread Greg Kroah-Hartman
5.0-stable review patch. If anyone has any objections, please let me know. -- From: Liu Xiang commit 72faa7a773ca59336f3c889e878de81445c5a85c upstream. The irq_pages is the number of pages for irq stack, but not the order which is needed by __get_free_pages(). We can use

Re: [PATCH 5/7] drivers: firmware: psci: Simplify state node parsing

2019-03-08 Thread Ulf Hansson
On Fri, 8 Mar 2019 at 12:49, Lorenzo Pieralisi wrote: > > On Fri, Mar 08, 2019 at 11:36:49AM +0100, Ulf Hansson wrote: > > [...] > > > Instead, my suggestion is according to what I propose in patch 4 and > > $subject patch, which means minor adjustments to be able to pass the > > struct

[PATCH 4.20 11/76] staging: erofs: fix illegal address access under memory pressure

2019-03-08 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Gao Xiang commit 1e5ceeab6929585512c63d05911d6657064abf7b upstream. Considering a read request with two decompressed file pages, If a decompression work cannot be started on the previous page

[PATCH 5.0 43/46] selftests: firmware: fix verify_reqs() return value

2019-03-08 Thread Greg Kroah-Hartman
5.0-stable review patch. If anyone has any objections, please let me know. -- From: Luis Chamberlain commit 344c0152d878922365464b7140c74c2a5e073d99 upstream. commit a6a9be9270c87 ("selftests: firmware: return Kselftest Skip code for skipped tests") by Shuah modified failures

[PATCH 4.20 07/76] driver core: Postpone DMA tear-down until after devres release

2019-03-08 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Geert Uytterhoeven commit 376991db4b6464e906d699ef07681e2ffa8ab08c upstream. When unbinding the (IOMMU-enabled) R-Car SATA device on Salvator-XS (R-Car H3 ES2.0), in preparation of rebinding

[PATCH 4.20 26/76] sctp: call iov_iter_revert() after sending ABORT

2019-03-08 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Xin Long [ Upstream commit 901efe12318b1ea8d3e2c88a7b75ed6e6d5d7245 ] The user msg is also copied to the abort packet when doing SCTP_ABORT in sctp_sendmsg_check_sflags(). When SCTP_SENDALL

[PATCH 4.20 41/76] net: phy: phylink: fix uninitialized variable in phylink_get_mac_state

2019-03-08 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Heiner Kallweit [ Upstream commit d25ed413d5e51644e18f66e34eec049f17a7abcb ] When debugging an issue I found implausible values in state->pause. Reason in that state->pause isn't initialized

[PATCH 4.20 45/76] tun: fix blocking read

2019-03-08 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Timur Celik [ Upstream commit 71828b2240692cec0e68b8d867bc00e1745e7fae ] This patch moves setting of the current state into the loop. Otherwise the task may end up in a busy wait loop if none

[PATCH 4.20 46/76] xen-netback: dont populate the hash cache on XenBus disconnect

2019-03-08 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Igor Druzhinin [ Upstream commit a2288d4e355992d369c50c45d017a85f6061ff71 ] Occasionally, during the disconnection procedure on XenBus which includes hash cache deinitialization there might

[PATCH 4.20 47/76] xen-netback: fix occasional leak of grant ref mappings under memory pressure

2019-03-08 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Igor Druzhinin [ Upstream commit 99e87f56b48f490fb16b6e0f74691c1e664dea95 ] Zero-copy callback flag is not yet set on frag list skb at the moment xenvif_handle_frag_list() returns -ENOMEM.

[PATCH 4.20 51/76] ipv4: Return error for RTA_VIA attribute

2019-03-08 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: David Ahern [ Upstream commit b6e9e5df4ecf100f6a10ab2ade8e46d47a4b9779 ] IPv4 currently does not support nexthops outside of the AF_INET family. Specifically, it does not handle RTA_VIA

[PATCH 4.20 32/76] hv_netvsc: Fix IP header checksum for coalesced packets

2019-03-08 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Haiyang Zhang [ Upstream commit bf48648d650db1146b75b9bd358502431e86cf4f ] Incoming packets may have IP header checksum verified by the host. They may not have IP header checksum computed

[PATCH 4.20 33/76] ipv4: Add ICMPv6 support when parse route ipproto

2019-03-08 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Hangbin Liu [ Upstream commit 5e1a99eae84999a2536f50a0beaf5d5262337f40 ] For ip rules, we need to use 'ipproto ipv6-icmp' to match ICMPv6 headers. But for ip -6 route, currently we only

[PATCH 4.20 58/76] net/sched: act_skbedit: fix refcount leak when replace fails

2019-03-08 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Davide Caratti [ Upstream commit 6191da98062d25276a3b88fb2a94dcbcfb3ea65d ] when act_skbedit was converted to use RCU in the data plane, we added an error path, but we forgot to drop the

[PATCH 4.20 59/76] net: sched: act_tunnel_key: fix NULL pointer dereference during init

2019-03-08 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Vlad Buslov [ Upstream commit a3df633a3c92bb96b06552c3f828d7c267774379 ] Metadata pointer is only initialized for action TCA_TUNNEL_KEY_ACT_SET, but it is unconditionally dereferenced in

[PATCH 4.20 62/76] tracing: Fix event filters and triggers to handle negative numbers

2019-03-08 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Pavel Tikhomirov commit 6a072128d262d2b98d31626906a96700d1fc11eb upstream. Then tracing syscall exit event it is extremely useful to filter exit codes equal to some negative value, to react

[PATCH 4.20 66/76] MIPS: irq: Allocate accurate order pages for irq stack

2019-03-08 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Liu Xiang commit 72faa7a773ca59336f3c889e878de81445c5a85c upstream. The irq_pages is the number of pages for irq stack, but not the order which is needed by __get_free_pages(). We can use

[PATCH 4.20 61/76] x86/boot/compressed/64: Do not read legacy ROM on EFI system

2019-03-08 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Kirill A. Shutemov commit 6f913de3231e1d70a871135b38219da7810df218 upstream. EFI systems do not necessarily provide a legacy ROM. If the ROM is missing the memory is not mapped at all.

[PATCH 4.20 71/76] selftests: firmware: fix verify_reqs() return value

2019-03-08 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Luis Chamberlain commit 344c0152d878922365464b7140c74c2a5e073d99 upstream. commit a6a9be9270c87 ("selftests: firmware: return Kselftest Skip code for skipped tests") by Shuah modified

[PATCH 4.20 69/76] gnss: sirf: fix premature wakeup interrupt enable

2019-03-08 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 82f844c22588bf47132c82faeda50b6db473162c upstream. Make sure the receiver is powered (and booted) before enabling the wakeup interrupt to avoid spurious interrupts due to

[PATCH 4.20 70/76] USB: serial: cp210x: fix GPIO in autosuspend

2019-03-08 Thread Greg Kroah-Hartman
4.20-stable review patch. If anyone has any objections, please let me know. -- From: Karoly Pados commit 7b0b644b9aa2de5032db0f468fddca091d0b7b90 upstream. Current GPIO code in cp210x fails to take USB autosuspend into account, making it practically impossible to use GPIOs

[PATCH 4.19 15/68] net: dsa: mv8e6xxx: fix number of internal PHYs for 88E6x90 family

2019-03-08 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Heiner Kallweit [ Upstream commit 95150f29ae480276e76368cdf8a9524b5a96c0ca ] Ports 9 and 10 don't have internal PHY's but are (dependent on the version) SERDES/SGMII/XAUI/RXAUI ports. v2: -

[PATCH 4.19 17/68] net-sysfs: Fix mem leak in netdev_register_kobject

2019-03-08 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: YueHaibing [ Upstream commit 895a5e96dbd6386c8e78e5b78e067dcc67b7f0ab ] syzkaller report this: BUG: memory leak unreferenced object 0x88837a71a500 (size 256): comm "syz-executor.2", pid

[PATCH 4.19 13/68] ip6mr: Do not call __IP6_INC_STATS() from preemptible context

2019-03-08 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Ido Schimmel [ Upstream commit 87c11f1ddbbad38ad8bad47af133a8208985fbdf ] Similar to commit 44f49dd8b5a6 ("ipmr: fix possible race resulting from improper usage of IP_INC_STATS_BH() in

[PATCH 4.19 14/68] net: dsa: mv88e6xxx: handle unknown duplex modes gracefully in mv88e6xxx_port_set_duplex

2019-03-08 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Heiner Kallweit [ Upstream commit c6195a8bdfc62a7cecf7df685e64847a4b700275 ] When testing another issue I faced the problem that mv88e6xxx_port_setup_mac() failed due to DUPLEX_UNKNOWN being

[PATCH 4.19 27/68] lan743x: Fix TX Stall Issue

2019-03-08 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Bryan Whitehead [ Upstream commit 90490ef7269906423a1c1b917fc24be8b1602658 ] It has been observed that tx queue stalls while downloading from certain web sites (example www.speedtest.net)

[PATCH 4.19 32/68] net: nfc: Fix NULL dereference on nfc_llcp_build_tlv fails

2019-03-08 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: YueHaibing [ Upstream commit 58bdd544e2933a21a51eecf17c3f5f94038261b5 ] KASAN report this: BUG: KASAN: null-ptr-deref in nfc_llcp_build_gb+0x37f/0x540 [nfc] Read of size 3 at addr

[PATCH 4.19 09/68] staging: wilc1000: fix to set correct value for vif_num

2019-03-08 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Ajay Singh commit dda037057a572f5c82ac2499eb4e6fb17600ba3e upstream. Set correct value in '->vif_num' for the total number of interfaces and set '->idx' value using 'i'. Fixes: 735bb39ca3be

[PATCH 4.19 31/68] net: netem: fix skb length BUG_ON in __skb_to_sgvec

2019-03-08 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Sheng Lan [ Upstream commit 5845f706388a4cde0f6b80f9e5d33527e942b7d9 ] It can be reproduced by following steps: 1. virtio_net NIC is configured with gso/tso on 2. configure nginx as http

[PATCH 0/1] Fix the combination of CONFIG_RELOCATABLE=y and CONFIG_MIPS_ELF_APPENDED_DTB=y

2019-03-08 Thread Yasha Cherikovsky
Hi, I sent this patch almost 5 months ago but received no response [1]. I'm sending it again now, on top of v5.0. Full details are in the commit message. Please review. Thanks, Yasha [1] https://lkml.org/lkml/2018/10/20/175 Cc: linux-kernel@vger.kernel.org Yasha Cherikovsky (1): MIPS:

[PATCH 1/1] MIPS: Ensure ELF appended dtb is relocated

2019-03-08 Thread Yasha Cherikovsky
This fixes booting with the combination of CONFIG_RELOCATABLE=y and CONFIG_MIPS_ELF_APPENDED_DTB=y. Sections that appear after the relocation table are not relocated on system boot (except .bss, which has special handling). With CONFIG_MIPS_ELF_APPENDED_DTB, the dtb is part of the vmlinux ELF,

[PATCH 4.19 47/68] ipv4: Pass original device to ip_rcv_finish_core

2019-03-08 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: David Ahern [ Upstream commit a1fd1ad2552fad9e649eeb85fd79301e2880a886 ] ip_route_input_rcu expects the original ingress device (e.g., for proper multicast handling). The skb->dev can be

[PATCH 4.19 51/68] net/sched: act_skbedit: fix refcount leak when replace fails

2019-03-08 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Davide Caratti [ Upstream commit 6191da98062d25276a3b88fb2a94dcbcfb3ea65d ] when act_skbedit was converted to use RCU in the data plane, we added an error path, but we forgot to drop the

[PATCH 4.19 61/68] gnss: sirf: fix premature wakeup interrupt enable

2019-03-08 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 82f844c22588bf47132c82faeda50b6db473162c upstream. Make sure the receiver is powered (and booted) before enabling the wakeup interrupt to avoid spurious interrupts due to

[PATCH 4.19 60/68] xtensa: fix get_wchan

2019-03-08 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Max Filippov commit d90b88fd3653f1fb66ecc6571b860d5a5749fa56 upstream. Stack unwinding is implemented incorrectly in xtensa get_wchan: instead of extracting a0 and a1 registers from the spill

[PATCH 4.19 59/68] aio: Fix locking in aio_poll()

2019-03-08 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Bart Van Assche commit d3d6a18d7d351cbcc9b33dbedf710e65f8ce1595 upstream. wake_up_locked() may but does not have to be called with interrupts disabled. Since the fuse filesystem calls

[PATCH 4.19 66/68] exec: Fix mem leak in kernel_read_file

2019-03-08 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: YueHaibing commit f612acfae86af7ecad754ae6a46019be9da05b8e upstream. syzkaller report this: BUG: memory leak unreferenced object 0xc9000488d000 (size 9195520): comm "syz-executor.0",

[PATCH 4.19 41/68] tun: remove unnecessary memory barrier

2019-03-08 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Timur Celik [ Upstream commit ecef67cb10db7b83b3b71c61dbb29aa070ab0112 ] Replace set_current_state with __set_current_state since no memory barrier is needed at this point. Signed-off-by:

[PATCH 4.19 45/68] ipv6: Return error for RTA_VIA attribute

2019-03-08 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: David Ahern [ Upstream commit e3818541b49fb88650ba339d33cc53e4095da5b3 ] IPv6 currently does not support nexthops outside of the AF_INET6 family. Specifically, it does not handle RTA_VIA

[PATCH 4.19 68/68] bpf: fix sanitation rewrite in case of non-pointers

2019-03-08 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Borkmann commit 3612af783cf52c74a031a2f11b82247b2599d3cd upstream. Marek reported that he saw an issue with the below snippet in that timing measurements where off when loaded as

[PATCH 4.19 67/68] scsi: core: reset host byte in DID_NEXUS_FAILURE case

2019-03-08 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Martin Wilck commit 4a067cf823d9d8e50d41cfb618011c0d4a969c72 upstream. Up to 4.12, __scsi_error_from_host_byte() would reset the host byte to DID_OK for various cases including

Re: [PATCH V1 10/11] mmc: tegra: fix CQE resume sequence

2019-03-08 Thread Adrian Hunter
On 2/03/19 7:20 AM, Sowjanya Komatineni wrote: > Tegra CQHCI/SDHCI design prevents write access to SDHCI block size > register when CQE is enabled and unhalted. > > CQHCI driver enabled CQE prior to invoking sdhci_cqe_enable which > violates this Tegra specific host requirement. > > This patch

[PATCH 4.19 42/68] net: Add __icmp_send helper.

2019-03-08 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Nazarov Sergey [ Upstream commit 9ef6b42ad6fd7929dd1b6092cb02014e382c6a91 ] Add __icmp_send function having ip_options struct parameter Signed-off-by: Sergey Nazarov Reviewed-by: Paul Moore

[PATCH 4.19 65/68] Bluetooth: Fix locking in bt_accept_enqueue() for BH context

2019-03-08 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Matthias Kaehlcke commit c4f5627f7eeecde1bb6b646d8c0907b96dc2b2a6 upstream. With commit e16337622016 ("Bluetooth: Handle bt_accept_enqueue() socket atomically") lock_sock[_nested]() is used

[PATCH 4.19 37/68] tipc: fix race condition causing hung sendto

2019-03-08 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Tung Nguyen [ Upstream commit bfd07f3dd4f111b884d7922b37eb239280f83d8c ] When sending multicast messages via blocking socket, if sending link is congested (tsk->cong_link_cnt is set to 1),

[PATCH 4.19 46/68] mpls: Return error for RTA_GATEWAY attribute

2019-03-08 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: David Ahern [ Upstream commit be48220edd48ca0d569782992840488a52373a24 ] MPLS does not support nexthops with an MPLS address family. Specifically, it does not handle RTA_GATEWAY attribute.

[PATCH 4.19 44/68] ipv4: Return error for RTA_VIA attribute

2019-03-08 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: David Ahern [ Upstream commit b6e9e5df4ecf100f6a10ab2ade8e46d47a4b9779 ] IPv4 currently does not support nexthops outside of the AF_INET family. Specifically, it does not handle RTA_VIA

[PATCH 4.19 43/68] net: avoid use IPCB in cipso_v4_error

2019-03-08 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Nazarov Sergey [ Upstream commit 3da1ed7ac398f34fff1694017a07054d69c5f5c5 ] Extract IP options in cipso_v4_error and use __icmp_send. Signed-off-by: Sergey Nazarov Acked-by: Paul Moore

[PATCH 4.19 40/68] xen-netback: fix occasional leak of grant ref mappings under memory pressure

2019-03-08 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Igor Druzhinin [ Upstream commit 99e87f56b48f490fb16b6e0f74691c1e664dea95 ] Zero-copy callback flag is not yet set on frag list skb at the moment xenvif_handle_frag_list() returns -ENOMEM.

[PATCH 4.19 62/68] USB: serial: cp210x: fix GPIO in autosuspend

2019-03-08 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Karoly Pados commit 7b0b644b9aa2de5032db0f468fddca091d0b7b90 upstream. Current GPIO code in cp210x fails to take USB autosuspend into account, making it practically impossible to use GPIOs

[PATCH 4.19 58/68] MIPS: irq: Allocate accurate order pages for irq stack

2019-03-08 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Liu Xiang commit 72faa7a773ca59336f3c889e878de81445c5a85c upstream. The irq_pages is the number of pages for irq stack, but not the order which is needed by __get_free_pages(). We can use

[PATCH 4.19 64/68] Bluetooth: btrtl: Restore old logic to assume firmware is already loaded

2019-03-08 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Kai-Heng Feng commit 00df214b1faae520880cc5c57e206f21239ef741 upstream. Realtek bluetooth may not work after reboot: [ 12.446130] Bluetooth: hci0: RTL: rtl: unknown IC info, lmp subver

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