RE: [PATCH 4/4] dax: "Hotplug" persistent memory for use like normal RAM

2019-01-16 Thread Du, Fan
>-Original Message- >From: Linux-nvdimm [mailto:linux-nvdimm-boun...@lists.01.org] On Behalf >Of Dave Hansen >Sent: Thursday, January 17, 2019 2:19 AM >To: d...@sr71.net >Cc: thomas.lenda...@amd.com; mho...@suse.com; >linux-nvd...@lists.01.org; ti...@suse.de; Dave Hansen >; Huang, Ying ;

[PATCH] f2fs: run gc/discard jobs when put_super

2019-01-16 Thread Jaegeuk Kim
When we umount f2fs, we need to avoid long delay due to discard commands, which is actually taking tens of seconds, if storage is very slow on UNMAP. So, this patch introduces timeout-based work on it. In addition to discard commands, we can also do GC during the given time period. By default,

Re: [PATCH net-next] net: dsa: Add ndo_get_phys_port_name() for CPU port

2019-01-16 Thread David Miller
From: Florian Fainelli Date: Tue, 15 Jan 2019 14:43:04 -0800 > There is not currently way to infer the port number through sysfs that > is being used as the CPU port number. Overlay a ndo_get_phys_port_name() > operation onto the DSA master network device in order to retrieve that > information.

Re: [PATCH net-next] cxgb4/l2t: Use struct_size() in kvzalloc()

2019-01-16 Thread David Miller
From: "Gustavo A. R. Silva" Date: Tue, 15 Jan 2019 15:44:52 -0600 > One of the more common cases of allocation size calculations is finding the > size of a structure that has a zero-sized array at the end, along with memory > for some number of elements for that array. For example: > > struct

Re: [PATCH net-next] openvswitch: meter: Use struct_size() in kzalloc()

2019-01-16 Thread David Miller
From: "Gustavo A. R. Silva" Date: Tue, 15 Jan 2019 15:19:17 -0600 > One of the more common cases of allocation size calculations is finding the > size of a structure that has a zero-sized array at the end, along with memory > for some number of elements for that array. For example: > > struct

[PATCH] soc: qcom: rpmpd: Drop family A RPM dependency

2019-01-16 Thread Bjorn Andersson
The MFD_QCOM_RPM is the RPM in family A, but the rpmpd driver only implements support for SMD based devices. Drop the dependency and remove includes of the family A headers. No functional change. Signed-off-by: Bjorn Andersson --- Sorry for not spotting this earlier, let's apply the series and

Re: [PATCH v4 04/13] x86/fsgsbase/64: Add intrinsics/macros for FSGSBASE instructions

2019-01-16 Thread Andi Kleen
> +#ifdef CONFIG_X86_64 > + > +#include > + > +.macro RDGSBASE opd The caller can now use the assembler instructions directly, so the macros are not needed anymore. -Andi

Re: [PATCH] HID: i2c-hid: Disable runtime PM on Goodix touchpad

2019-01-16 Thread Kai-Heng Feng
> On Jan 16, 2019, at 16:21, Kai Heng Feng wrote: > > > >> On Jan 14, 2019, at 19:18, Jiri Kosina wrote: >> >> On Mon, 14 Jan 2019, Kai-Heng Feng wrote: >> >>> A Goodix touchpad doesn't work. Touching the touchpad can trigger IRQ >>> but there's no input event from HID subsystem. >>>

Re: [PATCH] mm/mincore: allow for making sys_mincore() privileged

2019-01-16 Thread Linus Torvalds
On Thu, Jan 17, 2019 at 9:37 AM Matthew Wilcox wrote: > > Your patch 3/3 just removes the test. Am I right in thinking that it > doesn't need to be *moved* because the existing test after !PageUptodate > catches it? That's the _hope_. That's the simplest patch I can come up with as a potential

Re: [PATCH v1 05/10] cpufreq: imx6q: Use auto-registration of thermal cooling device

2019-01-16 Thread Viresh Kumar
On 14-01-19, 22:04, Amit Kucheria wrote: > Use the CPUFREQ_AUTO_REGISTER_COOLING_DEV flag to allow cpufreq core to > automatically register as a thermal cooling device. > > This allows removal of boiler plate code from the driver. > > Signed-off-by: Amit Kucheria > --- >

Re: [PATCH v1 02/10] cpufreq: Add a flag to auto-register a cooling device

2019-01-16 Thread Viresh Kumar
On 17-01-19, 00:03, Rafael J. Wysocki wrote: > On Monday, January 14, 2019 5:34:54 PM CET Amit Kucheria wrote: > > All cpufreq drivers do similar things to register as a cooling device. > > Provide a cpufreq driver flag so drivers can just ask the cpufreq core > > to register the cooling device on

[PATCH] arm64: dts: qcom: sdm845-mtp: Add WCN3990 BT node

2019-01-16 Thread Bjorn Andersson
The SDM845 MTP has a WCN3990 Bluetooth chip on UART6, enable this. Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 44 + 1 file changed, 44 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts

[PATCH v3] Drivers: hv: vmbus: Expose counters for interrupts and full conditions

2019-01-16 Thread Kimberly Brown
Counter values for per-channel interrupts and ring buffer full conditions are useful for investigating performance. Expose counters in sysfs for 2 types of guest to host interrupts: 1) Interrupts caused by the channel's outbound ring buffer transitioning from empty to not empty 2) Interrupts

Re: Donation

