Re: Racy manipulation of task_struct->flags in cgroups code causes hard to reproduce kernel panics

2014-09-20 Thread Tetsuo Handa
Tejun Heo wrote: > Hello, > > On Sat, Sep 20, 2014 at 01:55:54PM +0800, Zefan Li wrote: > > > Then, what made current->flags to unexpectedly preserve PF_USED_MATH flag? > > > The user is running cgrulesengd process in order to utilize cpuset cgroup. > > > Thus, cpuset_update_task_spread_flag() is

Re: [PATCH 6/7] sched: Delete rq::skip_clock_update == -1

2014-09-20 Thread Mike Galbraith
On Sat, 2014-09-20 at 21:01 +0200, Peter Zijlstra wrote: > On Sat, Sep 20, 2014 at 08:51:46PM +0400, Kirill Tkhai wrote: > > From: Kirill Tkhai > > > > Idle class task is always queued, so we can safely remove "-1" case here. > > Tag you're it :-) > > https://lkml.org/lkml/2014/4/8/295 Maybe

Re: [PATCH 3/3] f2fs: fix roll-forward missing scenarios

2014-09-20 Thread Jaegeuk Kim
On Sun, Sep 21, 2014 at 07:22:32AM +0800, Huang Ying wrote: > On Sat, 2014-09-20 at 09:23 -0700, Jaegeuk Kim wrote: > > On Thu, Sep 18, 2014 at 09:04:11PM +0800, huang ying wrote: > > > On Thu, Sep 18, 2014 at 1:51 PM, Jaegeuk Kim wrote: > > > > > > > We can summarize the roll forward recovery

[PATCH 2/3] cap1106: support for active-high interrupt option

2014-09-20 Thread Matt Ranostay
Some applications need to use the active-high push-pull interrupt option. This allows it be enabled in the device tree child node. Signed-off-by: Matt Ranostay --- drivers/input/keyboard/cap1106.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/input/keyboard/cap1106.c

[PATCH 1/3] cap1106: Add support for various cap11xx devices

2014-09-20 Thread Matt Ranostay
Several other variants of the cap11xx device exists with a varying number of capacitance detection channels. Add support for creating the channels dynamically. Signed-off-by: Matt Ranostay --- drivers/input/keyboard/cap1106.c | 54 +++- 1 file changed, 26

[PATCH 3/3] dt: cap1106 active-high property addition

2014-09-20 Thread Matt Ranostay
Documenting the microchip,active-high property for interrupt pin behavior. Signed-off-by: Matt Ranostay --- Documentation/devicetree/bindings/input/cap1106.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/input/cap1106.txt

[PATCH 0/3] cap1106: add support for cap11xx variants

2014-09-20 Thread Matt Ranostay
These patches enable using cap11xx devices that have different number of capacitance channels, and using active-high on the interrupt output. Matt Ranostay (3): cap1106: Add support for various cap11xx devices cap1106: support for active-high interrupt option dt: cap1106 active-high

[PATCH] [sched] Clean up some typos and grammatical errors in code/comments

2014-09-20 Thread Zhihui Zhang
Well, the subject line says it all. Signed-off-by: Zhihui Zhang --- kernel/sched/core.c | 4 ++-- kernel/sched/fair.c | 6 +++--- kernel/sched/sched.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index ec1a286..eb5505f 100644

Re: [PATCH 02/18] usbip: Add support for client authentication

2014-09-20 Thread Max Vozeler
Hi, On Tue, Sep 16, 2014 at 11:38:39PM +, Maximilian Eschenbacher wrote: > From: Dominik Paulus > > This patch adds support for authenticating both client and server using > a pre-shared passphrase using SRP (Secure Remote Password) over TLS (see > RFC 5054) using GnuTLS. Both usbip and

Re: [PATCH 03/18] usbip: Add kernel support for client ACLs

2014-09-20 Thread Max Vozeler
Hi, On Tue, Sep 16, 2014 at 11:38:40PM +, Maximilian Eschenbacher wrote: > From: Dominik Paulus > > This patch adds the possibility to stored ACLs for allowed clients for > each stub device in sysfs. It adds a new sysfs entry called "usbip_acl" > for each stub device, containing a list of

[RFC PATCH 02/11] next: mips: Fix ip27_defconfig

2014-09-20 Thread Guenter Roeck
Commit 5d6be6a5d486 ('scsi_netlink : Make SCSI_NETLINK dependent on NET instead of selecting NET') changes 'select NET' to 'depends NET'. As a result, many configurations which do not explicitly select CONFIG_NET are no longer valid and need to be updated. The command sequence to create the new

[RFC PATCH 04/11] next: mips: Fix loongson3_defconfig

2014-09-20 Thread Guenter Roeck
Commit 5d6be6a5d486 ('scsi_netlink : Make SCSI_NETLINK dependent on NET instead of selecting NET') changes 'select NET' to 'depends NET'. As a result, many configurations which do not explicitly select CONFIG_NET are no longer valid and need to be updated. The command sequence to create the new

[RFC PATCH 05/11] next: mips: Fix malta_defconfig

2014-09-20 Thread Guenter Roeck
Commit 5d6be6a5d486 ('scsi_netlink : Make SCSI_NETLINK dependent on NET instead of selecting NET') changes 'select NET' to 'depends NET'. As a result, many configurations which do not explicitly select CONFIG_NET are no longer valid and need to be updated. The command sequence to create the new

