Re: [RFC PATCH] Implement /proc/pid/kill

2018-11-12 Thread Pavel Machek
Hi! > Add a simple proc-based kill interface. To use /proc/pid/kill, just > write the signal number in base-10 ASCII to the kill file of the > process to be killed: for example, 'echo 9 > /proc/$$/kill'. > > Semantically, /proc/pid/kill works like kill(2), except that the > process ID comes from

Re: Official Linux system wrapper library?

2018-11-12 Thread Joseph Myers
On Mon, 12 Nov 2018, Daniel Colascione wrote: > I initially wanted to put the APIs in libc. I still do. But that's > proving to be impractical, for the reasons we're discussing on this > thread. Well, your proposed APIs didn't attract consensus among libc developers. > > (I can imagine *other*

Re: [Letux-kernel] [PATCH RFC] bluetooth: add uart h4 devices via serdev/devicetree

2018-11-12 Thread Rob Herring
On Mon, Nov 12, 2018 at 4:27 PM Sebastian Reichel wrote: > > Hi, > > On Mon, Nov 12, 2018 at 10:19:02PM +0100, H. Nikolaus Schaller wrote: > > > Am 12.11.2018 um 21:59 schrieb Andreas Kemnade : > > > On Sun, 11 Nov 2018 03:46:48 +0100 > > > Sebastian Reichel wrote: > > >> On Sun, Nov 11, 2018 at

Re: [PATCH v9 1/2] dt-bindings: clock: Introduce QCOM LPASS clock bindings

2018-11-12 Thread Rob Herring
On Sat, Nov 10, 2018 at 07:14:15AM +0530, Taniya Das wrote: > Add device tree bindings for Low Power Audio subsystem clock controller for > Qualcomm Technology Inc's SDM845 SoCs. > > Signed-off-by: Taniya Das > --- > .../devicetree/bindings/clock/qcom,gcc.txt | 16 + Seems

Re: BUG: KASAN: slab-out-of-bounds in selinux_sctp_bind_connect+0x60/0x150

2018-11-12 Thread Paul Moore
On Mon, Nov 12, 2018 at 2:39 PM Qian Cai wrote: > > Running the trinity fuzzer on the latest mainline (rc2) generates this, > > [15029.879626] BUG: KASAN: slab-out-of-bounds in > selinux_sctp_bind_connect+0x60/0x150 > [15029.887275] Read of size 2 at addr 801ec53c5080 by task >

Re: kobject lifetime issues in blk-mq

2018-11-12 Thread Ming Lei
On Tue, Nov 13, 2018 at 08:22:26AM +0800, Ming Lei wrote: > On Mon, Nov 12, 2018 at 12:02:36PM -0800, Greg Kroah-Hartman wrote: > > On Mon, Nov 12, 2018 at 08:48:48AM -0800, Guenter Roeck wrote: > > > On Mon, Nov 12, 2018 at 05:44:07PM +0800, Ming Lei wrote: > > > > On Mon, Nov 12, 2018 at

Re: [PATCH 4.19 000/361] 4.19.2-stable review

2018-11-12 Thread Guenter Roeck
On Sun, Nov 11, 2018 at 02:15:47PM -0800, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.19.2 release. > There are 361 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

Re: [PATCH 3/4] dt-bindings: reset: uniphier: Add AHCI core reset description

2018-11-12 Thread Kunihiko Hayashi
Hi Philipp, On Mon, 12 Nov 2018 15:21:46 +0100 wrote: > Hi, > > On Mon, 2018-11-12 at 21:02 +0900, Kunihiko Hayashi wrote: > > Hi, > > > > Thank you for some comments and pointing out. > > > > On Sat, 10 Nov 2018 01:14:06 +0900 wrote: > > > > > On Sat, Nov 10, 2018 at 12:02 AM Philipp

Re: [PATCH v4 6/6] arch: Move initrd= parsing into do_mounts_initrd.c

2018-11-12 Thread Vineet Gupta
On 11/12/18 4:52 PM, Florian Fainelli wrote: > On 11/12/18 4:40 PM, Vineet Gupta wrote: >> On 11/12/18 4:38 PM, Florian Fainelli wrote: > #ifdef CONFIG_BLK_DEV_INITRD > - if (initrd_start) > - memblock_reserve(__pa(initrd_start), initrd_end - initrd_start); > + if

Re: [PATCH 4.18 000/350] 4.18.19-stable review

2018-11-12 Thread Guenter Roeck
On Sun, Nov 11, 2018 at 02:17:44PM -0800, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.18.19 release. > There are 350 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

Re: [PATCH] staging: vc04_services: bcm2835-audio: Fixed warnings, checks

2018-11-12 Thread gre...@linuxfoundation.org
On Mon, Nov 12, 2018 at 07:29:09PM -0500, Arnold Chand wrote: > Corrected warnings and checks issued by scripts/checkpatch.pl which includes: > alignment of > parenthesis, lines over 80 characters and mutex definition without comment. > Signed-off-by: Arnold Chand --- >

[PATCH 4/6] autofs - use struct for mount params

2018-11-12 Thread Ian Kent
Use a structure to hold parsed parameters to simplify the autofs_parse_options() function call. Also seperate option parsing and applying the options into seperate functions. Signed-off-by: Ian Kent --- fs/autofs/inode.c | 193 - 1 file

[PATCH 3/6] autofs - refactor super block info init

2018-11-12 Thread Ian Kent
Move the allocation and initialisation of the super block info struct to its own function. Signed-off-by: Ian Kent --- fs/autofs/inode.c | 46 ++ 1 file changed, 26 insertions(+), 20 deletions(-) diff --git a/fs/autofs/inode.c b/fs/autofs/inode.c