2019-01-16 Thread M. M. Fridman
I, Mikhail Fridman have selected you specifically as one of my beneficiaries for my Charitable Donation of $5 Million Dollars, Check the link below for confirmation: https://www.rt.com/business/343781-mikhail-fridman-will-charity/ I await your earliest response for further directives. Best

Re: [alsa-devel] [PATCH v3 3/3] ASoC: cros_ec_codec: Add codec driver for Cros EC

2019-01-16 Thread Guenter Roeck
On 1/16/19 8:25 PM, Cheng-yi Chiang wrote: Hi Guenter, Thanks for the review! On Wed, Jan 16, 2019 at 2:18 PM Guenter Roeck wrote: On Wed, Dec 26, 2018 at 03:03:19PM +0800, Cheng-Yi Chiang wrote: Add a codec driver to control ChromeOS EC codec. Use EC Host command to enable/disable I2S

Re: [PATCH v5 2/6] media: sun6i: Add mod_rate quirk

2019-01-16 Thread Jagan Teki
On Thu, Jan 17, 2019 at 12:48 AM Maxime Ripard wrote: > > On Fri, Jan 11, 2019 at 11:54:12AM +0530, Jagan Teki wrote: > > On Mon, Jan 7, 2019 at 6:59 PM Maxime Ripard > > wrote: > > > On Mon, Dec 24, 2018 at 08:57:48PM +0530, Jagan Teki wrote: > > > > On Fri, Dec 21, 2018 at 6:30 PM Maxime

Re: [PATCH v5 07/17] drm/sun4i: sun6i_mipi_dsi: Refactor vertical video start delay

2019-01-16 Thread Jagan Teki
On Thu, Jan 17, 2019 at 12:48 AM Maxime Ripard wrote: > > On Sun, Jan 13, 2019 at 01:07:41AM +0530, Jagan Teki wrote: > > > > > > > Again, I cannot help you without the datasheet for the panels > > > > > > > you're > > > > > > > trying to submit. > > > > > > > > > > > > The panel bound with

[PATCH v4 1/2] arm64: dts: qcom: sdm845: Increase address and size cells for soc

2019-01-16 Thread Bjorn Andersson
The busses on SDM845 provides 36 address bits, extend the address and size cells to make it possible to describe this in "ranges" and "dma-ranges". While touching all reg properties, addresses are padded to 8 digits. Signed-off-by: Bjorn Andersson --- Changes since v3: - Split out

[PATCH v4 2/2] arm64: dts: qcom: sdm845: Extend ranges and describe DMA space

2019-01-16 Thread Bjorn Andersson
For devices attached to an IOMMU, translation between IOVA and physical addresses is no longer 1:1 and dma-ranges should be specified to describe the available IOVA address space. On SDM845 the busses are implemented with 36 address bits, so dma-ranges must be defined to reduce the size of the

[PATCH v4 0/2] arm64: dts: qcom: sdm845: Fix DMA allocations for devices with IOMMU

2019-01-16 Thread Bjorn Andersson
These patches extends the size cells of the soc bus and define the dma-ranges, so that DMA allocations for devices with IOMMU attached will get valid IOVAs. Changes since v3: - Split patch in two - Rewrote commit message from scratch Bjorn Andersson (2): arm64: dts: qcom: sdm845: Increase

Re: [alsa-devel] [PATCH v3 3/3] ASoC: cros_ec_codec: Add codec driver for Cros EC

2019-01-16 Thread Cheng-yi Chiang
Hi Guenter, Thanks for the review! On Wed, Jan 16, 2019 at 2:18 PM Guenter Roeck wrote: > > On Wed, Dec 26, 2018 at 03:03:19PM +0800, Cheng-Yi Chiang wrote: > > Add a codec driver to control ChromeOS EC codec. > > > > Use EC Host command to enable/disable I2S recording and control other > >

Re: [PATCH v11 0/9] Add power domain driver for corners on msm8996/sdm845

2019-01-16 Thread Viresh Kumar
On 15-01-19, 21:52, Bjorn Andersson wrote: > On Wed 09 Jan 22:33 PST 2019, Viresh Kumar wrote: > > > +Rafael > > > > On 10-01-19, 09:32, Rajendra Nayak wrote: > > > Changes in v11: > > > * Updated opp-level binding description based on feedback > > > from Viresh > > > * Other minor fixups in

Re: [PATCH 2/3] kbuild: add real-prereqs shorthand for $(filter-out FORCE, $^)

2019-01-16 Thread Alexey Kardashevskiy
On 17/01/2019 15:10, Masahiro Yamada wrote: > In Kbuild, if_changed and friends must have FORCE as a prerequisite. > > Hence, $(filter-out FORCE,$^) or $(filter-out $(PHONY),$^) is a common > pattern to get the names of all the prerequisites except phony targets. > > Add real-prereqs as a

[PATCH 2/3] kbuild: add real-prereqs shorthand for $(filter-out FORCE,$^)

2019-01-16 Thread Masahiro Yamada
In Kbuild, if_changed and friends must have FORCE as a prerequisite. Hence, $(filter-out FORCE,$^) or $(filter-out $(PHONY),$^) is a common pattern to get the names of all the prerequisites except phony targets. Add real-prereqs as a shorthand. Note: We cannot replace $(filter %.o,$^) in

[PATCH 3/3] kbuild: remove unnecessary in-subshell execution

