[PATCH 6/7] RISC-V: Implement memory hot remove

2019-03-27 Thread Logan Gunthorpe
Implementing arch_remove_memory() and filling in vmemap_free() allows us to declare ARCH_ENABLE_MEMORY_HOTREMOVE. arch_remove_memory() is very similar to x86 and we roughly copy the remove_pagetable() function from x86 but with a bunch of the unnecessary features stripped out. Signed-off-by:

Re: [PATCH 2/4] pid: add pidfd_open()

2019-03-27 Thread Christian Brauner
On Wed, Mar 27, 2019 at 07:38:13PM +, Jonathan Kowalski wrote: > Christian, > > Giving this some thought, it looks fine to me, but I am not convinced > this should take a pid argument. I much prefer if obtaining a pidfd The signatures for pidfd_open() you're suggesting are conflicting. Even

Re: [PATCH v2 1/6] leds: netdev trigger: use memcpy in device_name_store

2019-03-27 Thread Rasmus Villemoes
On 27/03/2019 22.20, Jacek Anaszewski wrote: > Thanks for the heads-up. I must admit I'm hitting into that for the > first time. After "git am" it was all OK, but it got screwed up after > "git rebase -i". And having "commit.cleanup = scissors" set globally all > the time is annoying if one

[PATCH v8 2/2] drivers/misc: Add Aspeed P2A control driver

2019-03-27 Thread Patrick Venture
The ASPEED AST2400, and AST2500 in some configurations include a PCI-to-AHB MMIO bridge. This bridge allows a server to read and write in the BMC's physical address space. This feature is especially useful when using this bridge to send large files to the BMC. The host may use this to send down

[PATCH v8 1/2] dt-bindings: misc: aspeed-p2a-ctrl: add support

2019-03-27 Thread Patrick Venture
Document the ast2400, ast2500 PCI-to-AHB bridge control driver bindings. Signed-off-by: Patrick Venture --- Changes for v8: - None Changes for v7: - Moved node under the syscon node it requires Changes for v6: - None Changes for v5: - None Changes for v4: - None Changes for v3: - None Changes

Re: [PATCH v2 1/6] leds: netdev trigger: use memcpy in device_name_store

2019-03-27 Thread Jacek Anaszewski
On 3/27/19 4:26 PM, Rasmus Villemoes wrote: On 26/03/2019 20.53, Jacek Anaszewski wrote: Hi Rasmus, Thank you for the patch. On 3/14/19 3:06 PM, Rasmus Villemoes wrote: If userspace doesn't end the input with a newline (which can easily happen if the write happens from a C program that does

Re: New feature/ABI review process [was Re: [RESEND PATCH v6 04/12] x86/fsgsbase/64:..]

2019-03-27 Thread Thomas Gleixner
On Tue, 26 Mar 2019, Andi Kleen wrote: > As long as everything is cache hot it's likely only a couple > of cycles difference (as Intel CPUs are very good executing > crappy code too), but if it's not then you end up with a huge cache miss > cost, causing jitter. That's a problem for real time for

Re: Linux 5.1-rc2

2019-03-27 Thread Tetsuo Handa
On 2019/03/28 5:45, Kees Cook wrote: > On Wed, Mar 27, 2019 at 1:30 PM Tetsuo Handa > wrote: >> >> On 2019/03/28 4:16, Kees Cook wrote: >>> The part I don't understand is what you've said about TOMOYO being >>> primary and not wanting the others stackable? That kind of goes >>> against the point,

Re: [PATCH 2/4] pid: add pidfd_open()

2019-03-27 Thread Christian Brauner
On Wed, Mar 27, 2019 at 06:07:54PM +0100, Jann Horn wrote: > On Wed, Mar 27, 2019 at 5:22 PM Christian Brauner > wrote: > > pidfd_open() allows to retrieve pidfds for processes and removes the > > dependency of pidfd on procfs. Multiple people have expressed a desire to > > do this even when

Re: [PATCH 2/4] pid: add pidfd_open()

2019-03-27 Thread Christian Brauner
On Wed, Mar 27, 2019 at 06:21:24PM +0100, Yann Droneaud wrote: > Le mercredi 27 mars 2019 à 17:21 +0100, Christian Brauner a écrit : > > > diff --git a/kernel/pid.c b/kernel/pid.c > > index 20881598bdfa..c9e24e726aba 100644 > > --- a/kernel/pid.c > > +++ b/kernel/pid.c > > @@ -26,8 +26,10 @@ > >

Re: linux 4.17, drivers/mmc/host/sdhci-pci-o2micro.c, crash with sdcard >128G

2019-03-27 Thread jean-luc malet
resentding in plain text On Wed, Mar 27, 2019 at 9:56 PM jean-luc malet wrote: > > Hi everybody > thanks to chuanjin pang, it's almost a year that I use my controler with > sdcards >128G without issue, I upgraded my kernel to 5.0.4 and noticed that > the sdcard bug was still present... so I

Re: [PATCH 4/4] tests: add pidfd_open() tests

2019-03-27 Thread Christian Brauner
On Wed, Mar 27, 2019 at 12:36:46PM -0700, Kees Cook wrote: > On Wed, Mar 27, 2019 at 9:22 AM Christian Brauner > wrote: > > > > This adds a simple test case for pidfd_open(). > > Thank you for the tests. :) It might be nice to see more extensive > negative testing -- making sure pids aren't

Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree

2019-03-27 Thread Russell King - ARM Linux admin
On Wed, Mar 27, 2019 at 10:37:19AM -0700, Tim Harvey wrote: > On Sun, Mar 17, 2019 at 10:00 AM Russell King - ARM Linux admin > wrote: > > > > On Sun, Mar 17, 2019 at 04:48:24PM +, Måns Rullgård wrote: > > > Stefan Agner writes: > > > > > > > On 16.03.2019 16:39, Russell King - ARM Linux

