Re: [PATCH 1/1] fanotify: check file flags passed in fanotify_init

2014-05-03 Thread Michael Kerrisk (man-pages)
Hi Heinrich, On 05/01/2014 05:35 PM, Heinrich Schuchardt wrote: > Without this patch fanotify_init does not validate the value passed in > event_f_flags. > > When a fanotify event is read from the fanotify file descriptor a new file > descriptor is created where file.f_flags = event_f_flags. > >

[PATCH 1/1] fs/affs/super.c: bugfix / double free

2014-05-03 Thread Fabian Frederick
842a859db26b70 ("affs: use ->kill_sb() to simplify ->put_super() and failure exits of ->mount()") adds .kill_sb which frees sbi but doesn't remove sbi free in case of parse_options error causing double free+random crash. Cc: Alexander Viro Cc: Andrew Morton Signed-off-by: Fabian Frederick ---

[PATCH v2 2/2] spi: sirf: decrease the interrupt count and latency of PIO mode

2014-05-03 Thread Qipan Li
From: Qipan Li current PIO tranfer method be described as follows: 1. fill as much as bytes but no more than 256 bytes(fifo size) 2. enable oflow/uflow/txfifo_empty interrupt 3. isr process 3 interrupt signal, do complete works. 4. after isr done, if there are left bytes go into 1 else go into 5

Re: dcache shrink list corruption?

2014-05-03 Thread Al Viro
On Sat, May 03, 2014 at 07:21:11PM +0100, Al Viro wrote: > On Sat, May 03, 2014 at 05:26:04AM +0100, Al Viro wrote: > > > See vfs.git#dentry_kill-3; warning - this is completely untested and I would > > really like comments on spinning case there (i.e. the one where > > select_collect() > > finds

Re: [PATCHSET cgroup/for-3.16] cgroup: implement css->id

2014-05-03 Thread Li Zefan
On 2014/4/25 5:02, Tejun Heo wrote: > Hello, > > Until now, cgroup->id has been used to identify all the associated > csses and css_from_id() takes cgroup ID and returns the matching css > by looking up the cgroup and then dereferencing the css associated > with it; however, now that the lifetimes

[PATCH] ACPI/Battery: Accelerate battery resume callback

2014-05-03 Thread Lan Tianyu
Most time of battery resume callback is spent on executing AML code _BTP, _BIF and _BIF to get battery info, status and set alarm. These AML methods may access EC operation regions several times and consumes time. These operations are not necessary during devices resume and can run during POST_SUS

Re: [PATCH 6/6] cgroup, memcg: implement css->id and convert css_from_id() to use it

2014-05-03 Thread Li Zefan
(Just came back from a short vacation) On 2014/5/1 23:46, Tejun Heo wrote: > On Mon, Apr 28, 2014 at 11:33:16AM +0800, Li Zefan wrote: >> On 2014/4/25 5:02, Tejun Heo wrote: >>> Until now, cgroup->id has been used to identify all the associated >>> csses and css_from_id() takes cgroup ID and retur

[GIT PULL] SCSI fixes for 3.15-rc4

2014-05-03 Thread James Bottomley
This is two patches both fixing bugs in drivers (virtio-scsi and mpt2sas) causing an oops in certain circumstances. The patch is available here: git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git scsi-fixes The short changelog is: Fam Zheng (1): virtio-scsi: Skip setting affinity

Re: [PATCH 00/13] Refactor pci_is_brdige() to simplify code

2014-05-03 Thread Yijing Wang
> This needs to be posted to the linux-pci list. The fact that it > wasn't means it's not in patchwork, so it's not on my to-do list. > > Currently we have one interface: pci_is_bridge(). > > After your series, we would have two interfaces: pci_is_bridge() and > pci_has_subordinate(). Presumabl

Re: [PATCH] staging/lustre: Replace jobid acquiring with per node setting

2014-05-03 Thread Greg Kroah-Hartman
On Sat, May 03, 2014 at 11:08:36PM -0400, Oleg Drokin wrote: > Hello! > > On May 3, 2014, at 10:33 PM, Greg Kroah-Hartman wrote: > >> I don't think I saw complaints about proc files, the complaints I saw were > >> mostly about > >> reading env variables directly and the like so that was the focus

[PATCH] gpio: make of_get_named_gpiod_flags() private

2014-05-03 Thread Alexandre Courbot
of_get_named_gpiod_flags() is visible and directly usable by GPIO consumers, but it really should not as the gpiod interface relies on the simpler gpiod_get() to provide properly-configured GPIOs. of_get_named_gpiod_flags() is just used internally by gpiolib to implement gpiod_get(), and by the ol

[PATCH 15/15] ASoC: pxa: remove mach header dependency

2014-05-03 Thread Xia Kaixu
From: Arnd Bergmann As we are moving the mmp platform towards multiplatform support, we have to stop including platform header files. This changes the pxa-ssp sound driver file to no longer depend on mach/hardware.h and mach/dma.h. The code using the definitions from those headers is actually go

[PATCH RESEND] irqchip: vt8500: Properly mask the interrupt in irq_mask()

2014-05-03 Thread Axel Lin
Current code sets both irq_ack and irq_mask callbacks to vt8500_irq_mask(). However, vt8500_irq_mask does not clear interrupt enable bit when the interrupt trigger mode is edge trigger. This patch moves the code clearing Interrupt Status Register bit to irq_ack(). Make irq_mask() always clear inte

Re: [PATCH] staging/lustre: Replace jobid acquiring with per node setting

