[PATCH 3/4] kbuild: pkg: rename scripts/package/Makefile to scripts/Makefile.package

2019-08-21 Thread Masahiro Yamada
scripts/package/Makefile does not use $(obj) or $(src) at all. It actually generates files and directories in the top of $(objtree). I do not see much sense in descending into scripts/package/. Signed-off-by: Masahiro Yamada --- Documentation/kbuild/makefiles.rst | 16 --

Re: [PATCH v8 02/27] x86/cpufeatures: Add CET CPU feature flags for Control-flow Enforcement Technology (CET)

2019-08-21 Thread Borislav Petkov
On Tue, Aug 13, 2019 at 01:52:00PM -0700, Yu-cheng Yu wrote: > Add CPU feature flags for Control-flow Enforcement Technology (CET). > > CPUID.(EAX=7,ECX=0):ECX[bit 7] Shadow stack > CPUID.(EAX=7,ECX=0):EDX[bit 20] Indirect branch tracking > > Reviewed-by: Borislav Petkov > Signed-off-by: Yu-chen

[PATCH v3] arm64: implement KPROBES_ON_FTRACE

2019-08-21 Thread Jisheng Zhang
KPROBES_ON_FTRACE avoids much of the overhead with regular kprobes as it eliminates the need for a trap, as well as the need to emulate or single-step instructions. Tested on berlin arm64 platform. ~ # mount -t debugfs debugfs /sys/kernel/debug/ ~ # cd /sys/kernel/debug/ /sys/kernel/debug # echo

Re: [PATCH v5 11/17] net: sgi: ioc3-eth: no need to stop queue set_multicast_list

2019-08-21 Thread Thomas Bogendoerfer
On Mon, 19 Aug 2019 17:04:53 -0700 Jakub Kicinski wrote: > On Mon, 19 Aug 2019 18:31:34 +0200, Thomas Bogendoerfer wrote: > > netif_stop_queue()/netif_wake_qeue() aren't needed for changing > > multicast filters. Use spinlocks instead for proper protection > > of private struct. > > > > I though

Re: [f2fs-dev] [PATCH v4 3/3] f2fs: Support case-insensitive file name lookups