Re: Linux 5.1-rc2

2019-03-27 Thread Kees Cook
On Wed, Mar 27, 2019 at 1:30 PM Tetsuo Handa wrote: > > On 2019/03/28 4:16, Kees Cook wrote: > > The part I don't understand is what you've said about TOMOYO being > > primary and not wanting the others stackable? That kind of goes > > against the point, but I'm happy to do that if you want it

Re: linux-next: Signed-off-by missing for commit in the icc tree

2019-03-27 Thread Georgi Djakov
On 27.03.19 22:38, Stephen Rothwell wrote: Hi Georgi, Commit dae6d5996c36 ("interconnect: convert to DEFINE_SHOW_ATTRIBUTE") is missing a Signed-off-by from its committer. Thanks Stephen! It's fixed now. BR, Georgi

Re: [PATCH 06/10] mm: vmscan: demote anon DRAM pages to PMEM node

2019-03-27 Thread Zi Yan
On 27 Mar 2019, at 11:00, Dave Hansen wrote: > On 3/27/19 10:48 AM, Zi Yan wrote: >> For 40MB/s vs 750MB/s, they were using sys_migrate_pages(). Sorry >> about the confusion there. As I measure only the migrate_pages() in >> the kernel, the throughput becomes: migrating 4KB page: 0.312GB/s >> vs

Re: [PATCH 06/10] mm: vmscan: demote anon DRAM pages to PMEM node

2019-03-27 Thread Dave Hansen
On 3/27/19 1:37 PM, Zi Yan wrote: > Actually, the migration throughput difference does not come from > any kernel changes, it is a pure comparison between > migrate_pages(single 4KB page) and migrate_pages(a list of 4KB > pages). The point I wanted to make is that Yang’s approach, which > migrates

[PATCH] mm: fix vm_fault_t cast in VM_FAULT_GET_HINDEX()

2019-03-27 Thread Jann Horn
Symmetrically to VM_FAULT_SET_HINDEX(), we need a force-cast in VM_FAULT_GET_HINDEX() to tell sparse that this is intentional. Sparse complains about the current code when building a kernel with CONFIG_MEMORY_FAILURE: arch/x86/mm/fault.c:1058:53: warning: restricted vm_fault_t degrades to

Re: [PATCH 02/17] x86, lto: Mark all top level asm statements as .text

