Re: [PATCH 5/6] fsmount: do not use legacy MS_ flags

2018-09-24 Thread Christian Brauner
On Mon, Sep 24, 2018 at 01:37:45PM +0100, David Howells wrote: > Christian Brauner wrote: > > > I have thought a little more about splitting up the mount flags into > > sensible sets. I think the following four sets make sense: > > > > enum { > > MOUNT_ATTR_PROPAGATION = 1, > > MO

INFO: task hung in jbd2_journal_commit_transaction

2018-09-24 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:46c163a036b4 Add linux-next specific files for 20180921 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1283fef140 kernel config: https://syzkaller.appspot.com/x/.config?x=20ea07a946ad19d7 dashb

Re: INFO: task hung in fsnotify_connector_destroy_workfn (2)

2018-09-24 Thread Jiri Kosina
On Sun, 16 Sep 2018, Amir Goldstein wrote: > > > syzbot found the following crash on: > > > > > > HEAD commit:11da3a7f84f1 Linux 4.19-rc3 > > > git tree: upstream > > > console output: https://syzkaller.appspot.com/x/log.txt?x=141ffbca40 > > > kernel config: https://syzkaller.appspo

Re: [PATCH] MAINTAINERS: Set ARM/LPC18XX architecture orphan

2018-09-24 Thread Arnd Bergmann
On Mon, Sep 24, 2018 at 6:43 AM Daniel Lezcano wrote: > > While sending patches around, Joachim Eastwood was Cc'ed but I got an error > its mailbox was full and the mail can not be delivered which makes me think > there is no body at the other end of the line. > > After doing some statistics, it a

Re: [RFC/PATCH 2/5] device property: introduce notion of subnodes for legacy boards

2018-09-24 Thread Heikki Krogerus
Hi Dmitry, On Fri, Sep 21, 2018 at 04:31:19PM -0700, Dmitry Torokhov wrote: > > > + if (!parent_pset) > > > + return ERR_PTR(-EINVAL); > > > + > > > + p = pset_create_set(properties); > > > + if (IS_ERR(p)) > > > + return ERR_CAST(p); > > > + > > > + p->dev = dev; > > > > That loo

Re: [PATCH v10 13/26] s390: vfio-ap: zeroize the AP queues

2018-09-24 Thread Harald Freudenberger
On 24.09.2018 14:16, Halil Pasic wrote: > > On 09/24/2018 01:36 PM, Cornelia Huck wrote: >> On Wed, 12 Sep 2018 15:43:03 -0400 >> Tony Krowiak wrote: >> >>> From: Tony Krowiak >>> >>> Let's call PAPQ(ZAPQ) to zeroize a queue for each queue configured >>> for a mediated matrix device when it is re

Re: [PATCH v4 09/20] memory: tegra: Adapt to Tegra20 device-tree binding changes

2018-09-24 Thread Dmitry Osipenko
On 9/24/18 1:02 PM, Thierry Reding wrote: On Mon, Sep 24, 2018 at 03:41:42AM +0300, Dmitry Osipenko wrote: The tegra20-mc device-tree binding has been changed, GART has been squashed into Memory Controller and now the clock property is mandatory for Tegra20, the DT compatible has been changed as

Re: [PATCH v5 2/6] arm64/mm: Pass ttbr1 as a parameter to __enable_mmu().

2018-09-24 Thread Mark Rutland
On Mon, Sep 17, 2018 at 12:43:29PM +0800, Jun Yao wrote: > The kernel will set up the initial page table in the init_pg_dir. > However, it will create the final page table in the swapper_pg_dir > during the initialization process. We need to let __enable_mmu() > know which page table to use. > > S

Re: INFO: task hung in fsnotify_connector_destroy_workfn (2)

2018-09-24 Thread Dmitry Vyukov
On Mon, Sep 24, 2018 at 3:19 PM, Jiri Kosina wrote: > On Sun, 16 Sep 2018, Amir Goldstein wrote: > >> > > syzbot found the following crash on: >> > > >> > > HEAD commit:11da3a7f84f1 Linux 4.19-rc3 >> > > git tree: upstream >> > > console output: https://syzkaller.appspot.com/x/log.txt?x=

Re: [PATCH v5 3/6] arm64/mm: Create the initial page table in the init_pg_dir.

2018-09-24 Thread Mark Rutland
On Mon, Sep 17, 2018 at 12:43:30PM +0800, Jun Yao wrote: > Create the initial page table in the init_pg_dir. And update the > init_mm.pgd to make sure that pgd_offset_k() works correctly. When > the final page table is created, we redirect the init_mm.pgd to the > swapper_pg_dir. > > Signed-off-by

Re: [Announce] LPC 2018: Testing and Fuzzing Microconference

2018-09-24 Thread Dmitry Vyukov
On Sat, Sep 22, 2018 at 2:52 PM, Matthew Wilcox wrote: > On Wed, Sep 19, 2018 at 10:13:15AM -0700, Dhaval Giani wrote: >> Sasha and I are pleased to announce the Testing and Fuzzing track at >> LPC [ 1 ]. We are planning to continue the discussions from last >> year's microconference [2]. Many dis

Gratuitous licenses are revocable

2018-09-24 Thread gratuitouslicensesarerevocable
Gratuitous licenses are revocable by the grantor. Each of the gratis linux kernel contributors can revoke their license grant (to the project or anyone else who did not pay consideration) at their pleasure. If and when they are ejected from kernel work, when the gift horse is stared in the m

Re: [RESEND PATCH] Revert "pwm: Set class for exported channels in sysfs"

2018-09-24 Thread Fabrice Gasnier
On 09/24/2018 01:53 PM, Thierry Reding wrote: > On Fri, Sep 21, 2018 at 04:02:47PM +0200, Fabrice Gasnier wrote: >> This reverts commit 7e5d1fd75c3dde9fc10c4472b9368089d1b81d00 as it causes >> regression with multiple pwm chip. It creates a new entry in >> '/sys/class/pwm' every time a 'pwmX' is ex

Re: [PATCH] pinctrl: icelake: Fix the resource number for community-4/5

2018-09-24 Thread Andy Shevchenko
On Thu, Sep 20, 2018 at 10:19:34AM -0700, Rajat Jain wrote: > On Fri, Sep 14, 2018 at 2:38 PM Rajat Jain wrote: > > On Fri, Sep 14, 2018 at 2:06 PM Rajat Jain wrote: > > > On Fri, Sep 14, 2018 at 12:41 AM Andy Shevchenko > > > wrote: > > > > On Fri, Sep 14, 2018 at 1:54 AM Rajat Jain wrote: > >

Re: AMD Athlon bogus performance value causing RCU stalls?

2018-09-24 Thread Rob Prowel
On 09/24/18 02:23, Thomas Gleixner wrote: No that thing does not affect 64bit for sure. Can you please provide me a full dmesg from that machine? Will do. See attached dmesg.txt file [0.00] Linux version 4.18.7-100.fc27.x86_64 (mockbu...@bkernel04.phx2.fedoraproject.org) (gcc

Re: [PATCH v5 1/6] arm64/mm: Introduce the init_pg_dir.

2018-09-24 Thread Mark Rutland
On Mon, Sep 24, 2018 at 02:01:37PM +0100, Mark Rutland wrote: > On Mon, Sep 17, 2018 at 12:43:28PM +0800, Jun Yao wrote: > > To make the swapper_pg_dir read only, we will move it to the rodata > > section. And force the kernel to set up the initial page table in > > the init_pg_dir. After generatin

Re: INFO: task hung in fsnotify_connector_destroy_workfn (2)

2018-09-24 Thread Tetsuo Handa
On 2018/09/24 22:31, Dmitry Vyukov wrote: > On Mon, Sep 24, 2018 at 3:19 PM, Jiri Kosina wrote: >> On Sun, 16 Sep 2018, Amir Goldstein wrote: >> > syzbot found the following crash on: > > HEAD commit:11da3a7f84f1 Linux 4.19-rc3 > git tree: upstream > console output: h

[PATCH] mm/hugetlb: Add mmap() encodings for 32MB and 512MB page sizes

2018-09-24 Thread Anshuman Khandual
ARM64 architecture also supports 32MB and 512MB HugeTLB page sizes. This just adds mmap() system call argument encoding for them. Signed-off-by: Anshuman Khandual --- include/uapi/asm-generic/hugetlb_encode.h | 2 ++ include/uapi/linux/mman.h | 2 ++ 2 files changed, 4 insertions

[PATCH] mm/migrate: Split only transparent huge pages when allocation fails

2018-09-24 Thread Anshuman Khandual
When unmap_and_move[_huge_page] function fails due to lack of memory, the splitting should happen only for transparent huge pages not for HugeTLB pages. PageTransHuge() returns true for both THP and HugeTLB pages. Hence the conditonal check should test PagesHuge() flag to make sure that given pages

Re: [BISECTED] Regression: Solidrun Clearfog Base won't boot since "PCI: mvebu: Only remap I/O space if configured"

2018-09-24 Thread Lorenzo Pieralisi
On Mon, Sep 24, 2018 at 03:10:40PM +0200, Thomas Petazzoni wrote: > Hello, > > On Mon, 24 Sep 2018 13:46:29 +0100, Lorenzo Pieralisi wrote: > > > What I think you can do short term, given that AFAICS MVEBU is not > > removable, instead of using pci_host_probe() you move part of its code > > into

Re: [PATCH 00/15] tools/lib/traceevent: Namespace updates to make traceevent into a library

2018-09-24 Thread Arnaldo Carvalho de Melo
Em Mon, Sep 24, 2018 at 04:55:23AM -0400, Steven Rostedt escreveu: > On Sun, 23 Sep 2018 20:56:26 +0200 > Jiri Olsa wrote: > > > > > Steven, > > is there still something left to rename, or we can start moving it into > > public rpm? > > > > We're testing it as a external library, and we did f

[REVIEW][PATCH 0/3] signal/ia64: siginfo fixes and cleanups

2018-09-24 Thread Eric W. Biederman
I have been slowly cleaning up the architectues ever since I discovered that the pattern of passing in struct siginfo is error prone, and occassionally results in borken siginfo being sent to userspace. It turns out that ia64 is one of the noticable offenders. Ever since ia64 was merged in 2.3.

[REVIEW][PATCH 1/3] signal/ia64: Use the generic force_sigsegv in setup_frame

2018-09-24 Thread Eric W. Biederman
The ia64 handling of failure to setup a signal frame has been trying to set overlapping fields in struct siginfo since 2.3.43. The si_pid and si_uid fields are stomped when the si_addr field is set. The si_code of SI_KERNEL indicates that si_pid and si_uid should be valid, and that si_addr does n

[REVIEW][PATCH 2/3] signal/ia64: Use the force_sig(SIGSEGV,...) in ia64_rt_sigreturn

2018-09-24 Thread Eric W. Biederman
The ia64 handling of failure to return from a signal frame has been trying to set overlapping fields in struct siginfo since 2.3.43. The si_code corresponds to the fields that were stomped (not the field that is actually written), so I can not imagine a piece of userspace code making sense of the

[REVIEW][PATCH 3/3] signal/ia64: Use force_sig_fault where appropriate

2018-09-24 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- arch/ia64/kernel/brl_emu.c | 31 ++-- arch/ia64/kernel/traps.c | 144 ++- arch/ia64/kernel/unaligned.c | 12 +-- arch/ia64/mm/fault.c | 12 +-- 4 files changed, 49 insertions(+), 150 deletions(-) diff --g

Re: [PATCH 47/48] perf record: Spread maps for --threads option

2018-09-24 Thread Arnaldo Carvalho de Melo
Em Sun, Sep 23, 2018 at 09:44:32PM +0200, Jiri Olsa escreveu: > On Mon, Sep 17, 2018 at 08:40:48PM +0900, Namhyung Kim wrote: > > On Thu, Sep 13, 2018 at 02:54:49PM +0200, Jiri Olsa wrote: > > > Currently we assign all maps to main thread. Adding > > > code that spreads maps for --threads option. >

Re: [RESEND PATCH] Revert "pwm: Set class for exported channels in sysfs"

2018-09-24 Thread Thierry Reding
On Mon, Sep 24, 2018 at 03:59:03PM +0200, Fabrice Gasnier wrote: > On 09/24/2018 01:53 PM, Thierry Reding wrote: > > On Fri, Sep 21, 2018 at 04:02:47PM +0200, Fabrice Gasnier wrote: > >> This reverts commit 7e5d1fd75c3dde9fc10c4472b9368089d1b81d00 as it causes > >> regression with multiple pwm chip

Re: [PATCH v2 1/2] mm/page_alloc: Fix panic caused by passing debug_guardpage_minorder or kernelcore to command line

2018-09-24 Thread Michal Hocko
On Sat 22-09-18 22:53:32, zhe...@windriver.com wrote: > From: He Zhe > > debug_guardpage_minorder_setup and cmdline_parse_kernelcore do not check > input argument before using it. The argument would be a NULL pointer if > "debug_guardpage_minorder" or "kernelcore", without its value, is set in >

[PATCH 1/3] rtc: armada38x: fix possible race condition

2018-09-24 Thread Alexandre Belloni
The IRQ is requested before the struct rtc is allocated and registered, but this struct is used in the IRQ handler. This may lead to a NULL pointer dereference. Switch to devm_rtc_allocate_device/rtc_register_device to allocate the rtc before requesting the IRQ. Signed-off-by: Alexandre Belloni

[PATCH 3/3] rtc: armada38x: switch to rtc_time64_to_tm/rtc_tm_to_time64

2018-09-24 Thread Alexandre Belloni
Call the 64bit versions of rtc_time_to_tm and rtc_tm_to_time now that the range is enforced by the core. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-armada38x.c | 22 ++ 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/drivers/rtc/rtc-armada38x.c b/driv

Re: [PATCH v2 2/2] mm/page_alloc: Add KBUILD_MODNAME

2018-09-24 Thread Michal Hocko
On Sat 22-09-18 22:53:33, zhe...@windriver.com wrote: > From: He Zhe > > Add KBUILD_MODNAME to make prints more clear. Please be more explicit. Examples of before and after would be really helpful. > Signed-off-by: He Zhe > Cc: a...@linux-foundation.org > Cc: mho...@suse.com > Cc: vba...@suse.

[PATCH 2/3] rtc: armada38x: add range

2018-09-24 Thread Alexandre Belloni
The RTC is a 32bit seconds counter. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-armada38x.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/rtc/rtc-armada38x.c b/drivers/rtc/rtc-armada38x.c index b74338d6dde6..d0278ad0a7f9 100644 --- a/drivers/rtc/rtc-armada38x.c +++ b/dri

Re: KASAN: use-after-free Read in fuse_dev_do_read

2018-09-24 Thread Miklos Szeredi
On Mon, Sep 24, 2018 at 2:06 PM, Kirill Tkhai wrote: > Fix from my previous message makes the use-after-free does not reproduce > with the reproducer in my setup. Excellent. > > I can prepare the patch, but before this some comments from Miklos would > be welcome. > > Miklos, what you think abo

Re: [PATCH V2 03/27] mmc: mmci: convert dma_setup callback to return an int

2018-09-24 Thread Ulf Hansson
On 21 September 2018 at 11:45, Ludovic Barre wrote: > From: Ludovic Barre > > This patch converts dma_setup callback to return an integer > This patch is needed to prepare sdmmc variant with internal dma > > Signed-off-by: Ludovic Barre > --- > drivers/mmc/host/mmci.c | 14 ++--

Re: [RFCv2 00/48] perf tools: Add threads to record command

2018-09-24 Thread Jiri Olsa
On Mon, Sep 24, 2018 at 04:09:09PM +0300, Alexey Budankov wrote: > Hi, > > On 24.09.2018 10:02, Alexey Budankov wrote: > > Hi, > > > > On 23.09.2018 22:30, Jiri Olsa wrote: > >> On Fri, Sep 21, 2018 at 09:13:08AM +0300, Alexey Budankov wrote: > >> > >> SNIP > >> > >>> Events: > >>> cpu/period=P,e

Re: [PATCH] mm/migrate: Split only transparent huge pages when allocation fails

2018-09-24 Thread Michal Hocko
On Mon 24-09-18 19:44:55, Anshuman Khandual wrote: > When unmap_and_move[_huge_page] function fails due to lack of memory, the > splitting should happen only for transparent huge pages not for HugeTLB > pages. PageTransHuge() returns true for both THP and HugeTLB pages. Hence > the conditonal check

Re: [PATCH] clk: qcom: Add Global Clock controller (GCC) driver for SDM660

2018-09-24 Thread Craig
On 24 September 2018 13:44:33 BST, Heiko Stuebner wrote: >Hi Craig, > >Am Montag, 13. August 2018, 09:45:09 CEST schrieb Craig Tatlor: >> On 13 August 2018 07:55:34 BST, Taniya Das >wrote: >> >Hello Craig, >> > >> >Could you please correct the authorship and also provide the >reference >> >to

[PATCH V5 00/30] C-SKY(csky) Linux Kernel Port

2018-09-24 Thread Guo Ren
This is the 5th version patchset to add the Linux kernel port for C-SKY(csky). Since I misunderstood the linux-next. I made some discrete patches which made review confusing. Now correct back to the whole patchset style. Thanks to everyone who provided feedback on the previous versions. This patch

Re: [PATCH] iio: magnetometer: Add support for PNI RM3100 9-axis magnetometer

2018-09-24 Thread Song Qiang
On Sat, Sep 22, 2018 at 11:14:09AM +0100, Jonathan Cameron wrote: > On Thu, 20 Sep 2018 21:13:40 +0800 > Song Qiang wrote: > > > PNI RM3100 magnetometer is a high resolution, large signal immunity > > magnetometer, composed of 3 single sensors and a processing chip. > > PNI is currently not in th

[PATCH] platform/x86: intel_int0002_vgpio: Implement irq_set_wake

2018-09-24 Thread Hans de Goede
We were relying on the interrupt being shared with the ACPI SCI and the ACPI core calling irq_set_wake. But that does not always happen on Bay Trail devices, so we should do it ourselves. This fixes wake from USB not working on various Bay Trail devices. Signed-off-by: Hans de Goede --- drivers

[PATCH V5 02/30] csky: defconfig

2018-09-24 Thread Guo Ren
This patch adds csky defconfig. Signed-off-by: Guo Ren --- arch/csky/configs/defconfig | 61 + 1 file changed, 61 insertions(+) create mode 100644 arch/csky/configs/defconfig diff --git a/arch/csky/configs/defconfig b/arch/csky/configs/defconfig new

[PATCH V5 05/30] csky: System Call

2018-09-24 Thread Guo Ren
This patch adds files related to syscall. Signed-off-by: Guo Ren --- arch/csky/include/asm/syscall.h | 69 + arch/csky/include/asm/syscalls.h| 15 arch/csky/include/uapi/asm/unistd.h | 10 ++ arch/csky/kernel/syscall.c | 42 ++

[PATCH V5 04/30] csky: Exception handling and mm-fault

2018-09-24 Thread Guo Ren
This patch adds exception handling code, cpuinfo and mm-fault code. Signed-off-by: Guo Ren --- arch/csky/abiv1/alignment.c | 332 + arch/csky/abiv1/inc/abi/entry.h | 160 arch/csky/abiv2/inc/abi/entry.h | 157 arch/csky/includ

[PATCH V5 06/30] csky: Cache and TLB routines

2018-09-24 Thread Guo Ren
This patch adds cache and tlb sync codes for abiv1 & abiv2. Signed-off-by: Guo Ren --- arch/csky/abiv1/cacheflush.c | 51 arch/csky/abiv1/inc/abi/cacheflush.h | 43 +++ arch/csky/abiv1/inc/abi/tlb.h | 12 ++ arch/csky/abiv2/cacheflush.c | 59 ++

[PATCH V5 03/30] csky: Kernel booting

2018-09-24 Thread Guo Ren
This patch add boot code. Thx boot params is all in dtb and it's the only way to let kernel get bootloader param information. Signed-off-by: Guo Ren --- arch/csky/kernel/head.S| 78 + arch/csky/kernel/setup.c | 151 + arc

[PATCH V5 01/30] csky: Build infrastructure

2018-09-24 Thread Guo Ren
This patch adds Makefile, Kconfig for build infrastructure. Signed-off-by: Guo Ren --- arch/csky/Kconfig | 204 + arch/csky/Kconfig.debug| 8 ++ arch/csky/Makefile | 92 +++ arch/csky/abiv1/Ma

[PATCH V5 12/30] csky: ELF and module probe

2018-09-24 Thread Guo Ren
This patch adds ELF definition and module relocate codes. Signed-off-by: Guo Ren --- arch/csky/include/asm/elf.h | 150 arch/csky/kernel/module.c | 83 2 files changed, 233 insertions(+) create mode 100644 arch/csky/includ

[PATCH V5 08/30] csky: Process management and Signal

2018-09-24 Thread Guo Ren
This patch adds files related to task_switch, sigcontext, signal. Signed-off-by: Guo Ren --- arch/csky/abiv2/fpu.c | 281 + arch/csky/abiv2/inc/abi/fpu.h | 66 ++ arch/csky/include/asm/mmu_context.h | 149 ++ arch/csky/incl

[PATCH V5 13/30] csky: Library functions

2018-09-24 Thread Guo Ren
This patch adds string optimize codes and some auxiliary code. Signed-off-by: Chen Linfei Signed-off-by: Mao Han Signed-off-by: Guo Ren --- arch/csky/abiv1/bswapdi.c| 19 +++ arch/csky/abiv1/bswapsi.c| 15 ++ arch/csky/abiv1/inc/abi/string.h | 13 ++ arch/csky/abiv1/memcpy.S

[PATCH V5 11/30] csky: Atomic operations

2018-09-24 Thread Guo Ren
This patch adds atomic, cmpxchg, spinlock files. - SMP supported - ticklock supported - queue-rwlock supported Signed-off-by: Guo Ren --- arch/csky/include/asm/atomic.h | 213 ++ arch/csky/include/asm/cmpxchg.h| 70 + arch/csky/include/asm/spi

[PATCH V5 10/30] csky: IRQ handling

2018-09-24 Thread Guo Ren
This patch adds IRQ handling files. Signed-off-by: Guo Ren --- arch/csky/include/asm/irq.h | 9 arch/csky/include/asm/irqflags.h | 50 arch/csky/kernel/irq.c | 22 ++ 3 files changed, 81 insertions(+) create mode

[PATCH V5 14/30] csky: User access

2018-09-24 Thread Guo Ren
This patch adds "user access from kernel" codes. Signed-off-by: Guo Ren --- arch/csky/include/asm/uaccess.h | 399 arch/csky/lib/usercopy.c| 271 +++ 2 files changed, 670 insertions(+) create mode 100644 arch/csky/include/

[PATCH V5 09/30] csky: VDSO and rt_sigreturn

2018-09-24 Thread Guo Ren
This patch adds files related to VDSO and our VDSO only support rt_sigreturn. Signed-off-by: Guo Ren --- arch/csky/abiv1/inc/abi/vdso.h | 18 + arch/csky/abiv2/inc/abi/vdso.h | 24 arch/csky/include/asm/vdso.h | 13 +++ arch/csky/kernel/vdso.c| 85 +

[PATCH V5 07/30] csky: MMU and page table management

2018-09-24 Thread Guo Ren
This patch adds files related to memory management and here is our memory-layout: Fixmap : 0xffc02000 – 0xf000 (4 MB - 12KB) Pkmap: 0xff80 – 0xffc0 (4 MB) Vmalloc : 0xf020 – 0xff00 (238 MB) Lowmem : 0x8000 – 0xc000

[PATCH v3] Bluetooth: hci_qca: Add poweroff support during hci down for wcn3990

2018-09-24 Thread Balakrishna Godavarthi
This patch enables power off support for hci down and power on support for hci up. As wcn3990 power sources are ignited by regulators, we will turn off them during hci down, i.e. an complete power off of wcn3990. So while hci up, will call vendor setup which will turn on the regulators, requests BT

Re: WARNING in request_end

2018-09-24 Thread Miklos Szeredi
On Mon, Sep 24, 2018 at 2:29 PM, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:6bf4ca7fbc85 Linux 4.19-rc5 > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=159149c640 > kernel config: https://syzkaller.appspot.com/x/.

Re: Redoing eXclusive Page Frame Ownership (XPFO) with isolated CPUs in mind (for KVM to isolate its guests per CPU)

2018-09-24 Thread Stecklina, Julian
On Tue, 2018-09-18 at 17:00 -0600, Khalid Aziz wrote: > I tested the kernel with this new code. When booted without > "xpfotlbflush",  > there is no meaningful change in system time with kernel compile. That's good news! So the lock optimizations seem to help. > Kernel  > locks up during bootup

Re: [PATCH] bug fix for making cache device failed

2018-09-24 Thread Coly Li
On 9/21/18 2:14 PM, Dongbo Cao wrote: 1)when the nbuckets of cache device is smaller than 1024, make cache device will trigger BUG_ON in kernel, add a condition to avoid this. 2)split original if condition code into separate ones to make it clearly to debug. Signed-off-by: Dongbo Cao Hi D

