[PATCH AUTOSEL 4.14 07/33] keys: Fix dependency loop between construction record and auth key

2019-03-13 Thread Sasha Levin
From: David Howells [ Upstream commit 822ad64d7e46a8e2c8b8a796738d7b657cbb146d ] In the request_key() upcall mechanism there's a dependency loop by which if a key type driver overrides the ->request_key hook and the userspace side manages to lose the authorisation key, the auth key and the

[PATCH AUTOSEL 4.14 04/33] ARM: 8824/1: fix a migrating irq bug when hotplug cpu

2019-03-13 Thread Sasha Levin
From: Dietmar Eggemann [ Upstream commit 1b5ba350784242eb1f899bcffd95d2c7cff61e84 ] Arm TC2 fails cpu hotplug stress test. This issue was tracked down to a missing copy of the new affinity cpumask for the vexpress-spc interrupt into struct irq_common_data.affinity when the interrupt is

[PATCH AUTOSEL 4.19 46/48] mdio_bus: Fix use-after-free on device_register fails

2019-03-13 Thread Sasha Levin
From: YueHaibing [ Upstream commit 6ff7b060535e87c2ae14dd8548512abfdda528fb ] KASAN has found use-after-free in fixed_mdio_bus_init, commit 0c692d07842a ("drivers/net/phy/mdio_bus.c: call put_device on device_register() failure") call put_device() while device_register() fails,give up the last

[PATCH AUTOSEL 4.19 38/48] mac80211_hwsim: propagate genlmsg_reply return code

2019-03-13 Thread Sasha Levin
From: Li RongQing [ Upstream commit 17407715240456448e4989bee46ffc93991add83 ] genlmsg_reply can fail, so propagate its return code Signed-off-by: Li RongQing Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- drivers/net/wireless/mac80211_hwsim.c | 2 +- 1 file changed, 1

[PATCH AUTOSEL 4.14 01/33] clk: sunxi-ng: v3s: Fix TCON reset de-assert bit

2019-03-13 Thread Sasha Levin
From: Paul Kocialkowski [ Upstream commit 5c59801f7018acba11b12de59017a3fcdcf7421d ] According to the datasheet and the reference code from Allwinner, the bit used to de-assert the TCON reset is bit 4, not bit 3. Fix it in the V3s CCU driver. Signed-off-by: Paul Kocialkowski Signed-off-by:

[PATCH AUTOSEL 4.19 48/48] selftests: fib_tests: sleep after changing carrier. again.

2019-03-13 Thread Sasha Levin
From: Thadeu Lima de Souza Cascardo [ Upstream commit af548a27b158d548d41e56255e6eaca1658cc3be ] Just like commit e2ba732a1681 ("selftests: fib_tests: sleep after changing carrier"), wait one second to allow linkwatch to propagate the carrier change to the stack. There are two sets of carrier

[PATCH AUTOSEL 4.14 02/33] clk: sunxi: A31: Fix wrong AHB gate number

2019-03-13 Thread Sasha Levin
From: Andre Przywara [ Upstream commit ee0b27a3a4da0b0ed2318aa092f8856896e9450b ] According to the manual the gate clock for MMC3 is at bit 11, and NAND1 is controlled by bit 12. Fix the gate bit definitions in the clock driver. Fixes: c6e6c96d8fa6 ("clk: sunxi-ng: Add A31/A31s clocks")

[PATCH AUTOSEL 4.19 27/48] kasan, slub: move kasan_poison_slab hook before page_address

2019-03-13 Thread Sasha Levin
From: Andrey Konovalov [ Upstream commit a71012242837fe5e67d8c999cfc357174ed5dba0 ] With tag based KASAN page_address() looks at the page flags to see whether the resulting pointer needs to have a tag set. Since we don't want to set a tag when page_address() is called on SLAB pages, we call

[PATCH AUTOSEL 4.19 33/48] ARCv2: lib: memcpy: fix doing prefetchw outside of buffer

2019-03-13 Thread Sasha Levin
From: Eugeniy Paltsev [ Upstream commit f8a15f97664178f27dfbf86a38f780a532cb6df0 ] ARCv2 optimized memcpy uses PREFETCHW instruction for prefetching the next cache line but doesn't ensure that the line is not past the end of the buffer. PRETECHW changes the line ownership and marks it dirty,

[PATCH AUTOSEL 4.19 35/48] ARCv2: support manual regfile save on interrupts

2019-03-13 Thread Sasha Levin
From: Vineet Gupta [ Upstream commit e494239a007e601448110ac304fe055951f9de3b ] There's a hardware bug which affects the HSDK platform, triggered by micro-ops for auto-saving regfile on taken interrupt. The workaround is to inhibit autosave. Signed-off-by: Vineet Gupta Signed-off-by: Sasha

[PATCH AUTOSEL 4.19 25/48] ARM: tegra: Restore DT ABI on Tegra124 Chromebooks

2019-03-13 Thread Sasha Levin
From: Thierry Reding [ Upstream commit 94d9b9337d09bdd27735005b3251d97ab29f7273 ] Commit 482997699ef0 ("ARM: tegra: Fix unit_address_vs_reg DTC warnings for /memory") inadventently broke device tree ABI by adding a unit- address to the "/memory" node because the device tree compiler flagged the

[PATCH AUTOSEL 4.19 32/48] ixgbe: fix older devices that do not support IXGBE_MRQC_L3L4TXSWEN

2019-03-13 Thread Sasha Levin
From: Jeff Kirsher [ Upstream commit 156a67a9065e3339be85f811d1b13b920e50d73b ] The enabling L3/L4 filtering for transmit switched packets for all devices caused unforeseen issue on older devices when trying to send UDP traffic in an ordered sequence. This bit was originally intended for X550

