Re: [PATCH RFC v2 tip/core/rcu] Maintain special bits at bottom of ->dynticks counter

2017-02-13 Thread Paul E. McKenney
On Mon, Feb 13, 2017 at 11:08:55AM -0800, Andy Lutomirski wrote: > On Mon, Feb 13, 2017 at 9:57 AM, Peter Zijlstra wrote: > > On Mon, Feb 13, 2017 at 09:01:04AM -0800, Paul E. McKenney wrote: > >> > I think I've asked this before, but why does this live in the guts of > >> >

Re: Question about DEC Alpha memory ordering

2017-02-13 Thread bob smith
On 2/13/17 1:39 PM, Paul E. McKenney wrote: > can real DEC Alpha hardware end up with both instances of "r1" > having the value 1? I thought this question reminded me of something, so I found this: > https://www.kernel.org/doc/Documentation/memory-barriers.txt and I pasted in the content - David

Re: [PATCH - REGRESSION] mwifiex: don't enable/disable IRQ 0 during suspend/resume

2017-02-13 Thread Rajat Jain
On Fri, Feb 10, 2017 at 1:55 PM, Brian Norris wrote: > If we don't have an out-of-band wakeup IRQ configured through DT (as > most platforms don't), then we fall out of this function with > 'irq_wakeup == 0'. Other code (e.g., mwifiex_disable_wake() and >

Re: [PATCH 4.9 00/60] 4.9.10-stable review

2017-02-13 Thread Guenter Roeck
On Mon, Feb 13, 2017 at 05:03:32AM -0800, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.10 release. > There are 60 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH 4.4 00/20] 4.4.49-stable review

2017-02-13 Thread Guenter Roeck
On Mon, Feb 13, 2017 at 05:04:45AM -0800, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.49 release. > There are 20 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

[PATCH] MAINTAINERS: add tree for modules

2017-02-13 Thread Jessica Yu
Add git tree url for modules. Signed-off-by: Jessica Yu --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index cfff2c9..2ad16c2 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8304,6 +8304,7 @@ F:

Re: [PATCH v2 0/9] sysctl: add and fix proper unsigned int support

2017-02-13 Thread Kees Cook
On Fri, Feb 10, 2017 at 4:36 PM, Luis R. Rodriguez wrote: > On this v2 I've taken Alexey's recommendation and looked at array users > of the proc sysctl interface which complicate the interfece to see if > we can instead just simplify the unsigned int implementation. I could >

Re: [PATCH v2] x86/paravirt: Don't make vcpu_is_preempted() a callee-save function

2017-02-13 Thread Waiman Long
On 02/13/2017 02:42 PM, Waiman Long wrote: > On 02/13/2017 05:53 AM, Peter Zijlstra wrote: >> On Mon, Feb 13, 2017 at 11:47:16AM +0100, Peter Zijlstra wrote: >>> That way we'd end up with something like: >>> >>> asm(" >>> push %rdi; >>> movslq %edi, %rdi; >>> movq __per_cpu_offset(,%rdi,8), %rax;

Re: [PATCH v2] x86/paravirt: Don't make vcpu_is_preempted() a callee-save function

2017-02-13 Thread hpa
On February 13, 2017 2:53:43 AM PST, Peter Zijlstra wrote: >On Mon, Feb 13, 2017 at 11:47:16AM +0100, Peter Zijlstra wrote: >> That way we'd end up with something like: >> >> asm(" >> push %rdi; >> movslq %edi, %rdi; >> movq __per_cpu_offset(,%rdi,8), %rax; >> cmpb $0,

Re: [tip:locking/core] refcount_t: Introduce a special purpose refcount type

2017-02-13 Thread Linus Torvalds
On Mon, Feb 13, 2017 at 10:00 AM, Peter Zijlstra wrote: > > I think Linus' email ended up being private; not much discussion other > than him saying he would like to see this. I ended up reacting to the tipbot email, so I just replied to whoever were on the cc list there, I

Re: [PATCH v2 1/9] sysctl: fix lax sysctl_check_table() sanity check

2017-02-13 Thread Kees Cook
On Fri, Feb 10, 2017 at 4:36 PM, Luis R. Rodriguez wrote: > Commit 7c60c48f58a7 ("sysctl: Improve the sysctl sanity checks") > improved sanity checks considerbly, however the enhancements on > sysctl_check_table() meant adding a functional change so that > only the last table

Re: [PATCH V5 3/4] Move stack parameters for sed_ioctl to prevent oversized stack with CONFIG_KASAN