[PATCH AUTOSEL 4.18 01/76] mac80211: Run TXQ teardown code before de-registering interfaces

2018-09-24 Thread Sasha Levin
From: Toke Høiland-Jørgensen [ Upstream commit 77cfaf52eca5cac30ed029507e0cab065f888995 ] The TXQ teardown code can reference the vif data structures that are stored in the netdev private memory area if there are still packets on the queue when it is being freed. Since the TXQ teardown code is r

[PATCH AUTOSEL 4.18 29/76] bpf: fix sg shift repair start offset in bpf_msg_pull_data

2018-09-24 Thread Sasha Levin
From: Daniel Borkmann [ Upstream commit a8cf76a9023bc6709b1361d06bb2fae5227b9d68 ] When we perform the sg shift repair for the scatterlist ring, we currently start out at i = first_sg + 1. However, this is not correct since the first_sg could point to the sge sitting at slot MAX_SKB_FRAGS - 1, a

[PATCH AUTOSEL 4.18 25/76] gpiolib-acpi: Register GpioInt ACPI event handlers from a late_initcall

2018-09-24 Thread Sasha Levin
From: Hans de Goede [ Upstream commit 78d3a92edbfb02e8cb83173cad84c3f2d5e1f070 ] GpioInt ACPI event handlers may see there IRQ triggered immediately after requesting the IRQ (esp. level triggered ones). This means that they may run before any other (builtin) drivers have had a chance to register