[PATCH AUTOSEL 4.19 19/48] mailbox: bcm-flexrm-mailbox: Fix FlexRM ring flush timeout issue

2019-03-13 Thread Sasha Levin
From: Rayagonda Kokatanur [ Upstream commit d7bf31a0f85faaf63c63c39d55154825a1eaaea9 ] RING_CONTROL reg was not written due to wrong address, hence all the subsequent ring flush was timing out. Fixes: a371c10ea4b3 ("mailbox: bcm-flexrm-mailbox: Fix FlexRM ring flush sequence") Signed-off-by:

[PATCH AUTOSEL 4.19 18/48] xfrm: Fix inbound traffic via XFRM interfaces across network namespaces

2019-03-13 Thread Sasha Levin
From: Tobias Brunner [ Upstream commit 660899ddf06ae8bb5bbbd0a19418b739375430c5 ] After moving an XFRM interface to another namespace it stays associated with the original namespace (net in `struct xfrm_if` and the list keyed with `xfrmi_net_id`), allowing processes in the new namespace to use

[PATCH AUTOSEL 4.19 30/48] kasan, slab: fix conflicts with CONFIG_HARDENED_USERCOPY

2019-03-13 Thread Sasha Levin
From: Andrey Konovalov [ Upstream commit 219667c23c68eb3dbc0d5662b9246f28477fe529 ] Similarly to commit 96fedce27e13 ("kasan: make tag based mode work with CONFIG_HARDENED_USERCOPY"), we need to reset pointer tags in __check_heap_object() in mm/slab.c before doing any pointer math. Link:

[PATCH AUTOSEL 4.19 29/48] tmpfs: fix link accounting when a tmpfile is linked in

2019-03-13 Thread Sasha Levin
From: "Darrick J. Wong" [ Upstream commit 1062af920c07f5b54cf5060fde3339da6df0cf6b ] tmpfs has a peculiarity of accounting hard links as if they were separate inodes: so that when the number of inodes is limited, as it is by default, a user cannot soak up an unlimited amount of unreclaimable

[PATCH AUTOSEL 4.19 31/48] kasan, slab: make freelist stored without tags

2019-03-13 Thread Sasha Levin
From: Andrey Konovalov [ Upstream commit 51dedad06b5f6c3eea7ec1069631b1ef7796912a ] Similarly to "kasan, slub: move kasan_poison_slab hook before page_address", move kasan_poison_slab() before alloc_slabmgmt(), which calls page_address(), to make page_address() return value to be non-tagged.

[PATCH AUTOSEL 4.19 08/48] af_key: unconditionally clone on broadcast

2019-03-13 Thread Sasha Levin
From: Sean Tranchetti [ Upstream commit fc2d5cfdcfe2ab76b263d91429caa22451123085 ] Attempting to avoid cloning the skb when broadcasting by inflating the refcount with sock_hold/sock_put while under RCU lock is dangerous and violates RCU principles. It leads to subtle race conditions when

[PATCH AUTOSEL 4.19 10/48] assoc_array: Fix shortcut creation

2019-03-13 Thread Sasha Levin
From: David Howells [ Upstream commit bb2ba2d75a2d673e76ddaf13a9bd30d6a8b1bb08 ] Fix the creation of shortcuts for which the length of the index key value is an exact multiple of the machine word size. The problem is that the code that blanks off the unused bits of the shortcut value

[PATCH AUTOSEL 4.19 17/48] net: mv643xx_eth: disable clk on error path in mv643xx_eth_shared_probe()

2019-03-13 Thread Sasha Levin
From: Alexey Khoroshilov [ Upstream commit e928b5d6b75e239feb9c6d5488974b6646a0ebc8 ] If mv643xx_eth_shared_of_probe() fails, mv643xx_eth_shared_probe() leaves clk enabled. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Signed-off-by: David

[PATCH AUTOSEL 4.20 55/60] nfp: bpf: fix ALU32 high bits clearance bug

2019-03-13 Thread Sasha Levin
From: Jiong Wang [ Upstream commit f036ebd9bfbe1e91a3d855e85e05fc5ff156b641 ] NFP BPF JIT compiler is doing a couple of small optimizations when jitting ALU imm instructions, some of these optimizations could save code-gen, for example: A & -1 = A A | 0 = A A ^ 0 = A However, for

[PATCH AUTOSEL 4.20 58/60] mdio_bus: Fix use-after-free on device_register fails

2019-03-13 Thread Sasha Levin
From: YueHaibing [ Upstream commit 6ff7b060535e87c2ae14dd8548512abfdda528fb ] KASAN has found use-after-free in fixed_mdio_bus_init, commit 0c692d07842a ("drivers/net/phy/mdio_bus.c: call put_device on device_register() failure") call put_device() while device_register() fails,give up the last

[PATCH AUTOSEL 4.20 57/60] bnxt_en: Wait longer for the firmware message response to complete.

2019-03-13 Thread Sasha Levin
From: Michael Chan [ Upstream commit b81a063b5f3ab82fa18041c28327ce72c312 ] The code waits up to 20 usec for the firmware response to complete once we've seen the valid response header in the buffer. It turns out that in some scenarios, this wait time is not long enough. Extend it to 150

[PATCH AUTOSEL 4.19 11/48] keys: Fix dependency loop between construction record and auth key

2019-03-13 Thread Sasha Levin
From: David Howells [ Upstream commit 822ad64d7e46a8e2c8b8a796738d7b657cbb146d ] In the request_key() upcall mechanism there's a dependency loop by which if a key type driver overrides the ->request_key hook and the userspace side manages to lose the authorisation key, the auth key and the

