Re: [PATCH v3] arm64: v8.4: Support for new floating point multiplication instructions

2018-01-04 Thread Greg KH
On Fri, Jan 05, 2018 at 09:22:54AM +0800, gengdongjiu wrote: > Hi will/catalin > > On 2017/12/13 18:09, Suzuki K Poulose wrote: > > On 13/12/17 10:13, Dongjiu Geng wrote: > >> ARM v8.4 extensions add new neon instructions for performing a > >> multiplication of each FP16 element of one vector with

Re: [PATCH 4.4 00/37] 4.4.110-stable review

2018-01-04 Thread Greg Kroah-Hartman
On Thu, Jan 04, 2018 at 03:00:29PM -0700, Shuah Khan wrote: > On 01/03/2018 01:11 PM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.4.110 release. > > There are 37 patches in this series, all will be posted as a response > > to this one. If anyone has any iss

Re: [PATCH 4.14 00/14] 4.14.12-stable review

2018-01-04 Thread Greg Kroah-Hartman
On Thu, Jan 04, 2018 at 04:12:31PM -0800, Kevin Hilman wrote: > kernelci.org bot writes: > > > stable-rc/linux-4.14.y boot: 118 boots: 4 failed, 113 passed with 1 offline > > (v4.14.11-15-g732141e47ee6) > > > > Full Boot Summary: > > https://kernelci.org/boot/all/job/stable-rc/branch/linux-4.14

Re: [PATCH] tty: fix data race in n_tty_receive_buf_common

2018-01-04 Thread Kohli, Gaurav
Hi Alan, Can you make that code available otherwise it's impossible to see what the problem might be.   https://source.codeaurora.org/quic/la/kernel/msm-4.9/tree/drivers/tty/serial?h=msm-4.9  As discussed , there not seems a problem as we are getting print request even when port seems to c

Crypto Fixes for 4.15

2018-01-04 Thread Herbert Xu
Hi Linus: This push fixes the following issues: - Racy use of ctx->rcvused in af_alg. - algif_aead crash in chacha20poly1305. - Freeing bogus pointer in pcrypt. - Build error on MIPS in mpi. - Memory leak in inside-secure. - Memory overwrite in inside-secure. - NULL pointer dereference in inside

Re: [GIT PULL 2/3] SOC: Keystone SOC update for 4.16

2018-01-04 Thread Olof Johansson
On Wed, Dec 27, 2017 at 06:07:51PM -0800, Santosh Shilimkar wrote: > The following changes since commit 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323: > > Linux 4.15-rc1 (2017-11-26 16:01:47 -0800) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/ssant

Re: [GIT PULL] arm64: dts: uniphier: UniPhier DT updates (64bit) for v4.16

