mmotm 2019-10-18-22-40 uploaded

2019-10-18 Thread akpm
The mm-of-the-moment snapshot 2019-10-18-22-40 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You

RE:PERSONAL LETTER FROM MRS RASHIA AMIRA

2019-10-18 Thread Mr Barrister Hans Erich
Greetings My name is Barrister Hans Erich. I have a client who is interested to invest in your country, she is a well known politician in her country and deserve a lucrative investment partnership with you outside her country without any delay Please can you manage such investment please

Re: [PATCH v3] mm,thp: recheck each page before collapsing file THP

2019-10-18 Thread Song Liu
> On Oct 18, 2019, at 6:17 PM, Andrew Morton wrote: > > On Fri, 18 Oct 2019 11:03:45 -0700 Song Liu wrote: > >> In collapse_file(), after locking the page, it is necessary to recheck >> that the page is up-to-date. Add PageUptodate() check for both shmem THP >> and file THP. >> >> Current

KASAN: use-after-free Read in fuse_request_end

2019-10-18 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:283ea345 coccinelle: api/devm_platform_ioremap_resource: r.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=13afce90e0 kernel config: https://syzkaller.appspot.com/x/.config?x=e0ac4d9b35046343

RE:PERSONAL LETTER FROM MRS RASHIA AMIRA

2019-10-18 Thread Mr Barrister Hans Erich
Greetings My name is Barrister Hans Erich. I have a client who is interested to invest in your country, she is a well known politician in her country and deserve a lucrative investment partnership with you outside her country without any delay Please can you manage such investment please

RE:PERSONAL LETTER FROM MRS RASHIA AMIRA

2019-10-18 Thread Mr Barrister Hans Erich
Greetings My name is Barrister Hans Erich. I have a client who is interested to invest in your country, she is a well known politician in her country and deserve a lucrative investment partnership with you outside her country without any delay Please can you manage such investment please

Re: [PATCH v4 2/2] iio: (bma400) add driver for the BMA400

2019-10-18 Thread Joe Perches
On Fri, 2019-10-18 at 03:18 +, Dan Robertson wrote: > Add a IIO driver for the Bosch BMA400 3-axes ultra-low power accelerometer. > The driver supports reading from the acceleration and temperature > registers. The driver also supports reading and configuring the output data > rate,

Re: memory leak in copy_net_ns

2019-10-18 Thread syzbot
Hello, syzbot has tested the proposed patch and the reproducer did not trigger crash: Reported-and-tested-by: syzbot+3b3296d032353c331...@syzkaller.appspotmail.com Tested on: commit: 43b815c6 Merge tag 'armsoc-fixes' of git://git.kernel.org/.. git tree:

Re: memory leak in copy_net_ns

2019-10-18 Thread Takeshi Misawa
#syz test: https://github.com/google/kasan.git 43b815c6 >From 366b85e1555a8ef4d0f0759c2da8d8dff4598ace Mon Sep 17 00:00:00 2001 From: Takeshi Misawa Date: Sat, 19 Oct 2019 11:44:45 +0900 Subject: [PATCH] keys: Fix memory leak in copy_net_ns If copy_net_ns() failed after net_alloc(),

Re: [PATCH v10 3/3] mm: fix double page fault on arm64 if PTE_AF is cleared

2019-10-18 Thread Jia He
Hi Palmer On 2019/10/19 4:38, Palmer Dabbelt wrote: On Wed, 16 Oct 2019 16:46:08 PDT (-0700), w...@kernel.org wrote: Hey Palmer, On Wed, Oct 16, 2019 at 04:21:59PM -0700, Palmer Dabbelt wrote: On Tue, 08 Oct 2019 05:39:44 PDT (-0700), w...@kernel.org wrote: > On Tue, Oct 08, 2019 at

Re: [PATCH v4 2/2] iio: (bma400) add driver for the BMA400

2019-10-18 Thread Dan Robertson
On Fri, Oct 18, 2019 at 10:23:38AM +0300, Andy Shevchenko wrote: > On Fri, Oct 18, 2019 at 6:44 AM Dan Robertson wrote: > > + * bma400.h - Register constants and other forward declarations > > + *needed by the bma400 sources. > > Including file name in the file is not the best

Re: [GIT PULL] RISC-V updates for v5.4-rc4

2019-10-18 Thread pr-tracker-bot
The pull request you sent on Fri, 18 Oct 2019 16:36:14 -0700 (PDT): > git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git > tags/riscv/for-v5.4-rc4 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/dfdcff3215ae4ed7975b0991243d1dd8e1250bec Thank you! --

Re: [PATCH] random: make try_to_generate_entropy() more robust

2019-10-18 Thread Linus Torvalds
On Fri, Oct 18, 2019 at 4:42 PM Jörn Engel wrote: > > We can generate entropy on almost any CPU, even if it doesn't provide a > high-resolution timer for random_get_entropy(). As long as the CPU is > not idle, it changed the register file every few cycles. As long as the > ALU isn't fully

Re: [PATCH 2/2] firmware: coreboot: Export active CBFS partition

2019-10-18 Thread Julius Werner
> I don't know why we need to draw a line in the sand and say that if the > kernel doesn't need to know about it then it shouldn't parse it. I want > there to be a consistent userspace ABI that doesn't just move things > straight from memory to userspace in some binary format. I'd rather we > have

Re: [PATCH v2 2/2] mm/memory-failure.c: Don't access uninitialized memmaps in memory_failure()

2019-10-18 Thread Andrew Morton
On Thu, 10 Oct 2019 09:17:42 +0200 David Hildenbrand wrote: > >> - pgmap = get_dev_pagemap(pfn, NULL); > >> - if (pgmap) > >> - return memory_failure_dev_pagemap(pfn, flags, pgmap); > >> - > >> - p = pfn_to_page(pfn); > > > > This change seems to assume that