[RFC PATCH 07/11] next: mips: Fix malta_kvm_guest_defconfig

2014-09-20 Thread Guenter Roeck
Commit 5d6be6a5d486 ('scsi_netlink : Make SCSI_NETLINK dependent on NET instead of selecting NET') changes 'select NET' to 'depends NET'. As a result, many configurations which do not explicitly select CONFIG_NET are no longer valid and need to be updated. The command sequence to create the new

[RFC PATCH 08/11] next: mips: Fix mtx1_defconfig

2014-09-20 Thread Guenter Roeck
Commit 5d6be6a5d486 ('scsi_netlink : Make SCSI_NETLINK dependent on NET instead of selecting NET') changes 'select NET' to 'depends NET'. As a result, many configurations which do not explicitly select CONFIG_NET are no longer valid and need to be updated. The command sequence to create the new

[RFC PATCH 10/11] next: mips: Fix nlm_xlr_defconfig

2014-09-20 Thread Guenter Roeck
Commit 5d6be6a5d486 ('scsi_netlink : Make SCSI_NETLINK dependent on NET instead of selecting NET') changes 'select NET' to 'depends NET'. As a result, many configurations which do not explicitly select CONFIG_NET are no longer valid and need to be updated. The command sequence to create the new

[RFC PATCH 09/11] next: mips: Fix nlm_xlp_defconfig

2014-09-20 Thread Guenter Roeck
Commit 5d6be6a5d486 ('scsi_netlink : Make SCSI_NETLINK dependent on NET instead of selecting NET') changes 'select NET' to 'depends NET'. As a result, many configurations which do not explicitly select CONFIG_NET are no longer valid and need to be updated. The command sequence to create the new

[RFC PATCH 11/11] next: mips: Fix rm200_defconfig

2014-09-20 Thread Guenter Roeck
Commit 5d6be6a5d486 ('scsi_netlink : Make SCSI_NETLINK dependent on NET instead of selecting NET') changes 'select NET' to 'depends NET'. As a result, many configurations which do not explicitly select CONFIG_NET are no longer valid and need to be updated. The command sequence to create the new

[RFC PATCH 06/11] next: mips: Fix malta_kvm_defconfig

2014-09-20 Thread Guenter Roeck
Commit 5d6be6a5d486 ('scsi_netlink : Make SCSI_NETLINK dependent on NET instead of selecting NET') changes 'select NET' to 'depends NET'. As a result, many configurations which do not explicitly select CONFIG_NET are no longer valid and need to be updated. The command sequence to create the new

[RFC PATCH 03/11] next: mips: Fix jazz_defconfig

2014-09-20 Thread Guenter Roeck
Commit 5d6be6a5d486 ('scsi_netlink : Make SCSI_NETLINK dependent on NET instead of selecting NET') changes 'select NET' to 'depends NET'. As a result, many configurations which do not explicitly select CONFIG_NET are no longer valid and need to be updated. The command sequence to create the new

[RFC PATCH 00/11] next: mips: Fix default configurations

2014-09-20 Thread Guenter Roeck
Commit 5d6be6a5d486 ('scsi_netlink : Make SCSI_NETLINK dependent on NET instead of selecting NET') in linux-next changes 'select NET' to 'depends NET'. As a result, many configurations which do not explicitly select CONFIG_NET are no longer valid and need to be updated. An alternative to this

[RFC PATCH 01/11] next: mips: Fix gpr_defconfig

2014-09-20 Thread Guenter Roeck
Commit 5d6be6a5d486 ('scsi_netlink : Make SCSI_NETLINK dependent on NET instead of selecting NET') changes 'select NET' to 'depends NET'. As a result, many configurations which do not explicitly select CONFIG_NET are no longer valid and need to be updated. The command sequence to create the new

[RFC PATCH 00/11] next: mips: Fix default configurations

2014-09-20 Thread Guenter Roeck
Commit 5d6be6a5d486 ('scsi_netlink : Make SCSI_NETLINK dependent on NET instead of selecting NET') in linux-next changes 'select NET' to 'depends NET'. As a result, many configurations which do not explicitly select CONFIG_NET are no longer valid and need to be updated. An alternative to this

Re: [PATCH/RFC] rtc: rtc-twl: Fixed nested IRQ handling in resume from suspend

2014-09-20 Thread Rafael J. Wysocki
On Wednesday, September 17, 2014 02:57:11 PM Thomas Gleixner wrote: > On Sat, 13 Sep 2014, Laurent Pinchart wrote: > > > The TWL RTC interrupt is a double-nested threaded interrupt, handled > > through the TWL SIH (Secondary Interrupt Handler) and PIH (Primary > > Interrupt Handler). > > > >

[RFC PATCH 00/11] next: mips: Fix default configurations

2014-09-20 Thread Guenter Roeck
Commit 5d6be6a5d486 ('scsi_netlink : Make SCSI_NETLINK dependent on NET instead of selecting NET') in linux-next changes 'select NET' to 'depends NET'. As a result, many configurations which do not explicitly select CONFIG_NET are no longer valid and need to be updated. An alternative to this

Re: irq mask swapping during suspend/resume

2014-09-20 Thread Rafael J. Wysocki
On Thursday, September 18, 2014 01:32:06 PM Thomas Gleixner wrote: > On Wed, 17 Sep 2014, Dmitry Torokhov wrote: > > Hi Thomas, > > > > On Wednesday, September 17, 2014 12:05:42 PM Thomas Gleixner wrote: > > > On Tue, 16 Sep 2014, Eric Caruso wrote: > > > > We would like to be able to set