[PATCH AUTOSEL 4.19 04/48] esp: Skip TX bytes accounting when sending from a request socket

2019-03-13 Thread Sasha Levin
From: Martin Willi [ Upstream commit 09db51241118aeb06e1c8cd393b45879ce099b36 ] On ESP output, sk_wmem_alloc is incremented for the added padding if a socket is associated to the skb. When replying with TCP SYNACKs over IPsec, the associated sk is a casted request socket, only. Increasing

[PATCH AUTOSEL 4.19 03/48] clk: sunxi: A31: Fix wrong AHB gate number

2019-03-13 Thread Sasha Levin
From: Andre Przywara [ Upstream commit ee0b27a3a4da0b0ed2318aa092f8856896e9450b ] According to the manual the gate clock for MMC3 is at bit 11, and NAND1 is controlled by bit 12. Fix the gate bit definitions in the clock driver. Fixes: c6e6c96d8fa6 ("clk: sunxi-ng: Add A31/A31s clocks")

[PATCH AUTOSEL 4.19 05/48] ARM: 8824/1: fix a migrating irq bug when hotplug cpu

2019-03-13 Thread Sasha Levin
From: Dietmar Eggemann [ Upstream commit 1b5ba350784242eb1f899bcffd95d2c7cff61e84 ] Arm TC2 fails cpu hotplug stress test. This issue was tracked down to a missing copy of the new affinity cpumask for the vexpress-spc interrupt into struct irq_common_data.affinity when the interrupt is

[PATCH AUTOSEL 4.19 02/48] kallsyms: Handle too long symbols in kallsyms.c

2019-03-13 Thread Sasha Levin
From: Eugene Loh [ Upstream commit 6db2983cd8064808141ccefd75218f5b4345ffae ] When checking for symbols with excessively long names, account for null terminating character. Fixes: f3462aa952cf ("Kbuild: Handle longer symbols in kallsyms.c") Signed-off-by: Eugene Loh Acked-by: Ard Biesheuvel

[PATCH AUTOSEL 4.20 47/60] ixgbe: don't do any AF_XDP zero-copy transmit if netif is not OK

2019-03-13 Thread Sasha Levin
From: Jan Sokolowski [ Upstream commit c685c69fba71462c3f9f6a1fb6151cded6c74d42 ] An issue has been found while testing zero-copy XDP that causes a reset to be triggered. As it takes some time to turn the carrier on after setting zc, and we already start trying to transmit some packets,

[PATCH AUTOSEL 4.20 54/60] nfp: bpf: fix code-gen bug on BPF_ALU | BPF_XOR | BPF_K

2019-03-13 Thread Sasha Levin
From: Jiong Wang [ Upstream commit 71c190249f0ced5b26377ea6bf829ab3af77a40c ] The intended optimization should be A ^ 0 = A, not A ^ -1 = A. Fixes: cd7df56ed3e6 ("nfp: add BPF to NFP code translator") Reviewed-by: Jakub Kicinski Signed-off-by: Jiong Wang Signed-off-by: Daniel Borkmann

Re: [PATCH 0/3] userfaultfd: allow to forbid unprivileged users

2019-03-13 Thread Paolo Bonzini
> On Wed, Mar 13, 2019 at 09:22:31AM +0100, Paolo Bonzini wrote: > Unless somebody suggests a consistent way to make hugetlbfs "just > work" (like we could achieve clean with CRIU and KVM), I think Oracle > will need a one liner change in the Oracle setup to echo into that > file in addition of

[PATCH AUTOSEL 4.20 48/60] ARCv2: don't assume core 0x54 has dual issue

2019-03-13 Thread Sasha Levin
From: Vineet Gupta [ Upstream commit 7b2e932f633bcb7b190fc7031ce6dac75f8c3472 ] The first release of core4 (0x54) was dual issue only (HS4x). Newer releases allow hardware to be configured as single issue (HS3x) or dual issue. Prevent accessing a HS4x only aux register in HS3x, which otherwise

[PATCH AUTOSEL 4.20 45/60] ARCv2: support manual regfile save on interrupts

2019-03-13 Thread Sasha Levin
From: Vineet Gupta [ Upstream commit e494239a007e601448110ac304fe055951f9de3b ] There's a hardware bug which affects the HSDK platform, triggered by micro-ops for auto-saving regfile on taken interrupt. The workaround is to inhibit autosave. Signed-off-by: Vineet Gupta Signed-off-by: Sasha

[PATCH AUTOSEL 4.20 34/60] kasan, slub: move kasan_poison_slab hook before page_address

2019-03-13 Thread Sasha Levin
From: Andrey Konovalov [ Upstream commit a71012242837fe5e67d8c999cfc357174ed5dba0 ] With tag based KASAN page_address() looks at the page flags to see whether the resulting pointer needs to have a tag set. Since we don't want to set a tag when page_address() is called on SLAB pages, we call

[PATCH AUTOSEL 4.20 35/60] mm: handle lru_add_drain_all for UP properly

2019-03-13 Thread Sasha Levin
From: Michal Hocko [ Upstream commit 6ea183d60c469560e7b08a83c9804299e84ec9eb ] Since for_each_cpu(cpu, mask) added by commit 2d3854a37e8b767a ("cpumask: introduce new API, without changing anything") did not evaluate the mask argument if NR_CPUS == 1 due to CONFIG_SMP=n, lru_add_drain_all() is

[PATCH AUTOSEL 4.20 39/60] kasan, slab: make freelist stored without tags