[PATCH AUTOSEL 4.18 08/76] scsi: csiostor: fix incorrect port capabilities

2018-09-24 Thread Sasha Levin
From: Varun Prakash [ Upstream commit 68bdc630721c40e908d22cffe07b5ca225a69f6e ] - use be32_to_cpu() instead of ntohs() for 32 bit port capabilities. - add a new function fwcaps32_to_caps16() to convert 32 bit port capabilities to 16 bit port capabilities. Signed-off-by: Varun Prakash Si

[PATCH AUTOSEL 4.18 28/76] bpf: fix shift upon scatterlist ring wrap-around in bpf_msg_pull_data

2018-09-24 Thread Sasha Levin
From: Daniel Borkmann [ Upstream commit 2e43f95dd8ee62bc8bf57f2afac37fbd70c8d565 ] If first_sg and last_sg wraps around in the scatterlist ring, then we need to account for that in the shift as well. E.g. crafting such msgs where this is the case leads to a hang as shift becomes negative. E.g. c

[PATCH AUTOSEL 4.18 21/76] gpio: adp5588: Fix sleep-in-atomic-context bug

2018-09-24 Thread Sasha Levin
From: Michael Hennerich [ Upstream commit 6537886cdc9a637711fd6da980dbb87c2c87c9aa ] This fixes: [BUG] gpio: gpio-adp5588: A possible sleep-in-atomic-context bug in adp5588_gpio_write() [BUG] gpio: gpio-adp5588: A possible sleep-in-atomic-context bug

