[RFC PATCH ghak21 4/4] audit: add parent of refused symlink to audit_names

2018-02-14 Thread Richard Guy Briggs
Audit link denied events for symlinks were missing the parent PATH record. Add it. Since the full pathname may not be available, reconstruct it from the path in the nameidata supplied. See: https://github.com/linux-audit/audit-kernel/issues/21 Signed-off-by: Richard Guy Briggs --- fs/namei.c |

[RFC PATCH ghak21 3/4] audit: add refused symlink to audit_names

2018-02-14 Thread Richard Guy Briggs
Audit link denied events for symlinks had duplicate PATH records rather than just updating the existing PATH record. Update the symlink's PATH record with the current dentry and inode information. See: https://github.com/linux-audit/audit-kernel/issues/21 Signed-off-by: Richard Guy Briggs --- f

[RFC PATCH ghak21 1/4] audit: make ANOM_LINK obey audit_enabled and audit_dummy_context

2018-02-14 Thread Richard Guy Briggs
Audit link denied events emit disjointed records when audit is disabled. No records should be emitted when audit is disabled. See: https://github.com/linux-audit/audit-kernel/issues/21 Signed-off-by: Richard Guy Briggs --- kernel/audit.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ker

[RFC PATCH ghak21 2/4] audit: link denied should not directly generate PATH record

2018-02-14 Thread Richard Guy Briggs
Audit link denied events generate duplicate PATH records which disagree in different ways from symlink and hardlink denials. audit_log_link_denied() should not directly generate PATH records. See: https://github.com/linux-audit/audit-kernel/issues/21 Signed-off-by: Richard Guy Briggs --- kernel/

[PATCH][scsi-next] scsi: myrb: remove shadowed and unassigned variable ldev_num

2018-02-14 Thread Colin King
From: Colin Ian King A lower-scoped variable ldev_num is never assigned and is shadowing the higher scoped iterator ldev_num and should be removed to avoid using garbage ldev_num values. Detected by CoverityScan, CID#1465226 ("Uninitialized scalar variable") Fixes: dd47c1072226 ("scsi: myrb: Ad

[RFC PATCH ghak21 0/4] audit: address ANOM_LINK excess records

2018-02-14 Thread Richard Guy Briggs
Audit link denied events were being unexpectedly produced in a disjoint way when audit was disabled, and when they were expected, there were duplicate PATH records. This patchset addresses both issues for symlinks and hardlinks. This was introduced with commit b24a30a7305418ff138ff51776fc

Re: [PATCH v4 06/24] fpga: dfl: adds fpga_cdev_find_port

2018-02-14 Thread Alan Tull
On Tue, Feb 13, 2018 at 3:24 AM, Wu Hao wrote: Hi Hao, > For feature devices, we need a method to find the port dedicated > to the device. This patch adds a function fpga_cdev_find_port > for this purpose. e.g FPGA Management Engine (FME) Partial > Reconfiguration sub feature, it uses this funct

Applied "regulator: dt: regulator-name is required property" to the regulator tree

2018-02-14 Thread Mark Brown
The patch regulator: dt: regulator-name is required property has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hour

Re: [PATCH 2/2] mtd: nand: gpmi: add support for specific ECC strength

2018-02-14 Thread Han Xu
On 02/06/2018 11:40 AM, Stefan Agner wrote: > Add support for specified ECC strength/size using device tree > properties nand-ecc-strength/nand-ecc-step-size. > > Signed-off-by: Stefan Agner > --- > .../devicetree/bindings/mtd/gpmi-nand.txt | 5 > drivers/mtd/nand/gpmi-nand/gpm

Applied "spi: bcm2835aux: Avoid 64-bit arithmetic in xfer len calc" to the spi tree

2018-02-14 Thread Mark Brown
The patch spi: bcm2835aux: Avoid 64-bit arithmetic in xfer len calc has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) an

RE: [PATCH 2/3] x86/MCE/AMD, EDAC/mce_amd: Enumerate Reserved SMCA bank type

2018-02-14 Thread Ghannam, Yazen
> -Original Message- > From: linux-edac-ow...@vger.kernel.org [mailto:linux-edac- > ow...@vger.kernel.org] On Behalf Of Borislav Petkov > Sent: Thursday, February 8, 2018 10:15 AM > To: Ghannam, Yazen > Cc: linux-e...@vger.kernel.org; linux-kernel@vger.kernel.org; b...@suse.de; > tony.l...

Re: [RFC PATCH] elf: enforce MAP_FIXED on overlaying elf segments (was: Re: ppc elf_map breakage with MAP_FIXED_NOREPLACE)

2018-02-14 Thread Khalid Aziz
On Tue, 2018-02-13 at 11:04 +0100, Michal Hocko wrote: > > From 97e7355a6dc31a73005fa806566a57eb5c38032b Mon Sep 17 00:00:00 > 2001 > From: Michal Hocko > Date: Tue, 13 Feb 2018 10:50:53 +0100 > Subject: [PATCH] elf: enforce MAP_FIXED on overlaying elf segments > > Anshuman has reported that som

Re: [PATCH V3 04/10] sched/core: Prevent race condition between cpuset and __sched_setscheduler()

2018-02-14 Thread Juri Lelli
On 14/02/18 08:33, Mathieu Poirier wrote: > On 14 February 2018 at 04:27, Juri Lelli wrote: > > On 14/02/18 11:49, Juri Lelli wrote: > >> On 14/02/18 11:36, Juri Lelli wrote: > >> > Hi Mathieu, > >> > > >> > On 13/02/18 13:32, Mathieu Poirier wrote: > >> > > No synchronisation mechanism exist betw

Re: [RFT PATCH] drm/msm: Trigger fence completion from GPU