2019-03-13 Thread Sasha Levin
From: Andrey Konovalov [ Upstream commit 51dedad06b5f6c3eea7ec1069631b1ef7796912a ] Similarly to "kasan, slub: move kasan_poison_slab hook before page_address", move kasan_poison_slab() before alloc_slabmgmt(), which calls page_address(), to make page_address() return value to be non-tagged.

[PATCH AUTOSEL 4.20 43/60] ARCv2: lib: memcpy: fix doing prefetchw outside of buffer

2019-03-13 Thread Sasha Levin
From: Eugeniy Paltsev [ Upstream commit f8a15f97664178f27dfbf86a38f780a532cb6df0 ] ARCv2 optimized memcpy uses PREFETCHW instruction for prefetching the next cache line but doesn't ensure that the line is not past the end of the buffer. PRETECHW changes the line ownership and marks it dirty,

[PATCH AUTOSEL 4.20 36/60] psi: avoid divide-by-zero crash inside virtual machines

2019-03-13 Thread Sasha Levin
From: Johannes Weiner [ Upstream commit 4e37504d1c49eec6434d0cc97278d2b51c9e8763 ] We've been seeing hard-to-trigger psi crashes when running inside VM instances: divide error: [#1] SMP PTI Modules linked in: [...] CPU: 0 PID: 212 Comm: kworker/0:2 Not tainted

[PATCH AUTOSEL 4.20 26/60] qed: Fix iWARP syn packet mac address validation.

2019-03-13 Thread Sasha Levin
From: Michal Kalderon [ Upstream commit 8be3dadf04050c2907760ec1955ca1c8fbc25585 ] The ll2 forwards all syn packets to the driver without validating the mac address. Add validation check in the driver's iWARP listener flow and drop the packet if it isn't intended for the device. Signed-off-by:

[PATCH AUTOSEL 4.20 33/60] net: marvell: mvneta: fix DMA debug warning

2019-03-13 Thread Sasha Levin
From: Russell King [ Upstream commit a8fef9ba58c9966ddb1fec916d8d8137c9d8bc89 ] Booting 4.20 on SolidRun Clearfog issues this warning with DMA API debug enabled: WARNING: CPU: 0 PID: 555 at kernel/dma/debug.c:1230 check_sync+0x514/0x5bc mvneta f107.ethernet: DMA-API: device driver tries to

[PATCH AUTOSEL 4.20 22/60] mailbox: bcm-flexrm-mailbox: Fix FlexRM ring flush timeout issue

2019-03-13 Thread Sasha Levin
From: Rayagonda Kokatanur [ Upstream commit d7bf31a0f85faaf63c63c39d55154825a1eaaea9 ] RING_CONTROL reg was not written due to wrong address, hence all the subsequent ring flush was timing out. Fixes: a371c10ea4b3 ("mailbox: bcm-flexrm-mailbox: Fix FlexRM ring flush sequence") Signed-off-by:

[PATCH AUTOSEL 4.20 30/60] arm64: Relax GIC version check during early boot

2019-03-13 Thread Sasha Levin
From: Vladimir Murzin [ Upstream commit 74698f6971f25d045301139413578865fc2bd8f9 ] Updates to the GIC architecture allow ID_AA64PFR0_EL1.GIC to have values other than 0 or 1. At the moment, Linux is quite strict in the way it handles this field at early boot stage (cpufeature is fine) and will

[PATCH AUTOSEL 4.20 28/60] ARM: dts: am335x-evmsk: Fix PHY mode for ethernet

2019-03-13 Thread Sasha Levin
From: Peter Ujfalusi [ Upstream commit 759c962d3c9bb1a60e3b4b780daa66ee6d4be13a ] The PHY must add both tx and rx delay and not only on the tx clock. The board uses AR8031_AL1A PHY where the rx delay is enabled by default, the tx dealy is disabled. The reason why rgmii-txid worked because the

[PATCH AUTOSEL 4.20 18/60] qmi_wwan: apply SET_DTR quirk to Sierra WP7607

2019-03-13 Thread Sasha Levin
From: Beniamino Galvani [ Upstream commit 97dc47a1308a3af46a09b1546cfb869f2e382a81 ] The 1199:68C0 USB ID is reused by Sierra WP7607 which requires the DTR quirk to be detected. Apply QMI_QUIRK_SET_DTR unconditionally as already done for other IDs shared between different devices.

[PATCH AUTOSEL 4.20 17/60] pinctrl: meson: meson8b: fix the sdxc_a data 1..3 pins

2019-03-13 Thread Sasha Levin
From: Martin Blumenstingl [ Upstream commit c17abcfa93bf0be5e48bb011607d237ac2bfc839 ] Fix the mismatch between the "sdxc_d13_1_a" pin group definition from meson8b_cbus_groups and the entry in sdxc_a_groups ("sdxc_d0_13_1_a"). This makes it possible to use "sdxc_d13_1_a" in device-tree files

[PATCH AUTOSEL 4.20 13/60] keys: Fix dependency loop between construction record and auth key

2019-03-13 Thread Sasha Levin
From: David Howells [ Upstream commit 822ad64d7e46a8e2c8b8a796738d7b657cbb146d ] In the request_key() upcall mechanism there's a dependency loop by which if a key type driver overrides the ->request_key hook and the userspace side manages to lose the authorisation key, the auth key and the

[PATCH AUTOSEL 4.20 12/60] assoc_array: Fix shortcut creation

2019-03-13 Thread Sasha Levin
From: David Howells [ Upstream commit bb2ba2d75a2d673e76ddaf13a9bd30d6a8b1bb08 ] Fix the creation of shortcuts for which the length of the index key value is an exact multiple of the machine word size. The problem is that the code that blanks off the unused bits of the shortcut value