Re: [RFC PATCH v2 00/16] Add ACPI _DSD and unified device properties support

2014-09-20 Thread Rafael J. Wysocki
On Tuesday, September 16, 2014 02:52:31 PM Mika Westerberg wrote: > This is a second revision of the patches first submitted here [1]. > > The recent publication of the ACPI 5.1 specification [2] adds a reserved name > for Device Specific Data (_DSD, Section 6.2.5). This mechanism allows for >

Re: [PATCH v2] PM: Print pending wakeup IRQ preventing suspend

2014-09-20 Thread Rafael J. Wysocki
On Friday, September 19, 2014 04:52:35 AM Amit Pundir wrote: > From: Todd Poynor > > Currently when a pending wakeup irq stops suspend, it can be difficult > to determine why suspend was prevented and which IRQ was actually > responsible. In order to help debug such situation, this patch prints

Re: [PATCH 3/5] ARM: mvebu: armada-xp: Correct misnumbered PCIe port nodes

2014-09-20 Thread Sebastian Hesselbarth
On 09/20/2014 08:06 PM, Sebastian Hesselbarth wrote: > Currently, Armada XP PCIe nodes are numbered pcie@,0 with N just > incrementing. To reflect port/lane relationship, rename the nodes > to pcie@,. While at it, add node aliases to each of pcie > controller and port nodes and get rid of now

Re: [PATCH v2] PM: Print wall time at suspend entry and exit

2014-09-20 Thread Rafael J. Wysocki
On Friday, September 19, 2014 04:57:12 AM Amit Pundir wrote: > From: Todd Poynor > > Existing timestamps in a dmesg only log suspend activities > (e.g. filesystem syncs, freezing/unfreezing tasks etc) while the > system has already started to enter/exit the suspend state. > > Sometimes it is

[PATCH] Staging: Skein: skein_block: fixed 3 tab coding style isses

2014-09-20 Thread Mike Roocroft
Fixed a coding style issue Signed-off-by: Mike Roocroft --- drivers/staging/skein/skein_block.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/skein/skein_block.c b/drivers/staging/skein/skein_block.c index 04ce1d0..b969fe1 100644 ---

Re: [PATCH 3/3] f2fs: fix roll-forward missing scenarios

2014-09-20 Thread Huang Ying
On Sat, 2014-09-20 at 09:23 -0700, Jaegeuk Kim wrote: > On Thu, Sep 18, 2014 at 09:04:11PM +0800, huang ying wrote: > > On Thu, Sep 18, 2014 at 1:51 PM, Jaegeuk Kim wrote: > > > > > We can summarize the roll forward recovery scenarios as follows. > > > > > > [Term] F: fsync_mark, D: dentry_mark

(no subject)

2014-09-20 Thread Cleveland Finance
-- Cleveland Finance Loan give out Guarantee Business Loans, Automobile Purchase Loans, House Purchase Loans and other Personal Loans E.T.C We give out long term loan from One to Fifty years maximum with 1% interest rate. Mrs. Jean L. McFarland. -- To unsubscribe from this list: send the

[PATCH] brcmfmac: Fix off by one bug in brcmf_count_20mhz_channels()

2014-09-20 Thread Emil Goode
In the brcmf_count_20mhz_channels function we are looping through a list of channels received from firmware. Since the index of the first channel is 0 the condition leads to an off by one bug. This is causing us to hit the WARN_ON_ONCE(1) calls in the brcmu_d11n_decchspec function, which is how I

Re: [RFC PATCH] gpio: add GPIO hogging mechanism

2014-09-20 Thread Ben Gamari
Ben Gamari writes: > Hi Boris, > > I'm just returning to this now. > > > Greg Kroah-Hartman writes: > >> I don't understand what makes GPIO's "special" enough to get included in >> the driver core like this, and called for each and every device that is >> added to the system. >> > I'm also a

[PATCH] eeepc-laptop: clean up control flow in *_rfkill_notifier

2014-09-20 Thread Frans Klaver
Handle errors immediately in eeepc_register_rfkill_notifier and eeepc_unregister_rfkill_notifier. This clears up the control flow for the reader. It also removes unnecessary indentation. Signed-off-by: Frans Klaver --- This depends on the earlier eeepc cleanup series [1] to apply cleanly. [1]

Re: [RFC PATCH] gpio: add GPIO hogging mechanism

2014-09-20 Thread Ben Gamari
Hi Boris, I'm just returning to this now. Greg Kroah-Hartman writes: > I don't understand what makes GPIO's "special" enough to get included in > the driver core like this, and called for each and every device that is > added to the system. > I'm also a bit confused why GPIOs ended up in the

[PATCH 3/3] x86, ptdump: Take parent page flags into account

2014-09-20 Thread Mathias Krause
We currently ignore the flags of parent entries when evaluating the flags of a given page table entry in printk_prot(). This might lead to wrong results when a particular flag in a parent entry differs from the one of the current page table entry. So, we might show memory regions as writable even

[PATCH 0/3] x86, ptdump: a EFI related fix + enhancements

2014-09-20 Thread Mathias Krause
This series slightly simplifies (patch 2) and then enhances (patch 3) the page table dump code to respect the page table attributes of the whole page table walk when determining the effective access rights. It also fixes the regression that the EFI runtime service mappings are no longer visible

