[PATCH 0/5] kbuild: always define KBUILD_MODNAME, and clean-up/fix modname

2018-03-07 Thread Masahiro Yamada
3/5 takes into account '-m' case for multi-used-m. 2/5 is necessary beforehand because 3/5 would cause a build error for drivers/net/ethernet/cavium/liquidio/lio_ethtool.c 1, 4, 5 are just clean-ups. Cao jin (1): kbuild: fix modname for composite modules Masahiro Yamada (4): kbuild:

Re: [PATCH] amlogic: meson-gx-socinfo: Update soc ids

2018-03-07 Thread Kevin Hilman
Jerome Brunet writes: > On Wed, 2018-02-14 at 15:58 +0100, Neil Armstrong wrote: >> Updates the Amlogic Meson SoCs IDs for the Armv8 based SoCs. >> It includes the new families and packages. >> >> Signed-off-by: Neil Armstrong >> --- >>

Re: [BUG] Kernel crash on Allwinner H3 due to sound core changes

2018-03-07 Thread Kuninori Morimoto
Hi Jernej Thank you for your hard work > I found the issue. Commit be7ee5f32a9a ("ASoC: soc-generic-dmaengine-pcm: > replace platform to component") changes struct dmaengine_pcm: > > struct dmaengine_pcm { > struct dma_chan *chan[SNDRV_PCM_STREAM_LAST + 1]; > const struct

Re: [PATCH] ARM64: dts: amlogic: Convert to new-style SPDX license identifiers

2018-03-07 Thread Kevin Hilman
Neil Armstrong writes: > Move the SPDX-License-Identifier lines to the top and drop the > license splat. > > Signed-off-by: Neil Armstrong Applied to v4.17/dt64, Thanks for the cleanup, Kevin

Re: [PATCH v5 2/3] USB3/DWC3: Add property "snps, incr-burst-type-adjustment" for INCR burst type

2018-03-07 Thread Rob Herring
On Tue, Mar 06, 2018 at 04:59:10PM +0800, Ran Wang wrote: > Property "snps,incr-burst-type-adjustment = , ..." for USB3.0 DWC3. > When only one value means INCRx mode with fix burst type. > When more than one value, means undefined length burst mode, USB controller > can use the length less than

MIPS DT W=1 warnings (was Re: [PATCH v5 2/5] MIPS: mscc: add ocelot dtsi)

2018-03-07 Thread James Hogan
Hi Rob, On Wed, Mar 07, 2018 at 10:08:28AM -0600, Rob Herring wrote: > Please compile with W=1 and fix any issues like this one which is a > unit-address without a reg property. Drop the unit-address. I was just giving the BMIPS W=1 DT warnings a look, and a few look spurious. I'd value your

Re: [PATCH] security: Fix IMA Kconfig for dependencies on ARM64

2018-03-07 Thread Mimi Zohar
On Wed, 2018-03-07 at 11:41 -0800, James Bottomley wrote: > On Wed, 2018-03-07 at 14:21 -0500, Mimi Zohar wrote: > > On Wed, 2018-03-07 at 11:08 -0800, James Bottomley wrote: > > > > > > On Wed, 2018-03-07 at 13:55 -0500, Mimi Zohar wrote: > > > > > > > > On Wed, 2018-03-07 at 11:51 -0700, Jason

Re: [PATCH v3 1/4] arm64: dts: mt2712: add pintcrl file

2018-03-07 Thread Rob Herring
On Mon, Mar 05, 2018 at 07:35:42PM +0800, Zhiyong Tao wrote: > This patch adds pinctrl file for mt2712. > > Signed-off-by: Zhiyong Tao > --- > arch/arm64/boot/dts/mediatek/mt2712-pinfunc.h | 1123 > + > 1 file changed, 1123 insertions(+) >

Re: [PATCH] rtc: remove VLA usage

2018-03-07 Thread Gustavo A. R. Silva
Hi Alexandre, On 03/07/2018 03:25 PM, Alexandre Belloni wrote: On 07/03/2018 at 14:11:33 -0600, Gustavo A. R. Silva wrote: In preparation to enabling -Wvla, remove VLA and replace it with a fixed-length array instead. You should probably explain what VLA is and why this is important to do.

Re: [PATCH 1/6] Docs: dt: add fsl-mc iommu-parent device-tree binding

2018-03-07 Thread Rob Herring
On Mon, Mar 05, 2018 at 07:59:21PM +0530, Nipun Gupta wrote: > The existing IOMMU bindings cannot be used to specify the relationship > between fsl-mc devices and IOMMUs. This patch adds a binding for > mapping fsl-mc devices to IOMMUs, using a new iommu-parent property. > > Signed-off-by: Nipun

Re: ext4 ignoring rootfs default mount options

2018-03-07 Thread Theodore Y. Ts'o
On Wed, Mar 07, 2018 at 02:13:24PM -0500, Lennart Sorensen wrote: > > Trying to use tune2fs -E mount_opts to set some default options, and > can't figure out how to enter two options at once. > > ... > > Sure in this case I can set one with -o and the other with -E, but in > general there seems

[PATCH] net: phy: Move interrupt check from phy_check to phy_interrupt

2018-03-07 Thread Brad Mouring
If multiple phys share the same interrupt (e.g. a multi-phy chip), the first device registered is the only one checked as phy_interrupt will always return IRQ_HANDLED if the first phydev is not halted. Move the interrupt check into phy_interrupt and, if it was not this phydev, return IRQ_NONE to

Re: [PATCH v2] earlycon: Allow specifying a uartclk in options

2018-03-07 Thread Daniel Kurtz
On Thu, Mar 1, 2018 at 11:43 AM Daniel Kurtz wrote: > Currently when an earlycon is registered, the uartclk is assumed to be > BASE_BAUD * 16 = 1843200. If a baud rate is specified in the earlycon > options, then 8250_early's init_port will program the UART clock divider >

Re: [PATCH] ubi: Reject MLC NAND

2018-03-07 Thread Willy Tarreau
Hi Boris, On Wed, Mar 07, 2018 at 11:30:57PM +0100, Boris Brezillon wrote: > I have one simple question: did you ever play with MLC NANDs or are you > just trolling? If you had, like Richard and I did when working on MLC > support, I'm pretty sure you wouldn't play this "don't backport to >

[git pull] Input updates for v4.16-rc4

2018-03-07 Thread Dmitry Torokhov
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus to receive updates for the input subsystem: - we are reverting patch that was switched touchpad on Lenovo T460P over to native RMI because on these boxes BIOS messes up with SMBus

RE: [PATCH 4.15 004/122] platform/x86: dell-laptop: Allocate buffer on heap rather than globally

2018-03-07 Thread Mario.Limonciello
Greg, Can you please make sure that the one that came in right after this is also applied at the same time? https://www.spinics.net/lists/stable/msg215268.html As you recommended before they weren't squashed together, but they should both come in at the same time. Thanks, > -Original

Re: [PATCH v2 2/7] kexec_file,x86,powerpc: factor out kexec_file_ops functions

2018-03-07 Thread Dave Young
On 03/06/18 at 07:22pm, AKASHI Takahiro wrote: > As arch_kexec_kernel_image_{probe,load}(), > arch_kimage_file_post_load_cleanup() and arch_kexec_kernel_verify_sig() > are almost duplicated among architectures, they can be commonalized with > an architecture-defined kexec_file_ops array. So let's

linux-next: manual merge of the mfd tree with Linus' tree

2018-03-07 Thread Stephen Rothwell
Hi Lee, Today's linux-next merge of the mfd tree got a conflict in: drivers/mfd/syscon.c between commit: 3bafc09e7797 ("mfd: syscon: Add hardware spinlock support") from Linus' tree and commit: 34c90dcce6b1 ("mfd: syscon: Set regmap name to DT node name") from the mfd tree. I fixed

Re: [PATCH v4 3/4] of: Documentation: Add x86 local APIC ID property

2018-03-07 Thread Rob Herring
On Wed, Mar 7, 2018 at 7:11 PM, Ivan Gorinov wrote: > On Wed, 2018-03-07 at 14:23 -0600, Rob Herring wrote: > >> > Add new "intel,apic-id" property to allow using CPU descriptions >> > in Device Tree data provided by the U-Boot loader. >> > Address specified in 'reg' to be

Re: [PATCH] coresight: use %px to print pcsr instead of %p

2018-03-07 Thread Mathieu Poirier
On 2 March 2018 at 21:23, Leo Yan wrote: > Commit ad67b74d2469 ("printk: hash addresses printed with %p") lets > printk specifier %p to hash all addresses before printing, this was > resulting in the high 32 bits of pcsr can only output zeros. So > module cannot completely

Re: [PATCH 4/6] dt-bindings: remoteproc: Add Q6v5 Modem PIL binding for SDM845

2018-03-07 Thread Rob Herring
On Mon, Mar 05, 2018 at 03:23:31PM +0530, sibis wrote: > Add new compatible string for Qualcomm SDM845 SoCs > > Signed-off-by: sibis Full name. > --- > Documentation/devicetree/bindings/remoteproc/qcom,q6v5.txt | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-)