2019-01-16 Thread Masahiro Yamada
The commands surrounded by ( ) are executed in a subshell, but in most cases, we do not need to spawn an extra subshell. Signed-off-by: Masahiro Yamada --- scripts/Makefile.build | 4 ++-- scripts/Makefile.lib | 21 ++--- scripts/mkcompile_h| 4 ++-- 3 files changed, 14

[PATCH 1/3] kbuild: simplify rules of data compression with size appending

2019-01-16 Thread Masahiro Yamada
All the callers of size_append pass $(filter-out FORCE,$^). Move $(filter-out FORCE,$^) to the definition of size_append. This makes the callers cleaner because $(call ...) can be omitted to expand a macro with no argument. Signed-off-by: Masahiro Yamada --- scripts/Makefile.lib | 18

Free Will Offer

2019-01-16 Thread M. M. Fridman
I, Mikhail Fridman have selected you specifically as one of my beneficiaries for my Charitable Donation of $5 Million Dollars, Check the link below for confirmation: https://www.rt.com/business/343781-mikhail-fridman-will-charity/ I await your earliest response for further directives. Best

[PATCH 0/3] scsi: arcmsr: Fix suspend/resume of ACB_ADAPTER_TYPE_B part 2

2019-01-16 Thread Ching Huang
This patch series are against to mkp's 5.1/scsi-queue. 1. Due to dma_zalloc_coherent will be phase out, so use dma_alloc_coherent to replace it. 2. Fix suspend/resume of ACB_ADAPTER_TYPE_B part 2. 3. Update driver version to v1.40.00.10-20190116 ---

RE: [PATCH] USB: Fix configuration selection issues introduced in v4.20.0

2019-01-16 Thread Gopal, Saranya
> The result is this: > Before f13912d3f014a, if an RNDIS device has non-vendor-specific > configurations after the first one, that one would be selected. > After ff2a8c532c14, the first configuration would always be selected > for RNDIS devices. Besides, there are several redundant checks in this

[PATCH 3/3] scsi: arcmsr: Update driver version to v1.40.00.10-20190116

2019-01-16 Thread Ching Huang
>From Ching Huang Update driver version to v1.40.00.10-20190116. Signed-off-by: Ching Huang --- diff --git a/drivers/scsi/arcmsr/arcmsr.h b/drivers/scsi/arcmsr/arcmsr.h index b98c632..6033bcc 100755 --- a/drivers/scsi/arcmsr/arcmsr.h +++ b/drivers/scsi/arcmsr/arcmsr.h @@ -49,7 +49,7 @@ str

[PATCH 2/3] scsi: arcmsr: Fix suspend/resume of ACB_ADAPTER_TYPE_B part 2

2019-01-16 Thread Ching Huang
>From Ching Huang Fix suspend/resume of ACB_ADAPTER_TYPE_B part 2. Signed-off-by: Ching Huang --- diff --git a/drivers/scsi/arcmsr/arcmsr.h b/drivers/scsi/arcmsr/arcmsr.h index a94c513..b98c632 100755 --- a/drivers/scsi/arcmsr/arcmsr.h +++ b/drivers/scsi/arcmsr/arcmsr.h @@ -508,9 +508,9 @@

[GIT PULL] Security subsystem fixes for v5.0-rc3

2019-01-16 Thread James Morris
Please pull these fixes for the security subsystem. The first (by Casey actually) fixes a regression introduced with the LSM stacking changes. The following changes since commit 7939f8beecf1cfb10d255be65bfbd3793fae82a1: Merge tag 'trace-v5.0-rc1' of

[PATCH 1/3] scsi: arcmsr: Use dma_alloc_coherent to replace dma_zalloc_coherent

2019-01-16 Thread Ching Huang
>From Ching Huang Due to dma_zalloc_coherent will be phase out, so use dma_alloc_coherent to replace it. Signed-off-by: Ching Huang --- diff --git a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c index 9f85d5a..5736434 100755 --- a/drivers/scsi/arcmsr/arcmsr_hba.c +++

Re: [PATCH v2 4/4] usb: musb: Add support for MediaTek musb controller

2019-01-16 Thread Min Guo
On Wed, 2019-01-16 at 07:59 -0600, Bin Liu wrote: > On Wed, Jan 16, 2019 at 05:39:02PM +0800, Min Guo wrote: > > Hi Bin, > > > > On Tue, 2019-01-15 at 14:38 -0600, Bin Liu wrote: > > > Hi Min, > > > > > > very close, thanks. > > > Below I tried to explain a further cleanup in musb_clearb/w() and

Fix suspend/resume of ACB_ADAPTER_TYPE_B part 2

2019-01-16 Thread Ching Huang
This patch series are against to mkp's 5.1/scsi-queue. 1. Due to dma_zalloc_coherent will be phase out, so use dma_alloc_coherent to replace it. 2. Fix suspend/resume of ACB_ADAPTER_TYPE_B part 2. 3. Update driver version to v1.40.00.10-20190116 ---

Re: [PATCH] arc: remove redundant kernel-space generic-y

2019-01-16 Thread Masahiro Yamada
Hi Vineet, On Thu, Dec 20, 2018 at 4:52 AM Vineet Gupta wrote: > > On 12/19/18 7:16 AM, Masahiro Yamada wrote: > > Could you pick this up to your arc tree? > > Done, will push it in a day or so ! > > Thx, > -Vineet This was not sent in the previous MW. (Nor did I see ARC pull request.) Is it

Re: [PATCH v15 5/6] x86/boot: Parse SRAT address from RSDP and store immovable memory