[PATCH 2/3] x86, ptdump: Simplify page flag evaluation code

2014-09-20 Thread Mathias Krause
The code evaluating the page flags is rather scattered. Simplify it by folding the 'if .. else ..' part into the actual print call. Make use of appropriate format strings to get the desired string width. Also change the pt_dump_seq_printf() and pt_dump_cont_printf() macros to use the common 'do

[PATCH 1/3] x86, ptdump: Add section for EFI runtime services

2014-09-20 Thread Mathias Krause
In commit 3891a04aafd6 ("x86-64, espfix: Don't leak bits 31:16 of %esp returning..") the "ESPFix Area" was added to the page table dump special sections. That area, though, has a limited amount of entries printed. The EFI runtime services are, unfortunately, located in-between the espfix area and

Re: [PATCH 2/2] watchdog: dw_wdt: add restart handler support

2014-09-20 Thread Guenter Roeck
On 09/18/2014 11:29 PM, Jisheng Zhang wrote: The kernel core now provides an API to trigger a system restart. Register with it to support restarting the system via. watchdog. Signed-off-by: Jisheng Zhang --- drivers/watchdog/dw_wdt.c | 27 +++ 1 file changed, 27

Re: linux-next: Tree for Sep 19

2014-09-20 Thread Guenter Roeck
On 09/20/2014 12:36 PM, Helge Deller wrote: Hi Günter, On 09/19/2014 09:15 PM, Guenter Roeck wrote: On Fri, Sep 19, 2014 at 04:58:17PM +1000, Stephen Rothwell wrote: Changes since 20140917: The fsl tree still had its build failure so I used the version from next-20140917. The v4l-dvb tree

RE: [PATCH v3 0/6] usb: hub: convert khubd into workqueue

2014-09-20 Thread Paul Zimmerman
> From: linux-usb-ow...@vger.kernel.org > [mailto:linux-usb-ow...@vger.kernel.org] On Behalf Of Alan Stern > Sent: Friday, September 19, 2014 12:39 PM > > On Fri, 19 Sep 2014, Petr Mladek wrote: > > > The 3rd version of the patchset is slightly reordered and refactored > > as suggested earlier.

[PATCH 7/8] nohz: Consolidate nohz full init code

2014-09-20 Thread Frederic Weisbecker
The supports for CONFIG_NO_HZ_FULL_ALL=y and the nohz_full= kernel parameter both have their own way to do the same thing: allocate full dynticks cpumasks, fill them and initialize some state variables. Lets consolidate that all in the same place. While at it, convert some regular printk message

[PATCH 4/8] x86: Tell irq work about self IPI support

2014-09-20 Thread Frederic Weisbecker
x86 supports irq work self-IPIs when local apic is available. This is partly known on runtime so lets implement arch_irq_work_has_interrupt() accordingly. This should be safely called after setup_arch(). Acked-by: Peter Zijlstra (Intel) Cc: Ingo Molnar Cc: Paul E. McKenney Cc: Peter Zijlstra

[PATCH 5/8] arm: Tell irq work about self IPI support

2014-09-20 Thread Frederic Weisbecker
ARM irq work IPI support depends on SMP support. That information is partly known at early boottime. Lets implement arch_irq_work_has_interrupt() accordingly. Acked-by: Peter Zijlstra (Intel) Cc: Ingo Molnar Cc: Paul E. McKenney Cc: Peter Zijlstra Cc: Russell King Cc: Thomas Gleixner

[PATCH 1/8] nohz: Move nohz full init call to tick init

2014-09-20 Thread Frederic Weisbecker
This way we unbloat a bit main.c and more importantly we initialize nohz full after init_IRQ(). This dependency will be needed in further patches because nohz full needs irq work to raise its own IRQ. Information about the support for this ability on ARM64 is obtained on init_IRQ() which

[PATCH 6/8] arm64: Tell irq work about self IPI support

2014-09-20 Thread Frederic Weisbecker
ARM64 irq work self-IPI support depends on __smp_cross_call to point to some relevant IRQ controller operations. This information should be available after the call to init_IRQ(). Lets implement arch_irq_work_has_interrupt() accordingly. Acked-by: Peter Zijlstra (Intel) Acked-by: Catalin

[PATCH 3/8] irq_work: Force raised irq work to run on irq work interrupt

2014-09-20 Thread Frederic Weisbecker
The nohz full kick, which restarts the tick when any resource depend on it, can't be executed anywhere given the operation it does on timers. If it is called from the scheduler or timers code, chances are that we run into a deadlock. This is why we run the nohz full kick from an irq work. That

[PATCH 2/8] irq_work: Introduce arch_irq_work_has_interrupt()

2014-09-20 Thread Frederic Weisbecker
From: Peter Zijlstra The nohz full code needs irq work to trigger its own interrupt so that the subsystem can work even when the tick is stopped. Lets introduce arch_irq_work_has_interrupt() that archs can override to tell about their support for this ability. Signed-off-by: Peter Zijlstra

[PATCH 0/8] nohz: Fix nohz kick irq work on tick v3

2014-09-20 Thread Frederic Weisbecker
The v2 patches were pretty much agreed and these are mostly the same except for a few changes: 1) "x86: Tell irq work about self IPI support" now uses cpu_has instead of static_cpu_has. Unfortunately static_cpu_has() can't be called before the alternatives code is initialized which is way after

