Re: [RFC PATCH v2 1/3] selftests/x86: Fixed Makefile for SGX selftest

2019-07-12 Thread Xing, Cedric
On 7/11/2019 8:19 PM, Jarkko Sakkinen wrote: On Tue, Apr 23, 2019 at 11:26:21PM -0700, Cedric Xing wrote: The original x86/sgx/Makefile doesn't work when 'x86/sgx' is specified as the test target. This patch fixes that problem, along with minor changes to the dependencies between 'x86' and 'x86/

[RFC PATCH v4 3/3] selftests/x86/sgx: Augment SGX selftest to test vDSO API

2019-07-12 Thread Cedric Xing
This patch augments SGX selftest with two new tests. The first test exercises the newly added callback interface, by marking the whole enclave range as PROT_READ, then calling mprotect() upon #PFs to add necessary PTE permissions per PFEC (#PF Error Code) until the enclave finishes. This test also

[RFC PATCH v4 1/3] selftests/x86/sgx: Fix Makefile for SGX selftest

2019-07-12 Thread Cedric Xing
The original x86/sgx/Makefile didn't work when "x86/sgx" was specified as the test target, nor did it work with "run_tests" as the make target. Yet another problem was that it breaks 32-bit only build. This patch fixes those problems, along with adjustments to compiler/linker options and simplifica

[RFC PATCH v4 0/3] x86/sgx: Amend vDSO API to allow enclave/host parameter passing on untrusted stack

2019-07-12 Thread Cedric Xing
This patchset is based upon, and can be applied cleanly on SGX1 patch v20 (https://lkml.org/lkml/2019/4/17/344) by Jarkko Sakkinen. The current proposed __vdso_sgx_enter_enclave() requires enclaves to preserve %rsp, which prohibits enclaves from allocating space on the untrusted stack. However, th

[RFC PATCH v4 2/3] x86/vdso: Modify __vdso_sgx_enter_enclave() to allow parameter passing on untrusted stack

2019-07-12 Thread Cedric Xing
The previous __vdso_sgx_enter_enclave() requires enclaves to preserve %rsp, which prohibits enclaves from allocating and passing parameters for untrusted function calls (aka. o-calls) on the untrusted stack. This patch addresses the problem above by introducing a new ABI that preserves %rbp instea

Re: [PATCH] kernel/printk: prevent deadlock at calling kmsg_dump from NMI context

2019-07-12 Thread Konstantin Khlebnikov
On Sat, Jul 13, 2019 at 9:10 AM Sergey Senozhatsky wrote: > > On (07/12/19 17:54), Konstantin Khlebnikov wrote: > > Function kmsg_dump could be invoked from NMI context intentionally or > > accidentally because it is called at various oops/panic paths. > > Kernel message dumpers are not ready to w

[GIT] Sparc

2019-07-12 Thread David Miller
Just a few small changes: 1) Fix console naming inconsistency with hypervisor consoles, from John Paul Adrian Glaubitz 2) Fix userland compilation due to use of u_int, from Masahiro Yamada. Please pull, thanks a lot. The following changes since commit 30d1d92a888d03681b927c76a35181b4eed707

[GIT] Ide

2019-07-12 Thread David Miller
Please pull to get this small cleanup. Thanks. The following changes since commit 54dee406374ce8adb352c48e175176247cb8db7c: Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux (2019-05-22 08:36:16 -0700) are available in the Git repository at: git://git

[GIT] Networking

2019-07-12 Thread David Miller
1) Fix excessive stack usage in cxgb4, from Arnd Bergmann. 2) Missing skb queue lock init in tipc, from Chris Packham. 3) Fix some regressions in ipv6 flow label handling, from Eric Dumazet. 4) Elide flow dissection of local packets in FIB rules, from Petar Penkov. 5) Fix TLS support build

Re: [PATCH] kernel/printk: prevent deadlock at calling kmsg_dump from NMI context

2019-07-12 Thread Sergey Senozhatsky
On (07/12/19 17:54), Konstantin Khlebnikov wrote: > Function kmsg_dump could be invoked from NMI context intentionally or > accidentally because it is called at various oops/panic paths. > Kernel message dumpers are not ready to work in NMI context right now. > They could deadlock on lockbuf_lock o

Re: [PATCH] kbuild: add --hash-style= and --build-id unconditionally

2019-07-12 Thread Nathan Chancellor
On Sat, Jul 13, 2019 at 01:01:10PM +0900, Masahiro Yamada wrote: > As commit 1e0221374e30 ("mips: vdso: drop unnecessary cc-ldoption") > explained, these flags are supported by the minimal required version > of binutils. > > Signed-off-by: Masahiro Yamada Also supported by ld.lld; I tested both

[PATCH v2 05/13] powerpc/pseries: Add and use LPPACA_SIZE constant

2019-07-12 Thread Thiago Jung Bauermann
Helps document what the hard-coded number means. Also take the opportunity to fix an #endif comment. Suggested-by: Alexey Kardashevskiy Signed-off-by: Thiago Jung Bauermann --- arch/powerpc/kernel/paca.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/arch/power

[PATCH v2 09/13] powerpc/pseries/svm: Export guest SVM status to user space via sysfs