2014-05-03 Thread Oleg Drokin
Hello! On May 3, 2014, at 10:33 PM, Greg Kroah-Hartman wrote: >> I don't think I saw complaints about proc files, the complaints I saw were >> mostly about >> reading env variables directly and the like so that was the focus of this >> patch. >> Did I miss some side discussion? Any pointers? > N

[PATCH 1/2] ACPI: Revert "ACPI: Remove CONFIG_ACPI_PROCFS_POWER and cm_sbsc.c"

2014-05-03 Thread Lan Tianyu
The commit 1e2d9cd and 7d7ee95 remove ACPI Proc Battery directory and breaks some old userspace tools. This patch is to revert 7d7ee95. Signed-off-by: Lan Tianyu --- drivers/acpi/Kconfig | 17 drivers/acpi/Makefile | 1 + drivers/acpi/cm_sbs.c | 105 +

[PATCH 2/2] ACPI: Revert "ACPI / Battery: Remove battery's proc directory"

2014-05-03 Thread Lan Tianyu
The commit 1e2d9cd and 7d7ee95 remove ACPI Proc Battery directory and breaks some old userspace tools. This patch is to revert commit 1e2d9cd. Signed-off-by: Lan Tianyu --- drivers/acpi/battery.c | 329 - 1 file changed, 328 insertions(+), 1 deleti

Re: [PATCH v3 0/2] change ARM linux memory layout to support 32 CPUs

2014-05-03 Thread Liu hua
On 2014/4/23 7:50, Nicolas Pitre wrote: > On Tue, 22 Apr 2014, Russell King - ARM Linux wrote: > >> On Tue, Apr 15, 2014 at 07:06:05PM +0800, Liu Hua wrote: >>> This patch series change fixmap mapping region to suppport 32 CPUs. >>> Because the "top_pmd" covers 0xfffe - 0x(2M). And par

Re: [PATCH] staging/lustre: Replace jobid acquiring with per node setting