[PATCH AUTOSEL 4.18 31/76] net: hns: add the code for cleaning pkt in chip

2018-09-24 Thread Sasha Levin
From: Peng Li [ Upstream commit 31fabbee8f5c658c3fa1603c66e9e4f51ea8c2c6 ] If there are packets in hardware when changing the speed or duplex, it may cause hardware hang up. This patch adds the code for waiting chip to clean the all pkts(TX & RX) in chip when the driver uses the function named

[PATCH AUTOSEL 4.18 26/76] gpio: dwapb: Fix error handling in dwapb_gpio_probe()

2018-09-24 Thread Sasha Levin
From: Alexey Khoroshilov [ Upstream commit a618cf4800970d260871c159b7eec014a1da2e81 ] If dwapb_gpio_add_port() fails in dwapb_gpio_probe(), gpio->clk is left undisabled. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Signed-off-by: Linus Walle

[PATCH AUTOSEL 4.18 59/76] mac80211: fix WMM TXOP calculation

2018-09-24 Thread Sasha Levin
From: "Dreyfuss, Haim" [ Upstream commit abd76d255d69d70206c01b9cb19ba36a9c1df6a1 ] In commit 9236c4523e5b ("mac80211: limit wmm params to comply with ETSI requirements"), we have limited the WMM parameters to comply with 802.11 and ETSI standard. Mistakenly the TXOP value was caluclated wrong.