RE: [PATCH v5 3/4] drivers: firmware: xilinx: Add sysfs interface

2018-03-07 Thread Jolly Shah
Hi Sudeep, > -Original Message- > From: Sudeep Holla [mailto:sudeep.ho...@arm.com] > Sent: Thursday, March 01, 2018 6:44 AM > To: Jolly Shah > Cc: ard.biesheu...@linaro.org; mi...@kernel.org; > gre...@linuxfoundation.org; m...@codeblueprint.co.uk; >

Re: [PATCH 2/2] trace_uprobe: Simplify probes_seq_show()

2018-03-07 Thread Kees Cook
On Tue, Mar 6, 2018 at 8:12 PM, Ravi Bangoria wrote: > > > On 03/07/2018 03:34 AM, Kees Cook wrote: >> On Tue, Mar 6, 2018 at 12:12 AM, Ravi Bangoria >> wrote: >>> >>> On 02/08/2018 09:13 AM, Ravi Bangoria wrote: Wang, ping

Re: [PATCH] ubi: Reject MLC NAND

2018-03-07 Thread Pavel Machek
On Wed 2018-03-07 22:11:13, David Woodhouse wrote: > > > On Wed, 2018-03-07 at 14:08 -0800, Steve deRosier wrote: > > > > To clarify one thing: the reason for this is MLC has actually never > > been supported, nor worked properly. The fact that it kinda worked was > > incidental and the cause

Re: [Regression] TPM char device not created if TPM 1.2 is disabled, but visible

2018-03-07 Thread Sahil Rihan
> On 3/6/18, 3:14 AM, "Jarkko Sakkinen" wrote: > > On Mon, 2018-03-05 at 19:28 +, Sahil Rihan wrote: > > Agree on keeping the warning. > > > > I'm guessing you want to return -ENODEV from tpm_bios_log_setup. Doing it > > from > > tpm_read_log_acpi will