2018-02-14 Thread Rob Clark
On Wed, Feb 14, 2018 at 1:46 AM, Bjorn Andersson wrote: > Interrupt commands causes the CP to trigger an interrupt as the command > is processed, regardless of the GPU being done processing previous > commands. This is seen by the interrupt being delivered before the > fence is written on 8974 and

[PATCH 3/3] usb: xhci: tegra: Add support for managing powergates

2018-02-14 Thread Jon Hunter
The Tegra XHCI controller requires that the XUSBA (for superspeed) and XUSBC (for host) power-domains are enabled. Commit 8df127456f29 ("soc/tegra: pmc: Enable XUSB partitions on boot") was added to force on these power-domains if the XHCI driver is enabled while proper power-domain support is adde

[PATCH v4 1/1] mm: initialize pages on demand during boot

2018-02-14 Thread Pavel Tatashin
Deferred page initialization allows the boot cpu to initialize a small subset of the system's pages early in boot, with other cpus doing the rest later on. It is, however, problematic to know how many pages the kernel needs during boot. Different modules and kernel parameters may change the requi

[PATCH 1/3] usb: xhci: tegra: Prepare for adding runtime PM support

2018-02-14 Thread Jon Hunter
When adding runtime PM support to the Tegra XHCI driver, it is desirable to move the function calls to enable the clocks, regulators and PHY from the tegra_xusb_probe into the runtime PM handlers. Currently, the clocks, regulators and PHY are all enabled before we call usb_create_hcd() in tegra_xus

[PATCH v4 0/1] initialize pages on demand during boot

2018-02-14 Thread Pavel Tatashin
This patch replaces in mmots: mm-initialize-pages-on-demand-during-boot.patch mm-initialize-pages-on-demand-during-boot-fix.patch mm-initialize-pages-on-demand-during-boot-fix2.patch It squashes the two fixes into the original patch, and also in: deferred_grow_zone() Repla

[PATCH 2/3] usb: xhci: tegra: Add runtime PM support