2019-03-27 Thread Andi Kleen
> + asm(".pushsection .rodata, \"a\"\n" \ > > + NATIVE_LABEL("start_", ops, name) \ > > + code

Re: [RFC PATCH 0/10] Another Approach to Use PMEM as NUMA Node

2019-03-27 Thread Dave Hansen
On 3/27/19 1:35 PM, Matthew Wilcox wrote: > > pmem1 --- node1 --- node2 --- pmem2 > | \ / | > |X| > | / \ | > pmem3 --- node3 --- node4 --- pmem4 > > which I could actually see someone building with normal DRAM, and we > should probably handle

linux-next: Signed-off-by missing for commit in the icc tree

2019-03-27 Thread Stephen Rothwell
Hi Georgi, Commit dae6d5996c36 ("interconnect: convert to DEFINE_SHOW_ATTRIBUTE") is missing a Signed-off-by from its committer. -- Cheers, Stephen Rothwell pgpLkHLmICtEF.pgp Description: OpenPGP digital signature

Re: [PATCH 1/4] glibc: Perform rseq(2) registration at C startup and thread creation (v7)

2019-03-27 Thread Carlos O'Donell
On 3/27/19 5:16 AM, Martin Schwidefsky wrote: On Mon, 25 Mar 2019 11:54:32 -0400 (EDT) Mathieu Desnoyers wrote: +++ b/sysdeps/unix/sysv/linux/s390/bits/rseq.h [...] + +/* Signature required before each abort handler code. */ +#define RSEQ_SIG 0x53053053 Why not a s390 specific value

Re: [RFC PATCH 0/10] Another Approach to Use PMEM as NUMA Node

2019-03-27 Thread Matthew Wilcox
On Wed, Mar 27, 2019 at 10:34:11AM -0700, Dan Williams wrote: > On Wed, Mar 27, 2019 at 2:01 AM Michal Hocko wrote: > > No, Linux NUMA implementation makes all numa nodes available by default > > and provides an API to opt-in for more fine tuning. What you are > > suggesting goes against that

linux-next: Signed-off-by missing for commit in the at91 tree

2019-03-27 Thread Stephen Rothwell
Hi all, Commits 080eb452bdc8 ("ARM: dts: at91: sama5d2_xplained: Add proper regulator states for suspend-to-mem") 2802bac0b675 ("ARM: dts: at91: sama5d2: add labels to soc dtsi for derivative boards") 0c0fccec0545 ("ARM: at91: pm: do not disable/enable PLLA for ULP modes") 9e35b518b8b2

Re: Linux 5.1-rc2

2019-03-27 Thread Tetsuo Handa
On 2019/03/28 4:16, Kees Cook wrote: > The part I don't understand is what you've said about TOMOYO being > primary and not wanting the others stackable? That kind of goes > against the point, but I'm happy to do that if you want it that way. Automatically enabling multiple legacy major LSMs

linux-next: Fixes tag needs some work in the tty.current tree

2019-03-27 Thread Stephen Rothwell
Hi all, In commit 69646d7a3689 ("tty/serial: atmel: RS485 HD w/DMA: enable RX after TX is stopped") Fixes tag Fixes: b389f173aaa1 ("tty/serial: atmel: RS485 half duplex w/DMA: enable has these problem(s): - Subject has leading but no trailing parentheses - Subject has leading but no

Re: [PATCH 2/4] pid: add pidfd_open()

2019-03-27 Thread Jonathan Kowalski
On Wed, Mar 27, 2019 at 7:38 PM Jonathan Kowalski wrote: > ... > ... the process cannot get it out > of thin air on its own (and you already mentioned it has nothing to do > with security). What I do worry about is one can use NS_GET_PARENT disregard this, it works as it should. > ioctl to get

Re: [RFC PATCH 0/10] Another Approach to Use PMEM as NUMA Node

2019-03-27 Thread Dave Hansen
On 3/27/19 11:59 AM, Yang Shi wrote: > In real production environment we don't know what kind of applications > would end up on PMEM (DRAM may be full, allocation fall back to PMEM) > then have unexpected performance degradation. I understand to have > mempolicy to choose to avoid it. But, there

Re: [RFC PATCH 0/10] Another Approach to Use PMEM as NUMA Node

2019-03-27 Thread Michal Hocko
On Wed 27-03-19 11:59:28, Yang Shi wrote: > > > On 3/27/19 10:34 AM, Dan Williams wrote: > > On Wed, Mar 27, 2019 at 2:01 AM Michal Hocko wrote: > > > On Tue 26-03-19 19:58:56, Yang Shi wrote: [...] > > > > It is still NUMA, users still can see all the NUMA nodes. > > > No, Linux NUMA

Re: [PATCH 1/4] glibc: Perform rseq(2) registration at C startup and thread creation (v7)

2019-03-27 Thread Mathieu Desnoyers
- On Mar 27, 2019, at 5:16 AM, schwidefsky schwidef...@de.ibm.com wrote: > On Mon, 25 Mar 2019 11:54:32 -0400 (EDT) > Mathieu Desnoyers wrote: > >> >> +++ b/sysdeps/unix/sysv/linux/s390/bits/rseq.h >> [...] >> >> + >> >> +/* Signature required before each abort handler code. */ >> >>

Re: [PATCH 1/2] dt-bindings: thermal: thermal_mmio: Add binding documentation

2019-03-27 Thread Rob Herring
On Sun, Mar 03, 2019 at 10:49:25AM +0200, Talel Shenhar wrote: > Add thermal binding documentation for thermal MMIO driver. > > Signed-off-by: Talel Shenhar > --- > .../devicetree/bindings/thermal/thermal_mmio.txt | 173 > + > 1 file changed, 173 insertions(+) > create

Re: [rcu:dev.2019.03.20b 54/83] drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_process.c:50:1: error: type defaults to 'int' in declaration of 'DEFINE_SRCU'

2019-03-27 Thread Paul E. McKenney
On Mon, Mar 25, 2019 at 02:34:27AM +0800, kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git > dev.2019.03.20b > head: 6d4434b4b4df791620743178e1419de882b44c7b > commit: eb89abcb30733e3a2343dda23cb6d81cc17c60b3 [54/83] rcu: Forbid >

Re: [PATCH] perf pmu: Fix parser error for uncore event alias

2019-03-27 Thread Liang, Kan
On 3/18/2019 4:53 AM, Jiri Olsa wrote: On Fri, Mar 15, 2019 at 11:00:14AM -0700, kan.li...@linux.intel.com wrote: From: Kan Liang Perf fails to parse uncore event alias, for example: #perf stat -e unc_m_clockticks -a --no-merge sleep 1 event syntax error: 'unc_m_clockticks'

Zdravstvujte Vas interesuyut klientskie bazy dannyh?

2019-03-27 Thread Otvet pishite na proda...@armyspy.com
Zdravstvujte Vas interesuyut klientskie bazy dannyh?

Re: [PATCH 2/2] x86/mmap: handle worst-case heap randomization in mmap_base

2019-03-27 Thread Kees Cook
On Wed, Mar 13, 2019 at 3:58 PM Kees Cook wrote: > > On Tue, Mar 12, 2019 at 10:33 AM Ali Saidi wrote: > > > > Increase mmap_base by the worst-case brk randomization so that > > the stack and heap remain apart. > > > > In Linux 4.13 a change was committed that special cased the kernel ELF > >

Re: perf: Add duration_time to perf stat

2019-03-27 Thread Jiri Olsa
On Tue, Mar 26, 2019 at 03:18:19PM -0700, Andi Kleen wrote: > Currently it's not possible to get the wall clock time of a measurement > in CSV mode output, it's only in the non CSV perf stat output. > Often this is needed to normalize event counts to time. > > Add a new duration_time event that

Re: [PATCH v7 2/2] drivers/misc: Add Aspeed P2A control driver

2019-03-27 Thread Patrick Venture
On Wed, Mar 27, 2019 at 12:01 PM Patrick Venture wrote: > > On Wed, Mar 27, 2019 at 11:54 AM Greg KH wrote: > > > > On Wed, Mar 27, 2019 at 11:44:36AM -0700, Patrick Venture wrote: > > > On Wed, Mar 27, 2019 at 11:28 AM Greg KH > > > wrote: > > > > > > > > On Tue, Mar 12, 2019 at 09:31:01AM

Re: [PATCH 1/2] dt-bindings: input: add GPIO controllable vibrator

2019-03-27 Thread Rob Herring
On Sat, Mar 02, 2019 at 03:11:30PM +0100, Luca Weiss wrote: > Provide a simple driver for GPIO controllable vibrators. > It will be used by the Fairphone 2. > > Signed-off-by: Luca Weiss > --- > .../devicetree/bindings/input/gpio-vibrator.txt | 16 > 1 file changed, 16

Re: [PATCH 4/4] tests: add pidfd_open() tests

2019-03-27 Thread Kees Cook
On Wed, Mar 27, 2019 at 9:22 AM Christian Brauner wrote: > > This adds a simple test case for pidfd_open(). Thank you for the tests. :) It might be nice to see more extensive negative testing -- making sure pids aren't reachable from mismatched pid namespaces, etc, but this gets us basic

Re: [PATCH 2/4] pid: add pidfd_open()

2019-03-27 Thread Jonathan Kowalski
Christian, Giving this some thought, it looks fine to me, but I am not convinced this should take a pid argument. I much prefer if obtaining a pidfd goes in the translation stuff, that has very real usecases, and you would end up duplicating the same thing over in two places. If the /proc/ dir

Re: [PATCH v4 2/2] x86/MCE/AMD: Don't report L1 BTB MCA errors on some Family 17h models

2019-03-27 Thread Thomas Gleixner
On Wed, 27 Mar 2019, Borislav Petkov wrote: > On Wed, Mar 27, 2019 at 08:19:57PM +0100, Thomas Gleixner wrote: > > > Cc: # 5.0.x: c95b323dcd35: x86/MCE/AMD: Turn off > > > MC4_MISC thresholding on all family 0x15 models > > > > What is this supposed to tell us? > > That's stable speak from

[PATCH AUTOSEL 5.0 004/262] h8300: use cc-cross-prefix instead of hardcoding h8300-unknown-linux-

2019-03-27 Thread Sasha Levin
From: Masahiro Yamada [ Upstream commit fc2b47b55f17fd996f7a01975ce1c33c2f2513f6 ] It believe it is a bad idea to hardcode a specific compiler prefix that may or may not be installed on a user's system. It is annoying when testing features that should not require compilers at all. For example,

[PATCH AUTOSEL 5.0 003/262] nvme-loop: init nvmet_ctrl fatal_err_work when allocate

2019-03-27 Thread Sasha Levin
From: Yufen Yu [ Upstream commit d11de63f2b519f0a162b834013b6d3a46dbf3886 ] After commit 4d43d395fe (workqueue: Try to catch flush_work() without INIT_WORK()), it can cause warning when delete nvme-loop device, trace like: [ 76.601272] Call Trace: [ 76.601646] ? del_timer+0x72/0xa0 [

Re: [PATCH v4] kmemleak: survive in a low-memory situation

2019-03-27 Thread Qian Cai
On 3/27/19 1:29 PM, Catalin Marinas wrote: > From dc4194539f8191bb754901cea74c86e7960886f8 Mon Sep 17 00:00:00 2001 > From: Catalin Marinas > Date: Wed, 27 Mar 2019 17:20:57 + > Subject: [PATCH] mm: kmemleak: Add an emergency allocation pool for kmemleak > objects > > This patch adds an

[PATCH AUTOSEL 5.0 009/262] i2c: sis630: correct format strings

2019-03-27 Thread Sasha Levin
From: Louis Taylor [ Upstream commit 60f7691c624b41a05bfc3493d9b0519e7951b7ef ] When compiling with -Wformat, clang warns: drivers/i2c/busses/i2c-sis630.c:482:4: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat] smbus_base

[PATCH AUTOSEL 5.0 010/262] apparmor: fix double free when unpack of secmark rules fails

2019-03-27 Thread Sasha Levin
From: John Johansen [ Upstream commit d8dbb581d4f86a2ac669c056fc71a28ebeb367f4 ] if secmark rules fail to unpack a double free happens resulting in the following oops [ 1295.584074] audit: type=1400 audit(1549970525.256:51): apparmor="STATUS" info="failed to unpack profile secmark rules"

[PATCH AUTOSEL 5.0 008/262] swiotlb: add checks for the return value of memblock_alloc*()

2019-03-27 Thread Sasha Levin
From: Mike Rapoport [ Upstream commit a0bf842e89a3842162aa8514b9bf4611c86fee10 ] Add panic() calls if memblock_alloc() returns NULL. The panic() format duplicates the one used by memblock itself and in order to avoid explosion with long parameters list replace open coded allocation size

[PATCH AUTOSEL 5.0 017/262] clk: ti: clkctrl: Fix clkdm_name regression for TI_CLK_CLKCTRL_COMPAT

2019-03-27 Thread Sasha Levin
From: Tony Lindgren [ Upstream commit d17a718db40df2548e99a62dc3d7e5e2b38143cc ] Commit a72d785021cb ("clk: ti: Prepare for remove of OF node name") changed the code to use kasprintf() for provider->clkdm_name but also changed the offset used later on by three. We don't need to change the

[PATCH AUTOSEL 5.0 023/262] enic: fix build warning without CONFIG_CPUMASK_OFFSTACK

2019-03-27 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 43d281662fdb46750d49417559b71069f435298d ] The enic driver relies on the CONFIG_CPUMASK_OFFSTACK feature to dynamically allocate a struct member, but this is normally intended for local variables. Building with clang, I get a warning for a few locations