[PATCH 8/8] nohz: nohz full depends on irq work self IPI support

2014-09-20 Thread Frederic Weisbecker
The nohz full functionality depends on IRQ work to trigger its own interrupts. As it's used to restart the tick, we can't rely on the tick fallback for irq work callbacks, ie: we can't use the tick to restart the tick itself. Lets reject the full dynticks initialization if that arch support isn't

Re

2014-09-20 Thread Richard Wong
Hello, I have a business proposal I'd like to share with you, on your response I'll email you with more details. I await your prompt reply on this. Kind regards Richard Wong -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH 2/7] sched: Fix picking a task switching on other cpu (__ARCH_WANT_UNLOCKED_CTXSW)

2014-09-20 Thread Kirill Tkhai
В Вс, 21/09/2014 в 00:09 +0400, Kirill Tkhai пишет: > В Сб, 20/09/2014 в 20:54 +0200, Peter Zijlstra пишет: > > On Sat, Sep 20, 2014 at 08:33:26PM +0200, Peter Zijlstra wrote: > > > On Sat, Sep 20, 2014 at 08:51:22PM +0400, Kirill Tkhai wrote: > > > > From: Kirill Tkhai > > > > > > > > We may

Re:

2014-09-20 Thread Richard Wong
Hello, I have a business proposal I'd like to share with you, on your response I'll email you with more details. I await your prompt reply on this. Kind regards Richard Wong -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH 2/7] sched: Fix picking a task switching on other cpu (__ARCH_WANT_UNLOCKED_CTXSW)

2014-09-20 Thread Kirill Tkhai
В Сб, 20/09/2014 в 20:54 +0200, Peter Zijlstra пишет: > On Sat, Sep 20, 2014 at 08:33:26PM +0200, Peter Zijlstra wrote: > > On Sat, Sep 20, 2014 at 08:51:22PM +0400, Kirill Tkhai wrote: > > > From: Kirill Tkhai > > > > > > We may pick a task which is in context_switch() on other cpu at the > >

[patch 3/3] mm: memcontrol: continue cache reclaim from offlined groups

2014-09-20 Thread Johannes Weiner
On cgroup deletion, outstanding page cache charges are moved to the parent group so that they're not lost and can be reclaimed during pressure on/inside said parent. But this reparenting is fairly tricky and its synchroneous nature has led to several lock-ups in the past. Since css iterators now

[patch 1/3] mm: memcontrol: take a css reference for each charged page

2014-09-20 Thread Johannes Weiner
Charges currently pin the css indirectly by playing tricks during css_offline(): user pages stall the offlining process until all of them have been reparented, whereas kmemcg acquires a keep-alive reference if outstanding kernel pages are detected at that point. In preparation for removing all

[patch 0/3] mm: memcontrol: eliminate charge reparenting

2014-09-20 Thread Johannes Weiner
Hi, we've come a looong way when it comes to the basic cgroups model, and the recent changes there open up a lot of opportunity to make drastic simplifications to memory cgroups as well. The decoupling of css from the user-visible cgroup, word-sized per-cpu css reference counters, and css

[patch 2/3] mm: memcontrol: remove obsolete kmemcg pinning tricks

2014-09-20 Thread Johannes Weiner
As charges now pin the css explicitely, there is no more need for kmemcg to acquire a proxy reference for outstanding pages during offlining, or maintain state to identify such "dead" groups. Signed-off-by: Johannes Weiner --- mm/memcontrol.c | 74

Re: [PATCH] i2c: Add generic support passing secondary devices addresses

2014-09-20 Thread Lars-Peter Clausen
On 09/20/2014 06:49 PM, Wolfram Sang wrote: On Fri, Sep 05, 2014 at 04:02:19PM +0200, Jean-Michel Hautbois wrote: Some I2C devices have multiple addresses assigned, for example each address corresponding to a different internal register map page of the device. So far drivers which need support

Re: [PATCH 1/2] mtd: nand: support ONFI timings mode retrieval for non-ONFI NANDs

2014-09-20 Thread Brian Norris
On Sat, Sep 20, 2014 at 01:29:43PM +0200, Boris BREZILLON wrote: > On Fri, 19 Sep 2014 21:46:07 -0700 > Brian Norris wrote: > > > Since you were asking about this series, I have a comment: > > > > On Mon, Jul 28, 2014 at 11:16:51AM +0200, Boris BREZILLON wrote: > > > Add an onfi_timing_mode_ds

Re: linux-next: Tree for Sep 19

2014-09-20 Thread Helge Deller
Hi Günter, On 09/19/2014 09:15 PM, Guenter Roeck wrote: On Fri, Sep 19, 2014 at 04:58:17PM +1000, Stephen Rothwell wrote: Changes since 20140917: The fsl tree still had its build failure so I used the version from next-20140917. The v4l-dvb tree lost its build failure. The security tree

Re: [PATCH 3/7] sched: Use dl_bw_of() under RCU read lock

2014-09-20 Thread Peter Zijlstra
On Sat, Sep 20, 2014 at 11:25:39PM +0400, Kirill Tkhai wrote: > On 20.09.2014 22:57, Peter Zijlstra wrote: > > On Sat, Sep 20, 2014 at 08:51:28PM +0400, Kirill Tkhai wrote: > >> From: Kirill Tkhai > >> > >> dl_bw_of() dereferences rq->rd which has to have RCU read lock held. > >> Probability of

Re: [PATCH 3/7] sched: Use dl_bw_of() under RCU read lock

