KMSAN: uninit-value in asix_mdio_read

2019-10-07 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:1e76a3e5 kmsan: replace __GFP_NO_KMSAN_SHADOW with kmsan_i.. git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=10327cc360 kernel config: https://syzkaller.appspot.c

Re: Lay common foundation to make PVR/SGX work without hacks on OMAP34xx, OMAP36xx, AM335x and potentially OMAP4, OMAP5

2019-10-07 Thread Tero Kristo
On 07/10/2019 18:52, Tony Lindgren wrote: Hi, * H. Nikolaus Schaller [191005 16:59]: Hi all, with the arrival of v5.4-rc1 some of Tony's sysc patches have arrived upstream, so we do no longer need them here. Therefore, I have rebased my drivers/staging/pvr driver [1] and fixed some more issue

Re: WARNING in filldir64

2019-10-07 Thread Eric Biggers
On Mon, Oct 07, 2019 at 12:14:33PM -0700, Linus Torvalds wrote: > On Mon, Oct 7, 2019 at 12:07 PM Eric Biggers wrote: > > > > Seems this indicates a corrupt filesystem rather than a kernel bug, so using > > WARN_ON is not appropriate. It should either use pr_warn_once(), or be > > silent. > > I

Re: Potential NULL pointer deference in iwlwifi: mvm

2019-10-07 Thread Johannes Berg
On Mon, 2019-10-07 at 12:19 -0700, Yizhuo Zhai wrote: > Hi All: > > drivers/net/wireless/intel/iwlwifi/mvm/scan.c: > > Inside function iwl_mvm_power_ps_disabled_iterator(), > iwl_mvm_vif_from_mac80211() > could return NULL No, it can not. Whatever tool you've used to find this - you should fix

[PATCH] x86/cpu/vmware: use the full form of inl in VMWARE_PORT

2019-10-07 Thread Sami Tolvanen
LLVM's assembler doesn't accept the short form inl (%%dx) instruction, but instead insists on the output register to be explicitly specified: :1:7: error: invalid operand for instruction inl (%dx) ^ LLVM ERROR: Error parsing inline asm Use the full form of the instructi

[PATCH v2 4/4] drm/sun4i: Enable DRM InfoFrame support on H6

2019-10-07 Thread Jonas Karlman
This patch enables Dynamic Range and Mastering InfoFrame on H6. Cc: Maxime Ripard Cc: Jernej Skrabec Signed-off-by: Jonas Karlman Reviewed-by: Andrzej Hajda --- drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c | 2 ++ drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h | 1 + 2 files changed, 3 insertions(+) diff --

Re: [PATCH] Convert filldir[64]() from __put_user() to unsafe_put_user()

2019-10-07 Thread Linus Torvalds
On Sun, Oct 6, 2019 at 3:20 PM Guenter Roeck wrote: > > this patch causes all my sparc64 emulations to stall during boot. It causes > all alpha emulations to crash with [1a] and [1b] when booting from a virtual > disk, and one of the xtensa emulations to crash with [2]. So I think your alpha emul

[PATCH v2 3/4] drm/meson: Enable DRM InfoFrame support on GXL, GXM and G12A

2019-10-07 Thread Jonas Karlman
This patch enables Dynamic Range and Mastering InfoFrame on GXL, GXM and G12A. Cc: Neil Armstrong Signed-off-by: Jonas Karlman Reviewed-by: Neil Armstrong --- drivers/gpu/drm/meson/meson_dw_hdmi.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/meson/meson_dw_hdmi.c b

[PATCH v2 1/4] drm/bridge: dw-hdmi: Add Dynamic Range and Mastering InfoFrame support

2019-10-07 Thread Jonas Karlman
Add support for configuring Dynamic Range and Mastering InfoFrame from the hdr_output_metadata connector property. This patch adds a use_drm_infoframe flag to dw_hdmi_plat_data that platform drivers use to signal when Dynamic Range and Mastering infoframes is supported. This flag is needed because

[PATCH v2 2/4] drm/rockchip: Enable DRM InfoFrame support on RK3328 and RK3399

2019-10-07 Thread Jonas Karlman
This patch enables Dynamic Range and Mastering InfoFrame on RK3328 and RK3399. Cc: Sandy Huang Cc: Heiko Stuebner Signed-off-by: Jonas Karlman Reviewed-by: Heiko Stuebner Reviewed-by: Andrzej Hajda --- drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 2 ++ 1 file changed, 2 insertions(+) diff

Re: Lay common foundation to make PVR/SGX work without hacks on OMAP34xx, OMAP36xx, AM335x and potentially OMAP4, OMAP5

2019-10-07 Thread H. Nikolaus Schaller
Hi Tero, > Am 07.10.2019 um 21:18 schrieb Tero Kristo : > > On 07/10/2019 18:52, Tony Lindgren wrote: >> Hi, >> * H. Nikolaus Schaller [191005 16:59]: >> Please try with Tero's current github branch at >> github.com/t-kristo/linux-pm.git >> 5.4-rc1-ipc from few days ago, the earlier versions ha

Re: WARNING in filldir64

2019-10-07 Thread Linus Torvalds
On Mon, Oct 7, 2019 at 12:19 PM Eric Biggers wrote: > > So it seems to have generated a corrupt filesystem image and tried to mount > it. Ok, then everything is working as expected. Let's ignore the syzbot one for now, and see if some other load triggers this. Linus

Re: [PATCH v10 12/16] leds: lp55xx: Add multicolor framework support to lp55xx