Re: [PATCH 1/2] mm/vmalloc: Add interfaces to free unused page table

2018-03-07 Thread Andrew Morton
On Wed, 7 Mar 2018 11:32:26 -0700 Toshi Kani wrote: > On architectures with CONFIG_HAVE_ARCH_HUGE_VMAP set, ioremap() > may create pud/pmd mappings. Kernel panic was observed on arm64 > systems with Cortex-A75 in the following steps as described by > Hanjun Guo. > > 1.

[PATCH] vsprintf: Remove accidental VLA usage

2018-03-07 Thread Kees Cook
The "sym" calculation is actually a fixed size, but since the max() macro uses some extensive tricks for safety, it ends up looking like a variable size. This replaces max() with a simple max macro which is sufficient for the calculation of the array size. Seen with -Wvla. Fixed as part of the

Re: [PATCH] rtc: remove VLA usage

2018-03-07 Thread Gustavo A. R. Silva
On 03/07/2018 05:12 PM, Alexandre Belloni wrote: On 07/03/2018 at 17:09:22 -0600, Gustavo A. R. Silva wrote: On 03/07/2018 05:01 PM, Alexandre Belloni wrote: On 07/03/2018 at 16:39:51 -0600, Gustavo A. R. Silva wrote: Hi Alexandre, On 03/07/2018 03:25 PM, Alexandre Belloni wrote: On

Re: [PATCH] bloat-o-meter: fix typo in help

2018-03-07 Thread Matteo Croce
On Wed, Feb 14, 2018 at 6:47 PM, Matteo Croce wrote: > the bloat-o-meter script has two typos in the help, fix both. > > Fixes: 192efb7a1f9b ("bloat-o-meter: provide 3 different arguments for data, > function and All") > Signed-off-by: Matteo Croce > --- >

Re: [RFC/RFT][PATCH v2 2/6] sched: idle: Do not stop the tick upfront in the idle loop

2018-03-07 Thread Frederic Weisbecker
On Tue, Mar 06, 2018 at 10:02:15AM +0100, Rafael J. Wysocki wrote: > Index: linux-pm/kernel/sched/idle.c > === > --- linux-pm.orig/kernel/sched/idle.c > +++ linux-pm/kernel/sched/idle.c > @@ -220,13 +220,17 @@ static void

Re: [PATCH] vsprintf: Remove accidental VLA usage

2018-03-07 Thread Andrew Morton
On Wed, 7 Mar 2018 15:07:14 -0800 Kees Cook wrote: > The "sym" calculation is actually a fixed size, but since the max() > macro uses some extensive tricks for safety, it ends up looking like a > variable size. This replaces max() with a simple max macro which is >

Re: [PATCH] vsprintf: Remove accidental VLA usage

2018-03-07 Thread Andrew Morton
On Wed, 7 Mar 2018 15:59:27 -0800 Kees Cook wrote: > I didn't want to encourage a global macro that _lacked_ the safety > built into the max*() family, though... thoughts for a reasonable > approach? I think SIMPLE_MAX() is OK.Along with one of /* these */ things ;)

RE: [PATCH v5 02/12] [media] cxd2880-spi: Add support for CXD2880 SPI interface

2018-03-07 Thread Yasunari.Takiguchi
Dear Mauro I am very glad to hear your message. Being busy, thank you for taking care of fixing patches as well also. And we will improve about your below comments continuously. Regards & Thanks Takiguchi > -Original Message- > From: Mauro Carvalho Chehab

Re: [PATCH] ARM64: dts: meson: reduce odroid-c2 eMMC maximum rate

2018-03-07 Thread Kevin Hilman
Jerome Brunet writes: > Different modules maybe installed by the user on the eMMC connector > of the odroid-c2. While the red modules are working without an issue, > it seems some black modules (apparently Samsung based) are having > issue at 200MHz > > While the tuning

Re: [PATCH 1/6] reset: qcom: AOSS (Always on subsystem) reset controller

2018-03-07 Thread Rob Herring
On Mon, Mar 05, 2018 at 03:23:28PM +0530, sibis wrote: > Add reset controller driver for Qualcomm SDM845 SoC to > control reset signals provided by AOSS for Modem, Venus > ADSP, GPU, Camera, Wireless, Display subsystem > > Signed-off-by: sibis Need a full name here. > ---

Re: [PATCH] ubi: Reject MLC NAND

2018-03-07 Thread David Woodhouse
On Wed, 2018-03-07 at 14:08 -0800, Steve deRosier wrote: > > To clarify one thing: the reason for this is MLC has actually never > been supported, nor worked properly. The fact that it kinda worked was > incidental and the cause of major problems for people due to that not > being clear. This

Re: [PATCH v2 2/8] [PATCH 2/8] Documentations: dt-bindings: Add a document of PECI adapter driver for Aspeed AST24xx/25xx SoCs

2018-03-07 Thread Pavel Machek
Hi! > >Are these SoCs x86-based? > > Yes, these are ARM SoCs. Please see Andrew's answer as well. Understood, thanks. > >>+ Read sampling point selection. The whole period of a bit time will be > >>+ divided into 16 time frames. This value will determine which time frame > >>+ this

Re: [RFC/RFT][PATCH v2 0/6] sched/cpuidle: Idle loop rework