[PATCH 1/6] autofs - improve ioctl sbi checks

2018-11-12 Thread Ian Kent
Al Viro made some suggestions to improve the implementation of commit 0633da48f0 "fix autofs_sbi() does not check super block type". The check is unnessesary in all cases except for ioctl usage so placing the check in the super block accessor function adds a small overhead to the common case

[PATCH 2/6] autofs - fix possible inode leak in autofs_fill_super()

2018-11-12 Thread Ian Kent
There is no check at all for a failure to allocate the root inode in autofs_fill_super(), handle it. Signed-off-by: Ian Kent --- fs/autofs/inode.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/fs/autofs/inode.c b/fs/autofs/inode.c index

[resend PATCH 3/3] dt-bindings: pwm: update bindings for MT7629 SoC

2018-11-12 Thread Ryder Lee
This updates bindings for MT7629 pwm controller. Signed-off-by: Ryder Lee --- Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt

[resend PATCH 2/3] pwm: mediatek: add pwm support for MT7629 SoC

2018-11-12 Thread Ryder Lee
This adds pwm controller support for MT7629 SoC. Signed-off-by: Ryder Lee --- drivers/pwm/pwm-mediatek.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/pwm/pwm-mediatek.c b/drivers/pwm/pwm-mediatek.c index 9400c41..4ed95e5 100644 --- a/drivers/pwm/pwm-mediatek.c +++

[resend PATCH 1/3] pwm: mediatek: drop flag 'has_clks'

2018-11-12 Thread Ryder Lee
The flag 'has_clks' and related checks are superfluous as the CCF subsystem does this for you. Cc: John Crispin Signed-off-by: Ryder Lee --- drivers/pwm/pwm-mediatek.c | 20 +--- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/drivers/pwm/pwm-mediatek.c

Proposal

2018-11-12 Thread SGM John Dailey
Hello , My name is Sgt Major John Dailey. I am here in Afghanistan , I came upon a project I think we can work together on. I and my partner (1st Lt. Daniel Farkas ) have the sum of $15 Million United State Dollars which we got from a Crude Oil Deal in Iraq before he was killed by an explosion

Re: [PATCH 1/2] dt-bindings: phy: Add Qualcomm Synopsys High-Speed USB PHY binding

2018-11-12 Thread Shawn Guo
Hi Rob, On Mon, Nov 12, 2018 at 01:24:51PM -0600, Rob Herring wrote: > On Thu, Nov 08, 2018 at 03:04:48PM +0800, Shawn Guo wrote: > > From: Sriharsha Allenki > > > > It adds bindings for Synopsys 28nm femto phy controller that supports > > LS/FS/HS usb connectivity on Qualcomm chipsets. > > >

[PATCH] vmscan: return NODE_RECLAIM_NOSCAN in node_reclaim() when CONFIG_NUMA is n

2018-11-12 Thread Wei Yang
Commit fa5e084e43eb ("vmscan: do not unconditionally treat zones that fail zone_reclaim() as full") changed the return value of node_reclaim(). The original return value 0 means NODE_RECLAIM_SOME after this commit. While the return value of node_reclaim() when CONFIG_NUMA is n is not changed.

Re: [PATCH] vmscan: return NODE_RECLAIM_NOSCAN in node_reclaim() when CONFIG_NUMA is n

2018-11-12 Thread Matthew Wilcox
On Tue, Nov 13, 2018 at 12:17:50PM +0800, Wei Yang wrote: > Commit fa5e084e43eb ("vmscan: do not unconditionally treat zones that > fail zone_reclaim() as full") changed the return value of node_reclaim(). > The original return value 0 means NODE_RECLAIM_SOME after this commit. > > While the

[PATCH AUTOSEL 4.14 12/26] um: Give start_idle_thread() a return code

2018-11-12 Thread Sasha Levin
From: Richard Weinberger [ Upstream commit 7ff1e34bbdc15acab823b1ee4240e94623d50ee8 ] Fixes: arch/um/os-Linux/skas/process.c:613:1: warning: control reaches end of non-void function [-Wreturn-type] longjmp() never returns but gcc still warns that the end of the function can be reached. Add a

[PATCH AUTOSEL 4.14 14/26] platform/x86: intel_telemetry: report debugfs failure

2018-11-12 Thread Sasha Levin
From: Rajneesh Bhardwaj [ Upstream commit 8d98b1ef368feeb7720b8b9b6f3bd93f2ad892bc ] On some Goldmont based systems such as ASRock J3455M the BIOS may not enable the IPC1 device that provides access to the PMC and PUNIT. In such scenarios, the IOSS and PSS resources from the platform device can

[PATCH AUTOSEL 4.14 13/26] drm/edid: Add 6 bpc quirk for BOE panel.

2018-11-12 Thread Sasha Levin
From: "Lee, Shawn C" [ Upstream commit 922dceff8dc1fb4dafc9af78139ba65671408103 ] BOE panel (ID: 0x0771) that reports "DFP 1.x compliant TMDS". But it's 6bpc panel only instead of 8 bpc. Add panel ID to edid quirk list and set 6 bpc as default to work around this issue. Cc: Jani Nikula Cc:

[PATCH AUTOSEL 4.14 18/26] clk: samsung: exynos5420: Enable PERIS clocks for suspend

2018-11-12 Thread Sasha Levin
From: Marek Szyprowski [ Upstream commit b33228029d842269e17bba591609e83ed422005d ] Ensure that clocks for core SoC modules (including TZPC0..9 modules) are enabled for suspend/resume cycle. This fixes suspend/resume support on Exynos5422-based Odroid XU3/XU4 boards. Suggested-by: Joonyoung

[PATCH AUTOSEL 4.14 19/26] apparmor: Fix uninitialized value in aa_split_fqname