2019-01-16 Thread Chao Fan
On Wed, Jan 16, 2019 at 12:01:58PM +0100, Borislav Petkov wrote: >On Mon, Jan 07, 2019 at 11:22:42AM +0800, Chao Fan wrote: >> +void get_immovable_mem(void) >> +{ >> +struct acpi_table_header *table_header; >> +struct acpi_subtable_header *table; >> +struct acpi_srat_mem_affinity *ma;

[PATCH] genirq/irqdesc: Fix a bug in alloc_descs()

2019-01-16 Thread Huacai Chen
Commit c410abbbacb9b378365b ("genirq/affinity: Add is_managed to struct irq_affinity_desc") introduce a bug in the for-loop in alloc_descs() by accident. So fix it. Fixes: c410abbbacb9b378365b ("genirq/affinity: Add is_managed to struct irq_affinity_desc") Cc: Dou Liyang Signed-off-by: Huacai

Re: WIP Droid 4 voice calls, GNSS & PM with a TS 27.010 serdev driver

2019-01-16 Thread Tony Lindgren
* Pavel Machek [190116 13:48]: > "quite trivial" does not mix with ofono. I did parts and it is still > not finished. At the moment, I do not have enough working SIM cards to > test everything. Feel free to help :-). I gave it a try but could only see "ofonod[14012]: motmdm init" on start up.

Re: [PATCH 0/5] Crypto Cleanup

2019-01-16 Thread Xiongfeng Wang
On 2019/1/17 1:49, Eric Biggers wrote: > On Wed, Jan 16, 2019 at 10:50:29AM +0800, Xiongfeng Wang wrote: >> The patchset introduce a helper to (un)register a array of crypto templates. >> The following patches use this helper to simplify the code. This is also >> a preparation for a coming

Re: [PATCH v2 4/4] ARM: dts: aspeed: Add lpc ctrl for Facebook

2019-01-16 Thread Joel Stanley
On Fri, 21 Dec 2018 at 05:06, Vijay Khemka wrote: > > On 12/17/18, 12:04 PM, "Vijay Khemka" wrote: > > Added lpc ctrl device to enable LPC clock in Facebook > Tiogapass device tree. > > Signed-off-by: Vijay Khemka > > Joel, Can you please take care of these patches merge. I did

Re: [PATCH v2 3/4] ARM: dts: aspeed: Add KCS for Facebook

2019-01-16 Thread Joel Stanley
On Tue, 18 Dec 2018 at 07:04, Vijay Khemka wrote: > > Added kcs device in Facebook Tiogapass device tree. > > Signed-off-by: Vijay Khemka Applied to the aspeed tree for 5.1. Cheers, Joel

Re: [PATCH v2 2/4] ARM: dts: aspeed: Add KCS support for LPC BMC

2019-01-16 Thread Joel Stanley
On Tue, 18 Dec 2018 at 07:04, Vijay Khemka wrote: > > Added kcs device support for lpc BMC. > > Signed-off-by: Vijay Khemka Applied to the aspeed tree for 5.1. Cheers, Joel

Re: [PATCH v2 1/4] ARM: dts: aspeed: Add sensors devices for Facebook

2019-01-16 Thread Joel Stanley
On Tue, 18 Dec 2018 at 07:04, Vijay Khemka wrote: > > Added ADC and other sensor devices in Facebook Tiogapass device tree. > > Signed-off-by: Vijay Khemka Applied to the aspeed tree for 5.1. Cheers, Joel

Re: [PATCH 1/2] tpm/eventlog/tpm1: Simplify walking over *pos measurements

2019-01-16 Thread Jia Zhang
On 2019/1/17 上午6:09, Jarkko Sakkinen wrote: > Please use "tpm:" tag for commits, not "tpm/eventlog/tpm1". > > On Fri, Jan 11, 2019 at 04:59:32PM +0800, Jia Zhang wrote: >> The responsibility of tpm1_bios_measurements_start() is to walk >> over the first *pos measurements, ensuring the skipped

kernel BUG at mm/page_alloc.c:LINE!

2019-01-16 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:b808822a75a3 Add linux-next specific files for 20190111 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=16a471d8c0 kernel config: https://syzkaller.appspot.com/x/.config?x=c052ead0aed5001b

Re: [PATCH v1 5/8] scsi: ufs: qcom: Expose the reset controller for PHY

2019-01-16 Thread Martin K. Petersen
Kishon, > On 12/01/19 4:31 AM, Evan Green wrote: >> Expose a reset controller that the phy can use to perform its >> initialization in a single callback. >> >> Also, change the use of the phy functions from ufs-qcom such that >> phy_poweron actually fires up the phy, and phy_poweroff actually

Re: [PATCH] mm/mincore: allow for making sys_mincore() privileged

2019-01-16 Thread Dave Chinner
On Fri, Jan 11, 2019 at 08:36:55AM +0100, Jiri Kosina wrote: > On Thu, 10 Jan 2019, Dave Chinner wrote: > > > Sounds nice from a theoretical POV, but reality has taught us very > > different lessons. > > > > FWIW, a quick check of XFS's history so you understand how long this > > behaviour has

[v3] arm64: dts: lx2160a: add sata node support

2019-01-16 Thread Peng Ma
Add SATA device nodes for fsl-lx2160a and enable support for QDS and RDB boards. Signed-off-by: Peng Ma --- changed for V3: - updated the commit log arch/arm64/boot/dts/freescale/fsl-lx2160a-qds.dts | 16 +++ arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts | 16 +++

Re: [PATCH v2 3/3] x86/umwait: Control umwait maximum time