2017-02-13 Thread Arnd Bergmann
On Mon, Feb 13, 2017 at 6:07 PM, David Laight wrote: > From: Arnd Bergmann >> Sent: 13 February 2017 17:02 > ... >> >> > + ioctl_ptr = memdup_user(arg, _IOC_SIZE(cmd)); >> >> > + if (IS_ERR_OR_NULL(ioctl_ptr)) { >> >> > + ret = PTR_ERR(ioctl_ptr); >> >> > +

Re: [PATCH] checkpatch: add warning on %pk instead of %pK usage

2017-02-13 Thread Joe Perches
(resending including cc's) On Mon, 2017-02-13 at 19:46 +, Roberts, William C wrote: > > -Original Message- > > From: Joe Perches [mailto:j...@perches.com] > > Sent: Friday, February 10, 2017 7:24 PM > > To: Roberts, William C ; linux- > >

RE: [PATCH] scsi: aacraid: fix information leak on hbainfo.driver_name

2017-02-13 Thread Raghava Aditya Renukunta
Hello Colin, > -Original Message- > From: Colin King [mailto:colin.k...@canonical.com] > Sent: Tuesday, February 7, 2017 5:55 AM > To: dl-esc-Aacraid Linux Driver ; James E . J . > Bottomley ; Martin K . Petersen >

Re: [PATCH v2 2/9] sysctl: add proper unsigned int support

2017-02-13 Thread Kees Cook
On Fri, Feb 10, 2017 at 4:36 PM, Luis R. Rodriguez wrote: > Commit e7d316a02f6838 ("sysctl: handle error writing UINT_MAX to u32 > fields") added proc_douintvec() to start help adding support for > unsigned int, this however was only half the work needed, all these > issues are

Re: [PATCH v8 2/2] Add support for OV5647 sensor.

2017-02-13 Thread Vladimir Zapolskiy
Hi Ramiro, On 02/13/2017 09:14 PM, Ramiro Oliveira wrote: > Hi Vladimir, > > Thank you for your feedback. > > On 2/13/2017 12:21 PM, Vladimir Zapolskiy wrote: >> Hello Ramiro, >> >> On 02/13/2017 01:25 PM, Ramiro Oliveira wrote: >>> Modes supported: >>> - 640x480 RAW 8 >>> [snip] >>> +static

Re: [PATCH v2 3/9] sysctl: add unsigned int range support

2017-02-13 Thread Kees Cook
On Fri, Feb 10, 2017 at 4:36 PM, Luis R. Rodriguez wrote: > To keep parity with regular int interfaces provide the an unsigned > int proc_douintvec_minmax() which allows you to specify a range of > allowed valid numbers. > > Adding proc_douintvec_minmax_sysadmin() is easy but

Re: Question about DEC Alpha memory ordering

2017-02-13 Thread Paul E. McKenney
On Mon, Feb 13, 2017 at 08:14:23PM +0100, Tobias Klausmann wrote: > Hi! > > On Mon, 13 Feb 2017, Paul E. McKenney wrote: > > On Mon, Feb 13, 2017 at 01:53:27PM -0500, bob smith wrote: > > > On 2/13/17 1:39 PM, Paul E. McKenney wrote: > > > > can real DEC Alpha hardware end up with both instances

[PATCH v4 1/1] DM: inplace compressed DM target

2017-02-13 Thread Ram Pai
This is a simple DM target supporting inplace compression. Its best suited for SSD. The underlying disk must support 512B sector size. The target only supports 4k sector size. Disk layout: |super|...meta...|..data...| Store unit is 4k (a block). Super is 1 block, which stores meta and data size

[PATCH v4] DM: dm-inplace-compress: inplace compressed DM target

2017-02-13 Thread Ram Pai
This patch provides a generic device-mapper compression device. Originally written by Shaohua Li. https://www.redhat.com/archives/dm-devel/2013-December/msg00143.html I have optimized and hardened the code. Testing: --- This compression block device is tested in the following

Re: [PATCH 2/2] arch/x86: Fix sparse warning symbol not declared

2017-02-13 Thread Thomas Gleixner
On Tue, 14 Feb 2017, Tobin Harding wrote: > On Sun, Feb 12, 2017 at 12:06:47PM +0100, Thomas Gleixner wrote: > > The proper solution is to have a local include file 'purgatory.h' and put > > the declaration there. Include it in both files even if that's not required > > for the ASM file. But that

linux-next: build failure after merge of the net tree

2017-02-13 Thread Stephen Rothwell
Hi all, After merging the net tree, today's linux-next build (powerpc64le perf) failed like this: Warning: tools/include/uapi/linux/bpf.h differs from kernel bpf.c: In function 'bpf_prog_attach': bpf.c:180:6: error: 'union bpf_attr' has no member named 'attach_flags'; did you mean 'map_flags'?

Re: [PATCH] tile: fix build failure

2017-02-13 Thread Stephen Rothwell
Hi Sudip, On Mon, 13 Feb 2017 22:58:40 + Sudip Mukherjee wrote: > > On Tuesday 24 January 2017 04:56 PM, Chris Metcalf wrote: > > On 1/24/2017 11:39 AM, Sudip Mukherjee wrote: > >> From: Sudip Mukherjee > >> > >> The build of tilegx

Re: [PATCH v2 8/9] sched: Don't reinvent the wheel but use existing llist API

2017-02-13 Thread Byungchul Park
On Mon, Feb 13, 2017 at 04:52:30PM +0100, Oleg Nesterov wrote: > On 02/13, Peter Zijlstra wrote: > > > > On Mon, Feb 13, 2017 at 04:21:08PM +0900, Byungchul Park wrote: > > > + llist_for_each_entry(p, llist, wake_entry) > > > + ttwu_do_activate(rq, p, p->sched_remote_wakeup ? WF_MIGRATED :

[PATCH] MIPS: ath79: Use the IRQ based GPIO key driver for the buttons

2017-02-13 Thread Alban
From: Alban Bedel Now that the GPIO driver support interrupts we don't need to poll the buttons. Signed-off-by: Alban Bedel --- arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts | 3 +-- arch/mips/boot/dts/qca/ar9331_dpt_module.dts | 5 ++---

Re: [PATCH 2/2] arch/x86: Fix sparse warning symbol not declared

2017-02-13 Thread Tobin Harding
On Sun, Feb 12, 2017 at 12:06:47PM +0100, Thomas Gleixner wrote: > On Sun, 12 Feb 2017, Tobin C. Harding wrote: > > > This patch adds function declaration in order to quiet sparse symbol > > not declared warning. > > Same comment vs. 'This patch' as before. Hint, we already know that this is >

Re: [WIP PATCHSET 0/4] WIP branch for bfq-mq

2017-02-13 Thread Paolo Valente
> Il giorno 10 feb 2017, alle ore 20:49, Paolo Valente > ha scritto: > >> >> Il giorno 10 feb 2017, alle ore 19:13, Bart Van Assche >> ha scritto: >> >> On 02/10/2017 08:49 AM, Paolo Valente wrote: $ grep '^C.*_MQ_' .config

Re: [RFC PATCH 01/33] irqchip/gic-v3: Add redistributor iterator

2017-02-13 Thread Shanker Donthineni
Hi Marc, On 01/17/2017 04:20 AM, Marc Zyngier wrote: In order to discover the VLPI properties, we need to iterate over the redistributor regions. As we already have code that does this, let's factor it out and make it slightly more generic. Signed-off-by: Marc Zyngier

Re: [PATCH BUGFIX] block: make elevator_get robust against cross blk/blk-mq choice

2017-02-13 Thread Bart Van Assche
On Mon, 2017-02-13 at 22:01 +0100, Paolo Valente wrote: > -static struct elevator_type *elevator_get(const char *name, bool try_loading) > +static struct elevator_type *elevator_get(const char *name, bool try_loading, > + bool mq_ops) Please choose a better

[PATCH v5 1/3] phy: core: Add support for clock and reset to the phy core

2017-02-13 Thread Alban
From: Alban Bedel Signed-off-by: Alban Bedel --- drivers/phy/phy-core.c | 48 include/linux/phy/phy.h | 4 2 files changed, 52 insertions(+) diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c index

[PATCH v5 2/3] phy: Add a driver for the ATH79 USB phy

2017-02-13 Thread Alban
From: Alban Bedel The ATH79 USB phy is very simple, it only have a reset. On some SoC a second reset is used to force the phy in suspend mode regardless of the USB controller status. Signed-off-by: Alban Bedel --- Changelog: v2: * Rebased on the simple PHY driver

[PATCH v5 3/3] MIPS: ath79: Fix the USB PHY reset names

2017-02-13 Thread Alban
From: Alban Bedel The binding for the USB PHY went thru before the driver. However the new version of the driver now use the PHY core support for reset, and this expect the reset to be named "phy". So remove the "usb-" prefix from the the reset names. Signed-off-by: Alban Bedel

[ANNOUNCE] 3.12.70-rt94

2017-02-13 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.12.70-rt94 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v3.12-rt Head SHA1: bc92224d9c0e616125b2bcda8be5c7d1d35a612e Or to build 3.12.70-rt94

Re: [PATCH v2 8/9] sched: Don't reinvent the wheel but use existing llist API

2017-02-13 Thread Byungchul Park
On Mon, Feb 13, 2017 at 11:04:57AM +0100, Peter Zijlstra wrote: > On Mon, Feb 13, 2017 at 04:21:08PM +0900, Byungchul Park wrote: > > Although llist provides proper APIs, they are not used. Make them used. > > > > Signed-off-by: Byungchul Park > > --- > >

Re: [PATCH v2 5/9] test_sysctl: add generic script to expand on tests

2017-02-13 Thread Kees Cook
On Fri, Feb 10, 2017 at 4:36 PM, Luis R. Rodriguez wrote: > This adds a generic script to let us more easily add more tests > cases. Since we really have only two types of tests cases just > fold them into the one file. Each test unit is now identified > into its separate

[PATCH v2] MIPS: Allow compressed images to be loaded at any address

2017-02-13 Thread Alban
From: Alban Bedel Compressed images (vmlinuz.bin) have to be loaded at a specific address that differ from the address normaly used for vmlinux.bin. This is because the decompressor just write its output at the address vmlinux.bin should be loaded at, and it shouldn't overwrite

[PATCH 02/15] staging: rtl8192u: Adding space after struct definition

2017-02-13 Thread simran singhal
Fixes checkpatch.pl warning: WARNING: missing space after struct definition Signed-off-by: simran singhal --- drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: Question about DEC Alpha memory ordering

2017-02-13 Thread Paul E. McKenney
On Mon, Feb 13, 2017 at 04:06:21PM -0500, Alan Stern wrote: > On Mon, 13 Feb 2017, Paul E. McKenney wrote: > > > On Mon, Feb 13, 2017 at 08:14:23PM +0100, Tobias Klausmann wrote: > > > Hi! > > > > > > On Mon, 13 Feb 2017, Paul E. McKenney wrote: > > > > On Mon, Feb 13, 2017 at 01:53:27PM -0500,

Re: Please turn "Cannot use CONFIG_STACK_VALIDATION" into build error

2017-02-13 Thread Josh Poimboeuf
On Mon, Feb 13, 2017 at 01:31:32PM -0800, Marc MERLIN wrote: > Anyway, after not finding it in xconfig, I editted .config, and did: > # CONFIG_STACK_VALIDATION is not set > save .config > and the next build re-enabled the option. > That's what caught me by surprise. Did I do something wrong, or is

Re: [PATCH v2 7/9] test_sysctl: add simple proc_dointvec() case

2017-02-13 Thread Kees Cook
On Fri, Feb 10, 2017 at 4:36 PM, Luis R. Rodriguez wrote: > Test against a simple proc_dointvec() case. While at it, add > a test against INT_MAX. Make sure INT_MAX works, and INT_MAX+1 > will fail. Also test negative values work. > > Signed-off-by: Luis R. Rodriguez

Re: [PATCH v2] x86/paravirt: Don't make vcpu_is_preempted() a callee-save function

2017-02-13 Thread Waiman Long
On 02/13/2017 03:06 PM, h...@zytor.com wrote: > On February 13, 2017 2:53:43 AM PST, Peter Zijlstra > wrote: >> On Mon, Feb 13, 2017 at 11:47:16AM +0100, Peter Zijlstra wrote: >>> That way we'd end up with something like: >>> >>> asm(" >>> push %rdi; >>> movslq %edi, %rdi;

Re: [PATCH] /proc/kcore: Update physical address for kcore ram and text

2017-02-13 Thread Kees Cook
On Mon, Jan 30, 2017 at 11:00 AM, Pratyush Anand wrote: > CCing Andrew and Kees for their review comments. > > > On Wednesday 25 January 2017 10:14 AM, Pratyush Anand wrote: >> Currently all the p_paddr of PT_LOAD headers are assigned to 0, which is >> not true and could be

Re: [PATCH v2] x86/paravirt: Don't make vcpu_is_preempted() a callee-save function

2017-02-13 Thread Waiman Long
On 02/13/2017 04:52 PM, Peter Zijlstra wrote: > On Mon, Feb 13, 2017 at 03:12:45PM -0500, Waiman Long wrote: >> On 02/13/2017 02:42 PM, Waiman Long wrote: >>> On 02/13/2017 05:53 AM, Peter Zijlstra wrote: On Mon, Feb 13, 2017 at 11:47:16AM +0100, Peter Zijlstra wrote: > That way we'd end

[ANNOUNCE] 3.10.104-rt118

2017-02-13 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.10.104-rt118 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v3.10-rt Head SHA1: 1aa9282631e195c26f9cb97222a2d85bff3a6870 Or to build 3.10.104-rt118

Re: [PATCH 1/2] nvmem: Add driver for the i.MX IIM

2017-02-13 Thread kbuild test robot
Hi Michael, [auto build test ERROR on linus/master] [also build test ERROR on v4.10-rc8 next-20170213] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Sascha-Hauer/nvmem-Add-driver-for-the-i-MX

Re: [PATCH v5 7/8] thunderbolt: Power down controller when idle

2017-02-13 Thread Bjorn Helgaas
On Sun, Feb 12, 2017 at 05:31:30PM +0100, Lukas Wunner wrote: > On Sat, Jan 28, 2017 at 05:32:37PM -0600, Bjorn Helgaas wrote: > > On Sun, Jan 15, 2017 at 09:03:45PM +0100, Lukas Wunner wrote: > > > +#define pr_fmt(fmt) KBUILD_MODNAME " %s: " fmt, dev_name(dev) > [...] > > > + /* prevent

Re: [PATCH 07/10] ARM: davinci: fix a whitespace error

2017-02-13 Thread Kevin Hilman
Kevin Hilman writes: > Bartosz Golaszewski writes: > >> There's a stray tab in da850_vpif_legacy_init(). Remove it. >> >> Signed-off-by: Bartosz Golaszewski > > Folding into the original, Looks like the version in

[PATCH BUGFIX] attempt to fix wrong scheduler selection

2017-02-13 Thread Paolo Valente
Hi, if, at boot, a legacy I/O scheduler is chosen for a device using blk-mq, or, viceversa, a blk-mq scheduler is chosen for a device using blk, then that scheduler is set and initialized without any check, driving the system into an inconsistent state. The purpose of this message is, first, to

Re: [PATCH 02/10] ARM: dts: da850-evm: fix whitespace errors

2017-02-13 Thread Kevin Hilman
Kevin Hilman writes: > Bartosz Golaszewski writes: > >> Signed-off-by: Bartosz Golaszewski > > I'll fold this one into the original since it's not yet merged. Oops, Sekhar has already merged this one to his v4.11/dt

Re: [PATCH V2] audit: log module name on init_module

2017-02-13 Thread Paul Moore
On Sat, Feb 4, 2017 at 1:10 PM, Richard Guy Briggs wrote: > This adds a new auxiliary record MODULE_INIT to the SYSCALL event. > > We get finit_module for free since it made most sense to hook this in to > load_module(). > > https://github.com/linux-audit/audit-kernel/issues/7 >

Re: [PATCH v4 1/2] procfs: use an enum for possible hidepid values

2017-02-13 Thread Kees Cook
On Mon, Jan 16, 2017 at 5:23 AM, Djalal Harouni wrote: > From: Lafcadio Wluiki > > Previously, the hidepid parameter was checked by comparing literal > integers 0, 1, 2. Let's add a proper enum for this, to make the checking > more expressive: > > 0 →

Re: [PATCH v2] x86/paravirt: Don't make vcpu_is_preempted() a callee-save function

2017-02-13 Thread hpa
On February 13, 2017 1:52:20 PM PST, Peter Zijlstra wrote: >On Mon, Feb 13, 2017 at 03:12:45PM -0500, Waiman Long wrote: >> On 02/13/2017 02:42 PM, Waiman Long wrote: >> > On 02/13/2017 05:53 AM, Peter Zijlstra wrote: >> >> On Mon, Feb 13, 2017 at 11:47:16AM +0100, Peter

Re: [PATCH] device-dax: don't set kobj parent during cdev init

2017-02-13 Thread Logan Gunthorpe
Hey, I like the interface. It's just Greg that needs to comment on whether using the kobj.parent for this purpose is actually sane. That was his argument from the beginning. Logan On 13/02/17 01:47 PM, Dan Williams wrote: > On Sat, Feb 11, 2017 at 9:42 PM, Logan Gunthorpe

Re: [WIP PATCHSET 0/4] WIP branch for bfq-mq

2017-02-13 Thread Bart Van Assche
On Mon, 2017-02-13 at 22:07 +, Bart Van Assche wrote: > On Mon, 2017-02-13 at 22:07 +0100, Paolo Valente wrote: > > but what do you think about trying this fix? > > Sorry but with ... the same server I used for the previous test still > didn't boot up properly. A screenshot is available at >

Re: Please turn "Cannot use CONFIG_STACK_VALIDATION" into build error

2017-02-13 Thread Jessica Yu
+++ Josh Poimboeuf [13/02/17 12:41 -0600]: On Mon, Feb 13, 2017 at 12:07:09AM -0800, Marc MERLIN wrote: Hi Josh, I'll start with the story as to why. i've lost more hours than I care to list, because I was unable to build the virtualbox kernel driver with newer kernels. Sadly, it gives no

Re: [PATCH v2 4/9] test_sysctl: add dedicated proc sysctl test driver

2017-02-13 Thread Kees Cook
On Fri, Feb 10, 2017 at 4:36 PM, Luis R. Rodriguez wrote: > Although we have had tools/testing/selftests/sysctl/ with two > test cases these use existing kernel sysctl interfaces. We want > to expand test coverage, we can't just be looking for random > safe production values to

Re: [PATCH v4 0/3] Miscellaneous fixes for BPF (perf tree)

2017-02-13 Thread Arnaldo Carvalho de Melo
Em Mon, Feb 13, 2017 at 09:42:31AM +0800, Wangnan (F) escreveu: > On 2017/2/9 4:27, Mickaël Salaün wrote: > >Mickaël Salaün (3): > > samples/bpf: Ignore already processed ELF sections > > samples/bpf: Reset global variables > > samples/bpf: Add missing header > > > > samples/bpf/bpf_load.c

Re: [PATCH] device-dax: don't set kobj parent during cdev init

2017-02-13 Thread Dan Williams
On Sat, Feb 11, 2017 at 9:42 PM, Logan Gunthorpe wrote: > On 11/02/17 11:58 AM, Dan Williams wrote: >> Also when using an embedded cdev how would you recommend avoiding this >> problem? > > I don't know. Hopefully, Greg has a good idea. But it sounds like a > general problem

[PATCH BUGFIX] block: make elevator_get robust against cross blk/blk-mq choice

2017-02-13 Thread Paolo Valente
If, at boot, a legacy I/O scheduler is chosen for a device using blk-mq, or, viceversa, a blk-mq scheduler is chosen for a device using blk, then that scheduler is set and initialized without any check, driving the system into an inconsistent state. This commit addresses this issue by letting

Re: Question about DEC Alpha memory ordering

2017-02-13 Thread Alan Stern
On Mon, 13 Feb 2017, Paul E. McKenney wrote: > On Mon, Feb 13, 2017 at 08:14:23PM +0100, Tobias Klausmann wrote: > > Hi! > > > > On Mon, 13 Feb 2017, Paul E. McKenney wrote: > > > On Mon, Feb 13, 2017 at 01:53:27PM -0500, bob smith wrote: > > > > On 2/13/17 1:39 PM, Paul E. McKenney wrote: > >

Re: [PATCH 2/2 v4] cpufreq: qoriq: Don't look at clock implementation details

2017-02-13 Thread Rafael J. Wysocki
On Mon, Feb 13, 2017 at 4:30 AM, wrote: > From: Tang Yuantian > > Get the CPU clock's potential parent clocks from the clock interface > itself, rather than manually parsing the clocks property to find a > phandle, looking at the clock-names

Re: Please turn "Cannot use CONFIG_STACK_VALIDATION" into build error

2017-02-13 Thread Marc MERLIN
On Mon, Feb 13, 2017 at 12:41:06PM -0600, Josh Poimboeuf wrote: > Hm, that doesn't sound right. Nothing automatically enables > CONFIG_STACK_VALIDATION. It should be disabled unless manually enabled. > Maybe you got it confused with CONFIG_HAVE_STACK_VALIDATION, which is > always enabled? I

Re: [PATCH] Make EN2 pin optional in the TRF7970A driver

2017-02-13 Thread Rob Herring
On Mon, Feb 13, 2017 at 12:38 AM, Heiko Schocher wrote: > Hello Rob, > > > Am 10.02.2017 um 16:51 schrieb Rob Herring: >> >> On Tue, Feb 07, 2017 at 06:22:04AM +0100, Heiko Schocher wrote: >>> >>> From: Guan Ben >>> >>> Make the EN2 pin optional. This is

Re: audit: log module name on init_module

2017-02-13 Thread Jessica Yu
+++ Paul Moore [13/02/17 16:20 -0500]: On Sat, Feb 4, 2017 at 1:10 PM, Richard Guy Briggs wrote: This adds a new auxiliary record MODULE_INIT to the SYSCALL event. We get finit_module for free since it made most sense to hook this in to load_module().

Re: Please turn "Cannot use CONFIG_STACK_VALIDATION" into build error

2017-02-13 Thread Marc MERLIN
On Mon, Feb 13, 2017 at 04:00:02PM -0600, Josh Poimboeuf wrote: > On Mon, Feb 13, 2017 at 01:31:32PM -0800, Marc MERLIN wrote: > > Anyway, after not finding it in xconfig, I editted .config, and did: > > # CONFIG_STACK_VALIDATION is not set > > save .config > > and the next build re-enabled the

Re: [RFC PATCH 10/33] irqchip/gic-v4-its: Allow use of indirect VCPU tables

2017-02-13 Thread Shanker Donthineni
Hi Marc, On 01/17/2017 04:20 AM, Marc Zyngier wrote: The VCPU tables can be quite sparse as well, and it makes sense to use indirect tables as well if possible. The VCPU table has maximum of 2^16 entries as compared to 2^32 entries in device table. ITS hardware implementations may not support

Re: net/dccp: use-after-free in dccp_feat_activate_values

2017-02-13 Thread Cong Wang
On Mon, Feb 13, 2017 at 11:19 AM, Andrey Konovalov wrote: > Hi, > > I've got the following error report while fuzzing the kernel with syzkaller. > > On commit 926af6273fc683cd98cd0ce7bf0d04a02eed6742. > > A reproducer and .config are attached. > Note, that it takes quite

Re: [PATCH v2] cciss: switch to pci_irq_alloc_vectors

2017-02-13 Thread Jens Axboe
On 02/07/2017 04:13 PM, Christoph Hellwig wrote: > Simple cleanup to use the new APIs. Added for 4.11. -- Jens Axboe

[PATCH 01/15] staging: rtl8192u: fixing white space issue

2017-02-13 Thread simran singhal
Fix the following checkpatch.pl error and warnings: WARNING: please, no space before tabs Signed-off-by: simran singhal --- drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [RFC PATCH 06/33] irqchip/gic-v3-its: Add probing for VLPI properties

2017-02-13 Thread Shanker Donthineni
On 01/17/2017 04:20 AM, Marc Zyngier wrote: Add the probing code for the ITS VLPI support. This includes configuring the ITS number if not supporting the single VMOVP command feature. Signed-off-by: Marc Zyngier --- drivers/irqchip/irq-gic-v3-its.c | 47

Re: [PATCH v2] x86/paravirt: Don't make vcpu_is_preempted() a callee-save function

2017-02-13 Thread Peter Zijlstra
On Mon, Feb 13, 2017 at 12:06:44PM -0800, h...@zytor.com wrote: > >Maybe: > > > >movsql %edi, %rax; > >movq __per_cpu_offset(,%rax,8), %rax; > >cmpb $0, %[offset](%rax); > >setne %al; > > > >? > > We could kill the zero or sign extend by changing the calling > interface to pass an unsigned long

Re: [PATCH v2] x86/paravirt: Don't make vcpu_is_preempted() a callee-save function

2017-02-13 Thread hpa
On February 13, 2017 1:52:20 PM PST, Peter Zijlstra wrote: >On Mon, Feb 13, 2017 at 03:12:45PM -0500, Waiman Long wrote: >> On 02/13/2017 02:42 PM, Waiman Long wrote: >> > On 02/13/2017 05:53 AM, Peter Zijlstra wrote: >> >> On Mon, Feb 13, 2017 at 11:47:16AM +0100, Peter

Re: [PATCH v2 9/9] test_sysctl: test against int proc_dointvec() array support

2017-02-13 Thread Kees Cook
On Fri, Feb 10, 2017 at 4:36 PM, Luis R. Rodriguez wrote: > Add a few initial respective tests for an array: > > o Echoing values separated by spaces works > o Echoing only first elements will set first elements > o Confirm PAGE_SIZE limit still applies even if an array

Re: [WIP PATCHSET 0/4] WIP branch for bfq-mq

2017-02-13 Thread Bart Van Assche
On Mon, 2017-02-13 at 22:07 +0100, Paolo Valente wrote: > but what do you think about trying this fix? Sorry but with ... the same server I used for the previous test still didn't boot up properly. A screenshot is available at https://goo.gl/photos/Za9QVGCNe2BJBwxVA. > Otherwise, if you have no

Re: [PATCH v2] x86/paravirt: Don't make vcpu_is_preempted() a callee-save function

2017-02-13 Thread hpa
On February 13, 2017 2:34:01 PM PST, Waiman Long wrote: >On 02/13/2017 04:52 PM, Peter Zijlstra wrote: >> On Mon, Feb 13, 2017 at 03:12:45PM -0500, Waiman Long wrote: >>> On 02/13/2017 02:42 PM, Waiman Long wrote: On 02/13/2017 05:53 AM, Peter Zijlstra wrote: > On

Re: [PATCH] tile: fix build failure

2017-02-13 Thread Sudip Mukherjee
On Tuesday 24 January 2017 04:56 PM, Chris Metcalf wrote: On 1/24/2017 11:39 AM, Sudip Mukherjee wrote: From: Sudip Mukherjee The build of tilegx allmodconfig was failing with errors like: ../arch/tile/include/asm/div64.h:5:15: error: unknown type name 'u64'

Re: Question about DEC Alpha memory ordering

2017-02-13 Thread Paul E. McKenney
On Tue, Feb 14, 2017 at 08:23:34AM +1300, Michael Cree wrote: > Hi Paul, > > On Mon, Feb 13, 2017 at 11:09:31AM -0800, Paul E. McKenney wrote: > > On Mon, Feb 13, 2017 at 01:53:27PM -0500, bob smith wrote: > > > On 2/13/17 1:39 PM, Paul E. McKenney wrote: > > > > can real DEC Alpha hardware end

[PATCH] PM / wakeirq: report a wakeup_event on dedicated wekup irq

2017-02-13 Thread Tony Lindgren
From: Grygorii Strashko There are two reasons for reporting wakeup event when dedicated wakeup IRQ is triggered: - wakeup events accounting, so proper statistical data will be displayed in sysfs and debugfs; - there are small window when System is entering suspend

Re: [WIP PATCHSET 0/4] WIP branch for bfq-mq

2017-02-13 Thread Paolo Valente
> Il giorno 07 feb 2017, alle ore 18:24, Paolo Valente > ha scritto: > > Hi, > > I have finally pushed here [1] the current WIP branch of bfq for > blk-mq, which I have tentatively named bfq-mq. > > This branch *IS NOT* meant for merging into mainline and contain

[PATCH 03/15] staging: rtl8192u: Adding space after enum and struct definition

2017-02-13 Thread simran singhal
Fixes checkpatch.pl warning: WARNING: missing space after struct definition WARNING: missing space after enum definition Signed-off-by: simran singhal --- drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h | 38 - 1 file changed, 19 insertions(+),

Re: [RFC PATCH 02/33] irqchip/gic-v3: Add VLPI/DirectLPI discovery

2017-02-13 Thread Shanker Donthineni
On 01/17/2017 04:20 AM, Marc Zyngier wrote: Add helper functions that probe for VLPI and DirectLPI properties. Signed-off-by: Marc Zyngier --- drivers/irqchip/irq-gic-v3.c | 22 ++ include/linux/irqchip/arm-gic-v3.h | 3 +++ 2 files

Re: [PATCH v3 0/2] iov_iter: allow iov_iter_get_pages_alloc to allocate more pages per call

2017-02-13 Thread Linus Torvalds
On Mon, Feb 13, 2017 at 1:56 AM, Steve Capper wrote: > > Okay so looking at what we have for access_ok(.) on arm64, my > understanding is that we perform a 65-bit add/compare (in assembler) to > see whether or not the range is below the current_thread_info->addr_limit. >

Re: net: BUG in __skb_gso_segment

2017-02-13 Thread Eric Dumazet
On Mon, Feb 13, 2017 at 11:54 AM, Andrey Konovalov wrote: > Hi, > > I've got the following error report while fuzzing the kernel with syzkaller. > > A reproducer and .config are attached. > > On commit 926af6273fc683cd98cd0ce7bf0d04a02eed6742. > > kernel BUG at

Re: [PATCH] kernel: ksysfs: add __ro_after_init to bin_attribute structure

2017-02-13 Thread Kees Cook
On Sat, Feb 11, 2017 at 11:06 AM, Bhumika Goyal wrote: > The object notes_attr of type bin_attribute is not modified after > getting initailized by ksysfs_init. Apart from initialization in > ksysfs_init it is also passed as an argument to the function > sysfs_create_bin_file

Re: [PATCHv3] x86/selftests: add clobbers for int80 on x86_64

2017-02-13 Thread hpa
On February 13, 2017 11:06:04 AM PST, Andy Lutomirski wrote: >On Mon, Feb 13, 2017 at 2:13 AM, Dmitry Safonov > wrote: >> Kernel erases R8..R11 registers prior returning to userspace >> from int80: https://lkml.org/lkml/2009/10/1/164 >> >> GCC can

Re: [WIP PATCHSET 0/4] WIP branch for bfq-mq

2017-02-13 Thread Jens Axboe
On 02/13/2017 02:09 PM, Paolo Valente wrote: > >> Il giorno 07 feb 2017, alle ore 18:24, Paolo Valente >> ha scritto: >> >> Hi, >> >> I have finally pushed here [1] the current WIP branch of bfq for >> blk-mq, which I have tentatively named bfq-mq. >> >> This branch

Re: [PATCH BUGFIX] block: make elevator_get robust against cross blk/blk-mq choice

2017-02-13 Thread Jens Axboe
On 02/13/2017 03:09 PM, Omar Sandoval wrote: > On Mon, Feb 13, 2017 at 10:01:07PM +0100, Paolo Valente wrote: >> If, at boot, a legacy I/O scheduler is chosen for a device using blk-mq, >> or, viceversa, a blk-mq scheduler is chosen for a device using blk, then >> that scheduler is set and

Re: [PATCH BUGFIX] block: make elevator_get robust against cross blk/blk-mq choice

2017-02-13 Thread Jens Axboe
On 02/13/2017 03:28 PM, Jens Axboe wrote: > On 02/13/2017 03:09 PM, Omar Sandoval wrote: >> On Mon, Feb 13, 2017 at 10:01:07PM +0100, Paolo Valente wrote: >>> If, at boot, a legacy I/O scheduler is chosen for a device using blk-mq, >>> or, viceversa, a blk-mq scheduler is chosen for a device using

Re: [PATCH v3 3/3] Bluetooth: hidp: fix possible might sleep error in hidp_session_thread

2017-02-13 Thread Dmitry Torokhov
Hi Jeffy, On Sun, Feb 12, 2017 at 8:12 PM, Jeffy Chen wrote: > It looks like hidp_session_thread has same pattern as the issue reported in > old rfcomm: > > while (1) { > set_current_state(TASK_INTERRUPTIBLE); > if (condition) >

Re: [PATCH BUGFIX] block: make elevator_get robust against cross blk/blk-mq choice

2017-02-13 Thread Omar Sandoval
On Mon, Feb 13, 2017 at 10:01:07PM +0100, Paolo Valente wrote: > If, at boot, a legacy I/O scheduler is chosen for a device using blk-mq, > or, viceversa, a blk-mq scheduler is chosen for a device using blk, then > that scheduler is set and initialized without any check, driving the > system into

Re: [PATCHv2] platform/x86: asus-wireless: Use per-HID HSWC parameters

2017-02-13 Thread Andy Shevchenko
On Tue, Feb 7, 2017 at 11:45 PM, João Paulo Rechi Vita wrote: > Some Asus machines use 0x4/0x5 as their LED on/off values, while others > use 0x0/0x1, as shown in the DSDT excerpts below. Luckily it seems this > behavior is tied to different HIDs, after looking at 44 DSDTs from

Re: [PATCH v2] MIPS: Allow compressed images to be loaded at any address

2017-02-13 Thread James Hogan
Hi Alban, On Mon, Feb 13, 2017 at 09:38:08PM +0100, Alban wrote: > From: Alban Bedel > > Compressed images (vmlinuz.bin) have to be loaded at a specific > address that differ from the address normaly used for vmlinux.bin. > This is because the decompressor just write its output

Re: [PATCH] checkpatch: add warning on %pk instead of %pK usage

2017-02-13 Thread Joe Perches
(Adding back the cc's) On Mon, 2017-02-13 at 21:28 +, Roberts, William C wrote: > > > No worries. > > No idea why it doesn't work for you. > > Maybe the hand applying was somehow > > faulty? > > > > The attached is on top of -next so it does have offsets on Linus' tree, but > > it seems >

Re: [PATCH v2] platform/x86: intel_pmc_ipc: read s0ix residency API

2017-02-13 Thread Andy Shevchenko
On Mon, Feb 13, 2017 at 2:02 PM, Shanth Murthy wrote: > This patch adds a new API to indicate S0ix residency in usec. It utilizes > the PMC Global Control Registers (GCR) to read deep and shallow > S0ix residency. > > PMC MMIO resources: > o Lower 4kB: IPC1 (PMC

Re: [PATCH] platform/x86: intel_pmc_ipc: Add APL PMC PCI Id

2017-02-13 Thread Andy Shevchenko
On Mon, Feb 13, 2017 at 12:41 PM, Rajneesh Bhardwaj wrote: > This patch adds the PCI Device id for Power Management Controller on Intel > Apollo Lake platforms. > > Intel PMC IPC Driver loads as a platform driver on Apollo Lake platforms > since Intel BIOS hides the

[ANNOUNCE] 4.4.47-rt59

2017-02-13 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 4.4.47-rt59 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v4.4-rt Head SHA1: 80398f6fc8e4725cd888477650b5f8a4d441b772 Or to build 4.4.47-rt59

Re: [PATCH v2] x86/paravirt: Don't make vcpu_is_preempted() a callee-save function

2017-02-13 Thread Peter Zijlstra
On Mon, Feb 13, 2017 at 05:24:36PM -0500, Waiman Long wrote: > >> movsql %edi, %rax; > >> movq __per_cpu_offset(,%rax,8), %rax; > >> cmpb $0, %[offset](%rax); > >> setne %al; > I have thought of that too. However, the goal is to eliminate memory > read/write from/to stack. Eliminating a register

[ANNOUNCE] 3.18.47-rt52

2017-02-13 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.18.47-rt52 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v3.18-rt Head SHA1: f5cd67daa1a9e2f3be2c70e715e50b03c8dd0df1 Or to build 3.18.47-rt52

[ANNOUNCE] 4.1.38-rt45

2017-02-13 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 4.1.38-rt45 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v4.1-rt Head SHA1: 14ff6b10ad521c0bece3d0dc909c6563e37383e4 Or to build 4.1.38-rt45

Re: [PATCH V8 06/10] acpi: apei: panic OS with fatal error status block

2017-02-13 Thread Baicar, Tyler
Hello James, On 2/9/2017 3:48 AM, James Morse wrote: Hi Jonathan, Tyler, On 01/02/17 17:16, Tyler Baicar wrote: From: "Jonathan (Zhixiong) Zhang" Even if an error status block's severity is fatal, the kernel does not honor the severity level and panic. With the

  1   2   3   4   5   6   7   8   9   10   >