2014-05-03 Thread Greg Kroah-Hartman
On Sat, May 03, 2014 at 09:20:06PM -0400, Oleg Drokin wrote: > > On May 3, 2014, at 7:29 PM, Greg Kroah-Hartman wrote: > > > On Sun, Apr 27, 2014 at 10:21:52PM -0400, Oleg Drokin wrote: > >> Insted of meddling directly in process environment variables > >> (which is also not possible on certain p

Re: [PATCH] sysctl: Fix division by zero in percpu_pagelist_fraction handler

2014-05-03 Thread Greg Kroah-Hartman
On Sat, May 03, 2014 at 09:28:03PM -0400, Oleg Drokin wrote: > percpu_pagelist_fraction_sysctl_handler calls proc_dointvec_minmax > and blindly assumes that return value of 0 means success. > In fact the other valid case is when it got a zero length input. > > After that it proceeds to a division

Re: [PATCH v2] x86: Return to kernel without IRET

2014-05-03 Thread H. Peter Anvin
We have to do that anyway to deal with 16- and 32-bit userspace return. On May 3, 2014 5:31:41 PM PDT, Andy Lutomirski wrote: >On Sat, May 3, 2014 at 4:51 PM, Andy Lutomirski >wrote: >> On Sat, May 3, 2014 at 3:19 PM, H. Peter Anvin wrote: >>> On 05/03/2014 04:24 AM, Steven Rostedt wrote:

Re: [PATCH v2] x86: Return to kernel without IRET

2014-05-03 Thread H. Peter Anvin
Not for return from NMIs themselves, to be sure On May 3, 2014 4:51:37 PM PDT, Andy Lutomirski wrote: >On Sat, May 3, 2014 at 3:19 PM, H. Peter Anvin wrote: >> On 05/03/2014 04:24 AM, Steven Rostedt wrote: >>> On Fri, 02 May 2014 21:03:10 -0700 >>> "H. Peter Anvin" wrote: >>> I'd real

Re: [PATCH] USB: ehci-hub: wait for RESUME finished when hub try to clear SUSPEND

2014-05-03 Thread Peter Chen
On Sat, May 03, 2014 at 11:52:25AM +0800, xiao jin wrote: > We use usb ehci to connect with modem and run stress test on ehci > remote wake. Sometimes usb disconnect. We add more debug ftrace > (Kernel version: 3.10) and list the key log to show how problem > happened. > > -0 [000] d.h2 26879.

[PATCH] sysctl: Fix division by zero in percpu_pagelist_fraction handler

2014-05-03 Thread Oleg Drokin
percpu_pagelist_fraction_sysctl_handler calls proc_dointvec_minmax and blindly assumes that return value of 0 means success. In fact the other valid case is when it got a zero length input. After that it proceeds to a division by percpu_pagelist_fraction value which is conveniently set to a defaul

Re: [PATCH] IPC initialize shmmax and shmall from the current value not the default

2014-05-03 Thread Davidlohr Bueso
On Sun, 2014-05-04 at 03:28 +0300, Marian Marinov wrote: > On 05/04/2014 02:53 AM, Davidlohr Bueso wrote: > > On Sun, 2014-05-04 at 01:48 +0300, Marian Marinov wrote: > >> When we are creating new IPC namespace that should be cloned from the > >> current namespace it is a good idea to copy the > >

Re: [PATCH] staging/lustre: Replace jobid acquiring with per node setting

2014-05-03 Thread Oleg Drokin
On May 3, 2014, at 7:29 PM, Greg Kroah-Hartman wrote: > On Sun, Apr 27, 2014 at 10:21:52PM -0400, Oleg Drokin wrote: >> Insted of meddling directly in process environment variables >> (which is also not possible on certain platforms due to not exported >> symbols), create jobid_name proc file to

Re: [PATCH v2] staging: keucr: smilmain.c: Fix sparse warning

2014-05-03 Thread Greg KH
On Sat, May 03, 2014 at 11:00:35PM +0300, Tair Rzayev wrote: > > On 2014.04.26. 01:24, Greg KH wrote: > > On Mon, Apr 21, 2014 at 08:42:47PM +0300, Tair wrote: > >> From: Tair Rzayev > >> > >> Fix "Should be static" sparse warning: > >> * Add Check_D_MediaFmt() declaration to smil.h; > >> * Move

Re: [PATCH] staging: rtl8712: fix potential leaks in r8712_set_key()

2014-05-03 Thread Greg KH
On Thu, May 01, 2014 at 11:54:02PM +0200, Christian Engelmayer wrote: > Fix potential leaks in the error paths of r8712_set_key(). In case the > algorithm specific checks fail, the function returns without enqueuing > or freeing the already allocated command and parameter structs. Use a > centraliz

Re: [PATCH] staging: rtl8821ae: mark pointer in pci_iounmap as __iomem

2014-05-03 Thread Greg KH
On Sat, May 03, 2014 at 05:10:48PM +0200, Martin Kepplinger wrote: > pci_iounmap is used that way in drivers/net/wireless/rtlwifi and this > fixes sparse warnings. > > Signed-off-by: Martin Kepplinger > --- > drivers/staging/rtl8821ae/pci.c |4 ++-- > 1 file changed, 2 insertions(+), 2 delet

Re: [PATCH v2] staging: rtl8188eu: fix potential leak in rtw_set_key()

2014-05-03 Thread Greg KH
On Thu, May 01, 2014 at 12:30:57PM +0200, Christian Engelmayer wrote: > Fix a potential leak in the error path of rtw_set_key(). In case the requested > algorithm is not supported by the driver, the function returns without > enqueuing or freeing the already allocated command and parameter structs.

Re: [PATCH] staging: rtl8723au: Remove unused pointer in rtw_wdev_free()

2014-05-03 Thread Greg KH
On Sat, Apr 26, 2014 at 10:10:29PM +0200, Christian Engelmayer wrote: > Pointer 'pwdev_priv' in function rtw_wdev_free() is unused - thus remove it. > > Signed-off-by: Christian Engelmayer > --- > Compile tested and applies against v3.15-rc2 as well as branch staging-next > of tree git.kernel.org

Re: [PATCH 2/2] staging/rtl8192e: userspace ptr deref + incorrect declarations

2014-05-03 Thread Greg Kroah-Hartman
On Sun, Apr 27, 2014 at 07:11:16PM +0200, Dominique van den Broeck wrote: > . userspace pointer dereference ; > . missing inclusions of needed header files ; > . unrequired static function declaration (confusing another *.c file). > > Signed-off-by: Dominique van den Broeck > --- This patch does

Re: [PATCH 1/1] fs/locks.c: replace seq_printf by seq_puts

2014-05-03 Thread Jeff Layton
On Sat, 3 May 2014 22:28:43 +0200 Fabian Frederick wrote: > Replace seq_printf where possible > > Cc: Jeff Layton > Cc: Alexander Viro > Cc: Andrew Morton > Signed-off-by: Fabian Frederick > --- > fs/locks.c | 22 +++--- > 1 file changed, 11 insertions(+), 11 deletions(-) >

Re: [PATCH] staging/comedi: fix sparse warning: shift too big

2014-05-03 Thread Greg Kroah-Hartman
On Fri, May 02, 2014 at 06:57:04PM +0400, Brilliantov Kirill Vladimirovich wrote: > Signed-off-by: Brilliantov Kirill Vladimirovich > --- > drivers/staging/comedi/drivers/ni_stc.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/comedi/drivers/ni_stc.h >

Re: [PATCH 1/6] staging: comedi: addi_apci_1564: remove eeprom support code

2014-05-03 Thread Greg KH
On Mon, Apr 28, 2014 at 12:40:05PM +0300, Dan Carpenter wrote: > Nice, Chase, you've become an expert on comedi, it seems. > > I can't say how happy comedi patches make me these days. Ian, you and > Hartley are doing a fantastic job. Same here, it's great to see all of this cleanup happening. M

Re: [PATCH] staging: android: fix missing a blank line after declarations

2014-05-03 Thread Greg KH
On Tue, Apr 29, 2014 at 08:32:21PM +0300, Dan Carpenter wrote: > On Wed, Apr 30, 2014 at 01:59:12AM +0900, Seunghun Lee wrote: > > This patch fixes "Missing a blank line after declarations" warnings. > > > > Signed-off-by: Seunghun Lee > > Quite a few of these are false checkpatch.pl false posit

Re: [PATCH] staging/lustre: Replace jobid acquiring with per node setting

2014-05-03 Thread Greg Kroah-Hartman
On Sun, Apr 27, 2014 at 10:21:52PM -0400, Oleg Drokin wrote: > Insted of meddling directly in process environment variables > (which is also not possible on certain platforms due to not exported > symbols), create jobid_name proc file to represent this info > (to be filled by job scheduler epilogue

Re: [PATCH 1/2] misc: add sii9234 driver

2014-05-03 Thread Greg KH
On Fri, Apr 11, 2014 at 01:48:29PM +0200, Tomasz Stanislawski wrote: > diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig > index 1cb7408..3b7f266 100644 > --- a/drivers/misc/Kconfig > +++ b/drivers/misc/Kconfig > @@ -515,6 +515,14 @@ config SRAM > the genalloc API. It is supposed to

Re: [PATCH 0/2] Add support for sii9234 chip

2014-05-03 Thread Greg KH
On Fri, Apr 11, 2014 at 01:48:28PM +0200, Tomasz Stanislawski wrote: > Hi everyone, > This patchset adds support for sii9234 HD Mobile Link Bridge. The chip is > used > to convert HDMI signal into MHL. The driver enables HDMI output on Trats and > Trats2 boards. > > The code is based on the dri

Re: [PATCH v2 3/7] tty/serial: convert 8250 to generic earlycon

2014-05-03 Thread Greg Kroah-Hartman
On Sat, May 03, 2014 at 06:07:31PM -0400, Greg Kroah-Hartman wrote: > On Mon, Apr 28, 2014 at 06:20:53PM -0500, Rob Herring wrote: > > On Sat, Apr 26, 2014 at 1:19 AM, Yinghai Lu wrote: > > > On Fri, Apr 18, 2014 at 3:19 PM, Rob Herring > > > wrote: > > >> From: Rob Herring > > >> > > >> With t

Re: [PATCH v2 3/7] tty/serial: convert 8250 to generic earlycon

2014-05-03 Thread Greg Kroah-Hartman
On Mon, Apr 28, 2014 at 06:20:53PM -0500, Rob Herring wrote: > On Sat, Apr 26, 2014 at 1:19 AM, Yinghai Lu wrote: > > On Fri, Apr 18, 2014 at 3:19 PM, Rob Herring wrote: > >> From: Rob Herring > >> > >> With the generic earlycon infrastructure in place, convert the 8250 > >> early console to use

Re: [PATCH v2] x86: Return to kernel without IRET

2014-05-03 Thread Andy Lutomirski
On Sat, May 3, 2014 at 4:51 PM, Andy Lutomirski wrote: > On Sat, May 3, 2014 at 3:19 PM, H. Peter Anvin wrote: >> On 05/03/2014 04:24 AM, Steven Rostedt wrote: >>> On Fri, 02 May 2014 21:03:10 -0700 >>> "H. Peter Anvin" wrote: >>> I'd really like to see a workload which would genuinely

Re: [PATCH] IPC initialize shmmax and shmall from the current value not the default

2014-05-03 Thread Marian Marinov
On 05/04/2014 02:53 AM, Davidlohr Bueso wrote: On Sun, 2014-05-04 at 01:48 +0300, Marian Marinov wrote: When we are creating new IPC namespace that should be cloned from the current namespace it is a good idea to copy the values of the current shmmax and shmall to the new namespace. Why is th

[PATCH] staging: comedi: ii_pci20kc: fix usage of uninit scalar in ii20k_attach()

2014-05-03 Thread Christian Engelmayer
This driver supports the PCI-20001C-1a and PCI-20001C-2a carrier boards. The -2a version has 32 on-board DIO channels. In case this variant is detected, local variable 'has_dio' is set accordingly. Otherwise it is left uninitialized and the following subdevice instantiation depends on the stack. De

Re: [PATCH] mm: Fix force_flush behavior in zap_pte_range()

2014-05-03 Thread Linus Torvalds
On Sat, May 3, 2014 at 4:37 PM, Richard Weinberger wrote: > Commit 1cf35d47 (mm: split 'tlb_flush_mmu()' into tlb flushing and memory > freeing parts) > accidently changed the behavior of the force_flush variable. No it didn't. There was nothing accidental about it, and it doesn't even change it

Re: [PATCH] IPC initialize shmmax and shmall from the current value not the default

2014-05-03 Thread Davidlohr Bueso
On Sun, 2014-05-04 at 01:48 +0300, Marian Marinov wrote: > When we are creating new IPC namespace that should be cloned from the current > namespace it is a good idea to copy the > values of the current shmmax and shmall to the new namespace. Why is this a good idea? This would break userspace

Re: [PATCH v2] x86: Return to kernel without IRET

2014-05-03 Thread Andy Lutomirski
On Sat, May 3, 2014 at 3:19 PM, H. Peter Anvin wrote: > On 05/03/2014 04:24 AM, Steven Rostedt wrote: >> On Fri, 02 May 2014 21:03:10 -0700 >> "H. Peter Anvin" wrote: >> >>> >>> I'd really like to see a workload which would genuinely benefit before >>> adding more complexity. Now... if we can de

[PATCH] mm: Fix force_flush behavior in zap_pte_range()

2014-05-03 Thread Richard Weinberger
Commit 1cf35d47 (mm: split 'tlb_flush_mmu()' into tlb flushing and memory freeing parts) accidently changed the behavior of the force_flush variable. Before the patch it was set by __tlb_remove_page(). Now it is only set to 1 if __tlb_remove_page() returns false but never set back to 0 if __tlb_r

[PATCH] staging: binder: fix usage of uninit scalar in binder_transaction()

2014-05-03 Thread Christian Engelmayer
Fix the error path when a cookie mismatch is detected. In that case the function jumps to the exit label without setting the uninitialized, local variable 'return_error'. Detected by Coverity - CID 201453. Signed-off-by: Christian Engelmayer --- Compile tested and applies against branch staging-n

Re: [PATCH 1/5] ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)

2014-05-03 Thread Olof Johansson
On Wed, Apr 30, 2014 at 4:45 AM, Jason Cooper wrote: > On Tue, Apr 29, 2014 at 12:06:03PM -0700, Brian Norris wrote: >> Hi Stephen, >> >> On Fri, Apr 25, 2014 at 10:39:37AM -0600, Stephen Warren wrote: >> > On 04/17/2014 01:21 AM, Brian Norris wrote: >> > > These defconfigs contain the CONFIG_M25P

[PATCH] IPC initialize shmmax and shmall from the current value not the default

2014-05-03 Thread Marian Marinov
When we are creating new IPC namespace that should be cloned from the current namespace it is a good idea to copy the values of the current shmmax and shmall to the new namespace. Copying the values of the init_ipc_ns would allow us to create new ipc namespaces with different values without gran

Re: [PATCH v2] x86: Return to kernel without IRET

2014-05-03 Thread H. Peter Anvin
On 05/03/2014 04:24 AM, Steven Rostedt wrote: > On Fri, 02 May 2014 21:03:10 -0700 > "H. Peter Anvin" wrote: > >> >> I'd really like to see a workload which would genuinely benefit before >> adding more complexity. Now... if we can determine that it doesn't harm >> anything and would solve the N

Re: bug: acpi ata_bay dock reminds undocked

2014-05-03 Thread Pali Rohár
On Wednesday 30 April 2014 11:24:50 Pali Rohár wrote: > On Tuesday 29 April 2014 23:35:42 Rafael J. Wysocki wrote: > > On Tuesday, April 29, 2014 11:00:01 PM Pali Rohár wrote: > > > On Tuesday 29 April 2014 22:55:07 Rafael J. Wysocki wrote: > > > > Which kernel version(s) have you tried? > > > > >

Re: [PATCH 0/2] namespaces: log namespaces per task

2014-05-03 Thread James Bottomley
On Tue, 2014-04-22 at 14:12 -0400, Richard Guy Briggs wrote: > Questions: > Is there a way to link serial numbers of namespaces involved in migration of a > container to another kernel? (I had a brief look at CRIU.) Is there a unique > identifier for each running instance of a kernel? Or at leas

Re: [PATCH v2] x86/mce: Improve mcheck_init_device() error handling

2014-05-03 Thread mathieu souchaud
I took some time to make a light kvm guest and "inject" errors. It seems to work fine (after solving a deadlock issue :) ). Mathieu S. Le 03/05/2014 23:03, Mathieu Souchaud a écrit : Check return code of every function called by mcheck_init_device(). Signed-off-by: Mathieu Souchaud --- arc