2019-10-07 Thread Jacek Anaszewski
Dan, On 10/7/19 7:08 PM, Dan Murphy wrote: > Jacek > > On 10/6/19 2:52 PM, Jacek Anaszewski wrote: >> Dan, >> >> On 10/1/19 4:56 PM, Dan Murphy wrote: >>> Add multicolor framework support for the lp55xx family. >>> >>> Signed-off-by: Dan Murphy >>> --- >>>   drivers/leds/Kconfig 

Re: [PATCH] x86/cpu/vmware: use the full form of inl in VMWARE_PORT

2019-10-07 Thread Thomas Hellstrom
On 10/7/19 9:21 PM, Sami Tolvanen wrote: > LLVM's assembler doesn't accept the short form inl (%%dx) instruction, > but instead insists on the output register to be explicitly specified: > > :1:7: error: invalid operand for instruction > inl (%dx) > ^ > LLVM ERROR: Error

Re: [ANNOUNCE] 4.19.72-rt25

2019-10-07 Thread Gene Heskett
On Monday 16 September 2019 17:39:21 Steven Rostedt wrote: > Dear RT Folks, > > I'm pleased to announce the 4.19.72-rt25 stable release. > > > > As you probably have noticed, it has been a long time since I released > a stable 4.19-rt. The reason for this delay is that one of my tests >

[PATCH v3 4/6] tools/power/x86/intel-speed-select: Implement CascadeLake-N help and command functions structures

2019-10-07 Thread Srinivas Pandruvada
From: Prarit Bhargava CascadeLake-N only supports SST-BF and needs some of the perf-profile commands, and the base-freq commands. Add help functions, and create an empty command structures (the functions will be implemented later in this patchset). Call these functions when running on CascadeLa

[PATCH v3 3/6] tools/power/x86/intel-speed-select: Add check for CascadeLake-N models

2019-10-07 Thread Srinivas Pandruvada
From: Prarit Bhargava Three CascadeLake-N models (6252N, 6230N, and 5218N) have SST-PBF support. Return an error if the CascadeLake processor is not one of these specific models. Signed-off-by: Prarit Bhargava Signed-off-by: Srinivas Pandruvada --- .../x86/intel-speed-select/isst-config.c

[PATCH v3 0/6] Add CascadeLake-N Support

2019-10-07 Thread Srinivas Pandruvada
Add support for SST-BF on CascadeLake-N support. The CascadeLake-N processor only support SST-BF and not other SST functionality. v3: Fix crash due to geline Fix display to perf-profile info and base-freq info command Fix output for coremask Fix base frequency CPU list. This should be displayed f

[PATCH v3 2/6] tools/power/x86/intel-speed-select: Make process_command generic

2019-10-07 Thread Srinivas Pandruvada
From: Prarit Bhargava Make the process_command take any help command and command list. This will make it easier to help commands and a command list for CascadeLake-N. Signed-off-by: Prarit Bhargava Signed-off-by: Srinivas Pandruvada --- .../x86/intel-speed-select/isst-config.c | 20

[PATCH v3 1/6] tools/power/x86/intel-speed-select: Add int argument to command functions

2019-10-07 Thread Srinivas Pandruvada
From: Prarit Bhargava The current code structure has similar but separate command functions for the enable and disable operations. This can be improved by adding an int argument to the command function structure, and interpreting 1 as enable and 0 as disable. This change results in the removal

[PATCH v3 5/6] tools/power/x86/intel-speed-select: Implement 'perf-profile info' on CascadeLake-N

2019-10-07 Thread Srinivas Pandruvada
From: Prarit Bhargava Add functionality for "perf-profile info" on CascadeLake-N. Sample output: intel-speed-select perf-profile info Intel(R) Speed Select Technology Executing on CPU model:85[0x55] package-0 die-0 cpu-0 perf-profile-level-0 cpu-count:20 enable-cpu-m

Re: [PATCH v2] nvme-pci: Shutdown when removing dead controller

2019-10-07 Thread Tyler Ramer
Keith, Thanks for clarifying. I appreciate the comments.

[PATCH v3 6/6] tools/power/x86/intel-speed-select: Implement base-freq commands on CascadeLake-N

2019-10-07 Thread Srinivas Pandruvada
From: Prarit Bhargava Add functionality for base-freq info|enable|disable info on CascadeLake-N. Sample output: Intel(R) Speed Select Technology Executing on CPU model:85[0x55] package-0 die-0 cpu-0 speed-select-base-freq high-priority-base-frequency(MHz):270 hig

Re: Decoding an oops

2019-10-07 Thread Linus Torvalds
On Mon, Oct 7, 2019 at 7:58 AM Francis M wrote: > > Attached is a JPEG of what I've been able to capture from the console. > I'm guessing it's probably not enough to go on, but hoping someone > might have an 'ahh, that looks familiar' moment. That is an awkwardly small snippet and not showing any

KMSAN: uninit-value in alauda_check_media

2019-10-07 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:1e76a3e5 kmsan: replace __GFP_NO_KMSAN_SHADOW with kmsan_i.. git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=1204cc6360 kernel config: https://syzkaller.appspot.c

[PATCH] kernel/groups.c: use bsearch library function

2019-10-07 Thread Thomas Meyer
commit b7b2562f7252 ("kernel/groups.c: use sort library function") introduced the sort library function. also use the bsearch library function instead of open-coding the binary search. Signed-off-by: Thomas Meyer --- kernel/groups.c | 17 - 1 file changed, 4 insertions(+), 13 del