Re: [PATCH v6 2/2] HID: logitech: Support WirelessDeviceStatus connect events

2019-10-18 Thread Mazin Rezk
On Friday, October 18, 2019 11:38 AM, Benjamin Tissoires wrote: > On Mon, Oct 14, 2019 at 8:36 PM Mazin Rezk mn...@protonmail.com wrote: > > > This patch allows WirelessDeviceStatus (0x1d4b) events to be detected as > > connection events in the hid-logitech-hidpp module. > > Devices with

Re: [PATCH] lib/vdso: Use __arch_use_vsyscall() to indicate fallback

2019-10-18 Thread Huacai Chen
Hi, Andy, On Fri, Oct 18, 2019 at 11:15 AM Andy Lutomirski wrote: > > On Thu, Oct 17, 2019 at 7:57 PM Huacai Chen wrote: > > > > In do_hres(), we currently use whether the return value of __arch_get_ > > hw_counter() is negtive to indicate fallback, but this is not a good > > idea. Because: > >

Re: ARM: add __always_inline to functions called from __get_user_check()

2019-10-18 Thread Masahiro Yamada
On Fri, Oct 18, 2019 at 7:06 PM H. Nikolaus Schaller wrote: > > Hi, > I wonder what happened to your patch. We were "hit" by it in v5.4-rc1 and > after finding, it made our OMAP based device bootable again (using our > own defconfig which optimizes for SIZE). > > But it does not seem to have

Re: [PATCH v6 1/2] HID: logitech: Add MX Master over Bluetooth

2019-10-18 Thread Mazin Rezk
On Friday, October 18, 2019 11:36 AM, Benjamin Tissoires wrote: > Hi Mazin, > > On Mon, Oct 14, 2019 at 8:36 PM Mazin Rezk mn...@protonmail.com wrote: > > > This patch adds support for the MX Master (b01e and b012) and also adds > > foundational code for other Bluetooth LE HID++ devices to be

Re: [PATCH v3 2/3] mm/vmalloc: respect passed gfp_mask when do preloading

2019-10-18 Thread Andrew Morton
On Fri, 18 Oct 2019 11:40:49 +0200 Uladzislau Rezki wrote: > > > alloc_vmap_area() is given a gfp_mask for the page allocator. > > > Let's respect that mask and consider it even in the case when > > > doing regular CPU preloading, i.e. where a context can sleep. > > > > This is explaining what

Re: [PATCH v4 2/2] iio: (bma400) add driver for the BMA400

2019-10-18 Thread Dan Robertson
On Thu, Oct 17, 2019 at 09:25:37PM -0700, Randy Dunlap wrote: > On 10/17/19 8:18 PM, Dan Robertson wrote: > > +config BMA400 > > + tristate "Bosch BMA400 3-Axis Accelerometer Driver" > > + depends on I2C > > + select REGMAP > > + select BMA400_I2C if (I2C) > > Since BMA400 already depends

Re: [PATCH 2/3] mm, meminit: Recalculate pcpu batch and high limits after init completes

2019-10-18 Thread Andrew Morton
On Fri, 18 Oct 2019 15:09:59 +0100 Mel Gorman wrote: > > > Cc: sta...@vger.kernel.org # v4.15+ > > > > Hmm, are you sure about 4.15? Doesn't this go all the way down to > > deferred initialization? I do not see any recent changes on when > > setup_per_cpu_pageset is called. > > > > No, I'm

Re: [PATCH v2] ftgmac100: Disable HW checksum generation on AST2500

2019-10-18 Thread Vijay Khemka
On 10/18/19, 5:03 PM, "Benjamin Herrenschmidt" wrote: On Fri, 2019-10-18 at 22:50 +, Vijay Khemka wrote: > I don't have much understanding of IP Stack but I went through code details and > you are right and found that it should fallback to SW calculation for IPV6 but it

Re: [PATCH v2 3/3] KVM: VMX: Some minor refactor of MSR bitmap

2019-10-18 Thread Xiaoyao Li
On 10/19/2019 1:27 AM, Sean Christopherson wrote: On Fri, Oct 18, 2019 at 05:37:23PM +0800, Xiaoyao Li wrote: Move the MSR bitmap capability check from vmx_disable_intercept_for_msr() and vmx_enable_intercept_for_msr(), so that we can do the check far early before we really want to touch the

Re: [PATCH v3] mm,thp: recheck each page before collapsing file THP

2019-10-18 Thread Andrew Morton
On Fri, 18 Oct 2019 11:03:45 -0700 Song Liu wrote: > In collapse_file(), after locking the page, it is necessary to recheck > that the page is up-to-date. Add PageUptodate() check for both shmem THP > and file THP. > > Current khugepaged should not try to collapse dirty file THP, because it >

Re: [PATCH 00/46] ARM: pxa: towards multiplatform support

2019-10-18 Thread Guenter Roeck
On 10/18/19 8:40 AM, Arnd Bergmann wrote: Hi PXA maintainers, I'm in the process of getting the old ARM platforms to all build in a single kernel. The largest part of that work is changing all the device drivers to no longer require mach/*.h header files. This series does it for arch/pxa/.

Re: [PATCH] clocksource: tsc: respect tsc bootparam for clocksource_tsc_early

2019-10-18 Thread Zhivich, Michael
On 10/18/19, 2:41 PM, "Thomas Gleixner" wrote: > On Wed, 2 Oct 2019, Michael Zhivich wrote: > > Introduction of clocksource_tsc_early broke functionality of "tsc=reliable" > > and "tsc=nowatchdog" boot params, since clocksource_tsc_early is *always* > > registered with CLOCK_SOURCE_MUST_VERIFY

Re: [PATCH 06/18] add support for Clang's Shadow Call Stack (SCS)