[tip:irq/core] genirq: Sanitize spurious interrupt detection of threaded irqs

2014-05-03 Thread tip-bot for Thomas Gleixner
Commit-ID: 1e77d0a1ed7417d2a5a52a7b8d32aea1833faa6c Gitweb: http://git.kernel.org/tip/1e77d0a1ed7417d2a5a52a7b8d32aea1833faa6c Author: Thomas Gleixner AuthorDate: Thu, 7 Mar 2013 14:53:45 +0100 Committer: Thomas Gleixner CommitDate: Sat, 3 May 2014 23:15:39 +0200 genirq: Sanitize spuri

Re: [patch] staging: rtl8723au: fix some confusing indenting

2014-05-03 Thread Jes Sorensen
Dan Carpenter writes: > The break and the "unknown++" are at the same indent level so my static > checker complains. The if statement should be indented more. > > Signed-off-by: Dan Carpenter Urgh yes, that should be cleaned up! Acked-by: Jes Sorensen > > diff --git a/drivers/staging/rtl8723

[PATCH v2] x86/mce: Improve mcheck_init_device() error handling

2014-05-03 Thread Mathieu Souchaud
Check return code of every function called by mcheck_init_device(). Signed-off-by: Mathieu Souchaud --- arch/x86/kernel/cpu/mcheck/mce.c | 49 +++--- 1 file changed, 41 insertions(+), 8 deletions(-) diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kerne