[PATCH AUTOSEL 4.18 35/76] tc-testing: add test-cases for numeric and invalid control action

2018-09-24 Thread Sasha Levin
From: Paolo Abeni [ Upstream commit 25a8238f4cc8425d4aade4f9041be468d0e8aa2e ] Only the police action allows us to specify an arbitrary numeric value for the control action. This change introduces an explicit test case for the above feature and then leverage it for testing the kernel behavior fo

[PATCH AUTOSEL 4.18 14/76] mac80211: correct use of IEEE80211_VHT_CAP_RXSTBC_X

2018-09-24 Thread Sasha Levin
From: Danek Duvall [ Upstream commit 67d1ba8a6dc83d90cd58b89fa6cbf9ae35a0cf7f ] The mod mask for VHT capabilities intends to say that you can override the number of STBC receive streams, and it does, but only by accident. The IEEE80211_VHT_CAP_RXSTBC_X aren't bits to be set, but values (albeit l

[PATCH AUTOSEL 4.18 03/76] Btrfs: fix unexpected failure of nocow buffered writes after snapshotting when low on space

2018-09-24 Thread Sasha Levin
From: Robbie Ko [ Upstream commit 8ecebf4d767e2307a946c8905278d6358eda35c3 ] Commit e9894fd3e3b3 ("Btrfs: fix snapshot vs nocow writting") forced nocow writes to fallback to COW, during writeback, when a snapshot is created. This resulted in writes made before creating the snapshot to unexpected