2018-03-07 Thread Rafael J. Wysocki
On Wed, Mar 7, 2018 at 6:04 PM, Doug Smythies wrote: > On 2018.03.06 12:57 Rafael J. Wysocki wrote: > > ...[snip]... > >> And the two paragraphs below still apply: > >>> I have tested these patches on a couple of machines, including the very >>> laptop >>> I'm sending them

Re: [PATCH v2 1/2] dt-bindings: watchdog: Add Nuvoton NPCM description

2018-03-07 Thread Rob Herring
On Mon, Mar 05, 2018 at 10:15:40PM +1030, Joel Stanley wrote: > These bindings describe the watchdog IP as used by the Nuvoton NPCM750 > (Poleg) BMC SoC. > > Signed-off-by: Joel Stanley > --- > V2: Add optional timeout property > --- > .../bindings/watchdog/nuvoton,npcm-wdt.txt

Re: [PATCH] rtc: remove VLA usage

2018-03-07 Thread Gustavo A. R. Silva
Hi Alexandre, On 03/07/2018 03:25 PM, Alexandre Belloni wrote: On 07/03/2018 at 14:11:33 -0600, Gustavo A. R. Silva wrote: In preparation to enabling -Wvla, remove VLA and replace it with a fixed-length array instead. You should probably explain what VLA is and why this is important to do.

Re: [PATCH] kbuild: Handle builtin dtb files containing hyphens

2018-03-07 Thread Frank Rowand
On 03/07/18 12:25, James Hogan wrote: > On Wed, Mar 07, 2018 at 12:11:41PM -0800, Frank Rowand wrote: >> I initially misread the patch description (and imagined an entirely >> different problem). >> >> >> On 03/07/18 06:06, James Hogan wrote: >>> On dtb files which contain hyphens, the dt_S_dtb

Re: [RFC/RFT][PATCH v2 1/6] time: tick-sched: Reorganize idle tick management code