2019-10-18 Thread Miguel Ojeda
On Fri, Oct 18, 2019 at 10:33 PM Nick Desaulniers wrote: > > Sami pointed out to me off thread that __has_attribute would only > check `no_sanitize`, not `shadow-call-stack`. So maybe best to keep > the definition here (include/linux/compiler-clang.h), but wrapped in a > `__has_feature` check so

Re: [PATCH AUTOSEL 5.3 50/89] kbuild: fix build error of 'make nsdeps' in clean tree

2019-10-18 Thread Masahiro Yamada
On Sat, Oct 19, 2019 at 7:04 AM Sasha Levin wrote: > > From: Masahiro Yamada > > [ Upstream commit d85103ac78a6d8573b21348b36f4cca2e1839a31 ] > > Running 'make nsdeps' in a clean source tree fails as follows: > > $ make -s clean; make -s defconfig; make nsdeps >[ snip ] > awk: fatal: cannot

Re: [PATCH AUTOSEL 4.14 39/56] kbuild: fix build error of 'make nsdeps' in clean tree

2019-10-18 Thread Masahiro Yamada
On Sat, Oct 19, 2019 at 7:15 AM Sasha Levin wrote: > > From: Masahiro Yamada > > [ Upstream commit d85103ac78a6d8573b21348b36f4cca2e1839a31 ] > > Running 'make nsdeps' in a clean source tree fails as follows: > > $ make -s clean; make -s defconfig; make nsdeps >[ snip ] > awk: fatal: cannot

Re: [PATCH AUTOSEL 4.19 077/100] kbuild: fix build error of 'make nsdeps' in clean tree

2019-10-18 Thread Masahiro Yamada
Hi Sasha, On Sat, Oct 19, 2019 at 7:18 AM Sasha Levin wrote: > > From: Masahiro Yamada > > [ Upstream commit d85103ac78a6d8573b21348b36f4cca2e1839a31 ] > > Running 'make nsdeps' in a clean source tree fails as follows: > > $ make -s clean; make -s defconfig; make nsdeps >[ snip ] > awk:

[PATCH] mtd: rawnand: brcmnand: Fix sparse warning in has_flash_dma()

2019-10-18 Thread Florian Fainelli
Sparse rightfully complained about has_flash_dma(): +drivers/mtd/nand/brcmnand/brcmnand.c:951:40: warning: Using plain integer as NULL pointer [sparse] Fixes: 27c5b17cd1b1 ("mtd: nand: add NAND driver "library" for Broadcom STB NAND controller") Signed-off-by: Florian Fainelli ---

Re: [PATCH v2] ftgmac100: Disable HW checksum generation on AST2500

2019-10-18 Thread Benjamin Herrenschmidt
On Fri, 2019-10-18 at 22:50 +, Vijay Khemka wrote: > I don't have much understanding of IP Stack but I went through code details > and > you are right and found that it should fallback to SW calculation for IPV6 > but it doesn't > happen because ftgmac100_hard_start_xmit checks for

Re: [PATCH 03/15] riscv: abstract out CSR names for supervisor vs machine mode

2019-10-18 Thread Paul Walmsley
On Thu, 17 Oct 2019, Christoph Hellwig wrote: > Many of the privileged CSRs exist in a supervisor and machine version > that are used very similarly. Provide a new X-naming layer so that > we don't have to ifdef everywhere for M-mode Linux support. > > Contains contributions from Damien Le Moal

Re: RISC-V nommu support v5

2019-10-18 Thread Paul Walmsley
On Fri, 18 Oct 2019, Christoph Hellwig wrote: > On Thu, Oct 17, 2019 at 08:29:59PM -0700, Paul Walmsley wrote: > > On Fri, 18 Oct 2019, Anup Patel wrote: > > > > > It will be really cool to have this series for Linux-5.4-rcX. > > > > It's way too big to go in via the -rc series. I'm hoping to

Re: WARNING: ODEBUG bug in del_timer

2019-10-18 Thread zzoru
Hi The customizations are related to driver fuzzing. We added some more descriptions of USB driver & narrowed the constraints (targeted fuzzing). And sorry about I have not much time to make patches of these bugs. On Fri, Oct 18, 2019 at 2:33 AM Dmitry Vyukov wrote: > > On Wed, Oct 16, 2019 at

[GIT PULL] RISC-V updates for v5.4-rc4