2018-02-14 Thread Jon Hunter
Add runtime PM support to the Tegra XHCI driver and move the function calls to enable/disable the clocks, regulators and PHY into the runtime PM callbacks. Signed-off-by: Jon Hunter --- drivers/usb/host/xhci-tegra.c | 80 ++- 1 file changed, 56 insertions(

Re: [PATCH 1/4] x86/speculation: Use IBRS if available before calling into firmware

2018-02-14 Thread Tom Lendacky
On 2/14/2018 10:11 AM, David Woodhouse wrote: > > > On Wed, 2018-02-14 at 10:07 -0600, Tom Lendacky wrote: >> Shouldn't these writes to the MSR be just for the IBRS bit?  The spec >> also defines the STIBP bit for this MSR, and if that bit had been set by >> BIOS for example, these writes will cl

Re: [PATCH v4 11/24] fpga: dfl: fme: add header sub feature support

2018-02-14 Thread Alan Tull
On Tue, Feb 13, 2018 at 3:24 AM, Wu Hao wrote: Hi Hao, Looks good. > From: Kang Luwei > > The Header Register set is always present for FPGA Management Engine (FME), > this patch implements init and uinit function for header sub feature and > introduce several read-only sysfs interfaces for th

RE: [PATCH 1/3] x86/MCE/AMD: Redo function to get SMCA bank type

2018-02-14 Thread Ghannam, Yazen
> -Original Message- > From: Borislav Petkov [mailto:b...@alien8.de] > Sent: Thursday, February 8, 2018 10:05 AM > To: Ghannam, Yazen > Cc: linux-e...@vger.kernel.org; linux-kernel@vger.kernel.org; b...@suse.de; > tony.l...@intel.com; x...@kernel.org > Subject: Re: [PATCH 1/3] x86/MCE/AMD:

Re: [PATCH v2] PCI: qcom: add missing supplies required for msm8996

2018-02-14 Thread Stanimir Varbanov
On 02/14/2018 06:14 PM, Srinivas Kandagatla wrote: > > > On 14/02/18 16:00, Stanimir Varbanov wrote: >>>   .../devicetree/bindings/pci/qcom,pcie.txt  |  4 >>>   drivers/pci/dwc/pcie-qcom.c    | 24 >>> -- >>>   2 files changed, 26 insertions(+

Re: [PATCH v3 1/8] dt-bindings: mips: Add bindings for Microsemi SoCs

2018-02-14 Thread James Hogan
On Tue, Jan 16, 2018 at 11:12:33AM +0100, Alexandre Belloni wrote: > +o CPU system control: > + > +The SoC has a few registers (ICPU_CFG:CPU_SYSTEM_CTRL) handling > configuration of > +the CPU: 8 general purpose registers, reset control, CPU en/disabling, CPU > +endianess, CPU bus control, CPU sta

Re: [RFC PATCH 1/2] KVM: x86: Add a framework for supporting MSR-based features

2018-02-14 Thread Paolo Bonzini
On 14/02/2018 05:42, Tom Lendacky wrote: >>> +bool kvm_valid_msr_feature(u32 msr, u64 data) >>> +{ >>> + unsigned int i; >>> + >>> + for (i = 0; i < num_msr_based_features; i++) { >>> + struct kvm_msr_based_features *m = msr_based_features + i; >>> + >>> + if (msr != m->msr)

Re: i8042 AUX port [serio1] suspend takes a second on Dell XPS 13 9360

2018-02-14 Thread Paul Menzel
Dear Dmitry, On 01/30/18 19:07, Dmitry Torokhov wrote: On Tue, Jan 30, 2018 at 09:52:45AM -0800, Dmitry Torokhov wrote: On Tue, Jan 30, 2018 at 06:36:34PM +0100, Paul Menzel wrote: I do not know, when it started, but with Linux 4.14-rc8 and 4.15, benchmarking suspend and resume time with

[PATCH 0/3] jump_label: Robustify jump label patching

2018-02-14 Thread Josh Poimboeuf
Warn if a jump_label fails to patch, and fix up a couple of issues found by the warning. Josh Poimboeuf (3): jump_label: Warn on failed jump_label patch x86/xen: Remove inert tracepoint in __init code percpu: Remove inert tracepoint in __init code arch/x86/xen/enlighten_pv.c | 2 -- kernel

[PATCH 1/3] jump_label: Warn on failed jump_label patch

2018-02-14 Thread Josh Poimboeuf
When the jump label code encounters an address which isn't recognized by kernel_text_address(), it just silently fails. This can be dangerous because jump labels are used in a variety of places, and are generally expected to work. Convert the silent failure to a warning. Signed-off-by: Josh Poim

[PATCH 3/3] percpu: Remove inert tracepoint in __init code

2018-02-14 Thread Josh Poimboeuf
The jump_label code doesn't patch init code, so this tracepoint can never be enabled. Remove it. Cc: Tejun Heo Signed-off-by: Josh Poimboeuf --- mm/percpu.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/percpu.c b/mm/percpu.c index 50e7fdf84055..3216364ad91b 100644 --- a/mm/percpu.c ++

[PATCH 2/3] x86/xen: Remove inert tracepoint in __init code

2018-02-14 Thread Josh Poimboeuf
The jump_label code doesn't patch init code, so this tracepoint can never be enabled. Remove it. Cc: Juergen Gross Signed-off-by: Josh Poimboeuf --- arch/x86/xen/enlighten_pv.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/xen/enlighten_pv.c b/arch/x86/xen/enlighten_pv.c index

Re: [PATCH 4.4 20/87] ALSA: pcm: Allow aborting mutex lock at OSS read/write loops

2018-02-14 Thread Takashi Iwai
On Wed, 14 Feb 2018 17:20:23 +0100, Ben Hutchings wrote: > > On Mon, 2018-02-12 at 09:34 +0100, Takashi Iwai wrote: > > On Wed, 24 Jan 2018 00:35:48 +0100, > > Ben Hutchings wrote: > > > > > > On Mon, 2018-01-15 at 13:34 +0100, Greg Kroah-Hartman wrote: > > > > 4.4-stable review patch.  If anyone

Re: mount stuck in infinite loop

2018-02-14 Thread Francesco Ruggeri
Does anybody have any opinions about this? Thanks, Francesco Ruggeri On Wed, Jan 31, 2018 at 9:16 AM, Francesco Ruggeri wrote: > I had a few cases of mount getting stuck in an infinite loop. > This happens when bdev->bd_inode->i_blkbits gets modified (for > example by bd_set_size()) while *_fill

Re: [PATCH 00/18] thunderbolt: Add support for Intel Titan Ridge

2018-02-14 Thread Mika Westerberg
On Wed, Feb 14, 2018 at 03:58:52PM +0200, Andy Shevchenko wrote: > On Tue, Feb 13, 2018 at 7:00 PM, Mika Westerberg > wrote: > > Hi, > > > > This series adds support for Intel Titan Ridge Thunderbolt controller. > > Titan Ridge is the next generation Thunderbolt 3 controller and successor > > of A

Re: [RFC PATCH 1/2] KVM: x86: Add a framework for supporting MSR-based features

2018-02-14 Thread Borislav Petkov
On Thu, Feb 08, 2018 at 04:58:46PM -0600, Tom Lendacky wrote: > @@ -2681,11 +2731,15 @@ static int __msr_io(struct kvm_vcpu *vcpu, struct > kvm_msrs *msrs, > { > int i, idx; > > - idx = srcu_read_lock(&vcpu->kvm->srcu); > + if (vcpu) > + idx = srcu_read_lock(&vcpu->kvm

Re: [PATCH v14 9/9] RFC: fw_cfg: do DMA read operation

2018-02-14 Thread Michael S. Tsirkin
On Wed, Feb 14, 2018 at 03:18:50PM +0100, Marc-André Lureau wrote: > Modify fw_cfg_read_blob() to use DMA if the device supports it. > Return errors, because the operation may fail. > > So far, only one call in fw_cfg_register_dir_entries() is using > kmalloc'ed buf and is thus clearly eligible to

Re: [PATCH 2/3] x86/xen: Remove inert tracepoint in __init code

2018-02-14 Thread Juergen Gross
On 14/02/18 17:40, Josh Poimboeuf wrote: > The jump_label code doesn't patch init code, so this tracepoint can > never be enabled. Remove it. > > Cc: Juergen Gross > Signed-off-by: Josh Poimboeuf Reviewed-by: Juergen Gross Juergen

Re: [PATCH] crypto: nx-842: Delete an error message for a failed memory allocation in nx842_pseries_init()

2018-02-14 Thread Dan Streetman
On Wed, Feb 14, 2018 at 11:17 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 14 Feb 2018 17:05:13 +0100 > > Omit an extra message for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring R

Re: [PATCH 2/2] mmc: bcm2835: print some informational messages during reset

2018-02-14 Thread Florian Fainelli
On February 14, 2018 6:38:58 AM PST, Michal Suchanek wrote: >The previous patch does reset during hardware error so make the reset >progress more visible. Based on your previous email it looks like this can happen quite frequently so we might be spamming the kernel log with such reset messages.

Re: [RFC PATCH ghak21 0/4] audit: address ANOM_LINK excess records

2018-02-14 Thread Steve Grubb
On Wednesday, February 14, 2018 11:18:20 AM EST Richard Guy Briggs wrote: > Audit link denied events were being unexpectedly produced in a disjoint > way when audit was disabled, and when they were expected, there were > duplicate PATH records. This patchset addresses both issues for > symlinks an

Re: [PATCH 1/2] mmc: bcm2835: reset host on timeout

2018-02-14 Thread Stefan Wahren
Hi Michal, [add Phil] Am 14.02.2018 um 17:13 schrieb Michal Suchánek: > On Wed, 14 Feb 2018 16:36:49 +0100 > Michal Suchánek wrote: > >> On Wed, 14 Feb 2018 15:58:31 +0100 >> Stefan Wahren wrote: >> >>> Hi Michal, >>> >>> Am 14.02.2018 um 15:38 schrieb Michal Suchanek: The bcm2835 mmc ho

Re: [PATCH 2/2] mmc: bcm2835: print some informational messages during reset

2018-02-14 Thread Florian Fainelli
On February 14, 2018 6:38:58 AM PST, Michal Suchanek wrote: >The previous patch does reset during hardware error so make the reset >progress more visible. Based on your previous email it looks like this can happen quite frequently so we might be spamming the kernel log with such reset messages.

Re: [PATCH v3 4/8] MIPS: mscc: Add initial support for Microsemi MIPS SoCs

2018-02-14 Thread James Hogan
On Tue, Jan 16, 2018 at 11:12:36AM +0100, Alexandre Belloni wrote: > diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig > index 350a990fc719..a9db028a0338 100644 > --- a/arch/mips/Kconfig > +++ b/arch/mips/Kconfig > @@ -527,6 +527,30 @@ config MIPS_MALTA > This enables support for the MIPS

Re: arm64/v4.16-rc1: KASAN: use-after-free Read in finish_task_switch

2018-02-14 Thread Mark Rutland
On Wed, Feb 14, 2018 at 03:07:41PM +, Will Deacon wrote: > Hi Mark, Hi Will, > Cheers for the report. These things tend to be a pain to debug, but I've had > a go. Thanks for taking a look! > On Wed, Feb 14, 2018 at 12:02:54PM +, Mark Rutland wrote: > The interesting thing here is on th

Re: [PATCH v14 9/9] RFC: fw_cfg: do DMA read operation

2018-02-14 Thread Marc-Andre Lureau
Hi On Wed, Feb 14, 2018 at 5:48 PM, Michael S. Tsirkin wrote: > On Wed, Feb 14, 2018 at 03:18:50PM +0100, Marc-André Lureau wrote: >> Modify fw_cfg_read_blob() to use DMA if the device supports it. >> Return errors, because the operation may fail. >> >> So far, only one call in fw_cfg_register_di

Re: [PATCH v13 7/9] ACPI: Translate the I/O range of non-MMIO devices before scanning

2018-02-14 Thread John Garry
On 14/02/2018 16:16, Lorenzo Pieralisi wrote: On Wed, Feb 14, 2018 at 01:45:31AM +0800, John Garry wrote: On some platforms (such as arm64-based hip06/hip07), access to legacy ISA/LPC devices through access IO space is required, similar to x86 platforms. As the I/O for these devices are not memo

Re: [PATCH 8/8] docs: kernel-doc: Don't mangle literal code blocks in comments

2018-02-14 Thread Markus Heiser
> Am 07.02.2018 um 18:26 schrieb Jonathan Corbet : > > It can be useful to put code snippets into kerneldoc comments; that can be > done with the "::" operator at the end of a line like this:: > > if (desperate) > run_in_circles(); > > kernel-doc currently fails to understand these litera

Re: KASAN: use-after-free Read in rds_find_bound

2018-02-14 Thread Santosh Shilimkar
On 2/13/2018 12:12 PM, Dmitry Vyukov wrote: On Sat, Dec 30, 2017 at 8:41 PM, santosh.shilim...@oracle.com wrote: On 12/30/17 1:17 AM, syzbot wrote: Hello, syzkaller hit the following crash on fba961ab29e5ffb055592442808bb0f7962e05da git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-nex

Re: [PATCH 1/4] x86/speculation: Use IBRS if available before calling into firmware

2018-02-14 Thread David Woodhouse
On Wed, 2018-02-14 at 10:36 -0600, Tom Lendacky wrote: > On 2/14/2018 10:11 AM, David Woodhouse wrote: > > > > > > > > On Wed, 2018-02-14 at 10:07 -0600, Tom Lendacky wrote: > > > > > > Shouldn't these writes to the MSR be just for the IBRS bit?  The spec > > > also defines the STIBP bit for

[PATCH v2 6/6] drm/rockchip: cdn-dp: remove the DP phy switch

2018-02-14 Thread Enric Balletbo i Serra
From: Chris Zhong There are 2 Type-c PHYs in RK3399, but only one DP controller. Hence only one PHY can connect to DP controller at one time, the other should be disconnected. The GRF_SOC_CON26 register has a switch bit to do it, set this bit means enable PHY 1, clear this bit means enable PHY 0.

[PATCH v2 5/6] phy: rockchip-typec: support DP phy switch

2018-02-14 Thread Enric Balletbo i Serra
From: Chris Zhong There are 2 Type-c PHYs in RK3399, but only one DP controller. Hence only one PHY can connect to DP controller at one time, the other should be disconnected. The GRF_SOC_CON26 register has a switch bit to do it, set this bit means enable PHY 1, clear this bit means enable PHY 0.

[PATCH v2 3/6] phy: rockchip-typec: enable usb3 host during usb3 phy power on

2018-02-14 Thread Enric Balletbo i Serra
From: William wu We have forced usb3 to work in usb2 only mode in firmware by setting usb3tousb2_en (bit3 of GRF_USB3PHY0/1_CON0) to 1, and setting host_u3_port_disable (bit0 of GRF_USB3OTG0/1_CON1) to 1 and host_u3_port (bit15~12 of GRF_USB3OTG0/1_CON1) to 0. So we need to re-enable usb3 host.

[PATCH v2 2/6] dt-bindings: phy-rockchip-typec: deprecate some register properties.

2018-02-14 Thread Enric Balletbo i Serra
As now the following register properties are in the driver, document as deprecated these properties and recommend to not use them on new bindings. The deprecated properties are: - rockchip,typec-conn-dir : the register of type-c connector direction - rockchip,usb3tousb2-en : the register of type-

[PATCH v2 4/6] phy: rockchip-typec: force to USB2 if DP at 4 lanes mode

2018-02-14 Thread Enric Balletbo i Serra
From: Chris Zhong The usb3tousb2_en BIT will be clear to 0 in probe(), it make USB controller work at USB3 mode, and if the USB phy is turned on with DP only mode(4 lanes DP), the rockchip_usb3_phy_power_on() will return directly, so usb3_host_disable and usb3_host_port these 2 BIT will keep a sa

[PATCH v2 1/6] phy: rockchip-typec: deprecate some DT properties for various register fields.

2018-02-14 Thread Enric Balletbo i Serra
Adding properties for various register fields in the DT doesn't scale and this information should be in the driver instead. Before this patch these registers (description below) were specified in the DT, every register node contained 3 sections: offset, enable bit, write mask bit. - rockchip,typ

Re: [PATCH v3 5/8] MIPS: mscc: add ocelot dtsi

2018-02-14 Thread James Hogan
On Tue, Jan 16, 2018 at 11:12:37AM +0100, Alexandre Belloni wrote: > Add a device tree include file for the Microsemi Ocelot SoC. > > Signed-off-by: Alexandre Belloni May I suggest Cc'ing the DT folk on this patch. > diff --git a/arch/mips/boot/dts/mscc/Makefile > b/arch/mips/boot/dts/mscc/Mak

Re: [PATCHv2] nokia N9: Add support for magnetometer

2018-02-14 Thread Tony Lindgren
* Pavel Machek [180103 06:15]: > > This adds dts support for magnetometer on Nokia N9. Applying into omap-for-v4.17/dt thanks. Tony

Re: [RFC PATCH 1/2] KVM: x86: Add a framework for supporting MSR-based features

2018-02-14 Thread Paolo Bonzini
On 14/02/2018 17:44, Borislav Petkov wrote: > On Thu, Feb 08, 2018 at 04:58:46PM -0600, Tom Lendacky wrote: >> @@ -2681,11 +2731,15 @@ static int __msr_io(struct kvm_vcpu *vcpu, struct >> kvm_msrs *msrs, >> { >> int i, idx; >> >> -idx = srcu_read_lock(&vcpu->kvm->srcu); >> +if (vcp

Re: [PATCH v14 9/9] RFC: fw_cfg: do DMA read operation

2018-02-14 Thread Michael S. Tsirkin
On Wed, Feb 14, 2018 at 05:52:10PM +0100, Marc-Andre Lureau wrote: > >> @@ -282,8 +320,9 @@ static int fw_cfg_do_platform_probe(struct > >> platform_device *pdev) > >> #endif > >> > >> /* verify fw_cfg device signature */ > >> - fw_cfg_read_blob(FW_CFG_SIGNATURE, sig, 0, FW_CFG_SIG_SIZE

Re: [PATCH 4/4] ARM: dts: am43xx: Enable dual-role mode for USB1

2018-02-14 Thread Tony Lindgren
* Roger Quadros [180122 05:17]: > +Tony > > On 22/01/18 15:11, Roger Quadros wrote: > > USB1 port is micro-AB type and can function as peripheral > > as well as host. Enable dual-role mode for USB1. Looks like I don't have this one, please resend it separately when it's safe to apply. Regards,

Re: [PATCH v3 6/8] MIPS: mscc: add ocelot PCB123 device tree

2018-02-14 Thread James Hogan
On Tue, Jan 16, 2018 at 11:12:38AM +0100, Alexandre Belloni wrote: > Add a device tree for the Microsemi Ocelot PCB123 evaluation board. > > Signed-off-by: Alexandre Belloni Please Cc DT folk. > diff --git a/arch/mips/boot/dts/mscc/ocelot_pcb123.dts > b/arch/mips/boot/dts/mscc/ocelot_pcb123.dt

Re: [PATCH] ARM: dts: use 'atmel' as at24 manufacturer in am335x-boneblue

2018-02-14 Thread Tony Lindgren
* Bartosz Golaszewski [180124 13:22]: > Using 'at' as the part of the compatible string is now > deprecated. Use a correct string: 'atmel,'. Applying into omap-for-v4.17/dt thanks. Tony

Re: [PATCH] siox: fix possible buffer overflow in device_add_store

2018-02-14 Thread Uwe Kleine-König
Hello, On Wed, Feb 14, 2018 at 03:25:02PM +0100, Gavin Schenk wrote: > Width 20 given in format string is larger than destination > buffer 'type[20]', use %19s to prevent overflowing it. > > Fixes: bbecb07fa0af ("siox: new driver framework for eckelmann SIOX") > Reported-by: David Binderman > Si

Re: [PATCH 1/3] jump_label: Warn on failed jump_label patch

2018-02-14 Thread Steven Rostedt
On Wed, 14 Feb 2018 10:40:41 -0600 Josh Poimboeuf wrote: > When the jump label code encounters an address which isn't recognized by > kernel_text_address(), it just silently fails. > > This can be dangerous because jump labels are used in a variety of > places, and are generally expected to work

Re: [PATCH 1/3] jump_label: Warn on failed jump_label patch

2018-02-14 Thread Borislav Petkov
On Wed, Feb 14, 2018 at 10:40:41AM -0600, Josh Poimboeuf wrote: > When the jump label code encounters an address which isn't recognized by > kernel_text_address(), it just silently fails. > > This can be dangerous because jump labels are used in a variety of > places, and are generally expected to

Re: KASAN: use-after-free Read in rds_tcp_tune

2018-02-14 Thread Joe Perches
On Wed, 2018-02-14 at 16:55 +0100, Dmitry Vyukov wrote: > On Wed, Feb 14, 2018 at 4:35 PM, Sowmini Varadhan > wrote: > > btw, checkpatch.pl complains about the syzbot*@syzkaller.appspotmail.com > > addresses as "Unrecognized email address", we should fix that > > error from checkpatch at some poi

Re: [PATCH v3 7/8] MIPS: defconfigs: add a defconfig for Microsemi SoCs

2018-02-14 Thread James Hogan
On Tue, Jan 16, 2018 at 11:12:39AM +0100, Alexandre Belloni wrote: > +# CONFIG_EARLY_PRINTK is not set Only Loongson1b/1c explicitly disable early printk. Do you disable it for a particular reason? Cheers James signature.asc Description: Digital signature

Re: [PATCH v3 1/2] net: phy: dp83867: Add binding for the CLK_OUT pin muxing option

2018-02-14 Thread Florian Fainelli
On February 14, 2018 8:07:11 AM PST, Daniel Schultz wrote: >From: Wadim Egorov > >The DP83867 has a muxing option for the CLK_OUT pin. It is possible >to set CLK_OUT for different channels. >Create a binding to select a specific clock for CLK_OUT pin. > >Signed-off-by: Wadim Egorov >Signed-off-b

Re: [PATCH] ARM: dts: am33xx: add PDU001 board

2018-02-14 Thread Tony Lindgren
* Felix Brack [180130 06:29]: > This patch adds support for the PDU001 board from EETS GmbH. > The board is built around the byteENGINE module AM335X from > bytes at work AG which in turn is built around a Sitara SoC > from TI. Applying into omap-for-v4.17/dt thanks. Tony

Re: [PATCH net] bpf: cpumap: use GFP_KERNEL instead of GFP_ATOMIC in __cpu_map_entry_alloc()

2018-02-14 Thread Michael S. Tsirkin
On Wed, Feb 14, 2018 at 10:17:34PM +0800, Jason Wang wrote: > There're several implications after commit 0bf7800f1799 ("ptr_ring: > try vmalloc() when kmalloc() fails") with the using of vmalloc() since > can't allow GFP_ATOMIC but mandate GFP_KERNEL. This will lead a WARN > since cpumap try to cal

Re: [PATCH v3 8/8] MAINTAINERS: Add entry for Microsemi MIPS SoCs

2018-02-14 Thread James Hogan
On Tue, Jan 16, 2018 at 11:12:40AM +0100, Alexandre Belloni wrote: > +MICROSEMI MIPS SOCS > +M: Alexandre Belloni > +L: linux-m...@linux-mips.org > +S: Maintained > +F: arch/mips/mscc/ > +F: arch/mips/boot/dts/mscc/ You should probably include Documentation/devicetree/bindings/mips/mscc

Re: [PATCH v3 2/2] net: phy: dp83867: Add documentation for CLK_OUT pin muxing

2018-02-14 Thread Florian Fainelli
On February 14, 2018 8:07:12 AM PST, Daniel Schultz wrote: >From: Wadim Egorov > >Add documentation of ti,clk-output-sel which can be used to select >a specific clock for CLK_OUT. > >Signed-off-by: Wadim Egorov >Signed-off-by: Daniel Schultz Reviewed-by: Florian Fainelli Nit: usually the bin

Re: [PATCH v14 9/9] RFC: fw_cfg: do DMA read operation

2018-02-14 Thread Marc-Andre Lureau
Hi On Wed, Feb 14, 2018 at 5:59 PM, Michael S. Tsirkin wrote: > On Wed, Feb 14, 2018 at 05:52:10PM +0100, Marc-Andre Lureau wrote: >> >> @@ -282,8 +320,9 @@ static int fw_cfg_do_platform_probe(struct >> >> platform_device *pdev) >> >> #endif >> >> >> >> /* verify fw_cfg device signature *

Re: [PATCH v14 9/9] RFC: fw_cfg: do DMA read operation

2018-02-14 Thread Michael S. Tsirkin
On Wed, Feb 14, 2018 at 06:08:48PM +0100, Marc-Andre Lureau wrote: > Hi > > On Wed, Feb 14, 2018 at 5:59 PM, Michael S. Tsirkin wrote: > > On Wed, Feb 14, 2018 at 05:52:10PM +0100, Marc-Andre Lureau wrote: > >> >> @@ -282,8 +320,9 @@ static int fw_cfg_do_platform_probe(struct > >> >> platform_de

Re: KASAN: use-after-free Read in rds_find_bound

2018-02-14 Thread Dmitry Vyukov
On Wed, Feb 14, 2018 at 5:53 PM, Santosh Shilimkar wrote: >>> On 12/30/17 1:17 AM, syzbot wrote: Hello, syzkaller hit the following crash on fba961ab29e5ffb055592442808bb0f7962e05da git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/master comp

Re: samples/seccomp/ broken when cross compiling s390, ppc allyesconfig

2018-02-14 Thread Kees Cook
On Wed, Feb 14, 2018 at 1:20 AM, Michal Hocko wrote: > On Tue 13-02-18 13:27:30, Kees Cook wrote: >> On Tue, Feb 13, 2018 at 2:32 AM, Michal Hocko wrote: >> > On Tue 13-02-18 21:16:55, Michael Ellerman wrote: >> >> Kees Cook writes: >> >> >> >> > On Mon, Feb 12, 2018 at 7:25 PM, Michael Ellerman

Re: lost connection to test machine (4)

2018-02-14 Thread Dennis Zhou
On Mon, Feb 12, 2018 at 06:00:13PM +0100, Daniel Borkmann wrote: > > [ +Dennis, +Tejun ] > > Looks like we're stuck in percpu allocator with key/value size of 4 bytes > each and large number of entries (max_entries) in the reproducer in above > link. > > Could we have some __GFP_NORETRY semantic

Re: [PATCH] x86/entry/64: Fix CR3 restore order in paranoid_exit()

2018-02-14 Thread Andy Lutomirski
On Wed, Feb 14, 2018 at 7:39 AM, Ingo Molnar wrote: > > * Dave Hansen wrote: > >> On 02/13/2018 06:27 PM, Josh Poimboeuf wrote: >> > --- a/arch/x86/entry/entry_64.S >> > +++ b/arch/x86/entry/entry_64.S >> > @@ -1167,10 +1167,10 @@ ENTRY(paranoid_exit) >> > UNWIND_HINT_REGS >> > DISABLE_IN

Re: KASAN: use-after-free Read in rds_tcp_tune

2018-02-14 Thread Dmitry Vyukov
On Wed, Feb 14, 2018 at 6:02 PM, Joe Perches wrote: > On Wed, 2018-02-14 at 16:55 +0100, Dmitry Vyukov wrote: >> On Wed, Feb 14, 2018 at 4:35 PM, Sowmini Varadhan >> wrote: >> > btw, checkpatch.pl complains about the syzbot*@syzkaller.appspotmail.com >> > addresses as "Unrecognized email address

Re: ipmi_si fails to get BMC ID

2018-02-14 Thread Corey Minyard
I'm removing Greg and Arnd from the email, I don't think this requires their participation. On 02/13/2018 08:44 PM, Chris Chiu wrote: On Fri, Feb 9, 2018 at 9:34 PM, Corey Minyard wrote: On 02/08/2018 09:09 PM, Chris Chiu wrote: On Thu, Feb 8, 2018 at 11:53 PM, Corey Minyard wrote: On 02

Re: [PATCH 1/3] jump_label: Warn on failed jump_label patch

2018-02-14 Thread Jason Baron
On 02/14/2018 12:01 PM, Steven Rostedt wrote: > On Wed, 14 Feb 2018 10:40:41 -0600 > Josh Poimboeuf wrote: > >> When the jump label code encounters an address which isn't recognized by >> kernel_text_address(), it just silently fails. >> >> This can be dangerous because jump labels are used in

Re: [RFC 1/3] seccomp: add a return code to trap to userspace

2018-02-14 Thread Andy Lutomirski
On Wed, Feb 14, 2018 at 3:29 PM, Tycho Andersen wrote: > Hey Kees, > > Thanks for taking a look! > > On Tue, Feb 13, 2018 at 01:09:20PM -0800, Kees Cook wrote: >> On Sun, Feb 4, 2018 at 2:49 AM, Tycho Andersen wrote: >> > This patch introduces a means for syscalls matched in seccomp to notify >>

[PATCH v2] usb: gadget: f_uac2: fix bFirstInterface in composite gadget

2018-02-14 Thread John Keeping
If there are multiple functions associated with a configuration, then the UAC2 interfaces may not start at zero. Set the correct first interface number in the association descriptor so that the audio interfaces are enumerated correctly in this case. Signed-off-by: John Keeping Reviewed-by: Krzys

Re: [PATCH RFC] vfio/mdev: delay uevent after initialization complete

2018-02-14 Thread Cornelia Huck
[cc:ing Greg for his opinion on this; retaining quoting for context] On Tue, 13 Feb 2018 17:15:02 -0700 Alex Williamson wrote: > On Tue, 13 Feb 2018 14:09:01 +0100 > Cornelia Huck wrote: > > > On Mon, 12 Feb 2018 14:20:57 -0700 > > Alex Williamson wrote: > > > > > On Fri, 9 Feb 2018 11:27

Re: plan9 semantics on Linux - mount namespaces

2018-02-14 Thread Enrico Weigelt
On 14.02.2018 16:17, Richard Weinberger wrote: From taking a *very* quick look into busybox source, I suspect this should fix it: diff --git a/util-linux/unshare.c b/util-linux/unshare.c index 875e3f86e304..3f59cf4d27c2 100644 --- a/util-linux/unshare.c +++ b/util-linux/unshare.c @@ -350,9 +35

Re: clang asm-goto support (Was Re: [PATCH v2] x86/retpoline: Add clang support)

2018-02-14 Thread Andy Lutomirski
On Wed, Feb 14, 2018 at 3:31 PM, James Y Knight wrote: > I'd be definitely in favor having clang support asm goto. I wouldn't > want to exclude having other conversations about how to more directly > provide compiler features that the linux kernel could use, ALSO, but I > do not think that convers

Re: [RESEND PATCH net-next] r8169: add module param for control of ASPM disable.

2018-02-14 Thread David Miller
From: Andrew Lunn Date: Wed, 14 Feb 2018 14:40:40 +0100 > linux/drivers$ grep -ir aspm * | grep MODULE_ > gpu/drm/amd/amdgpu/amdgpu_drv.c:MODULE_PARM_DESC(aspm, "ASPM support (1 = > enable, 0 = disable, -1 = auto)"); > gpu/drm/radeon/radeon_drv.c:MODULE_PARM_DESC(aspm, "ASPM support (1 = enable,

[PATCH] ASoC: TSCS42xx: make const array norm_addrs static, reduces object code size

2018-02-14 Thread Colin King
From: Colin Ian King Don't populate the const array norm_addrs on the stack, instead make it static. Makes the object code smaller by over 230 bytes. Also re-format array data as the insertion of the static keywork made the first line overly long. Before: textdata bss dec he

Re: [RFC 1/3] seccomp: add a return code to trap to userspace

2018-02-14 Thread Tycho Andersen
On Wed, Feb 14, 2018 at 05:19:52PM +, Andy Lutomirski wrote: > On Wed, Feb 14, 2018 at 3:29 PM, Tycho Andersen wrote: > > Hey Kees, > > > > Thanks for taking a look! > > > > On Tue, Feb 13, 2018 at 01:09:20PM -0800, Kees Cook wrote: > >> On Sun, Feb 4, 2018 at 2:49 AM, Tycho Andersen wrote: >

Re: [PATCH 8/9] x86/mm: Make __VIRTUAL_MASK_SHIFT dynamic

2018-02-14 Thread Andy Lutomirski
On Wed, Feb 14, 2018 at 11:16 AM, Kirill A. Shutemov wrote: > For boot-time switching between paging modes, we need to be able to > adjust virtual mask shifts. > > The change doesn't affect the kernel image size much: > >textdata bss dec hex filename > 8628892 4734340 1368064 1

[PATCH] ARM: imx: avic: set low-power interrupt mask for imx25

2018-02-14 Thread Martin Kaiser
imx25 contains two registers (LPIMR0 and 1) to define which interrupts are enabled in low-power mode. As of today, those two registers are configured to enable all interrupts. Before going to low-power mode, the AVIC's INTENABLEH and INTENABLEL registers are configured to enable only those interrup

Re: [PATCH v2 08/16] mmc: sdhci-omap: Add support to override f_max and iodelay from pdata

2018-02-14 Thread Tony Lindgren
* Ulf Hansson [180214 09:53]: > On 5 February 2018 at 13:50, Kishon Vijay Abraham I wrote: > > DRA74x EVM Rev H EVM comes with revision 2.0 silicon. However, earlier > > versions of EVM can come with either revision 1.1 or revision 1.0 of > > silicon. > > > > The device-tree file is written to su

[PATCH] ipmi: kcs_bmc: mark expected switch fall-through in kcs_bmc_handle_data

2018-02-14 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 1465255 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva --- This code was compiled with GCC 7.3.0 drivers/char/ipmi/kcs_bmc.c | 1 + 1 file changed,

Re: clang asm-goto support (Was Re: [PATCH v2] x86/retpoline: Add clang support)

2018-02-14 Thread Kees Cook
On Wed, Feb 14, 2018 at 1:08 AM, Peter Zijlstra wrote: > If you ever get to the point where it makes sense to build a kernel with > LLVM [...] Just to speak to this point in particular: it makes sense to build kernels with LLVM right now. It's already happened; millions of Pixel 2 phones are alre

Re: KASAN: use-after-free Read in rds_tcp_tune

2018-02-14 Thread Joe Perches
On Wed, 2018-02-14 at 18:16 +0100, Dmitry Vyukov wrote: > On Wed, Feb 14, 2018 at 6:02 PM, Joe Perches wrote: > > On Wed, 2018-02-14 at 16:55 +0100, Dmitry Vyukov wrote: > > > On Wed, Feb 14, 2018 at 4:35 PM, Sowmini Varadhan > > > wrote: > > > > btw, checkpatch.pl complains about the syzbot*@sy

Re: [RESEND PATCH net-next] r8169: add module param for control of ASPM disable.

2018-02-14 Thread Andrew Lunn
On Wed, Feb 14, 2018 at 12:22:02PM -0500, David Miller wrote: > From: Andrew Lunn > Date: Wed, 14 Feb 2018 14:40:40 +0100 > > > linux/drivers$ grep -ir aspm * | grep MODULE_ > > gpu/drm/amd/amdgpu/amdgpu_drv.c:MODULE_PARM_DESC(aspm, "ASPM support (1 = > > enable, 0 = disable, -1 = auto)"); > > g

Re: [PATCH 1/3] jump_label: Warn on failed jump_label patch

2018-02-14 Thread Josh Poimboeuf
On Wed, Feb 14, 2018 at 12:18:20PM -0500, Jason Baron wrote: > > > On 02/14/2018 12:01 PM, Steven Rostedt wrote: > > On Wed, 14 Feb 2018 10:40:41 -0600 > > Josh Poimboeuf wrote: > > > >> When the jump label code encounters an address which isn't recognized by > >> kernel_text_address(), it just

Re: [PATCH net] bpf: cpumap: use GFP_KERNEL instead of GFP_ATOMIC in __cpu_map_entry_alloc()

2018-02-14 Thread Jesper Dangaard Brouer
On Wed, 14 Feb 2018 16:06:40 +0100 Michal Hocko wrote: > On Wed 14-02-18 22:17:34, Jason Wang wrote: > > There're several implications after commit 0bf7800f1799 ("ptr_ring: > > try vmalloc() when kmalloc() fails") with the using of vmalloc() since > > can't allow GFP_ATOMIC but mandate GFP_KERNEL

Re: KASAN: use-after-free Read in rds_find_bound

2018-02-14 Thread Santosh Shilimkar
On 2/14/2018 9:14 AM, Dmitry Vyukov wrote: On Wed, Feb 14, 2018 at 5:53 PM, Santosh Shilimkar wrote: [...] Hi Santosh, What is that fix? You forgot to provide any link/reference. I also don't see any patches from you at around that date... Fix [1] was later not added since there was a sti

[PATCH v2 00/14] x86/crypto gcmaes SSE scatter/gather support

2018-02-14 Thread Dave Watson
This patch set refactors the x86 aes/gcm SSE crypto routines to support true scatter/gather by adding gcm_enc/dec_update methods. The layout is: * First 5 patches refactor the code to use macros, so changes only need to be applied once for encode and decode. There should be no functional cha

[PATCH v2 01/14] x86/crypto: aesni: Merge INITIAL_BLOCKS_ENC/DEC

2018-02-14 Thread Dave Watson
Use macro operations to merge implemetations of INITIAL_BLOCKS, since they differ by only a small handful of lines. Use macro counter \@ to simplify implementation. Signed-off-by: Dave Watson --- arch/x86/crypto/aesni-intel_asm.S | 298 ++ 1 file changed, 48

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