2018-01-04 Thread Olof Johansson
On Fri, Dec 29, 2017 at 10:35:38PM +0900, Masahiro Yamada wrote: > Hi Arnd, Olof, > > Here are UniPhier DT (64bit) updates for the v4.16 merge window. > Please pull! > > > The following changes since commit 50c4c4e268a2d7a3e58ebb698ac74da0de40ae36: > > Linux 4.15-rc3 (2017-12-10 17:56:26 -080

Re: [GIT PULL] ARM: at91: drivers for 4.16

2018-01-04 Thread Olof Johansson
On Sun, Dec 31, 2017 at 04:34:42PM +0100, Alexandre Belloni wrote: > Arnd, Olof, > > A single harmless change for this pull request. I hope you'll enjoy this > New Year's Eve. > > The following changes since commit 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323: > > Linux 4.15-rc1 (2017-11-26 16:01:

Re: [GIT PULL] ARM: dts: uniphier: UniPhier DT updates for v4.16

2018-01-04 Thread Olof Johansson
Hi! On Fri, Dec 29, 2017 at 10:32:24PM +0900, Masahiro Yamada wrote: > Hi Arnd, Olof, > > Here are UniPhier DT (32bit) updates for the v4.16 merge window. > Please pull! > > > The following changes since commit 50c4c4e268a2d7a3e58ebb698ac74da0de40ae36: > > Linux 4.15-rc3 (2017-12-10 17:56:26

Re: [GIT PULL 3/3] ARM: Keystone config update for 4.16

2018-01-04 Thread Olof Johansson
On Wed, Dec 27, 2017 at 06:07:52PM -0800, Santosh Shilimkar wrote: > Also had patch to sync up multi-v7 config but because of conflicts > in next, have to drop it. Will send that post merge window separately > > The following changes since commit 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323: > > Li

Re: [GIT PULL] ARM: at91: DT for 4.16

2018-01-04 Thread Olof Johansson
On Sun, Dec 31, 2017 at 04:11:27PM +0100, Alexandre Belloni wrote: > Arnd, Olof, > > This is the at91 DT pull request. The bulk of it is the switch to the > new TCB bindings that were acked a long time ago. These changes are > compatible with the current driver and taking them now will allow for a

Re: [GIT PULL 1/3] ARM: Keystone DTS for 4.16

2018-01-04 Thread Olof Johansson
On Wed, Dec 27, 2017 at 06:07:50PM -0800, Santosh Shilimkar wrote: > The following changes since commit 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323: > > Linux 4.15-rc1 (2017-11-26 16:01:47 -0800) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/ssant

[PATCH V3] nvme-pci: fix NULL pointer reference in nvme_alloc_ns

2018-01-04 Thread Jianchao Wang
When the io queues setup or tagset allocation failed, ctrl.tagset is NULL. But the scan work will still be queued and executed, then panic comes up due to NULL pointer reference of ctrl.tagset. To fix this, add a new ctrl state NVME_CTRL_ADMIN_ONLY to inidcate only admin queue is live. When non io

Re: [PATCH net-next] net: tracepoint: adding new tracepoint arguments in inet_sock_set_state

2018-01-04 Thread Song Liu
> On Jan 4, 2018, at 10:42 PM, Yafang Shao wrote: > > sk->sk_protocol and sk->sk_family are exposed as tracepoint arguments. > Then we can conveniently use these two arguments to do the filter. > > Suggested-by: Brendan Gregg > Signed-off-by: Yafang Shao > --- > include/trace/events/sock.h |

[PATCH -next] um: vector: fix missing unlock on error in vector_net_open()

2018-01-04 Thread Wei Yongjun
Add the missing unlock before return from function vector_net_open() in the error handling case. Fixes: ad1f62ab2bd4 ("High Performance UML Vector Network Driver") Signed-off-by: Wei Yongjun --- arch/um/drivers/vector_kern.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/

Re: Avoid speculative indirect calls in kernel

2018-01-04 Thread Willy Tarreau
On Thu, Jan 04, 2018 at 10:57:19PM -0800, Dave Hansen wrote: > On 01/04/2018 10:49 PM, Willy Tarreau wrote: > > On Fri, Jan 05, 2018 at 01:54:13AM +0100, Thomas Gleixner wrote: > >> On Thu, 4 Jan 2018, Jon Masters wrote: > >>> P.S. I've an internal document where I've been tracking "nice to haves"

Re: [PATCH] of: Use SPDX license tag for DT files

2018-01-04 Thread Philippe Ombredanne
On Fri, Jan 5, 2018 at 12:05 AM, Rob Herring wrote: > Convert remaining DT files to use SPDX-License-Identifier tags. > > Cc: Benjamin Herrenschmidt > Cc: Guennadi Liakhovetski > Cc: Paul Mackerras > Cc: Pantelis Antoniou > Signed-off-by: Rob Herring > --- > drivers/of/Kconfig

Re: [f2fs-dev] [PATCH 1/2] f2fs: show precise # of blocks that user/root can use

2018-01-04 Thread Yunlong Song
NACK man statfs shows: struct statfs { ... fsblkcnt_t f_bfree; /* free blocks in fs */ fsblkcnt_t f_bavail; /* free blocks available to unprivileged user */ ... } f_bfree is free blocks in fs, so buf->bfree should be buf->f_bfree = use

Re: [PATCH] [v3] x86/doc: add PTI description

2018-01-04 Thread Randy Dunlap
On 01/04/18 21:38, Dave Hansen wrote: > +Page Table Management > += > + > +When PTI is enabled, the kernel manages two sets of page tables. > +The first set is very similar to the single set which is present in > +kernels without PTI. This includes a complete mapping of usersp

Re: Avoid speculative indirect calls in kernel

2018-01-04 Thread Dave Hansen
On 01/04/2018 10:49 PM, Willy Tarreau wrote: > On Fri, Jan 05, 2018 at 01:54:13AM +0100, Thomas Gleixner wrote: >> On Thu, 4 Jan 2018, Jon Masters wrote: >>> P.S. I've an internal document where I've been tracking "nice to haves" >>> for later, and one of them is whether it makes sense to tag binar

Re: Avoid speculative indirect calls in kernel

2018-01-04 Thread Willy Tarreau
On Fri, Jan 05, 2018 at 01:54:13AM +0100, Thomas Gleixner wrote: > On Thu, 4 Jan 2018, Jon Masters wrote: > > P.S. I've an internal document where I've been tracking "nice to haves" > > for later, and one of them is whether it makes sense to tag binaries as > > "trusted" (e.g. extended attribute, l

Re: [PATCH 04/12] pci-p2p: Clear ACS P2P flags for all client devices

2018-01-04 Thread Jerome Glisse
On Thu, Jan 04, 2018 at 08:33:00PM -0700, Alex Williamson wrote: > On Thu, 4 Jan 2018 17:00:47 -0700 > Logan Gunthorpe wrote: > > > On 04/01/18 03:35 PM, Alex Williamson wrote: > > > Yep, flipping these ACS bits invalidates any IOMMU groups that depend > > > on the isolation of that downstream po

Re: [PATCH 1/2] Move kfree_call_rcu() to slab_common.c

2018-01-04 Thread Joe Perches
On Thu, 2018-01-04 at 16:07 -0800, Matthew Wilcox wrote: > On Thu, Jan 04, 2018 at 03:47:32PM -0800, Paul E. McKenney wrote: > > I was under the impression that typeof did not actually evaluate its > > argument, but rather only returned its type. And there are a few macros > > with this pattern in

Re: mmotm 2018-01-04-16-19 uploaded

2018-01-04 Thread Anshuman Khandual
On 01/05/2018 05:50 AM, a...@linux-foundation.org wrote: > The mm-of-the-moment snapshot 2018-01-04-16-19 has been uploaded to > >http://www.ozlabs.org/~akpm/mmotm/ > > mmotm-readme.txt says > > README for mm-of-the-moment: > > http://www.ozlabs.org/~akpm/mmotm/ > > This is a snapshot of m

[PATCH net-next] net: tracepoint: adding new tracepoint arguments in inet_sock_set_state

2018-01-04 Thread Yafang Shao
sk->sk_protocol and sk->sk_family are exposed as tracepoint arguments. Then we can conveniently use these two arguments to do the filter. Suggested-by: Brendan Gregg Signed-off-by: Yafang Shao --- include/trace/events/sock.h | 24 ++-- net/ipv4/af_inet.c | 6 --

Re: [Ocfs2-devel] [PATCH v2] ocfs2: try a blocking lock before return AOP_TRUNCATED_PAGE

2018-01-04 Thread Gang He
Hi Andrew, Happy new year. Could you help to pick up this patch, which is used to fix a old patch 1cce4df04f37. If we have not this patch, some multiple node test cases will trigger softlockup problems, also make HA communication daemon (e.g. corosync) timeout and the node will has to be fenced

Re: [PATCH 05/23] x86, kaiser: unmap kernel from userspace page tables (core patch)

2018-01-04 Thread Dave Hansen
On 01/04/2018 10:16 PM, Yisheng Xie wrote: > BTW, we have just reported a bug caused by kaiser[1], which looks like > caused by SMEP. Could you please help to have a look? > > [1] https://lkml.org/lkml/2018/1/5/3 Please report that to your kernel vendor. Your EFI page tables have the NX bit set

[PATCH] f2fs: implement cgroup writeback supprot

2018-01-04 Thread Yufen Yu
Cgroup writeback requires explicit support from the filesystem. f2fs's data and node writeback IOs go through __write_data_page, which sets fio for submiting IOs. So, we add io_wbc for fio, associate bios with blkcg by invoking wbc_init_bio() and account IOs issuing by wbc_account_io(). In addtion,

Re: [linux-sunxi] Re: [PATCH 06/11] dt-bindings: display: sun4i-drm: Add A83T HDMI pipeline

2018-01-04 Thread Jernej Škrabec
Hi, Dne petek, 05. januar 2018 ob 03:49:09 CET je Icenowy Zheng napisal(a): > 于 2018年1月5日 GMT+08:00 上午2:52:10, Maxime Ripard 写到: > >On Wed, Jan 03, 2018 at 10:32:26PM +0100, Jernej Škrabec wrote: > >> Hi Rob, > >> > >> Dne sreda, 03. januar 2018 ob 21:21:54 CET je Rob Herring napisal(a): > >> >

[PATCH] f2fs: add resgid and resuid to reserve root blocks

2018-01-04 Thread Jaegeuk Kim
This patch adds mount options to reserve some blocks via resgid=%u,resuid=%u. It only activates with reserve_root=%u. Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h | 26 -- fs/f2fs/super.c | 46 -- 2 files changed, 68 insertion

Re: [PATCH 05/23] x86, kaiser: unmap kernel from userspace page tables (core patch)

2018-01-04 Thread Yisheng Xie
Hi Dave, On 2018/1/5 13:18, Dave Hansen wrote: > On 01/04/2018 08:16 PM, Yisheng Xie wrote: >>> === Page Table Poisoning === >>> >>> KAISER has two copies of the page tables: one for the kernel and >>> one for when running in userspace. >> >> So, we have 2 page table, thinking about this case: >

[PATCH v2] mm/fadvise: discard partial page if endbyte is also EOF

2018-01-04 Thread 夷则(Caspar)
From: shidao.ytt During our recent testing with fadvise(FADV_DONTNEED), we find that if given offset/length is not page-aligned, the last page will not be discarded. The tool we use is vmtouch (https://hoytech.com/vmtouch/), we map a 10KB-sized file into memory and then try to run this tool to ev

Re: [PATCH 0/7] IBRS patch series

2018-01-04 Thread Florian Weimer
* Linus Torvalds: > On Thu, Jan 4, 2018 at 9:56 AM, Tim Chen wrote: >> >> Speculation on Skylake and later requires these patches ("dynamic IBRS") >> be used instead of retpoline[1]. > > Can somebody explain this part? > > I was assuming that retpoline would work around this issue on all uarchs.

Re: [PATCH] driver: input :touchscreen :Modify Raydium Firmware update input file

2018-01-04 Thread Dmitry Torokhov
Hi Jeffrey, On Thu, Dec 21, 2017 at 09:51:22PM +0800, jeffrey.lin wrote: > Modify update firmware to accept alternative file name > > Signed-off-by: jeffrey.lin > --- > drivers/input/touchscreen/raydium_i2c_ts.c | 11 --- > 1 file changed, 8 insertions(+), 3 deletions(-) > > diff --git

linux-next: Tree for Jan 5

2018-01-04 Thread Stephen Rothwell
Hi all, Changes since 20180104: The drm tree gained a conflict against the drm-intel-fixes tree. The akpm-current tree gained a build failure for which I applied a patch. Non-merge commits (relative to Linus' tree): 6981 7369 files changed, 288333 insertions(+), 202735 dele

[PATCH] [v3] x86/doc: add PTI description

2018-01-04 Thread Dave Hansen
Changes from v2: * Update some wording * Minor typo and grammar fixes * Further clarify what INVPCID is. Changes from v1: * update kernel-parameters.txt to clarify that the pti= option is not just for disabling. Also describe what 'pti=auto' does and why * Add a note about the presenc

[RFC] selftests/x86: Add test_vsyscall

2018-01-04 Thread Andy Lutomirski
This tests that the vsyscall entries do what they're expected to do. It also confirms that attempts to read the vsyscall page behave as expected. If changes are made to the vsyscall code or its memory map handling, running this test in all three of vsyscall=none, vsyscall=emulate, and vsyscall=nat

Re: [PATCH] nvme-pci: fix the timeout case when reset is ongoing

2018-01-04 Thread jianchao.wang
Hi Christoph Many thanks for your kindly response. On 01/04/2018 06:35 PM, Christoph Hellwig wrote: > On Wed, Jan 03, 2018 at 06:31:44AM +0800, Jianchao Wang wrote: >> NVME_CTRL_RESETTING used to indicate the range of nvme initializing >> strictly in fd634f41(nvme: merge probe_work and reset_work

Re: [PATCH 4.4 00/37] 4.4.110-stable review

2018-01-04 Thread Andy Lutomirski
On Thu, Jan 4, 2018 at 12:43 PM, Andy Lutomirski wrote: > >> On Jan 4, 2018, at 12:29 PM, Linus Torvalds >> wrote: >> >>> On Thu, Jan 4, 2018 at 12:16 PM, Thomas Voegtle wrote: >>> >>> Attached a screenshot. >>> Is that useful? Are there some debug options I can add? >> >> Not much of an oops,

Re: [PATCH] [v2] x86/doc: add PTI description

2018-01-04 Thread Dave Hansen
On 01/04/2018 05:43 PM, Hector Martin 'marcan' wrote: > On 2018-01-05 09:24, Dave Hansen wrote: >> +Not specifying this option nothing is equivalent to >> +pti=auto. > > -nothing Sure, will fix. >> +Page Table Isolation (pti, previously known as KAISER[1])

Re: [PATCH V7 12/12] arm64: dts: add clocks for SC9860

2018-01-04 Thread Chunyan Zhang
On 5 January 2018 at 07:01, Arnd Bergmann wrote: > On Thu, Jan 4, 2018 at 10:34 PM, Arnd Bergmann wrote: >> On Thu, Dec 7, 2017 at 1:57 PM, Chunyan Zhang >> wrote: >>> Some clocks on SC9860 are in the same address area with syscon devices, >>> those are what have a property of 'sprd,syscon' whic

Re: [PATCH 05/23] x86, kaiser: unmap kernel from userspace page tables (core patch)

2018-01-04 Thread Dave Hansen
On 01/04/2018 08:16 PM, Yisheng Xie wrote: >> === Page Table Poisoning === >> >> KAISER has two copies of the page tables: one for the kernel and >> one for when running in userspace. > > So, we have 2 page table, thinking about this case: > If _ONE_ process includes _TWO_ threads, one run in us

[RFC] boot failed when enable KAISER/KPTI

2018-01-04 Thread Xishi Qiu
I run the latest RHEL 7.2 with the KAISER/KPTI patch, and boot failed. ... [0.00] PM: Registered nosave memory: [mem 0x810-0x8ff] [0.00] PM: Registered nosave memory: [mem 0x910-0xfff] [0.00] PM: Registered nosave memory: [mem 0x1010-

Re: [PATCH 3/7] x86/enter: Use IBRS on syscall and interrupts

2018-01-04 Thread Dave Hansen
On 01/04/2018 08:51 PM, Andy Lutomirski wrote: > Do we need an arch_prctl() to enable IBRS for user mode? Eventually, once the dust settles. I think there's a spectrum of paranoia here, that is roughly (with increasing paranoia): 1. do nothing 2. do retpoline 3. do IBRS in kernel 4. do IBRS alwa

Re: [PATCH 2/7] x86/enter: MACROS to set/clear IBRS

2018-01-04 Thread Dave Hansen
On 01/04/2018 08:54 PM, Andy Lutomirski wrote: > On Thu, Jan 4, 2018 at 2:23 PM, Dave Hansen wrote: >> On 01/04/2018 02:21 PM, Tim Chen wrote: Does this really have to live outside of arch/x86/entry/ ? >>> There are some inline C routines later in this file >>> that will be needed by oth

linux-next: build failure after merge of the akpm-current tree

2018-01-04 Thread Stephen Rothwell
Hi Andrew, After merging the akpm-current tree, today's linux-next build (x86_64 allmodconfig) failed like this: mm/migrate.c: In function 'migrate_misplaced_page': mm/migrate.c:1933:46: error: passing argument 2 of 'migrate_pages' from incompatible pointer type [-Werror=incompatible-pointer-typ

Re: KASAN: slab-out-of-bounds Read in cap_inode_getsecurity

2018-01-04 Thread Eric Biggers
On Thu, Jan 04, 2018 at 08:58:02AM -0800, syzbot wrote: > Hello, > > syzkaller hit the following crash on > 71ee203389f7cb1c1927eab22b95baa01405791c > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console ou

Re: [PATCH 2/7] x86/enter: MACROS to set/clear IBRS

2018-01-04 Thread Andy Lutomirski
On Thu, Jan 4, 2018 at 2:23 PM, Dave Hansen wrote: > On 01/04/2018 02:21 PM, Tim Chen wrote: >>> Does this really have to live outside of arch/x86/entry/ ? >>> >> There are some inline C routines later in this file >> that will be needed by other functions. Want to consolidate >> them in the same

Re: [PATCH 3/7] x86/enter: Use IBRS on syscall and interrupts

2018-01-04 Thread Andy Lutomirski
On Thu, Jan 4, 2018 at 4:08 PM, Dave Hansen wrote: > On 01/04/2018 02:33 PM, Peter Zijlstra wrote: >> On Thu, Jan 04, 2018 at 09:56:44AM -0800, Tim Chen wrote: >>> Set IBRS upon kernel entrance via syscall and interrupts. Clear it >>> upon exit. >> >> So not only did we add a CR3 write, we're now

Re: [PATCH 06/12] IB/core: Add optional PCI P2P flag to rdma_rw_ctx_[init|destroy]()

2018-01-04 Thread Jason Gunthorpe
On Thu, Jan 04, 2018 at 04:44:00PM -0700, Logan Gunthorpe wrote: > On 04/01/18 03:13 PM, Jason Gunthorpe wrote: > >On Thu, Jan 04, 2018 at 12:52:24PM -0700, Logan Gunthorpe wrote: > >>We tried things like this in an earlier iteration[1] which assumed the SG > >>was homogenous (all P2P or all regula

Re: [PATCH 2/2 v3] f2fs: add reserved blocks for root user

2018-01-04 Thread Jaegeuk Kim
This patch allows root to reserve some blocks via mount option. "-o reserve_root=N" means N x 4KB-sized blocks for root only. Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- Change log from v2: - fix overflow in statfs fs/f2fs/f2fs.h | 20 fs/f2fs/super.c | 37

[RESEND PATCH 3/3] x86/apic: Clean up the names of legacy irq mode setting related functions

2018-01-04 Thread Baoquan He
X86 MP spec defines 3 different interrupt modes: 1) PIC Mode—bypasses all APIC components and forces the system to operate in single-processor mode. 2) Virtual Wire Mode—uses an APIC as a virtual wire, but otherwise operates the same as PIC Mode. 3) Symmetric I/O Mode—enables the sy

Re: [PATCH 4.4 00/37] 4.4.110-stable review

2018-01-04 Thread Mike Galbraith
On Thu, 2018-01-04 at 15:45 -0800, Guenter Roeck wrote: > > The crash part of this problem may be solved with the following patch > (thanks to Hugh for the hint). There is still another problem, though - > with this patch applied, the qemu session aborts with "VCPU Shutdown > request", whatever th

[RESEND PATCH 2/3] x86/apic/kexec: Enable legacy irq mode before jump to kexec/kdump kernel

2018-01-04 Thread Baoquan He
In commit commit 522e66464467 ("x86/apic: Disable I/O APIC before shutdown of the local APIC"). lapic_shutdown() invocation is moved after disable_IO_APIC(). In fact in disable_IO_APIC(), it not only calls clear_IO_APIC() to disable IO-APIC, also sets sets LAPIC and IO-APIC to make system be PIC

[RESEND PATCH 1/3] x86/apic: Set up through LAPIC on boot CPU's LINT0 if ioapic is disabled

2018-01-04 Thread Baoquan He
Kdump kernel will become very slow if 'noapic' is specified in kernel command line. Normal kernel doesn't have this issue. This is because the legacy irq mode is disabled in crashed kernel before jump jump to kdump kernel since commit 522e664644 ("x86/apic: Disable I/O APIC before shutdown of the

Re: [PATCH v4 2/3] mailbox: Add support for Hi3660 mailbox

2018-01-04 Thread Jassi Brar
On Tue, Dec 19, 2017 at 4:45 PM, Kaihua Zhong wrote: . > diff --git a/drivers/mailbox/hi3660-mailbox.c > b/drivers/mailbox/hi3660-mailbox.c > new file mode 100644 > index 000..3ceca40 > --- /dev/null > +++ b/drivers/mailbox/hi3660-mailbox.c > @@ -0,0 +1,319 @@ > +// SPDX-License-Identifi

Re: [RFC PATCH 1/4] asm-generic/barrier: add generic nospec helpers

2018-01-04 Thread Dan Williams
On Thu, Jan 4, 2018 at 4:00 AM, Mark Rutland wrote: > On Wed, Jan 03, 2018 at 10:38:24PM +, Mark Rutland wrote: >> +#define nospec_array_load(arr, idx, sz) >> \ >> +({ \ >> + typeof(*(ar

[PATCH] irq_work: Improve the flag definitions

2018-01-04 Thread Frederic Weisbecker
From: Bartosz Golaszewski IRQ_WORK_FLAGS is defined simply to 3UL. This is confusing as it says nothing about its purpose. Define IRQ_WORK_FLAGS as a bitwise OR of IRQ_WORK_PENDING and IRQ_WORK_BUSY and change its name to IRQ_WORK_CLAIMED. While we're at it: use the BIT() macro for all flags. S

Re: [PATCH 05/23] x86, kaiser: unmap kernel from userspace page tables (core patch)

2018-01-04 Thread Yisheng Xie
Hi Dava, On 2017/11/23 8:34, Dave Hansen wrote: > > From: Dave Hansen > > These patches are based on work from a team at Graz University of > Technology: https://github.com/IAIK/KAISER . This work would not have > been possible without their work as a starting point. > > KAISER is a counterme

Re: Avoid speculative indirect calls in kernel

2018-01-04 Thread Jon Masters
On 01/04/2018 07:54 PM, Thomas Gleixner wrote: > On Thu, 4 Jan 2018, Jon Masters wrote: >> P.S. I've an internal document where I've been tracking "nice to haves" >> for later, and one of them is whether it makes sense to tag binaries as >> "trusted" (e.g. extended attribute, label, whatever). It w

Re: 4.15-rc6+ hang

2018-01-04 Thread Tom Hromatka
On 01/04/2018 07:22 PM, Linus Torvalds wrote: On Thu, Jan 4, 2018 at 5:36 PM, Tom Hromatka wrote: I am seeing a hang running kernel 4.15-rc6+ on a vanilla VirtualBox VM. (VirtualBox version 5.0.40) Any chance of bisecting this? I could imagine that all the stuff we now do for page table iso

[PATCH] arm: dts: mediatek: add audsys node for both MT2701 and MT7623

2018-01-04 Thread Ryder Lee
Add audsys support for both MT2701/MT7623. Then modify afe node to adapt it. Signed-off-by: Ryder Lee --- This patch is dependent on https://www.spinics.net/lists/arm-kernel/msg626503.html --- arch/arm/boot/dts/mt2701.dtsi | 188 - arch/arm/boot/dts/mt762

[PATCH net-next V2 0/2] tun: allow to attahc eBPF filter

2018-01-04 Thread Jason Wang
Hi all: This series tries to implement eBPF socket filter for tun. This could be used for implementing efficient virtio-net receive filter for vhost-net. Thanks Changes from V1: - trim more bytes if vlan tag is existed to make sure the packet length does not exceed what is allowed by the filte

[PATCH net-next V2 1/2] tuntap: rename struct tun_steering_prog to struct tun_prog

2018-01-04 Thread Jason Wang
To be reused by other eBPF program other than queue selection. Signed-off-by: Jason Wang --- drivers/net/tun.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c index e367d631..0853829 100644 --- a/drivers

[PATCH net-next V2 2/2] tun: allow to attach ebpf socket filter

2018-01-04 Thread Jason Wang
This patch allows userspace to attach eBPF filter to tun. This will allow to implement VM dataplane filtering in a more efficient way compared to cBPF filter by allowing either qemu or libvirt to attach eBPF filter to tun. Signed-off-by: Jason Wang --- drivers/net/tun.c | 39 ++

Re: [PATCH] doc: memory-barriers: reStructure Text

2018-01-04 Thread afzal mohammed
Hi, On Thu, Jan 04, 2018 at 11:27:55AM +0100, Markus Heiser wrote: > IMO symlinks are mostly ending in a mess, URLs are never stable. > There is a > > https://www.kernel.org/doc/html/latest/objects.inv > > to handle such requirements. Take a look at *intersphinx* : > > http://www.sphinx-doc

Re: [PATCH 1/3] mm, numa: rework do_pages_move

2018-01-04 Thread Anshuman Khandual
On 01/03/2018 01:55 PM, Michal Hocko wrote: > From: Michal Hocko > > do_pages_move is supposed to move user defined memory (an array of > addresses) to the user defined numa nodes (an array of nodes one for > each address). The user provided status array then contains resulting > numa node for ea

Re: [PATCH V2] nvme-pci: fix NULL pointer reference in nvme_alloc_ns

2018-01-04 Thread jianchao.wang
Hi Christoph Many thanks for your kindly response. On 01/04/2018 06:20 PM, Christoph Hellwig wrote: > This looks generally fine to me, ut a few nitpicks below: > >> - Based on Sagi's suggestion, add new state NVME_CTRL_ADMIN_LIVE. > > Maybe call this NVME_CTRL_ADMIN_ONLY ? Sound more in line

[RESEND PATCH 0/3] x86/apic/kexec: Enable legacy irq mode before jump to kexec/kdump kernel

2018-01-04 Thread Baoquan He
On kvm guest, the latest kernel will always print warning during kdump kernel boots as below. The reaons is the legacy irq mode is disabled before jump to kexec/kdump kernel. So in setup_local_APIC(), the do { xxx } while (queued && max_loops > 0) can't handle if pending irq exists in APIC IRR si

Re: [PATCH 05/12] arm64: dts: mt7622: add PMIC MT6380 related nodes

2018-01-04 Thread Sean Wang
On Thu, 2018-01-04 at 11:27 +0100, Philippe Ombredanne wrote: > Sean, > > On Thu, Jan 4, 2018 at 10:40 AM, wrote: > > From: Sean Wang > > > > Enable pwrap and MT6380 on mt7622-rfb1 board. Also add all mt6380 > > regulator nodes in an alone file to allow similar boards using MT6380 > > able to r

Re: [PATCH 04/12] pci-p2p: Clear ACS P2P flags for all client devices

2018-01-04 Thread Alex Williamson
On Thu, 4 Jan 2018 17:00:47 -0700 Logan Gunthorpe wrote: > On 04/01/18 03:35 PM, Alex Williamson wrote: > > Yep, flipping these ACS bits invalidates any IOMMU groups that depend > > on the isolation of that downstream port and I suspect also any peers > > within the same PCI slot of that port and

Re: [PATCH 1/3] x86/apic: Set up through LAPIC on boot CPU's LINT0 if ioapic is disabled to kexec/kdump kernel

2018-01-04 Thread Baoquan He
Sorry, my git send-email config seems incorrect. The patch subject is not right. So NACK this series, will repost v2. On 01/05/18 at 11:22am, Baoquan He wrote: > Kdump kernel will become very slow if 'noapic' is specified in kernel > command line. Normal kernel doesn't have this issue. > > This

[PATCH 3/3] x86/apic: Clean up the names of legacy irq mode setting related functions

2018-01-04 Thread Baoquan He
X86 MP spec defines 3 different interrupt modes: 1) PIC Mode—bypasses all APIC components and forces the system to operate in single-processor mode. 2) Virtual Wire Mode—uses an APIC as a virtual wire, but otherwise operates the same as PIC Mode. 3) Symmetric I/O Mode—enables the sy

[PATCH 2/3] x86/apic/kexec: Enable legacy irq mode before jump to kexec/kdump kernel

2018-01-04 Thread Baoquan He
In commit commit 522e66464467 ("x86/apic: Disable I/O APIC before shutdown of the local APIC"). lapic_shutdown() invocation is moved after disable_IO_APIC(). In fact in disable_IO_APIC(), it not only calls clear_IO_APIC() to disable IO-APIC, also sets LAPIC and IO-APIC to make system be PIC or V

[PATCH 1/3] x86/apic: Set up through LAPIC on boot CPU's LINT0 if ioapic is disabled to kexec/kdump kernel

2018-01-04 Thread Baoquan He
Kdump kernel will become very slow if 'noapic' is specified in kernel command line. Normal kernel doesn't have this issue. This is because the legacy irq mode is disabled in crashed kernel before jump jump to kdump kernel since commit 522e66464467 ("x86/apic: Disable I/O APIC before shutdown of th

[PATCH 0/2] Consolidate BUILD_BUG macros

2018-01-04 Thread Masahiro Yamada
Masahiro Yamada (2): genl_magic: remove own BUILD_BUG_ON*() defines build_bug.h: remove BUILD_BUG_ON_NULL() include/linux/build_bug.h | 2 -- include/linux/genl_magic_func.h | 12 +--- net/ipv6/mcast.c| 8 3 files changed, 5 insertions(+), 17 deletions

[PATCH 2/2] build_bug.h: remove BUILD_BUG_ON_NULL()

2018-01-04 Thread Masahiro Yamada
This macro is only used by net/ipv6/mcast.c, but there is no reason why it must be BUILD_BUG_ON_NULL(). Replace it with BUILD_BUG_ON_ZERO(), and remove BUILD_BUG_ON_NULL() definition from . Signed-off-by: Masahiro Yamada --- include/linux/build_bug.h | 2 -- net/ipv6/mcast.c | 8 -

[PATCH 1/2] genl_magic: remove own BUILD_BUG_ON*() defines

2018-01-04 Thread Masahiro Yamada
Do not duplicate BUILD_BUG_ON*. Use ones from . Signed-off-by: Masahiro Yamada --- include/linux/genl_magic_func.h | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/include/linux/genl_magic_func.h b/include/linux/genl_magic_func.h index 6049676..83f81ac 100644 --

Re: [PATCH v4 6/7] ARM: davinci: convert to common clock framework

2018-01-04 Thread David Lechner
On 01/04/2018 11:50 AM, David Lechner wrote: On 1/4/18 6:39 AM, Sekhar Nori wrote: On Monday 01 January 2018 05:09 AM, David Lechner wrote: This converts all of arch/arm/mach-davinci to the common clock framework. The clock drivers from clock.c and psc.c have been moved to drivers/clk, so the

Re: [PATCH v5 1/4] kaslr: add immovable_mem=nn[KMG]@ss[KMG] to specify extracting memory

2018-01-04 Thread Chao Fan
On Thu, Jan 04, 2018 at 06:30:57PM +0800, Baoquan He wrote: >On 01/04/18 at 04:02pm, Chao Fan wrote: >> In current code, kaslr may choose the memory region in movable >> nodes to extract kernel, which will make the nodes can't be hot-removed. >> To solve it, we can specify the memory region in immo

[PATCH 0/3] x86/apic/kexec: Enable legacy irq mode before jump to kexec/kdump kernel

2018-01-04 Thread Baoquan He
On kvm guest, the latest kernel will always print warning during kdump kernel boots as below. The reaons is the legacy irq mode is disabled before jump to kexec/kdump kernel. So the do { xxx } while (queued && max_loops > 0) can't handle if pending irq exists in APIC IRR since LAPIC is disabled.

Re: [RFC][PATCHv6 00/12] printk: introduce printing kernel thread

2018-01-04 Thread Sergey Senozhatsky
On (12/04/17 22:48), Sergey Senozhatsky wrote: > A new version, yet another rework. Lots of changes, e.g. hand off > control based on Steven's patch. Another change is that this time around > we finally have a kernel module to test printk offloading (YAYY!). The > module tests a bunch use cas

Re: [PATCH 06/11] dt-bindings: display: sun4i-drm: Add A83T HDMI pipeline

2018-01-04 Thread Icenowy Zheng
于 2018年1月4日 GMT+08:00 上午5:32:26, "Jernej Škrabec" 写到: >Hi Rob, > >Dne sreda, 03. januar 2018 ob 21:21:54 CET je Rob Herring napisal(a): >> On Sat, Dec 30, 2017 at 10:01:58PM +0100, Jernej Skrabec wrote: >> > This commit adds all necessary compatibles and descriptions needed >to >> > implement A8

Re: [PATCH 06/11] dt-bindings: display: sun4i-drm: Add A83T HDMI pipeline

2018-01-04 Thread Icenowy Zheng
于 2018年1月5日 GMT+08:00 上午2:52:10, Maxime Ripard 写到: >On Wed, Jan 03, 2018 at 10:32:26PM +0100, Jernej Škrabec wrote: >> Hi Rob, >> >> Dne sreda, 03. januar 2018 ob 21:21:54 CET je Rob Herring napisal(a): >> > On Sat, Dec 30, 2017 at 10:01:58PM +0100, Jernej Skrabec wrote: >> > > This commit add

[PATCH] cris: Fix conflicting types for _etext, _edata, _end

2018-01-04 Thread Sergey Senozhatsky
Include asm/sections.h header which contains the correct types for _etext, _edata and _end - char arrays. Signed-off-by: Sergey Senozhatsky --- arch/cris/kernel/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/cris/kernel/setup.c b/arch/cris/kernel/setup.c index 5

Invest Loan

2018-01-04 Thread JB
Hello Sir, In need of loan to start business, finance your project or expand your business Write back if you are interested for further details. Regards Jack

Re: [PATCH] [v2] x86/doc: add PTI description

2018-01-04 Thread Randy Dunlap
On 01/04/2018 04:24 PM, Dave Hansen wrote: > Changes from v1: > * update kernel-parameters.txt to clarify that the pti= option >is not just for disabling. Also describe what 'pti=auto' does >and why > * Add a note about the presence of NX in the user portion of the >kernel page table

Re: 4.15-rc6+ hang

2018-01-04 Thread Linus Torvalds
On Thu, Jan 4, 2018 at 5:36 PM, Tom Hromatka wrote: > I am seeing a hang running kernel 4.15-rc6+ on a vanilla VirtualBox VM. > (VirtualBox version 5.0.40) Any chance of bisecting this? I could imagine that all the stuff we now do for page table isolation might confuse the VM. > When I boot thi

Re: r8169 take too long to complete driver initialization

2018-01-04 Thread Chris Chiu
On Wed, Dec 20, 2017 at 4:41 PM, Chris Chiu wrote: > Hi, > We've hit a suspend/resume issue on a Acer desktop caused by r8169 > driver. The dmseg > https://gist.github.com/mschiu77/b741849b5070281daaead8dfee312d1a > shows it's still in msleep() within a mutex lock. > After looking into the

Re: [PATCH 2/2] phy: rockchip-emmc: use regmap_read_poll_timeout to poll dllrdy

2018-01-04 Thread Brian Norris
Sorry for the spam...one more thought: On Thu, Jan 04, 2018 at 06:07:51PM -0800, Brian Norris wrote: > On Tue, Jan 02, 2018 at 10:22:00AM +0800, Shawn Lin wrote: > > Just use the API instead of open-coding it, no functional change > > intended. > > > > Signed-off-by: Shawn Lin > > --- > > > >

Re: [PATCH 1/2] Move kfree_call_rcu() to slab_common.c

2018-01-04 Thread Rao Shoaib
On 01/04/2018 04:07 PM, Matthew Wilcox wrote: On Thu, Jan 04, 2018 at 03:47:32PM -0800, Paul E. McKenney wrote: I was under the impression that typeof did not actually evaluate its argument, but rather only returned its type. And there are a few macros with this pattern in mainline. Or am I

Re: [PATCH 2/2] phy: rockchip-emmc: use regmap_read_poll_timeout to poll dllrdy

2018-01-04 Thread Brian Norris
On Thu, Jan 04, 2018 at 06:07:51PM -0800, Brian Norris wrote: > On Tue, Jan 02, 2018 at 10:22:00AM +0800, Shawn Lin wrote: > > Just use the API instead of open-coding it, no functional change > > intended. > > > > Signed-off-by: Shawn Lin > > --- Other than my nit comment, looks fine: Reviewed-

Re: [PATCH 2/2] phy: rockchip-emmc: use regmap_read_poll_timeout to poll dllrdy

2018-01-04 Thread Brian Norris
Hi, On Tue, Jan 02, 2018 at 10:22:00AM +0800, Shawn Lin wrote: > Just use the API instead of open-coding it, no functional change > intended. > > Signed-off-by: Shawn Lin > --- > > drivers/phy/rockchip/phy-rockchip-emmc.c | 21 +++-- > 1 file changed, 7 insertions(+), 14 deleti

[PATCH v4 07/13] x86/retpoline/checksum32: Convert assembler indirect jumps

2018-01-04 Thread David Woodhouse
Convert all indirect jumps in 32bit checksum assembler code to use non-speculative sequences when CONFIG_RETPOLINE is enabled. Signed-off-by: David Woodhouse --- arch/x86/lib/checksum_32.S | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/x86/lib/checksum_32.S b/arc

[PATCH v4 12/13] x86/retpoline: Add boot time option to disable retpoline

2018-01-04 Thread David Woodhouse
From: Andi Kleen Add a noretpoline option boot to disable retpoline and patch out the extra sequences. It cannot patch out the jumps to the thunk functions generated by the compiler, but they turn into a single indirect branch now. Signed-off-by: Andi Kleen Signed-off-by: David Woodhouse ---

[PATCH v4 03/13] x86/retpoline/entry: Convert entry assembler indirect jumps

2018-01-04 Thread David Woodhouse
Convert indirect jumps in core 32/64bit entry assembler code to use non-speculative sequences when CONFIG_RETPOLINE is enabled. KPTI complicates this a little; the one in entry_SYSCALL_64_trampoline can't just jump to the thunk because the thunk isn't mapped. So it gets its own copy of the thunk,

[PATCH v4 06/13] x86/retpoline/xen: Convert Xen hypercall indirect jumps

2018-01-04 Thread David Woodhouse
Convert indirect call in Xen hypercall to use non-speculative sequence, when CONFIG_RETPOLINE is enabled. Signed-off-by: David Woodhouse --- arch/x86/include/asm/xen/hypercall.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/xen/hypercall.h b/arch/

[PATCH v4 05/13] x86/retpoline/hyperv: Convert assembler indirect jumps

2018-01-04 Thread David Woodhouse
Convert all indirect jumps in hyperv inline asm code to use non-speculative sequences when CONFIG_RETPOLINE is enabled. Signed-off-by: David Woodhouse --- arch/x86/include/asm/mshyperv.h | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/arch/x86/include/asm/

[PATCH v4 02/13] x86/retpoline/crypto: Convert crypto assembler indirect jumps

2018-01-04 Thread David Woodhouse
Convert all indirect jumps in crypto assembler code to use non-speculative sequences when CONFIG_RETPOLINE is enabled. [Andi Kleen: Fix crc32c 'bufp' handling] Signed-off-by: David Woodhouse --- arch/x86/crypto/aesni-intel_asm.S| 5 +++-- arch/x86/crypto/camellia-aesni-avx-asm_64.S

[PATCH v4 09/13] x86/retpoline/irq32: Convert assembler indirect jumps

2018-01-04 Thread David Woodhouse
From: Andi Kleen Convert all indirect jumps in 32bit irq inline asm code to use non speculative sequences. Signed-off-by: Andi Kleen Signed-off-by: David Woodhouse --- arch/x86/kernel/irq_32.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/x86/kernel/irq_32.

  1   2   3   4   5   6   7   8   9   10   >