2019-10-18 Thread Paul Walmsley
Linus, The following changes since commit 4f5cafb5cb8471e54afdc9054d973535614f7675: Linux 5.4-rc3 (2019-10-13 16:37:36 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git tags/riscv/for-v5.4-rc4 for you to fetch changes up to

[PATCH] ARM: dt: add lsm9ds1 iio imu/magn support to gw553x

2019-10-18 Thread Robert Jones
Add one node for the accel/gyro i2c device and another for the separate magnetometer device in the lsm9ds1. Signed-off-by: Robert Jones --- arch/arm/boot/dts/imx6qdl-gw553x.dtsi | 31 +++ 1 file changed, 31 insertions(+) diff --git

[PATCH] ARM: dt: add fxos8700 on gateworks boards

2019-10-18 Thread Robert Jones
Add fxos8700 iio imu entries for Gateworks SBCs. Signed-off-by: Robert Jones --- arch/arm/boot/dts/imx6qdl-gw52xx.dtsi | 5 + arch/arm/boot/dts/imx6qdl-gw53xx.dtsi | 5 + arch/arm/boot/dts/imx6qdl-gw54xx.dtsi | 5 + 3 files changed, 15 insertions(+) diff --git

[PATCH 1/2] platform/x86: Adding support for Acer Aspire 7551

2019-10-18 Thread Peter Kaestle
From: Peter Feuerer platform/x86: Adding support for Acer Aspire 7551 Cc: Darren Hart Cc: Andy Shevchenko Signed-off-by: Peter Feuerer --- drivers/platform/x86/acerhdf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/platform/x86/acerhdf.c b/drivers/platform/x86/acerhdf.c

[PATCH 2/2] treewide: Rename Peter Feuerer to Peter Kaestle

2019-10-18 Thread Peter Kaestle
treewide: Rename Peter Feuerer to Peter Kaestle Cc: Darren Hart Cc: Andy Shevchenko Cc: Zhang Rui Cc: Eduardo Valentin Cc: Greg Kroah-Hartman Signed-off-by: Peter Kaestle --- MAINTAINERS | 2 +- drivers/platform/x86/acerhdf.c | 4 ++-- drivers/thermal/gov_bang_bang.c

Re: [PATCH] Bluetooth: hci_qca: Add delay for wcn3990 stability

2019-10-18 Thread Matthias Kaehlcke
On Fri, Oct 18, 2019 at 04:36:23PM -0600, Jeffrey Hugo wrote: > On Fri, Oct 18, 2019 at 3:33 PM Matthias Kaehlcke wrote: > > > > On Fri, Oct 18, 2019 at 01:51:39PM -0600, Jeffrey Hugo wrote: > > > On Fri, Oct 18, 2019 at 1:40 PM Matthias Kaehlcke > > > wrote: > > > > > > > > On Fri, Oct 18,

Re: [dax] 23c84eb783: fio.write_bw_MBps -61.6% regression

2019-10-18 Thread Dan Williams
On Fri, Oct 18, 2019 at 2:48 AM Jan Kara wrote: > > Hello! > > On Fri 18-10-19 16:23:54, kernel test robot wrote: > > FYI, we noticed a -61.6% regression of fio.write_bw_MBps due to commit: > > > > > > commit: 23c84eb7837514e16d79ed6d849b13745e0ce688 ("dax: Fix missed wakeup > > with PMD

RE:PERSONAL LETTER FROM MRS RASHIA AMIRA

2019-10-18 Thread Mr Barrister Hans Erich
Greetings My name is Barrister Hans Erich. I have a client who is interested to invest in your country, she is a well known politician in her country and deserve a lucrative investment partnership with you outside her country without any delay Please can you manage such investment please

Re: [PATCH] random: make try_to_generate_entropy() more robust

2019-10-18 Thread Linus Torvalds
On Fri, Oct 18, 2019 at 4:42 PM Jörn Engel wrote: > > Sorry for coming late to the discussion. I generally like the approach > in try_to_generate_entropy(), but I think we can do a little better > still. Would something like this work? Hmm. I'm not convinced that the register set is all that

Re: [PATCH v2] ftgmac100: Disable HW checksum generation on AST2500

2019-10-18 Thread Vijay Khemka
On 10/17/19, 5:33 PM, "Benjamin Herrenschmidt" wrote: On Fri, 2019-10-18 at 00:06 +, Vijay Khemka wrote: > > > This is not a matter of unsupported csum, it is broken hw csum. > > That's why we disable hw checksum. My guess is once we disable > > Hw

Re: [GIT PULL] usercopy for v5.4-rc4

2019-10-18 Thread pr-tracker-bot
The pull request you sent on Fri, 18 Oct 2019 17:33:13 +0200: > g...@gitolite.kernel.org:pub/scm/linux/kernel/git/brauner/linux > tags/copy-struct-from-user-v5.4-rc4 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/8eb4b3b0dd9ae3e5399ff902da87d13740a2b70f Thank you!

Re: [GIT PULL] Ceph fixes for 5.4-rc4

2019-10-18 Thread pr-tracker-bot
The pull request you sent on Fri, 18 Oct 2019 20:15:11 +0200: > https://github.com/ceph/ceph-client.git tags/ceph-for-5.4-rc4 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/6b95cf9b8bb3cb647d9f43109a9c50a234b39781 Thank you! -- Deet-doot-dot, I am a bot.

[PATCH 1/2] platform/x86: huawei-wmi: Stricter battery thresholds set

2019-10-18 Thread Ayman Bagabas
Check if battery thresholds are within 0 and 100. --- drivers/platform/x86/huawei-wmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/huawei-wmi.c b/drivers/platform/x86/huawei-wmi.c index 5837d1b8693d..26041d44286a 100644 ---

[PATCH 2/2] platform/x86: huawei-wmi: No need to check for battery name

2019-10-18 Thread Ayman Bagabas
No need to check for battery name, we already check if the WMI function is available in huawei_wmi_battery_setup. --- drivers/platform/x86/huawei-wmi.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/platform/x86/huawei-wmi.c b/drivers/platform/x86/huawei-wmi.c index

Re: [PATCH -next] Bluetooth: btusb: Remove return statement in btintel_reset_to_bootloader

2019-10-18 Thread Nick Desaulniers
On Fri, Oct 18, 2019 at 3:29 PM Nathan Chancellor wrote: > > When building with Clang and CONFIG_BT_INTEL unset, the following error > occurs: > > In file included from drivers/bluetooth/hci_ldisc.c:34: > drivers/bluetooth/btintel.h:188:2: error: void function > 'btintel_reset_to_bootloader'

[PATCH] MIPS: tlbex: Fix build_restore_pagemask KScratch restore

2019-10-18 Thread Paul Burton
build_restore_pagemask() will restore the value of register $1/$at when its restore_scratch argument is non-zero, and aims to do so by filling a branch delay slot. Commit 0b24cae4d535 ("MIPS: Add missing EHB in mtc0 -> mfc0 sequence.") added an EHB instruction (Execution Hazard Barrier) prior to

Re: [PATCH] Bluetooth: hci_qca: Add delay for wcn3990 stability

2019-10-18 Thread Jeffrey Hugo
On Fri, Oct 18, 2019 at 3:33 PM Matthias Kaehlcke wrote: > > On Fri, Oct 18, 2019 at 01:51:39PM -0600, Jeffrey Hugo wrote: > > On Fri, Oct 18, 2019 at 1:40 PM Matthias Kaehlcke wrote: > > > > > > On Fri, Oct 18, 2019 at 12:30:09PM -0600, Jeffrey Hugo wrote: > > > > On Fri, Oct 18, 2019 at 12:03

[PATCH -next] Bluetooth: btusb: Remove return statement in btintel_reset_to_bootloader

2019-10-18 Thread Nathan Chancellor
When building with Clang and CONFIG_BT_INTEL unset, the following error occurs: In file included from drivers/bluetooth/hci_ldisc.c:34: drivers/bluetooth/btintel.h:188:2: error: void function 'btintel_reset_to_bootloader' should not return a value [-Wreturn-type] return -EOPNOTSUPP;

[PATCH AUTOSEL 5.3 07/89] perf jevents: Fix period for Intel fixed counters

2019-10-18 Thread Sasha Levin
From: Andi Kleen [ Upstream commit 6bdfd9f118bd59cf0f85d3bf4b72b586adea17c1 ] The Intel fixed counters use a special table to override the JSON information. During this override the period information from the JSON file got dropped, which results in inst_retired.any and similar running with

[PATCH AUTOSEL 5.3 04/89] perf tests: Avoid raising SEGV using an obvious NULL dereference

2019-10-18 Thread Sasha Levin
From: Ian Rogers [ Upstream commit e3e2cf3d5b1fe800b032e14c0fdcd9a6fb20cf3b ] An optimized build such as: make -C tools/perf CLANG=1 CC=clang EXTRA_CFLAGS="-O3 will turn the dereference operation into a ud2 instruction, raising a SIGILL rather than a SIGSEGV. Use raise(..) for correctness

[PATCH AUTOSEL 5.3 05/89] perf map: Fix overlapped map handling

2019-10-18 Thread Sasha Levin
From: Steve MacLean [ Upstream commit ee212d6ea20887c0ef352be8563ca13dbf965906 ] Whenever an mmap/mmap2 event occurs, the map tree must be updated to add a new entry. If a new map overlaps a previous map, the overlapped section of the previous map is effectively unmapped, but the

[PATCH AUTOSEL 5.3 03/89] libsubcmd: Make _FORTIFY_SOURCE defines dependent on the feature

2019-10-18 Thread Sasha Levin
From: Ian Rogers [ Upstream commit 4b0b2b096da9d296e0e5668cdfba8613bd6f5bc8 ] Unconditionally defining _FORTIFY_SOURCE can break tools that don't work with it, such as memory sanitizers: https://github.com/google/sanitizers/wiki/AddressSanitizer#faq Fixes: 4b6ab94eabe4 ("perf subcmd: Create

[PATCH AUTOSEL 5.3 08/89] perf tools: Propagate get_cpuid() error

2019-10-18 Thread Sasha Levin
From: Arnaldo Carvalho de Melo [ Upstream commit f67001a4a08eb124197ed4376941e1da9cf94b42 ] For consistency, propagate the exact cause for get_cpuid() to have failed. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-9ig269f7ktnhh99g4l15v...@git.kernel.org

[PATCH AUTOSEL 5.3 15/89] staging: rtl8188eu: fix null dereference when kzalloc fails

2019-10-18 Thread Sasha Levin
From: Connor Kuehl [ Upstream commit 955c1532a34305f2f780b47f0c40cc7c65500810 ] If kzalloc() returns NULL, the error path doesn't stop the flow of control from entering rtw_hal_read_chip_version() which dereferences the null pointer. Fix this by adding a 'goto' to the error path to more

[PATCH AUTOSEL 5.3 14/89] perf annotate: Don't return -1 for error when doing BPF disassembly

2019-10-18 Thread Sasha Levin
From: Arnaldo Carvalho de Melo [ Upstream commit 11aad897f6d1a28eae3b7e5b293647c522d65819 ] Return errno when open_memstream() fails and add two new speciall error codes for when an invalid, non BPF file or one without BTF is passed to symbol__disassemble_bpf(), so that its callers can rely on

[PATCH AUTOSEL 5.3 20/89] RDMA/iwcm: Fix a lock inversion issue

2019-10-18 Thread Sasha Levin
From: Bart Van Assche [ Upstream commit b66f31efbdad95ec274345721d99d1d835e6de01 ] This patch fixes the lock inversion complaint: WARNING: possible recursive locking detected 5.3.0-rc7-dbg+ #1 Not tainted

[PATCH AUTOSEL 5.3 23/89] selftests/kselftest/runner.sh: Add 45 second timeout per test

2019-10-18 Thread Sasha Levin
From: Kees Cook [ Upstream commit 852c8cbf34d3b3130a05c38064dd98614f97d3a8 ] Commit a745f7af3cbd ("selftests/harness: Add 30 second timeout per test") solves the problem of kselftest_harness.h-using binary tests possibly hanging forever. However, scripts and other binaries can still hang

[PATCH AUTOSEL 5.3 16/89] crypto: arm/aes-ce - add dependency on AES library

2019-10-18 Thread Sasha Levin
From: Ard Biesheuvel [ Upstream commit f703964fc66804e6049f2670fc11045aa8359b1a ] The ARM accelerated AES driver depends on the new AES library for its non-SIMD fallback so express this in its Kconfig declaration. Signed-off-by: Ard Biesheuvel Signed-off-by: Herbert Xu Signed-off-by: Sasha

[PATCH AUTOSEL 5.3 24/89] nfs: Fix nfsi->nrequests count error on nfs_inode_remove_request

2019-10-18 Thread Sasha Levin
From: ZhangXiaoxu [ Upstream commit 33ea5aaa87cdae0f9af4d6b7ee4f650a1a36fd1d ] When xfstests testing, there are some WARNING as below: WARNING: CPU: 0 PID: 6235 at fs/nfs/inode.c:122 nfs_clear_inode+0x9c/0xd8 Modules linked in: CPU: 0 PID: 6235 Comm: umount.nfs Hardware name: linux,dummy-virt

[PATCH AUTOSEL 5.3 21/89] HID: hyperv: Use in-place iterator API in the channel callback

2019-10-18 Thread Sasha Levin
From: Dexuan Cui [ Upstream commit 6a297c90efa68b2864483193b8bfb0d19478600c ] Simplify the ring buffer handling with the in-place API. Also avoid the dynamic allocation and the memory leak in the channel callback function. Signed-off-by: Dexuan Cui Acked-by: Jiri Kosina Signed-off-by: Sasha

[PATCH AUTOSEL 5.3 17/89] RDMA/siw: Fix serialization issue in write_space()

2019-10-18 Thread Sasha Levin
From: Krishnamraju Eraparaju [ Upstream commit df791c54d627bae53c9be3be40a69594c55de487 ] In siw_qp_llp_write_space(), 'sock' members should be accessed with sk_callback_lock held, otherwise, it could race with siw_sk_restore_upcalls(). And this could cause "NULL deref" panic. Below panic is

[PATCH AUTOSEL 5.3 22/89] kselftest: exclude failed TARGETS from runlist

2019-10-18 Thread Sasha Levin
From: Cristian Marussi [ Upstream commit 131b30c94fbc0adb15f911609884dd39dada8f00 ] A TARGET which failed to be built/installed should not be included in the runlist generated inside the run_kselftest.sh script. Signed-off-by: Cristian Marussi Signed-off-by: Shuah Khan Signed-off-by: Sasha

[PATCH AUTOSEL 5.3 27/89] arm64: ftrace: Ensure synchronisation in PLT setup for Neoverse-N1 #1542419

2019-10-18 Thread Sasha Levin
From: James Morse [ Upstream commit dd8a1f13488438c6c220b7cafa500baaf21a6e53 ] CPUs affected by Neoverse-N1 #1542419 may execute a stale instruction if it was recently modified. The affected sequence requires freshly written instructions to be executable before a branch to them is updated.

[PATCH AUTOSEL 5.3 34/89] RDMA/cm: Fix memory leak in cm_add/remove_one

2019-10-18 Thread Sasha Levin
From: Jack Morgenstein [ Upstream commit 94635c36f3854934a46d9e812e028d4721bbb0e6 ] In the process of moving the debug counters sysfs entries, the commit mentioned below eliminated the cm_infiniband sysfs directory. This sysfs directory was tied to the cm_port object allocated in procedure

[PATCH AUTOSEL 5.3 25/89] arm64: cpufeature: Effectively expose FRINT capability to userspace

2019-10-18 Thread Sasha Levin
From: Julien Grall [ Upstream commit 7230f7e99fecc684180322b056fad3853d1029d3 ] The HWCAP framework will detect a new capability based on the sanitized version of the ID registers. Sanitization is based on a whitelist, so any field not described will end up to be zeroed. At the moment,

[PATCH AUTOSEL 5.3 32/89] misc: fastrpc: prevent memory leak in fastrpc_dma_buf_attach

2019-10-18 Thread Sasha Levin
From: Navid Emamdoost [ Upstream commit fc739a058d99c9297ef6bfd923b809d85855b9a9 ] In fastrpc_dma_buf_attach if dma_get_sgtable fails the allocated memory for a should be released. Signed-off-by: Navid Emamdoost Link: https://lore.kernel.org/r/20190925152742.16258-1-navid.emamdo...@gmail.com

[PATCH AUTOSEL 5.3 35/89] RDMA/cxgb4: Do not dma memory off of the stack

2019-10-18 Thread Sasha Levin
From: Greg KH [ Upstream commit 3840c5b78803b2b6cc1ff820100a74a092c40cbb ] Nicolas pointed out that the cxgb4 driver is doing dma off of the stack, which is generally considered a very bad thing. On some architectures it could be a security problem, but odds are none of them actually run this

[PATCH AUTOSEL 5.3 28/89] tty: serial: owl: Fix the link time qualifier of 'owl_uart_exit()'

2019-10-18 Thread Sasha Levin
From: Christophe JAILLET [ Upstream commit 6264dab6efd6069f0387efb078a9960b5642377b ] 'exit' functions should be marked as __exit, not __init. Fixes: fc60a8b675bd ("tty: serial: owl: Implement console driver") Signed-off-by: Christophe JAILLET Link:

[PATCH AUTOSEL 5.3 30/89] serial/sifive: select SERIAL_EARLYCON

2019-10-18 Thread Sasha Levin
From: Christoph Hellwig [ Upstream commit 7e2a165de5a52003d10a611ee3884cdb5c44e8cd ] The sifive serial driver implements earlycon support, but unless another driver is built in that supports earlycon support it won't be usable. Explicitly select SERIAL_EARLYCON instead. Signed-off-by:

[PATCH AUTOSEL 5.3 33/89] RDMA/core: Fix an error handling path in 'res_get_common_doit()'

2019-10-18 Thread Sasha Levin
From: Christophe JAILLET [ Upstream commit ab59ca3eb4e7059727df85eee68bda169d26c8f8 ] According to surrounding error paths, it is likely that 'goto err_get;' is expected here. Otherwise, a call to 'rdma_restrack_put(res);' would be missing. Fixes: c5dfe0ea6ffa ("RDMA/nldev: Add resource

[PATCH AUTOSEL 5.3 38/89] RDMA/mlx5: Order num_pending_prefetch properly with synchronize_srcu

2019-10-18 Thread Sasha Levin
From: Jason Gunthorpe [ Upstream commit aa116b810ac9077a263ed8679fb4d595f180e0eb ] During destroy setting live = 0 and then synchronize_srcu() prevents num_pending_prefetch from incrementing, and also, ensures that all work holding that count is queued on the WQ. Testing before causes races of

[PATCH AUTOSEL 5.3 37/89] RDMA/mlx5: Do not allow rereg of a ODP MR

2019-10-18 Thread Sasha Levin
From: Jason Gunthorpe [ Upstream commit 880505cfef1d086d18b59d2920eb2160429ffa1f ] This code is completely broken, the umem of a ODP MR simply cannot be discarded without a lot more locking, nor can an ODP mkey be blithely destroyed via destroy_mkey(). Fixes: 6aec21f6a832 ("IB/mlx5: Page

[PATCH AUTOSEL 5.3 40/89] gpio: max77620: Use correct unit for debounce times

2019-10-18 Thread Sasha Levin
From: Thierry Reding [ Upstream commit fffa6af94894126994a7600c6f6f09b892e89fa9 ] The gpiod_set_debounce() function takes the debounce time in microseconds. Adjust the switch/case values in the MAX77620 GPIO to use the correct unit. Signed-off-by: Thierry Reding Link:

[PATCH AUTOSEL 5.3 56/89] ocfs2: clear zero in unaligned direct IO

2019-10-18 Thread Sasha Levin
From: Jia Guo [ Upstream commit 7a243c82ea527cd1da47381ad9cd646844f3b693 ] Unused portion of a part-written fs-block-sized block is not set to zero in unaligned append direct write.This can lead to serious data inconsistencies. Ocfs2 manage disk with cluster size(for example, 1M), part-written

[PATCH AUTOSEL 5.3 47/89] arm64: vdso32: Don't use KBUILD_CPPFLAGS unconditionally

2019-10-18 Thread Sasha Levin
From: Will Deacon [ Upstream commit c71e88c437962c1ec43d4d23a0ebf4c9cf9bee0d ] KBUILD_CPPFLAGS is defined differently depending on whether the main compiler is clang or not. This means that it is not possible to build the compat vDSO with GCC if the rest of the kernel is built with clang.

[PATCH AUTOSEL 5.3 44/89] serial: mctrl_gpio: Check for NULL pointer

2019-10-18 Thread Sasha Levin
From: Adam Ford [ Upstream commit 37e3ab00e4734acc15d96b2926aab55c894f4d9c ] When using mctrl_gpio_to_gpiod, it dereferences gpios into a single requested GPIO. This dereferencing can break if gpios is NULL, so this patch adds a NULL check before dereferencing it. If gpios is NULL, this

[PATCH AUTOSEL 5.3 52/89] riscv: avoid kernel hangs when trapped in BUG()

2019-10-18 Thread Sasha Levin
From: Vincent Chen [ Upstream commit 8b04825ed205da38754f86f4c07ea8600d8c2a65 ] When the CONFIG_GENERIC_BUG is disabled by disabling CONFIG_BUG, if a kernel thread is trapped by BUG(), the whole system will be in the loop that infinitely handles the ebreak exception instead of entering the die

[PATCH AUTOSEL 5.3 41/89] fs: cifs: mute -Wunused-const-variable message

2019-10-18 Thread Sasha Levin
From: Austin Kim [ Upstream commit dd19c106a36690b47bb1acc68372f2b472b495b8 ] After 'Initial git repository build' commit, 'mapping_table_ERRHRD' variable has not been used. So 'mapping_table_ERRHRD' const variable could be removed to mute below warning message: fs/cifs/netmisc.c:120:40:

[PATCH AUTOSEL 5.3 46/89] arm64: Default to building compat vDSO with clang when CONFIG_CC_IS_CLANG

2019-10-18 Thread Sasha Levin
From: Will Deacon [ Upstream commit 24ee01a927bfe56c66429ec4b1df6955a814adc8 ] Rather than force the use of GCC for the compat cross-compiler, instead extract the target from CROSS_COMPILE_COMPAT and pass it to clang if the main compiler is clang. Acked-by: Catalin Marinas Signed-off-by: Will

[PATCH AUTOSEL 5.3 64/89] sched/vtime: Fix guest/system mis-accounting on task switch

2019-10-18 Thread Sasha Levin
From: Frederic Weisbecker [ Upstream commit 68e7a4d66b0ce04bf18ff2ffded5596ab3618585 ] vtime_account_system() assumes that the target task to account cputime to is always the current task. This is most often true indeed except on task switch where we call:

[PATCH AUTOSEL 5.3 68/89] drm/amdgpu: fix memory leak

2019-10-18 Thread Sasha Levin
From: Nirmoy Das [ Upstream commit 083164dbdb17c5ea4ad92c1782b59c9d75567790 ] cleanup error handling code and make sure temporary info array with the handles are freed by amdgpu_bo_list_put() on idr_replace()'s failure. Signed-off-by: Nirmoy Das Reviewed-by: Christian König Signed-off-by:

[PATCH AUTOSEL 5.3 62/89] x86/cpu: Add Comet Lake to the Intel CPU models header

2019-10-18 Thread Sasha Levin
From: Kan Liang [ Upstream commit 8d7c6ac3b2371eb1cbc9925a88f4d10efff374de ] Comet Lake is the new 10th Gen Intel processor. Add two new CPU model numbers to the Intel family list. The CPU model numbers are not published in the SDM yet but they come from an authoritative internal source. [

[PATCH AUTOSEL 5.3 65/89] perf/core: Rework memory accounting in perf_mmap()

2019-10-18 Thread Sasha Levin
From: Song Liu [ Upstream commit d44248a41337731a111374822d7d4451b64e73e4 ] perf_mmap() always increases user->locked_vm. As a result, "extra" could grow bigger than "user_extra", which doesn't make sense. Here is an example case: (Note: Assume "user_lock_limit" is very small.) | # of

[PATCH AUTOSEL 5.3 53/89] riscv: avoid sending a SIGTRAP to a user thread trapped in WARN()

2019-10-18 Thread Sasha Levin
From: Vincent Chen [ Upstream commit e0c0fc18f10d5080cddde0e81505fd3e952c20c4 ] On RISC-V, when the kernel runs code on behalf of a user thread, and the kernel executes a WARN() or WARN_ON(), the user thread will be sent a bogus SIGTRAP. Fix the RISC-V kernel code to not send a SIGTRAP when a

[PATCH AUTOSEL 5.3 58/89] fs: ocfs2: fix a possible null-pointer dereference in ocfs2_write_end_nolock()

2019-10-18 Thread Sasha Levin
From: Jia-Ju Bai [ Upstream commit 583fee3e12df0e6f1f66f063b989d8e7fed0e65a ] In ocfs2_write_end_nolock(), there are an if statement on lines 1976, 2047 and 2058, to check whether handle is NULL: if (handle) When handle is NULL, it is used on line 2045:

[PATCH AUTOSEL 5.3 61/89] arm64: armv8_deprecated: Checking return value for memory allocation

2019-10-18 Thread Sasha Levin
From: Yunfeng Ye [ Upstream commit 3e7c93bd04edfb0cae7dad1215544c9350254b8f ] There are no return value checking when using kzalloc() and kcalloc() for memory allocation. so add it. Signed-off-by: Yunfeng Ye Signed-off-by: Will Deacon Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 5.3 71/89] iio: accel: adxl372: Fix push to buffers lost samples

2019-10-18 Thread Sasha Levin
From: Stefan Popa [ Upstream commit 62df81b74393079debf04961c48cb22268fc5fab ] One in two sample sets was lost by multiplying fifo_set_size with sizeof(u16). Also, the double number of available samples were pushed to the iio buffers. Signed-off-by: Stefan Popa Fixes: f4f55ce38e5f

[PATCH AUTOSEL 5.3 57/89] fs: ocfs2: fix possible null-pointer dereferences in ocfs2_xa_prepare_entry()

2019-10-18 Thread Sasha Levin
From: Jia-Ju Bai [ Upstream commit 56e94ea132bb5c2c1d0b60a6aeb34dcb7d71a53d ] In ocfs2_xa_prepare_entry(), there is an if statement on line 2136 to check whether loc->xl_entry is NULL: if (loc->xl_entry) When loc->xl_entry is NULL, it is used on line 2158: ocfs2_xa_add_entry(loc,

[PATCH AUTOSEL 5.3 73/89] iio: imu: adis16400: release allocated memory on failure

2019-10-18 Thread Sasha Levin
From: Navid Emamdoost [ Upstream commit ab612b1daf415b62c58e130cb3d0f30b255a14d0 ] In adis_update_scan_mode, if allocation for adis->buffer fails, previously allocated adis->xfer needs to be released. Signed-off-by: Navid Emamdoost Reviewed-by: Alexandru Ardelean Signed-off-by: Jonathan

[PATCH AUTOSEL 5.3 70/89] iio: accel: adxl372: Fix/remove limitation for FIFO samples

2019-10-18 Thread Sasha Levin
From: Stefan Popa [ Upstream commit d202ce4787e446556c6b9d01f84734c3f8174ba3 ] Currently, the driver sets the FIFO_SAMPLES register with the number of sample sets (maximum of 170 for 3 axis data, 256 for 2-axis and 512 for single axis). However, the FIFO_SAMPLES register should store the number

[PATCH AUTOSEL 5.3 67/89] perf/x86/amd: Change/fix NMI latency mitigation to use a timestamp

2019-10-18 Thread Sasha Levin
From: Tom Lendacky [ Upstream commit df4d29732fdad43a51284f826bec3e6ded177540 ] It turns out that the NMI latency workaround from commit: 6d3edaae16c6 ("x86/perf/amd: Resolve NMI latency issues for active PMCs") ends up being too conservative and results in the perf NMI handler claiming

[PATCH AUTOSEL 5.3 72/89] iio: accel: adxl372: Perform a reset at start up

2019-10-18 Thread Sasha Levin
From: Stefan Popa [ Upstream commit d9a997bd4d762d5bd8cc548d762902f58b5e0a74 ] We need to perform a reset a start up to make sure that the chip is in a consistent state. This reset also disables all the interrupts which should only be enabled together with the iio buffer. Not doing this, was

[PATCH AUTOSEL 5.3 75/89] iio: imu: st_lsm6dsx: fix waitime for st_lsm6dsx i2c controller

2019-10-18 Thread Sasha Levin
From: Lorenzo Bianconi [ Upstream commit fdb828e2c71a09bb9e865f41b015597c5f671705 ] i2c controller available in st_lsm6dsx series performs i2c slave configuration using accel clock as trigger. st_lsm6dsx_shub_wait_complete routine is used to wait the controller has carried out the requested

[PATCH AUTOSEL 5.3 63/89] sched/fair: Scale bandwidth quota and period without losing quota/period ratio precision

2019-10-18 Thread Sasha Levin
From: Xuewei Zhang [ Upstream commit 4929a4e6faa0f13289a67cae98139e727f0d4a97 ] The quota/period ratio is used to ensure a child task group won't get more bandwidth than the parent task group, and is calculated as: normalized_cfs_quota() = [(quota_us << 20) / period_us] If the quota/period

  1   2   3   4   5   6   7   8   9   10   >