Re: [PATCH v2 1/2] platform/chrome: straighten out cros_ec_get_{next,host}_event() error codes

2018-11-12 Thread Lee Jones
On Wed, 07 Nov 2018, Brian Norris wrote: > cros_ec_get_next_event() is documented to return 0 for success and > negative for errors. It currently returns negative for some errors, and > non-negative (number of bytes received) for success (including some "no > data available" responses as zero). Th

Re: [PATCH] mfd: tps6586x: Handle interrupts on suspend

2018-11-12 Thread Lee Jones
On Mon, 05 Nov 2018, Jon Hunter wrote: > Hi Lee, > > On 19/10/2018 14:22, Jon Hunter wrote: > > From: Jonathan Hunter > > > > The tps6586x driver creates an irqchip that is used by its various child > > devices for managing interrupts. The tps6586x-rtc device is one of its > > children that use

Re: [PATCH] vmscan: return NODE_RECLAIM_NOSCAN in node_reclaim() when CONFIG_NUMA is n

2018-11-12 Thread Wei Yang
On Mon, Nov 12, 2018 at 09:36:15PM -0800, Matthew Wilcox wrote: >On Tue, Nov 13, 2018 at 12:17:50PM +0800, Wei Yang wrote: >> Commit fa5e084e43eb ("vmscan: do not unconditionally treat zones that >> fail zone_reclaim() as full") changed the return value of node_reclaim(). >> The original return val

Re: [PATCH] mm/hwpoison: fix incorrect call put_hwpoison_page() when isolate_huge_page() return false

2018-11-12 Thread Naoya Horiguchi
On Tue, Nov 13, 2018 at 03:00:09PM +0800, Yongkai Wu wrote: > when isolate_huge_page() return false,it won't takes a refcount of page, > if we call put_hwpoison_page() in that case,we may hit the VM_BUG_ON_PAGE! > > Signed-off-by: Yongkai Wu > --- > mm/memory-failure.c | 13 +++-- > 1 fi

Re: [PATCH v5 2/8] mfd: stpmic1: add stpmic1 driver

2018-11-12 Thread Lee Jones
On Mon, 29 Oct 2018, Pascal PAILLET-LME wrote: > stpmic1 is a pmic from STMicroelectronics. The STPMIC1 integrates 10 "STPMIC1 is a PMIC" > regulators, 3 power switches, a watchdog and an input for a power on key. > > Signed-off-by: Pascal Paillet > --- > changes in v5: > * use macro to define

Re: [RFC PATCH v3 10/13] soc: ti: Add MSI domain support for K3 Interrupt Aggregator

2018-11-12 Thread Lokesh Vutla
Hi Marc, On 06/11/18 2:11 PM, Lokesh Vutla wrote: With the system coprocessor managing the range allocation of the inputs to Interrupt Aggregator, it is difficult to represent the device IRQs from DT. The suggestion is to use MSI in such cases where devices wants to allocate and group interrupt

Re: [PATCH v5 1/8] dt-bindings: mfd: document stpmic1

2018-11-12 Thread Lee Jones
On Mon, 29 Oct 2018, Pascal PAILLET-LME wrote: > stpmic1 is a pmic from STMicroelectronics. The STPMIC1 integrates 10 Nit: "STPMIC1 is a PMIC". Once corrected, please apply my: For my own reference: Acked-for-MFD-by: Lee Jones -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │

Re: [PATCH RESEND v4 1/5] spi: spi-mem: Add driver for NXP FlexSPI controller

2018-11-12 Thread Schrempf Frieder
On 13.11.18 08:04, Yogesh Narayan Gaur wrote: > Hi Frieder, > > Thanks for review. > >> -Original Message- >> From: Schrempf Frieder [mailto:frieder.schre...@kontron.de] >> Sent: Wednesday, November 7, 2018 9:52 PM >> To: Yogesh Narayan Gaur ; linux- >> m...@lists.infradead.org; boris.bre

Re: [PATCH v6 2/6] mfd: rk808: Add RK817 and RK809 support

2018-11-12 Thread Lee Jones
On Tue, 30 Oct 2018, Tony Xie wrote: > The rk809 and rk817 are a Power Management IC (PMIC) for multimedia "RK809 and RK817" > and handheld devices. It contains the following components: s/It contains/They contain/ > - Regulators > - RTC > - Clocking > > Both RK809 and RK817 chips are u

[PATCH] fork: Fix two -Wmissing-prototypes warnings

2018-11-12 Thread Yi Wang
We get two warning when building kernel with W=1: kernel/fork.c:167:13: warning: no previous prototype for ‘arch_release_thread_stack’ [-Wmissing-prototypes] kernel/fork.c:779:13: warning: no previous prototype for ‘fork_init’ [-Wmissing-prototypes] Add the missing declaration in head file to fi

[rtnetlink] Potential bug in Linux (rt)netlink code (repost from linux-netdev)?