2018-11-12 Thread Sasha Levin
From: Zubin Mithra [ Upstream commit 250f2da49cb8e582215a65c03f50e8ddf5cd119c ] Syzkaller reported a OOB-read with the stacktrace below. This occurs inside __aa_lookupn_ns as `n` is not initialized. `n` is obtained from aa_splitn_fqname. In cases where `name` is invalid, aa_splitn_fqname

[PATCH AUTOSEL 4.14 26/26] mm: don't warn about large allocations for slab

2018-11-12 Thread Sasha Levin
From: Dmitry Vyukov [ Upstream commit 61448479a9f2c954cde0cfe778cb6bec5d0a748d ] Slub does not call kmalloc_slab() for sizes > KMALLOC_MAX_CACHE_SIZE, instead it falls back to kmalloc_large(). For slab KMALLOC_MAX_CACHE_SIZE == KMALLOC_MAX_SIZE and it calls kmalloc_slab() for all allocations

[PATCH AUTOSEL 4.9 04/17] reiserfs: propagate errors from fill_with_dentries() properly

2018-11-12 Thread Sasha Levin
From: Jann Horn [ Upstream commit b10298d56c9623f9b173f19959732d3184b35f4f ] fill_with_dentries() failed to propagate errors up to reiserfs_for_each_xattr() properly. Plumb them through. Note that reiserfs_for_each_xattr() is only used by reiserfs_delete_xattrs() and reiserfs_chown_xattrs().

[PATCH AUTOSEL 4.14 16/26] perf symbols: Set PLT entry/header sizes properly on Sparc

2018-11-12 Thread Sasha Levin
From: David Miller [ Upstream commit d6afa561e1471ccfdaf7191230c0c59a37e45a5b ] Using the sh_entsize for both values isn't correct. It happens to be correct on x86... For both 32-bit and 64-bit sparc, there are four PLT entries in the PLT section. Signed-off-by: David S. Miller Cc:

[PATCH AUTOSEL 4.14 21/26] platform/x86: acerhdf: Add BIOS entry for Gateway LT31 v1.3307

2018-11-12 Thread Sasha Levin
From: Paul Gortmaker [ Upstream commit 684238d79ad85c5e19a71bb5818e77e329912fbc ] To fix: acerhdf: unknown (unsupported) BIOS version Gateway /LT31 /v1.3307 , please report, aborting! As can be seen in the context, the BIOS registers haven't changed in the previous versions, so the

[PATCH AUTOSEL 4.14 25/26] mm: don't miss the last page because of round-off error

2018-11-12 Thread Sasha Levin
From: Roman Gushchin [ Upstream commit 68600f623d69da428c6163275f97ca126e1a8ec5 ] I've noticed, that dying memory cgroups are often pinned in memory by a single pagecache page. Even under moderate memory pressure they sometimes stayed in such state for a long time. That looked strange. My

[PATCH AUTOSEL 4.14 22/26] arm64: percpu: Initialize ret in the default case

2018-11-12 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit b5bb425871186303e6936fa2581521bdd1964a58 ] Clang warns that if the default case is taken, ret will be uninitialized. ./arch/arm64/include/asm/percpu.h:196:2: warning: variable 'ret' is used uninitialized whenever switch default is taken

[PATCH AUTOSEL 4.14 09/26] reiserfs: propagate errors from fill_with_dentries() properly

2018-11-12 Thread Sasha Levin
From: Jann Horn [ Upstream commit b10298d56c9623f9b173f19959732d3184b35f4f ] fill_with_dentries() failed to propagate errors up to reiserfs_for_each_xattr() properly. Plumb them through. Note that reiserfs_for_each_xattr() is only used by reiserfs_delete_xattrs() and reiserfs_chown_xattrs().

[PATCH AUTOSEL 4.14 11/26] hfsplus: prevent btree data loss on root split

2018-11-12 Thread Sasha Levin
From: Ernesto A. Fernández [ Upstream commit 0a3021d4f5295aa073c7bf5c5e4de60a2e292578 ] Creating, renaming or deleting a file may cause catalog corruption and data loss. This bug is randomly triggered by xfstests generic/027, but here is a faster reproducer: truncate -s 50M fs.iso

[PATCH AUTOSEL 4.14 05/26] nvme-pci: fix conflicting p2p resource adds

2018-11-12 Thread Sasha Levin
From: Keith Busch [ Upstream commit 9fe5c59ff6a1e5e26a39b75489a1420e7eaaf0b1 ] The nvme pci driver had been adding its CMB resource to the P2P DMA subsystem everytime on on a controller reset. This results in the following warning: [ cut here ] nvme

Re: [PATCH 2/2] drm: Revert syncobj timeline changes.

2018-11-12 Thread zhoucm1
On 2018年11月12日 18:48, Chris Wilson wrote: Quoting Christian König (2018-11-12 10:16:01) Am 09.11.18 um 23:26 schrieb Eric Anholt: Eric Anholt writes: [ Unknown signature status ] zhoucm1 writes: On 2018年11月09日 00:52, Christian König wrote:

RE: [PATCH 15/23] dt-bindings: pci: mobiveil: change gpio_slave and apb_csr to optional

2018-11-12 Thread Z.q. Hou
Hi Rob, Thanks a lot for your ACK! > -Original Message- > From: Rob Herring > Sent: 2018年11月13日 2:13 > To: Z.q. Hou > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; > bhelg...@google.com;

Re: [PATCH v4 1/2] dt-bindings: clk: meson-g12a: Add G12A EE Clock Bindings