[PATCH AUTOSEL 4.20 08/60] bpf: fix lockdep false positive in stackmap

2019-03-13 Thread Sasha Levin
From: Alexei Starovoitov [ Upstream commit 3defaf2f15b2bfd86c6664181ac009e91985f8ac ] Lockdep warns about false positive: [ 11.211460] [ cut here ] [ 11.211936] DEBUG_LOCKS_WARN_ON(depth <= 0) [ 11.211985] WARNING: CPU: 0 PID: 141 at

[PATCH AUTOSEL 4.20 01/60] clk: sunxi-ng: v3s: Fix TCON reset de-assert bit

2019-03-13 Thread Sasha Levin
From: Paul Kocialkowski [ Upstream commit 5c59801f7018acba11b12de59017a3fcdcf7421d ] According to the datasheet and the reference code from Allwinner, the bit used to de-assert the TCON reset is bit 4, not bit 3. Fix it in the V3s CCU driver. Signed-off-by: Paul Kocialkowski Signed-off-by:

[PATCH AUTOSEL 4.20 04/60] esp: Skip TX bytes accounting when sending from a request socket

2019-03-13 Thread Sasha Levin
From: Martin Willi [ Upstream commit 09db51241118aeb06e1c8cd393b45879ce099b36 ] On ESP output, sk_wmem_alloc is incremented for the added padding if a socket is associated to the skb. When replying with TCP SYNACKs over IPsec, the associated sk is a casted request socket, only. Increasing

Re: [PATCH 1/3] arm64: dts: fsl: librem5: Add a device tree for the Librem5 devkit

2019-03-13 Thread Rob Herring
On Mon, Mar 11, 2019 at 6:47 PM Angus Ainslie (Purism) wrote: > > This is the development kit for the Librem 5. The current level of support > yields a working console and is able to boot userspace from the network > or eMMC. > > Additional subsystems that are active : > > - Both USB ports > - SD

Re: [PATCH v2 5/5] mm: Remove stale comment from page struct

2019-03-13 Thread Christopher Lameter
Acked-by: Christoph Lameter

Re: [PATCH v2 4/5] slob: Use slab_list instead of lru

2019-03-13 Thread Christopher Lameter
On Wed, 13 Mar 2019, Tobin C. Harding wrote: > @@ -297,7 +297,7 @@ static void *slob_alloc(size_t size, gfp_t gfp, int > align, int node) > continue; > > /* Attempt to alloc */ > - prev = sp->lru.prev; > + prev = sp->slab_list.prev; >

Re: [PATCH] svm: Fix AVIC incomplete IPI emulation

2019-03-13 Thread Suthikulpanit, Suravee
Oren On 3/13/19 8:05 PM, Oren Twaig wrote: > Hi Suravee, > > Turns out, the _same_ bug was already discussed in the past by > yourself, Paolo and Radim (both now 'cc'-ed) > > Please read it here: > https://patchwork.kernel.org/patch/8292231/ > > > After reading that thread, I have couple of 

Re: [PATCH v2 2/5] slub: Use slab_list instead of lru

2019-03-13 Thread Christopher Lameter
Acked-by: Christoph Lameter

Re: [PATCH v2] lib/string.c: implement a basic bcmp

2019-03-13 Thread Steven Rostedt
On Wed, 13 Mar 2019 11:51:09 -0700 Nick Desaulniers wrote: > > This is confusing where the comment says "like memcmp but .." and then > > just returns memcmp() unmodified. If anything, I would expect to see > > > > return !!memcmp(cs, ct, conut); > > That's more work than strictly

Re: [PATCH 1/2] gcc-plugins: structleak: Generalize to all variable types

2019-03-13 Thread Kees Cook
On Mon, Mar 11, 2019 at 4:05 PM Alexander Popov wrote: > Hello Kees, hello everyone, > > On 12.02.2019 21:04, Kees Cook wrote: > > Building with CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF_ALL should give the > > kernel complete initialization coverage of all stack variables passed > > by reference,

Re: [PATCH v2 1/5] slub: Add comments to endif pre-processor macros

2019-03-13 Thread Christopher Lameter
Acked-by: Christoph Lameter

My Greeting

2019-03-13 Thread M Magoko
My Greeting, Did you receive the letter i sent to you. Please answer me. Best Regard, Maureen magoko.

Re: overlayfs vs. fscrypt

2019-03-13 Thread Theodore Ts'o
On Wed, Mar 13, 2019 at 10:45:04AM -0700, James Bottomley wrote: > > If they can't break root, then the OS's user-id based access > > control checks (or SELinux checks if you are using SELinux) will > > still protect you. > > Well, that's what one would think about the recent runc exploit as >

Re: [PATCH] staging: comedi: ni_mio_common: Fix divide-by-zero for DIO cmdtest

2019-03-13 Thread Ian Abbott
On 04/03/2019 14:33, Ian Abbott wrote: `ni_cdio_cmdtest()` validates Comedi asynchronous commands for the DIO subdevice (subdevice 2) of supported National Instruments M-series cards. It is called when handling the `COMEDI_CMD` and `COMEDI_CMDTEST` ioctls for this subdevice. There are two

Re: [PATCH 0/3] userfaultfd: allow to forbid unprivileged users

2019-03-13 Thread Andrea Arcangeli
Hello, On Wed, Mar 13, 2019 at 09:22:31AM +0100, Paolo Bonzini wrote: > On 13/03/19 07:00, Peter Xu wrote: > >> However, I can imagine more special cases being added for other users. > >> And, > >> once you have more than one special case then you may want to combine them. > >> For example, kvm

