[PATCH v7 06/16] tracing: Add conditional snapshot

2018-11-14 Thread Tom Zanussi
From: Tom Zanussi Currently, tracing snapshots are context-free - they capture the ring buffer contents at the time the tracing_snapshot() function was invoked, and nothing else. Additionally, they're always taken unconditionally - the calling code can decide whether or not to take a snapshot, b

[PATCH v7 01/16] tracing: Refactor hist trigger action code

2018-11-14 Thread Tom Zanussi
From: Tom Zanussi The hist trigger action code currently implements two essentially hard-coded pairs of 'actions' - onmax(), which tracks a variable and saves some event fields when a max is hit, and onmatch(), which is hard-coded to generate a synthetic event. These hardcoded pairs (track max/s

[PATCH v7 02/16] tracing: Make hist trigger Documentation better reflect actions/handlers

2018-11-14 Thread Tom Zanussi
From: Tom Zanussi The action/handler code refactoring didn't change the action/handler syntax, but did generalize it - the Documentation should reflect that. Signed-off-by: Tom Zanussi --- Documentation/trace/histogram.rst | 56 ++- 1 file changed, 43 insert

Re: [REGRESSION 4.20-rc1] 45975c7d21a1 ("rcu: Define RCU-sched API in terms of RCU for Tree RCU PREEMPT builds")

2018-11-14 Thread Paul E. McKenney
On Tue, Nov 13, 2018 at 07:10:37AM -0800, Paul E. McKenney wrote: > On Tue, Nov 13, 2018 at 03:54:53PM +0200, Ville Syrjälä wrote: > > Hi Paul, > > > > After 4.20-rc1 some of my 32bit UP machines no longer reboot/shutdown. > > I bisected this down to commit 45975c7d21a1 ("rcu: Define RCU-sched > >

ARM builtin perf tests for breakpoint failures

2018-11-14 Thread Florian Fainelli
Hi Mark, Will, I have been trying to debug some perf builtin tests on ARM 32-bit and found that "Breakpoint overflow signal handler" and "Breakpoint overflow sampling" were failing, but there are a number of reasons for that and they may fail in seemingly unexpected ways. My perf binary is built

GOOD NEWS FOR YOU MY FRIEND AFTER EVERYTHING GOD ANSWERED ME!

2018-11-14 Thread crystal
Hello my long time friend, how are you? I understand you may not Know me again, but I contacted you previously about a business transaction, don't know if you will remember. Actually you agreed to help me then but later opted out. Well I was able to successfully transfer the money to another fri

Re: WARNING: CPU: 26 PID: 64391 at lib/vsprintf.c:2193 set_precision+0x84/0x90

2018-11-14 Thread Qian Cai
On Tue, 2018-11-13 at 14:23 -0500, Steven Rostedt wrote: > On Tue, 13 Nov 2018 13:58:18 -0500 > Qian Cai wrote: > > > > Care to print the len and name parameters before this line?   > > > > len = 60612; name = > > How big are pages on arm64? Because we shouldn't get to this path if # getconf PA

Re: linux-next: Tree for Nov 14 (sound/soc/amd/raven/)

2018-11-14 Thread Randy Dunlap
On 11/13/18 9:26 PM, Stephen Rothwell wrote: > Hi all, > > Changes since 20181113: > on i386 or x86_64: when CONFIG_PCI is not enabled. ../sound/soc/amd/raven/pci-acp3x.c: In function 'snd_acp3x_probe': ../sound/soc/amd/raven/pci-acp3x.c:59:2: error: implicit declaration of function 'pci_enab

Re: [PATCH 3.16 000/366] 3.16.61-rc1 review

2018-11-14 Thread Johannes Pointner
On Tue, Nov 13, 2018 at 2:58 AM Guenter Roeck wrote: > > On Sun, Nov 11, 2018 at 07:49:04PM +, Ben Hutchings wrote: > > This is the start of the stable review cycle for the 3.16.61 release. > > There are 366 patches in this series, which will be posted as responses > > to this one. If anyone

Re: [BUG] Nuvoton NCPT650 TPM 2.0 mode not working

2018-11-14 Thread Michael Niewöhner
Hi all, I tried that patch mentioned by Mimi but it does not change anything for me. Then I did some more tests with different kernel configs and finally got TPM working by a) compiling TPM as modules and rmmod tpm* and re-modprobe tpm_tis. (initramfs) dmesg | grep -i tpm [0.00] efi: AC

Re: [RFC/RFT 2/2] RISC-V: kprobes/kretprobe support

2018-11-14 Thread Patrick Staehlin
Hi Masami, thank you for your remarks. On 14.11.18 09:37, Masami Hiramatsu wrote> > Thank you very much for implementing kprobes on RISC-V :) > > On Tue, 13 Nov 2018 20:58:04 +0100 > Patrick Stählin wrote: > >> First implementation, adapted from arm64. The C.ADDISP16 instruction >> gets simula

Re: [PATCH] sched: Do not bug in __sched_setscheduler() when pi is not used

2018-11-14 Thread Florian Fainelli
On 3/9/17 7:18 AM, Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > > When priority inheritance was added back in 2.6.18 to sched_setscheduler, it > added a path to taking an rt-mutex wait_lock, which is not IRQ safe. As PI > is not a common occurrence, lockdep will likely never trigg

Re: [RFC/RFT 2/2] RISC-V: kprobes/kretprobe support