2019-01-16 Thread Fenghua Yu
On Wed, Jan 16, 2019 at 04:30:59PM -0800, Andy Lutomirski wrote: > On Wed, Jan 16, 2019 at 4:13 PM Fenghua Yu wrote: > > > > On Wed, Jan 16, 2019 at 04:00:29PM -0800, Andy Lutomirski wrote: > > > On Wed, Jan 16, 2019 at 1:24 PM Fenghua Yu wrote: > > > > > > > > IA32_UMWAIT_CONTROL[31:2]

Re: [Xen-devel] [PATCH 1/1] xen-blkback: do not wake up shutdown_wq after xen_blkif_schedule() is stopped

2019-01-16 Thread Dongli Zhang
Hi Roger, On 2019/1/16 下午10:52, Roger Pau Monné wrote: > On Wed, Jan 16, 2019 at 09:47:41PM +0800, Dongli Zhang wrote: >> There is no need to wake up xen_blkif_schedule() as kthread_stop() is able >> to already wake up the kernel thread. >> >> Signed-off-by: Dongli Zhang >> --- >>

linux-next: manual merge of the drm-intel tree with the drm tree

2019-01-16 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-intel tree got a conflict in: drivers/gpu/drm/i915/i915_gem.c between commit: dd847a706974 ("drm/i915: Compile fix for 64b dma-fence seqno") from the drm tree and commit: 9f58892ea996 ("drm/i915: Pull all the reset functionality together into

Re: arm64: copy_from_user access the last page of ddr has problem on 4.14 kernel

2019-01-16 Thread Kassey
hi, Will it is hard to try on v5.0-rc2 kernel, since there is much port job to be done. dst kernel buffer is looks overwriten by some same(fix) patter start with "mmap"(0x6d6d7061) see below code (data from vmalloc), and file is mmaped (include the last phy page of ddr.) see

Re: [PATCH v3 3/4] ARM: dts: dps650ab: add power supply

2019-01-16 Thread Joel Stanley
On Thu, 10 Jan 2019 at 13:29, Xiaoting Liu wrote: > > Add Delta Electronics power supply DPS-650-AB. > > Signed-off-by: Xiaoting Liu > --- > v3: > Modify patch subject and commit message. > Add delta to compatible property. > --- > v2: > No change. I tweaked the commit message to mention

Re: [PATCH] mm/mincore: allow for making sys_mincore() privileged

2019-01-16 Thread Dominique Martinet
Jiri Kosina wrote on Wed, Jan 16, 2019: > So if noone sees any principal problem there, I'll happily submit it with > proper attribution etc. I'm not convinced just the write permission check is enough for mincore(), as Josh also seems to share the concern I raised (e.g. map a git directory

Re: [PATCH v15 5/6] x86/boot: Parse SRAT address from RSDP and store immovable memory

2019-01-16 Thread Chao Fan
On Wed, Jan 16, 2019 at 03:28:52PM +0800, Kairui Song wrote: >On Mon, Jan 7, 2019 at 11:24 AM Chao Fan wrote: >> >> + >> +/* Determine RSDP, based on acpi_os_get_root_pointer(). */ >> +static acpi_physical_address get_rsdp_addr(void) >> +{ >> + acpi_physical_address pa; >> + >> + pa =

Free Will Offer

2019-01-16 Thread M. M. Fridman
I, Mikhail Fridman have selected you specifically as one of my beneficiaries for my Charitable Donation of $5 Million Dollars, Check the link below for confirmation: https://www.rt.com/business/343781-mikhail-fridman-will-charity/ I await your earliest response for further directives. Best

linux-next: manual merge of the net-next tree with the net tree

2019-01-16 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: Documentation/networking/snmp_counter.rst between commit: a6c7c7aac2de ("net: add document for several snmp counters") from the net tree and commit: ae5220c67218 ("networking: Documentation: fix snmp_counters.rst

Re: [PATCH v15 6/6] x86/boot/KASLR: Limit KASLR to extracting kernel in immovable memory

2019-01-16 Thread Chao Fan
On Wed, Jan 16, 2019 at 12:15:07PM +0100, Borislav Petkov wrote: >On Mon, Jan 07, 2019 at 11:22:43AM +0800, Chao Fan wrote: >> KASLR may randomly choose some positions which are located in movable >> memory regions. It will break memory hotplug feature and make the >> movable memory chosen by

Re: Linux 5.0-rc2 seccomp_bpf user_notification_basic test hangs

2019-01-16 Thread shuah
On 1/16/19 5:44 PM, Tycho Andersen wrote: On Wed, Jan 16, 2019 at 04:30:26PM -0800, Kees Cook wrote: On Wed, Jan 16, 2019 at 4:01 PM shuah wrote: Hi Kees and James, seccomp_bpf test hangs right after the following test passes with EBUSY. Please see log at the end. /* Installing a second

Re: [PATCH] mm/mincore: allow for making sys_mincore() privileged

2019-01-16 Thread Dave Chinner
On Wed, Jan 16, 2019 at 04:54:49PM +1200, Linus Torvalds wrote: > On Wed, Jan 16, 2019 at 11:45 AM Dave Chinner wrote: > > > > I'm assuming that you can invalidate the page cache reliably by a > > means that does not repeated require probing to detect invalidation > > has occurred. I've mentioned

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

2019-01-16 Thread Fabio Estevam
On Wed, Jan 16, 2019 at 10:44 PM Stephen Boyd wrote: > Ok sure. Does this matter to scripts? Is it documented in > Documentation/process/submitting-patches.rst? I've seen both types, one >From Documentation/process/submitting-patches.rst" "If your patch fixes a bug in a specific commit, e.g.

Re: [PATCH] genirq/affinity: Assign default affinity to pre/post vectors

2019-01-16 Thread 陈华才
陈华才 江苏中科梦兰电子科技有限公司/自主安全事业部/软件部 江苏常熟虞山镇梦兰村 -- Original -- From: "Thomas Gleixner"; Date: Wed, Jan 16, 2019 05:26 PM To: "陈华才"; Cc: "linux-kernel"; "Fuxin Zhang"; "wuzhangjin"; "stable"; "Christoph Hellwig"; "Michael Hernandez"; Subject: Re: [PATCH]

Re: [PATCH v15 5/6] x86/boot: Parse SRAT address from RSDP and store immovable memory

2019-01-16 Thread Chao Fan
On Wed, Jan 16, 2019 at 12:01:58PM +0100, Borislav Petkov wrote: >On Mon, Jan 07, 2019 at 11:22:42AM +0800, Chao Fan wrote: [...] >> +rsdp = (struct acpi_table_rsdp *)(long)get_rsdp_addr(); >> +if (!rsdp) >> +return NULL; >> + >> +/* Get RSDT or XSDT from RSDP. */ >> +

Re: [PATCH net-next 1/3] net: dsa: Split platform data to header file

2019-01-16 Thread Andrew Lunn
On Wed, Jan 16, 2019 at 03:50:44PM -0800, Florian Fainelli wrote: > On 1/16/19 3:06 PM, Florian Fainelli wrote: > > On 1/16/19 2:29 PM, Andrew Lunn wrote: > >>> diff --git a/include/net/dsa.h b/include/net/dsa.h > >>> index b3eefe8e18fd..6178b648d08a 100644 > >>> --- a/include/net/dsa.h > >>> +++

Re: [PATCH net-next 0/3] net: dsa: Split platform data to header file

2019-01-16 Thread Andrew Lunn
On Tue, Jan 15, 2019 at 03:06:10PM -0800, Florian Fainelli wrote: > Hi all, > > This patch series decouples the DSA platform data structures from > net/dsa.h which was getting used for all sorts of DSA related > structures. > > It would probably make sense for this series to go via David's

Re: [PATCH] mm: hwpoison: use do_send_sig_info() instead of force_sig() (Re: PMEM error-handling forces SIGKILL causes kernel panic)

2019-01-16 Thread Jane Chu
On 1/16/2019 3:32 PM, Naoya Horiguchi wrote: Hi Jane, On Wed, Jan 16, 2019 at 09:56:02AM -0800, Jane Chu wrote: Hi, Naoya, On 1/16/2019 1:30 AM, Naoya Horiguchi wrote: diff --git a/mm/memory-failure.c b/mm/memory-failure.c index 7c72f2a95785..831be5ff5f4d 100644 ---

Re: [RESENDING PATCH] powerpc/wii: properly disable use of BATs when requested.

2019-01-16 Thread Jonathan Neuschäfer
Hi again, On Tue, Jan 15, 2019 at 04:43:20PM +, Christophe Leroy wrote: > 'nobats' kernel parameter or some options like CONFIG_DEBUG_PAGEALLOC > deny the use of BATS for mapping memory. > > This patch makes sure that the specific wii RAM mapping function > takes it into account as well. >

Re: [PATCH v2] x86/pgtable: Always inline p4d_index

2019-01-16 Thread Nathan Chancellor
On Wed, Jan 16, 2019 at 10:54:25PM +0100, Thomas Gleixner wrote: > On Wed, 16 Jan 2019, Nathan Chancellor wrote: > > > When building an allyesconfig build with Clang, the kernel fails to link > > arch/x86/platform/efi/efi_64.o because of a failed BUILD_BUG_ON: > > > > ld:

Re: [ANNOUNCE] v4 sg driver: ready for testing

2019-01-16 Thread Douglas Gilbert
There is an update to the SCSI Generic (sg) v4 driver adding synchronous and asynchronous bidi command support. Plus lots of fixes and some minor improvements. See: http://sg.danny.cz/sg/sg_v40.html The kernel code is split in two in the tarball below, one targeting lk 5.0 and the other

Re: [PATCH v1] clk: qcom: clk-rpmh: Add IPA clock support

2019-01-16 Thread David Dai
On 1/14/2019 8:47 AM, Stephen Boyd wrote: Quoting David Dai (2019-01-11 16:56:14) On 1/9/2019 11:28 AM, Stephen Boyd wrote: Quoting David Dai (2018-12-13 18:35:04) + +#define BCM_TCS_CMD(valid, vote) \ + (BCM_TCS_CMD_COMMIT_MASK |

Re: [PATCH] selftests/seccomp: Abort without user notification support

2019-01-16 Thread Tycho Andersen
On Wed, Jan 16, 2019 at 04:35:25PM -0800, Kees Cook wrote: > In the face of missing user notification support, the self test needs > to stop executing a test (ASSERT_*) instead of just reporting and > continuing (EXPECT_*). This adjusts the user notification tests to do > that where needed. > >

Re: Linux 5.0-rc2 seccomp_bpf user_notification_basic test hangs

2019-01-16 Thread Tycho Andersen
On Wed, Jan 16, 2019 at 04:30:26PM -0800, Kees Cook wrote: > On Wed, Jan 16, 2019 at 4:01 PM shuah wrote: > > > > Hi Kees and James, > > > > seccomp_bpf test hangs right after the following test passes > > with EBUSY. Please see log at the end. > > > > /* Installing a second listener in the chain

Re: linux-next: Fixes tag needs some work in the imx-mxs tree

2019-01-16 Thread Shawn Guo
On Thu, Jan 17, 2019 at 07:54:59AM +1100, Stephen Rothwell wrote: > Hi Shawn, > > Commit > > fde7ed930ca2 ("arm64: dts: imx8qxp: Fix MU4_INT number") > > has a malformed Fixes tag. > > The SHA1 should be at least 12 digits long. Fixed. Thanks for spotting it, Stephen. Shawn

[PATCH v5 07/14] qcom: spmi-gpio: add support for hierarchical IRQ chip

2019-01-16 Thread Brian Masney
spmi-gpio did not have any irqchip support so consumers of this in device tree would need to call gpio[d]_to_irq() in order to get the proper IRQ on the underlying PMIC. IRQ chips in device tree should be usable from the start without the consumer having to make an additional call to get the

[PATCH v5 01/14] dt-bindings: pinctrl: qcom-pmic-gpio: add qcom,pmi8998-gpio binding

2019-01-16 Thread Brian Masney
Add support for the PMI8998 GPIO variant to the Qualcomm PMIC GPIO binding document. Signed-off-by: Brian Masney Reviewed-by: Stephen Boyd Reviewed-by: Bjorn Andersson Reviewed-by: Rob Herring --- Changes since v4: - None Patch introduced in v4.

[PATCH v5 13/14] arm64: dts: qcom: pmi8998: add interrupt controller properties

2019-01-16 Thread Brian Masney
Add interrupt controller properties now that spmi-gpio is a proper hierarchical IRQ chip. The interrupts property is no longer needed so remove it. This change was not tested on any hardware but the same change was tested on qcom-pm8941.dtsi using a LG Nexus 5 (hammerhead) phone with no issues.

[PATCH 00/17] Merge text_poke fixes and executable lockdowns

2019-01-16 Thread Rick Edgecombe
This patchset improves several overlapping issues around stale TLB entries and W^X violations. It is combined from a slightly tweaked "x86/alternative: text_poke() enhancements v7" [1] and a next version of the "Don’t leave executable TLB entries to freed pages v2" [2] patchsets that were

[PATCH 02/17] x86/jump_label: Use text_poke_early() during early init

2019-01-16 Thread Rick Edgecombe
From: Nadav Amit There is no apparent reason not to use text_poke_early() while we are during early-init and we do not patch code that might be on the stack (i.e., we'll return to the middle of the patched code). This appears to be the case of jump-labels, so do so. This is required for the

[PATCH][V3] sb1000: fix a couple of indentation issues and remove assignment in if statements

2019-01-16 Thread Colin King
From: Colin Ian King There is an if statement and a return statement that are incorrectly indented. Fix these. Also replace the assignment-in-if statements to assignment followed by an if to keep to the coding style. Signed-off-by: Colin Ian King --- V2: also clean up the assignment-in-if

[PATCH 01/17] Fix "x86/alternatives: Lockdep-enforce text_mutex in text_poke*()"

2019-01-16 Thread Rick Edgecombe
From: Nadav Amit text_mutex is currently expected to be held before text_poke() is called, but we kgdb does not take the mutex, and instead *supposedly* ensures the lock is not taken and will not be acquired by any other core while text_poke() is running. The reason for the "supposedly" comment

[PATCH 03/17] x86/mm: temporary mm struct

2019-01-16 Thread Rick Edgecombe
From: Andy Lutomirski Sometimes we want to set a temporary page-table entries (PTEs) in one of the cores, without allowing other cores to use - even speculatively - these mappings. There are two benefits for doing so: (1) Security: if sensitive PTEs are set, temporary mm prevents their use in

[PATCH 11/17] x86/jump-label: remove support for custom poker

2019-01-16 Thread Rick Edgecombe
From: Nadav Amit There are only two types of poking: early and breakpoint based. The use of a function pointer to perform poking complicates the code and is probably inefficient due to the use of indirect branches. Cc: Andy Lutomirski Cc: Kees Cook Cc: Peter Zijlstra Cc: Dave Hansen Cc:

[PATCH 08/17] x86/ftrace: set trampoline pages as executable

2019-01-16 Thread Rick Edgecombe
From: Nadav Amit Since alloc_module() will not set the pages as executable soon, we need to do so for ftrace trampoline pages after they are allocated. For the time being, we do not change ftrace to use the text_poke() interface. As a result, ftrace breaks still breaks W^X. Cc: Steven Rostedt

[PATCH] selftests/seccomp: Abort without user notification support

2019-01-16 Thread Kees Cook
In the face of missing user notification support, the self test needs to stop executing a test (ASSERT_*) instead of just reporting and continuing (EXPECT_*). This adjusts the user notification tests to do that where needed. Reported-by: Shuah Khan Fixes: 6a21cc50f0c7 ("seccomp: add a return

[PATCH 09/17] x86/kprobes: Instruction pages initialization enhancements

2019-01-16 Thread Rick Edgecombe
From: Nadav Amit This patch is a preparatory patch for a following patch that makes module allocated pages non-executable. The patch sets the page as executable after allocation. In the future, we may get better protection of executables. For example, by using hypercalls to request the

[PATCH 10/17] x86: avoid W^X being broken during modules loading

2019-01-16 Thread Rick Edgecombe
From: Nadav Amit When modules and BPF filters are loaded, there is a time window in which some memory is both writable and executable. An attacker that has already found another vulnerability (e.g., a dangling pointer) might be able to exploit this behavior to overwrite kernel code. This patch

[PATCH 04/17] fork: provide a function for copying init_mm

2019-01-16 Thread Rick Edgecombe
From: Nadav Amit Provide a function for copying init_mm. This function will be later used for setting a temporary mm. Cc: Andy Lutomirski Cc: Kees Cook Cc: Peter Zijlstra Cc: Dave Hansen Reviewed-by: Masami Hiramatsu Tested-by: Masami Hiramatsu Signed-off-by: Nadav Amit Signed-off-by:

[PATCH 07/17] x86/kgdb: avoid redundant comparison of patched code

2019-01-16 Thread Rick Edgecombe
From: Nadav Amit text_poke() already ensures that the written value is the correct one and fails if that is not the case. There is no need for an additional comparison. Remove it. Signed-off-by: Nadav Amit Signed-off-by: Rick Edgecombe --- arch/x86/kernel/kgdb.c | 14 +- 1 file

[PATCH 16/17] Plug in new special vfree flag

2019-01-16 Thread Rick Edgecombe
Add new flag for handling freeing of special permissioned memory in vmalloc and remove places where memory was set RW before freeing which is no longer needed. In kprobes, bpf and ftrace this just adds the flag, and removes the now unneeded set_memory_ calls before calling vfree. In modules, the

[PATCH] fix a couple of indentation issues and remove assignment in if statements

2019-01-16 Thread Colin King
From: Colin Ian King There is an if statement and a return statement that are incorrectly indented. Fix these. Also replace the assignment-in-if statements to assignment followed by an if to keep to the coding style. Signed-off-by: Colin Ian King --- V2: also clean up the assignment-in-if

[PATCH 15/17] vmalloc: New flags for safe vfree on special perms

2019-01-16 Thread Rick Edgecombe
This adds a new flags VM_HAS_SPECIAL_PERMS, for enabling vfree operations to immediately clear executable TLB entries to freed pages, and handle freeing memory with special permissions. It also takes care of reseting the direct map permissions for the pages being unmapped. So this flag is useful

Re: [PATCH] fix a couple of indentation issues and remove assignment in if statements

2019-01-16 Thread Colin Ian King
Bah, forgot to fix up the subject line properly. V3. Coming. On 17/01/2019 00:33, Colin King wrote: > From: Colin Ian King > > There is an if statement and a return statement that are incorrectly > indented. Fix these. Also replace the assignment-in-if statements > to assignment followed by an

[PATCH 14/17] mm: Make hibernate handle unmapped pages

2019-01-16 Thread Rick Edgecombe
For architectures with CONFIG_ARCH_HAS_SET_ALIAS, pages can be unmapped briefly on the directmap, even when CONFIG_DEBUG_PAGEALLOC is not configured. So this changes kernel_map_pages and kernel_page_present to be defined when CONFIG_ARCH_HAS_SET_ALIAS is defined as well. It also changes places

[PATCH 17/17] module: Prevent module removal racing with text_poke()

2019-01-16 Thread Rick Edgecombe
From: Nadav Amit It seems dangerous to allow code modifications to take place concurrently with module unloading. So take the text_mutex while the memory of the module is freed. Signed-off-by: Nadav Amit Signed-off-by: Rick Edgecombe --- kernel/module.c | 5 + 1 file changed, 5

[PATCH 06/17] x86/alternative: use temporary mm for text poking

2019-01-16 Thread Rick Edgecombe
From: Nadav Amit text_poke() can potentially compromise the security as it sets temporary PTEs in the fixmap. These PTEs might be used to rewrite the kernel code from other cores accidentally or maliciously, if an attacker gains the ability to write onto kernel memory. Moreover, since remote

[PATCH 05/17] x86/alternative: initializing temporary mm for patching

2019-01-16 Thread Rick Edgecombe
From: Nadav Amit To prevent improper use of the PTEs that are used for text patching, we want to use a temporary mm struct. We initailize it by copying the init mm. The address that will be used for patching is taken from the lower area that is usually used for the task memory. Doing so

[PATCH 12/17] x86/alternative: Remove the return value of text_poke_*()

2019-01-16 Thread Rick Edgecombe
From: Nadav Amit The return value of text_poke_early() and text_poke_bp() is useless. Remove it. Cc: Andy Lutomirski Cc: Kees Cook Cc: Peter Zijlstra Cc: Dave Hansen Cc: Masami Hiramatsu Signed-off-by: Nadav Amit Signed-off-by: Rick Edgecombe --- arch/x86/include/asm/text-patching.h |

[PATCH 13/17] Add set_alias_ function and x86 implementation

2019-01-16 Thread Rick Edgecombe
This adds two new functions set_alias_default_noflush and set_alias_nv_noflush for setting the alias mapping for the page to its default valid permissions and to an invalid state that cannot be cached in a TLB, respectively. These functions to not flush the TLB. Note, __kernel_map_pages does

[PATCH v5 12/14] arm64: dts: qcom: pmi8994: add interrupt controller properties

2019-01-16 Thread Brian Masney
Add interrupt controller properties now that spmi-gpio is a proper hierarchical IRQ chip. The interrupts property is no longer needed so remove it. This change was not tested on any hardware but the same change was tested on qcom-pm8941.dtsi using a LG Nexus 5 (hammerhead) phone with no issues.

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