Re: [PATCH v2] lib/string.c: implement a basic bcmp

2019-03-13 Thread Nick Desaulniers
On Wed, Mar 13, 2019 at 11:40 AM Steven Rostedt wrote: > > On Wed, 13 Mar 2019 11:17:15 -0700 > Nick Desaulniers wrote: > > > +#ifndef __HAVE_ARCH_BCMP > > +/** > > + * bcmp - Like memcmp but a non-zero return code simply indicates a > > non-match. > > + * @cs: One area of memory. > > + * @ct:

Re: [RFC] sched/fair: hard lockup in sched_cfs_period_timer

2019-03-13 Thread Phil Auld
On Wed, Mar 13, 2019 at 10:44:09AM -0700 bseg...@google.com wrote: > Phil Auld writes: > > > On Mon, Mar 11, 2019 at 04:25:36PM -0400 Phil Auld wrote: > >> On Mon, Mar 11, 2019 at 10:44:25AM -0700 bseg...@google.com wrote: > >> > Letting it spin for 100ms and then only increasing by 6% seems

[RFC PATCH linus] perf/x86/intel: dev_attr_allow_tsx_force_abort can be static

2019-03-13 Thread kbuild test robot
Fixes: 400816f60c54 ("perf/x86/intel: Implement support for TSX Force Abort") Signed-off-by: kbuild test robot --- core.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c index 35102ec..baa7a2e 100644 ---

arch/x86/events/intel/core.c:4145:1: sparse: symbol 'dev_attr_allow_tsx_force_abort' was not declared. Should it be static?

2019-03-13 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 5453a3df2a5eb49bc24615d4cf0d66b2aae05e5f commit: 400816f60c543153656ac74eaf7f36f6b7202378 perf/x86/intel: Implement support for TSX Force Abort date: 7 days ago reproduce: # apt-get install sparse

[PATCH v3 1/6] mm: prepare to premature release of memcg->vmstats_percpu

2019-03-13 Thread Roman Gushchin
Prepare to handle premature release of memcg->vmstats_percpu data. Currently it's a generic pointer which is expected to be non-NULL during the whole life time of a memcg. Switch over to the rcu-protected pointer, and carefully check it for being non-NULL. This change is a required step towards

[PATCH v3 4/6] mm: release per-node memcg percpu data prematurely

2019-03-13 Thread Roman Gushchin
Similar to memcg-level statistics, per-node data isn't expected to be hot after cgroup removal. Switching over to atomics and prematurely releasing percpu data helps to reduce the memory footprint of dying cgroups. Signed-off-by: Roman Gushchin Acked-by: Johannes Weiner ---