Re: [PATCH] Convert filldir[64]() from __put_user() to unsafe_put_user()

2019-10-07 Thread Tony Luck
On Mon, Oct 7, 2019 at 12:09 PM Linus Torvalds wrote: > Hmm? I thought ia64 did unaligneds ok. If PSR.ac is set, we trap. If it isn't set, then model specific (though all implementations will trap for an unaligned access that crosses a 4K boundary). Linux sets PSR.ac. Applications can use prctl(

Re: [PATCH v2 2/2] reset: Reset controller driver for Intel LGM SoC

2019-10-07 Thread Martin Blumenstingl
Hi Philipp, On Thu, Oct 3, 2019 at 4:19 PM Philipp Zabel wrote: [...] > > because the register layout was greatly simplified for the newer SoCs > > (for which there is reset-intel) compared to the older ones > > (reset-lantiq). > > Dilip's suggestion (in my own words) is that you take his new > >

Re: [PATCH 10/16] x86/cpu: Detect VMX features on Intel, Centaur and Zhaoxin CPUs

2019-10-07 Thread Sean Christopherson
On Mon, Oct 07, 2019 at 07:11:24PM +0200, Paolo Bonzini wrote: > On 04/10/19 23:56, Sean Christopherson wrote: > > + /* > > +* The high bits contain the allowed-1 settings, i.e. features that can > > +* be turned on. The low bits contain the allowed-0 settings, i.e. > > +* features t

Re: [PATCH 11/16] x86/cpu: Print VMX features as separate line item in /proc/cpuinfo

2019-10-07 Thread Sean Christopherson
On Mon, Oct 07, 2019 at 07:12:37PM +0200, Paolo Bonzini wrote: > On 04/10/19 23:56, Sean Christopherson wrote: > > diff --git a/arch/x86/kernel/cpu/proc.c b/arch/x86/kernel/cpu/proc.c > > index cb2e49810d68..4eec8889b0ff 100644 > > --- a/arch/x86/kernel/cpu/proc.c > > +++ b/arch/x86/kernel/cpu/proc

Re: [PATCH] x86/cpu/vmware: use the full form of inl in VMWARE_PORT

2019-10-07 Thread Nick Desaulniers
On Mon, Oct 7, 2019 at 12:21 PM 'Sami Tolvanen' via Clang Built Linux wrote: > > LLVM's assembler doesn't accept the short form inl (%%dx) instruction, > but instead insists on the output register to be explicitly specified: > > :1:7: error: invalid operand for instruction > inl (%dx)

Re: [PATCH -next 16/34] rtc: meson: use devm_platform_ioremap_resource() to simplify code

2019-10-07 Thread Martin Blumenstingl
On Sun, Oct 6, 2019 at 12:38 PM YueHaibing wrote: > > Use devm_platform_ioremap_resource() to simplify the code a bit. > This is detected by coccinelle. > > Signed-off-by: YueHaibing Reviewed-by: Martin Blumenstingl thank you for taking care of this! Martin

Re: [PATCH] Convert filldir[64]() from __put_user() to unsafe_put_user()

2019-10-07 Thread Linus Torvalds
On Mon, Oct 7, 2019 at 12:49 PM Tony Luck wrote: > > If PSR.ac is set, we trap. If it isn't set, then model specific > (though all implementations will > trap for an unaligned access that crosses a 4K boundary). Ok. At that point, setting AC unconditionally is the better model just to get test co

linux-next: Signed-off-by missing for commit in the kbuild-current tree

2019-10-07 Thread Stephen Rothwell
Hi all, Commit da6221f246f9 ("scripts: setlocalversion: fix a bashism") is missing a Signed-off-by from its committer. -- Cheers, Stephen Rothwell pgpy0RddbRT6J.pgp Description: OpenPGP digital signature

Re: [PATCH] x86/purgatory: Make sure we fail the build if purgatory.ro has missing symbols

2019-10-07 Thread Nathan Chancellor
On Mon, Oct 07, 2019 at 07:55:46PM +0200, Hans de Goede wrote: > Since we link purgatory.ro with -r aka we enable "incremental linking" > no checks for unresolved symbols is done while linking purgatory.ro. > > Changes to the sha256 code has caused the purgatory in 5.4-rc1 to have > a missing symb

Re: [PATCH 00/10] Stitch LBR call stack

2019-10-07 Thread Liang, Kan
On 10/7/2019 2:24 PM, Ingo Molnar wrote: * kan.li...@linux.intel.com wrote: Performance impact: The processing time may increase with the LBR stitching approach enabled. The impact depends on the number of samples with stitched LBRs. For sqlite's tcltest, perf record --call-graph lbr -- m

Re: ptrace/strace and freezer oddities and v5.2+ kernels

2019-10-07 Thread Bruce Ashfield
On Mon, Oct 7, 2019 at 8:54 AM Bruce Ashfield wrote: > > On Thu, Oct 3, 2019 at 8:09 PM Roman Gushchin wrote: > > > > On Wed, Oct 02, 2019 at 05:59:36PM -0400, Bruce Ashfield wrote: > > > On Wed, Oct 2, 2019 at 2:19 PM Roman Gushchin wrote: > > > > > > > > On Wed, Oct 02, 2019 at 12:18:54AM -040

Re: [RFCv1 5/5] arm64/ARM: configs: Change CONFIG_PWM_MESON from m to y

2019-10-07 Thread Martin Blumenstingl
On Mon, Oct 7, 2019 at 3:17 PM Anand Moon wrote: [...] > diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig > index c9a867ac32d4..72f6a7dca0d6 100644 > --- a/arch/arm64/configs/defconfig > +++ b/arch/arm64/configs/defconfig > @@ -774,7 +774,7 @@ CONFIG_MPL3115=m > CONFIG_PWM

Re: Decoding an oops

2019-10-07 Thread Francis M
On Mon, 7 Oct 2019 at 20:38, Linus Torvalds wrote: > > On Mon, Oct 7, 2019 at 7:58 AM Francis M wrote: > > > > Attached is a JPEG of what I've been able to capture from the console. > > I'm guessing it's probably not enough to go on, but hoping someone > > might have an 'ahh, that looks familiar'

[PATCH] arm64: lse: fix LSE atomics with LLVM's integrated assembler

2019-10-07 Thread Sami Tolvanen
Unlike gcc, clang considers each inline assembly block to be independent and therefore, when using the integrated assembler for inline assembly, any preambles that enable features must be repeated in each block. Instead of changing all inline assembly blocks that use LSE, this change adds -march=a

linux-next: Fixes tag needs some work in the block tree

2019-10-07 Thread Stephen Rothwell
Hi all, In commit 1d200e9d6f63 ("block: Fix writeback throttling W=1 compiler warnings") Fixes tag Fixes: e34cbd307477 ("blk-wbt: add general throttling mechanism"; v4.10). has these problem(s): - Subject has leading but no trailing quotes - Subject does not match target commit subjec

Re: [PATCH v2 1/4] dt-bindings: phy: add binding for the Lantiq VRX200 and ARX300 PCIe PHYs

2019-10-07 Thread Martin Blumenstingl
Hi Rob, On Wed, Oct 2, 2019 at 4:37 PM Rob Herring wrote: > > On Thu, Jul 4, 2019 at 7:23 AM Martin Blumenstingl > wrote: > > > > Add the bindings for the PCIe PHY on Lantiq VRX200 and ARX300 SoCs. > > The IP block contains settings for the PHY and a PLL. > > The PLL mode is configurable through

[PATCH] scsi_transport_sas: Potential NULL pointer deference in sas_rphy_match()

2019-10-07 Thread Yizhuo
Inside function sas_rphy_match(), dev_to_shost() could return NULL, however, the return value of dev_to_shost() is not checked and get used. This could potentially be unsafe. Signed-off-by: Yizhuo --- drivers/scsi/scsi_transport_sas.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers

A Question about the patch "[PATCH v8 3/4] PCI: Introduce disable_acs_redir quirk"

2019-10-07 Thread Guy Crazy
Hi, I have a question about this patch from the web link (https://lwn.net/ml/linux-kernel/20180730161840.13733-4-log...@deltatee.com/). According to the PCIe spec (PCIe 3.0), ACS Upstream Forwarding (UF) seems quite similar with Request Redirect (RR). Why pci_quirk_disable_intel_spt_pch_acs_redir

Re: [PATCH] arm64: lse: fix LSE atomics with LLVM's integrated assembler

2019-10-07 Thread Nick Desaulniers
On Mon, Oct 7, 2019 at 1:14 PM 'Sami Tolvanen' via Clang Built Linux wrote: > > Unlike gcc, clang considers each inline assembly block to be independent > and therefore, when using the integrated assembler for inline assembly, > any preambles that enable features must be repeated in each block. >

Re: [PATCH] Convert filldir[64]() from __put_user() to unsafe_put_user()

2019-10-07 Thread Guenter Roeck
On Mon, Oct 07, 2019 at 12:21:25PM -0700, Linus Torvalds wrote: > On Sun, Oct 6, 2019 at 3:20 PM Guenter Roeck wrote: > > > > this patch causes all my sparc64 emulations to stall during boot. It causes > > all alpha emulations to crash with [1a] and [1b] when booting from a virtual > > disk, and o

Potential NULL pointer deference in scsi: scsi_transport_spi

2019-10-07 Thread Yizhuo Zhai
Hi All: drivers/scsi/scsi_transport_spi.c: Inside function store_spi_transport_period(), dev_to_shost() could return NULL, however, the return value shost is not checked and get used. This could potentially be unsafe. -- Kind Regards, Yizhuo Zhai Computer Science, Graduate Student University

Re: [PATCH] x86/purgatory: Make sure we fail the build if purgatory.ro has missing symbols

2019-10-07 Thread Hans de Goede
HI, On 07-10-2019 22:05, Nathan Chancellor wrote: On Mon, Oct 07, 2019 at 07:55:46PM +0200, Hans de Goede wrote: Since we link purgatory.ro with -r aka we enable "incremental linking" no checks for unresolved symbols is done while linking purgatory.ro. Changes to the sha256 code has caused the

[RESEND PATCH 0/2] Add bluetooth support for Orange Pi 3

2019-10-07 Thread megous
From: Ondrej Jirman (Re-send for Maxime, with already applied patches dropped. Nothing new.) This series implements bluetooth support for Xunlong Orange Pi 3 board. The board uses AP6256 WiFi/BT 5.0 chip. Summary of changes: - add more delay to let initialize the chip - let the kernel detect

[RESEND PATCH 2/2] arm64: dts: allwinner: orange-pi-3: Enable UART1 / Bluetooth

2019-10-07 Thread megous
From: Ondrej Jirman The board contains AP6256 WiFi/BT module that has its bluetooth part connected to SoC's UART1 port. Enable this port, and add node for the bluetooth device. Bluetooth part is named bcm4345c5. You'll need a BCM4345C5.hcd firmware file that can be found in the Xulongs's reposi

[RESEND PATCH 1/2] arm64: dts: allwinner: h6: Add pin configs for uart1

2019-10-07 Thread megous
From: Ondrej Jirman Orange Pi 3 uses UART1 for bluetooth. Add pinconfigs so that we can use them. Signed-off-by: Ondrej Jirman --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/a

Potential NULL pointer deference in scsi

2019-10-07 Thread Yizhuo Zhai
Hi All: drivers/scsi/scsi.c: Inside function __starget_for_each_device(), dev_to_shost() could return NULL,however, the return value shost is not checked and get used. This could potentially be unsafe. -- Kind Regards, Yizhuo Zhai Computer Science, Graduate Student University of California, R

[PATCH 1/3] Input: mms114 - use device_get_match_data

2019-10-07 Thread Stephan Gerhold
device_get_match_data is available now, so we can replace the call to of_device_get_match_data and remove the FIXME comment. Signed-off-by: Stephan Gerhold --- drivers/input/touchscreen/mms114.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/mms11

[PATCH 2/2] drm/msm: always dump buffer base/size

2019-10-07 Thread Rob Clark
From: Rob Clark Even if we are not dumping the buffer's contents, it is useful to log their base address and size. This makes it easier to see when different gpu pointers point to a single buffer, for example higher mipmap levels of a single texture. Signed-off-by: Rob Clark --- drivers/gpu/d

[PATCH v2] base: soc: Handle custom soc information sysfs entries

2019-10-07 Thread Murali Nalajala
Soc framework exposed sysfs entries are not sufficient for some of the h/w platforms. Currently there is no interface where soc drivers can expose further information about their SoCs via soc framework. This change address this limitation where clients can pass their custom entries as attribute gro

[PATCH 0/3] Add support for Melfas MMS345L touchscreen

2019-10-07 Thread Stephan Gerhold
This patch series adds support for the Melfas MMS345L touchscreen to the mms114 driver. MMS345L is used in the Samsung Galaxy A5 (2015) that has recently gained mainline support [1]. [1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1329c1ab0730b521e6cd3051c56a2f

[PATCH 2/3] dt-bindings: mms114: document melfas,mms345l binding

2019-10-07 Thread Stephan Gerhold
The mms114 driver now supports MMS345L; document the melfas,mms345l binding that is used for it. Signed-off-by: Stephan Gerhold --- Documentation/devicetree/bindings/input/touchscreen/mms114.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindin

[PATCH] w1: new driver. DS2430 chip

2019-10-07 Thread Angelo Dureghello
boot log ... Driver for 1-wire Dallas network protocol. w1_master_driver w1_bus_master1: Attaching one wire slave 14.0158556e crc f7 11 22 33 ff ff ff ff ff ff ff ff ff ff ff ff ff 0010 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 0020 Signed-off-by: Angelo Dureghell

RE:PERSONAL LETTER FROM MRS RASHIA AMIRA

2019-10-07 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 Kin

Potential NULL pointer deference in SFI

2019-10-07 Thread Yizhuo Zhai
Hi All: drivers/sfi/sfi_core.c: Inside function sfi_map_table(), sfi_map_memory() could return NULL, however, the return value of sfi_map_memory() is not checked and get used. This could potentially be unsafe. -- Kind Regards, Yizhuo Zhai Computer Science, Graduate Student University of Calif

Re: Build regressions/improvements in v5.4-rc2

2019-10-07 Thread Randy Dunlap
On 10/7/19 12:18 AM, Geert Uytterhoeven wrote: > Below is the list of build error/warning regressions/improvements in > v5.4-rc2[1] compared to v5.3[2]. > > Summarized: > - build errors: +10/-3 > - build warnings: +152/-143 > > JFYI, when comparing v5.4-rc2[1] to v5.4-rc1[3], the summaries ar

UAF read in print_binder_transaction_log_entry() on ANDROID_BINDERFS kernels

2019-10-07 Thread Jann Horn
Hi! There is a use-after-free read in print_binder_transaction_log_entry() on ANDROID_BINDERFS kernels because print_binder_transaction_log_entry() prints the char* e->context_name as string, and if the transaction occurred on a binder device from binderfs, e->context_name belongs to the binder de

Re: [PATCH v3] perf tools: avoid sample_reg_masks being const + weak

2019-10-07 Thread Nick Desaulniers
On Mon, Sep 30, 2019 at 5:36 PM 'Ian Rogers' via Clang Built Linux wrote: > > Being const + weak breaks with some compilers that constant-propagate > from the weak symbol. This behavior is outside of the specification, but > in LLVM is chosen to match GCC's behavior. > > LLVM's implementation was

Re: Question about sched_prio_to_weight values

2019-10-07 Thread Francesco Poli
On Mon, 7 Oct 2019 10:13:23 +0100 Valentin Schneider wrote: [...] > Following the blame rabbit hole I found this: > > 254753dc321e ("sched: make the multiplication table more accurate") > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=254753dc321ea2b753ca9bc58ac3295

[PATCH 3/3] Input: mms114 - add support for mms345l

2019-10-07 Thread Stephan Gerhold
MMS345L is another first generation touch screen from Melfas, which uses the same registers as MMS152. However, using I2C_M_NOSTART for it causes errors when reading: i2c i2c-0: sendbytes: NAK bailout. mms114 0-0048: __mms114_read_reg: i2c transfer failed (-5) The driver works fi

Re: Potential NULL pointer deference in scsi: scsi_transport_spi

2019-10-07 Thread James Bottomley
On Mon, 2019-10-07 at 13:30 -0700, Yizhuo Zhai wrote: > Hi All: > > drivers/scsi/scsi_transport_spi.c: > > Inside function store_spi_transport_period(), dev_to_shost() > could return NULL No, it can't. The device model ensures that a SCSI target or device must be parented to a host. James > ,

[PATCH] x86/cpufeatures: Add feature bit RDPRU on AMD

2019-10-07 Thread Babu Moger
AMD Zen 2 introduces new RDPRU instruction which is used to give access to some processor registers that are typically only accessible when the privilege level is zero. ECX is used as the implicit register to specify which register to read. RDPRU places the specified register’s value into EDX:EAX

[GIT PULL] Kselftest update for Linux 5.4-rc3

2019-10-07 Thread Shuah Khan
Hi Linus, Please pull the following Kselftest update for Linux 5.4-rc3. This Kselftest update for Linux 5.4-rc3 consists fixes for existing tests and the framework. Cristian Marussi's patches add ability to skip targets (tests) and exclude tests that didn't build from run-list. These patches imp

Re: UAF read in print_binder_transaction_log_entry() on ANDROID_BINDERFS kernels

2019-10-07 Thread Todd Kjos
+Hridya Valsaraju On Mon, Oct 7, 2019 at 1:50 PM Jann Horn wrote: > > Hi! > > There is a use-after-free read in print_binder_transaction_log_entry() > on ANDROID_BINDERFS kernels because > print_binder_transaction_log_entry() prints the char* e->context_name > as string, and if the transaction o

Re: Build regressions/improvements in v5.4-rc2

2019-10-07 Thread Geert Uytterhoeven
Hi Randy, On Mon, Oct 7, 2019 at 10:48 PM Randy Dunlap wrote: > On 10/7/19 12:18 AM, Geert Uytterhoeven wrote: > > Below is the list of build error/warning regressions/improvements in > > v5.4-rc2[1] compared to v5.3[2]. > > > > Summarized: > > - build errors: +10/-3 > > - build warnings: +15

Re: UAF read in print_binder_transaction_log_entry() on ANDROID_BINDERFS kernels

2019-10-07 Thread Christian Brauner
On Mon, Oct 07, 2019 at 10:49:57PM +0200, Jann Horn wrote: > Hi! > > There is a use-after-free read in print_binder_transaction_log_entry() > on ANDROID_BINDERFS kernels because > print_binder_transaction_log_entry() prints the char* e->context_name > as string, and if the transaction occurred on

Potential NULL pointer deference in net: sched

2019-10-07 Thread Yizhuo Zhai
Hi All: net/sched/sch_mq.c: Inside function mq_dump_class(), mq_queue_get() could return NULL, however, the return value of dev_queue is not checked and get used. This could potentially be unsafe. -- Kind Regards, Yizhuo Zhai Computer Science, Graduate Student University of California, River

Re: [RFC][PATCH v2 4/5] dt-bindings: usb: dwc3: of-simple: add compatible for HiSi

2019-10-07 Thread Rob Herring
On Mon, Oct 7, 2019 at 2:07 PM John Stultz wrote: > > On Mon, Oct 7, 2019 at 11:38 AM Rob Herring wrote: > > > > On Mon, Oct 7, 2019 at 12:56 PM John Stultz wrote: > > > > > > Add necessary compatible flag for HiSi's DWC3 so > > > dwc3-of-simple will probe. > > > > > > Cc: Greg Kroah-Hartman >

Re: [PATCH 1/2] Modify cpupower to schedule itself on cores it is reading MSRs from

2019-10-07 Thread Natarajan, Janakarajan
On 10/5/2019 7:40 AM, Thomas Renninger wrote: > Hi, > > On Wednesday, October 2, 2019 4:45:03 PM CEST Natarajan, Janakarajan wrote: >> On 9/27/19 4:48 PM, Thomas Renninger wrote: >> >>> On Friday, September 27, 2019 6:07:56 PM CEST Natarajan, Janakarajan >>> wrote: On 9/18/2019 11:34 AM, Nata

Re: [PATCH] scatterlist: Validate page before calling PageSlab()

2019-10-07 Thread Alan Mikhak
On Mon, Oct 7, 2019 at 9:44 AM Alan Mikhak wrote: > > On Sun, Oct 6, 2019 at 11:13 PM Christoph Hellwig wrote: > > > > On Mon, Sep 30, 2019 at 04:22:35PM -0700, Alan Mikhak wrote: > > > From: Alan Mikhak > > > > > > Modify sg_miter_stop() to validate the page pointer > > > before calling PageSla

[PATCH] arm64: fix alternatives with LLVM's integrated assembler

2019-10-07 Thread Sami Tolvanen
LLVM's integrated assembler fails with the following error when building KVM: :12:6: error: expected absolute expression .if kvm_update_va_mask == 0 ^ :21:6: error: expected absolute expression .if kvm_update_va_mask == 0 ^ :24:2: error: unrecognized instruction mnemonic

Re: [PATCH 02/10] iio: imu: adis: add unlocked read/write function versions

2019-10-07 Thread Jonathan Cameron
On Sun, 6 Oct 2019 10:12:01 +0100 Jonathan Cameron wrote: > On Thu, 26 Sep 2019 14:18:04 +0300 > Alexandru Ardelean wrote: > > > This will allow more flexible control to group reads & writes into a single > > lock (particularly the state_lock). > > > > The end-goal is to remove the indio_dev->

[PATCH] blk-stat: Optimise blk_stat_add()

2019-10-07 Thread Pavel Begunkov (Silence)
From: Pavel Begunkov blk_stat_add() calls {get,put}_cpu_ptr() in a loop, which entails overhead of disabling/enabling preemption. The loop is under RCU (i.e.short) anyway, so do get_cpu() in advance. Signed-off-by: Pavel Begunkov --- block/blk-stat.c | 7 --- 1 file changed, 4 insertions(+

Re: UAF read in print_binder_transaction_log_entry() on ANDROID_BINDERFS kernels

2019-10-07 Thread Hridya Valsaraju
Thank you for letting us know about the issue Jann. I will work on a fix and send out the same for review once ready. Regards, Hridya On Mon, Oct 7, 2019 at 2:04 PM Todd Kjos wrote: > > +Hridya Valsaraju > > > On Mon, Oct 7, 2019 at 1:50 PM Jann Horn wrote: > > > > Hi! > > > > There is a use-a

[PATCH] RDMA/hns: Fix build error again

2019-10-07 Thread Arnd Bergmann
This is not the first attempt to fix building random configurations, unfortunately the attempt in commit a07fc0bb483e ("RDMA/hns: Fix build error") caused a new problem when CONFIG_INFINIBAND_HNS_HIP06=m and CONFIG_INFINIBAND_HNS_HIP08=y: drivers/infiniband/hw/hns/hns_roce_main.o:(.rodata+0xe60):

[PATCH v10 3/5] dma-buf: heaps: Add system heap to dmabuf heaps

2019-10-07 Thread John Stultz
This patch adds system heap to the dma-buf heaps framework. This allows applications to get a page-allocator backed dma-buf for non-contiguous memory. This code is an evolution of the Android ION implementation, so thanks to its original authors and maintainters: Rebecca Schultz Zavin, Colin Cr

Re: Potential NULL pointer deference in net: sched

2019-10-07 Thread Eric Dumazet
On 10/7/19 2:08 PM, Yizhuo Zhai wrote: > Hi All: > > net/sched/sch_mq.c: > Inside function mq_dump_class(), mq_queue_get() could return NULL, > however, the return value of dev_queue is not checked and get used. > This could potentially be unsafe. > > Not really. mq_dump_class() is called

Re: [PATCH v4 1/2] fpga: fpga-mgr: Add readback support

2019-10-07 Thread Moritz Fischer
Hi Thor, On Mon, Oct 07, 2019 at 01:06:51PM -0500, Thor Thayer wrote: > Hi Moritz, > > On 9/27/19 1:23 PM, Moritz Fischer wrote: > > Thor, > > > > On Fri, Sep 27, 2019 at 09:32:11AM -0500, Thor Thayer wrote: > > > Hi Kedar & Moritz, > > > > > > On 9/27/19 12:13 AM, Appana Durga Kedareswara Rao

Re: [PATCH] soc: qcom: llcc: Name regmaps to avoid collisions

2019-10-07 Thread Evan Green
On Fri, Oct 4, 2019 at 4:31 PM Stephen Boyd wrote: > > We'll end up with debugfs collisions if we don't give names to the > regmaps created inside this driver. Copy the template config over into > this function and give the regmap the same name as the resource name. > > Fixes: 7f9c136216c7 ("soc:

Re: [PATCH v10 1/5] dma-buf: Add dma-buf heaps framework

2019-10-07 Thread Randy Dunlap
On 10/7/19 2:18 PM, John Stultz wrote: > diff --git a/drivers/dma-buf/Kconfig b/drivers/dma-buf/Kconfig > index a23b6752d11a..6e9c7c4d7447 100644 > --- a/drivers/dma-buf/Kconfig > +++ b/drivers/dma-buf/Kconfig > @@ -44,4 +44,13 @@ config DMABUF_SELFTESTS > default n > depends on DMA_SHA

Re: [PATCH] arm64: lse: fix LSE atomics with LLVM's integrated assembler

2019-10-07 Thread Sami Tolvanen
On Mon, Oct 7, 2019 at 1:28 PM 'Nick Desaulniers' via Clang Built Linux wrote: > I tried adding `.arch armv8-a+lse` directives to all of the inline asm: > https://github.com/ClangBuiltLinux/linux/issues/573#issuecomment-535098996 Yes, I had a similar patch earlier. I feel like using a command lin

RE: [v2 1/2] arm64: dts: ls1028a: Update the clock providers for the Mali DP500

2019-10-07 Thread Leo Li
> -Original Message- > From: Shawn Guo > Sent: Monday, October 7, 2019 7:32 AM > To: Wen He > Cc: linux-de...@linux.nxdi.nxp.com; Leo Li ; Rob > Herring ; Mark Rutland ; > devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; linux-arm- > ker...@lists.infradead.org > Subject: Re: [

Re: [PATCH] arm64: fix alternatives with LLVM's integrated assembler

2019-10-07 Thread Nick Desaulniers
On Mon, Oct 7, 2019 at 2:14 PM 'Sami Tolvanen' via Clang Built Linux wrote: > > LLVM's integrated assembler fails with the following error when > building KVM: > > :12:6: error: expected absolute expression >.if kvm_update_va_mask == 0 >^ > :21:6: error: expected absolute expressio

[to-be-updated] printf-add-support-for-printing-symbolic-error-codes.patch removed from -mm tree

2019-10-07 Thread akpm
The patch titled Subject: vsprintf: add support for printing symbolic error codes has been removed from the -mm tree. Its filename was printf-add-support-for-printing-symbolic-error-codes.patch This patch was dropped because an updated version will be merged -

RE: [PATCH] arm64: dts: lx2160a: Correct CPU core idle state name

2019-10-07 Thread Leo Li
> -Original Message- > From: Shawn Guo > Sent: Monday, October 7, 2019 6:51 AM > To: Ran Wang ; Leo Li > Cc: Rob Herring ; Mark Rutland > ; linux-arm-ker...@lists.infradead.org; > devicet...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH] arm64: dts: lx2160a: Corre

[PATCH] lib/list-test: add a test for the 'list' doubly linked list

2019-10-07 Thread David Gow
This change adds a KUnit test for the kernel doubly linked list implementation in include/linux/list.h Note that, at present, it only tests the list_ types (not the singly-linked hlist_), and does not yet test all of the list_for_each_entry* macros (and some related things like list_prepare_entry)

Re: [PATCH 02/11] iomap: copy the xfs writeback code to iomap.c

2019-10-07 Thread Dave Chinner
On Sun, Oct 06, 2019 at 05:45:59PM +0200, Christoph Hellwig wrote: > Takes the xfs writeback code and copies it to iomap.c. A new structure > with three methods is added as the abstraction from the generic > writeback code to the file system. These methods are used to map > blocks, submit an ioen

Re: [PATCH] mm: vmalloc: Use the vmap_area_lock to protect ne_fit_preload_node

2019-10-07 Thread Uladzislau Rezki
On Mon, Oct 07, 2019 at 07:36:44PM +0200, Sebastian Andrzej Siewior wrote: > On 2019-10-07 18:56:11 [+0200], Uladzislau Rezki wrote: > > Actually there is a high lock contention on vmap_area_lock, because it > > is still global. You can have a look at last slide: > > > > https://linuxplumbersconf.

Re: [PATCH 05/11] iomap: zero newly allocated mapped blocks

2019-10-07 Thread Dave Chinner
On Sun, Oct 06, 2019 at 05:46:02PM +0200, Christoph Hellwig wrote: > File systems like gfs2 don't support delayed allocations or unwritten > extents and thus allocate normal mapped blocks to fill holes. To > cover the case of such file systems allocating new blocks to fill holes > also zero out ma

[PATCH] tpm: add check after commands attribs tab allocation

2019-10-07 Thread Tadeusz Struk
devm_kcalloc() can fail and return NULL so we need to check for that. Fixes: 58472f5cd4f6f ("tpm: validate TPM 2.0 commands") Signed-off-by: Tadeusz Struk --- drivers/char/tpm/tpm2-cmd.c |4 1 file changed, 4 insertions(+) diff --git a/drivers/char/tpm/tpm2-cmd.c b/drivers/char/tpm/tpm

Re: [PATCH] arm64: lse: fix LSE atomics with LLVM's integrated assembler

2019-10-07 Thread Nick Desaulniers
On Mon, Oct 7, 2019 at 2:24 PM Sami Tolvanen wrote: > > On Mon, Oct 7, 2019 at 1:28 PM 'Nick Desaulniers' via Clang Built > Linux wrote: > > I tried adding `.arch armv8-a+lse` directives to all of the inline asm: > > https://github.com/ClangBuiltLinux/linux/issues/573#issuecomment-535098996 > > Y

[PATCH] ftrace: fix function type mismatches

2019-10-07 Thread Sami Tolvanen
This change fixes indirect call mismatches with function and function graph tracing, which trip Control-Flow Integrity (CFI) checking. Signed-off-by: Sami Tolvanen --- kernel/trace/fgraph.c | 9 ++--- kernel/trace/ftrace.c | 8 +--- 2 files changed, 11 insertions(+), 6 deletions(-) diff

Re: [PATCH] x86/purgatory: Make sure we fail the build if purgatory.ro has missing symbols

2019-10-07 Thread Arvind Sankar
On Mon, Oct 07, 2019 at 10:31:49PM +0200, Hans de Goede wrote: > HI, > > On 07-10-2019 22:05, Nathan Chancellor wrote: > > On Mon, Oct 07, 2019 at 07:55:46PM +0200, Hans de Goede wrote: > >> Since we link purgatory.ro with -r aka we enable "incremental linking" > >> no checks for unresolved symbol

Re: [PATCH 08/11] xfs: use a struct iomap in xfs_writepage_ctx

2019-10-07 Thread Dave Chinner
On Sun, Oct 06, 2019 at 05:46:05PM +0200, Christoph Hellwig wrote: > In preparation for moving the XFS writeback code to fs/iomap.c, switch > it to use struct iomap instead of the XFS-specific struct xfs_bmbt_irec. > > Signed-off-by: Christoph Hellwig > Reviewed-by: Carlos Maiolino > Reviewed-by

[ANNOUNCE] v5.2.19-rt11

2019-10-07 Thread Sebastian Andrzej Siewior
Dear RT folks! I'm pleased to announce the v5.2.19-rt11 patch set. Changes since v5.2.19-rt10: - Larger futex rework. Making the futex_hash_bucket lock a raw_spinlock_t in v5.0.21-rt14 fixed a one problem but led to other. This change has been reverted and the original problem was sol

<    1   2   3   4   5   6   7   8   9   10   >