2018-11-12 Thread Rob Herring
On Thu, 8 Nov 2018 21:15:10 +0800, Jian Hu wrote: > Add new clock controller compatible and dt-bingdings headers > for the Everything-Else domain of the g12a SoC > > Signed-off-by: Jian Hu > --- > .../bindings/clock/amlogic,gxbb-clkc.txt | 1 + > include/dt-bindings/clock/g12a-clkc.h

[PATCH] sched/rt: Fix -Wmissing-prototypes warnings

2018-11-12 Thread Yi Wang
We get a warning when building kernel with W=1: kernel/sched/rt.c:626:6: warning: no previous prototype for ‘sched_rt_bandwidth_account’ [-Wmissing-prototypes] bool sched_rt_bandwidth_account(struct rt_rq *rt_rq) Add the missing declaration to fix this. Signed-off-by: Yi Wang ---

Re: [PATCH v2] staging: vc04_services: bcm2835-audio: Fixed warnings, checks

2018-11-12 Thread gre...@linuxfoundation.org
On Mon, Nov 12, 2018 at 07:45:00PM -0500, Arnold Chand wrote: > Corrected warnings and checks provided by scripts/checkpatch.pl which > includes: alignment of parenthesis, lines over 80 characters and mutex > definition without comment. > > Signed-off-by: Arnold Chand > --- >

Re: [RFC][PATCH v1 10/11] mm: clear PageHWPoison in memory hotremove

2018-11-12 Thread Naoya Horiguchi
On Fri, Nov 09, 2018 at 03:47:14PM +0900, Naoya Horiguchi wrote: > One hopeful usecase of memory hotplug is to replace half-broken DIMMs > with new ones, so it makes sense to clear hwpoison info at the time of > memory hotremove. > > I hope that this patch covers the topic discussed in >

Re: [PATCH 2/2] modpost: skip ELF local symbols by default during section mismatch check

2018-11-12 Thread Masahiro Yamada
Hi Paul, On Sat, Oct 20, 2018 at 10:21 PM Paul Walmsley wrote: > > During development of a serial console driver with a RISC-V toolchain, > the following modpost warning appeared: > > > WARNING: vmlinux.o(.data+0x19b10): Section mismatch in reference from the > variable .LANCHOR1 to the

Re: [PATCH v15 0/3]: perf: reduce data loss when profiling highly parallel CPU bound workloads

2018-11-12 Thread Namhyung Kim
Hi, On Fri, Nov 09, 2018 at 09:22:42AM +0100, Jiri Olsa wrote: > On Tue, Nov 06, 2018 at 11:53:02AM +0300, Alexey Budankov wrote: > > > > Currently in record mode the tool implements trace writing serially. > > The algorithm loops over mapped per-cpu data buffers and stores > > ready data

Re: [PATCH v6 0/2] sched/fair: update scale invariance of PELT

2018-11-12 Thread Dietmar Eggemann
On 11/9/18 8:20 AM, Vincent Guittot wrote: This new version of the scale invariance patchset adds an important change compare to v3 and before. It still scales the time to reflect the amount of work that has been done during the elapsed running time but this is now done at rq level instead of

Re: [PATCH v9 02/10] Makefile: Prepare for using macros for inline asm

2018-11-12 Thread Logan Gunthorpe
On 10/11/18 03:04 PM, Nadav Amit wrote: > Err.. I hate makefiles and distcc doesn’t make life easier. For instance, if > it sees two source files on the command-line, it freaks out and compiles it > locally. It also has an option to distribute assembly, but it is not enabled > by default. > >

[PATCH] mtd: spi-nor: cast to u64 to avoid uint overflows

2018-11-12 Thread Huijin Park
From: "huijin.park" The "params->size" is defined as "u64". And "info->sector_size" and "info->n_sectors" are defined as unsigned int and u16. Thus, u64 data might have strange data(loss data) if the result overflows an unsigned int. This patch casts "info->sector_size" and "info->n_sectors" to

[PATCH AUTOSEL 4.14 24/26] userfaultfd: allow get_mempolicy(MPOL_F_NODE|MPOL_F_ADDR) to trigger userfaults

2018-11-12 Thread Sasha Levin
From: Andrea Arcangeli [ Upstream commit 3b9aadf7278d16d7bed4d5d808501065f70898d8 ] get_mempolicy(MPOL_F_NODE|MPOL_F_ADDR) called a get_user_pages that would not be waiting for userfaults before failing and it would hit on a SIGBUS instead. Using get_user_pages_locked/unlocked instead will

[PATCH AUTOSEL 4.14 10/26] hfs: prevent btree data loss on root split

2018-11-12 Thread Sasha Levin
From: Ernesto A. Fernández [ Upstream commit d057c036672f33d43a5f7344acbb08cf3a8a0c09 ] This bug is triggered whenever hfs_brec_update_parent() needs to split the root node. The height of the btree is not increased, which leaves the new node orphaned and its records lost. It is not possible

[PATCH AUTOSEL 4.18 29/39] arm64: percpu: Initialize ret in the default case

2018-11-12 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit b5bb425871186303e6936fa2581521bdd1964a58 ] Clang warns that if the default case is taken, ret will be uninitialized. ./arch/arm64/include/asm/percpu.h:196:2: warning: variable 'ret' is used uninitialized whenever switch default is taken

[PATCH AUTOSEL 4.18 34/39] mm: thp: fix mmu_notifier in migrate_misplaced_transhuge_page()

2018-11-12 Thread Sasha Levin
From: Andrea Arcangeli [ Upstream commit 7066f0f933a1fd707bb38781866657769cff7efc ] change_huge_pmd() after arming the numa/protnone pmd doesn't flush the TLB right away. do_huge_pmd_numa_page() flushes the TLB before calling migrate_misplaced_transhuge_page(). By the time

[PATCH AUTOSEL 4.9 14/17] arm64: percpu: Initialize ret in the default case