Re: [GIT PULL] SELinux fixes for v5.1 (#1)

2019-03-13 Thread pr-tracker-bot
The pull request you sent on Tue, 12 Mar 2019 19:12:50 -0400: > git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux.git > tags/selinux-pr-20190312 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/fa3d493f7a573b4e4e2538486e912093a0161c1b Thank you! --

[PATCH v3 6/6] mm: refactor memcg_hotplug_cpu_dead() to use memcg_flush_offline_percpu()

2019-03-13 Thread Roman Gushchin
It's possible to remove a big chunk of the redundant code by making memcg_flush_offline_percpu() to take cpumask as an argument and flush percpu data on all cpus belonging to the mask instead of all possible cpus. Then memcg_hotplug_cpu_dead() can call it with a single CPU bit set. This approach

Re: [PATCH v2] lib/string.c: implement a basic bcmp

2019-03-13 Thread Steven Rostedt
On Wed, 13 Mar 2019 11:17:15 -0700 Nick Desaulniers wrote: > +#ifndef __HAVE_ARCH_BCMP > +/** > + * bcmp - Like memcmp but a non-zero return code simply indicates a > non-match. > + * @cs: One area of memory. > + * @ct: Another area of memory. > + * @count: The size of the areas. > + */ >

[PATCH v3 0/6] mm: reduce the memory footprint of dying memory cgroups

2019-03-13 Thread Roman Gushchin
A cgroup can remain in the dying state for a long time, being pinned in the memory by any kernel object. It can be pinned by a page, shared with other cgroup (e.g. mlocked by a process in the other cgroup). It can be pinned by a vfs cache object, etc. Mostly because of percpu data, the size of a

[PATCH v3 5/6] mm: flush memcg percpu stats and events before releasing

2019-03-13 Thread Roman Gushchin
Flush percpu stats and events data to corresponding before releasing percpu memory. Although per-cpu stats are never exactly precise, dropping them on floor regularly may lead to an accumulation of an error. So, it's safer to flush them before releasing. To minimize the number of atomic updates,

Re: [GIT PULL] apparmor updates for v5.1

2019-03-13 Thread pr-tracker-bot
The pull request you sent on Tue, 12 Mar 2019 05:23:30 -0700: > git://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor > tags/apparmor-pr-2019-03-12 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/8636b1dbce854363cd98922b3e4b49a603c4d5fd Thank you! --

[PATCH v3 2/6] mm: prepare to premature release of per-node lruvec_stat_cpu

2019-03-13 Thread Roman Gushchin
Similar to the memcg's vmstats_percpu, per-memcg per-node stats consists of percpu- and atomic counterparts, and we do expect that both coexist during the whole life-cycle of the memcg. To prepare for a premature release of percpu per-node data, let's pretend that lruvec_stat_cpu is a

[PATCH v3 3/6] mm: release memcg percpu data prematurely

2019-03-13 Thread Roman Gushchin
To reduce the memory footprint of a dying memory cgroup, let's release massive percpu data (vmstats_percpu) as early as possible, and use atomic counterparts instead. A dying cgroup can remain in the dying state for quite a long time, being pinned in memory by any reference. For example, if a

Re: [PATCH 09/10] mm/hmm: allow to mirror vma of a file on a DAX backed filesystem

2019-03-13 Thread Jerome Glisse
On Wed, Mar 13, 2019 at 09:06:04AM -0700, Andrew Morton wrote: > On Tue, 12 Mar 2019 20:10:19 -0400 Jerome Glisse wrote: > > > > You're correct. We chose to go this way because the HMM code is so > > > large and all-over-the-place that developing it in a standalone tree > > > seemed impractical

[no subject]

2019-03-13 Thread Dr.Baker Foster
-- Did you receive my previous message ? Please reply to me. __ هل تلقيت رسالتي السابقة؟ الرجاء الرد علي

Re: [PATCH 00/10] HMM updates for 5.1

2019-03-13 Thread Jerome Glisse
On Wed, Mar 13, 2019 at 09:10:04AM -0700, Andrew Morton wrote: > On Tue, 12 Mar 2019 21:27:06 -0400 Jerome Glisse wrote: > > > Andrew you will not be pushing this patchset in 5.1 ? > > I'd like to. It sounds like we're converging on a plan. > > It would be good to hear more from the driver

Re: [PATCH 3/3] RISC-V: Allow booting kernel from any 4KB aligned address

2019-03-13 Thread Mike Rapoport
On Tue, Mar 12, 2019 at 10:08:22PM +, Anup Patel wrote: > Currently, we have to boot RISCV64 kernel from a 2MB aligned physical > address and RISCV32 kernel from a 4MB aligned physical address. This > constraint is because initial pagetable setup (i.e. setup_vm()) maps > entire RAM using

Re: [PATCH v7 02/15] sched/core: uclamp: Enforce last task UCLAMP_MAX

2019-03-13 Thread Patrick Bellasi
On 13-Mar 18:29, Peter Zijlstra wrote: > On Wed, Mar 13, 2019 at 04:20:51PM +, Patrick Bellasi wrote: > > On 13-Mar 15:10, Peter Zijlstra wrote: > > > On Fri, Feb 08, 2019 at 10:05:41AM +, Patrick Bellasi wrote: > > > > +uclamp_idle_value(struct rq *rq, unsigned int clamp_id, unsigned int

Re: [PATCH v2] PCI: qcom: Use default config space read function

2019-03-13 Thread Srinivas Kandagatla
Hi Marc, On 13/03/2019 11:45, Marc Gonzalez wrote: We don't need to fudge the device class in qcom_pcie_rd_own_conf() because dw_pcie_setup_rc() already does the right thing: /* Program correct class for RC */ dw_pcie_wr_own_conf(pp, PCI_CLASS_DEVICE, 2, PCI_CLASS_BRIDGE_PCI);

Re: [PATCH] ARM: dma-mapping: always clear allocated buffers in __alloc_from_pool

2019-03-13 Thread Christoph Hellwig
On Tue, Mar 12, 2019 at 05:16:37PM +0800, Yue Haibing wrote: > From: YueHaibing > > Like commit 518a2f1925c3 ("dma-mapping: zero memory returned > from dma_alloc_*"), if we want to map memory from the DMA > allocator to userspace it must be zeroed at allocation time > to prevent stale data

[GIT PULL] clk changes for the merge window

2019-03-13 Thread Stephen Boyd
The following changes since commit 5908e6b738e3357af42c10e1183753c70a0117a9: Linux 5.0-rc8 (2019-02-24 16:46:45 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git tags/clk-for-linus for you to fetch changes up to

[GIT PULL] remoteproc updates for v5.1

2019-03-13 Thread Bjorn Andersson
The following changes since commit bfeffd155283772bbe78c6a05dec7c0128ee500c: Linux 5.0-rc1 (2019-01-06 17:08:20 -0800) are available in the Git repository at: git://github.com/andersson/remoteproc tags/rproc-v5.1 for you to fetch changes up to d664ce75ae1c7c1e0e3fd8fa71f7ca779906a9be:

Re: [PATCH v2 6/6] mm: refactor memcg_hotplug_cpu_dead() to use memcg_flush_offline_percpu()

2019-03-13 Thread Roman Gushchin
On Wed, Mar 13, 2019 at 12:07:49PM -0400, Johannes Weiner wrote: > On Tue, Mar 12, 2019 at 03:34:04PM -0700, Roman Gushchin wrote: > > @@ -2180,50 +2179,8 @@ static int memcg_hotplug_cpu_dead(unsigned int cpu) > > + for_each_mem_cgroup(memcg) > > + memcg_flush_offline_percpu(memcg,

Re: [PATCH v2 5/6] mm: flush memcg percpu stats and events before releasing

2019-03-13 Thread Roman Gushchin
On Wed, Mar 13, 2019 at 12:00:17PM -0400, Johannes Weiner wrote: > On Tue, Mar 12, 2019 at 03:34:02PM -0700, Roman Gushchin wrote: > > Flush percpu stats and events data to corresponding before releasing > > percpu memory. > > > > Although per-cpu stats are never exactly precise, dropping them on

Re: [PATCH 4.9 00/96] 4.9.163-stable review

2019-03-13 Thread Daniel Díaz
Hello! On Wed, 13 Mar 2019 at 11:58, Greg Kroah-Hartman wrote: > > On Wed, Mar 13, 2019 at 08:14:29AM -0700, Greg Kroah-Hartman wrote: > > On Wed, Mar 13, 2019 at 07:44:34AM -0700, Guenter Roeck wrote: > > > On Tue, Mar 12, 2019 at 10:09:18AM -0700, Greg Kroah-Hartman wrote: > > > > This is the

Re: [PATCH v7 01/15] sched/core: uclamp: Add CPU's clamp buckets refcounting

2019-03-13 Thread Patrick Bellasi
On 13-Mar 18:22, Peter Zijlstra wrote: > On Wed, Mar 13, 2019 at 04:12:29PM +, Patrick Bellasi wrote: > > Yes, the for looks better, but perhaps like that: > > > > unsigned int bucket_id = UCLAMP_BUCKETS; > > > > /* > > * Both min and max clamps are MAX aggregated, thus the

RE: [PATCH linux-next v2 1/2] ASoC: rsnd: src: Avoid a potential deadlock

2019-03-13 Thread Fabrizio Castro
Hello Jiada, > From: Jiada Wang > Sent: 13 March 2019 11:56 > Subject: Re: [PATCH linux-next v2 1/2] ASoC: rsnd: src: Avoid a potential > deadlock > > Hi Geert > > On 2019/03/12 18:15, Geert Uytterhoeven wrote: > > Hi Jiada, Fabrizio, > > > > On Thu, Mar 7, 2019 at 7:17 AM Jiada Wang wrote:

drivers/net/wireless//intel/iwlwifi/mvm/ftm-initiator.c:465:2: note: in expansion of macro 'do_div'

2019-03-13 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 5453a3df2a5eb49bc24615d4cf0d66b2aae05e5f commit: 937b10c0de68c56512fb8cd484af3c0b356fc09e iwlwifi: mvm: add debug prints for FTM date: 4 weeks ago config: mips-allmodconfig (attached as .config) compiler:

[PATCH v2] lib/string.c: implement a basic bcmp

2019-03-13 Thread Nick Desaulniers
A recent optimization in Clang (r355672) lowers comparisons of the return value of memcmp against zero to comparisons of the return value of bcmp against zero. This helps some platforms that implement bcmp more efficiently than memcmp. glibc simply aliases bcmp to memcmp, but an optimized

Re: KASAN: null-ptr-deref Read in reclaim_high

2019-03-13 Thread Eric Biggers
On Wed, Mar 13, 2019 at 09:24:21AM +0100, 'Dmitry Vyukov' via syzkaller-bugs wrote: > On Tue, Mar 12, 2019 at 11:50 PM Eric Biggers wrote: > > > > On Tue, Mar 12, 2019 at 09:33:44AM +0100, 'Dmitry Vyukov' via > > syzkaller-bugs wrote: > > > On Tue, Mar 12, 2019 at 7:25 AM Andrew Morton > > >

Re: [PATCH] libfdt: prefix header search paths with $(srctree)/

2019-03-13 Thread Rob Herring
On Wed, Mar 13, 2019 at 12:36 PM Masahiro Yamada wrote: > > On Mon, Feb 11, 2019 at 10:43 AM Masahiro Yamada > wrote: > > > > Hi Rob, > > > > > > On Fri, Jan 25, 2019 at 12:42 PM Masahiro Yamada > > wrote: > > > > > > Currently, the Kbuild core manipulates header search paths in a crazy > > >

Re: [PATCH 2/3] RISC-V: Make setup_vm() independent of GCC code model

2019-03-13 Thread Mike Rapoport
On Tue, Mar 12, 2019 at 10:08:16PM +, Anup Patel wrote: > The setup_vm() must access kernel symbols in a position independent way > because it will be called from head.S with MMU off. > > If we compile kernel with cmodel=medany then PC-relative addressing will > be used in setup_vm() to

Re: [PATCH] lib/string.c: implement a basic bcmp

2019-03-13 Thread Nick Desaulniers
On Wed, Mar 13, 2019 at 11:02 AM Nick Desaulniers wrote: > > A recent optimization in Clang (r355672) lowers comparisons of the > return value of memcmp against zero to comparisons of the return value > of bcmp against zero. This helps some platforms that implement bcmp > more efficiently than

Re: [PATCH tip/core/rcu 06/19] rcu: Add warning to detect half-interrupts

2019-03-13 Thread Paul E. McKenney
On Wed, Mar 13, 2019 at 12:51:25PM -0400, Steven Rostedt wrote: > On Wed, 13 Mar 2019 08:51:55 -0700 > "Paul E. McKenney" wrote: > > > Does this mean that there is a better approach that Joel's suggestion? > > I believe he would end up with something like this: > > > >

[RESEND PATCH] mm/compaction: fix an undefined behaviour

2019-03-13 Thread Qian Cai
In a low-memory situation, cc->fast_search_fail can keep increasing as it is unable to find an available page to isolate in fast_isolate_freepages(). As the result, it could trigger an error below, so just compare with the maximum bits can be shifted first. UBSAN: Undefined behaviour in

[PATCH] lib/string.c: implement a basic bcmp

2019-03-13 Thread Nick Desaulniers
A recent optimization in Clang (r355672) lowers comparisons of the return value of memcmp against zero to comparisons of the return value of bcmp against zero. This helps some platforms that implement bcmp more efficiently than memcmp. glibc simply aliases bcmp to memcmp, but an optimized

Re: [LSF/MM TOPIC] Using XArray to manage the VMA

2019-03-13 Thread Matthew Wilcox
On Wed, Mar 13, 2019 at 04:10:14PM +0100, Laurent Dufour wrote: > If this is not too late and if there is still place available, I would like > to attend the MM track and propose a topic about using the XArray to replace > the VMA's RB tree and list. If there isn't room on the schedule, then

<    1   2   3   4   5   6   7   8   9   >