2018-03-07 Thread Frederic Weisbecker
On Tue, Mar 06, 2018 at 10:02:01AM +0100, Rafael J. Wysocki wrote: > Index: linux-pm/kernel/time/tick-sched.c > === > --- linux-pm.orig/kernel/time/tick-sched.c > +++ linux-pm/kernel/time/tick-sched.c > + > +/** > + *

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

2018-03-07 Thread Paul Moore
On Wed, Mar 7, 2018 at 3:26 PM, David Miller wrote: > From: Paul Moore > Date: Wed, 7 Mar 2018 15:20:33 -0500 > >>> So you would only have to wait until my tree went in before >>> sending your pull request. >> >> So you would want me to rebase

Re: [PATCH v2 (RESEND)] lockdep: Fix fs_reclaim warning.

2018-03-07 Thread Andrew Morton
On Wed, 28 Feb 2018 06:50:02 +0900 Tetsuo Handa wrote: > > This warning is caused by commit d92a8cfcb37ecd13 ("locking/lockdep: Rework > FS_RECLAIM annotation") which replaced lockdep_set_current_reclaim_state()/ > lockdep_clear_current_reclaim_state() in

Re: [PATCH] audit: set TIF_AUDIT_SYSCALL only if audit filter has been populated

2018-03-07 Thread Paul Moore
On Wed, Mar 7, 2018 at 11:48 AM, Jiri Kosina wrote: > On Wed, 7 Mar 2018, Andy Lutomirski wrote: >> Wow, this was a long time ago. > > Oh yeah; but it now resurfaced on our side, as we are of course receiving > a lot of requests with respect to making syscall performance great

Re: [PATCH v2] block: sed-opal: fix u64 short atom length

2018-03-07 Thread Scott Bauer
On Wed, Mar 07, 2018 at 05:55:56PM +0100, Jonas Rabenstein wrote: > The length must be given as bytes and not as 4 bit tuples. > > Signed-off-by: Jonas Rabenstein > --- > v2: > - use fls64 > - shorten loop body > --- > block/sed-opal.c | 11

Re: usb: musb: error when trying to unbind musb-hdrc.0.auto

2018-03-07 Thread Merlijn Wajer
Hi, I suspected that the issue was similar to the one fixed in this commit: 0c3aae9bd59978fb8c3557d7883380bef0f2cfa1 (USB: musb: fix late external abort on suspend) I've applied a similar fix to the musb_remove function (as well as moving musb_platform_exit just before spin_unlock_irqrestore),

mmotm 2018-03-07-16-19 uploaded

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

Re: [PATCH 7/7] RCU, workqueue: Implement rcu_work

2018-03-07 Thread Lai Jiangshan
On Wed, Mar 7, 2018 at 10:54 PM, Paul E. McKenney wrote: > On Wed, Mar 07, 2018 at 10:49:49AM +0800, Lai Jiangshan wrote: >> On Wed, Mar 7, 2018 at 1:33 AM, Tejun Heo wrote: >> >> > +/** >> > + * queue_rcu_work_on - queue work on specific CPU after a

Re: [PATCH V2 2/2] dt-bindings: Document the Rockchip RK1608 bindings

2018-03-07 Thread leo
Hi Sakari, Thanks for your advice,  i'll revise it. Hi Wen, On Mon, Feb 26, 2018 at 04:25:04PM +0800, Wen Nuan wrote: From: Leo Wen Add DT bindings documentation for Rockchip RK1608. Changes V2: - Delete spi-min-frequency property. - Add the external sensor's

Re: [PATCH v4 3/4] of: Documentation: Add x86 local APIC ID property

2018-03-07 Thread Ivan Gorinov
On Wed, 2018-03-07 at 14:23 -0600, Rob Herring wrote: > > Add new "intel,apic-id" property to allow using CPU descriptions > > in Device Tree data provided by the U-Boot loader. > > Address specified in 'reg' to be used as default local APIC ID > > to avoid breaking existing systems with DTB

Re: [PATCH] bloat-o-meter: fix typo in help

2018-03-07 Thread Randy Dunlap
On 03/07/2018 03:39 PM, Matteo Croce wrote: > On Wed, Feb 14, 2018 at 6:47 PM, Matteo Croce wrote: >> the bloat-o-meter script has two typos in the help, fix both. >> >> Fixes: 192efb7a1f9b ("bloat-o-meter: provide 3 different arguments for data, >> function and All") >>

Re: [PATCH 3/4] module: Support to show the current enforcement policy

2018-03-07 Thread Jia Zhang
On 2018/3/8 上午4:14, Jessica Yu wrote: > +++ Jia Zhang [01/03/18 17:09 +0800]: >> /sys/kernel/security/modsign/enforce gives the result of current >> enforcement policy of loading module. >> >> Signed-off-by: Jia Zhang > > Why is this being added as part of

Re: [PATCH] perf vendor events arm64: Enable JSON events for ThunderX2 B0

2018-03-07 Thread Ganapatrao Kulkarni
On Thu, Mar 8, 2018 at 12:01 AM, William Cohen wrote: > On 03/07/2018 12:35 PM, Ganapatrao Kulkarni wrote: >> Hi Will Cohen, >> >> On Wed, Mar 7, 2018 at 8:08 PM, Arnaldo Carvalho de Melo >> wrote: >>> Em Wed, Mar 07, 2018 at 09:32:05AM -0500, William Cohen

Re: ivtv: use arch_phys_wc_add() and require PAT disabled

2018-03-07 Thread Luis R. Rodriguez
On Thu, Mar 08, 2018 at 04:06:01AM +, Luis R. Rodriguez wrote: > On Thu, Mar 08, 2018 at 03:16:29AM +, French, Nicholas A. wrote: > > On Wed, Mar 07, 2018 at 07:02:05PM +, Luis R. Rodriguez wrote: > > > On Tue, Mar 06, 2018 at 09:01:10PM +, French, Nicholas A. wrote: > > > > any

[PATCH 3/4] module: Support to show the current enforcement policy

2018-03-07 Thread Jia Zhang
/sys/kernel/security/modsign/enforce gives the result of current enforcement policy of loading module. Signed-off-by: Jia Zhang --- kernel/module.c | 55 +++ 1 file changed, 55 insertions(+) diff --git

[PATCH 4/4] module: Support to disable validity enforcement in runtime

2018-03-07 Thread Jia Zhang
In order to disable the module validity enforcement, writing a PKCS#7 signature corresponding the signed content '0' is required. Given a simple way to archive this: $ echo -n 0 > data $ openssl smime -sign -nocerts -noattr -binary -in data \ -inkey -signer -outform der \ -out data.sig

Re: [PATCH] bloat-o-meter: fix typo in help

2018-03-07 Thread Masahiro Yamada
2018-03-08 10:51 GMT+09:00 Randy Dunlap : > On 03/07/2018 03:39 PM, Matteo Croce wrote: >> On Wed, Feb 14, 2018 at 6:47 PM, Matteo Croce wrote: >>> the bloat-o-meter script has two typos in the help, fix both. >>> >>> Fixes: 192efb7a1f9b ("bloat-o-meter:

[PATCH v2 0/4] modsign enhancement

2018-03-07 Thread Jia Zhang
This patch series allows to disable module validity enforcement in runtime through /sys/kernel/security/modsign/enforce interface. Assuming CONFIG_MODULE_SIG_FORCE=y, here are the instructions to disable the validity enforcement. # cat /sys/kernel/security/modsign/enforce # echo -n 0 > data #

[PATCH 1/4] module: Do not access sig_enforce directly

2018-03-07 Thread Jia Zhang
Call is_module_sig_enforced() instead. Signed-off-by: Jia Zhang --- kernel/module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/module.c b/kernel/module.c index ad2d420..003d0ab 100644 --- a/kernel/module.c +++ b/kernel/module.c @@

linux-next: build failure after merge of the akpm-current tree

2018-03-07 Thread Stephen Rothwell
Hi Andrew, After merging the akpm-current tree, today's linux-next build (arm multi_v7_defconfig) failed like this: `__stack_chk_guard' referenced in section `.text' of arch/arm/boot/compressed/decompress.o: defined in discarded section `.data' of arch/arm/boot/compressed/misc.o

[PATCH AUTOSEL for 4.9 058/190] tcp: remove poll() flakes with FastOpen

2018-03-07 Thread Sasha Levin
From: Eric Dumazet [ Upstream commit 0f9fa831aecfc297b7b45d4f046759bcefcf87f0 ] When using TCP FastOpen for an active session, we send one wakeup event from tcp_finish_connect(), right before the data eventually contained in the received SYNACK is queued to

[PATCH AUTOSEL for 4.9 076/190] openvswitch: Delete conntrack entry clashing with an expectation.

2018-03-07 Thread Sasha Levin
From: Jarno Rajahalme [ Upstream commit cf5d70918877c6a6655dc1e92e2ebb661ce904fd ] Conntrack helpers do not check for a potentially clashing conntrack entry when creating a new expectation. Also, nf_conntrack_in() will check expectations (via init_conntrack()) only if a

[PATCH AUTOSEL for 4.9 089/190] iio: st_pressure: st_accel: Initialise sensor platform data properly

2018-03-07 Thread Sasha Levin
From: Shrirang Bagul [ Upstream commit 7383d44b84c94aaca4bf695a6bd8a69f2295ef1a ] This patch fixes the sensor platform data initialisation for st_pressure and st_accel device drivers. Without this patch, the driver fails to register the sensors when the user

[PATCH AUTOSEL for 4.9 065/190] IB/mlx4: Change vma from shared to private

2018-03-07 Thread Sasha Levin
From: Maor Gottlieb [ Upstream commit ca37a664a8e4e9988b220988ceb4d79e3316f195 ] Anonymous VMA (->vm_ops == NULL) cannot be shared, otherwise it would lead to SIGBUS. Remove the shared flags from the vma after we change it to be anonymous. This is easily reproduced by

[PATCH AUTOSEL for 4.9 034/190] ACPI/processor: Replace racy task affinity logic

2018-03-07 Thread Sasha Levin
From: Thomas Gleixner [ Upstream commit 8153f9ac43897f9f4786b30badc134fcc1a4fb11 ] acpi_processor_get_throttling() requires to invoke the getter function on the target CPU. This is achieved by temporarily setting the affinity of the calling user space thread to the requested

[PATCH AUTOSEL for 4.9 086/190] pNFS: Fix use after free issues in pnfs_do_read()

2018-03-07 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit 6aeafd05eca9bc8ab6b03d7e56d09ffd18190f44 ] The assumption should be that if the caller returns PNFS_ATTEMPTED, then hdr has been consumed, and so we should not be testing hdr->task.tk_status. If the caller returns

[PATCH AUTOSEL for 3.18 37/53] bnx2x: Align RX buffers

2018-03-07 Thread Sasha Levin
From: Scott Wood [ Upstream commit 9b70de6d0266888b3743f03802502e43131043c8 ] The bnx2x driver is not providing proper alignment on the receive buffers it passes to build_skb(), causing skb_shared_info to be misaligned. skb_shared_info contains an atomic, and while PPC

[PATCH AUTOSEL for 3.18 47/53] mmc: avoid removing non-removable hosts during suspend

2018-03-07 Thread Sasha Levin
From: Daniel Drake [ Upstream commit de8dcc3d2c0e08e5068ee1e26fc46415c15e3637 ] The Weibu F3C MiniPC has an onboard AP6255 module, presenting two SDIO functions on a single MMC host (Bluetooth/btsdio and WiFi/brcmfmac), and the mmc layer correctly detects this as

[PATCH AUTOSEL for 3.18 49/53] RDMA/cma: Use correct size when writing netlink stats

2018-03-07 Thread Sasha Levin
From: Parav Pandit [ Upstream commit 7baaa49af3716fb31877c61f59b74d029ce15b75 ] The code was using the src size when formatting the dst. They are almost certainly the same value but it reads wrong. Fixes: ce117ffac2e9 ("RDMA/cma: Export AF_IB statistics") Signed-off-by:

[PATCH AUTOSEL for 3.18 22/53] e1000e: fix timing for 82579 Gigabit Ethernet controller

2018-03-07 Thread Sasha Levin
From: Bernd Faust [ Upstream commit 5313eeccd2d7f486be4e5c7560e3e2be239ec8f7 ] After an upgrade to Linux kernel v4.x the hardware timestamps of the 82579 Gigabit Ethernet Controller are different than expected. The values that are being read are almost four times as big as

[PATCH AUTOSEL for 3.18 46/53] media: [RESEND] media: dvb-frontends: Add delay to Si2168 restart

2018-03-07 Thread Sasha Levin
From: Ron Economos [ Upstream commit 380a6c86457573aa42d27ae11e025eb25941a0b7 ] On faster CPUs a delay is required after the resume command and the restart command. Without the delay, the restart command often returns -EREMOTEIO and the Si2168 does not restart. Note that

[PATCH AUTOSEL for 3.18 34/53] mfd: palmas: Reset the POWERHOLD mux during power off

2018-03-07 Thread Sasha Levin
From: Keerthy [ Upstream commit 85fdaf8eb9bbec1f0f8a52fd5d85659d60738816 ] POWERHOLD signal has higher priority over the DEV_ON bit. So power off will not happen if the POWERHOLD is held high. Hence reset the MUX to GPIO_7 mode to release the POWERHOLD and the DEV_ON bit to

[PATCH AUTOSEL for 3.18 10/53] Input: ar1021_i2c - fix too long name in driver's device table

2018-03-07 Thread Sasha Levin
From: Dmitry Torokhov [ Upstream commit 95123fc43560d6f4a60e74f72836e63cd8848f76 ] The name field in structure i2c_device_id is 20 characters, and we expect it to be NULL-terminated, however we are trying to stuff it with 21 bytes and thus NULL-terminator is lost.

[PATCH AUTOSEL for 3.18 05/53] kprobes/x86: Fix kprobe-booster not to boost far call instructions

2018-03-07 Thread Sasha Levin
From: Masami Hiramatsu [ Upstream commit bd0b90676c30fe640e7ead919b3e38846ac88ab7 ] Fix the kprobe-booster not to boost far call instruction, because a call may store the address in the single-step execution buffer to the stack, which should be modified after single

[PATCH AUTOSEL for 3.18 02/53] perf session: Don't rely on evlist in pipe mode

2018-03-07 Thread Sasha Levin
From: David Carrillo-Cisneros [ Upstream commit 0973ad97c187e06aece61f685b9c3b2d93290a73 ] Session sets a number parameters that rely on evlist. These parameters are not used in pipe-mode and should not be set, since evlist is unavailable. Fix that. Signed-off-by: David

[PATCH AUTOSEL for 4.4 098/101] RDMA/ocrdma: Fix permissions for OCRDMA_RESET_STATS

2018-03-07 Thread Sasha Levin
From: Anton Vasilyev [ Upstream commit 744820869166c8c78be891240cf5f66e8a333694 ] Debugfs file reset_stats is created with S_IRUSR permissions, but ocrdma_dbgfs_ops_read() doesn't support OCRDMA_RESET_STATS, whereas ocrdma_dbgfs_ops_write() supports only OCRDMA_RESET_STATS.

[PATCH AUTOSEL for 3.18 11/53] ACPI/processor: Replace racy task affinity logic

2018-03-07 Thread Sasha Levin
From: Thomas Gleixner [ Upstream commit 8153f9ac43897f9f4786b30badc134fcc1a4fb11 ] acpi_processor_get_throttling() requires to invoke the getter function on the target CPU. This is achieved by temporarily setting the affinity of the calling user space thread to the requested

[PATCH AUTOSEL for 4.4 042/101] Fix driver usage of 128B WQEs when WQ_CREATE is V1.

2018-03-07 Thread Sasha Levin
From: James Smart [ Upstream commit 3f247de750b8dd8f50a2c1390e2a1238790a9dff ] There are two versions of a structure for queue creation and setup that the driver shares with FW. The driver was only treating as version 0. Verify WQ_CREATE with 128B WQEs in V0 and V1. Code

linux-next: Tree for Mar 8

2018-03-07 Thread Stephen Rothwell
Hi all, Changes since 20180307: The sunxi tree gained a build failure so I used the version from next-20180307. The drm tree gained a conflict against the drm-misc-fixes tree. The mfd tree gained a conflict against Linus' tree. The akpm-current tree gained a build failure for which I reverted

[PATCH AUTOSEL for 4.4 054/101] Btrfs: send, fix file hole not being preserved due to inline extent

2018-03-07 Thread Sasha Levin
From: Filipe Manana [ Upstream commit e1cbfd7bf6dabdac561c75d08357571f44040a45 ] Normally we don't have inline extents followed by regular extents, but there's currently at least one harmless case where this happens. For example, when the page size is 4Kb and compression is

[PATCH AUTOSEL for 4.4 044/101] openvswitch: Delete conntrack entry clashing with an expectation.

2018-03-07 Thread Sasha Levin
From: Jarno Rajahalme [ Upstream commit cf5d70918877c6a6655dc1e92e2ebb661ce904fd ] Conntrack helpers do not check for a potentially clashing conntrack entry when creating a new expectation. Also, nf_conntrack_in() will check expectations (via init_conntrack()) only if a

[PATCH AUTOSEL for 4.4 048/101] scsi: mac_esp: Replace bogus memory barrier with spinlock

2018-03-07 Thread Sasha Levin
From: Finn Thain [ Upstream commit 4da2b1eb230ba4ad19b58984dc52e05b1073df5f ] Commit da244654c66e ("[SCSI] mac_esp: fix for quadras with two esp chips") added mac_scsi_esp_intr() to handle the IRQ lines from a pair of on-board ESP chips (a normal shared IRQ did not

[PATCH AUTOSEL for 4.4 052/101] mt7601u: check return value of alloc_skb

2018-03-07 Thread Sasha Levin
From: Pan Bian [ Upstream commit 5fb01e91daf84ad1e50edfcf63116ecbe31e7ba7 ] Function alloc_skb() will return a NULL pointer if there is no enough memory. However, in function mt7601u_mcu_msg_alloc(), its return value is not validated before it is used. This patch fixes it.

[PATCH AUTOSEL for 4.4 050/101] NFS: don't try to cross a mountpount when there isn't one there.

2018-03-07 Thread Sasha Levin
From: NeilBrown [ Upstream commit 99bbf6ecc694dfe0b026e15359c5aa2a60b97a93 ] consider the sequence of commands: mkdir -p /import/nfs /import/bind /import/etc mount --bind / /import/bind mount --make-private /import/bind mount --bind /import/etc /import/bind/etc exportfs -o

[PATCH AUTOSEL for 4.4 047/101] qlcnic: fix unchecked return value

2018-03-07 Thread Sasha Levin
From: Pan Bian [ Upstream commit 91ec701a553cb3de470fd471c6fefe3ad1125455 ] Function pci_find_ext_capability() may return 0, which is an invalid address. In function qlcnic_sriov_virtid_fn(), its return value is used without validation. This may result in invalid memory

Re: linux-next: Signed-off-by missing for commit in the rdma-fixes tree

2018-03-07 Thread Leon Romanovsky
On Thu, Mar 08, 2018 at 04:40:58PM +1100, Stephen Rothwell wrote: > Hi all, > > Commit > > aa0de36a40f4 ("RDMA/mlx5: Fix integer overflow while resizing CQ") > > is missing a Signed-off-by from its author. Doug, something went wrong with your scripts In patchworks it is with SOB and lengthy

[PATCH AUTOSEL for 4.9 094/190] Btrfs: send, fix file hole not being preserved due to inline extent

2018-03-07 Thread Sasha Levin
From: Filipe Manana [ Upstream commit e1cbfd7bf6dabdac561c75d08357571f44040a45 ] Normally we don't have inline extents followed by regular extents, but there's currently at least one harmless case where this happens. For example, when the page size is 4Kb and compression is

[PATCH AUTOSEL for 4.9 096/190] orangefs: do not wait for timeout if umounting

2018-03-07 Thread Sasha Levin
From: Martin Brandenburg [ Upstream commit b5a9d61eebdd0016ccb383b25a5c3d04977a6549 ] When the computer is turned off, all the processes are killed and then all the filesystems are umounted. OrangeFS should not wait for the userspace daemon to come back in that case. This

[PATCH AUTOSEL for 4.9 092/190] rndis_wlan: add return value validation

2018-03-07 Thread Sasha Levin
From: Pan Bian [ Upstream commit 9dc7efd3978aa67ae598129d2a3f240b390ce508 ] Function create_singlethread_workqueue() will return a NULL pointer if there is no enough memory, and its return value should be validated before using. However, in function rndis_wlan_bind(), its

[PATCH AUTOSEL for 4.9 093/190] Btrfs: fix incorrect space accounting after failure to insert inline extent

2018-03-07 Thread Sasha Levin
From: Filipe Manana [ Upstream commit 1c81ba237bcecad9bc885a1ddcf02d725ea38482 ] When using compression, if we fail to insert an inline extent we incorrectly end up attempting to free the reserved data space twice, once through extent_clear_unlock_delalloc(), because we pass

[PATCH AUTOSEL for 4.9 090/190] mt7601u: check return value of alloc_skb

2018-03-07 Thread Sasha Levin
From: Pan Bian [ Upstream commit 5fb01e91daf84ad1e50edfcf63116ecbe31e7ba7 ] Function alloc_skb() will return a NULL pointer if there is no enough memory. However, in function mt7601u_mcu_msg_alloc(), its return value is not validated before it is used. This patch fixes it.

[PATCH AUTOSEL for 4.9 081/190] qlcnic: fix unchecked return value

2018-03-07 Thread Sasha Levin
From: Pan Bian [ Upstream commit 91ec701a553cb3de470fd471c6fefe3ad1125455 ] Function pci_find_ext_capability() may return 0, which is an invalid address. In function qlcnic_sriov_virtid_fn(), its return value is used without validation. This may result in invalid memory

[PATCH AUTOSEL for 4.9 087/190] xprtrdma: Cancel refresh worker during buffer shutdown

2018-03-07 Thread Sasha Levin
From: Chuck Lever [ Upstream commit 9378b274e1eb6925db315e345f48850d2d5d9789 ] Trying to create MRs while the transport is being torn down can cause a crash. Fixes: e2ac236c0b65 ("xprtrdma: Allocate MRs on demand") Signed-off-by: Chuck Lever

[PATCH AUTOSEL for 4.9 044/190] powerpc/64s: Remove SAO feature from Power9 DD1

2018-03-07 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit ca80d5d0a8175c9be04cfbce24180b8f5e0a744b ] Power9 DD1 does not implement SAO. Although it's not widely used, its presence or absence is visible to user space via arch_validate_prot() so it's moderately important that we get the value

[PATCH v3] ssb: use put_device() if device_register fail

2018-03-07 Thread Arvind Yadav
Never directly free @dev after calling device_register(), even if it returned an error! Always use put_device() to give up the reference initialized. Signed-off-by: Arvind Yadav --- changes in v2: Removed kfree() call for @dev. changes in v3:

[PATCH AUTOSEL for 4.9 047/190] iwlwifi: split the handler and the wake parts of the notification infra

2018-03-07 Thread Sasha Levin
From: Emmanuel Grumbach [ Upstream commit 2220fb2960b72915e7fd9da640a4695dceff238c ] The notification infrastructure (iwl_notification_wait_* functions) allows to wait until a list of notifications will come up from the firmware and to run a special handler

Re: [PATCH 2/2] mm: Add kvmalloc_ab_c and kvzalloc_struct

2018-03-07 Thread Julia Lawall
On Wed, 7 Mar 2018, Matthew Wilcox wrote: > On Wed, Mar 07, 2018 at 10:18:21PM +0100, Julia Lawall wrote: > > > Otherwise, yes, please. We could build a coccinelle rule for > > > additional replacements... > > > > A potential semantic patch and the changes it generates are attached > > below.

[PATCH AUTOSEL for 4.9 008/190] vfio/powerpc/spapr_tce: Enforce IOMMU type compatibility check

2018-03-07 Thread Sasha Levin
From: Alexey Kardashevskiy [ Upstream commit 1282ba7fc28dbc66c3f0e4aaafaaa228361d1ae5 ] The existing SPAPR TCE driver advertises both VFIO_SPAPR_TCE_IOMMU and VFIO_SPAPR_TCE_v2_IOMMU types to the userspace and the userspace usually picks the v2. Normally the userspace would

[PATCH AUTOSEL for 4.9 014/190] kprobes/x86: Set kprobes pages read-only

2018-03-07 Thread Sasha Levin
From: Masami Hiramatsu [ Upstream commit d0381c81c2f782fa2131178d11e0cfb23d50d631 ] Set the pages which is used for kprobes' singlestep buffer and optprobe's trampoline instruction buffer to readonly. This can prevent unexpected (or unintended) instruction modification.

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