2018-11-12 Thread Henning Rogge
Hi, I am working on a self-written routing agent (https://github.com/OLSR/OONF) and am stuck on a problem with netlink that I cannot explain with an userspace error. I am using a netlink socket for setting routes (RTM_NEWROUTE/RTM_DELROUTE), querying the kernel for the current routes in the

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

2018-11-12 Thread Ingo Molnar
* Bjorn Helgaas wrote: > PCI changes: > > - Pay attention to device-specific _PXM node values (Jonathan Cameron) There's a new boot regression, my AMD ThreadRipper system (MSI X399 SLI PLUS (MS-7B09)) hangs during early bootup, and I have bisected it down to this commit: bad7dcd94f39:

RE: [PATCH v5 2/2] dt-bindings: mailbox: Add Xilinx IPI Mailbox

2018-11-12 Thread Jiaying Liang
> -Original Message- > From: Rob Herring [mailto:r...@kernel.org] > Sent: Monday, November 12, 2018 9:56 AM > To: Jiaying Liang > Cc: jassisinghb...@gmail.com; Michal Simek ; > mark.rutl...@arm.com; linux-kernel@vger.kernel.org; linux-arm- > ker...@lists.infradead.org; devicet...@vger.k

Re: [PATCH 04/24] dt-bindings: leds: Add function and color properties

2018-11-12 Thread Vesa Jääskeläinen
Hi Jacek, On 12/11/2018 18.02, Jacek Anaszewski wrote: Support for RGB LEDs, or other variations of LED synchronization have been approached several times, but without satisfying result so far. Generally the problem boils down to the issue of how triggers should handle multiple synchronized LED

RE: [PATCH RESEND v4 1/5] spi: spi-mem: Add driver for NXP FlexSPI controller

2018-11-12 Thread Yogesh Narayan Gaur
Hi Frieder, Thanks for review. > -Original Message- > From: Schrempf Frieder [mailto:frieder.schre...@kontron.de] > Sent: Wednesday, November 7, 2018 9:52 PM > To: Yogesh Narayan Gaur ; linux- > m...@lists.infradead.org; boris.brezil...@bootlin.com; marek.va...@gmail.com; > broo...@kernel

Re: [PATCH 1/3] gpio: mockup: fix indicated direction

2018-11-12 Thread Uwe Kleine-König
Hello Bartosz, On Mon, Nov 12, 2018 at 03:14:31PM +0100, Bartosz Golaszewski wrote: > > > As I said before: it is and should be fixed in this specific case. > > > This isn't real hardware. Not being "real hardware" is hardly an argument that matters here. > > Not sure if we agree here yet. What

Re: [RFC PATCH v2 1/2] x86/fpu: detect AVX task

2018-11-12 Thread Li, Aubrey
On 2018/11/12 23:46, Dave Hansen wrote: > On 11/11/18 9:38 PM, Li, Aubrey wrote: > >>> Do we want this, or do we want something more time-based? >>> >> This counter is introduced here to solve the race of context switch and >> VZEROUPPER. 3 context switches mean the same thread is on-off CPU 3 time

RE: [PATCH] mtd: spi-nor: cast to u64 to avoid uint overflows

2018-11-12 Thread Yogesh Narayan Gaur
Hi Huijin, I guess this is the v2 of previously send patch [1], please follow version information in patch submission. -- Regards Yogesh Gaur [1] https://patchwork.ozlabs.org/patch/961197/ > -Original Message- > From: linux-mtd [mailto:linux-mtd-boun...@lists.infradead.org] On Behalf O

[PATCH] net/9p: include trans_common.h to fix missing prototype warning.

2018-11-12 Thread Adeodato Simó
This silences -Wmissing-prototypes when defining p9_release_pages. Signed-off-by: Adeodato Simó --- net/9p/trans_common.c | 1 + 1 file changed, 1 insertion(+) It was suggested in the kernel-janitors mailing list that silencing -Wmissing-prototypes would make for a worthy cause. https://www.sp

[PATCH v5 3/4] mm: convert totalram_pages and totalhigh_pages variables to atomic

2018-11-12 Thread Arun KS
totalram_pages and totalhigh_pages are made static inline function. Main motivation was that managed_page_count_lock handling was complicating things. It was discussed in lenght here, https://lore.kernel.org/patchwork/patch/995739/#1181785 So it seemes better to remove the lock and convert variabl

[PATCH v5 2/4] mm: convert zone->managed_pages to atomic variable

2018-11-12 Thread Arun KS
totalram_pages, zone->managed_pages and totalhigh_pages updates are protected by managed_page_count_lock, but readers never care about it. Convert these variables to atomic to avoid readers potentially seeing a store tear. This patch converts zone->managed_pages. Subsequent patches will convert to

[PATCH v5 4/4] mm: Remove managed_page_count spinlock

2018-11-12 Thread Arun KS
Now that totalram_pages and managed_pages are atomic varibles, no need of managed_page_count spinlock. The lock had really a weak consistency guarantee. It hasn't been used for anything but the update but no reader actually cares about all the values being updated to be in sync. Signed-off-by: Aru

[PATCH v5 1/4] mm: reference totalram_pages and managed_pages once per function

2018-11-12 Thread Arun KS
This patch is in preparation to a later patch which converts totalram_pages and zone->managed_pages to atomic variables. Please note that re-reading the value might lead to a different value and as such it could lead to unexpected behavior. There are no known bugs as a result of the current code bu

[PATCH v5 0/4] mm: convert totalram_pages, totalhigh_pages and managed pages to atomic

2018-11-12 Thread Arun KS
This series convert totalram_pages, totalhigh_pages and zone->managed_pages to atomic variables. The patch was comiple tested on x86(x86_64_defconfig & i386_defconfig) on 4.20-rc2. And memory hotplug tested on arm64, but on an older version of kernel. totalram_pages, zone->managed_pages and total

RE: [PATCH v2 1/5] mtd: spi-nor: don't drop sfdp data if optional parsers fail

2018-11-12 Thread Yogesh Narayan Gaur
> -Original Message- > From: tudor.amba...@microchip.com [mailto:tudor.amba...@microchip.com] > Sent: Friday, November 9, 2018 10:27 PM > To: boris.brezil...@bootlin.com; marek.va...@gmail.com; > dw...@infradead.org; computersforpe...@gmail.com; rich...@nod.at > Cc: linux-...@lists.infradea

Re: [RFC PATCH 06/13] m68k: Drop ARCH_USES_GETTIMEOFFSET

2018-11-12 Thread Finn Thain
On Tue, 13 Nov 2018, Michael Schmitz wrote: > > > (It appears that a QEMU-emulated Mac does not benefit from having a > > clocksource that's more accurate than the 'jiffies' clocksource, in > > spite of "clocksource: Switched to clocksource via1".) > > With the current code, kernel log timesta

Re: [PATCH v3 06/13] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings

2018-11-12 Thread Lokesh Vutla
Hi Rob, On 12/11/18 11:30 PM, Rob Herring wrote: On Tue, Nov 06, 2018 at 02:10:58PM +0530, Lokesh Vutla wrote: Add the DT binding documentation for Interrupt router driver. Signed-off-by: Lokesh Vutla --- Changes since v2: - Dropped interrupt-parent from reqired properties description - Updat

RE: [PATCH 15/23] dt-bindings: pci: mobiveil: change gpio_slave and apb_csr to optional

2018-11-12 Thread Z.q. Hou
Hi Rob, Thanks a lot for your ACK! > -Original Message- > From: Rob Herring > Sent: 2018年11月13日 2:13 > To: Z.q. Hou > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; > bhelg...@google.com; mark.rutl...@arm.

[PATCH AUTOSEL 4.19 03/44] cifs: fix return value for cifs_listxattr

2018-11-12 Thread Sasha Levin
From: Ronnie Sahlberg [ Upstream commit 0c5d6cb6643f48ad3775322f3ebab6c7eb67484e ] If the application buffer was too small to fit all the names we would still count the number of bytes and return this for listxattr. This would then trigger a BUG in usercopy.c Fix the computation of the size so

[PATCH AUTOSEL 4.19 05/44] nvme-pci: fix conflicting p2p resource adds

2018-11-12 Thread Sasha Levin
From: Keith Busch [ Upstream commit 9fe5c59ff6a1e5e26a39b75489a1420e7eaaf0b1 ] The nvme pci driver had been adding its CMB resource to the P2P DMA subsystem everytime on on a controller reset. This results in the following warning: [ cut here ] nvme :00:03.0:

[PATCH AUTOSEL 4.19 01/44] bfs: add sanity check at bfs_fill_super()

2018-11-12 Thread Sasha Levin
From: Tetsuo Handa [ Upstream commit 9f2df09a33aa2c76ce6385d382693f98d7f2f07e ] syzbot is reporting too large memory allocation at bfs_fill_super() [1]. Since file system image is corrupted such that bfs_sb->s_start == 0, bfs_fill_super() is trying to allocate 8MB of continuous memory. Fix this

[PATCH AUTOSEL 4.19 04/44] arm64: kprobe: make page to RO mode when allocate it

2018-11-12 Thread Sasha Levin
From: Anders Roxell [ Upstream commit 966866892cf89d606544bca22d584ba2ef9ec208 ] Commit 1404d6f13e47 ("arm64: dump: Add checking for writable and exectuable pages") has successfully identified code that leaves a page with W+X permissions. [3.245140] arm64/mm: Found insecure W+X mapping at

[PATCH AUTOSEL 4.19 19/44] perf unwind: Take pgoff into account when reporting elf to libdwfl

2018-11-12 Thread Sasha Levin
From: Milian Wolff [ Upstream commit 1fe627da30331024f453faef04d500079b901107 ] libdwfl parses an ELF file itself and creates mappings for the individual sections. perf on the other hand sees raw mmap events which represent individual sections. When we encounter an address pointing into a mappin

[PATCH v4 3/3] microblaze: generate uapi header and system call table files

2018-11-12 Thread Firoz Khan
System call table generation script must be run to gener- ate unistd_32.h and syscall_table.h files. This patch will have changes which will invokes the script. This patch will generate unistd_32.h and syscall_table.h files by the syscall table generation script invoked by microblaze/Makefile and

[PATCH v4 0/3] microblaze: system call table generation support

2018-11-12 Thread Firoz Khan
The purpose of this patch series is, we can easily add/modify/delete system call table support by cha- nging entry in syscall.tbl file instead of manually changing many files. The other goal is to unify the system call table generation support implementation across all the architectures. The syste

[PATCH v4 1/3] microblaze: move __NR_syscalls macro from asm/unistd.h

2018-11-12 Thread Firoz Khan
__NR_syscalls holds the number of system call exist in microblaze architecture. We have to change the value of __NR_syscalls, if we add or delete a system call. One of the patch in this patch series has a script which will generate a uapi header based on syscall.tbl file. The syscall.tbl file cont

[PATCH v4 2/3] microblaze: add system call table generation support

2018-11-12 Thread Firoz Khan
The system call tables are in different format in all architecture and it will be difficult to manually add, modify or delete the syscall table entries in the res- pective files. To make it easy by keeping a script and which will generate the uapi header and syscall table file. This change will als

[PATCH AUTOSEL 4.19 20/44] um: Give start_idle_thread() a return code

2018-11-12 Thread Sasha Levin
From: Richard Weinberger [ Upstream commit 7ff1e34bbdc15acab823b1ee4240e94623d50ee8 ] Fixes: arch/um/os-Linux/skas/process.c:613:1: warning: control reaches end of non-void function [-Wreturn-type] longjmp() never returns but gcc still warns that the end of the function can be reached. Add a re

[PATCH AUTOSEL 4.19 23/44] platform/x86: intel_telemetry: report debugfs failure

2018-11-12 Thread Sasha Levin
From: Rajneesh Bhardwaj [ Upstream commit 8d98b1ef368feeb7720b8b9b6f3bd93f2ad892bc ] On some Goldmont based systems such as ASRock J3455M the BIOS may not enable the IPC1 device that provides access to the PMC and PUNIT. In such scenarios, the IOSS and PSS resources from the platform device can

[PATCH AUTOSEL 4.19 24/44] clk: fixed-rate: fix of_node_get-put imbalance

2018-11-12 Thread Sasha Levin
From: Alan Tull [ Upstream commit 52091c256bdcad0d01e2852a63f19cd2cce6af96 ] When the fixed rate 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. Signed-off-by: Alan Tull Fixes: 435779fe1336 ("clk: fixed

[PATCH AUTOSEL 4.19 30/44] platform/x86: acerhdf: Add BIOS entry for Gateway LT31 v1.3307

2018-11-12 Thread Sasha Levin
From: Paul Gortmaker [ Upstream commit 684238d79ad85c5e19a71bb5818e77e329912fbc ] To fix: acerhdf: unknown (unsupported) BIOS version Gateway /LT31 /v1.3307 , please report, aborting! As can be seen in the context, the BIOS registers haven't changed in the previous versions, so the assum

[PATCH AUTOSEL 4.19 27/44] clk: samsung: exynos5420: Enable PERIS clocks for suspend

2018-11-12 Thread Sasha Levin
From: Marek Szyprowski [ Upstream commit b33228029d842269e17bba591609e83ed422005d ] Ensure that clocks for core SoC modules (including TZPC0..9 modules) are enabled for suspend/resume cycle. This fixes suspend/resume support on Exynos5422-based Odroid XU3/XU4 boards. Suggested-by: Joonyoung Shi

[PATCH AUTOSEL 4.19 22/44] afs: Handle EIO from delivery function

2018-11-12 Thread Sasha Levin
From: David Howells [ Upstream commit 4ac15ea53622272c01954461b4814892b7481b40 ] Fix afs_deliver_to_call() to handle -EIO being returned by the operation delivery function, indicating that the call found itself in the wrong state, by printing an error and aborting the call. Currently, an assert

[PATCH AUTOSEL 4.19 26/44] fs/exofs: fix potential memory leak in mount option parsing

2018-11-12 Thread Sasha Levin
From: Chengguang Xu [ Upstream commit 515f1867addaba49c1c6ac73abfaffbc192c1db4 ] There are some cases can cause memory leak when parsing option 'osdname'. Signed-off-by: Chengguang Xu Signed-off-by: Al Viro Signed-off-by: Sasha Levin --- fs/exofs/super.c | 5 - 1 file changed, 4 inserti

[PATCH AUTOSEL 4.19 28/44] apparmor: Fix uninitialized value in aa_split_fqname

2018-11-12 Thread Sasha Levin
From: Zubin Mithra [ Upstream commit 250f2da49cb8e582215a65c03f50e8ddf5cd119c ] Syzkaller reported a OOB-read with the stacktrace below. This occurs inside __aa_lookupn_ns as `n` is not initialized. `n` is obtained from aa_splitn_fqname. In cases where `name` is invalid, aa_splitn_fqname returns

[PATCH AUTOSEL 4.19 36/44] clk: ti: fix OF child-node lookup

2018-11-12 Thread Sasha Levin
From: Johan Hovold [ Upstream commit 00a461cc32ec27fa7bd9c874a7b36b0c6c542c12 ] Fix child-node lookup which by using the wrong OF helper was searching the whole tree depth-first, something which could end up matching an unrelated node. Also fix the related node-reference leaks. Fixes: 5b385a45

[PATCH AUTOSEL 4.19 33/44] clk: meson: clk-pll: drop CLK_GET_RATE_NOCACHE where unnecessary

2018-11-12 Thread Sasha Levin
From: Jerome Brunet [ Upstream commit 2303a9ca693e585a558497ad737728fec97e2b8a ] CLK_GET_RATE_NOCACHE should only be necessary when the registers controlling the rate of clock may change outside of CCF. On Amlogic, it should only be the case for the hdmi pll which is directly controlled by the d

[PATCH AUTOSEL 4.19 31/44] clk: meson-axg: pcie: drop the mpll3 clock parent

2018-11-12 Thread Sasha Levin
From: Yixun Lan [ Upstream commit 69b93104c7ec5668019caf5d2dbfd0e182df06db ] We found the PCIe driver doesn't really work with the mpll3 clock which is actually reserved for debug, So drop it from the mux list. Fixes: 33b89db68236 ("clk: meson-axg: add clocks required by pcie driver") Tested-by

[PATCH AUTOSEL 4.19 40/44] mm: don't raise MEMCG_OOM event due to failed high-order allocation

2018-11-12 Thread Sasha Levin
From: Roman Gushchin [ Upstream commit 7a1adfddaf0d11a39fdcaf6e82a88e9c0586e08b ] It was reported that on some of our machines containers were restarted with OOM symptoms without an obvious reason. Despite there were almost no memory pressure and plenty of page cache, MEMCG_OOM event was raised

[PATCH AUTOSEL 4.19 32/44] arm64: percpu: Initialize ret in the default case

2018-11-12 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit b5bb425871186303e6936fa2581521bdd1964a58 ] Clang warns that if the default case is taken, ret will be uninitialized. ./arch/arm64/include/asm/percpu.h:196:2: warning: variable 'ret' is used uninitialized whenever switch default is taken [-Wsometimes-uni

[PATCH AUTOSEL 4.19 35/44] clk: sunxi-ng: sun50i: h6: Add 2x fixed post-divider to MMC module clocks

2018-11-12 Thread Sasha Levin
From: Icenowy Zheng [ Upstream commit c2ff8383cc33c2d9c169e4daf1e37a434c3bb420 ] On the H6, the MMC module clocks are fixed in the new timing mode, i.e. they do not have a bit to select the mode. These clocks have a 2x divider somewhere between the clock and the MMC module. To be consistent wit

[PATCH AUTOSEL 4.19 44/44] mm: don't warn about large allocations for slab

2018-11-12 Thread Sasha Levin
From: Dmitry Vyukov [ Upstream commit 61448479a9f2c954cde0cfe778cb6bec5d0a748d ] Slub does not call kmalloc_slab() for sizes > KMALLOC_MAX_CACHE_SIZE, instead it falls back to kmalloc_large(). For slab KMALLOC_MAX_CACHE_SIZE == KMALLOC_MAX_SIZE and it calls kmalloc_slab() for all allocations re

[PATCH AUTOSEL 4.18 01/39] bfs: add sanity check at bfs_fill_super()

2018-11-12 Thread Sasha Levin
From: Tetsuo Handa [ Upstream commit 9f2df09a33aa2c76ce6385d382693f98d7f2f07e ] syzbot is reporting too large memory allocation at bfs_fill_super() [1]. Since file system image is corrupted such that bfs_sb->s_start == 0, bfs_fill_super() is trying to allocate 8MB of continuous memory. Fix this

[PATCH AUTOSEL 4.18 05/39] nvme-pci: fix conflicting p2p resource adds

2018-11-12 Thread Sasha Levin
From: Keith Busch [ Upstream commit 9fe5c59ff6a1e5e26a39b75489a1420e7eaaf0b1 ] The nvme pci driver had been adding its CMB resource to the P2P DMA subsystem everytime on on a controller reset. This results in the following warning: [ cut here ] nvme :00:03.0:

[PATCH AUTOSEL 4.18 02/39] cifs: don't dereference smb_file_target before null check

2018-11-12 Thread Sasha Levin
From: Colin Ian King [ Upstream commit 8c6c9bed8773375b1d54ccca2911ec892c59db5d ] There is a null check on dst_file->private data which suggests it can be potentially null. However, before this check, pointer smb_file_target is derived from dst_file->private and dereferenced in the call to tlink

[PATCH AUTOSEL 4.19 43/44] mm: don't miss the last page because of round-off error

2018-11-12 Thread Sasha Levin
From: Roman Gushchin [ Upstream commit 68600f623d69da428c6163275f97ca126e1a8ec5 ] I've noticed, that dying memory cgroups are often pinned in memory by a single pagecache page. Even under moderate memory pressure they sometimes stayed in such state for a long time. That looked strange. My inv

[PATCH AUTOSEL 4.18 04/39] arm64: kprobe: make page to RO mode when allocate it

2018-11-12 Thread Sasha Levin
From: Anders Roxell [ Upstream commit 966866892cf89d606544bca22d584ba2ef9ec208 ] Commit 1404d6f13e47 ("arm64: dump: Add checking for writable and exectuable pages") has successfully identified code that leaves a page with W+X permissions. [3.245140] arm64/mm: Found insecure W+X mapping at

[PATCH v2 1/4] dt-bindings: pinctrl: k3: Introduce pinmux definitions

2018-11-12 Thread Vignesh R
The dt-bindings header for TI K3 AM6 SoCs define a set of macros for defining pinmux configs in human readable form, instead of raw-coded hex values. Signed-off-by: Vignesh R --- MAINTAINERS | 1 + include/dt-bindings/pinctrl/k3.h | 35 2 fi

[PATCH AUTOSEL 4.18 10/39] ixgbe: fix MAC anti-spoofing filter after VFLR

2018-11-12 Thread Sasha Levin
From: Radoslaw Tyl [ Upstream commit 6702185c1ffec3421181b5e24491e3fac920cb61 ] This change resolves a driver bug where the driver is logging a message that says "Spoofed packets detected". This can occur on the PF (host) when a VF has VLAN+MACVLAN enabled and is re-started with a different MAC

[PATCH v2 4/4] arm64: dts: ti: k3-am654-base-board: Add I2C nodes

2018-11-12 Thread Vignesh R
Add DT entries for I2C instances present in AM654 SoC. Signed-off-by: Vignesh R --- arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 44 arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi | 11 +++ arch/arm64/boot/dts/ti/k3-am65-wakeup.dtsi| 11 +++ arch/arm64/boot/dts/ti/k3-am65.dtsi

[PATCH AUTOSEL 4.18 09/39] net: hns3: bugfix for the initialization of command queue's spin lock

2018-11-12 Thread Sasha Levin
From: Huazhong Tan [ Upstream commit b2f74dbaf12bf59ff35d451005b3cdee78232ff0 ] The spin lock of the command queue only need to be initialized once when the driver initializes the command queue. It is not necessary to initialize the spin lock when resetting. At the same time, the modification of

[PATCH v2 2/4] arm64: dts: ti: k3-am65: Add pinctrl regions

2018-11-12 Thread Vignesh R
From: Tero Kristo Add pinctrl regions for the main and wkup mmr. The range for main pinctrl region contains a gap at offset 0x2e4, and because of this, the pinctrl range is split into two sections. Signed-off-by: Tero Kristo Signed-off-by: Vignesh R --- arch/arm64/boot/dts/ti/k3-am65-main.dt

[PATCH v2 3/4] arm64: dts: ti: am654-base-board: Add pinmux for main uart0

2018-11-12 Thread Vignesh R
Add pinmux for main uart0 that is serves as console on AM654 EVM Signed-off-by: Vignesh R --- arch/arm64/boot/dts/ti/k3-am654-base-board.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts b/arch/arm64/boot/dts/ti/k3-am654-bas

[PATCH v2 0/4] AM654: Add pinmux support

2018-11-12 Thread Vignesh R
Add pinmux definitions and pinctrl regions for AM654 SoCs and enable uart and i2c. v2: Add only minimum needed macros in dt-bindings include file New patches to illustrate pinmux using uart and i2c Tero Kristo (1): arm64: dts: ti: k3-am65: Add pinctrl regions Vignesh R (3): dt-bindings: pin

[PATCH AUTOSEL 4.18 17/39] perf unwind: Take pgoff into account when reporting elf to libdwfl

2018-11-12 Thread Sasha Levin
From: Milian Wolff [ Upstream commit 1fe627da30331024f453faef04d500079b901107 ] libdwfl parses an ELF file itself and creates mappings for the individual sections. perf on the other hand sees raw mmap events which represent individual sections. When we encounter an address pointing into a mappin

[PATCH AUTOSEL 4.18 26/39] apparmor: Fix uninitialized value in aa_split_fqname

2018-11-12 Thread Sasha Levin
From: Zubin Mithra [ Upstream commit 250f2da49cb8e582215a65c03f50e8ddf5cd119c ] Syzkaller reported a OOB-read with the stacktrace below. This occurs inside __aa_lookupn_ns as `n` is not initialized. `n` is obtained from aa_splitn_fqname. In cases where `name` is invalid, aa_splitn_fqname returns

[PATCH AUTOSEL 4.18 19/39] drm/edid: Add 6 bpc quirk for BOE panel.

2018-11-12 Thread Sasha Levin
From: "Lee, Shawn C" [ Upstream commit 922dceff8dc1fb4dafc9af78139ba65671408103 ] BOE panel (ID: 0x0771) that reports "DFP 1.x compliant TMDS". But it's 6bpc panel only instead of 8 bpc. Add panel ID to edid quirk list and set 6 bpc as default to work around this issue. Cc: Jani Nikula Cc: Ma

[PATCH AUTOSEL 4.18 24/39] fs/exofs: fix potential memory leak in mount option parsing

2018-11-12 Thread Sasha Levin
From: Chengguang Xu [ Upstream commit 515f1867addaba49c1c6ac73abfaffbc192c1db4 ] There are some cases can cause memory leak when parsing option 'osdname'. Signed-off-by: Chengguang Xu Signed-off-by: Al Viro Signed-off-by: Sasha Levin --- fs/exofs/super.c | 5 - 1 file changed, 4 inserti

[PATCH AUTOSEL 4.18 21/39] platform/x86: intel_telemetry: report debugfs failure

2018-11-12 Thread Sasha Levin
From: Rajneesh Bhardwaj [ Upstream commit 8d98b1ef368feeb7720b8b9b6f3bd93f2ad892bc ] On some Goldmont based systems such as ASRock J3455M the BIOS may not enable the IPC1 device that provides access to the PMC and PUNIT. In such scenarios, the IOSS and PSS resources from the platform device can

[PATCH AUTOSEL 4.18 25/39] clk: samsung: exynos5420: Enable PERIS clocks for suspend

2018-11-12 Thread Sasha Levin
From: Marek Szyprowski [ Upstream commit b33228029d842269e17bba591609e83ed422005d ] Ensure that clocks for core SoC modules (including TZPC0..9 modules) are enabled for suspend/resume cycle. This fixes suspend/resume support on Exynos5422-based Odroid XU3/XU4 boards. Suggested-by: Joonyoung Shi

[PATCH AUTOSEL 4.18 31/39] clk: sunxi-ng: sun50i: h6: Add 2x fixed post-divider to MMC module clocks

2018-11-12 Thread Sasha Levin
From: Icenowy Zheng [ Upstream commit c2ff8383cc33c2d9c169e4daf1e37a434c3bb420 ] On the H6, the MMC module clocks are fixed in the new timing mode, i.e. they do not have a bit to select the mode. These clocks have a 2x divider somewhere between the clock and the MMC module. To be consistent wit

[PATCH AUTOSEL 4.18 18/39] um: Give start_idle_thread() a return code

2018-11-12 Thread Sasha Levin
From: Richard Weinberger [ Upstream commit 7ff1e34bbdc15acab823b1ee4240e94623d50ee8 ] Fixes: arch/um/os-Linux/skas/process.c:613:1: warning: control reaches end of non-void function [-Wreturn-type] longjmp() never returns but gcc still warns that the end of the function can be reached. Add a re

[PATCH AUTOSEL 4.18 22/39] clk: fixed-rate: fix of_node_get-put imbalance

2018-11-12 Thread Sasha Levin
From: Alan Tull [ Upstream commit 52091c256bdcad0d01e2852a63f19cd2cce6af96 ] When the fixed rate 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. Signed-off-by: Alan Tull Fixes: 435779fe1336 ("clk: fixed

[PATCH AUTOSEL 4.18 38/39] mm: don't miss the last page because of round-off error

2018-11-12 Thread Sasha Levin
From: Roman Gushchin [ Upstream commit 68600f623d69da428c6163275f97ca126e1a8ec5 ] I've noticed, that dying memory cgroups are often pinned in memory by a single pagecache page. Even under moderate memory pressure they sometimes stayed in such state for a long time. That looked strange. My inv

[PATCH AUTOSEL 4.18 30/39] clk: meson: clk-pll: drop CLK_GET_RATE_NOCACHE where unnecessary

2018-11-12 Thread Sasha Levin
From: Jerome Brunet [ Upstream commit 2303a9ca693e585a558497ad737728fec97e2b8a ] CLK_GET_RATE_NOCACHE should only be necessary when the registers controlling the rate of clock may change outside of CCF. On Amlogic, it should only be the case for the hdmi pll which is directly controlled by the d

[PATCH AUTOSEL 4.14 01/26] bfs: add sanity check at bfs_fill_super()

2018-11-12 Thread Sasha Levin
From: Tetsuo Handa [ Upstream commit 9f2df09a33aa2c76ce6385d382693f98d7f2f07e ] syzbot is reporting too large memory allocation at bfs_fill_super() [1]. Since file system image is corrupted such that bfs_sb->s_start == 0, bfs_fill_super() is trying to allocate 8MB of continuous memory. Fix this

[PATCH AUTOSEL 4.18 32/39] clk: ti: fix OF child-node lookup

2018-11-12 Thread Sasha Levin
From: Johan Hovold [ Upstream commit 00a461cc32ec27fa7bd9c874a7b36b0c6c542c12 ] Fix child-node lookup which by using the wrong OF helper was searching the whole tree depth-first, something which could end up matching an unrelated node. Also fix the related node-reference leaks. Fixes: 5b385a45

[PATCH AUTOSEL 4.18 39/39] mm: don't warn about large allocations for slab

2018-11-12 Thread Sasha Levin
From: Dmitry Vyukov [ Upstream commit 61448479a9f2c954cde0cfe778cb6bec5d0a748d ] Slub does not call kmalloc_slab() for sizes > KMALLOC_MAX_CACHE_SIZE, instead it falls back to kmalloc_large(). For slab KMALLOC_MAX_CACHE_SIZE == KMALLOC_MAX_SIZE and it calls kmalloc_slab() for all allocations re

[PATCH AUTOSEL 4.14 03/26] cifs: fix return value for cifs_listxattr

2018-11-12 Thread Sasha Levin
From: Ronnie Sahlberg [ Upstream commit 0c5d6cb6643f48ad3775322f3ebab6c7eb67484e ] If the application buffer was too small to fit all the names we would still count the number of bytes and return this for listxattr. This would then trigger a BUG in usercopy.c Fix the computation of the size so

[PATCH AUTOSEL 4.14 05/26] nvme-pci: fix conflicting p2p resource adds

2018-11-12 Thread Sasha Levin
From: Keith Busch [ Upstream commit 9fe5c59ff6a1e5e26a39b75489a1420e7eaaf0b1 ] The nvme pci driver had been adding its CMB resource to the P2P DMA subsystem everytime on on a controller reset. This results in the following warning: [ cut here ] nvme :00:03.0:

Re: [PATCH 2/2] drm: Revert syncobj timeline changes.

2018-11-12 Thread zhoucm1
On 2018年11月12日 18:48, Chris Wilson wrote: Quoting Christian König (2018-11-12 10:16:01) Am 09.11.18 um 23:26 schrieb Eric Anholt: Eric Anholt writes: [ Unknown signature status ] zhoucm1 writes: On 2018年11月09日 00:52, Christian König wrote:

[PATCH AUTOSEL 4.14 09/26] reiserfs: propagate errors from fill_with_dentries() properly

2018-11-12 Thread Sasha Levin
From: Jann Horn [ Upstream commit b10298d56c9623f9b173f19959732d3184b35f4f ] fill_with_dentries() failed to propagate errors up to reiserfs_for_each_xattr() properly. Plumb them through. Note that reiserfs_for_each_xattr() is only used by reiserfs_delete_xattrs() and reiserfs_chown_xattrs().

[PATCH AUTOSEL 4.14 11/26] hfsplus: prevent btree data loss on root split

2018-11-12 Thread Sasha Levin
From: Ernesto A. Fernández [ Upstream commit 0a3021d4f5295aa073c7bf5c5e4de60a2e292578 ] Creating, renaming or deleting a file may cause catalog corruption and data loss. This bug is randomly triggered by xfstests generic/027, but here is a faster reproducer: truncate -s 50M fs.iso mkfs.hfs

[PATCH AUTOSEL 4.14 18/26] clk: samsung: exynos5420: Enable PERIS clocks for suspend

2018-11-12 Thread Sasha Levin
From: Marek Szyprowski [ Upstream commit b33228029d842269e17bba591609e83ed422005d ] Ensure that clocks for core SoC modules (including TZPC0..9 modules) are enabled for suspend/resume cycle. This fixes suspend/resume support on Exynos5422-based Odroid XU3/XU4 boards. Suggested-by: Joonyoung Shi

[PATCH AUTOSEL 4.14 19/26] apparmor: Fix uninitialized value in aa_split_fqname

2018-11-12 Thread Sasha Levin
From: Zubin Mithra [ Upstream commit 250f2da49cb8e582215a65c03f50e8ddf5cd119c ] Syzkaller reported a OOB-read with the stacktrace below. This occurs inside __aa_lookupn_ns as `n` is not initialized. `n` is obtained from aa_splitn_fqname. In cases where `name` is invalid, aa_splitn_fqname returns

[PATCH AUTOSEL 4.14 12/26] um: Give start_idle_thread() a return code

2018-11-12 Thread Sasha Levin
From: Richard Weinberger [ Upstream commit 7ff1e34bbdc15acab823b1ee4240e94623d50ee8 ] Fixes: arch/um/os-Linux/skas/process.c:613:1: warning: control reaches end of non-void function [-Wreturn-type] longjmp() never returns but gcc still warns that the end of the function can be reached. Add a re

[PATCH AUTOSEL 4.14 14/26] platform/x86: intel_telemetry: report debugfs failure

2018-11-12 Thread Sasha Levin
From: Rajneesh Bhardwaj [ Upstream commit 8d98b1ef368feeb7720b8b9b6f3bd93f2ad892bc ] On some Goldmont based systems such as ASRock J3455M the BIOS may not enable the IPC1 device that provides access to the PMC and PUNIT. In such scenarios, the IOSS and PSS resources from the platform device can

[PATCH AUTOSEL 4.14 13/26] drm/edid: Add 6 bpc quirk for BOE panel.

2018-11-12 Thread Sasha Levin
From: "Lee, Shawn C" [ Upstream commit 922dceff8dc1fb4dafc9af78139ba65671408103 ] BOE panel (ID: 0x0771) that reports "DFP 1.x compliant TMDS". But it's 6bpc panel only instead of 8 bpc. Add panel ID to edid quirk list and set 6 bpc as default to work around this issue. Cc: Jani Nikula Cc: Ma

[PATCH AUTOSEL 4.14 16/26] perf symbols: Set PLT entry/header sizes properly on Sparc

2018-11-12 Thread Sasha Levin
From: David Miller [ Upstream commit d6afa561e1471ccfdaf7191230c0c59a37e45a5b ] Using the sh_entsize for both values isn't correct. It happens to be correct on x86... For both 32-bit and 64-bit sparc, there are four PLT entries in the PLT section. Signed-off-by: David S. Miller Cc: Alexander

[PATCH AUTOSEL 4.14 21/26] platform/x86: acerhdf: Add BIOS entry for Gateway LT31 v1.3307

2018-11-12 Thread Sasha Levin
From: Paul Gortmaker [ Upstream commit 684238d79ad85c5e19a71bb5818e77e329912fbc ] To fix: acerhdf: unknown (unsupported) BIOS version Gateway /LT31 /v1.3307 , please report, aborting! As can be seen in the context, the BIOS registers haven't changed in the previous versions, so the assum

[PATCH AUTOSEL 4.14 22/26] arm64: percpu: Initialize ret in the default case

2018-11-12 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit b5bb425871186303e6936fa2581521bdd1964a58 ] Clang warns that if the default case is taken, ret will be uninitialized. ./arch/arm64/include/asm/percpu.h:196:2: warning: variable 'ret' is used uninitialized whenever switch default is taken [-Wsometimes-uni

[PATCH AUTOSEL 4.14 26/26] mm: don't warn about large allocations for slab

2018-11-12 Thread Sasha Levin
From: Dmitry Vyukov [ Upstream commit 61448479a9f2c954cde0cfe778cb6bec5d0a748d ] Slub does not call kmalloc_slab() for sizes > KMALLOC_MAX_CACHE_SIZE, instead it falls back to kmalloc_large(). For slab KMALLOC_MAX_CACHE_SIZE == KMALLOC_MAX_SIZE and it calls kmalloc_slab() for all allocations re

[PATCH AUTOSEL 4.9 04/17] reiserfs: propagate errors from fill_with_dentries() properly

2018-11-12 Thread Sasha Levin
From: Jann Horn [ Upstream commit b10298d56c9623f9b173f19959732d3184b35f4f ] fill_with_dentries() failed to propagate errors up to reiserfs_for_each_xattr() properly. Plumb them through. Note that reiserfs_for_each_xattr() is only used by reiserfs_delete_xattrs() and reiserfs_chown_xattrs().

[PATCH AUTOSEL 4.14 25/26] mm: don't miss the last page because of round-off error

2018-11-12 Thread Sasha Levin
From: Roman Gushchin [ Upstream commit 68600f623d69da428c6163275f97ca126e1a8ec5 ] I've noticed, that dying memory cgroups are often pinned in memory by a single pagecache page. Even under moderate memory pressure they sometimes stayed in such state for a long time. That looked strange. My inv

[PATCH AUTOSEL 4.9 01/17] bfs: add sanity check at bfs_fill_super()

2018-11-12 Thread Sasha Levin
From: Tetsuo Handa [ Upstream commit 9f2df09a33aa2c76ce6385d382693f98d7f2f07e ] syzbot is reporting too large memory allocation at bfs_fill_super() [1]. Since file system image is corrupted such that bfs_sb->s_start == 0, bfs_fill_super() is trying to allocate 8MB of continuous memory. Fix this

[PATCH AUTOSEL 4.9 11/17] fs/exofs: fix potential memory leak in mount option parsing

2018-11-12 Thread Sasha Levin
From: Chengguang Xu [ Upstream commit 515f1867addaba49c1c6ac73abfaffbc192c1db4 ] There are some cases can cause memory leak when parsing option 'osdname'. Signed-off-by: Chengguang Xu Signed-off-by: Al Viro Signed-off-by: Sasha Levin --- fs/exofs/super.c | 5 - 1 file changed, 4 inserti

[PATCH AUTOSEL 4.9 05/17] hfs: prevent btree data loss on root split

2018-11-12 Thread Sasha Levin
From: Ernesto A. Fernández [ Upstream commit d057c036672f33d43a5f7344acbb08cf3a8a0c09 ] This bug is triggered whenever hfs_brec_update_parent() needs to split the root node. The height of the btree is not increased, which leaves the new node orphaned and its records lost. It is not possible fo

[PATCH AUTOSEL 4.9 06/17] hfsplus: prevent btree data loss on root split

2018-11-12 Thread Sasha Levin
From: Ernesto A. Fernández [ Upstream commit 0a3021d4f5295aa073c7bf5c5e4de60a2e292578 ] Creating, renaming or deleting a file may cause catalog corruption and data loss. This bug is randomly triggered by xfstests generic/027, but here is a faster reproducer: truncate -s 50M fs.iso mkfs.hfs

[PATCH AUTOSEL 4.9 09/17] platform/x86: intel_telemetry: report debugfs failure

2018-11-12 Thread Sasha Levin
From: Rajneesh Bhardwaj [ Upstream commit 8d98b1ef368feeb7720b8b9b6f3bd93f2ad892bc ] On some Goldmont based systems such as ASRock J3455M the BIOS may not enable the IPC1 device that provides access to the PMC and PUNIT. In such scenarios, the IOSS and PSS resources from the platform device can

[PATCH AUTOSEL 4.9 13/17] platform/x86: acerhdf: Add BIOS entry for Gateway LT31 v1.3307

2018-11-12 Thread Sasha Levin
From: Paul Gortmaker [ Upstream commit 684238d79ad85c5e19a71bb5818e77e329912fbc ] To fix: acerhdf: unknown (unsupported) BIOS version Gateway /LT31 /v1.3307 , please report, aborting! As can be seen in the context, the BIOS registers haven't changed in the previous versions, so the assum

  1   2   3   4   5   6   7   8   >