[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

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

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

[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

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

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 >

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

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 --

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

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] 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

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] 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 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 > > +++

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

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] 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

[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

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:

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

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

[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

[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

[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 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 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

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

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: [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: 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

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

[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

[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: [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

[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

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

[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: 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. > >

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

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:

Potential NULL pointer deference in iwlwifi: mvm

2019-10-07 Thread Yizhuo Zhai
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,however, the return value of iwl_mvm_vif_from_mac80211() is not checked and get used. This could potentially be unsafe. -- Kind Regards,

Re: [PATCH v2 3/7] intel-speed-select: Add check for CascadeLake-N models

2019-10-07 Thread Srinivas Pandruvada
On Mon, 2019-10-07 at 13:03 +0300, Andy Shevchenko wrote: > On Fri, Oct 04, 2019 at 10:15:21AM -0700, Srinivas Pandruvada wrote: > > On Thu, 2019-10-03 at 08:11 -0400, Prarit Bhargava wrote: > > > + /* only three CascadeLake-N models are supported */ > > > + if (is_clx_n_platform()) { > > > +

Re: general protection fault in devlink_get_from_attrs

2019-10-07 Thread Eric Biggers
On Mon, Oct 07, 2019 at 09:11:02PM +0200, Jiri Pirko wrote: > Mon, Oct 07, 2019 at 08:59:11PM CEST, > syzbot+896295c817162503d...@syzkaller.appspotmail.com wrote: > >Hello, > > > >syzbot found the following crash on: > > > >HEAD commit:056ddc38 Merge branch 'stmmac-next' > >git tree:

Re: [ANNOUNCE] 4.19.72-rt25

2019-10-07 Thread Gene Heskett
On Monday 07 October 2019 15:10:05 Gene Heskett wrote: > 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 > >

Re: WARNING in filldir64

2019-10-07 Thread Linus Torvalds
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 was going to silence it for the actual 5.4 release, but I wanted to see if

Potential NULL pointer deference in iwlwifi

2019-10-07 Thread Yizhuo Zhai
Hi All: drivers/net/wireless/intel/iwlwifi/mvm/power.c: Inside function iwl_mvm_power_ps_disabled_iterator(), iwl_mvm_vif_from_mac80211() could return NULL,however, the return value of iwl_mvm_vif_from_mac80211() is not checked and get used. This could potentially be unsafe. -- Kind Regards,

Re: [PATCH v3 1/2] tpm: Use GFP_KERNEL for allocating struct tpm_buf

2019-10-07 Thread James Bottomley
From: James Bottomley Subject: [PATCH] tpm: use GFP kernel for tpm_buf allocations The current code uses GFP_HIGHMEM, which is wrong because GFP_HIGHMEM (on 32 bit systems) is memory ordinarily inaccessible to the kernel and should only be used for allocations affecting userspace. In order to

Re: general protection fault in devlink_get_from_attrs

2019-10-07 Thread Jiri Pirko
Mon, Oct 07, 2019 at 08:59:11PM CEST, syzbot+896295c817162503d...@syzkaller.appspotmail.com wrote: >Hello, > >syzbot found the following crash on: > >HEAD commit:056ddc38 Merge branch 'stmmac-next' >git tree: net-next >console output:

Re: [PATCH RESEND v4] fs/epoll: Remove unnecessary wakeups of nested epoll that in ET mode

2019-10-07 Thread Roman Penyaev
On 2019-10-07 20:43, Jason Baron wrote: On 10/7/19 2:30 PM, Roman Penyaev wrote: On 2019-10-07 18:42, Jason Baron wrote: On 10/7/19 6:54 AM, Roman Penyaev wrote: On 2019-10-03 18:13, Jason Baron wrote: On 9/30/19 7:55 AM, Roman Penyaev wrote: On 2019-09-28 04:29, Andrew Morton wrote: On

Re: [PATCH v2 0/6] media: cedrus: h264: Support multi-slice frames

2019-10-07 Thread Jernej Škrabec
Dne ponedeljek, 07. oktober 2019 ob 12:44:24 CEST je Hans Verkuil napisal(a): > Hi Jernej, > > On 9/29/19 10:00 PM, Jernej Skrabec wrote: > > This series adds support for decoding multi-slice H264 frames along with > > support for V4L2_DEC_CMD_FLUSH and V4L2_BUF_FLAG_M2M_HOLD_CAPTURE_BUF. > > >

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

2019-10-07 Thread Linus Torvalds
On Mon, Oct 7, 2019 at 11:36 AM Tony Luck wrote: > > Late to this party ,,, but my ia64 console today is full of: Hmm? I thought ia64 did unaligneds ok. But regardless, this is my current (as yet untested) patch. This is not the big user access cleanup that I hope Al will do, this is just a

Re: WARNING in verify_dirent_name

2019-10-07 Thread Eric Biggers
On Mon, Oct 07, 2019 at 07:31:07AM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:43b815c6 Merge tag 'armsoc-fixes' of git://git.kernel.org/.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=12165d0b60 >

Re: WARNING in filldir64

2019-10-07 Thread Eric Biggers
[+Linus] On Mon, Oct 07, 2019 at 07:30:07AM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:43b815c6 Merge tag 'armsoc-fixes' of git://git.kernel.org/.. > git tree: upstream > console output:

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

2019-10-07 Thread John Stultz
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 > > Cc: Felipe Balbi > > Cc: Andy Shevchenko > > Cc: Rob Herring >

Re: [PATCH] ptp: fix typo of "mechanism" in Kconfig help text

2019-10-07 Thread David Miller
From: Antonio Borneo Date: Mon, 7 Oct 2019 17:43:02 +0200 > Fix typo s/mechansim/mechanism/ > > Signed-off-by: Antonio Borneo Applied, thank you.

Re: [PATCH] mm, hugetlb: allow hugepage allocations to excessively reclaim

2019-10-07 Thread Mike Kravetz
On 10/7/19 12:55 AM, Michal Hocko wrote: > From: David Rientjes > > b39d0ee2632d ("mm, page_alloc: avoid expensive reclaim when compaction > may not succeed") has chnaged the allocator to bail out from the > allocator early to prevent from a potentially excessive memory > reclaim.

Potential NULL pointer deference in cxgbit

2019-10-07 Thread Yizhuo Zhai
Hi All: drivers/target/iscsi/cxgbit/cxgbit_ddp.c: Inside function cxgbit_ddp_sgl_check(), sg_next() could return NULL, however, the return value of sg_next() is not checked and get dereferenced. This could potentially be unsafe. -- Kind Regards, Yizhuo Zhai Computer Science, Graduate Student

[PATCH] x86/asm: Fix MWAITX C-state hint value

2019-10-07 Thread Natarajan, Janakarajan
As per "AMD64 Architecture Programmer's Manual Volume 3: General-Purpose and System Instructions", MWAITX EAX[7:4]+1 specifies the optional hint of the optimized C-state. For C0 state, EAX[7:4] should be set to 0xf. Currently, a value of 0xf is set for EAX[3:0] instead of EAX[7:4]. Fix this by

[PATCH v2 2/2] update powerpc implementation to call into of_ima*

2019-10-07 Thread Prakhar Srivastava
update powerpc ima buffer pass implementationt to call into of_ima* for a cross architecture support. Signed-off-by: Prakhar Srivastava --- arch/powerpc/include/asm/ima.h | 6 -- arch/powerpc/kernel/Makefile| 8 +- arch/powerpc/kernel/ima_kexec.c | 170 +++-

general protection fault in rxrpc_error_report

2019-10-07 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:3b47fd5c Merge tag 'nfs-for-5.3-4' of git://git.linux-nfs... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=12e278c160 kernel config: https://syzkaller.appspot.com/x/.config?x=b89bb446a3faaba4

KASAN: use-after-free Read in tipc_udp_nl_dump_remoteip

2019-10-07 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:056ddc38 Merge branch 'stmmac-next' git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=164f0c5760 kernel config: https://syzkaller.appspot.com/x/.config?x=d9be300620399522 dashboard link:

general protection fault in tipc_nl_publ_dump

2019-10-07 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:056ddc38 Merge branch 'stmmac-next' git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=168bdd4760 kernel config: https://syzkaller.appspot.com/x/.config?x=d9be300620399522 dashboard link:

KASAN: use-after-free Read in tipc_nl_publ_dump

2019-10-07 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:056ddc38 Merge branch 'stmmac-next' git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=176f00dd60 kernel config: https://syzkaller.appspot.com/x/.config?x=d9be300620399522 dashboard link:

KASAN: use-after-free Read in nl8NUM_dump_wpan_phy

2019-10-07 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:056ddc38 Merge branch 'stmmac-next' git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=144ea69960 kernel config: https://syzkaller.appspot.com/x/.config?x=d9be300620399522 dashboard link:

general protection fault in devlink_get_from_attrs

2019-10-07 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:056ddc38 Merge branch 'stmmac-next' git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=1590218f60 kernel config: https://syzkaller.appspot.com/x/.config?x=d9be300620399522 dashboard link:

RE: [PATCH 1/2] dt-bindings: firmware: Add bindings for Versal firmware

2019-10-07 Thread Jolly Shah
Hi Michal and Greg, > -Original Message- > From: Michal Simek > Sent: Sunday, October 06, 2019 11:14 PM > To: Greg KH ; Jolly Shah > Cc: ard.biesheu...@linaro.org; mi...@kernel.org; m...@codeblueprint.co.uk; > sudeep.ho...@arm.com; hkallwe...@gmail.com; keesc...@chromium.org; >

[PATCH v2 0/2] drivers: firmware: xilinx: Add support for versal soc

2019-10-07 Thread Jolly Shah
Versal is xilinx's next generation soc. This patch adds driver support required to be compatible with versal device v2: No changes. Resending to include DT maintaners Jolly Shah (2): dt-bindings: firmware: Add bindings for Versal firmware drivers: firmware: xilinx: Add support for versal

[PATCH v2 1/2] dt-bindings: firmware: Add bindings for Versal firmware

2019-10-07 Thread Jolly Shah
ZynqMP firmware driver can be used for versal also. Add versal compatible string to zynqmp firmware driver doc. Signed-off-by: Jolly Shah --- .../bindings/firmware/xilinx/xlnx,zynqmp-firmware.txt| 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git

[PATCH v2 2/2] drivers: firmware: xilinx: Add support for versal soc

2019-10-07 Thread Jolly Shah
Versal is xilinx's next generation soc. This patch adds driver support required to be compatible with versal device. Signed-off-by: Jolly Shah --- drivers/firmware/xilinx/zynqmp.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/firmware/xilinx/zynqmp.c

Re: [PATCH] firmware: vpd: Add an interface to read VPD value

2019-10-07 Thread Cheng-yi Chiang
On Mon, Oct 7, 2019 at 11:35 PM Stephen Boyd wrote: > > Quoting Cheng-yi Chiang (2019-10-07 06:58:41) > > > > Hi Guenter, > > Thanks for the quick review. > > I'll update accordingly in v2. > > I'd prefer this use the nvmem framework which already handles many of > the requirements discussed

Re: [PATCH v4 2/2] ALSA: hda: Allow HDA to be runtime suspended when dGPU is not bound to a driver

2019-10-07 Thread Kai-Heng Feng
Hi Takashi, > On Sep 25, 2019, at 19:32, Kai-Heng Feng wrote: > > Nvidia proprietary driver doesn't support runtime power management, so > when a user only wants to use the integrated GPU, it's a common practice > to let dGPU not to bind any driver, and let its upstream port to be > runtime

Re: ehci-pci breakage with dma-mapping changes in 5.4-rc2

2019-10-07 Thread Christoph Hellwig
On Mon, Oct 07, 2019 at 02:32:07PM -0400, Arvind Sankar wrote: > On Mon, Oct 07, 2019 at 01:58:57PM -0400, Arvind Sankar wrote: > > On Mon, Oct 07, 2019 at 10:56:30AM -0700, Christoph Hellwig wrote: > > > On Mon, Oct 07, 2019 at 07:55:28PM +0200, Christoph Hellwig wrote: > > > > On Mon, Oct 07,

Re: [PATCH RESEND v4] fs/epoll: Remove unnecessary wakeups of nested epoll that in ET mode

2019-10-07 Thread Jason Baron
On 10/7/19 2:30 PM, Roman Penyaev wrote: > On 2019-10-07 18:42, Jason Baron wrote: >> On 10/7/19 6:54 AM, Roman Penyaev wrote: >>> On 2019-10-03 18:13, Jason Baron wrote: On 9/30/19 7:55 AM, Roman Penyaev wrote: > On 2019-09-28 04:29, Andrew Morton wrote: >> On Wed, 25 Sep 2019

[PATCH v2] mfd: intel-lpss: use devm_ioremap_uc for MMIO

2019-10-07 Thread Tuowen Zhao
Some BIOS erroneously specifies write-combining BAR for intel-lpss-pci in MTRR. This will cause the system to hang during boot. If possible, this bug could be corrected with a firmware update. This patch adds devm_ioremap_uc as a new managed wrapper to ioremap_uc and with it overwrite the MTRR

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 12:56 PM John Stultz wrote: > > Add necessary compatible flag for HiSi's DWC3 so > dwc3-of-simple will probe. > > Cc: Greg Kroah-Hartman > Cc: Felipe Balbi > Cc: Andy Shevchenko > Cc: Rob Herring > Cc: Mark Rutland > Cc: Yu Chen > Cc: Matthias Brugger > Cc: Chunfeng

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

2019-10-07 Thread Tony Luck
On Mon, Oct 7, 2019 at 11:28 AM Linus Torvalds wrote: > > On Sun, Oct 6, 2019 at 8:11 PM Linus Torvalds > wrote: > > > > > > > > The last two should just do user_access_begin()/user_access_end() > > > instead of access_ok(). __copy_to_user_inatomic() has very few callers > > > as well: > > > >

Re: [PATCH v2 for 5.4 3/4] media: hantro: Fix motion vectors usage condition

2019-10-07 Thread Jonas Karlman
On 2019-10-07 19:45, Ezequiel Garcia wrote: > From: Francois Buergisser > > The setting of the motion vectors usage and the setting of motion > vectors address are currently done under different conditions. > > When decoding pre-recorded videos, this results of leaving the motion > vectors

Re: ehci-pci breakage with dma-mapping changes in 5.4-rc2

2019-10-07 Thread Arvind Sankar
On Mon, Oct 07, 2019 at 01:58:57PM -0400, Arvind Sankar wrote: > On Mon, Oct 07, 2019 at 10:56:30AM -0700, Christoph Hellwig wrote: > > On Mon, Oct 07, 2019 at 07:55:28PM +0200, Christoph Hellwig wrote: > > > On Mon, Oct 07, 2019 at 01:54:32PM -0400, Arvind Sankar wrote: > > > > It doesn't boot

Re: [PATCH RESEND v4] fs/epoll: Remove unnecessary wakeups of nested epoll that in ET mode

2019-10-07 Thread Roman Penyaev
On 2019-10-07 18:42, Jason Baron wrote: On 10/7/19 6:54 AM, Roman Penyaev wrote: On 2019-10-03 18:13, Jason Baron wrote: On 9/30/19 7:55 AM, Roman Penyaev wrote: On 2019-09-28 04:29, Andrew Morton wrote: On Wed, 25 Sep 2019 09:56:03 +0800 hev wrote: From: Heiher Take the case where we

[PATCH] sgi-gru: simplify procfs code some more

2019-10-07 Thread Joe Perches
Use seq_puts and simple string output and not seq_printf with formats and individual strings to reduce overall object size. $ size drivers/misc/sgi-gru/gruprocfs.o* (x86-64 defconfig with gru) textdata bss dec hex filename 7006 8 070141b66

Re: [PATCH net,v2 2/2] arm: dts: mediatek: Fix mt7629 dts to reflect the latest dt-binding

2019-10-07 Thread René van Dorst
Quoting MarkLee : * Removes mediatek,physpeed property from dtsi that is useless in PHYLINK * Use the fixed-link property speed = <2500> to set the phy in 2.5Gbit. * Set gmac1 to gmii mode that connect to a internal gphy Signed-off-by: MarkLee -- v1->v2: * SGMII port only support BASE-X at

[PATCH] vhost/test: stop device before reset

2019-10-07 Thread Michael S. Tsirkin
When device stop was moved out of reset, test device wasn't updated to stop before reset, this resulted in a use after free. Fix by invoking stop appropriately. Fixes: b211616d7125 ("vhost: move -net specific code out") Signed-off-by: Michael S. Tsirkin --- drivers/vhost/test.c | 2 ++ 1 file

Re: [PATCH net,v2 1/2] net: ethernet: mediatek: Fix MT7629 missing GMII mode support

2019-10-07 Thread René van Dorst
Quoting MarkLee : Add missing configuration for mt7629 gmii mode support Fixes: 7e538372694b ("net: ethernet: mediatek: Re-add support SGMII") Signed-off-by: MarkLee -- v1->v2: * no change --- drivers/net/ethernet/mediatek/mtk_eth_soc.c | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH 1/3] regulator: core: fix boot-on regulators use_count usage

2019-10-07 Thread Mark Brown
On Mon, Oct 07, 2019 at 11:34:29AM +0200, Marco Felsch wrote: > Sorry that won't fix my problem. If I drop the regulator-boot-on state > the fixed-regulator will disable this regulator but disable/enable this > regulator is only valid during suspend/resume. I don't say that my fix > is correct

Re: [PATCH 2/4] compiler_attributes.h: Add 'fallthrough' pseudo keyword for switch/case use

2019-10-07 Thread Joe Perches
On Mon, 2019-10-07 at 11:14 -0700, Nick Desaulniers wrote: > > On Sat, Oct 5, 2019 at 6:46 PM Joe Perches wrote: > > > Reserve the pseudo keyword 'fallthrough' for the ability to convert the > > Have we precedent already for "pseudo keywords?" Many. see bool vs _Bool, u32 vs uint32_t, etc. >

[PATCH 1/2] usb: core: Make port power cycle a separate helper function

2019-10-07 Thread Kai-Heng Feng
Add a new function, hub_port_power_cycle() to power cycle port's power. It'll be used by a following patch. In addition to that, check the return value of usb_hub_set_port_power(), so we don't need to wait if the set power operation fails. Furthermore, remove parameter *hdev from

[PATCH 2/2] usb: core: Attempt power cycle when port is in eSS.Disabled state

2019-10-07 Thread Kai-Heng Feng
On Dell TB16, Realtek USB ethernet (r8152) connects to an SMSC hub which then connects to ASMedia xHCI's root hub: /: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/7p, 5000M |__ Port 2: Dev 3, If 0, Class=Vendor

Re: [tip: x86/platform] x86/jailhouse: Enable platform UARTs only if available

2019-10-07 Thread Ingo Molnar
* tip-bot2 for Ralf Ramsauer wrote: > The following commit has been merged into the x86/platform branch of tip: > > Commit-ID: dac59f1eb78123c3f0e497eb9870ac550c59debb > Gitweb: > https://git.kernel.org/tip/dac59f1eb78123c3f0e497eb9870ac550c59debb > Author:Ralf Ramsauer >

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

2019-10-07 Thread Keith Busch
On Mon, Oct 07, 2019 at 01:50:11PM -0400, Tyler Ramer wrote: > Shutdown the controller when nvme_remove_dead_controller is > reached. > > If nvme_remove_dead_controller() is called, the controller won't > be comming back online, so we should shut it down rather than just > disabling. > > Remove

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

2019-10-07 Thread Linus Torvalds
On Sun, Oct 6, 2019 at 8:11 PM Linus Torvalds wrote: > > > > > The last two should just do user_access_begin()/user_access_end() > > instead of access_ok(). __copy_to_user_inatomic() has very few callers as > > well: > > Yeah, good points. Looking at it some more this morning, I think it's

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

2019-10-07 Thread Ingo Molnar
* 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 -- make tcltest > perf report

Re: [PATCH v3] mfd: mt6360: add pmic mt6360 driver

2019-10-07 Thread Gene Chen
Hi Jones, Thanks for review, we will fix some comment which your suggestion in next patch Lee Jones 於 2019年10月4日 週五 下午9:33寫道: > > Wolfram, > > Would you be kind enough to grep for your name below? > > On Tue, 24 Sep 2019, Gene Chen wrote: > > > From: Gene Chen > > > > Add mfd driver for mt6360

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

2019-10-07 Thread Al Viro
On Mon, Oct 07, 2019 at 11:13:27AM -0700, Linus Torvalds wrote: > On Mon, Oct 7, 2019 at 10:34 AM Al Viro wrote: > > > > Tangentially related: copy_regster_to_user() and copy_regset_from_user(). > > Not a worry. It's not performance-critical code, and if it ever is, it > needs to be rewritten

Re: [PATCH -next 03/34] rtc: brcmstb-waketimer: use devm_platform_ioremap_resource() to simplify code

2019-10-07 Thread Florian Fainelli
On 10/6/19 3:29 AM, YueHaibing wrote: > Use devm_platform_ioremap_resource() to simplify the code a bit. > This is detected by coccinelle. > > Signed-off-by: YueHaibing Acked-by: Florian Fainelli -- Florian

Re: [PATCH 2/4] compiler_attributes.h: Add 'fallthrough' pseudo keyword for switch/case use

2019-10-07 Thread Nick Desaulniers
On Sat, Oct 5, 2019 at 10:17 AM Miguel Ojeda wrote: > > Hi Joe, > > On Sat, Oct 5, 2019 at 6:46 PM Joe Perches wrote: > > > > Reserve the pseudo keyword 'fallthrough' for the ability to convert the Have we precedent already for "pseudo keywords?" I kind of like the double underscore prefix we

Re: [RFC PATCH 00/13] XOM for KVM guest userspace

2019-10-07 Thread Edgecombe, Rick P
On Fri, 2019-10-04 at 18:33 -0700, Andy Lutomirski wrote: > On Fri, Oct 4, 2019 at 1:10 PM Edgecombe, Rick P > wrote: > > > > On Fri, 2019-10-04 at 07:56 -0700, Andy Lutomirski wrote: > > > On Thu, Oct 3, 2019 at 2:38 PM Rick Edgecombe > > > wrote: > > > > > > > > This patchset enables the

Applied "ASoC: tas2770: Remove unneeded read of the TDM_CFG3 register" to the asoc tree

2019-10-07 Thread Mark Brown
The patch ASoC: tas2770: Remove unneeded read of the TDM_CFG3 register has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.5 All being well this means that it will be integrated into the linux-next tree (usually sometime in the

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