2018-11-12 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit b5bb425871186303e6936fa2581521bdd1964a58 ] Clang warns that if the default case is taken, ret will be uninitialized. ./arch/arm64/include/asm/percpu.h:196:2: warning: variable 'ret' is used uninitialized whenever switch default is taken

[PATCH AUTOSEL 4.14 23/26] mm/vmstat.c: assert that vmstat_text is in sync with stat_items_size

2018-11-12 Thread Sasha Levin
From: Jann Horn [ Upstream commit f0ecf25a093fc0589f0a6bc4c1ea068bbb67d220 ] Having two gigantic arrays that must manually be kept in sync, including ifdefs, isn't exactly robust. To make it easier to catch such issues in the future, add a BUILD_BUG_ON(). Link:

[PATCH AUTOSEL 4.18 37/39] userfaultfd: allow get_mempolicy(MPOL_F_NODE|MPOL_F_ADDR) to trigger userfaults

2018-11-12 Thread Sasha Levin
From: Andrea Arcangeli [ Upstream commit 3b9aadf7278d16d7bed4d5d808501065f70898d8 ] get_mempolicy(MPOL_F_NODE|MPOL_F_ADDR) called a get_user_pages that would not be waiting for userfaults before failing and it would hit on a SIGBUS instead. Using get_user_pages_locked/unlocked instead will

[PATCH AUTOSEL 4.18 33/39] mm: thp: fix MADV_DONTNEED vs migrate_misplaced_transhuge_page race condition

2018-11-12 Thread Sasha Levin
From: Andrea Arcangeli [ Upstream commit d7c3393413fe7e7dc54498ea200ea94742d61e18 ] Patch series "migrate_misplaced_transhuge_page race conditions". Aaron found a new instance of the THP MADV_DONTNEED race against pmdp_clear_flush* variants, that was apparently left unfixed. While looking

[PATCH AUTOSEL 4.9 02/17] cifs: don't dereference smb_file_target before null check

2018-11-12 Thread Sasha Levin
From: Colin Ian King [ Upstream commit 8c6c9bed8773375b1d54ccca2911ec892c59db5d ] There is a null check on dst_file->private data which suggests it can be potentially null. However, before this check, pointer smb_file_target is derived from dst_file->private and dereferenced in the call to

[PATCH AUTOSEL 4.14 07/26] mm: Fix warning in insert_pfn()

2018-11-12 Thread Sasha Levin
From: Jan Kara [ Upstream commit f2c57d91b0d96aa13ccff4e3b178038f17b00658 ] In DAX mode a write pagefault can race with write(2) in the following way: CPU0CPU1 write fault for mapped zero page (hole) dax_iomap_rw() iomap_apply()

[PATCH AUTOSEL 4.14 15/26] clk: fixed-rate: fix of_node_get-put imbalance