[PATCH AUTOSEL 4.18 54/76] i2c: uniphier-f: issue STOP only for last message or I2C_M_STOP

2018-09-24 Thread Sasha Levin
From: Masahiro Yamada [ Upstream commit 4c85609b08c4761eca0a40fd7beb06bc650f252d ] This driver currently emits a STOP if the next message is not I2C_MD_RD. It should not do it because it disturbs the I2C_RDWR ioctl, where read/write transactions are combined without STOP between. Issue STOP on

[PATCH 2/3] rtc: ab8500: let the core handle range

2018-09-24 Thread Alexandre Belloni
Let the core handle offsetting and windowing the RTC range. The RTC has a 24 bit counter for minutes plus a seconds counter. Keep the epoch at the beginning of 2000. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ab8500.c | 53 +++- 1 file changed, 4 ins

[PATCH AUTOSEL 4.18 33/76] sh_eth: Add R7S9210 support

2018-09-24 Thread Sasha Levin
From: Chris Brandt [ Upstream commit 6e0bb04d0e4f597d8d8f4f21401a9636f2809fd1 ] Add support for the R7S9210 which is part of the RZ/A2 series. Signed-off-by: Chris Brandt Acked-by: Rob Herring Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- .../devicetree/bindings/net/sh_eth.

[PATCH 3/3] rtc: ab8500: remove useless check

2018-09-24 Thread Alexandre Belloni
rtc_time_to_tm always rturns a valid tm, there is no need to validate it. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ab8500.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-ab8500.c b/drivers/rtc/rtc-ab8500.c index 2e2671b84ab0..1f0cbd51ba06 100644

[PATCH AUTOSEL 4.18 64/76] fsnotify: fix ignore mask logic in fsnotify()