[PATCH AUTOSEL 5.0 046/262] cifs: use correct format characters

2019-03-27 Thread Sasha Levin
From: Louis Taylor [ Upstream commit 259594bea574e515a148171b5cd84ce5cbdc028a ] When compiling with -Wformat, clang emits the following warnings: fs/cifs/smb1ops.c:312:20: warning: format specifies type 'unsigned short' but the argument has type 'unsigned int' [-Wformat]

[PATCH AUTOSEL 5.0 020/262] netfilter: nf_tables: fix set double-free in abort path

2019-03-27 Thread Sasha Levin
From: Pablo Neira Ayuso [ Upstream commit 40ba1d9b4d19796afc9b7ece872f5f3e8f5e2c13 ] The abort path can cause a double-free of an anonymous set. Added-and-to-be-aborted rule looks like this: udp dport { 137, 138 } drop The to-be-aborted transaction list looks like this: newset newsetelem

[PATCH AUTOSEL 5.0 018/262] gpio: gpio-omap: fix level interrupt idling

2019-03-27 Thread Sasha Levin
From: Russell King [ Upstream commit d01849f7deba81f4959fd9e51bf20dbf46987d1c ] Tony notes that the GPIO module does not idle when level interrupts are in use, as the wakeup appears to get stuck. After extensive investigation, it appears that the wakeup will only be cleared if the interrupt