2014-09-20 Thread Kirill Tkhai
On 20.09.2014 22:57, Peter Zijlstra wrote: > On Sat, Sep 20, 2014 at 08:51:28PM +0400, Kirill Tkhai wrote: >> From: Kirill Tkhai >> >> dl_bw_of() dereferences rq->rd which has to have RCU read lock held. >> Probability of use-after-free and memory corruption aren't zero here. >> > > Additionally

Re: [PATCH 5/7] sched: Use rq->rd in sched_setaffinity() under RCU read lock

2014-09-20 Thread Kirill Tkhai
On 20.09.2014 23:18, Peter Zijlstra wrote: > On Sat, Sep 20, 2014 at 11:05:46PM +0400, Kirill Tkhai wrote: >> On 20.09.2014 22:59, Peter Zijlstra wrote: >>> On Sat, Sep 20, 2014 at 08:51:40PM +0400, Kirill Tkhai wrote: From: Kirill Tkhai task_rq(p)->rd and task_rq(p)->rd->span may

Re: [PATCH 5/7] sched: Use rq->rd in sched_setaffinity() under RCU read lock

2014-09-20 Thread Peter Zijlstra
On Sat, Sep 20, 2014 at 11:05:46PM +0400, Kirill Tkhai wrote: > On 20.09.2014 22:59, Peter Zijlstra wrote: > > On Sat, Sep 20, 2014 at 08:51:40PM +0400, Kirill Tkhai wrote: > >> From: Kirill Tkhai > >> > >> task_rq(p)->rd and task_rq(p)->rd->span may be used-after-free here. > >> Probability of

Re: [PATCH 5/7] sched: Use rq->rd in sched_setaffinity() under RCU read lock

2014-09-20 Thread Kirill Tkhai
On 20.09.2014 22:59, Peter Zijlstra wrote: > On Sat, Sep 20, 2014 at 08:51:40PM +0400, Kirill Tkhai wrote: >> From: Kirill Tkhai >> >> task_rq(p)->rd and task_rq(p)->rd->span may be used-after-free here. >> Probability of NULL pointer derefference isn't zero in this place. > > I don't see NULL

Re: [PATCH 2/7] sched: Fix picking a task switching on other cpu (__ARCH_WANT_UNLOCKED_CTXSW)

2014-09-20 Thread Peter Zijlstra
On Sat, Sep 20, 2014 at 08:33:26PM +0200, Peter Zijlstra wrote: > On Sat, Sep 20, 2014 at 08:51:22PM +0400, Kirill Tkhai wrote: > > From: Kirill Tkhai > > > > We may pick a task which is in context_switch() on other cpu at the moment. > > Parallel using of a single stack by two processes is not

Re: [PATCH 2/7] sched: Fix picking a task switching on other cpu (__ARCH_WANT_UNLOCKED_CTXSW)

2014-09-20 Thread Peter Zijlstra
On Sat, Sep 20, 2014 at 08:51:22PM +0400, Kirill Tkhai wrote: > From: Kirill Tkhai > > We may pick a task which is in context_switch() on other cpu at the moment. > Parallel using of a single stack by two processes is not a good idea. Please elaborate on who exactly that might happen. Its best

Re: [PATCH 6/7] sched: Delete rq::skip_clock_update == -1

2014-09-20 Thread Peter Zijlstra
On Sat, Sep 20, 2014 at 08:51:46PM +0400, Kirill Tkhai wrote: > From: Kirill Tkhai > > Idle class task is always queued, so we can safely remove "-1" case here. Tag you're it :-) https://lkml.org/lkml/2014/4/8/295 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

Re: [PATCH 5/7] sched: Use rq->rd in sched_setaffinity() under RCU read lock

2014-09-20 Thread Peter Zijlstra
On Sat, Sep 20, 2014 at 08:51:40PM +0400, Kirill Tkhai wrote: > From: Kirill Tkhai > > task_rq(p)->rd and task_rq(p)->rd->span may be used-after-free here. > Probability of NULL pointer derefference isn't zero in this place. I don't see NULL derefs, just use-after-free. -- To unsubscribe from

Re: [PATCH 3/7] sched: Use dl_bw_of() under RCU read lock

2014-09-20 Thread Peter Zijlstra
On Sat, Sep 20, 2014 at 08:51:28PM +0400, Kirill Tkhai wrote: > From: Kirill Tkhai > > dl_bw_of() dereferences rq->rd which has to have RCU read lock held. > Probability of use-after-free and memory corruption aren't zero here. > Additionally we might want to add something like:

Re: [PATCH 2/7] sched: Fix picking a task switching on other cpu (__ARCH_WANT_UNLOCKED_CTXSW)

2014-09-20 Thread Peter Zijlstra
On Sat, Sep 20, 2014 at 08:33:26PM +0200, Peter Zijlstra wrote: > On Sat, Sep 20, 2014 at 08:51:22PM +0400, Kirill Tkhai wrote: > > From: Kirill Tkhai > > > > We may pick a task which is in context_switch() on other cpu at the moment. > > Parallel using of a single stack by two processes is not

Re: [BUG] Bisected Problem with LSI PCI FC Adapter

2014-09-20 Thread Dirk Gouders
Bjorn Helgaas writes: > On Sat, Sep 13, 2014 at 09:41:34PM +0200, Dirk Gouders wrote: >> So, I did some tests on the VX50 which probably wasn't the worst idea, >> because it behaves different than the test machine. >> >> Summary: >> >> 1) Bjorn's back pocket patch works on the VX50. >> >>