2018-11-12 Thread Sasha Levin
From: Alan Tull [ Upstream commit 52091c256bdcad0d01e2852a63f19cd2cce6af96 ] When the fixed rate clock is created by devicetree, of_clk_add_provider is called. Add a call to of_clk_del_provider in the remove function to balance it out. Signed-off-by: Alan Tull Fixes: 435779fe1336 ("clk:

[PATCH AUTOSEL 4.14 02/26] cifs: don't dereference smb_file_target before null check

2018-11-12 Thread Sasha Levin
From: Colin Ian King [ Upstream commit 8c6c9bed8773375b1d54ccca2911ec892c59db5d ] There is a null check on dst_file->private data which suggests it can be potentially null. However, before this check, pointer smb_file_target is derived from dst_file->private and dereferenced in the call to

[PATCH AUTOSEL 4.14 08/26] mm/memory_hotplug: make add_memory() take the device_hotplug_lock

2018-11-12 Thread Sasha Levin
From: David Hildenbrand [ Upstream commit 8df1d0e4a265f25dc1e7e7624ccdbcb4a6630c89 ] add_memory() currently does not take the device_hotplug_lock, however is aleady called under the lock from arch/powerpc/platforms/pseries/hotplug-memory.c drivers/acpi/acpi_memhotplug.c to

[PATCH AUTOSEL 4.14 04/26] arm64: kprobe: make page to RO mode when allocate it

2018-11-12 Thread Sasha Levin
From: Anders Roxell [ Upstream commit 966866892cf89d606544bca22d584ba2ef9ec208 ] Commit 1404d6f13e47 ("arm64: dump: Add checking for writable and exectuable pages") has successfully identified code that leaves a page with W+X permissions. [3.245140] arm64/mm: Found insecure W+X mapping at

[PATCH AUTOSEL 4.14 17/26] fs/exofs: fix potential memory leak in mount option parsing

2018-11-12 Thread Sasha Levin
From: Chengguang Xu [ Upstream commit 515f1867addaba49c1c6ac73abfaffbc192c1db4 ] There are some cases can cause memory leak when parsing option 'osdname'. Signed-off-by: Chengguang Xu Signed-off-by: Al Viro Signed-off-by: Sasha Levin --- fs/exofs/super.c | 5 - 1 file changed, 4

[PATCH AUTOSEL 3.18 7/9] clk: samsung: exynos5420: Enable PERIS clocks for suspend

2018-11-12 Thread Sasha Levin
From: Marek Szyprowski [ Upstream commit b33228029d842269e17bba591609e83ed422005d ] Ensure that clocks for core SoC modules (including TZPC0..9 modules) are enabled for suspend/resume cycle. This fixes suspend/resume support on Exynos5422-based Odroid XU3/XU4 boards. Suggested-by: Joonyoung

[PATCH AUTOSEL 3.18 4/9] hfsplus: prevent btree data loss on root split

2018-11-12 Thread Sasha Levin
From: Ernesto A. Fernández [ Upstream commit 0a3021d4f5295aa073c7bf5c5e4de60a2e292578 ] Creating, renaming or deleting a file may cause catalog corruption and data loss. This bug is randomly triggered by xfstests generic/027, but here is a faster reproducer: truncate -s 50M fs.iso

[PATCH AUTOSEL 4.9 16/17] userfaultfd: allow get_mempolicy(MPOL_F_NODE|MPOL_F_ADDR) to trigger userfaults

2018-11-12 Thread Sasha Levin
From: Andrea Arcangeli [ Upstream commit 3b9aadf7278d16d7bed4d5d808501065f70898d8 ] get_mempolicy(MPOL_F_NODE|MPOL_F_ADDR) called a get_user_pages that would not be waiting for userfaults before failing and it would hit on a SIGBUS instead. Using get_user_pages_locked/unlocked instead will

[PATCH AUTOSEL 3.18 5/9] um: Give start_idle_thread() a return code

2018-11-12 Thread Sasha Levin
From: Richard Weinberger [ Upstream commit 7ff1e34bbdc15acab823b1ee4240e94623d50ee8 ] Fixes: arch/um/os-Linux/skas/process.c:613:1: warning: control reaches end of non-void function [-Wreturn-type] longjmp() never returns but gcc still warns that the end of the function can be reached. Add a

[PATCH AUTOSEL 3.18 3/9] hfs: prevent btree data loss on root split

2018-11-12 Thread Sasha Levin
From: Ernesto A. Fernández [ Upstream commit d057c036672f33d43a5f7344acbb08cf3a8a0c09 ] This bug is triggered whenever hfs_brec_update_parent() needs to split the root node. The height of the btree is not increased, which leaves the new node orphaned and its records lost. It is not possible

[PATCH AUTOSEL 3.18 9/9] mm: don't warn about large allocations for slab

2018-11-12 Thread Sasha Levin
From: Dmitry Vyukov [ Upstream commit 61448479a9f2c954cde0cfe778cb6bec5d0a748d ] Slub does not call kmalloc_slab() for sizes > KMALLOC_MAX_CACHE_SIZE, instead it falls back to kmalloc_large(). For slab KMALLOC_MAX_CACHE_SIZE == KMALLOC_MAX_SIZE and it calls kmalloc_slab() for all allocations

[PATCH AUTOSEL 3.18 2/9] reiserfs: propagate errors from fill_with_dentries() properly

2018-11-12 Thread Sasha Levin
From: Jann Horn [ Upstream commit b10298d56c9623f9b173f19959732d3184b35f4f ] fill_with_dentries() failed to propagate errors up to reiserfs_for_each_xattr() properly. Plumb them through. Note that reiserfs_for_each_xattr() is only used by reiserfs_delete_xattrs() and reiserfs_chown_xattrs().

[PATCH AUTOSEL 4.4 08/11] platform/x86: acerhdf: Add BIOS entry for Gateway LT31 v1.3307

2018-11-12 Thread Sasha Levin
From: Paul Gortmaker [ Upstream commit 684238d79ad85c5e19a71bb5818e77e329912fbc ] To fix: acerhdf: unknown (unsupported) BIOS version Gateway /LT31 /v1.3307 , please report, aborting! As can be seen in the context, the BIOS registers haven't changed in the previous versions, so the

[PATCH AUTOSEL 4.9 15/17] mm/vmstat.c: assert that vmstat_text is in sync with stat_items_size

2018-11-12 Thread Sasha Levin
From: Jann Horn [ Upstream commit f0ecf25a093fc0589f0a6bc4c1ea068bbb67d220 ] Having two gigantic arrays that must manually be kept in sync, including ifdefs, isn't exactly robust. To make it easier to catch such issues in the future, add a BUILD_BUG_ON(). Link:

[PATCH AUTOSEL 3.18 6/9] fs/exofs: fix potential memory leak in mount option parsing

2018-11-12 Thread Sasha Levin
From: Chengguang Xu [ Upstream commit 515f1867addaba49c1c6ac73abfaffbc192c1db4 ] There are some cases can cause memory leak when parsing option 'osdname'. Signed-off-by: Chengguang Xu Signed-off-by: Al Viro Signed-off-by: Sasha Levin --- fs/exofs/super.c | 5 - 1 file changed, 4

[PATCH AUTOSEL 3.18 1/9] bfs: add sanity check at bfs_fill_super()

2018-11-12 Thread Sasha Levin
From: Tetsuo Handa [ Upstream commit 9f2df09a33aa2c76ce6385d382693f98d7f2f07e ] syzbot is reporting too large memory allocation at bfs_fill_super() [1]. Since file system image is corrupted such that bfs_sb->s_start == 0, bfs_fill_super() is trying to allocate 8MB of continuous memory. Fix this

[PATCH AUTOSEL 4.4 11/11] mm: don't warn about large allocations for slab

2018-11-12 Thread Sasha Levin
From: Dmitry Vyukov [ Upstream commit 61448479a9f2c954cde0cfe778cb6bec5d0a748d ] Slub does not call kmalloc_slab() for sizes > KMALLOC_MAX_CACHE_SIZE, instead it falls back to kmalloc_large(). For slab KMALLOC_MAX_CACHE_SIZE == KMALLOC_MAX_SIZE and it calls kmalloc_slab() for all allocations

[PATCH AUTOSEL 3.18 8/9] mm/vmstat.c: assert that vmstat_text is in sync with stat_items_size

2018-11-12 Thread Sasha Levin
From: Jann Horn [ Upstream commit f0ecf25a093fc0589f0a6bc4c1ea068bbb67d220 ] Having two gigantic arrays that must manually be kept in sync, including ifdefs, isn't exactly robust. To make it easier to catch such issues in the future, add a BUILD_BUG_ON(). Link:

Re: [PATCH] xfs: Remove noinline from #define STATIC

2018-11-12 Thread Dave Chinner
On Mon, Nov 12, 2018 at 02:30:01PM -0800, Joe Perches wrote: > On Tue, 2018-11-13 at 08:45 +1100, Dave Chinner wrote: > > On Mon, Nov 12, 2018 at 02:12:08PM -0600, Eric Sandeen wrote: > > > On 11/10/18 7:21 PM, Joe Perches wrote: > > > > Reduce total object size quite a bit (~32KB) and presumably

Re: [PATCH -next] power/supply: fix sc27xx_fuel_gauge build errors

2018-11-12 Thread Baolin Wang
gt; > Signed-off-by: Randy Dunlap > Cc: Sebastian Reichel > Cc: linux...@vger.kernel.org > --- Thanks for fixing this issue. Acked-by: Baolin Wang > drivers/power/supply/Kconfig |1 + > 1 file changed, 1 insertion(+) > > --- linux-next-20181112.orig/drivers/power/supply

[PATCH] x86/irq: Fix -Wmissing-prototypes warning for init_IRQ()

2018-11-12 Thread Yi Wang
We get a warning when building kernel with W=1: arch/x86/kernel/irqinit.c:79:13: warning: no previous prototype for ‘init_IRQ’ [-Wmissing-prototypes] void __init init_IRQ(void) ^ Add the missing declaration in head file to fix this. Signed-off-by: Yi Wang ---

Re: [PATCH] xfs: Remove noinline from #define STATIC

2018-11-12 Thread Theodore Y. Ts'o
On Tue, Nov 13, 2018 at 12:18:05PM +1100, Dave Chinner wrote: > I'm not interested in making code fast if distro support engineers > can't debug problems on user systems easily. Optimising for > performance over debuggability is a horrible trade off for us to > make because it means users and

Re: [PATCH] xfs: Remove noinline from #define STATIC

2018-11-12 Thread Dave Chinner
On Mon, Nov 12, 2018 at 08:54:10PM -0500, Theodore Y. Ts'o wrote: > On Tue, Nov 13, 2018 at 12:18:05PM +1100, Dave Chinner wrote: > > I'm not interested in making code fast if distro support engineers > > can't debug problems on user systems easily. Optimising for > > performance over

Re: BUG: KASAN: slab-out-of-bounds in selinux_sctp_bind_connect+0x60/0x150

2018-11-12 Thread Paul Moore
On Mon, Nov 12, 2018 at 7:59 PM Qian Cai wrote: > > On Nov 12, 2018, at 7:41 PM, Paul Moore wrote: > > On Mon, Nov 12, 2018 at 2:39 PM Qian Cai wrote: > >> > >> Running the trinity fuzzer on the latest mainline (rc2) generates this, > >> > >> [15029.879626] BUG: KASAN: slab-out-of-bounds in >

Re: [PATCH 0/2] opp: ti-opp-supply: Fixes

2018-11-12 Thread Viresh Kumar
On 07-11-18, 10:04, Keerthy wrote: > The series brings in couple of fixes to the ti-opp-supply driver. > One of them updates u_volt_min dynamically and avoids hang due > to lesser static u_volt_min and the other fixes the supply in > _get_optimal_vdd_voltage. Applied both patches after manually

Re: [PATCH 4.9 000/141] 4.9.137-stable review

2018-11-12 Thread Naresh Kamboju
On Mon, 12 Nov 2018 at 19:03, Greg Kroah-Hartman wrote: > > On Mon, Nov 12, 2018 at 08:38:44AM -0200, Rafael David Tinoco wrote: > > On 11/11/18 8:24 PM, Greg Kroah-Hartman wrote: > > > This is the start of the stable review cycle for the 4.9.137 release. > > > There are 141 patches in this

[PATCH AUTOSEL 4.19 24/44] clk: fixed-rate: fix of_node_get-put imbalance

2018-11-12 Thread Sasha Levin
From: Alan Tull [ Upstream commit 52091c256bdcad0d01e2852a63f19cd2cce6af96 ] When the fixed rate clock is created by devicetree, of_clk_add_provider is called. Add a call to of_clk_del_provider in the remove function to balance it out. Signed-off-by: Alan Tull Fixes: 435779fe1336 ("clk:

[PATCH v4 2/3] microblaze: add system call table generation support

2018-11-12 Thread Firoz Khan
The system call tables are in different format in all architecture and it will be difficult to manually add, modify or delete the syscall table entries in the res- pective files. To make it easy by keeping a script and which will generate the uapi header and syscall table file. This change will

[PATCH AUTOSEL 4.19 19/44] perf unwind: Take pgoff into account when reporting elf to libdwfl

2018-11-12 Thread Sasha Levin
From: Milian Wolff [ Upstream commit 1fe627da30331024f453faef04d500079b901107 ] libdwfl parses an ELF file itself and creates mappings for the individual sections. perf on the other hand sees raw mmap events which represent individual sections. When we encounter an address pointing into a

[PATCH AUTOSEL 4.19 20/44] um: Give start_idle_thread() a return code

2018-11-12 Thread Sasha Levin
From: Richard Weinberger [ Upstream commit 7ff1e34bbdc15acab823b1ee4240e94623d50ee8 ] Fixes: arch/um/os-Linux/skas/process.c:613:1: warning: control reaches end of non-void function [-Wreturn-type] longjmp() never returns but gcc still warns that the end of the function can be reached. Add a

[PATCH AUTOSEL 4.19 23/44] platform/x86: intel_telemetry: report debugfs failure

2018-11-12 Thread Sasha Levin
From: Rajneesh Bhardwaj [ Upstream commit 8d98b1ef368feeb7720b8b9b6f3bd93f2ad892bc ] On some Goldmont based systems such as ASRock J3455M the BIOS may not enable the IPC1 device that provides access to the PMC and PUNIT. In such scenarios, the IOSS and PSS resources from the platform device can

[PATCH v4 3/3] microblaze: generate uapi header and system call table files

2018-11-12 Thread Firoz Khan
System call table generation script must be run to gener- ate unistd_32.h and syscall_table.h files. This patch will have changes which will invokes the script. This patch will generate unistd_32.h and syscall_table.h files by the syscall table generation script invoked by microblaze/Makefile and

[PATCH v4 0/3] microblaze: system call table generation support

2018-11-12 Thread Firoz Khan
The purpose of this patch series is, we can easily add/modify/delete system call table support by cha- nging entry in syscall.tbl file instead of manually changing many files. The other goal is to unify the system call table generation support implementation across all the architectures. The

[PATCH v4 1/3] microblaze: move __NR_syscalls macro from asm/unistd.h

2018-11-12 Thread Firoz Khan
__NR_syscalls holds the number of system call exist in microblaze architecture. We have to change the value of __NR_syscalls, if we add or delete a system call. One of the patch in this patch series has a script which will generate a uapi header based on syscall.tbl file. The syscall.tbl file

[PATCH AUTOSEL 4.19 27/44] clk: samsung: exynos5420: Enable PERIS clocks for suspend

2018-11-12 Thread Sasha Levin
From: Marek Szyprowski [ Upstream commit b33228029d842269e17bba591609e83ed422005d ] Ensure that clocks for core SoC modules (including TZPC0..9 modules) are enabled for suspend/resume cycle. This fixes suspend/resume support on Exynos5422-based Odroid XU3/XU4 boards. Suggested-by: Joonyoung

[PATCH AUTOSEL 4.19 22/44] afs: Handle EIO from delivery function

2018-11-12 Thread Sasha Levin
From: David Howells [ Upstream commit 4ac15ea53622272c01954461b4814892b7481b40 ] Fix afs_deliver_to_call() to handle -EIO being returned by the operation delivery function, indicating that the call found itself in the wrong state, by printing an error and aborting the call. Currently, an

[PATCH AUTOSEL 4.19 26/44] fs/exofs: fix potential memory leak in mount option parsing

2018-11-12 Thread Sasha Levin
From: Chengguang Xu [ Upstream commit 515f1867addaba49c1c6ac73abfaffbc192c1db4 ] There are some cases can cause memory leak when parsing option 'osdname'. Signed-off-by: Chengguang Xu Signed-off-by: Al Viro Signed-off-by: Sasha Levin --- fs/exofs/super.c | 5 - 1 file changed, 4

[PATCH AUTOSEL 4.19 28/44] apparmor: Fix uninitialized value in aa_split_fqname

2018-11-12 Thread Sasha Levin
From: Zubin Mithra [ Upstream commit 250f2da49cb8e582215a65c03f50e8ddf5cd119c ] Syzkaller reported a OOB-read with the stacktrace below. This occurs inside __aa_lookupn_ns as `n` is not initialized. `n` is obtained from aa_splitn_fqname. In cases where `name` is invalid, aa_splitn_fqname

[PATCH AUTOSEL 4.19 30/44] platform/x86: acerhdf: Add BIOS entry for Gateway LT31 v1.3307

2018-11-12 Thread Sasha Levin
From: Paul Gortmaker [ Upstream commit 684238d79ad85c5e19a71bb5818e77e329912fbc ] To fix: acerhdf: unknown (unsupported) BIOS version Gateway /LT31 /v1.3307 , please report, aborting! As can be seen in the context, the BIOS registers haven't changed in the previous versions, so the

Re: [PATCH] jffs2: implement mount option to configure endianness

2018-11-12 Thread Daniel Walker
On Mon, Nov 12, 2018 at 03:43:37PM -0800, David Woodhouse wrote: > > That can't hurt. We should probably look at the time elapsed before you > can *write* to it (when the background scan and crc checking is > complete) rather than just reading. > I'm not sure how to test that, but I tried

Re: [PATCH 1/2] dt-bindings: cpufreq: Introduce QCOM CPUFREQ Firmware bindings

2018-11-12 Thread Matthias Kaehlcke
On Thu, Oct 25, 2018 at 03:43:39PM -0700, Matthias Kaehlcke wrote: > Hi, > > On Tue, Oct 23, 2018 at 05:23:34PM +0530, Amit Kucheria wrote: > > Hi Taniya, > > > > Both the patches are missing v9 in their subject line - this threw off > > patchwork when trying to download the patches. > > > > On

[PATCH v2] staging: vc04_services: bcm2835-audio: Fixed warnings, checks

2018-11-12 Thread Arnold Chand
Corrected warnings and checks provided by scripts/checkpatch.pl which includes: alignment of parenthesis, lines over 80 characters and mutex definition without comment. Signed-off-by: Arnold Chand --- .../vc04_services/bcm2835-audio/bcm2835-ctl.c | 18 +++---

Re: BUG: KASAN: slab-out-of-bounds in selinux_sctp_bind_connect+0x60/0x150

2018-11-12 Thread Qian Cai
> On Nov 12, 2018, at 7:41 PM, Paul Moore wrote: > > On Mon, Nov 12, 2018 at 2:39 PM Qian Cai wrote: >> >> Running the trinity fuzzer on the latest mainline (rc2) generates this, >> >> [15029.879626] BUG: KASAN: slab-out-of-bounds in >> selinux_sctp_bind_connect+0x60/0x150 >>

  1   2   3   4   5   6   7   8   9   10   >