2018-11-14 Thread Patrick Staehlin
On 14.11.18 16:49, Masami Hiramatsu wrote: > On Wed, 14 Nov 2018 00:37:30 -0800 > Masami Hiramatsu wrote: > >>> + >>> +static int __kprobes patch_text(kprobe_opcode_t *addr, u32 opcode) >>> +{ >>> + if (is_compressed_insn(opcode)) >>> + *(u16 *)addr = cpu_to_le16(opcode); >>> + else

[PATCH 1/2] perf vendor events: Add stepping in CPUID string for x86

2018-11-14 Thread kan . liang
From: Kan Liang Perf tools cannot find the proper event list for Cascadelake server. Because Cascadelake server and Skylake server have the same CPU model number, which are used by perf tools to find the event list. The stepping for Skylake server is up to 4. The stepping for Cascadelake server

[PATCH 0/3] x86/CPUID: CPUID parsing rework, p1

2018-11-14 Thread Borislav Petkov
From: Borislav Petkov Hi all, this is the beginning of a long conversion. The final goal is to have one global, read-only CPUID hierarchy representation in arch/x86/ to replace all the gazillion places where CPUID is read and thus slim a lot of code. And improve all that X86_FEATURE* diddling. W

[PATCH 1/3] x86/cpuid: Make cpuinfo_x86.x86_vendor_id global

2018-11-14 Thread Borislav Petkov
From: Borislav Petkov Make x86_vendor_id __ro_after_init and global as it is not needed per-CPU. Thus, save 16 bytes of per-CPU memory. Remove the vendor ID readout early in head_32.S because it is not needed that early either. Signed-off-by: Borislav Petkov --- arch/x86/include/asm/processor.

[PATCH 2/3] x86/cpuid: Get vendor ID on the BSP

2018-11-14 Thread Borislav Petkov
From: Borislav Petkov No need to do it on each CPU. Read max base CPUID level on each CPU for now so that the check in cpu_detect() works. Signed-off-by: Borislav Petkov --- arch/x86/kernel/cpu/common.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/arch/x86

Re: KVM selftests are failing

2018-11-14 Thread Ahmed Soliman
Hello again, On Wed, Nov 14, 2018 at 9:23 PM Ahmed Soliman wrote: > I don't do a make clean normally, but I will do it this time when > bisecting, also I only use shallow > clones so it will also take some time pulling. Also to note, The arch > I am using is Haswell, I am not > sure if that shoul

[PATCH][next] ASoC: amd: fix memory leak of i2s_data on error return

2018-11-14 Thread Colin King
From: Colin Ian King Currently when snd_pcm_hw_constraint_integer fails there is a memory leak of i2s_data on the error return path. Fix this by kfree'ing i2s_data before returning. Detected by CoverityScan, CID#1475479 ("Resource leak") Fixes: 0b87d6bcd648 ("ASoC: amd: add acp3x pcm driver dma

Re: [RFC PATCH] mm, proc: report PR_SET_THP_DISABLE in proc

2018-11-14 Thread David Rientjes
On Wed, 14 Nov 2018, Michal Hocko wrote: > > > > Do you know of any other userspace except your usecase? Is there > > > > anything fundamental that would prevent a proper API adoption for you? > > > > > > > > > > Yes, it would require us to go back in time and build patched binaries. > > > > I

[PATCH][next] spi: npcm: fix u32 csgpio being checked for less than zero

2018-11-14 Thread Colin King
From: Colin Ian King The u32 variable csgpio is being checked for an error return from the call to of_get_named_gpio, however, since this is unsigned this comparison will always be false. Fix this by making csgpio an int and fix up the %u format specifiers to %d accordingly. Detected by Coverity

Re: [GIT PULL] PCI fixes for v4.20

2018-11-14 Thread Borislav Petkov
On Wed, Nov 14, 2018 at 03:16:58PM -0500, Konstantin Ryabitsev wrote: > On Wed, Nov 14, 2018 at 09:12:14PM +0100, Borislav Petkov wrote: > > Hey Konstantin, > > > > that bot needs some parsing improvs: "None None". > > Correct, this is because the original pull request was for an ssh:// You'd th

[PATCH v4] x86/fsgsbase/64: Fix the base write helper functions

2018-11-14 Thread Chang S. Bae
The helper functions that purport to write the base should just write it only. It shouldn't have magic optimizations to change the index. Make the index explicitly changed from the caller, instead of including the code in the helpers. Subsequently, the task write helpers do not handle for the cur

[PATCH][next] reset: fix null pointer dereference on dev by dev_name

2018-11-14 Thread Colin King
From: Colin Ian King The call to dev_name will dereference dev, however, dev is later being null checked, so there is a possibility of a null pointer dereference on dev by the call to dev_name. Fix this by null checking dev first before the call to dev_name Detected by CoverityScan, CID#1475475

Re: [PATCH v3] x86/fsgsbase/64: Fix the base write helper functions

2018-11-14 Thread Bae, Chang Seok
On Nov 6, 2018, at 17:23, Andy Lutomirski wrote: > > On Thu, Nov 1, 2018 at 1:32 PM Chang S. Bae wrote: >> >> @@ -392,12 +384,7 @@ int x86_fsbase_write_task(struct task_struct *task, >> unsigned long fsbase) >>if (unlikely(fsbase >= TASK_SIZE_MAX)) >>return -EPERM; >>

Re: [RCF PATCH,v2,2/2] pwm: imx: Configure output to GPIO in disabled state

2018-11-14 Thread Uwe Kleine-König
Hello Thierry, On Wed, Nov 14, 2018 at 12:34:49PM +0100, Thierry Reding wrote: > On Fri, Nov 09, 2018 at 05:55:55PM +0100, Uwe Kleine-König wrote: > > On Fri, Nov 09, 2018 at 02:24:42PM +, Vokáč Michal wrote: > > > On 8.11.2018 20:18, Uwe Kleine-König wrote: > > > > Taking your example with th

Re: [PATCH 0/2] clk: Add driver and bindings for Fixed MMIO clock

2018-11-14 Thread Stephen Boyd
Quoting Janek Kotas (2018-11-14 07:24:17) > This patchset adds a driver support for Fixed Memory Mapped IO clock. > > The driver reads a clock frequency value from a single 32-bit memory > mapped register and registers it as a fixed rate clock. > > It can be useful for prototyping Linux on variou

Re: [GIT PULL] PCI fixes for v4.20

2018-11-14 Thread Konstantin Ryabitsev
On Wed, Nov 14, 2018 at 10:46:01PM +0100, Borislav Petkov wrote: > > > that bot needs some parsing improvs: "None None". > > > > Correct, this is because the original pull request was for an ssh:// > > You'd think Bjorn would know better... :-))) For the record, there's nothing wrong with that,

[PATCH AUTOSEL 4.19 65/73] net: smsc95xx: Fix MTU range

2018-11-14 Thread Sasha Levin
From: Stefan Wahren [ Upstream commit 85b18b0237ce9986a81a1b9534b5e2ee116f5504 ] The commit f77f0aee4da4 ("net: use core MTU range checking in USB NIC drivers") introduce a common MTU handling for usbnet. But it's missing the necessary changes for smsc95xx. So set the MTU range accordingly. Thi

[PATCH AUTOSEL 4.19 73/73] net: dsa: mv88e6xxx: Fix clearing of stats counters

2018-11-14 Thread Sasha Levin
From: Andrew Lunn [ Upstream commit a9049ff9214da68df1179a7d5e36b43479abc9b8 ] The mv88e6161 would sometime fail to probe with a timeout waiting for the switch to complete an operation. This operation is supposed to clear the statistics counters. However, due to a read/modify/write, without the

[PATCH AUTOSEL 4.19 71/73] kbuild: deb-pkg: fix too low build version number

2018-11-14 Thread Sasha Levin
From: Masahiro Yamada [ Upstream commit bbcde0a7241261cd0ca8d8e6b94a4113a4b71443 ] Since commit b41d920acff8 ("kbuild: deb-pkg: split generating packaging and build"), the build version of the kernel contained in a deb package is too low by 1. Prior to the bad commit, the kernel was built first

[PATCH AUTOSEL 4.19 72/73] Revert "scripts/setlocalversion: git: Make -dirty check more robust"

2018-11-14 Thread Sasha Levin
From: Guenter Roeck [ Upstream commit 8ef14c2c41d962756d314f1d7dc972b0ea7a180f ] This reverts commit 6147b1cf19651c7de297e69108b141fb30aa2349. The reverted patch results in attempted write access to the source repository, even if that repository is mounted read-only. Output from "strace git st

[PATCH AUTOSEL 4.19 69/73] net: aquantia: invalid checksumm offload implementation

2018-11-14 Thread Sasha Levin
From: Dmitry Bogdanov [ Upstream commit ad703c2b9127f9acdef697ec4755f6da4beaa266 ] Packets with marked invalid IP/UDP/TCP checksums were considered as good by the driver. The error was in a logic, processing offload bits in RX descriptor. Signed-off-by: Igor Russkikh Signed-off-by: Dmitry Bogd

[PATCH AUTOSEL 4.19 70/73] net: qualcomm: rmnet: Fix incorrect assignment of real_dev

2018-11-14 Thread Sasha Levin
From: Subash Abhinov Kasiviswanathan [ Upstream commit d02854dc1999ed3e7fd79ec700c64ac23ac0c458 ] A null dereference was observed when a sysctl was being set from userspace and rmnet was stuck trying to complete some actions in the NETDEV_REGISTER callback. This is because the real_dev is set on

[PATCH AUTOSEL 4.19 68/73] net: aquantia: fixed enable unicast on 32 macvlan

2018-11-14 Thread Sasha Levin
From: Igor Russkikh [ Upstream commit bfaa9f8553d5c20703781e63f4fc8cb4792f18fd ] Fixed a condition mistake due to which macvlans unicast item number 32 was not added in the unicast filter. The consequence is that when exactly 32 macvlans are created on NIC, the last created macvlan receives no

[PATCH AUTOSEL 4.19 67/73] net: aquantia: fix potential IOMMU fault after driver unbind

2018-11-14 Thread Sasha Levin
From: Dmitry Bogdanov [ Upstream commit 7a1bb49461b12b2e6332a4d054256835f45203f3 ] IOMMU fault may occurr on unbind/bind or if_down/if_up sequence. Although driver disables the rings on down, this is not enough. Due to internal HW design, during subsequent initialization NIC sometimes may reuse

[PATCH AUTOSEL 4.19 60/73] qed: Fix memory/entry leak in qed_init_sp_request()

2018-11-14 Thread Sasha Levin
From: Denis Bolotin [ Upstream commit 39477551df940ddb1339203817de04f5caaacf7a ] Free the allocated SPQ entry or return the acquired SPQ entry to the free list in error flows. Signed-off-by: Denis Bolotin Signed-off-by: Michal Kalderon Signed-off-by: David S. Miller Signed-off-by: Sasha Levi

[PATCH AUTOSEL 4.18 02/59] HID: i2c-hid: Add a small delay after sleep command for Raydium touchpanel

2018-11-14 Thread Sasha Levin
From: Kai-Heng Feng [ Upstream commit 00b790ea545b6ef30221adef6e9c3707e03b82b5 ] Raydium touchpanel (2386:4B33) sometimes does not work in desktop session although it works in display manager. During user logging, the display manager exits, close the HID device, then the device gets runtime sus

[PATCH AUTOSEL 4.18 01/59] s390/vdso: add missing FORCE to build targets

2018-11-14 Thread Sasha Levin
From: Vasily Gorbik [ Upstream commit b44b136a3773d8a9c7853f8df716bd1483613cbb ] According to Documentation/kbuild/makefiles.txt all build targets using if_changed should use FORCE as well. Add missing FORCE to make sure vdso targets are rebuild properly when not just immediate prerequisites hav

[PATCH AUTOSEL 4.18 05/59] netfilter: ipset: list:set: Decrease refcount synchronously on deletion and replace

2018-11-14 Thread Sasha Levin
From: Stefano Brivio [ Upstream commit 439cd39ea136d2c026805264d58a91f36b6b64ca ] Commit 45040978c899 ("netfilter: ipset: Fix set:list type crash when flush/dump set in parallel") postponed decreasing set reference counters to the RCU callback. An 'ipset del' command can terminate before the RC

[PATCH AUTOSEL 4.19 63/73] qed: Fix potential memory corruption

2018-11-14 Thread Sasha Levin
From: Sagiv Ozeri [ Upstream commit fa5c448d98f0df660bfcad3dd5facc027ef84cd3 ] A stuck ramrod should be deleted from the completion_pending list, otherwise it will be added again in the future and corrupt the list. Return error value to inform that ramrod is stuck and should be deleted. Signed

[PATCH AUTOSEL 4.19 64/73] net: stmmac: Fix RX packet size > 8191

2018-11-14 Thread Sasha Levin
From: Thor Thayer [ Upstream commit 8137b6ef0ce469154e5cf19f8e7fe04d9a72ac5e ] Ping problems with packets > 8191 as shown: PING 192.168.1.99 (192.168.1.99) 8150(8178) bytes of data. 8158 bytes from 192.168.1.99: icmp_seq=1 ttl=64 time=0.669 ms wrong data byte 8144 should be 0xd0 but was 0x0 16

[PATCH AUTOSEL 4.18 06/59] netfilter: ipset: actually allow allowable CIDR 0 in hash:net,port,net

2018-11-14 Thread Sasha Levin
From: Eric Westbrook [ Upstream commit 886503f34d63e681662057448819edb5b1057a97 ] Allow /0 as advertised for hash:net,port,net sets. For "hash:net,port,net", ipset(8) says that "either subnet is permitted to be a /0 should you wish to match port between all destinations." Make that statement t

[PATCH AUTOSEL 4.18 03/59] Revert "HID: add NOGET quirk for Eaton Ellipse MAX UPS"

2018-11-14 Thread Sasha Levin
From: Benjamin Tissoires [ Upstream commit 6298944d8f57f40ee2a3e6dcea1253e78d7a9969 ] This reverts commit 67ddbb3e6568fb1820b2cc45b00c50702b114801. 67ddbb3e656 ("HID: add NOGET quirk for Eaton Ellipse MAX UPS") was reported by Laurent Bigonville. It turns out that a later model Laurent got does

[PATCH AUTOSEL 4.18 08/59] s390/mm: fix mis-accounting of pgtable_bytes

2018-11-14 Thread Sasha Levin
From: Martin Schwidefsky [ Upstream commit e12e4044aede97974feb7f0ed726a5179a32 ] In case a fork or a clone system fails in copy_process and the error handling does the mmput() at the bad_fork_cleanup_mm label, the following warning messages will appear on the console: BUG: non-zero pgtab

[PATCH AUTOSEL 4.18 30/59] lib/raid6: Fix arm64 test build

2018-11-14 Thread Sasha Levin
From: Jeremy Linton [ Upstream commit 313a06e636808387822af24c507cba92703568b1 ] The lib/raid6/test fails to build the neon objects on arm64 because the correct machine type is 'aarch64'. Once this is correctly enabled, the neon recovery objects need to be added to the build. Reviewed-by: Ard

[PATCH AUTOSEL 4.18 27/59] arm64: dts: renesas: r8a7795: add missing dma-names on hscif2

2018-11-14 Thread Sasha Levin
From: Kuninori Morimoto [ Upstream commit aab7a2414ba0d5c3d0571a90031b535adba7146a ] hscif2 has 4 dmas, but has only 2 dma-names. This patch add missing dma-names. Signed-off-by: Kuninori Morimoto Reviewed-by: Geert Uytterhoeven Fixes: e0f0bda79337701a ("arm64: dts: renesas: r8a7795: sort sub

[PATCH AUTOSEL 4.18 41/59] perf tools: Fix undefined symbol scnprintf in libperf-jvmti.so

2018-11-14 Thread Sasha Levin
From: Gustavo Romero [ Upstream commit 6ac2226229d931153331a93d90655a3de05b9290 ] Currently jvmti agent can not be used because function scnprintf is not present in the agent libperf-jvmti.so. As a result the JVM when using such agent to record JITed code profiling information will fail on looki

[PATCH AUTOSEL 4.18 40/59] sched/core: Take the hotplug lock in sched_init_smp()

2018-11-14 Thread Sasha Levin
From: Valentin Schneider [ Upstream commit 40fa3780bac2b654edf23f6b13f4e2dd550aea10 ] When running on linux-next (8c60c36d0b8c ("Add linux-next specific files for 20181019")) + CONFIG_PROVE_LOCKING=y on a big.LITTLE system (e.g. Juno or HiKey960), we get the following report: [0.748225] Ca

[PATCH AUTOSEL 4.18 37/59] clk: meson: axg: mark fdiv2 and fdiv3 as critical

2018-11-14 Thread Sasha Levin
From: Jerome Brunet [ Upstream commit d6ee1e7e9004d3d246cdfa14196989e0a9466c16 ] Similar to gxbb and gxl platforms, axg SCPI Cortex-M co-processor uses the fdiv2 and fdiv3 to, among other things, provide the cpu clock. Until clock hand-off mechanism makes its way to CCF and the generic SCPI cla

[PATCH AUTOSEL 4.18 55/59] net: aquantia: fixed enable unicast on 32 macvlan

2018-11-14 Thread Sasha Levin
From: Igor Russkikh [ Upstream commit bfaa9f8553d5c20703781e63f4fc8cb4792f18fd ] Fixed a condition mistake due to which macvlans unicast item number 32 was not added in the unicast filter. The consequence is that when exactly 32 macvlans are created on NIC, the last created macvlan receives no

[PATCH AUTOSEL 4.18 54/59] net: aquantia: fix potential IOMMU fault after driver unbind

2018-11-14 Thread Sasha Levin
From: Dmitry Bogdanov [ Upstream commit 7a1bb49461b12b2e6332a4d054256835f45203f3 ] IOMMU fault may occurr on unbind/bind or if_down/if_up sequence. Although driver disables the rings on down, this is not enough. Due to internal HW design, during subsequent initialization NIC sometimes may reuse

[PATCH AUTOSEL 4.14 16/27] s390/perf: Change CPUM_CF return code in event init function

2018-11-14 Thread Sasha Levin
From: Thomas Richter [ Upstream commit 0bb2ae1b26e1fb7543ec7474cdd374ac4b88c4da ] The function perf_init_event() creates a new event and assignes it to a PMU. This a done in a loop over all existing PMUs. For each listed PMU the event init function is called and if this function does return any

[PATCH AUTOSEL 4.14 14/27] clk: fixed-factor: fix of_node_get-put imbalance

2018-11-14 Thread Sasha Levin
From: Ricardo Ribalda Delgado [ Upstream commit f98e8a572bddbf27032114127d2fcc78fa5e6a9d ] When the fixed factor clock is created by devicetree, of_clk_add_provider is called. Add a call to of_clk_del_provider in the remove function to balance it out. Reported-by: Alan Tull Fixes: 971451b3b15

[PATCH AUTOSEL 4.9 03/13] s390/mm: Fix ERROR: "__node_distance" undefined!

2018-11-14 Thread Sasha Levin
From: "Justin M. Forbes" [ Upstream commit a541f0ebcc08ed8bc0cc492eec9a86cb280a9f24 ] Fixes: ERROR: "__node_distance" [drivers/nvme/host/nvme-core.ko] undefined! make[1]: *** [scripts/Makefile.modpost:92: __modpost] Error 1 make: *** [Makefile:1275: modules] Error 2 + exit 1 Signed-off-by: Just

[PATCH AUTOSEL 4.9 01/13] s390/vdso: add missing FORCE to build targets

2018-11-14 Thread Sasha Levin
From: Vasily Gorbik [ Upstream commit b44b136a3773d8a9c7853f8df716bd1483613cbb ] According to Documentation/kbuild/makefiles.txt all build targets using if_changed should use FORCE as well. Add missing FORCE to make sure vdso targets are rebuild properly when not just immediate prerequisites hav

[PATCH AUTOSEL 4.14 26/27] net: smsc95xx: Fix MTU range

2018-11-14 Thread Sasha Levin
From: Stefan Wahren [ Upstream commit 85b18b0237ce9986a81a1b9534b5e2ee116f5504 ] The commit f77f0aee4da4 ("net: use core MTU range checking in USB NIC drivers") introduce a common MTU handling for usbnet. But it's missing the necessary changes for smsc95xx. So set the MTU range accordingly. Thi

[PATCH AUTOSEL 4.9 09/13] clk: fixed-factor: fix of_node_get-put imbalance

2018-11-14 Thread Sasha Levin
From: Ricardo Ribalda Delgado [ Upstream commit f98e8a572bddbf27032114127d2fcc78fa5e6a9d ] When the fixed factor clock is created by devicetree, of_clk_add_provider is called. Add a call to of_clk_del_provider in the remove function to balance it out. Reported-by: Alan Tull Fixes: 971451b3b15

Re: [PATCH] Suppress the sparse warning ./include/linux/slab.h:332:43: warning: dubious: x & !y

2018-11-14 Thread David Rientjes
On Thu, 8 Nov 2018, Darryl T. Agostinelli wrote: > Signed-off-by: Darryl T. Agostinelli > --- > include/linux/slab.h | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/include/linux/slab.h b/include/linux/slab.h > index 918f374e7156..883b7f56bf35 100644 > --- a/includ

[PATCH AUTOSEL 4.14 09/27] netfilter: xt_IDLETIMER: add sysfs filename checking routine

2018-11-14 Thread Sasha Levin
From: Taehee Yoo [ Upstream commit 54451f60c8fa061af9051a53be9786393947367c ] When IDLETIMER rule is added, sysfs file is created under /sys/class/xt_idletimer/timers/ But some label name shouldn't be used. ".", "..", "power", "uevent", "subsystem", etc... So that sysfs filename checking routine

[PATCH AUTOSEL 4.14 01/27] s390/vdso: add missing FORCE to build targets

2018-11-14 Thread Sasha Levin
From: Vasily Gorbik [ Upstream commit b44b136a3773d8a9c7853f8df716bd1483613cbb ] According to Documentation/kbuild/makefiles.txt all build targets using if_changed should use FORCE as well. Add missing FORCE to make sure vdso targets are rebuild properly when not just immediate prerequisites hav

[PATCH AUTOSEL 4.18 59/59] net: dsa: mv88e6xxx: Fix clearing of stats counters

2018-11-14 Thread Sasha Levin
From: Andrew Lunn [ Upstream commit a9049ff9214da68df1179a7d5e36b43479abc9b8 ] The mv88e6161 would sometime fail to probe with a timeout waiting for the switch to complete an operation. This operation is supposed to clear the statistics counters. However, due to a read/modify/write, without the

[PATCH AUTOSEL 4.14 17/27] i2c: omap: Enable for ARCH_K3

2018-11-14 Thread Sasha Levin
From: Vignesh R [ Upstream commit 5b277402deac0691226a947df71c581686bd4020 ] Allow I2C_OMAP to be built for K3 platforms. Signed-off-by: Vignesh R Reviewed-by: Grygorii Strashko Signed-off-by: Wolfram Sang Signed-off-by: Sasha Levin --- drivers/i2c/busses/Kconfig | 2 +- 1 file changed, 1

[PATCH AUTOSEL 4.18 56/59] net: aquantia: invalid checksumm offload implementation

2018-11-14 Thread Sasha Levin
From: Dmitry Bogdanov [ Upstream commit ad703c2b9127f9acdef697ec4755f6da4beaa266 ] Packets with marked invalid IP/UDP/TCP checksums were considered as good by the driver. The error was in a logic, processing offload bits in RX descriptor. Signed-off-by: Igor Russkikh Signed-off-by: Dmitry Bogd

[PATCH AUTOSEL 4.9 02/13] netfilter: ipset: actually allow allowable CIDR 0 in hash:net,port,net

2018-11-14 Thread Sasha Levin
From: Eric Westbrook [ Upstream commit 886503f34d63e681662057448819edb5b1057a97 ] Allow /0 as advertised for hash:net,port,net sets. For "hash:net,port,net", ipset(8) says that "either subnet is permitted to be a /0 should you wish to match port between all destinations." Make that statement t

[PATCH AUTOSEL 4.4 3/8] s390/mm: Fix ERROR: "__node_distance" undefined!

2018-11-14 Thread Sasha Levin
From: "Justin M. Forbes" [ Upstream commit a541f0ebcc08ed8bc0cc492eec9a86cb280a9f24 ] Fixes: ERROR: "__node_distance" [drivers/nvme/host/nvme-core.ko] undefined! make[1]: *** [scripts/Makefile.modpost:92: __modpost] Error 1 make: *** [Makefile:1275: modules] Error 2 + exit 1 Signed-off-by: Just

[PATCH AUTOSEL 4.9 13/13] qed: Fix blocking/unlimited SPQ entries leak

2018-11-14 Thread Sasha Levin
From: Denis Bolotin [ Upstream commit 2632f22ebd08da249c2017962a199a0cfb2324bf ] When there are no SPQ entries left in the free_pool, new entries are allocated and are added to the unlimited list. When an entry in the pool is available, the content is copied from the original entry, and the new

[PATCH AUTOSEL 4.4 2/8] netfilter: ipset: actually allow allowable CIDR 0 in hash:net,port,net

2018-11-14 Thread Sasha Levin
From: Eric Westbrook [ Upstream commit 886503f34d63e681662057448819edb5b1057a97 ] Allow /0 as advertised for hash:net,port,net sets. For "hash:net,port,net", ipset(8) says that "either subnet is permitted to be a /0 should you wish to match port between all destinations." Make that statement t

[PATCH AUTOSEL 4.4 1/8] s390/vdso: add missing FORCE to build targets

2018-11-14 Thread Sasha Levin
From: Vasily Gorbik [ Upstream commit b44b136a3773d8a9c7853f8df716bd1483613cbb ] According to Documentation/kbuild/makefiles.txt all build targets using if_changed should use FORCE as well. Add missing FORCE to make sure vdso targets are rebuild properly when not just immediate prerequisites hav

[PATCH AUTOSEL 3.18 3/3] i2c: omap: Enable for ARCH_K3

2018-11-14 Thread Sasha Levin
From: Vignesh R [ Upstream commit 5b277402deac0691226a947df71c581686bd4020 ] Allow I2C_OMAP to be built for K3 platforms. Signed-off-by: Vignesh R Reviewed-by: Grygorii Strashko Signed-off-by: Wolfram Sang Signed-off-by: Sasha Levin --- drivers/i2c/busses/Kconfig | 2 +- 1 file changed, 1

[PATCH AUTOSEL 3.18 2/3] lib/raid6: Fix arm64 test build

2018-11-14 Thread Sasha Levin
From: Jeremy Linton [ Upstream commit 313a06e636808387822af24c507cba92703568b1 ] The lib/raid6/test fails to build the neon objects on arm64 because the correct machine type is 'aarch64'. Once this is correctly enabled, the neon recovery objects need to be added to the build. Reviewed-by: Ard

[PATCH AUTOSEL 4.4 7/8] lib/raid6: Fix arm64 test build

2018-11-14 Thread Sasha Levin
From: Jeremy Linton [ Upstream commit 313a06e636808387822af24c507cba92703568b1 ] The lib/raid6/test fails to build the neon objects on arm64 because the correct machine type is 'aarch64'. Once this is correctly enabled, the neon recovery objects need to be added to the build. Reviewed-by: Ard

[PATCH AUTOSEL 4.4 8/8] i2c: omap: Enable for ARCH_K3

2018-11-14 Thread Sasha Levin
From: Vignesh R [ Upstream commit 5b277402deac0691226a947df71c581686bd4020 ] Allow I2C_OMAP to be built for K3 platforms. Signed-off-by: Vignesh R Reviewed-by: Grygorii Strashko Signed-off-by: Wolfram Sang Signed-off-by: Sasha Levin --- drivers/i2c/busses/Kconfig | 2 +- 1 file changed, 1

[PATCH AUTOSEL 3.18 1/3] s390/vdso: add missing FORCE to build targets

2018-11-14 Thread Sasha Levin
From: Vasily Gorbik [ Upstream commit b44b136a3773d8a9c7853f8df716bd1483613cbb ] According to Documentation/kbuild/makefiles.txt all build targets using if_changed should use FORCE as well. Add missing FORCE to make sure vdso targets are rebuild properly when not just immediate prerequisites hav

Re: [PATCH] mm: mmap: remove verify_mm_writelocked()

2018-11-14 Thread David Rientjes
On Thu, 8 Nov 2018, Yangtao Li wrote: > We should get rid of this function. It no longer serves its purpose.This > is a historical artifact from 2005 where do_brk was called outside of > the core mm.We do have a proper abstraction in vm_brk_flags and that one > does the locking properly.So there i

[PATCH AUTOSEL 4.4 6/8] hwmon: (ibmpowernv) Remove bogus __init annotations

2018-11-14 Thread Sasha Levin
From: Geert Uytterhoeven [ Upstream commit e3e61f01d755188cb6c2dcf5a244b9c0937c258e ] If gcc decides not to inline make_sensor_label(): WARNING: vmlinux.o(.text+0x4df549c): Section mismatch in reference from the function .create_device_attrs() to the function .init.text:.make_sensor_label(

[PATCH v2] HID: uhid: forbid UHID_CREATE under KERNEL_DS or elevated privileges

2018-11-14 Thread Eric Biggers
From: Eric Biggers When a UHID_CREATE command is written to the uhid char device, a copy_from_user() is done from a user pointer embedded in the command. When the address limit is KERNEL_DS, e.g. as is the case during sys_sendfile(), this can read from kernel memory. Alternatively, information c

Re: [PATCH] HID: uhid: prevent uhid_char_write() under KERNEL_DS

2018-11-14 Thread Eric Biggers
On Wed, Nov 14, 2018 at 07:18:39PM +0100, 'Jann Horn' via syzkaller-bugs wrote: > +cc Andy > > On Wed, Nov 14, 2018 at 7:03 PM Eric Biggers wrote: > > When a UHID_CREATE command is written to the uhid char device, a > > copy_from_user() is done from a user pointer embedded in the command. > > Whe

Re: [PATCH 2/2] clk: Add Fixed MMIO clock driver

2018-11-14 Thread Stephen Boyd
Quoting Janek Kotas (2018-11-14 07:24:39) > This patch adds a driver for Fixed MMIO clock. > The driver reads a clock frequency value from a single 32-bit memory > mapped register and registers it as a fixed rate clock. > > It can be enabled with COMMON_CLK_FIXED_MMIO Kconfig option. > > Signed-o

[PATCH 8/9] drm/msm/mdp5: add config for msm8917

2018-11-14 Thread Jonathan Marek
Add the mdp5_cfg_hw entry for MDP5 version v1.15 found on msm8917. Signed-off-by: Jonathan Marek --- drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c | 86 1 file changed, 86 insertions(+) diff --git a/drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c b/drivers/gpu/drm/msm/disp/mdp5/md

[PATCH 9/9] drm/msm: set priv->kms to NULL before uninit

2018-11-14 Thread Jonathan Marek
otherwise, priv->kms is non-NULL and msm_drm_uninit will cause a panic. Signed-off-by: Jonathan Marek --- drivers/gpu/drm/msm/msm_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index bda23011494d..94b0593f6090 100644 --- a/

[PATCH 7/9] drm/msm: implement a2xx mmu

2018-11-14 Thread Jonathan Marek
A2XX has its own very simple MMU. Added a msm_use_mmu() function because we can't rely on iommu_present to decide to use MMU or not. Signed-off-by: Jonathan Marek --- drivers/gpu/drm/msm/Makefile | 3 +- drivers/gpu/drm/msm/adreno/a2xx_gpu.c | 57 +-- drivers/gpu/d

Re: [PATCH v2] HID: uhid: forbid UHID_CREATE under KERNEL_DS or elevated privileges

2018-11-14 Thread Dmitry Torokhov
On Wed, Nov 14, 2018 at 2:05 PM Jann Horn wrote: > > On Wed, Nov 14, 2018 at 10:55 PM Eric Biggers wrote: > > > > From: Eric Biggers > > > > When a UHID_CREATE command is written to the uhid char device, a > > copy_from_user() is done from a user pointer embedded in the command. > > When the add

[PATCH AUTOSEL 4.9 10/13] lib/raid6: Fix arm64 test build

2018-11-14 Thread Sasha Levin
From: Jeremy Linton [ Upstream commit 313a06e636808387822af24c507cba92703568b1 ] The lib/raid6/test fails to build the neon objects on arm64 because the correct machine type is 'aarch64'. Once this is correctly enabled, the neon recovery objects need to be added to the build. Reviewed-by: Ard

[PATCH AUTOSEL 4.9 11/13] i2c: omap: Enable for ARCH_K3

2018-11-14 Thread Sasha Levin
From: Vignesh R [ Upstream commit 5b277402deac0691226a947df71c581686bd4020 ] Allow I2C_OMAP to be built for K3 platforms. Signed-off-by: Vignesh R Reviewed-by: Grygorii Strashko Signed-off-by: Wolfram Sang Signed-off-by: Sasha Levin --- drivers/i2c/busses/Kconfig | 2 +- 1 file changed, 1

[PATCH AUTOSEL 4.9 12/13] qed: Fix memory/entry leak in qed_init_sp_request()

2018-11-14 Thread Sasha Levin
From: Denis Bolotin [ Upstream commit 39477551df940ddb1339203817de04f5caaacf7a ] Free the allocated SPQ entry or return the acquired SPQ entry to the free list in error flows. Signed-off-by: Denis Bolotin Signed-off-by: Michal Kalderon Signed-off-by: David S. Miller Signed-off-by: Sasha Levi

[PATCH AUTOSEL 4.9 07/13] s390/qeth: fix HiperSockets sniffer

2018-11-14 Thread Sasha Levin
From: Julian Wiedmann [ Upstream commit bd74a7f9cc033cf4d405788f80292268987dc0c5 ] Sniffing mode for L3 HiperSockets requires that no IP addresses are registered with the HW. The preferred way to achieve this is for userspace to delete all the IPs on the interface. But qeth is expected to also t

[PATCH AUTOSEL 4.14 27/27] ext4: missing !bh check in ext4_xattr_inode_write()

2018-11-14 Thread Sasha Levin
From: Vasily Averin [ Upstream commit eb6984fa4ce2837dcb1f66720a600f31b0bb3739 ] According to Ted Ts'o ext4_getblk() called in ext4_xattr_inode_write() should not return bh = NULL The only time that bh could be NULL, then, would be in the case of something really going wrong; a programming erro

[PATCH AUTOSEL 4.14 23/27] qed: Fix blocking/unlimited SPQ entries leak

2018-11-14 Thread Sasha Levin
From: Denis Bolotin [ Upstream commit 2632f22ebd08da249c2017962a199a0cfb2324bf ] When there are no SPQ entries left in the free_pool, new entries are allocated and are added to the unlimited list. When an entry in the pool is available, the content is copied from the original entry, and the new

[PATCH AUTOSEL 4.14 19/27] perf tools: Fix undefined symbol scnprintf in libperf-jvmti.so

2018-11-14 Thread Sasha Levin
From: Gustavo Romero [ Upstream commit 6ac2226229d931153331a93d90655a3de05b9290 ] Currently jvmti agent can not be used because function scnprintf is not present in the agent libperf-jvmti.so. As a result the JVM when using such agent to record JITed code profiling information will fail on looki

[PATCH AUTOSEL 4.14 15/27] lib/raid6: Fix arm64 test build

2018-11-14 Thread Sasha Levin
From: Jeremy Linton [ Upstream commit 313a06e636808387822af24c507cba92703568b1 ] The lib/raid6/test fails to build the neon objects on arm64 because the correct machine type is 'aarch64'. Once this is correctly enabled, the neon recovery objects need to be added to the build. Reviewed-by: Ard

[PATCH AUTOSEL 4.14 18/27] sched/core: Take the hotplug lock in sched_init_smp()

2018-11-14 Thread Sasha Levin
From: Valentin Schneider [ Upstream commit 40fa3780bac2b654edf23f6b13f4e2dd550aea10 ] When running on linux-next (8c60c36d0b8c ("Add linux-next specific files for 20181019")) + CONFIG_PROVE_LOCKING=y on a big.LITTLE system (e.g. Juno or HiKey960), we get the following report: [0.748225] Ca

[PATCH AUTOSEL 4.14 12/27] hwmon: (ibmpowernv) Remove bogus __init annotations

2018-11-14 Thread Sasha Levin
From: Geert Uytterhoeven [ Upstream commit e3e61f01d755188cb6c2dcf5a244b9c0937c258e ] If gcc decides not to inline make_sensor_label(): WARNING: vmlinux.o(.text+0x4df549c): Section mismatch in reference from the function .create_device_attrs() to the function .init.text:.make_sensor_label(

[PATCH AUTOSEL 4.14 10/27] s390/qeth: fix HiperSockets sniffer

2018-11-14 Thread Sasha Levin
From: Julian Wiedmann [ Upstream commit bd74a7f9cc033cf4d405788f80292268987dc0c5 ] Sniffing mode for L3 HiperSockets requires that no IP addresses are registered with the HW. The preferred way to achieve this is for userspace to delete all the IPs on the interface. But qeth is expected to also t

[PATCH AUTOSEL 4.14 08/27] netfilter: ipset: Correct rcu_dereference() call in ip_set_put_comment()

2018-11-14 Thread Sasha Levin
From: Jozsef Kadlecsik [ Upstream commit 17b8b74c0f8dbf9b9e3301f9ca5b65dd1c079951 ] The function is called when rcu_read_lock() is held and not when rcu_read_lock_bh() is held. Signed-off-by: Jozsef Kadlecsik Signed-off-by: Pablo Neira Ayuso Signed-off-by: Sasha Levin --- include/linux/netf

[PATCH AUTOSEL 4.14 11/27] mlxsw: spectrum: Fix IP2ME CPU policer configuration

2018-11-14 Thread Sasha Levin
From: Shalom Toledo [ Upstream commit 96801552f846460fe9ac10f1b189602992f004e1 ] The CPU policer used to police packets being trapped via a local route (IP2ME) was incorrectly configured to police based on bytes per second instead of packets per second. Change the policer to police based on pac

[PATCH AUTOSEL 4.14 04/27] s390/mm: Fix ERROR: "__node_distance" undefined!

2018-11-14 Thread Sasha Levin
From: "Justin M. Forbes" [ Upstream commit a541f0ebcc08ed8bc0cc492eec9a86cb280a9f24 ] Fixes: ERROR: "__node_distance" [drivers/nvme/host/nvme-core.ko] undefined! make[1]: *** [scripts/Makefile.modpost:92: __modpost] Error 1 make: *** [Makefile:1275: modules] Error 2 + exit 1 Signed-off-by: Just

Re: [PATCH 0/2] clocksource/meson6_timer: implement ARM delay timer

2018-11-14 Thread Martin Blumenstingl
Hi Daniel, Hi Thomas, On Sun, Oct 28, 2018 at 1:55 PM Martin Blumenstingl wrote: > > While trying to add support for the ARM TWD Timer and the ARM Global > Timer on Meson8, Meson8b and Meson8m2 (ARM Cortex-A5 and Cortex-A9 SoCs) > I did a review of the existing driver. > Unfortunately I found it

[PATCH][next] block: clean up dead code that is now redundant

2018-11-14 Thread Colin King
From: Colin Ian King The boolean next_sorted is set to false and is never changed, hence the code that checks if it is true is dead code and can now be removed. This dead code occurred from a previous commit that cleaned up the elevator and removed the setting of next_sorted to true. Detected b

[PATCH AUTOSEL 4.18 57/59] net: qualcomm: rmnet: Fix incorrect assignment of real_dev

2018-11-14 Thread Sasha Levin
From: Subash Abhinov Kasiviswanathan [ Upstream commit d02854dc1999ed3e7fd79ec700c64ac23ac0c458 ] A null dereference was observed when a sysctl was being set from userspace and rmnet was stuck trying to complete some actions in the NETDEV_REGISTER callback. This is because the real_dev is set on

  1   2   3   4   5   6   7   >