2019-08-21 Thread Chao Yu
On 2019-7-24 7:05, Daniel Rosenberg via Linux-f2fs-devel wrote: > +static int f2fs_d_compare(const struct dentry *dentry, unsigned int len, > + const char *str, const struct qstr *name) > +{ > + struct qstr qstr = {.name = str, .len = len }; > + > + if (!IS_CASEFOLDED(dentry->d_parent->d_in

Re: [PATCH] docs: mtd: Update spi nor reference driver

2019-08-21 Thread John Garry
On 20/08/2019 17:58, Mark Brown wrote: On Tue, Aug 20, 2019 at 03:09:15PM +0100, John Garry wrote: On 19/08/2019 05:39, Vignesh Raghavendra wrote: On 16/08/19 3:50 PM, John Garry wrote: About the child spi flash devices, is the recommendation to just use PRP0001 HID and "jedec,spi-nor" compa

Re: [PATCH v5 10/17] net: sgi: ioc3-eth: rework skb rx handling

2019-08-21 Thread Thomas Bogendoerfer
On Mon, 19 Aug 2019 16:55:22 -0700 Jakub Kicinski wrote: > On Mon, 19 Aug 2019 18:31:33 +0200, Thomas Bogendoerfer wrote: > > Buffers alloacted by alloc_skb() are already cache aligned so there > > is no need for an extra align done by ioc3_alloc_skb. And instead > > of skb_put/skb_trim simply us

Re: [PATCH v8 03/27] x86/fpu/xstate: Change names to separate XSAVES system and user states

2019-08-21 Thread Borislav Petkov
On Tue, Aug 13, 2019 at 01:52:01PM -0700, Yu-cheng Yu wrote: > Control-flow Enforcement (CET) MSR contents are XSAVES system states. > To support CET, introduce XSAVES system states first. > > XSAVES is a "supervisor" instruction and, comparing to XSAVE, saves > additional "supervisor" states that

Re: [PATCH v8 02/27] x86/cpufeatures: Add CET CPU feature flags for Control-flow Enforcement Technology (CET)

2019-08-21 Thread Yu-cheng Yu
On Wed, 2019-08-21 at 12:20 +0200, Borislav Petkov wrote: > On Tue, Aug 13, 2019 at 01:52:00PM -0700, Yu-cheng Yu wrote: > > Add CPU feature flags for Control-flow Enforcement Technology (CET). > > > > [...] > > diff --git a/arch/x86/kernel/cpu/cpuid-deps.c b/arch/x86/kernel/cpu/cpuid- > > deps.c

Re: [PATCH v7 3/7] of/platform: Add functional dependency link from DT bindings

2019-08-21 Thread Frank Rowand
On 8/20/19 3:09 PM, Saravana Kannan wrote: > On Mon, Aug 19, 2019 at 9:26 PM Frank Rowand wrote: >> < snip - the stuff I snipped deserves reply, but I want to focus on just one topic for this reply > >> You have a real bug. I have told you how to fix the real bug. And you >> have ignored my

[PATCH v9 3/3] arm64: Relax Documentation/arm64/tagged-pointers.rst

2019-08-21 Thread Catalin Marinas
From: Vincenzo Frascino On AArch64 the TCR_EL1.TBI0 bit is set by default, allowing userspace (EL0) to perform memory accesses through 64-bit pointers with a non-zero top byte. However, such pointers were not allowed at the user-kernel syscall ABI boundary. With the Tagged Address ABI patchset,

[PATCH v9 2/3] arm64: Define Documentation/arm64/tagged-address-abi.rst

2019-08-21 Thread Catalin Marinas
From: Vincenzo Frascino On AArch64 the TCR_EL1.TBI0 bit is set by default, allowing userspace (EL0) to perform memory accesses through 64-bit pointers with a non-zero top byte. Introduce the document describing the relaxation of the syscall ABI that allows userspace to pass certain tagged pointer

[PATCH v9 1/3] mm: untag user pointers in mmap/munmap/mremap/brk

2019-08-21 Thread Catalin Marinas
There isn't a good reason to differentiate between the user address space layout modification syscalls and the other memory permission/attributes ones (e.g. mprotect, madvise) w.r.t. the tagged address ABI. Untag the user addresses on entry to these functions. Acked-by: Will Deacon Acked-by: Andr

[PATCH v9 0/3] arm64 tagged address ABI

2019-08-21 Thread Catalin Marinas
Hi, This series is an update to the arm64 tagged address ABI documentation patches v8, posted here: http://lkml.kernel.org/r/20190815154403.16473-1-catalin.mari...@arm.com >From v8, I dropped patches 2 and 3 as they've been queued by Will via the arm64 tree. Reposting patch 1 (unmodified) as it

Re: [PATCH v3 2/2] drivers/perf: Add CCPI2 PMU support in ThunderX2 UNCORE driver.

2019-08-21 Thread Will Deacon
On Tue, Aug 13, 2019 at 12:03:45PM +0100, Mark Rutland wrote: > On Tue, Aug 13, 2019 at 04:25:15PM +0530, Ganapatrao Kulkarni wrote: > > On Mon, Aug 12, 2019 at 5:31 PM Mark Rutland wrote: > > > > > > On Tue, Jul 23, 2019 at 09:16:28AM +, Ganapatrao Kulkarni wrote: > > > > CCPI2 is a low-laten

Re: [PATCH v9 2/3] arm64: Define Documentation/arm64/tagged-address-abi.rst

2019-08-21 Thread Andrey Konovalov
On Wed, Aug 21, 2019 at 6:47 PM Catalin Marinas wrote: > > From: Vincenzo Frascino > > On AArch64 the TCR_EL1.TBI0 bit is set by default, allowing userspace > (EL0) to perform memory accesses through 64-bit pointers with a non-zero > top byte. Introduce the document describing the relaxation of t

Re: [PATCH v9 3/3] arm64: Relax Documentation/arm64/tagged-pointers.rst

2019-08-21 Thread Will Deacon
On Wed, Aug 21, 2019 at 05:47:30PM +0100, Catalin Marinas wrote: > From: Vincenzo Frascino > > On AArch64 the TCR_EL1.TBI0 bit is set by default, allowing userspace > (EL0) to perform memory accesses through 64-bit pointers with a non-zero > top byte. However, such pointers were not allowed at th

Re: [PATCH v9 2/3] arm64: Define Documentation/arm64/tagged-address-abi.rst

2019-08-21 Thread Will Deacon
On Wed, Aug 21, 2019 at 05:47:29PM +0100, Catalin Marinas wrote: > From: Vincenzo Frascino > > On AArch64 the TCR_EL1.TBI0 bit is set by default, allowing userspace > (EL0) to perform memory accesses through 64-bit pointers with a non-zero > top byte. Introduce the document describing the relaxat

Re: [PATCH v9 3/3] arm64: Relax Documentation/arm64/tagged-pointers.rst

2019-08-21 Thread Dave Martin
On Wed, Aug 21, 2019 at 06:33:53PM +0100, Will Deacon wrote: > On Wed, Aug 21, 2019 at 05:47:30PM +0100, Catalin Marinas wrote: > > From: Vincenzo Frascino > > > > On AArch64 the TCR_EL1.TBI0 bit is set by default, allowing userspace > > (EL0) to perform memory accesses through 64-bit pointers wi

Re: [PATCH v3] arm64: implement KPROBES_ON_FTRACE

2019-08-21 Thread Naveen N. Rao
Jisheng Zhang wrote: KPROBES_ON_FTRACE avoids much of the overhead with regular kprobes as it eliminates the need for a trap, as well as the need to emulate or single-step instructions. Tested on berlin arm64 platform. ~ # mount -t debugfs debugfs /sys/kernel/debug/ ~ # cd /sys/kernel/debug/ /s

Re: [PATCH v5 10/17] net: sgi: ioc3-eth: rework skb rx handling

2019-08-21 Thread Jakub Kicinski
On Wed, 21 Aug 2019 16:28:47 +0200, Thomas Bogendoerfer wrote: > > This looks like a DMA engine alignment requirement, more than an > > optimization. > > that true, there are two constraints for the rx buffers, start must be aligned > to 128 bytes and a buffer must not cross a 16kbyte boundary.

Re: [PATCH v2 4/6] dt-bindings: serial: Document Freescale LINFlex UART

2019-08-21 Thread Rob Herring
On Fri, Aug 09, 2019 at 11:29:14AM +, Stefan-gabriel Mirea wrote: > From: Stoica Cosmin-Stefan > > Add documentation for the serial communication interface module (LINFlex), > found in two instances on S32V234. > > Signed-off-by: Stoica Cosmin-Stefan > Signed-off-by: Larisa Grigore > Signe

[PATCH v4] arm64: implement KPROBES_ON_FTRACE

2019-08-21 Thread Jisheng Zhang
KPROBES_ON_FTRACE avoids much of the overhead with regular kprobes as it eliminates the need for a trap, as well as the need to emulate or single-step instructions. Tested on berlin arm64 platform. ~ # mount -t debugfs debugfs /sys/kernel/debug/ ~ # cd /sys/kernel/debug/ /sys/kernel/debug # echo

Re: [PATCH v3 2/2] drivers/perf: Add CCPI2 PMU support in ThunderX2 UNCORE driver.

2019-08-21 Thread Ganapatrao Kulkarni
On Wed, Aug 21, 2019 at 10:23 PM Will Deacon wrote: > > On Tue, Aug 13, 2019 at 12:03:45PM +0100, Mark Rutland wrote: > > On Tue, Aug 13, 2019 at 04:25:15PM +0530, Ganapatrao Kulkarni wrote: > > > On Mon, Aug 12, 2019 at 5:31 PM Mark Rutland wrote: > > > > > > > > On Tue, Jul 23, 2019 at 09:16:28

Re: [PATCH v4] arm64: implement KPROBES_ON_FTRACE

2019-08-21 Thread Naveen N. Rao
Jisheng Zhang wrote: KPROBES_ON_FTRACE avoids much of the overhead with regular kprobes as it eliminates the need for a trap, as well as the need to emulate or single-step instructions. Tested on berlin arm64 platform. ~ # mount -t debugfs debugfs /sys/kernel/debug/ ~ # cd /sys/kernel/debug/ /s