2019-07-12 Thread Thiago Jung Bauermann
From: Ryan Grimm User space might want to know it's running in a secure VM. It can't do a mfmsr because mfmsr is a privileged instruction. The solution here is to create a cpu attribute: /sys/devices/system/cpu/svm which will read 0 or 1 based on the S bit of the guest's CPU 0. Signed-off-by

[PATCH v2 13/13] powerpc/configs: Enable secure guest support in pseries and ppc64 defconfigs

2019-07-12 Thread Thiago Jung Bauermann
From: Ryan Grimm Enables running as a secure guest in platforms with an Ultravisor. Signed-off-by: Ryan Grimm Signed-off-by: Ram Pai Signed-off-by: Thiago Jung Bauermann --- arch/powerpc/configs/ppc64_defconfig | 1 + arch/powerpc/configs/pseries_defconfig | 1 + 2 files changed, 2 inserti

[PATCH v2 12/13] powerpc/pseries/svm: Force SWIOTLB for secure guests

2019-07-12 Thread Thiago Jung Bauermann
From: Anshuman Khandual SWIOTLB checks range of incoming CPU addresses to be bounced and sees if the device can access it through its DMA window without requiring bouncing. In such cases it just chooses to skip bouncing. But for cases like secure guests on powerpc platform all addresses need to b

Re: [PATCH v2] printk: Do not lose last line in kmsg buffer dump

2019-07-12 Thread Sergey Senozhatsky
On (07/12/19 15:11), Petr Mladek wrote: > > Looks correct to me as well. > > > > Reviewed-by: Sergey Senozhatsky > > The patch has been committed into printk.git, branch for-5.3-fixes. > > I am still a bit undecided whether to send pull request the following > week or wait for 5.4. On one hand,

[PATCH v2 11/13] powerpc/pseries/iommu: Don't use dma_iommu_ops on secure guests

2019-07-12 Thread Thiago Jung Bauermann
Secure guest memory is inacessible to devices so regular DMA isn't possible. In that case set devices' dma_map_ops to NULL so that the generic DMA code path will use SWIOTLB and DMA to bounce buffers. Signed-off-by: Thiago Jung Bauermann --- arch/powerpc/platforms/pseries/iommu.c | 6 +- 1

[PATCH v2 07/13] powerpc/pseries/svm: Use shared memory for Debug Trace Log (DTL)

2019-07-12 Thread Thiago Jung Bauermann
From: Anshuman Khandual Secure guests need to share the DTL buffers with the hypervisor. To that end, use a kmem_cache constructor which converts the underlying buddy allocated SLUB cache pages into shared memory. Signed-off-by: Anshuman Khandual Signed-off-by: Thiago Jung Bauermann --- arch/

[PATCH v2 08/13] powerpc/pseries/svm: Unshare all pages before kexecing a new kernel

2019-07-12 Thread Thiago Jung Bauermann
From: Ram Pai A new kernel deserves a clean slate. Any pages shared with the hypervisor is unshared before invoking the new kernel. However there are exceptions. If the new kernel is invoked to dump the current kernel, or if there is a explicit request to preserve the state of the current kernel,

[PATCH v2 10/13] powerpc/pseries/svm: Disable doorbells in SVM guests

2019-07-12 Thread Thiago Jung Bauermann
From: Sukadev Bhattiprolu Normally, the HV emulates some instructions like MSGSNDP, MSGCLRP from a KVM guest. To emulate the instructions, it must first read the instruction from the guest's memory and decode its parameters. However for a secure guest (aka SVM), the page containing the instructi

[PATCH v2 04/13] powerpc/pseries/svm: Add helpers for UV_SHARE_PAGE and UV_UNSHARE_PAGE

2019-07-12 Thread Thiago Jung Bauermann
From: Ram Pai These functions are used when the guest wants to grant the hypervisor access to certain pages. Signed-off-by: Ram Pai Signed-off-by: Thiago Jung Bauermann --- arch/powerpc/include/asm/ultravisor-api.h | 2 ++ arch/powerpc/include/asm/ultravisor.h | 15 +++ 2 fil

[PATCH v2 06/13] powerpc/pseries/svm: Use shared memory for LPPACA structures

2019-07-12 Thread Thiago Jung Bauermann
From: Anshuman Khandual LPPACA structures need to be shared with the host. Hence they need to be in shared memory. Instead of allocating individual chunks of memory for a given structure from memblock, a contiguous chunk of memory is allocated and then converted into shared memory. Subsequent all

[PATCH v2 03/13] powerpc/prom_init: Add the ESM call to prom_init