Re: [PATCH 1/2] dt-bindings: usb: add non-removable-ports hub property

2019-03-27 Thread Rob Herring
On Thu, 28 Feb 2019 18:45:39 +, Mans Rullgard wrote: > Add a non-removable-ports property that lists the hardwired downstream > ports of a hub. Although hubs can provide this information, they are > not always configured correctly. An alternate means of indicating this > for built-in USB

[PATCH AUTOSEL 5.0 026/262] scsi: hisi_sas: Fix a timeout race of driver internal and SMP IO

2019-03-27 Thread Sasha Levin
From: Xiang Chen [ Upstream commit 4790595723d4b833b18c994973d39f9efb842887 ] For internal IO and SMP IO, there is a time-out timer for them. In the timer handler, it checks whether IO is done according to the flag task->task_state_lock. There is an issue which may cause system suspended:

Re: [PATCH AUTOSEL 5.0 209/262] regulator: mcp16502: Include linux/gpio/consumer.h to fix build error

2019-03-27 Thread Mark Brown
On Wed, Mar 27, 2019 at 02:01:04PM -0400, Sasha Levin wrote: > From: Axel Lin > > [ Upstream commit f3c6a1a194317f3a31ee2b2067bb0a41de64bc8b ] > > Fix below build error: > drivers/regulator/mcp16502.c: In function ‘mcp16502_gpio_set_mode’: > drivers/regulator/mcp16502.c:135:3: error: implicit

[PATCH AUTOSEL 5.0 027/262] iio: adc: fix warning in Qualcomm PM8xxx HK/XOADC driver

2019-03-27 Thread Sasha Levin
From: Linus Torvalds [ Upstream commit e0f0ae838a25464179d37f355d763f9ec139fc15 ] The pm8xxx_get_channel() implementation is unclear, and causes gcc to suddenly generate odd warnings. The trigger for the warning (at least for me) was the entirely unrelated commit 79a4e91d1bb2 ("device.h: Add

[PATCH AUTOSEL 5.0 024/262] libbpf: force fixdep compilation at the start of the build

2019-03-27 Thread Sasha Levin
From: Stanislav Fomichev [ Upstream commit 8e2688876c7f7073d925e1f150e86b8ed3338f52 ] libbpf targets don't explicitly depend on fixdep target, so when we do 'make -j$(nproc)', there is a high probability, that some objects will be built before fixdep binary is available. Fix this by running

[PATCH AUTOSEL 5.0 033/262] mm, swap: bounds check swap_info array accesses to avoid NULL derefs

2019-03-27 Thread Sasha Levin
From: Daniel Jordan [ Upstream commit c10d38cc8d3e43f946b6c2bf4602c86791587f30 ] Dan Carpenter reports a potential NULL dereference in get_swap_page_of_type: Smatch complains that the NULL checks on "si" aren't consistent. This seems like a real bug because we have not ensured that the

[PATCH AUTOSEL 5.0 029/262] perf c2c: Fix c2c report for empty numa node

2019-03-27 Thread Sasha Levin
From: Jiri Olsa [ Upstream commit e34c940245437f36d2c492edd1f8237eff391064 ] Ravi Bangoria reported that we fail with an empty NUMA node with the following message: $ lscpu NUMA node0 CPU(s): NUMA node1 CPU(s): 0-4 $ sudo ./perf c2c report node/cpu topology bugFailed setup nodes

[PATCH AUTOSEL 5.0 036/262] memcg: killed threads should not invoke memcg OOM killer

2019-03-27 Thread Sasha Levin
From: Tetsuo Handa [ Upstream commit 7775face207922ea62a4e96b9cd45abfdc7b9840 ] If a memory cgroup contains a single process with many threads (including different process group sharing the mm) then it is possible to trigger a race when the oom killer complains that there are no oom elible

[PATCH AUTOSEL 5.0 039/262] mm/slab.c: kmemleak no scan alien caches

2019-03-27 Thread Sasha Levin
From: Qian Cai [ Upstream commit 92d1d07daad65c300c7d0b68bbef8867e9895d54 ] Kmemleak throws endless warnings during boot due to in __alloc_alien_cache(), alc = kmalloc_node(memsize, gfp, node); init_arraycache(>ac, entries, batch); kmemleak_no_scan(ac); Kmemleak does not track the

Re: [PATCH AUTOSEL 5.0 107/262] ASoC: qcom: Fix of-node refcount unbalance in apq8016_sbc_parse_of()

2019-03-27 Thread Mark Brown
On Wed, Mar 27, 2019 at 01:59:22PM -0400, Sasha Levin wrote: > From: Takashi Iwai > > [ Upstream commit 8d1667200850f8753c0265fa4bd25c9a6e5f94ce ] > > The apq8016 driver leaves the of-node refcount at aborting from the > loop of for_each_child_of_node() in the error path. Not only the >

[PATCH AUTOSEL 5.0 040/262] ocfs2: fix a panic problem caused by o2cb_ctl

2019-03-27 Thread Sasha Levin
From: Jia Guo [ Upstream commit cc725ef3cb202ef2019a3c67c8913efa05c3cce6 ] In the process of creating a node, it will cause NULL pointer dereference in kernel if o2cb_ctl failed in the interval (mkdir, o2cb_set_node_attribute(node_num)] in function o2cb_add_node. The node num is initialized to

[PATCH AUTOSEL 5.0 045/262] kasan: fix kasan_check_read/write definitions

2019-03-27 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit bcf6f55a0d05eedd8ebb6ecc60ae3f93205ad833 ] Building little-endian allmodconfig kernels on arm64 started failing with the generated atomic.h implementation, since we now try to call kasan helpers from the EFI stub: aarch64-linux-gnu-ld:

Re: [PATCH 1/3] dt-bindings: mmc: Add HI3670 MMC controller binding