[PATCH 2/2] FS/FSCACHE: convert printk to pr_foo()

2014-05-03 Thread Fabian Frederick
-All printk converted to pr_foo() except internal.h: printk(KERN_DEBUG -Coalesce formats. -Add pr_fmt Cc: David Howells Cc: Andrew Morton Signed-off-by: Fabian Frederick --- fs/fscache/cache.c | 13 ++--- fs/fscache/cookie.c| 2 +- fs/fscache/internal.h | 26 -

[PATCH V2] fs/reiserfs/stree.c: remove obsolete __constant

2014-05-03 Thread Fabian Frederick
__constant_cpu_to_le32 converted to cpu_to_le32 Cc: reiserfs-de...@vger.kernel.org Cc: Andrew Morton Signed-off-by: Fabian Frederick --- V2: Cc email fixed fs/reiserfs/stree.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/reiserfs/stree.c b/fs/reiserfs/stree.c

[PATCH 1/1] fs/locks.c: replace seq_printf by seq_puts

2014-05-03 Thread Fabian Frederick
Replace seq_printf where possible Cc: Jeff Layton Cc: Alexander Viro Cc: Andrew Morton Signed-off-by: Fabian Frederick --- fs/locks.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/fs/locks.c b/fs/locks.c index e663aea..78ac209 100644 --- a/fs/loc

[patch resend] agp: info leak in agpioc_info_wrap()

2014-05-03 Thread Dan Carpenter
On 64 bit systems the agp_info struct has a 4 byte hole between ->agp_mode and ->aper_base. We need to clear it to avoid disclosing stack information to userspace. Signed-off-by: Dan Carpenter --- I sent this before on 13 Apr 2013 and a reminder on 31 May 2013 so now I'm going to try sneak it in

[PATCH 1/1] mm/mempolicy.c: parameter doc uniformization

2014-05-03 Thread Fabian Frederick
Also fixes kernel-doc warning Cc: Mel Gorman Cc: Andrew Morton Signed-off-by: Fabian Frederick --- mm/mempolicy.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 78e1472..2bf0787 100644 --- a/mm/mempolicy.c +++

[PATCH 1/1] fs/reiserfs/stree.c: remove obsolete __constant

2014-05-03 Thread Fabian Frederick
__constant_cpu_to_le32 converted to cpu_to_le32 Cc: reiserfs-de...@vger.kernel.org Cc: Andrew Morton Signed-off-by: Fabian Frederick --- fs/reiserfs/stree.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/reiserfs/stree.c b/fs/reiserfs/stree.c index b14706a..615cd

[patch] staging: rtl8723au: fix some confusing indenting

2014-05-03 Thread Dan Carpenter
The break and the "unknown++" are at the same indent level so my static checker complains. The if statement should be indented more. Signed-off-by: Dan Carpenter diff --git a/drivers/staging/rtl8723au/core/rtw_mlme_ext.c b/drivers/staging/rtl8723au/core/rtw_mlme_ext.c index eb7b98e..4ad80e7 10

[PATCH 1/2] FS/FSCACHE: replace seq_printf by seq_puts

2014-05-03 Thread Fabian Frederick
Replace seq_printf where possible + coalesce formats from 2 existing seq_puts Cc: David Howells Cc: Andrew Morton Signed-off-by: Fabian Frederick --- fs/fscache/histogram.c | 6 ++ fs/fscache/object-list.c | 8 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/fs/fs

[PATCH 1/1] FS/CIFS: remove obsolete __constant

2014-05-03 Thread Fabian Frederick
Replacing all __constant_foo to foo() except in smb2status.h (1700 lines to update). Cc: linux-c...@vger.kernel.org Cc: Steve French Cc: Andrew Morton Signed-off-by: Fabian Frederick --- fs/cifs/cifsacl.c | 2 +- fs/cifs/cifssmb.c | 20 ++-- fs/cifs/sess.c | 2 +- fs/ci

[PATCH 1/1] fs/ceph/debugfs.c: replace seq_printf by seq_puts

2014-05-03 Thread Fabian Frederick
Replace seq_printf where possible Cc: Sage Weil Cc: Andrew Morton Signed-off-by: Fabian Frederick --- fs/ceph/debugfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/ceph/debugfs.c b/fs/ceph/debugfs.c index 16b54aa..5a743ac 100644 --- a/fs/ceph/debugfs.c +++ b/fs

Re: [PATCH v2] staging: keucr: smilmain.c: Fix sparse warning

2014-05-03 Thread Tair Rzayev
On 2014.04.26. 01:24, Greg KH wrote: > On Mon, Apr 21, 2014 at 08:42:47PM +0300, Tair wrote: >> From: Tair Rzayev >> >> Fix "Should be static" sparse warning: >> * Add Check_D_MediaFmt() declaration to smil.h; >> * Move Check_D_MediaFmt() implementation up in smilmain.c to keep >> all the non-s

Re: [3.15rc1] BUG at mm/filemap.c:202!

2014-05-03 Thread Richard Weinberger
On Thu, May 1, 2014 at 6:20 PM, Richard Weinberger wrote: > On Wed, Apr 16, 2014 at 10:40 PM, Hugh Dickins wrote: >> On Tue, 15 Apr 2014, Dave Jones wrote: >> >>> kernel BUG at mm/filemap.c:202! >>> invalid opcode: [#1] PREEMPT SMP DEBUG_PAGEALLOC >>> Modules linked in: tun fuse bnep rfcomm

[PATCH 1/2] Revert "um: Fix wait_stub_done() error handling"

2014-05-03 Thread Richard Weinberger
This reverts commit 0974a9cadc7886f7baaa458bb0c89f5c5f9d458e. It was a bad idea and was only papering over the real issue. Signed-off-by: Richard Weinberger --- arch/um/os-Linux/skas/process.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/arch/um/os-Linux/skas/proc

[PATCH 2/2] um: Ensure that nobody remaps the stub vma

2014-05-03 Thread Richard Weinberger
This fixes a long standing problem that UML crashes or locks up if a task messes with it' stub vma. Reported-by: toralf.foers...@gmx.de Signed-off-by: Richard Weinberger --- arch/um/kernel/tlb.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/arch/um/kerne

Re: [RFC] An Immune System for Linux

2014-05-03 Thread el_es
Al Viro ZenIV.linux.org.uk> writes: > > On Fri, May 02, 2014 at 06:27:56PM -0700, Sterling Huxley wrote: > ^^ > Better luck next year, and you might want to start preparing a posting a month > earlier than this time around - you are 31 days late. > Or someone is trying to beat htt

Re: [PATCH v2] x86: Return to kernel without IRET

2014-05-03 Thread H. Peter Anvin
On 05/03/2014 06:54 AM, Linus Torvalds wrote: > On Fri, May 2, 2014 at 11:12 PM, H. Peter Anvin wrote: >> On 05/02/2014 09:32 PM, Linus Torvalds wrote: >>> >>> At least as a proof-of-concept, having a code sequence in user mode >>> trampoline that does >>> >>>popq %rsi >>>popq %r11 >>>

Re: [RFC] rtmutex: Do not boost fair tasks each other

2014-05-03 Thread Thomas Gleixner
On Thu, 1 May 2014, Kirill Tkhai wrote: > Higher priority does not provide exclusive privilege > of one fair task over the other. In this case priority > boosting looks excess. > > On RT patch with enabled PREEMPT_RT_FULL I see a lot of > rt_mutex_setprio() actions like > > 120 -> 118 >

Re: [PATCH v5 3/3] ARM: sunxi: Add IR controller support in DT on A20

2014-05-03 Thread Maxime Ripard
On Wed, Apr 30, 2014 at 09:16:50PM +0600, Alexander Bersenev wrote: > This patch adds IR controller in A20 Device-Tree: > - Two IR devices found in A20 user manual > - Pins for two devices > - One IR device physically found on Cubieboard 2 > - One IR device physically found on Cubietruck > > Signe

Re: [PATCH/RFC] Deprecate BUG/BUG_ON in favour of BUG_AND_HALT/BUG_AND_HALT_ON

2014-05-03 Thread Richard Weinberger
On Wed, Apr 30, 2014 at 5:03 PM, Paul Gortmaker wrote: > A long standing problem for us has been the misuse of BUG/BUG_ON. > The typical misuse is someone only thinking of what represents > a bug in their local code, and especially for people relatively > new to Linux, starting out in device drive

Re: dcache shrink list corruption?

2014-05-03 Thread Al Viro
On Sat, May 03, 2014 at 11:07:57AM -0700, Linus Torvalds wrote: > Sure, umount itself should be serialized by the sb lock, so there > should be only one umount dentry collector. But why wouldn't there be > shrinkers active due to memory pressure? > > generic_unmount_super() is called by ->kill_sb(

Re: dcache shrink list corruption?

2014-05-03 Thread Al Viro
On Sat, May 03, 2014 at 05:26:04AM +0100, Al Viro wrote: > See vfs.git#dentry_kill-3; warning - this is completely untested and I would > really like comments on spinning case there (i.e. the one where > select_collect() > finds some stuff already on some other shrink list and nothing with zero >

Re: Possible regression: sluggish inputs

2014-05-03 Thread Hans de Goede
Hi, On 05/03/2014 07:38 PM, tbil...@gmx.com wrote: > Hi, > > On Saturday, 03 May 2014 at 10:00:38, Hans de Goede wrote: > >> On 05/02/2014 07:03 PM, Tibor Billes wrote: >> >>> Hi, >>> >>> I've upgraded my 3.13.5 kernel to 3.14.2 and I noticed that >>> sometimes my mouse is slow to react. By slow

Re: dcache shrink list corruption?

2014-05-03 Thread Linus Torvalds
On Fri, May 2, 2014 at 9:26 PM, Al Viro wrote: > > See vfs.git#dentry_kill-3; warning - this is completely untested and I would > really like comments on spinning case there (i.e. the one where > select_collect() > finds some stuff already on some other shrink list and nothing with zero > refcoun

[PATCH v3 5/6] acerhdf: added critical trip point

2014-05-03 Thread Peter Feuerer
added critical trip point which represents the temperature limit. Cc: Andrew Morton Cc: Andreas Mohr Cc: Borislav Petkov Cc: Javi Merino Signed-off-by: Peter Feuerer --- drivers/platform/x86/acerhdf.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/platform/x

[PATCH v3 3/6] thermal: Added Bang-bang thermal governor

2014-05-03 Thread Peter Feuerer
The bang-bang thermal governor uses a hysteresis to switch abruptly on or off a cooling device. It is intended to control fans, which can not be throttled but just switched on or off. Bang-bang cannot be set as default governor as it is intended for special devices only. For those special devices

[PATCH v3 4/6] acerhdf: Use bang-bang thermal governor

2014-05-03 Thread Peter Feuerer
acerhdf has been doing an on-off fan control using hysteresis by post-manipulating the outcome of thermal subsystem trip point handling. This patch enables acerhdf to use the bang-bang governor, which is intended for on-off controlled fans. Cc: Andrew Morton CC: Zhang Rui Cc: Andreas Mohr Cc: B

[PATCH v3 0/6] acerhdf/thermal: adding new models, appropriate governor and minor clean up

2014-05-03 Thread Peter Feuerer
Hi, This patch series is intended to: * Introduce "manual mode" support (Patch 1 & 2), which is needed to control the fan of a few new models. * Add an appropriate thermal governor (Patch 3 & 4). Manipulating and fiddling around with the step-wise governor has been a very fragile t

[PATCH v3 1/6] acerhdf: Adding support for "manual mode"

2014-05-03 Thread Peter Feuerer
Some Acer models require an additional command to turn off the fan after bios mode has been enabled. Adding new section in bios table to allow support for those models, by writing an extra "manual mode" register. Cc: Andrew Morton Cc: Andreas Mohr Cc: Borislav Petkov Signed-off-by: Peter Feuer

[PATCH v3 2/6] acerhdf: Adding support for new models

2014-05-03 Thread Peter Feuerer
added following new models: * Aspire 5755G * AO521 * AO751h * Aspire One 753 * Extensa 5420 * Aspire 5315 * Aspire 5739G * TravelMate TM8573T Cc: Andrew Morton Cc: Andreas Mohr Cc: Borislav Petkov Signed-off-by: Peter Feuerer --- drivers/platform/x86/acerhdf.c | 25 +++

[PATCH v3 6/6] acerhdf: minor clean up

2014-05-03 Thread Peter Feuerer
* renamed bios_settings_t to bios_settings, as it is no typedef * replaced "unsigned char" by u8 in bios_settings struct for better readability. Cc: Andrew Morton Cc: Andreas Mohr Cc: Borislav Petkov Signed-off-by: Peter Feuerer --- drivers/platform/x86/acerhdf.c | 12 ++-- 1

Re: [PATCH v5 2/3] ARM: sunxi: Add driver for sunxi IR controller

2014-05-03 Thread Maxime Ripard
On Wed, Apr 30, 2014 at 09:16:49PM +0600, Alexander Bersenev wrote: > This patch adds driver for sunxi IR controller. > It is based on Alexsey Shestacov's work based on the original driver > supplied by Allwinner. > > Signed-off-by: Alexander Bersenev > Signed-off-by: Alexsey Shestacov > --- >

Re: [PATCH v5 1/3] ARM: sunxi: Add documentation for sunxi consumer infrared devices

2014-05-03 Thread Maxime Ripard
On Wed, Apr 30, 2014 at 09:16:48PM +0600, Alexander Bersenev wrote: > This patch adds documentation for Device-Tree bindings for sunxi IR > controller. > > Signed-off-by: Alexander Bersenev > Signed-off-by: Alexsey Shestacov > --- > .../devicetree/bindings/media/sunxi-ir.txt | 23 > +++

Re: Possible regression: sluggish inputs

2014-05-03 Thread tbilles
Hi, On Saturday, 03 May 2014 at 10:00:38, Hans de Goede wrote: > On 05/02/2014 07:03 PM, Tibor Billes wrote: > > > Hi, > > > > I've upgraded my 3.13.5 kernel to 3.14.2 and I noticed that > > sometimes my mouse is slow to react. By slow I mean the pointer on > > the screen doesn't follow its path

[ANNOUNCE] 3.14.2-rt3

2014-05-03 Thread Sebastian Andrzej Siewior
Dear RT folks! I'm pleased to announce the v3.14.2-rt3 patch set. Changes since v3.14.2-rt2 - rwsem readers are now not allowed to nest. A patch rom Steven Rostedt. - a few bugs were fixed in the hotplug code which were made during the v3.14 port. Fixed by Mike Galbraith. - Mike Galbraith sent

(no subject)

2014-05-03 Thread James McCammond
Komfortable direkte Kredit-Angebot! Wir bieten dringende Darlehen zu einem sehr niedrigen Zinssatz von 4%, wir sind in einer breiten Palette von Kreditvergabe und unsere Region ist die Erbringung von Finanzdienstleistungen weltweit. Wir sind spezialisiert auf Immobilien-Investoren, Finanzierung,

lock_task_sighand() && rcu_boost()

2014-05-03 Thread Oleg Nesterov
Paul, I just noticed by accident that __lock_task_sighand() looks ugly and mysterious ;) And I am puzzled. a841796f11c90d53 "signal: align __lock_task_sighand() irq disabling and RCU" says: The __lock_task_sighand() function calls rcu_read_lock() with interrupts and preemption en

Re: [PATCH 1/2] iio: fix possible buffer overflow

2014-05-03 Thread Alexandre Belloni
On 03/05/2014 at 11:11:50 +0100, Jonathan Cameron wrote : > On 02/05/14 23:40, Alexandre Belloni wrote: > >Found using smatch: > >drivers/iio/industrialio-core.c:719 iio_device_add_info_mask_type() error: > >buffer overflow 'iio_chan_info_postfix' 17 <= 63 > > > >It was probably never hit because t

[PATCH] tracing: Remove myself as a tracing maintainer

2014-05-03 Thread Frederic Weisbecker
It has been a while since I last sent a tracing patch. I always keep an eye on tracing evolutions and contributions in general but given how busy I am with nohz, isolation and more generally core cleanups stuff, I seldom have time left to provide deep reviews of tracing patches nor simply for revie

Atualize a sua conta Unicamp Webmail

2014-05-03 Thread Unicamp E-mail do Administrador
-- Caros assinantes válidos Unicamp, Esta mensagem é a partir da Unicamp Administrador E-mail Serviço de TI para todos nossos subscribers.You conta de e-mail são fornecer-nos a seguir informações para revalidar sua conta devido a spam e atualização Unicamp a versão de spam New mês. Aviso: A

Re: [PATCH] USB: ehci-hub: wait for RESUME finished when hub try to clear SUSPEND

2014-05-03 Thread Alan Stern
On Sat, 3 May 2014, xiao jin wrote: > We use usb ehci to connect with modem and run stress test on ehci > remote wake. Sometimes usb disconnect. We add more debug ftrace > (Kernel version: 3.10) and list the key log to show how problem > happened. > > -0 [000] d.h2 26879.385095: ehci_irq: irq

[PATCH] staging: rtl8821ae: mark pointer in pci_iounmap as __iomem

2014-05-03 Thread Martin Kepplinger
pci_iounmap is used that way in drivers/net/wireless/rtlwifi and this fixes sparse warnings. Signed-off-by: Martin Kepplinger --- drivers/staging/rtl8821ae/pci.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8821ae/pci.c b/drivers/staging/rtl8821ae

Re: [PATCH 0/4] Introducing Exynos ChipId driver

2014-05-03 Thread Arnd Bergmann
On Saturday 03 May 2014 15:11:36 Pankaj Dubey wrote: > This patch series attempts to get rid of soc_is_exynos macros > and eventually with the help of this series we can probably get > rid of CONFIG_SOC_EXYNOS in near future. > Each Exynos SoC has ChipID block which can give information abo

Re: [PATCH 4/4] test: validate sysctl_writes_strict

2014-05-03 Thread Randy Dunlap
On 05/01/2014 02:26 PM, Kees Cook wrote: This adds several behavioral tests to sysctl string and number writing to detect unexpected cases that behaved differently when the sysctl kernel.sysctl_writes_strict != 1. Signed-off-by: Kees Cook --- kernel/sysctl.c |

  1   2   >