2019-07-12 Thread Thiago Jung Bauermann
From: Ram Pai Make the Enter-Secure-Mode (ESM) ultravisor call to switch the VM to secure mode. Add "svm=" command line option to turn on switching to secure mode. Signed-off-by: Ram Pai [ andmike: Generate an RTAS os-term hcall when the ESM ucall fails. ] Signed-off-by: Michael Anderson [ bau

[RFC PATCH v2 02/13] powerpc: Add support for adding an ESM blob to the zImage wrapper

2019-07-12 Thread Thiago Jung Bauermann
From: Benjamin Herrenschmidt For secure VMs, the signing tool will create a ticket called the "ESM blob" for the Enter Secure Mode ultravisor call with the signatures of the kernel and initrd among other things. This adds support to the wrapper script for adding that blob via the "-e" option to

[PATCH v2 00/13] Secure Virtual Machine Enablement

2019-07-12 Thread Thiago Jung Bauermann
Hello, The main change in this version was to rebase on top of cleanup series I just posted: https://lore.kernel.org/linuxppc-dev/20190713044554.28719-1-bauer...@linux.ibm.com/ In addition to the patches above, this patch series applies on top of v4 of Claudio Carvalho's "kvmppc: Paravirtualize

[PATCH v2 01/13] powerpc/pseries: Introduce option to build secure virtual machines

2019-07-12 Thread Thiago Jung Bauermann
Introduce CONFIG_PPC_SVM to control support for secure guests and include Ultravisor-related helpers when it is selected Signed-off-by: Thiago Jung Bauermann --- arch/powerpc/include/asm/ultravisor.h | 2 +- arch/powerpc/kernel/Makefile | 4 +++- arch/powerpc/platforms/pseries/Kconf

Re: [PATCH V5 11/18] clk: tegra210: Add support for Tegra210 clocks

2019-07-12 Thread Sowjanya Komatineni
On 6/29/19 8:10 AM, Dmitry Osipenko wrote: 28.06.2019 5:12, Sowjanya Komatineni пишет: This patch adds system suspend and resume support for Tegra210 clocks. All the CAR controller settings are lost on suspend when core power goes off. This patch has implementation for saving and restoring a

Re: [PATCH V5 02/18] pinctrl: tegra: Add suspend and resume support

2019-07-12 Thread Sowjanya Komatineni
On 6/29/19 8:46 AM, Dmitry Osipenko wrote: 28.06.2019 5:12, Sowjanya Komatineni пишет: This patch adds support for Tegra pinctrl driver suspend and resume. During suspend, context of all pinctrl registers are stored and on resume they are all restored to have all the pinmux and pad configurat

Re: [PATCH V5 02/18] pinctrl: tegra: Add suspend and resume support

2019-07-12 Thread Sowjanya Komatineni
On 7/4/19 3:40 AM, Dmitry Osipenko wrote: 04.07.2019 10:31, Linus Walleij пишет: On Sat, Jun 29, 2019 at 5:58 PM Dmitry Osipenko wrote: Oh, also what about GPIO-pinctrl suspend resume ordering .. is it okay that pinctrl will be resumed after GPIO? Shouldn't a proper pin-muxing be selected

Re: list corruption in deferred_split_scan()

2019-07-12 Thread Yang Shi
On 7/12/19 12:12 PM, Yang Shi wrote: On 7/11/19 2:07 PM, Qian Cai wrote: On Wed, 2019-07-10 at 17:16 -0700, Yang Shi wrote: Hi Qian, Thanks for reporting the issue. But, I can't reproduce it on my machine. Could you please share more details about your test? How often did you run into

[GIT PULL] Please pull powerpc/linux.git powerpc-5.3-1 tag

2019-07-12 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Linus, Please pull powerpc updates for 5.3. A bit of a small batch for us, just due to me not getting the time to review things. Only one conflict that I'm aware of, in our pgtable.h, resolution is simply to take both sides. cheers The followin

[GIT PULL] percpu changes for v5.3-rc1

2019-07-12 Thread Dennis Zhou
Hi Linus, This pull request includes changes to let percpu_ref release the backing percpu memory earlier after it has been switched to atomic in cases where the percpu ref is not revived. This will help recycle percpu memory earlier in cases where the refcounts are pinned for prolonged periods of

[PATCH v2 1/4] fs/posix_acl: apply umask if superblock disables ACL support

2019-07-12 Thread Max Kellermann
The function posix_acl_create() applies the umask only if the inode has no ACL (= NULL) or if ACLs are not supported by the filesystem driver (= -EOPNOTSUPP). However, this happens only after after the IS_POSIXACL() check succeeeded. If the superblock doesn't enable ACL support, umask will never

[PATCH v2 4/4] nfs/super: check NFS_CAP_ACLS instead of the NFS version

2019-07-12 Thread Max Kellermann
This sets MS_POSIXACL only if ACL support is really enabled, instead of always setting MS_POSIXACL if the NFS protocol version theoretically supports ACL. The code comment says "We will [apply the umask] ourselves", but that happens in posix_acl_create() only if the kernel has POSIX ACL support.

[PATCH v2 2/4] fs/ext4/acl: apply umask if ACL support is disabled

2019-07-12 Thread Max Kellermann
The function ext4_init_acl() calls posix_acl_create() which is responsible for applying the umask. But without CONFIG_EXT4_FS_POSIX_ACL, ext4_init_acl() is an empty inline function, and nobody applies the umask. This fixes a bug which causes the umask to be ignored with O_TMPFILE on ext4: https

[PATCH v2 3/4] linux/fs.h: fix umask on NFS with CONFIG_FS_POSIX_ACL=n

2019-07-12 Thread Max Kellermann
Make IS_POSIXACL() return false if POSIX ACL support is disabled and ignore SB_POSIXACL/MS_POSIXACL. Never skip applying the umask in namei.c and never bother to do any ACL specific checks if the filesystem falsely indicates it has ACLs enabled when the feature is completely disabled in the kernel

Re: [GIT PULL] xfs: new features for 5.3

2019-07-12 Thread Darrick J. Wong
On Fri, Jul 12, 2019 at 05:27:15PM -0700, Linus Torvalds wrote: > On Fri, Jul 12, 2019 at 11:02 AM Darrick J. Wong wrote: > > > > The branch merges cleanly against this morning's HEAD and survived an > > overnight run of xfstests. The merge was completely straightforward, so > > please let me kno

[PATCH] kbuild: add --hash-style= and --build-id unconditionally

2019-07-12 Thread Masahiro Yamada
As commit 1e0221374e30 ("mips: vdso: drop unnecessary cc-ldoption") explained, these flags are supported by the minimal required version of binutils. Signed-off-by: Masahiro Yamada --- Makefile | 6 ++ arch/arm/vdso/Makefile| 3 +-- arch/arm64/kernel/vds

[PATCH v4 7/8] dt-bindings: arm: sunxi: add binding for Lichee Zero Plus core board

2019-07-12 Thread Icenowy Zheng
The Lichee Zero Plus is a core board made by Sipeed, with a microUSB connector on it, TF slot or WSON8 SD chip, optional eMMC or SPI Flash. It has a gold finger connector for expansion, and UART is available from reserved pins w/ 2.54mm pitch. The board can use either SoChip S3 or Allwinner V3L SoC

[PATCH v4 8/8] ARM: dts: sun8i: s3: add devicetree for Lichee zero plus w/ S3

2019-07-12 Thread Icenowy Zheng
Lichee zero plus is a core board made by Sipeed, which includes on-board TF slot or SMT SD NAND, and optional SPI NOR or eMMC, a UART debug header, a microUSB slot and a gold finger connector for expansion. It can use either Sochip S3 or Allwinner S3L SoC. Add the basic device tree for the core bo

[PATCH v4 6/8] ARM: sunxi: dts: s3/s3l/v3: add DTSI files for S3/S3L/V3 SoCs

2019-07-12 Thread Icenowy Zheng
The Allwinner S3/S3L/V3 SoCs all share the same die with the V3s SoC, but with more GPIO wired out of the package. Add DTSI files for these SoCs. The DTSI file for V3 just replaces the pinctrl compatible string, and the S3/S3L DTSI files just include the V3 DTSI file. Signed-off-by: Icenowy Zheng

[PATCH 0/2] ASoC: samsung: odroid: fix err handling of odroid_audio_probe

2019-07-12 Thread Wen Yang
We developed a coccinelle SmPL to detect sound/soc/samsung/odroid.c and found some use-after-free problems. This patch series fixes those problems. Wen Yang (2): ASoC: samsung: odroid: fix an use-after-free issue for codec ASoC: samsung: odroid: fix a double-free issue for cpu_dai sound/soc/

[PATCH v4 5/8] clk: sunxi-ng: v3s: add Allwinner V3 support

2019-07-12 Thread Icenowy Zheng
Allwinner V3 has the same main die with V3s, but with more pins wired. There's a I2S bus on V3 that is not available on V3s. Add the V3-only peripheral's clocks and reset to the V3s CCU driver, bound to a new V3 compatible string. The driver name is not changed because it's part of the device tree

[PATCH 2/2] ASoC: samsung: odroid: fix a double-free issue for cpu_dai

2019-07-12 Thread Wen Yang
The cpu_dai variable is still being used after the of_node_put() call, which may result in double-free: of_node_put(cpu_dai);---> released here ret = devm_snd_soc_register_card(dev, card); if (ret < 0) { ... goto err_put_clk_i2s;--> jump to

[PATCH 1/2] ASoC: samsung: odroid: fix an use-after-free issue for codec

2019-07-12 Thread Wen Yang
The codec variable is still being used after the of_node_put() call, which may result in use-after-free. Fixes: bc3cf17b575a ("ASoC: samsung: odroid: Add support for secondary CPU DAI") Signed-off-by: Wen Yang Cc: Krzysztof Kozlowski Cc: Sangbeom Kim Cc: Sylwester Nawrocki Cc: Liam Girdwood C

[PATCH v4 2/8] clk: sunxi-ng: v3s: add the missing PLL_DDR1

2019-07-12 Thread Icenowy Zheng
The user manual of V3/V3s/S3 declares a PLL_DDR1, however it's forgot when developing the V3s CCU driver. Add back the missing PLL_DDR1. Fixes: d0f11d14b0bc ("clk: sunxi-ng: add support for V3s CCU") Signed-off-by: Icenowy Zheng --- No changes since v1. drivers/clk/sunxi-ng/ccu-sun8i-v3s.c | 1

[PATCH v4 4/8] clk: sunxi-ng: v3s: add missing clock slices for MMC2 module clocks

2019-07-12 Thread Icenowy Zheng
The MMC2 clock slices are currently not defined in V3s CCU driver, which makes MMC2 not working. Fix this issue. Fixes: d0f11d14b0bc ("clk: sunxi-ng: add support for V3s CCU") Signed-off-by: Icenowy Zheng --- New patch in v4. drivers/clk/sunxi-ng/ccu-sun8i-v3s.c | 3 +++ 1 file changed, 3 inse

[PATCH v4 3/8] dt-bindings: clk: sunxi-ccu: add compatible string for V3 CCU

2019-07-12 Thread Icenowy Zheng
Despite Allwinner V3 and V3s shares the same die, one peripheral (I2S) is only available on V3, and thus the clocks is not declared for V3s CCU. Add a V3 CCU compatible string to the binding to prepare for a CCU driver that provide I2S clock on V3, but not on V3s. Signed-off-by: Icenowy Zheng Re

[PATCH v4 1/8] pinctrl: sunxi: v3s: introduce support for V3

2019-07-12 Thread Icenowy Zheng
Introduce the GPIO pins that is only available on V3 (not on V3s) to the V3s pinctrl driver. Signed-off-by: Icenowy Zheng --- Changes in v4: - Removed bogus alignment change. Changes in v3: - Fixed code alignment. - Fixed LVDS function number. Changes in v2: - Dropped the driver rename patch an

[PATCH v4 0/8] Support for Allwinner V3/S3L and Sochip S3

2019-07-12 Thread Icenowy Zheng
This patchset tries to add support for Allwinner V3/S3L and Sochip S3. Allwinner V3/V3s/S3L and Sochip S3 share the same die, but with different package. V3 is BGA w/o co-packaged DDR, V3s is QFP w/ DDR2, S3L is BGA w/ DDR2 and S3 is BGA w/ DDR3. (S3 and S3L is compatible for pinout, but because o

FRESH & NEW EMAIL LEADS TOOLS, RDP,EMAILS, SPYWARES, SMTP, MAILER, CVV

2019-07-12 Thread CYBER GATES LTD
DEAR CUSTOMERS We are happy to inform you about our new SMTP SERVER today I would like to introduce you to a page that provides services for UNLIMITED SENDER We offer all the services that you desire now? 15x Domain Inbox SMTP please check http://www.cybergatesltd.net/index.php?route=product/pro

[PATCH] powerpc: remove meaningless KBUILD_ARFLAGS addition

2019-07-12 Thread Masahiro Yamada
The KBUILD_ARFLAGS addition in arch/powerpc/Makefile has never worked in a useful way because it is always overridden by the following code in the top Makefile: # use the deterministic mode of AR if available KBUILD_ARFLAGS := $(call ar-option,D) The code in the top Makefile was added in 2011

Re: [PATCH 5.2 00/61] 5.2.1-stable review

2019-07-12 Thread Naresh Kamboju
On Fri, 12 Jul 2019 at 18:04, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.2.1 release. > There are 61 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Respo

Re: [PATCH 5.1 000/138] 5.1.18-stable review

2019-07-12 Thread Naresh Kamboju
On Fri, 12 Jul 2019 at 17:56, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.1.18 release. > There are 138 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Res

Re: [PATCH 4.19 00/91] 4.19.59-stable review

2019-07-12 Thread Naresh Kamboju
On Fri, 12 Jul 2019 at 17:52, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.19.59 release. > There are 91 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Res

Re: [RFC PATCH] bug: always show source-tree-relative paths in WARN()/BUG()

2019-07-12 Thread Brian Norris
On Thu, Jul 11, 2019 at 6:50 PM Masahiro Yamada wrote: > GCC 8 added this flag. > So, it will be eventually all solved in the GCC world. Ack. > Clang has not supported it yet... That's what it appeared like. I've bugged our Clang-loving toolchain folks to see if we can get parity. > Trimming a

Re: [PATCH 5.1 000/138] 5.1.18-stable review

2019-07-12 Thread Jiunn Chang
On Fri, Jul 12, 2019 at 02:17:44PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.1.18 release. > There are 138 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

Re: [Question] Should direct reclaim time be bounded?

2019-07-12 Thread Mike Kravetz
On 7/11/19 10:47 PM, Hillf Danton wrote: > > On Thu, 11 Jul 2019 02:42:56 +0800 Mike Kravetz wrote: >> >> It is quite easy to hit the condition where: >> nr_reclaimed == 0 && nr_scanned == 0 is true, but we skip the previous test >> > Then skipping check of __GFP_RETRY_MAYFAIL makes no sense in y

Re: [HELP REQUESTED from the community] Was: Staging status of speakup

2019-07-12 Thread Gregory Nowak
On Fri, Jul 12, 2019 at 11:23:19AM +0200, Samuel Thibault wrote: > Hello, > > To readers of the linux-speakup: could you help on this so we can get > Speakup in mainline? Neither Okash or I completely know what user > consequences the files in /sys/accessibility/speakup/ have, so could > people g

LPC 2019 Networking Track CFP (reminder)

2019-07-12 Thread David Miller
This is a call for proposals for the 3 day networking track at the Linux Plumbers Conference in Lisbon, which will be happening on September 9th-11th, 2019. We are seeking talks of 40 minutes in length (including Q & A), optionally accompanied by papers of 2 to 10 pages in length. The papers, w

Re: [PATCH] be2net: fix adapter->big_page_size miscaculation

2019-07-12 Thread David Miller
From: Qian Cai Date: Fri, 12 Jul 2019 20:27:09 -0400 > Actually, GCC would consider it a const with -O2 optimized level because it > found that it was never modified and it does not understand it is a module > parameter. Considering the following code. > > # cat const.c > #include > > stati

Re: [GIT PULL] dlm updates for 5.3 (second try)

2019-07-12 Thread pr-tracker-bot
The pull request you sent on Fri, 12 Jul 2019 10:18:44 -0500: > git://git.kernel.org/pub/scm/linux/kernel/git/teigland/linux-dlm.git dlm-5.3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/964a4eacef67503a1154f7e0a75f52fbdce52022 Thank you! -- Deet-doot-dot, I am a b

Re: [GIT PULL] 9p updates for 5.3

2019-07-12 Thread pr-tracker-bot
The pull request you sent on Fri, 12 Jul 2019 10:04:46 +0200: > git://github.com/martinetd/linux tags/9p-for-5.3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/23bbbf5c1fb3ddf104c2ddbda4cc24ebe53a3453 Thank you! -- Deet-doot-dot, I am a bot. https://korg.wiki.kernel

Re: [GIT PULL] 9p updates for 5.3

2019-07-12 Thread Linus Torvalds
On Fri, Jul 12, 2019 at 1:08 AM Dominique Martinet wrote: > > Just noticed this typo in version number here, should I make a new tag > with the correct text? No need, The important part is the signature itself, the typo will be embedded in the merge commit (as part of the merge signature) but no

Re: [GIT PULL] xfs: new features for 5.3

2019-07-12 Thread pr-tracker-bot
The pull request you sent on Fri, 12 Jul 2019 11:02:05 -0700: > git://git.kernel.org/pub/scm/fs/xfs/xfs-linux.git tags/xfs-5.3-merge-12 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/4ce9d181ebe53abbca5f450b8a2984b8c3a38f26 Thank you! -- Deet-doot-dot, I am a bot. h

Re: [GIT PULL] vfs: standardize parameter checking for SETFLAGS/FSSETXATTR ioctls

2019-07-12 Thread pr-tracker-bot
The pull request you sent on Thu, 11 Jul 2019 07:18:25 -0700: > git://git.kernel.org/pub/scm/fs/xfs/xfs-linux.git > tags/vfs-fix-ioctl-checking-3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/5010fe9f095414b959fd6fda63986dc90fd0c419 Thank you! -- Deet-doot-dot, I

Re: [GIT PULL] xfs: new features for 5.3

2019-07-12 Thread Linus Torvalds
On Fri, Jul 12, 2019 at 11:02 AM Darrick J. Wong wrote: > > The branch merges cleanly against this morning's HEAD and survived an > overnight run of xfstests. The merge was completely straightforward, so > please let me know if you run into anything weird. Hmm. I don't know what you merged again

Re: [PATCH] be2net: fix adapter->big_page_size miscaculation

2019-07-12 Thread Qian Cai
> On Jul 12, 2019, at 6:46 PM, David Miller wrote: > > From: Qian Cai > Date: Fri, 12 Jul 2019 15:23:21 -0400 > >> The commit d66acc39c7ce ("bitops: Optimise get_order()") introduced a >> problem for the be2net driver as "rx_frag_size" could be a module >> parameter that can be changed while

Re: [PATCH v5 01/12] S.A.R.A.: add documentation

2019-07-12 Thread James Morris
On Sat, 6 Jul 2019, Salvatore Mesoraca wrote: > Adding documentation for S.A.R.A. LSM. It would be good if you could add an operational overview to help people understand how it works in practice, e.g. setting policies for binaries via sara-xattr and global config via saractl (IIUC). It's diffi

Re: [PATCH] [net-next] cxgb4: reduce kernel stack usage in cudbg_collect_mem_region()

2019-07-12 Thread Joe Perches
On Fri, 2019-07-12 at 15:36 -0700, David Miller wrote: > From: Arnd Bergmann > Date: Fri, 12 Jul 2019 11:06:33 +0200 > > > The cudbg_collect_mem_region() and cudbg_read_fw_mem() both use several > > hundred kilobytes of kernel stack space. Several hundred 'kilo' bytes? I hope not.

[PATCH v5 07/11] of/platform: Sanity check DT bindings before creating device links

2019-07-12 Thread Saravana Kannan
If a common DT binding is pointing to a child DT node of a particular parent DT node, don't add device links for such DT references. This is because, by definition, a child node can't be a functional dependency for the parent node. Signed-off-by: Saravana Kannan --- drivers/of/platform.c | 17 ++

[PATCH v5 09/11] of/platform: Create device links for all child-supplier depencencies

2019-07-12 Thread Saravana Kannan
A parent device can have child devices that it adds when it probes. But this probing of the parent device can happen way after kernel init is done -- for example, when the parent device's driver is loaded as a module. In such cases, if the child devices depend on a supplier in the system, we need

[PATCH v5 11/11] of/platform: Don't create device links default busses

2019-07-12 Thread Saravana Kannan
Default busses also have devices created for them. But there's no point in creating device links for them. It's especially wasteful as it'll cause the traversal of the entire device tree and also spend a lot of time checking and figuring out that creating those links isn't allowed. So check for def

[PATCH v5 03/11] driver core: Add sync_state driver/bus callback

2019-07-12 Thread Saravana Kannan
This sync_state driver/bus callback is called once all the consumers of a supplier have probed successfully. This allows the supplier device's driver/bus to sync the supplier device's state to the software state with the guarantee that all the consumers are actively managing the resources provided

[PATCH v5 10/11] of/platform: Add functional dependency link from DT regulator bindings

2019-07-12 Thread Saravana Kannan
Similar to creating functional dependency links from clock and interconnect DT bindings, also create functional dependency links from regulator DT bindings. Signed-off-by: Saravana Kannan --- drivers/of/platform.c | 83 ++- 1 file changed, 51 insertions(+)

[PATCH v5 05/11] driver core: Add APIs to pause/resume sync state callbacks

2019-07-12 Thread Saravana Kannan
When multiple devices are added after kernel init, some suppliers could be added before their consumer devices get added. In these instances, the supplier devices could get their sync_state callback called right after they probe because the consumers haven't had a chance to create device links to t

[PATCH v5 04/11] driver core: Add edit_links() callback for drivers

2019-07-12 Thread Saravana Kannan
The driver core/bus adding dependencies by default makes sure that suppliers don't sync the hardware state with software state before all the consumers have their drivers loaded (if they are modules) and are probed. However, when the bus incorrectly adds dependencies that it shouldn't have added,

Re: [PATCH 4.19 00/91] 4.19.59-stable review

2019-07-12 Thread kernelci.org bot
stable-rc/linux-4.19.y boot: 122 boots: 4 failed, 117 passed with 1 offline (v4.19.58-92-gd66f8e7f112f) Full Boot Summary: https://kernelci.org/boot/all/job/stable-rc/branch/linux-4.19.y/kernel/v4.19.58-92-gd66f8e7f112f/ Full Build Summary: https://kernelci.org/build/stable-rc/branch/linux-4.19

[PATCH v5 00/11] Solve postboot supplier cleanup and optimize probe ordering

2019-07-12 Thread Saravana Kannan
Add device-links to track functional dependencies between devices after they are created (but before they are probed) by looking at their common DT bindings like clocks, interconnects, etc. Having functional dependencies automatically added before the devices are probed, provides the following ben

[PATCH v5 01/11] driver core: Add support for linking devices during device addition

2019-07-12 Thread Saravana Kannan
When devices are added, the bus might want to create device links to track functional dependencies between supplier and consumer devices. This tracking of supplier-consumer relationship allows optimizing device probe order and tracking whether all consumers of a supplier are active. The add_links b

[PATCH v5 06/11] of/platform: Pause/resume sync state in of_platform_populate()

2019-07-12 Thread Saravana Kannan
When multiple child devices are populated using of_platform_populate() after kernel init, there could be supplier-consumer dependencies between the child devices. Wait for all the devices to be added and linked before calling sync_state() on all the suppliers. Signed-off-by: Saravana Kannan ---

[PATCH v5 08/11] of/platform: Make sure supplier DT node is device when creating device links

2019-07-12 Thread Saravana Kannan
While most phandle references in common bindings point to the supplier device node, there are also common bindings where the phandle can pointing to a child node of the supplier device node. Therefore, when trying to find the supplier device that corresponds to a supplier phandle, we need to make

Re: [PATCH v5 03/12] S.A.R.A.: cred blob management

2019-07-12 Thread James Morris
On Sat, 6 Jul 2019, Salvatore Mesoraca wrote: > Creation of the S.A.R.A. cred blob management "API". > In order to allow S.A.R.A. to be stackable with other LSMs, it doesn't use > the "security" field of struct cred, instead it uses an ad hoc field named > security_sara. > This solution is probabl

Re: [PATCH v1 1/6] rcu: Add support for consolidated-RCU reader checking

2019-07-12 Thread Paul E. McKenney
On Fri, Jul 12, 2019 at 03:40:40PM -0400, Joel Fernandes wrote: > On Fri, Jul 12, 2019 at 10:46:30AM -0700, Paul E. McKenney wrote: > > On Fri, Jul 12, 2019 at 01:06:31PM -0400, Joel Fernandes wrote: > > > On Fri, Jul 12, 2019 at 09:45:31AM -0700, Paul E. McKenney wrote: > > > > On Fri, Jul 12, 201

[PATCH] scatterlist: Don't allocate sg lists using __get_free_page

2019-07-12 Thread Sultan Alsawaf
From: Sultan Alsawaf Allocating pages with __get_free_page is slower than going through the slab allocator to grab free pages out from a pool. These are the results from running the code at the bottom of this message: [1.278602] speedtest: __get_free_page: 9 us [1.278606] speedtest: kmal

Re: [GIT PULL] Kselftest update for Linux 5.3-rc1

2019-07-12 Thread pr-tracker-bot
The pull request you sent on Fri, 12 Jul 2019 12:07:27 -0600: > git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest > tags/linux-kselftest-5.3-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/8487d8229990e6eacaf1c854a113c9d16b7b596c Thank you! --

Re: [GIT PULL] asm-generic: remove ptrace.h

2019-07-12 Thread pr-tracker-bot
The pull request you sent on Fri, 12 Jul 2019 23:04:31 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git > tags/asm-generic-5.3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/5f26f1143678d0fed8115afdcc0de99ee7cc9675 Thank you! -- Deet-doot

Re: [GIT PULL] dma-mapping updates for 5.3

2019-07-12 Thread pr-tracker-bot
The pull request you sent on Thu, 11 Jul 2019 15:56:54 +0200: > git://git.infradead.org/users/hch/dma-mapping.git tags/dma-mapping-5.3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/9e3a25dc992dd9f3170fb643bdd95da5ca9c5576 Thank you! -- Deet-doot-dot, I am a bot. ht

Re: [GIT PULL] hyper-v patches for 5.3

2019-07-12 Thread pr-tracker-bot
The pull request you sent on Thu, 11 Jul 2019 14:32:18 -0400: > https://lore.kernel.org/lkml/20190709195358.25af2...@canb.auug.org.au/ . has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/16c97650a56abdd067f7da079007b7e00b307083 Thank you! -- Deet-doot-dot, I am a bot.

Re: [GIT PULL 1/2] Kbuild updates for v5.3-rc1

2019-07-12 Thread pr-tracker-bot
The pull request you sent on Sat, 13 Jul 2019 02:50:05 +0900: > git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git > tags/kbuild-v5.3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/39ceda5ce1b002e30563fcb8ad1bb5ac8e4d59ee Thank you! -- Deet-do

Re: [GIT PULL 2/2] Kconfig updates for v5.3-rc1

2019-07-12 Thread pr-tracker-bot
The pull request you sent on Sat, 13 Jul 2019 02:54:42 +0900: > git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git > tags/kconfig-v5.3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/106f1466e7e7057ec6f4dc9516c13ea8cb9dffa0 Thank you! -- Deet-d

Re: [GIT PULL] First batch of KVM changes for Linux 5.3

2019-07-12 Thread pr-tracker-bot
The pull request you sent on Fri, 12 Jul 2019 19:44:24 +0200: > https://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/39d7530d7494b4e47ba1856e741f513dafd17e3d Thank you! -- Deet-doot-dot, I am a bot. https://ko

Re: [GIT PULL] s390 patches for the 5.3 merge window #2

2019-07-12 Thread pr-tracker-bot
The pull request you sent on Fri, 12 Jul 2019 16:39:34 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git tags/s390-5.3-2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/aabfea8dc91cf5b220d2ed85e8f6395a9b140371 Thank you! -- Deet-doot-dot, I am a b

Re: [PATCH] mm: sparse: Skip no-map regions in memblocks_present

2019-07-12 Thread Wei Yang
On Fri, Jul 12, 2019 at 10:51:31AM +0200, KarimAllah Ahmed wrote: >Do not mark regions that are marked with nomap to be present, otherwise >these memblock cause unnecessarily allocation of metadata. > >Cc: Andrew Morton >Cc: Pavel Tatashin >Cc: Oscar Salvador >Cc: Michal Hocko >Cc: Mike Rapopor

Re: [PATCH] nvmet-file: fix nvmet_file_flush() always returning an error

2019-07-12 Thread Sagi Grimberg
Looks good, Reviewed-by: Sagi Grimberg

Re: BUG: MAX_STACK_TRACE_ENTRIES too low! (2)

2019-07-12 Thread Bart Van Assche
On 7/12/19 1:55 AM, Peter Zijlstra wrote: On Thu, Jul 11, 2019 at 11:53:12AM -0700, Bart Van Assche wrote: On 7/10/19 3:09 PM, Peter Zijlstra wrote: One thing I mentioned when Thomas did the unwinder API changes was trying to move lockdep over to something like stackdepot. We can't directly us

Re: [PATCH] be2net: fix adapter->big_page_size miscaculation

2019-07-12 Thread David Miller
From: Qian Cai Date: Fri, 12 Jul 2019 15:23:21 -0400 > The commit d66acc39c7ce ("bitops: Optimise get_order()") introduced a > problem for the be2net driver as "rx_frag_size" could be a module > parameter that can be changed while loading the module. Why is this a problem? > That commit checks

[PATCH] x86/process: Delete useless check for dead process with LDT

2019-07-12 Thread Jann Horn
At release_thread(), ->mm is NULL; and it is fine for the former mm to still have an LDT. Delete this check in process_64.c, similar to commit 2684927c6b93 ("[PATCH] x86: Deprecate useless bug"), which did the same in process_32.c. Signed-off-by: Jann Horn --- arch/x86/kernel/process_64.c | 12 +

[PATCH] nvmet-file: fix nvmet_file_flush() always returning an error

2019-07-12 Thread Logan Gunthorpe
errno_to_nvme_status() doesn't take into account the case when errno=0, all other use cases only call it if there is actually an error. Presently, nvmet_file_flush() always returns a call to errno_to_nvme_status() so, even if it is successful, it will return NVME_SC_INTERNAL. This bug was found w

Re: [PATCH] net: hisilicon: Use devm_platform_ioremap_resource

2019-07-12 Thread David Miller
From: Jiangfeng Xiao Date: Fri, 12 Jul 2019 21:16:24 +0800 > Use devm_platform_ioremap_resource instead of > devm_ioremap_resource. Make the code simpler. > > Signed-off-by: Jiangfeng Xiao Applied.

  1   2   3   4   5   6   7   8   9   >