2018-09-24 Thread Sasha Levin
From: Amir Goldstein [ Upstream commit 9bdda4e9cf2dcecb60a0683b10ffb8cd7e5f2f45 ] Commit 92183a42898d ("fsnotify: fix ignore mask logic in send_to_group()") acknoledges the use case of ignoring an event on an inode mark, because of an ignore mask on a mount mark of the same group (i.e. I want to

[PATCH AUTOSEL 4.18 49/76] ibmvnic: Include missing return code checks in reset function

2018-09-24 Thread Sasha Levin
From: Thomas Falcon [ Upstream commit f611a5b4a51fa36a0aa792be474f5d6aacaef7e3 ] Check the return codes of these functions and halt reset in case of failure. The driver will remain in a dormant state until the next reset event, when device initialization will be re-attempted. Signed-off-by: Tho

[PATCH AUTOSEL 4.18 63/76] mac80211: shorten the IBSS debug messages

2018-09-24 Thread Sasha Levin
From: Emmanuel Grumbach [ Upstream commit c6e57b3896fc76299913b8cfd82d853bee8a2c84 ] When tracing is enabled, all the debug messages are recorded and must not exceed MAX_MSG_LEN (100) columns. Longer debug messages grant the user with: WARNING: CPU: 3 PID: 32642 at /tmp/wifi-core-2018080609482

[PATCH 1/3] rtc: ab8500: use rtc_add_group

2018-09-24 Thread Alexandre Belloni
Use rtc_add_group to add the sysfs group in a race free manner. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ab8500.c | 41 +--- 1 file changed, 17 insertions(+), 24 deletions(-) diff --git a/drivers/rtc/rtc-ab8500.c b/drivers/rtc/rtc-ab8500.c index e

[PATCH AUTOSEL 4.14 06/36] mac80211: correct use of IEEE80211_VHT_CAP_RXSTBC_X

2018-09-24 Thread Sasha Levin
From: Danek Duvall [ Upstream commit 67d1ba8a6dc83d90cd58b89fa6cbf9ae35a0cf7f ] The mod mask for VHT capabilities intends to say that you can override the number of STBC receive streams, and it does, but only by accident. The IEEE80211_VHT_CAP_RXSTBC_X aren't bits to be set, but values (albeit l

[PATCH AUTOSEL 4.18 74/76] ceph: avoid a use-after-free in ceph_destroy_options()

2018-09-24 Thread Sasha Levin
From: Ilya Dryomov [ Upstream commit 8aaff15168cfbc7c8980fdb0e8a585f1afe56ec0 ] syzbot reported a use-after-free in ceph_destroy_options(), called from ceph_mount(). The problem was that create_fs_client() consumed the opt pointer on some errors, but not on all of them. Make sure it always con

[PATCH AUTOSEL 4.18 76/76] afs: Fix cell specification to permit an empty address list

2018-09-24 Thread Sasha Levin
From: David Howells [ Upstream commit ecfe951f0c1b169ea4b7dd6f3a404dfedd795bc2 ] Fix the cell specification mechanism to allow cells to be pre-created without having to specify at least one address (the addresses will be upcalled for). This allows the cell information preload service to avoid t

[PATCH AUTOSEL 4.18 13/76] bpf: sockmap, decrement copied count correctly in redirect error case

2018-09-24 Thread Sasha Levin
From: John Fastabend [ Upstream commit 501ca81760c204ec59b73e4a00bee5971fc0f1b1 ] Currently, when a redirect occurs in sockmap and an error occurs in the redirect call we unwind the scatterlist once in the error path of bpf_tcp_sendmsg_do_redirect() and then again in sendmsg(). Then in the error

[PATCH AUTOSEL 4.14 03/36] KVM: PPC: Book3S HV: Don't truncate HPTE index in xlate function

2018-09-24 Thread Sasha Levin
From: Paul Mackerras [ Upstream commit 46dec40fb741f00f1864580130779aeeaf24fb3d ] This fixes a bug which causes guest virtual addresses to get translated to guest real addresses incorrectly when the guest is using the HPT MMU and has more than 256GB of RAM, or more specifically has a HPT larger

[PATCH AUTOSEL 4.14 16/36] mac80211: do not convert to A-MSDU if frag/subframe limited

2018-09-24 Thread Sasha Levin
From: Lorenzo Bianconi [ Upstream commit 1eb507903665442360a959136dfa3234c43db085 ] Do not start to aggregate packets in a A-MSDU frame (converting the first subframe to A-MSDU, adding the header) if max_tx_fragments or max_amsdu_subframes limits are already exceeded by it. In particular, this h

Re: [PATCH v10 10/26] KVM: s390: interfaces to clear CRYCB masks

2018-09-24 Thread Tony Krowiak
On 09/24/2018 07:01 AM, Cornelia Huck wrote: On Wed, 12 Sep 2018 15:43:00 -0400 Tony Krowiak wrote: From: Tony Krowiak Introduces two new KVM interface to clear the APM, AQM and ADM masks in the guest's CRYCB. The VCPUs are taken out of SIE to ensure the VCPUs do not get out of sync. Hm,

[PATCH AUTOSEL 4.14 19/36] tools/kvm_stat: fix handling of invalid paths in debugfs provider

2018-09-24 Thread Sasha Levin
From: Stefan Raspl [ Upstream commit 617c66b9f236d20f11cecbb3f45e6d5675b2fae1 ] When filtering by guest, kvm_stat displays garbage when the guest is destroyed - see sample output below. We add code to remove the invalid paths from the providers, so at least no more garbage is displayed. Here's a

[PATCH AUTOSEL 4.14 31/36] mac80211: fix a race between restart and CSA flows

2018-09-24 Thread Sasha Levin
From: Emmanuel Grumbach [ Upstream commit f3ffb6c3a28963657eb8b02a795d75f2ebbd5ef4 ] We hit a problem with iwlwifi that was caused by a bug in mac80211. A bug in iwlwifi caused the firwmare to crash in certain cases in channel switch. Because of that bug, drv_pre_channel_switch would fail and tr

[PATCH AUTOSEL 4.9 09/23] gpio: Fix crash due to registration race

2018-09-24 Thread Sasha Levin
From: Vincent Whitchurch [ Upstream commit d49b48f088c323dbacae44dfbe56d9c985c8a2a1 ] gpiochip_add_data_with_key() adds the gpiochip to the gpio_devices list before of_gpiochip_add() is called, but it's only the latter which sets the ->of_xlate function pointer. gpiochip_find() can be called by

[PATCH AUTOSEL 4.14 35/36] tools/vm/slabinfo.c: fix sign-compare warning

2018-09-24 Thread Sasha Levin
From: Naoya Horiguchi [ Upstream commit 904506562e0856f2535d876407d087c9459d345b ] Currently we get the following compiler warning: slabinfo.c:854:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (s->object_size < min_objsize)

[PATCH AUTOSEL 4.9 06/23] mac80211: mesh: fix HWMP sequence numbering to follow standard

2018-09-24 Thread Sasha Levin
From: Yuan-Chi Pang [ Upstream commit 1f631c3201fe5491808df143d8fcba81b3197ffd ] IEEE 802.11-2016 14.10.8.3 HWMP sequence numbering says: If it is a target mesh STA, it shall update its own HWMP SN to maximum (current HWMP SN, target HWMP SN in the PREQ element) + 1 immediately before it generat

[PATCH AUTOSEL 4.9 05/23] gpio: adp5588: Fix sleep-in-atomic-context bug

2018-09-24 Thread Sasha Levin
From: Michael Hennerich [ Upstream commit 6537886cdc9a637711fd6da980dbb87c2c87c9aa ] This fixes: [BUG] gpio: gpio-adp5588: A possible sleep-in-atomic-context bug in adp5588_gpio_write() [BUG] gpio: gpio-adp5588: A possible sleep-in-atomic-context bug

[PATCH AUTOSEL 4.9 08/23] cfg80211: nl80211_update_ft_ies() to validate NL80211_ATTR_IE

2018-09-24 Thread Sasha Levin
From: Arunk Khandavalli [ Upstream commit 4f0223bfe9c3e62d8f45a85f1ef1b18a8a263ef9 ] nl80211_update_ft_ies() tried to validate NL80211_ATTR_IE with is_valid_ie_attr() before dereferencing it, but that helper function returns true in case of NULL pointer (i.e., attribute not included). This can r

[PATCH AUTOSEL 4.9 14/23] i2c: uniphier-f: issue STOP only for last message or I2C_M_STOP

2018-09-24 Thread Sasha Levin
From: Masahiro Yamada [ Upstream commit 4c85609b08c4761eca0a40fd7beb06bc650f252d ] This driver currently emits a STOP if the next message is not I2C_MD_RD. It should not do it because it disturbs the I2C_RDWR ioctl, where read/write transactions are combined without STOP between. Issue STOP on

[PATCH AUTOSEL 4.9 13/23] i2c: uniphier: issue STOP only for last message or I2C_M_STOP

2018-09-24 Thread Sasha Levin
From: Masahiro Yamada [ Upstream commit 38f5d8d8cbb2ffa2b54315118185332329ec891c ] This driver currently emits a STOP if the next message is not I2C_MD_RD. It should not do it because it disturbs the I2C_RDWR ioctl, where read/write transactions are combined without STOP between. Issue STOP on

[PATCH AUTOSEL 4.9 22/23] tools/vm/slabinfo.c: fix sign-compare warning

2018-09-24 Thread Sasha Levin
From: Naoya Horiguchi [ Upstream commit 904506562e0856f2535d876407d087c9459d345b ] Currently we get the following compiler warning: slabinfo.c:854:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (s->object_size < min_objsize)

[PATCH AUTOSEL 4.9 11/23] RAID10 BUG_ON in raise_barrier when force is true and conf->barrier is 0

2018-09-24 Thread Sasha Levin
From: Xiao Ni [ Upstream commit 1d0ffd264204eba1861865560f1f7f7a92919384 ] In raid10 reshape_request it gets max_sectors in read_balance. If the underlayer disks have bad blocks, the max_sectors is less than last. It will call goto read_more many times. It calls raise_barrier(conf, sectors_don

[PATCH AUTOSEL 4.4 02/18] mac80211: correct use of IEEE80211_VHT_CAP_RXSTBC_X

2018-09-24 Thread Sasha Levin
From: Danek Duvall [ Upstream commit 67d1ba8a6dc83d90cd58b89fa6cbf9ae35a0cf7f ] The mod mask for VHT capabilities intends to say that you can override the number of STBC receive streams, and it does, but only by accident. The IEEE80211_VHT_CAP_RXSTBC_X aren't bits to be set, but values (albeit l

[PATCH AUTOSEL 4.4 07/18] RAID10 BUG_ON in raise_barrier when force is true and conf->barrier is 0

2018-09-24 Thread Sasha Levin
From: Xiao Ni [ Upstream commit 1d0ffd264204eba1861865560f1f7f7a92919384 ] In raid10 reshape_request it gets max_sectors in read_balance. If the underlayer disks have bad blocks, the max_sectors is less than last. It will call goto read_more many times. It calls raise_barrier(conf, sectors_don

[PATCH AUTOSEL 4.4 06/18] cfg80211: nl80211_update_ft_ies() to validate NL80211_ATTR_IE

2018-09-24 Thread Sasha Levin
From: Arunk Khandavalli [ Upstream commit 4f0223bfe9c3e62d8f45a85f1ef1b18a8a263ef9 ] nl80211_update_ft_ies() tried to validate NL80211_ATTR_IE with is_valid_ie_attr() before dereferencing it, but that helper function returns true in case of NULL pointer (i.e., attribute not included). This can r

[PATCH AUTOSEL 4.4 05/18] mac80211: mesh: fix HWMP sequence numbering to follow standard

2018-09-24 Thread Sasha Levin
From: Yuan-Chi Pang [ Upstream commit 1f631c3201fe5491808df143d8fcba81b3197ffd ] IEEE 802.11-2016 14.10.8.3 HWMP sequence numbering says: If it is a target mesh STA, it shall update its own HWMP SN to maximum (current HWMP SN, target HWMP SN in the PREQ element) + 1 immediately before it generat

<    5   6   7   8   9   10   11   12   13   14   >