Re: [PATCH] staging: wlan-ng: remove unused 'result' var

2014-09-20 Thread Grzegorz Swirski
> you have not mentioned any commit log Sorry. Patch against linux-next, commit d7cf2b3139909a354a71e2885c942e21a60ea062 > > @@ -734,11 +732,10 @@ static int prism2mib_priv(struct mibrec *mib, > > wpa.datalen = cpu_to_le16(pstr->len); > >

Re: [PATCH] clk: s5pv210: add missing call to samsung_clk_of_add_provider()

2014-09-20 Thread Tomasz Figa
On 19.09.2014 11:00, Marek Szyprowski wrote: > Commit d5e136a21b2028fb1f45143ea7112d5869bfc6c7 ("clk: samsung: Register > clk provider only after registering its all clocks", merged to v3.17-rc1) > modified a way that driver registers registers to core framework. This > change has not been applied

Re: [PATCH] staging: wlan-ng: remove unused 'result' var

2014-09-20 Thread Sudip Mukherjee
On Sat, Sep 20, 2014 at 12:09:11PM +0100, Grzegorz Swirski wrote: > Signed-off-by: Grzegorz Swirski you have not mentioned any commit log > --- > drivers/staging/wlan-ng/prism2mib.c | 11 --- > 1 file changed, 4 insertions(+), 7 deletions(-) > > diff --git

Re: [PATCH] printk: git rid of [sched_delayed] message for printk_deferred

2014-09-20 Thread Peter Zijlstra
On Sat, Sep 20, 2014 at 12:30:01PM -0400, Steven Rostedt wrote: > On Sat, 20 Sep 2014 09:10:47 -0700 > Joe Perches wrote: > > > On Sat, 2014-09-20 at 17:47 +0200, Peter Zijlstra wrote: > > > On a whole, printk() is entirely useless for debugging these days, its > > > far too fragile/unreliable

[PATCH 5/5] ARM: mvebu: armada-xp: Configure ix4-300d PCIe0 to x4

2014-09-20 Thread Sebastian Hesselbarth
The PCIe controller on Port 0 of Lenovo ix4-300d is configured as quad-lane x4. Correct the marvell,pcie-lane property accordingly. Signed-off-by: Sebastian Hesselbarth --- Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala Cc: Bjorn Helgaas Cc: Jason

[PATCH 3/5] ARM: mvebu: armada-xp: Correct misnumbered PCIe port nodes

2014-09-20 Thread Sebastian Hesselbarth
Currently, Armada XP PCIe nodes are numbered pcie@,0 with N just incrementing. To reflect port/lane relationship, rename the nodes to pcie@,. While at it, add node aliases to each of pcie controller and port nodes and get rid of now redundant port/lane comments. Signed-off-by: Sebastian

[PATCH 1/5] PCI: mvebu: Amend PCIe controler node documentation

2014-09-20 Thread Sebastian Hesselbarth
Some PCIe controllers found on Armada XP SoCs can be configured as either four single-lane x1 or one quad-lane x4 PCIe. The current binding documentation is a bit unclear about it, so amend the property description of "marvell,pcie-lane" to allow multiple lanes to be passed. Also, rework the

[PATCH 4/5] ARM: mvebu: armada-xp: Use PCIe node aliases

2014-09-20 Thread Sebastian Hesselbarth
Armada XP pcie controller and port nodes gained aliases, make use of them. Signed-off-by: Sebastian Hesselbarth --- Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala Cc: Bjorn Helgaas Cc: Jason Cooper Cc: Andrew Lunn Cc: Gregory Clement Cc: Thomas

[PATCH 2/5] PCI: mvebu: Count number of lanes

2014-09-20 Thread Sebastian Hesselbarth
Some PCIe controllers found on Armada XP SoCs can be configured as either four single-lane x1 or one quad-lane x4 PCIe. Although we are not (yet) interested in the physical configuration of the PCIe controller, we will need it when proper PHY support for PCIe is added. Adapt the driver to the

Re: Racy manipulation of task_struct->flags in cgroups code causes hard to reproduce kernel panics

2014-09-20 Thread Peter Zijlstra
On Sat, Sep 20, 2014 at 10:15:50AM -0700, Kees Cook wrote: > On Sat, Sep 20, 2014 at 7:30 AM, Peter Zijlstra wrote: > > On Sat, Sep 20, 2014 at 01:55:54PM +0800, Zefan Li wrote: > >> We should make the updating of this flag atomic. > > > >> /* Per-process atomic flags. */ > >> #define

Re: [PATCH] printk: git rid of [sched_delayed] message for printk_deferred

2014-09-20 Thread Peter Zijlstra
On Sat, Sep 20, 2014 at 09:10:47AM -0700, Joe Perches wrote: > On Sat, 2014-09-20 at 17:47 +0200, Peter Zijlstra wrote: > > On a whole, printk() is entirely useless for debugging these days, its > > far too fragile/unreliable to be taken seriously so I really don't care > > on that point either. >

Re: [PATCH] tty/serial: samsung: Add earlycon support

2014-09-20 Thread Rob Herring
On 09/20/2014 08:39 AM, Tomasz Figa wrote: > Hi Alim, > > Please see my comments inline. > > On 16.09.2014 13:32, Alim Akhtar wrote: >> Add earlycon support for the samsung serial port. This allows enabling >> the samsung serial port for console when early_params are parse and >> processed. >>

Re: [PATCH v11 07/10] OF: Introduce helper function for getting PCI domain_nr

2014-09-20 Thread Rob Herring
On 09/17/2014 08:30 PM, Liviu Dudau wrote: > Add of_pci_get_domain_nr() to retrieve the PCI domain number > of a given device from DT. If the information is not present, > the function can be requested to allocate a new domain number. > > Cc: Bjorn Helgaas > Cc: Arnd Bergmann > Cc: Grant Likely

Re: [PATCH] mmc: usdhi6rol0: Remove unnecessary header files

2014-09-20 Thread Guennadi Liakhovetski
On Sat, 20 Sep 2014, Pramod Gurav wrote: > These headers are not required hence this change removes them from > the driver. > > Cc: Guennadi Liakhovetski > Cc: Chris Ball > Cc: Ulf Hansson > Cc: linux-...@vger.kernel.org > Signed-off-by: Pramod Gurav NAK. The fact, that code builds without

[tip:sched/urgent] sched: Fix end_of_stack() and location of stack canary for architectures using CONFIG_STACK_GROWSUP

2014-09-20 Thread tip-bot for Chuck Ebbert
Commit-ID: 6a40281ab5c1ed8ba2253857118a5d400a2d084b Gitweb: http://git.kernel.org/tip/6a40281ab5c1ed8ba2253857118a5d400a2d084b Author: Chuck Ebbert AuthorDate: Sat, 20 Sep 2014 10:17:51 -0500 Committer: Ingo Molnar CommitDate: Sat, 20 Sep 2014 19:44:04 +0200 sched: Fix end_of_stack()

[PATCH] mmc: usdhi6rol0: Remove unnecessary header files

2014-09-20 Thread Pramod Gurav
These headers are not required hence this change removes them from the driver. Cc: Guennadi Liakhovetski Cc: Chris Ball Cc: Ulf Hansson Cc: linux-...@vger.kernel.org Signed-off-by: Pramod Gurav --- drivers/mmc/host/usdhi6rol0.c | 7 --- 1 file changed, 7 deletions(-) diff --git

[GIT PULL] Staging driver fixes for 3.17-rc6

2014-09-20 Thread Greg KH
The following changes since commit 9e82bf014195d6f0054982c463575cdce24292be: Linux 3.17-rc5 (2014-09-14 17:50:12 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git/ tags/staging-3.17-rc6 for you to fetch changes up to

[GIT PULL] USB driver fixes for 3.17-rc6

2014-09-20 Thread Greg KH
The following changes since commit 9e82bf014195d6f0054982c463575cdce24292be: Linux 3.17-rc5 (2014-09-14 17:50:12 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/ tags/usb-3.17-rc6 for you to fetch changes up to

Re: [PATCH v4 1/4] ftracetest: Initial commit for ftracetest

2014-09-20 Thread Masami Hiramatsu
(2014/09/19 23:42), Steven Rostedt wrote: > On Fri, 19 Sep 2014 08:05:23 -0600 > Shuah Khan wrote: > > >> I am not concerned about the spacing. >> >> Thanks for doing running the make kselftest target and sharing >> the results. selftests don't get built or run in integ test >> rings. I am

Re: [PATCH v11 04/10] PCI: OF: Fix the conversion of IO ranges into IO resources.

2014-09-20 Thread Rob Herring
On 09/17/2014 08:30 PM, Liviu Dudau wrote: > The ranges property for a host bridge controller in DT describes > the mapping between the PCI bus address and the CPU physical address. > The resources framework however expects that the IO resources start > at a pseudo "port" address 0 (zero) and have

Re: Racy manipulation of task_struct->flags in cgroups code causes hard to reproduce kernel panics

2014-09-20 Thread Tejun Heo
Hello, On Sat, Sep 20, 2014 at 01:55:54PM +0800, Zefan Li wrote: > > Then, what made current->flags to unexpectedly preserve PF_USED_MATH flag? > > The user is running cgrulesengd process in order to utilize cpuset cgroup. > > Thus, cpuset_update_task_spread_flag() is called when cgrulesengd

Re: Re: [PATCH v4 1/4] ftracetest: Initial commit for ftracetest

2014-09-20 Thread Masami Hiramatsu
(2014/09/19 23:05), Shuah Khan wrote: +TODO + + + * Fancy colored output :) + + * Integrate with selftest? >>> >>> The second TODO can be removed since it is moved under selftests?? >> >> Ah, I missed to remove that in this commit. It's already integrated. >> >> -

Re: FIX ME in oxu210p-hcd.c

2014-09-20 Thread nick
I found a unfixed FIX ME in the file stated in my above message. I am wondering what to set hcd->self.comtroller->dma_mask to as it's now been defined to NULL and clearly even as a newbie this seem incorrect. Regards Nick -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH 3.17-rc5] Fix confusing PFA_NO_NEW_PRIVS constant.

2014-09-20 Thread Kees Cook
On Sat, Sep 20, 2014 at 3:40 AM, Tetsuo Handa wrote: > Can you apply below patch before new PFA_* are defined? > Cgroups code might want to define PFA_SPREAD_PAGE as 1 and PFA_SPREAD_SLAB as > 2. > > >From 8543e68adb210142fa347d8bc9d83df0bb2c5291 Mon Sep

  1   2   3   4   5   >