2019-03-27 Thread Rob Herring
On Thu, 28 Feb 2019 21:15:09 +0530, Manivannan Sadhasivam wrote: > HI3670 SoC is architecturally same as the HI3660 SoC. Hence, the same > K3 specific designware driver is reused for HI3670 SoC and the binding > is documented with fallback approach for compatible property. > > Signed-off-by:

[PATCH AUTOSEL 5.0 043/262] fs/file.c: initialize init_files.resize_wait

2019-03-27 Thread Sasha Levin
From: Shuriyc Chu [ Upstream commit 5704a06810682683355624923547b41540e2801a ] (Taken from https://bugzilla.kernel.org/show_bug.cgi?id=200647) 'get_unused_fd_flags' in kthread cause kernel crash. It works fine on 4.1, but causes crash after get 64 fds. It also cause crash on

[PATCH AUTOSEL 5.0 049/262] cifs: Accept validate negotiate if server return NT_STATUS_NOT_SUPPORTED

2019-03-27 Thread Sasha Levin
From: Namjae Jeon [ Upstream commit 969ae8e8d4ee54c99134d3895f2adf96047f5bee ] Old windows version or Netapp SMB server will return NT_STATUS_NOT_SUPPORTED since they do not allow or implement FSCTL_VALIDATE_NEGOTIATE_INFO. The client should accept the response provided it's properly signed.

[PATCH AUTOSEL 5.0 051/262] fs: Make splice() and tee() take into account O_NONBLOCK flag on pipes

2019-03-27 Thread Sasha Levin
From: Slavomir Kaslev [ Upstream commit ee5e001196d1345b8fee25925ff5f1d67936081e ] The current implementation of splice() and tee() ignores O_NONBLOCK set on pipe file descriptors and checks only the SPLICE_F_NONBLOCK flag for blocking on pipe arguments. This is inconsistent since splice()-ing

[PATCH AUTOSEL 5.0 052/262] perf beauty msg_flags: Add missing %s lost when adding prefix suppression logic

2019-03-27 Thread Sasha Levin
From: Arnaldo Carvalho de Melo [ Upstream commit c3b81a500f35241a4c16febe0a015e572cf2c492 ] When the prefix suppresion/enabling logic was added, I forgot to add an extra %, which ended up chopping off the strings: Before: # perf trace -e *mmsg --map-dump syscalls [299] = 1, [307] = 1,

[PATCH AUTOSEL 5.0 054/262] PCI: mediatek: Fix memory mapped IO range size computation

2019-03-27 Thread Sasha Levin
From: Honghui Zhang [ Upstream commit c61df57343bf05743f8abbb31eec9a6f05820dd1 ] Mediatek's HW assigns a MMIO address range (typically starts from 0x2000 to 0x2fff for both mt2712 and mt7622) for PCI usage. This MMIO address space represents the address space that can be allocated to

[PATCH AUTOSEL 5.0 057/262] jbd2: fix invalid descriptor block checksum

2019-03-27 Thread Sasha Levin
From: luojiajun [ Upstream commit 6e876c3dd205d30b0db6850e97a03d75457df007 ] In jbd2_journal_commit_transaction(), if we are in abort mode, we may flush the buffer without setting descriptor block checksum by goto start_journal_io. Then fs is mounted, jbd2_descriptor_block_csum_verify() failed.

[PATCH AUTOSEL 5.0 059/262] fs: fix guard_bio_eod to check for real EOD errors

2019-03-27 Thread Sasha Levin
From: Carlos Maiolino [ Upstream commit dce30ca9e3b676fb288c33c1f4725a0621361185 ] guard_bio_eod() can truncate a segment in bio to allow it to do IO on odd last sectors of a device. It already checks if the IO starts past EOD, but it does not consider the possibility of an IO request starting

Re: [PATCH v4 2/2] x86/MCE/AMD: Don't report L1 BTB MCA errors on some Family 17h models

2019-03-27 Thread Borislav Petkov
On Wed, Mar 27, 2019 at 08:19:57PM +0100, Thomas Gleixner wrote: > > Cc: # 5.0.x: c95b323dcd35: x86/MCE/AMD: Turn off > > MC4_MISC thresholding on all family 0x15 models > > What is this supposed to tell us? That's stable speak from Documentation/process/stable-kernel-rules.rst for patch

[PATCH AUTOSEL 5.0 063/262] wil6210: check null pointer in _wil_cfg80211_merge_extra_ies

2019-03-27 Thread Sasha Levin
From: Alexei Avshalom Lazar [ Upstream commit de77a53c2d1e8fb3621e63e8e1f0f0c9a1a99ff7 ] ies1 or ies2 might be null when code inside _wil_cfg80211_merge_extra_ies access them. Add explicit check for null and make sure ies1/ies2 are not accessed in such a case. spos might be null and be

[PATCH AUTOSEL 5.0 074/262] kbuild: invoke syncconfig if include/config/auto.conf.cmd is missing

2019-03-27 Thread Sasha Levin
From: Masahiro Yamada [ Upstream commit 9390dff66a52d1a60c6e517d8fa6cdbdffc83cb1 ] If include/config/auto.conf.cmd is lost for some reasons, it is not self-healing, so the top Makefile misses to run syncconfig. Move include/config/auto.conf.cmd to the target side. I used a pattern rule instead

[PATCH AUTOSEL 5.0 072/262] powerpc/powernv/ioda: Fix locked_vm counting for memory used by IOMMU tables

2019-03-27 Thread Sasha Levin
From: Alexey Kardashevskiy [ Upstream commit 11f5acce2fa43b015a8120fa7620fa4efd0a2952 ] We store 2 multilevel tables in iommu_table - one for the hardware and one with the corresponding userspace addresses. Before allocating the tables, the iommu_table_group_ops::get_table_size() hook returns

[PATCH AUTOSEL 5.0 081/262] coresight: etm4x: Add support to enable ETMv4.2

2019-03-27 Thread Sasha Levin
From: Sai Prakash Ranjan [ Upstream commit 5666dfd1d8a45a167f0d8b4ef47ea7f780b1f24a ] SDM845 has ETMv4.2 and can use the existing etm4x driver. But the current etm driver checks only for ETMv4.0 and errors out for other etm4x versions. This patch adds this missing support to enable SoC's with

[PATCH AUTOSEL 5.0 084/262] ARM: 8845/1: use unified assembler in c files

2019-03-27 Thread Sasha Levin
From: Stefan Agner [ Upstream commit b7e8c9397cd4efe6567d2728f091f1b728025533 ] Use unified assembler syntax (UAL) in inline assembler. Divided syntax is considered deprecated. This will also allow to build the kernel using LLVM's integrated assembler. When compiling non-Thumb2 GCC always

[PATCH AUTOSEL 5.0 089/262] perf script: Handle missing fields with -F +..

2019-03-27 Thread Sasha Levin
From: Andi Kleen [ Upstream commit 4b6ac811bce46c83811b83cdf87b41251596b9fc ] When using -F + syntax to add a field the existing defaults are currently all marked user_set. This can cause errors when some field is missing in the perf.data This patch tracks the actually user set fields

[PATCH AUTOSEL 5.0 099/262] platform/x86: ideapad-laptop: Fix no_hw_rfkill_list for Lenovo RESCUER R720-15IKBN

2019-03-27 Thread Sasha Levin
From: Yang Fan [ Upstream commit 4d9b2864a415fec39150bc13efc730c7eb88711e ] Commit ae7c8cba3221 ("platform/x86: ideapad-laptop: add lenovo RESCUER R720-15IKBN to no_hw_rfkill_list") added DMI_MATCH(DMI_BOARD_NAME, "80WW") for Lenovo RESCUER R720-15IKBN. But DMI_BOARD_NAME does not match

[PATCH AUTOSEL 5.0 098/262] i2c: Allow recovery of the initial IRQ by an I2C client device.

2019-03-27 Thread Sasha Levin
From: Jim Broadus [ Upstream commit 93b6604c5a669d84e45fe5129294875bf82eb1ff ] A previous change allowed I2C client devices to discover new IRQs upon reprobe by clearing the IRQ in i2c_device_remove. However, if an IRQ was assigned in i2c_new_device, that information is lost. For example, the

[PATCH AUTOSEL 5.0 092/262] mmc: omap: fix the maximum timeout setting

2019-03-27 Thread Sasha Levin
From: Aaro Koskinen [ Upstream commit a6327b5e57fdc679c842588c3be046c0b39cc127 ] When running OMAP1 kernel on QEMU, MMC access is annoyingly noisy: MMC: CTO of 0xff and 0xfe cannot be used! MMC: CTO of 0xff and 0xfe cannot be used! MMC: CTO of 0xff and 0xfe cannot be

[PATCH AUTOSEL 5.0 100/262] platform/mellanox: mlxreg-hotplug: Fix KASAN warning

2019-03-27 Thread Sasha Levin
From: Vadim Pasternak [ Upstream commit e4c275f77624961b56cce397814d9d770a45ac59 ] Fix the following KASAN warning produced when booting a 64-bit kernel: [ 13.334750] BUG: KASAN: stack-out-of-bounds in find_first_bit+0x19/0x70 [ 13.342166] Read of size 8 at addr 880235067178 by task

[PATCH AUTOSEL 5.0 102/262] i2c: designware: Do not allow i2c_dw_xfer() calls while suspended

2019-03-27 Thread Sasha Levin
From: Hans de Goede [ Upstream commit 2751541555382dfa7661bcfaac3ee0fac49f505d ] On most Intel Bay- and Cherry-Trail systems the PMIC is connected over I2C and the PMIC is accessed through various means by the _PS0 and _PS3 ACPI methods (power on / off methods) of various devices. This leads

[PATCH AUTOSEL 5.0 103/262] IB/mlx4: Increase the timeout for CM cache

2019-03-27 Thread Sasha Levin
From: Håkon Bugge [ Upstream commit 2612d723aadcf8281f9bf8305657129bd9f3cd57 ] Using CX-3 virtual functions, either from a bare-metal machine or pass-through from a VM, MAD packets are proxied through the PF driver. Since the VF drivers have separate name spaces for MAD Transaction Ids (TIDs),

[PATCH AUTOSEL 5.0 109/262] cpufreq: acpi-cpufreq: Report if CPU doesn't support boost technologies

2019-03-27 Thread Sasha Levin
From: Erwan Velu [ Upstream commit 1222d527f314c86a3b59a522115d62facc5a7965 ] There is some rare cases where CPB (and possibly IDA) are missing on processors. This is the case fixed by commit f7f3dc00f612 ("x86/cpu/AMD: Fix erratum 1076 (CPB bit)") and following. In such context, the boost

[PATCH AUTOSEL 5.0 115/262] perf test: Fix failure of 'evsel-tp-sched' test on s390

2019-03-27 Thread Sasha Levin
From: Thomas Richter [ Upstream commit 03d309711d687460d1345de8a0363f45b1c8cd11 ] Commit 489338a717a0 ("perf tests evsel-tp-sched: Fix bitwise operator") causes test case 14 "Parse sched tracepoints fields" to fail on s390. This test succeeds on x86. In fact this test now fails on all

[PATCH AUTOSEL 5.0 113/262] scsi: fcoe: make use of fip_mode enum complete

2019-03-27 Thread Sasha Levin
From: Sedat Dilek [ Upstream commit 8beb90aaf334a6efa3e924339926b5f93a234dbb ] commit 1917d42d14b7 ("fcoe: use enum for fip_mode") introduces a separate enum for the fip_mode that shall be used during initialisation handling until it is passed to fcoe_ctrl_link_up to set the initial fip_state.

[PATCH AUTOSEL 5.0 107/262] ASoC: qcom: Fix of-node refcount unbalance in apq8016_sbc_parse_of()

2019-03-27 Thread Sasha Levin
From: Takashi Iwai [ Upstream commit 8d1667200850f8753c0265fa4bd25c9a6e5f94ce ] The apq8016 driver leaves the of-node refcount at aborting from the loop of for_each_child_of_node() in the error path. Not only the iterator node of for_each_child_of_node(), the children nodes referred from it

[PATCH AUTOSEL 5.0 114/262] drm/amd/display: Clear stream->mode_changed after commit

2019-03-27 Thread Sasha Levin
From: Nicholas Kazlauskas [ Upstream commit d8d2f174bcc2c26c3485c70e0c6fe22b27bce739 ] [Why] The stream->mode_changed flag can persist in the following sequence of atomic commits: Commit 1: Enable CRTC0 (mode_changed = true), Enable CRTC1 (mode_changed = true) Commit 2: Disable CRTC1

[PATCH AUTOSEL 5.0 111/262] s390/ism: ignore some errors during deregistration

2019-03-27 Thread Sasha Levin
From: Sebastian Ott [ Upstream commit 0ff06c44efeede4acd068847d3bf8cf894b6c664 ] Prior to dma unmap/free operations the ism driver tries to ensure that the memory is no longer accessed by the HW. When errors during deregistration of memory regions from the HW occur the ism driver will not

[PATCH AUTOSEL 5.0 128/262] Bluetooth: hci_ldisc: Initialize hci_dev before open()

2019-03-27 Thread Sasha Levin
From: Jeremy Cline [ Upstream commit 32a7b4cbe93b0a0ef7e63d31ca69ce54736c4412 ] The hci_dev struct hdev is referenced in work queues and timers started by open() in some protocols. This creates a race between the initialization function and the work or timer which can result hdev being

[PATCH AUTOSEL 5.0 126/262] media: rockchip/vpu: Correct return type for mem2mem buffer helpers

2019-03-27 Thread Sasha Levin
From: Ezequiel Garcia [ Upstream commit 29701c3612fa025d5e8dc64c7a4ae8dc4763912e ] Fix the assigned type of mem2mem buffer handling API. Namely, these functions: v4l2_m2m_next_buf v4l2_m2m_last_buf v4l2_m2m_buf_remove v4l2_m2m_next_src_buf v4l2_m2m_next_dst_buf v4l2_m2m_last_src_buf

[PATCH AUTOSEL 5.0 132/262] HID: intel-ish-hid: avoid binding wrong ishtp_cl_device

2019-03-27 Thread Sasha Levin
From: Hong Liu [ Upstream commit 0d28f49412405d87d3aae83da255070a46e67627 ] When performing a warm reset in ishtp bus driver, the ishtp_cl_device will not be removed, its fw_client still points to the already freed ishtp_device.fw_clients array. Later after driver finishing ishtp client

[PATCH AUTOSEL 5.0 137/262] jbd2: fix race when writing superblock

2019-03-27 Thread Sasha Levin
From: Theodore Ts'o [ Upstream commit 538bcaa6261b77e71d37f5596c33127c1a3ec3f7 ] The jbd2 superblock is lockless now, so there is probably a race condition between writing it so disk and modifing contents of it, which may lead to checksum error. The following race is the one case that we have

[PATCH AUTOSEL 5.0 138/262] leds: lp55xx: fix null deref on firmware load failure

2019-03-27 Thread Sasha Levin
From: Michal Kazior [ Upstream commit 5ddb0869bfc1bca6cfc592c74c64a026f936638c ] I've stumbled upon a kernel crash and the logs pointed me towards the lp5562 driver: > <4>[306013.841294] lp5562 0-0030: Direct firmware load for lp5562 failed with > error -2 > <4>[306013.894990] lp5562 0-0030:

[PATCH AUTOSEL 5.0 133/262] cgroup, rstat: Don't flush subtree root unless necessary

2019-03-27 Thread Sasha Levin
From: Tejun Heo [ Upstream commit b4ff1b44bcd384d22fcbac6ebaf9cc0d33debe50 ] cgroup_rstat_cpu_pop_updated() is used to traverse the updated cgroups on flush. While it was only visiting updated ones in the subtree, it was visiting @root unconditionally. We can easily check whether @root is

[PATCH AUTOSEL 5.0 131/262] vfs: fix preadv64v2 and pwritev64v2 compat syscalls with offset == -1

2019-03-27 Thread Sasha Levin
From: Aurelien Jarno [ Upstream commit cc4b1242d7e3b42eed73881fc749944146493e4f ] The preadv2 and pwritev2 syscalls are supposed to emulate the readv and writev syscalls when offset == -1. Therefore the compat code should check for offset before calling do_compat_preadv64 and

[PATCH AUTOSEL 5.0 135/262] drm/sched: Fix entities with 0 rqs.

2019-03-27 Thread Sasha Levin
From: Bas Nieuwenhuizen [ Upstream commit 1decbf6bb0b4dc56c9da6c5e57b994ebfc2be3aa ] Some blocks in amdgpu can have 0 rqs. Job creation already fails with -ENOENT when entity->rq is NULL, so jobs cannot be pushed. Without a rq there is no scheduler to pop jobs, and rq selection already does

[PATCH AUTOSEL 5.0 129/262] gpio: of: Apply regulator-gpio quirk only to enable-gpios

2019-03-27 Thread Sasha Levin
From: Marek Vasut [ Upstream commit 0e7d6f94016407fd7e1ae472e254d64d4454e9c8 ] Since commit d6cd33ad7102 ("regulator: gpio: Convert to use descriptors") the GPIO regulator had inverted the polarity of the control GPIO. This problem manifested itself on systems with DT containing the following

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