Re: [PATCH RESEND][pciutils] libpci: pci_id_lookup - add udev/hwdb support

2014-02-12 Thread Martin Mares
Hi! Ping? Sorry for the delay, I was alternatingly ill and overloaded with other stuff... As I said before, I do not like the current implementation of hwdb much (it's too much tied to Linux, and hardware description strings, originally intended for internal use between the kernel and its

Re: [PATCH v2 0/6] ARM: firmware: improvements to Trusted Foundations support

2014-02-12 Thread Stephen Warren
On 02/11/2014 06:38 PM, Olof Johansson wrote: On Fri, Feb 07, 2014 at 01:35:00PM +0900, Alexandre Courbot wrote: These (mostly minor) patches fix a few typos, improve points that were agreed upon when the Trusted Foundation series was initially submitted, and more importantly add support for a

Re: [PATCH 0/4] hugetlb: add hugepagesnid= command-line option

2014-02-12 Thread Luiz Capitulino
On Tue, 11 Feb 2014 19:59:40 -0800 (PST) David Rientjes rient...@google.com wrote: On Tue, 11 Feb 2014, Luiz Capitulino wrote: HugeTLB command-line option hugepages= allows the user to specify how many huge pages should be allocated at boot. On NUMA systems, this argument

Re: [RFC PATCH] rcu: move SRCU grace period work to power efficient workqueue

2014-02-12 Thread Paul E. McKenney
On Wed, Feb 12, 2014 at 02:23:54PM -0500, Tejun Heo wrote: Hello, On Wed, Feb 12, 2014 at 11:02:41AM -0800, Paul E. McKenney wrote: +2. Use the /sys/devices/virtual/workqueue/*/cpumask sysfs files + to force the WQ_SYSFS workqueues to run on the specified set + of CPUs. The set of

Re: 3.14-rc2 XFS backtrace because irqs_disabled.

2014-02-12 Thread Linus Torvalds
On Wed, Feb 12, 2014 at 3:39 AM, Al Viro v...@zeniv.linux.org.uk wrote: On Tue, Feb 11, 2014 at 10:28:12PM -0800, Linus Torvalds wrote: It looks like just do_signal() has a stack frame that is about 230 bytes even under normal circumstancs (largely due to struct ksignal - which in turn is

Re: [RFC PATCH] rcu: move SRCU grace period work to power efficient workqueue

2014-02-12 Thread Tejun Heo
On Wed, Feb 12, 2014 at 11:59:22AM -0800, Paul E. McKenney wrote: Documentation/kernel-per-CPU-kthreads.txt: Workqueue affinity This commit documents the ability to apply CPU affinity to WQ_SYSFS workqueues, thus offloading them from the desired worker CPUs. Signed-off-by: Paul E. McKenney

Re: Too many rescheduling interrupts (still!)

2014-02-12 Thread Peter Zijlstra
On Wed, Feb 12, 2014 at 10:19:42AM -0800, Andy Lutomirski wrote: static void ttwu_queue_remote(struct task_struct *p, int cpu) { - if (llist_add(p-wake_entry, cpu_rq(cpu)-wake_list)) - smp_send_reschedule(cpu); + struct rq *rq = cpu_rq(cpu); + + if

Re: [PATCH v4 2/3] x86, mpx: hook #BR exception handler to allocate bound tables

2014-02-12 Thread Andy Lutomirski
On 02/12/2014 10:36 AM, Qiaowei Ren wrote: An access to an invalid bound directory entry will cause a #BR exception. This patch hook #BR exception handler to allocate one bound table and bind it with that buond directory entry. This will avoid the need of forwarding the #BR exception to the

Re: [PATCH 3.13 000/120] 3.13.3-stable review

2014-02-12 Thread Willy Tarreau
Hi Greg, On Wed, Feb 12, 2014 at 05:29:57PM +0100, Willy Tarreau wrote: I upgraded my netbook from 3.10.x to test it (asus 1025C). It seems to work, cpufreq, SATA, FB, Xorg (gma500), wifi (ath9k), LAN (atl1c), sound, suspend. I'm hearing the fan run all the time without the CPU

Re: [RFC][PATCH 0/5] arch: atomic rework

2014-02-12 Thread Linus Torvalds
On Wed, Feb 12, 2014 at 10:07 AM, Paul E. McKenney paul...@linux.vnet.ibm.com wrote: Us Linux-kernel hackers will often need to use volatile semantics in combination with C11 atomics in most cases. The C11 atomics do cover some of the reasons we currently use ACCESS_ONCE(), but not all of

Re: [PATCH] thinkpad_acpi: Fix inconsistent mute LED after resume

2014-02-12 Thread Matthew Garrett
On Wed, 2014-02-12 at 16:32 +0100, Takashi Iwai wrote: The mute LED states have to be restored after resume. Hm. Is this something that should be done in the class code rather than in individual drivers? -- Matthew Garrett matthew.garr...@nebula.com

[PATCH v15 05/10] replace VVAR(vsyscall_gtod_data) by gtod macro

2014-02-12 Thread stefani
From: Stefani Seibold stef...@seibold.net There a currently more than 30 users of the gtod macro, so replace the last VVAR(vsyscall_gtod_data) by gtod macro. Signed-off-by: Stefani Seibold Stefani Seibold stef...@seibold.net --- arch/x86/vdso/vclock_gettime.c | 6 +++--- 1 file changed, 3

[PATCH v15 06/10] cleanup __vdso_gettimeofday

2014-02-12 Thread stefani
From: Stefani Seibold stef...@seibold.net This patch do a little cleanup for the __vdso_gettimeofday() function. It kick out an unneeded ret local variable and makes the code faster if only the timezone is needed. Signed-off-by: Stefani Seibold Stefani Seibold stef...@seibold.net ---

[PATCH v15 07/10] introduce VVAR marco for vdso32

2014-02-12 Thread stefani
From: Stefani Seibold stef...@seibold.net This patch revamp the vvar.h for introduce the VVAR macro for vdso32. Signed-off-by: Stefani Seibold Stefani Seibold stef...@seibold.net --- arch/x86/include/asm/vvar.h | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git

[PATCH v15 01/10] Make vsyscall_gtod_data handling x86 generic

2014-02-12 Thread stefani
From: Stefani Seibold stef...@seibold.net This patch move the vsyscall_gtod_data handling out of vsyscall_64.c into an additonal file vsyscall_gtod.c to make the functionality available for x86 32 bit kernel. It also adds a new vsyscall_32.c which setup the VVAR page. Signed-off-by: Stefani

Re: [PATCH] thinkpad_acpi: Fix inconsistent mute LED after resume

2014-02-12 Thread Matthew Garrett
On Wed, 2014-02-12 at 16:32 +0100, Takashi Iwai wrote: The mute LED states have to be restored after resume. Oh, never mind, we're not doing this through the LED class, are we? -- Matthew Garrett matthew.garr...@nebula.com

[PATCH v15 04/10] vclock_gettime.c __vdso_clock_gettime cleanup

2014-02-12 Thread stefani
From: Stefani Seibold stef...@seibold.net This patch is a small code cleanup for the __vdso_clock_gettime() function. It removes the unneeded return values from do_monotonic_coarse() and do_realtime_coarse() and add a fallback label for doing the kernel gettimeofday() system call.

[PATCH v15 0/10] Add 32 bit VDSO time function support

2014-02-12 Thread stefani
From: Stefani Seibold stef...@seibold.net This patch add the functions vdso_gettimeofday(), vdso_clock_gettime() and vdso_time() to the 32 bit VDSO. The reason to do this was to get a fast reliable time stamp. Many developers uses TSC to get a fast time stamp, without knowing the pitfalls. VDSO

[PATCH v15 08/10] Add 32 bit VDSO time support for 32 bit kernel

2014-02-12 Thread stefani
From: Stefani Seibold stef...@seibold.net This patch add the time support for 32 bit a VDSO to a 32 bit kernel. For 32 bit programs running on a 32 bit kernel, the same mechanism is used as for 64 bit programs running on a 64 bit kernel. Signed-off-by: Stefani Seibold Stefani Seibold

[PATCH v15 09/10] Add 32 bit VDSO time support for 64 bit kernel

2014-02-12 Thread stefani
From: Stefani Seibold stef...@seibold.net This patch add the VDSO time support for the IA32 Emulation Layer. Due the nature of the kernel headers and the LP64 compiler where the size of a long and a pointer differs against a 32 bit compiler, there is some type hacking necessary for optimal

[PATCH v15 02/10] Add new func _install_special_mapping() to mmap.c

2014-02-12 Thread stefani
From: Stefani Seibold stef...@seibold.net The _install_special_mapping() is the new base function for install_special_mapping(). This function will return a pointer of the created VMA or a error code in an ERR_PTR() This new function will be needed by the for the vdso 32 bit support to map the

[PATCH v15 03/10] revamp vclock_gettime.c

2014-02-12 Thread stefani
From: Stefani Seibold stef...@seibold.net This intermediate patch revamps the vclock_gettime.c by moving some functions around. It is only for spliting purpose, to make whole the 32 bit vdso timer patch easier to review. Signed-off-by: Stefani Seibold Stefani Seibold stef...@seibold.net ---

flaw in nf_tables: add reject module for NFPROTO_INET

2014-02-12 Thread Kees Cook
Hi, This seems like a legit problem detected by Coverity. Looks like a break is missing? -Kees On Tue, Feb 11, 2014 at 11:34:33PM -0800, scan-ad...@coverity.com wrote: Hi, Please find the latest report on new defect(s) introduced to Linux found with Coverity Scan. Defect(s)

Re: linux-next: build failure after merge of the final tree (cgroup tree related)

2014-02-12 Thread Sam Ravnborg
Hi Tejun. On Wed, Feb 12, 2014 at 09:27:00AM -0500, Tejun Heo wrote: On Wed, Feb 12, 2014 at 09:47:43PM +1100, Stephen Rothwell wrote: Hi, Tejun, On Wed, 12 Feb 2014 01:39:33 -0500 Tejun Heo t...@kernel.org wrote: On Wed, Feb 12, 2014 at 04:25:00PM +1100, Stephen Rothwell wrote:

Re: flaw in nf_tables: add reject module for NFPROTO_INET

2014-02-12 Thread Dave Jones
On Wed, Feb 12, 2014 at 12:43:08PM -0800, Kees Cook wrote: Hi, This seems like a legit problem detected by Coverity. Looks like a break is missing? yup, reported this morning. (Also note that I changed the state in coverity once Patrick confirmed it) Dave -- To unsubscribe

[PATCH v9] xen/grant-table: Avoid m2p_override during mapping

2014-02-12 Thread Zoltan Kiss
The grant mapping API does m2p_override unnecessarily: only gntdev needs it, for blkback and future netback patches it just cause a lock contention, as those pages never go to userspace. Therefore this series does the following: - the original functions were renamed to __gnttab_[un]map_refs, with

Re: flaw in nf_tables: add reject module for NFPROTO_INET

2014-02-12 Thread Kees Cook
On Wed, Feb 12, 2014 at 03:50:37PM -0500, Dave Jones wrote: On Wed, Feb 12, 2014 at 12:43:08PM -0800, Kees Cook wrote: Hi, This seems like a legit problem detected by Coverity. Looks like a break is missing? yup, reported this morning. (Also note that I changed the state in

[PATCH v4 1/6] x86/mm: sparse warning fix for early_memremap

2014-02-12 Thread Mark Salter
From: Dave Young dyo...@redhat.com There's a lot of sparse warnings for code like below: void *a = early_memremap(phys_addr, size); early_memremap intend to map kernel memory with ioremap facility, the return pointer should be a kernel ram pointer instead of iomem one. For making the function

[PATCH v4 3/6] x86: use generic early_ioremap

2014-02-12 Thread Mark Salter
Move x86 over to the generic early ioremap implementation. Signed-off-by: Mark Salter msal...@redhat.com --- arch/x86/Kconfig | 1 + arch/x86/include/asm/Kbuild | 1 + arch/x86/include/asm/fixmap.h | 6 ++ arch/x86/include/asm/io.h | 15 +-- arch/x86/mm/ioremap.c

[PATCH v4 2/6] mm: create generic early_ioremap() support

2014-02-12 Thread Mark Salter
This patch creates a generic implementation of early_ioremap() support based on the existing x86 implementation. early_ioremp() is useful for early boot code which needs to temporarily map I/O or memory regions before normal mapping functions such as ioremap() are available. Some architectures

[PATCH v4 0/6] generic early_ioremap support

2014-02-12 Thread Mark Salter
This patch series takes the common bits from the x86 early ioremap implementation and creates a generic implementation which may be used by other architectures. The early ioremap interfaces are intended for situations where boot code needs to make temporary virtual mappings before the normal

[PATCH v4 4/6] arm: add early_ioremap support

2014-02-12 Thread Mark Salter
This patch uses the generic early_ioremap code to implement early_ioremap for ARM. The ARM-specific bits come mostly from an earlier patch from Leif Lindholm leif.lindh...@linaro.org here: https://lkml.org/lkml/2013/10/3/279 Signed-off-by: Mark Salter msal...@redhat.com Tested-by: Leif

Re: [PATCH v15 10/10] do conditional fixmap of VVAR and HPET page

2014-02-12 Thread Andy Lutomirski
On Wed, Feb 12, 2014 at 12:40 PM, stef...@seibold.net wrote: From: Stefani Seibold Stefani Seibold stef...@seibold.net This patch adds conditional fixmap of the VVAR and HPET pages for a 32 bit kernel Signed-off-by: Stefani Seibold Stefani Seibold stef...@seibold.net Looks good to me.

[PATCH v4 5/6] arm64: initialize pgprot info earlier in boot

2014-02-12 Thread Mark Salter
Presently, paging_init() calls init_mem_pgprot() to initialize pgprot values used by macros such as PAGE_KERNEL, PAGE_KERNEL_EXEC, etc. The new fixmap and early_ioremap support also needs to use these macros before paging_init() is called. This patch moves the init_mem_pgprot() call out of

Re: [PATCH 00/04] PCI: rcar: Driver model and physical address space update

2014-02-12 Thread Bjorn Helgaas
On Wed, Feb 05, 2014 at 03:52:43PM +0900, Magnus Damm wrote: PCI: rcar: Driver model and physical address space update [PATCH 01/04] PCI: rcar: Register each instance independently [PATCH 02/04] PCI: rcar: Break out window size handling [PATCH 03/04] PCI: rcar: Add DMABOUNCE support [PATCH

[PATCH v4 6/6] arm64: add early_ioremap support

2014-02-12 Thread Mark Salter
Add support for early IO or memory mappings which are needed before the normal ioremap() is usable. This also adds fixmap support for permanent fixed mappings such as that used by the earlyprintk device register region. Signed-off-by: Mark Salter msal...@redhat.com ---

[PATCH] x86, acpi: LLVMLinux: Remove nested functions from Thinkpad ACPI

2014-02-12 Thread dl9pf
From: Behan Webster beh...@converseincode.com The only real change is passing in event_mask to the formerly nested functions. Otherwise it's just moving around function and macro code. This is the only place in the Linux kernel where nested functions are still in use. Nested functions aren't

[RFC 1/2] Arch: Kconfig: Disable obsolete syscalls

2014-02-12 Thread Fabian Frederick
This patch adds a generic configuration flag to disable obsolete system calls (ie no longer supported by current c libraries). Signed-off-by: Fabian Frederick f...@skynet.be --- arch/Kconfig | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/Kconfig b/arch/Kconfig index

Re: x86_pmu_start WARN_ON.

2014-02-12 Thread Vince Weaver
On Tue, 11 Feb 2014, Peter Zijlstra wrote: I'll see if I can run through the reproduction case by hand. I've come up with an even simpler test case with all of the extraneous settings removed. Included below. It is triggered in this case when you have: An event group of breakpoint,

[RFC 2/2] Arch: Kconfig: Disable obsolete syscalls

2014-02-12 Thread Fabian Frederick
fs: sysfs syscall: Disable if DISABLE_OBSOLETE_SYSCALLS sysfs syscall is obsolete (cf man sysfs). Don't define fs_index, fs_name, fs_maxindex functions when DISABLE_OBSOLETE_SYSCALLS is defined. In that case, SYSCALL_DEFINE3(sysfs...) returns automatically -EINVAL. Signed-off-by: Fabian

Re: flaw in nf_tables: add reject module for NFPROTO_INET

2014-02-12 Thread Dave Jones
On Wed, Feb 12, 2014 at 12:54:53PM -0800, Kees Cook wrote: On Wed, Feb 12, 2014 at 03:50:37PM -0500, Dave Jones wrote: On Wed, Feb 12, 2014 at 12:43:08PM -0800, Kees Cook wrote: Hi, This seems like a legit problem detected by Coverity. Looks like a break is missing?

Re: [PATCH v4 3/8] at91: dt: Add at91sam9261 dt SoC support

2014-02-12 Thread Alexandre Belloni
Sorry, one more comment on that patch: On 12/02/2014 at 11:06:42 +0100, Jean-Jacques Hiblot wrote : + pinctrl@f400 { + #address-cells = 1; + #size-cells = 1; + compatible =

Re: flaw in nf_tables: add reject module for NFPROTO_INET

2014-02-12 Thread Kees Cook
On Wed, Feb 12, 2014 at 04:03:47PM -0500, Dave Jones wrote: I wonder if it's worth getting a cover...@vger.kernel.org list set up for cc'ing stuff like this to reduce dupe reports (though this is the first I recall in a while), and for review of patches etc before forwarding them on to their

Re: [PATCH] x86, acpi: LLVMLinux: Remove nested functions from Thinkpad ACPI

2014-02-12 Thread Christoph Hellwig
On Wed, Feb 12, 2014 at 09:58:46PM +0100, dl...@gmx.de wrote: being able to compile the Linux kernel with Clang. The use of nested functions blocks this effort. Is there any good way to make gcc warn about the use of nested functions? -- To unsubscribe from this list: send the line unsubscribe

Re: [RFC 2/2] Arch: Kconfig: Disable obsolete syscalls

2014-02-12 Thread Andrew Morton
On Wed, 12 Feb 2014 21:04:40 +0800 Fabian Frederick f...@skynet.be wrote: fs: sysfs syscall: Disable if DISABLE_OBSOLETE_SYSCALLS sysfs syscall is obsolete (cf man sysfs). Don't define fs_index, fs_name, fs_maxindex functions when DISABLE_OBSOLETE_SYSCALLS is defined. In that case,

Re: 3.14-rc2 XFS backtrace because irqs_disabled.

2014-02-12 Thread Al Viro
On Wed, Feb 12, 2014 at 12:13:19PM -0800, Linus Torvalds wrote: On Wed, Feb 12, 2014 at 3:39 AM, Al Viro v...@zeniv.linux.org.uk wrote: On Tue, Feb 11, 2014 at 10:28:12PM -0800, Linus Torvalds wrote: It looks like just do_signal() has a stack frame that is about 230 bytes even under

Re: 3.14-rc2 XFS backtrace because irqs_disabled.

2014-02-12 Thread Dave Chinner
On Wed, Feb 12, 2014 at 09:25:38AM -0500, Dave Jones wrote: On Wed, Feb 12, 2014 at 05:10:38PM +1100, Dave Chinner wrote: On Wed, Feb 12, 2014 at 12:50:27AM -0500, Dave Jones wrote: On Wed, Feb 12, 2014 at 04:40:43PM +1100, Dave Chinner wrote: None of the XFS code disables

Re: linux-next: build failure after merge of the final tree (cgroup tree related)

2014-02-12 Thread Tejun Heo
On Wed, Feb 12, 2014 at 04:25:00PM +1100, Stephen Rothwell wrote: Hi all, After merging the final tree, today's linux-next build (sparc defconfig) failed like this: arch/sparc/kernel/sun4m_irq.c: In function 'sun4m_build_device_irq': arch/sparc/kernel/sun4m_irq.c:266:2: error: implicit

Re: [PATCH] x86, acpi: LLVMLinux: Remove nested functions from Thinkpad ACPI

2014-02-12 Thread Behan Webster
On 02/12/14 13:11, Christoph Hellwig wrote: On Wed, Feb 12, 2014 at 09:58:46PM +0100, dl...@gmx.de wrote: being able to compile the Linux kernel with Clang. The use of nested functions blocks this effort. Is there any good way to make gcc warn about the use of nested functions? Interesting

[RFT][PATCH v3] mmc: change cb710-mmc platform power management to use dev_pm_ops

2014-02-12 Thread Shuah Khan
Change cb710-mmc platform driver to register pm ops using dev_pm_ops instead of legacy pm_ops. The existing legacy suspend/resume routines are identical and simply clear IRQ mask in the device in case it got undefined during sleep state. Changed code to collapse suspend and resume into one .pm

Re: [RFC PATCH v2 0/4] mtd: nand: add per partition ECC config

2014-02-12 Thread Boris BREZILLON
Hi Florian, On 12/02/2014 20:49, Florian Fainelli wrote: Hi Boris, 2014-02-11 13:46 GMT-08:00 Boris BREZILLON b.brezillon@gmail.com: Hello, This patch series is a proposal to add per partition ECC config. It defines a new partition type called nand_part which stores a pointer to a

Re: [RFC 2/2] Arch: Kconfig: Disable obsolete syscalls

2014-02-12 Thread Fabian Frederick
On Wed, 12 Feb 2014 13:13:14 -0800 Andrew Morton a...@linux-foundation.org wrote: On Wed, 12 Feb 2014 21:04:40 +0800 Fabian Frederick f...@skynet.be wrote: fs: sysfs syscall: Disable if DISABLE_OBSOLETE_SYSCALLS sysfs syscall is obsolete (cf man sysfs). Don't define fs_index,

[RFC][PATCH] mm: ksm: add MAP_MERGEABLE mmap() as a KSM shortcut

2014-02-12 Thread Dave Hansen
We are starting to see substantial amounts (seconds) of latency being incurred by users of mmap_sem in the worst case. It is very common to see them spike up in to the tens-of-ms range. Any acquisition, especially for write, is a potential problem. The aggravating factor here is that we have

Re: [PATCH 1/3] ath10k: Get rid of superfluous call to pci_disable_msi()

2014-02-12 Thread Kalle Valo
Bjorn Helgaas bhelg...@google.com writes: Well, as this series is small I thought it could quickly go thru your tree. But since ipr had conflicts, there is no point routing all patches altogether, so up to you guys. The wil6210 patch is already in your pci/msi branch though. It's in

Re: flaw in nf_tables: add reject module for NFPROTO_INET

2014-02-12 Thread tytso
On Wed, Feb 12, 2014 at 01:05:54PM -0800, Kees Cook wrote: I'd be up for it. It's why I CC'd you, I figured if I'd missed the report it would have likely have come from you. :) Perhaps just start by CCing each other, and if others want to get in on the fun too, move to a list then? I'm

Re: [PATCH] kernel: reduce required permission for prctl_set_mm

2014-02-12 Thread Andrew Morton
On Wed, 12 Feb 2014 19:40:11 +0400 Andrey Vagin ava...@openvz.org wrote: Currently prctl_set_mm requires the global CAP_SYS_RESOURCE, this patch reduce requiremence to CAP_SYS_RESOURCE in the current namespace. When we restore a task we need to set up text, data and data heap sizes from

Re: [PATCH] x86, acpi: LLVMLinux: Remove nested functions from Thinkpad ACPI

2014-02-12 Thread Richard Weinberger
On Wed, Feb 12, 2014 at 10:20 PM, Behan Webster beh...@converseincode.com wrote: On 02/12/14 13:11, Christoph Hellwig wrote: On Wed, Feb 12, 2014 at 09:58:46PM +0100, dl...@gmx.de wrote: being able to compile the Linux kernel with Clang. The use of nested functions blocks this effort. Is

Re: 3.14-rc2 XFS backtrace because irqs_disabled.

2014-02-12 Thread Linus Torvalds
On Wed, Feb 12, 2014 at 1:14 PM, Al Viro v...@zeniv.linux.org.uk wrote: Umm... What if we delay __sigqueue_free()? After all, that's where the fat sucker normally comes from. That way we might get away with much smaller structure on stack... Sounds like the RightThing(tm) to do to me, and

Re: [PATCH] x86, acpi: LLVMLinux: Remove nested functions from Thinkpad ACPI

2014-02-12 Thread Måns Rullgård
Behan Webster beh...@converseincode.com writes: On 02/12/14 13:11, Christoph Hellwig wrote: On Wed, Feb 12, 2014 at 09:58:46PM +0100, dl...@gmx.de wrote: being able to compile the Linux kernel with Clang. The use of nested functions blocks this effort. Is there any good way to make gcc

Re: [RFC/PATCH 0/3] Add devicetree scanning for randomness

2014-02-12 Thread Kees Cook
On Wed, Feb 12, 2014 at 9:45 AM, Jason Cooper ja...@lakedaemon.net wrote: I brought this up at last weeks devicetree irc meeting. My goal is to provide early randomness for kaslr on ARM. Currently, my idea is modify the init script to save an additional random seed from /dev/urandom to

Re: [PATCH 1/3] ath10k: Get rid of superfluous call to pci_disable_msi()

2014-02-12 Thread Bjorn Helgaas
On Wed, Feb 12, 2014 at 2:30 PM, Kalle Valo kv...@qca.qualcomm.com wrote: Bjorn Helgaas bhelg...@google.com writes: Well, as this series is small I thought it could quickly go thru your tree. But since ipr had conflicts, there is no point routing all patches altogether, so up to you guys. The

Re: [RFC PATCH v2 0/4] mtd: nand: add per partition ECC config

2014-02-12 Thread Boris BREZILLON
On 12/02/2014 22:20, Boris BREZILLON wrote: Hi Florian, On 12/02/2014 20:49, Florian Fainelli wrote: Hi Boris, 2014-02-11 13:46 GMT-08:00 Boris BREZILLON b.brezillon@gmail.com: Hello, This patch series is a proposal to add per partition ECC config. It defines a new partition type

Re: flaw in nf_tables: add reject module for NFPROTO_INET

2014-02-12 Thread Kees Cook
On Wed, Feb 12, 2014 at 09:31:51PM +, ty...@mit.edu wrote: I'm paying attention to Linux kernel coverity reports (as well as working on my goal to drive the number of e2fsprogs coverity reports to zero :-), so feel free to CC me on any reports. Okay, 3 people sounds like we need a mailing

Question about nfs4_destroy_session()

2014-02-12 Thread Paul E. McKenney
Hello, Trond, In nfs4_destroy_session(), there is an rcu_dereference() that looks to leak the returned pointer out of an RCU read-side critical section. If the pointed-to object might have just now been created, this is a bug because xprt_destroy_backchannel() dereferences this pointer. So, does

RE: [PATCH v5 1/1] watchdog: Add tegra watchdog

2014-02-12 Thread Andrew Chew
+static void tegra_wdt_unref(struct watchdog_device *wdd) { + struct tegra_wdt *wdt = watchdog_get_drvdata(wdd); + + kref_put(wdt-kref, tegra_wdt_release_resources); } I forget why these were needed; they seem to do nothing. The reason I did the whole kref thing was by following

Re: 3.14-rc2 XFS backtrace because irqs_disabled.

2014-02-12 Thread Al Viro
On Wed, Feb 12, 2014 at 01:32:55PM -0800, Linus Torvalds wrote: On Wed, Feb 12, 2014 at 1:14 PM, Al Viro v...@zeniv.linux.org.uk wrote: Umm... What if we delay __sigqueue_free()? After all, that's where the fat sucker normally comes from. That way we might get away with much smaller

[PATCH v6 1/1] watchdog: Add tegra watchdog

2014-02-12 Thread Andrew Chew
Add a driver for the hardware watchdogs in NVIDIA Tegra SoCs (Tegra30 and later). This driver will configure one watchdog timer that will reset the system in the case of a watchdog timeout. This driver binds to the nvidia,tegra30-timer device node and gets its register base from there.

Re: qib_lookup_qpn() appears to leak pointer out of rcu_read_unlock()

2014-02-12 Thread Paul E. McKenney
On Wed, Feb 12, 2014 at 02:57:14PM +, Marciniszyn, Mike wrote: BTW, I am considering eliminating the atomic_inc() in favor of widening the scope of the rcu lock expanse. As long as the newly included code doesn't block, that should work fine. (If it does block, another option is SRCU.)

Re: [PATCH v5 1/1] watchdog: Add tegra watchdog

2014-02-12 Thread Guenter Roeck
On Wed, Feb 12, 2014 at 01:43:37PM -0800, Andrew Chew wrote: +static void tegra_wdt_unref(struct watchdog_device *wdd) { + struct tegra_wdt *wdt = watchdog_get_drvdata(wdd); + + kref_put(wdt-kref, tegra_wdt_release_resources); } I forget why these were needed; they seem to do

Re: [PATCH] of: Turn of_match_node into a static inline when CONFIG_OF isn't set

2014-02-12 Thread Geert Uytterhoeven
On Tue, Feb 11, 2014 at 9:06 PM, Arnd Bergmann a...@arndb.de wrote: On Tuesday 11 February 2014 19:29:19 Geert Uytterhoeven wrote: On Tue, Feb 11, 2014 at 7:08 PM, Josh Cartwright jo...@codeaurora.org wrote: Ideally, all xxx_device_id look like struct xxx_device_id { ... /*

Re: [PATCH] x86, acpi: LLVMLinux: Remove nested functions from Thinkpad ACPI

2014-02-12 Thread David Rientjes
On Wed, 12 Feb 2014, dl...@gmx.de wrote: From: Behan Webster beh...@converseincode.com The only real change is passing in event_mask to the formerly nested functions. Otherwise it's just moving around function and macro code. This is the only place in the Linux kernel where nested

Re: Question about nfs4_destroy_session()

2014-02-12 Thread Trond Myklebust
On Feb 12, 2014, at 16:42, Paul E. McKenney paul...@linux.vnet.ibm.com wrote: Hello, Trond, In nfs4_destroy_session(), there is an rcu_dereference() that looks to leak the returned pointer out of an RCU read-side critical section. If the pointed-to object might have just now been created,

Re: [CRIU] [PATCH] kernel: reduce required permission for prctl_set_mm

2014-02-12 Thread Cyrill Gorcunov
On Wed, Feb 12, 2014 at 01:32:28PM -0800, Andrew Morton wrote: On Wed, 12 Feb 2014 19:40:11 +0400 Andrey Vagin ava...@openvz.org wrote: Currently prctl_set_mm requires the global CAP_SYS_RESOURCE, this patch reduce requiremence to CAP_SYS_RESOURCE in the current namespace. When we

Re: [PATCH] kernel: reduce required permission for prctl_set_mm

2014-02-12 Thread Kees Cook
On Wed, Feb 12, 2014 at 1:32 PM, Andrew Morton a...@linux-foundation.org wrote: On Wed, 12 Feb 2014 19:40:11 +0400 Andrey Vagin ava...@openvz.org wrote: Currently prctl_set_mm requires the global CAP_SYS_RESOURCE, this patch reduce requiremence to CAP_SYS_RESOURCE in the current namespace.

Re: [PATCH] x86: fix two sparse warnings in early boot string handling

2014-02-12 Thread David Rientjes
On Wed, 12 Feb 2014, Paul Gortmaker wrote: Actually no v2 pending. The original v1 patch was/is correct as-is. While x86-64 defconfig passed, it turns out that both strcmp and strstr have to stay, else we will get this on i386 allyesconfig builds: arch/x86/boot/compressed/eboot.o: In

Re: [PATCH -mm v15 00/13] kmemcg shrinkers

2014-02-12 Thread Johannes Weiner
On Wed, Feb 12, 2014 at 10:05:43PM +0400, Vladimir Davydov wrote: On 02/12/2014 12:19 AM, Johannes Weiner wrote: On Tue, Feb 11, 2014 at 07:15:26PM +0400, Vladimir Davydov wrote: Hi Michal, Johannes, David, Could you please take a look at this if you have time? Without your review,

Re: [PATCH] x86, acpi: LLVMLinux: Remove nested functions from Thinkpad ACPI

2014-02-12 Thread Al Viro
On Wed, Feb 12, 2014 at 01:54:43PM -0800, David Rientjes wrote: So this patch is only as a courtesy to clang and you're not complaining about things like __builtin() functions, typeof, or a ? : b conditional operators because clang happens to support them? That patch removes a disgusting

Re: Question about nfs4_destroy_session()

2014-02-12 Thread Paul E. McKenney
On Wed, Feb 12, 2014 at 04:55:02PM -0500, Trond Myklebust wrote: On Feb 12, 2014, at 16:42, Paul E. McKenney paul...@linux.vnet.ibm.com wrote: Hello, Trond, In nfs4_destroy_session(), there is an rcu_dereference() that looks to leak the returned pointer out of an RCU read-side

Re: [PATCH] kernel: reduce required permission for prctl_set_mm

2014-02-12 Thread Andrew Vagin
On Wed, Feb 12, 2014 at 01:32:28PM -0800, Andrew Morton wrote: On Wed, 12 Feb 2014 19:40:11 +0400 Andrey Vagin ava...@openvz.org wrote: Currently prctl_set_mm requires the global CAP_SYS_RESOURCE, this patch reduce requiremence to CAP_SYS_RESOURCE in the current namespace. When we

Re: [RFC 2/2] xen-netback: disable multicast and use a random hw MAC address

2014-02-12 Thread Luis R. Rodriguez
On Wed, Feb 12, 2014 at 3:15 AM, Ian Campbell ian.campb...@citrix.com wrote: On Tue, 2014-02-11 at 13:53 -0800, Luis R. Rodriguez wrote: Cc'ing kvm folks as they may have a shared interest on the shared physical case with the bridge (non NAT). On Tue, Feb 11, 2014 at 12:43 AM, Ian Campbell

3.12.9-rt13: BUG: soft lockup

2014-02-12 Thread Fernando Lopez-Lezcano
Hi all, I'm seeing these BUGs with 3.12.9-rt13 finally caught the messages. I was getting frozen machines with no traces left behind, this could possibly be it (see below - I have to retest with rt15) -- Fernando [771508.546420] BUG: soft lockup - CPU#5 stuck for 23s!

[PATCH] skd: disable discard support

2014-02-12 Thread Mike Snitzer
The skd driver has never handled discards reliably. The kernel will BUG as a result of issuing discards to the skd device. Disable the skd driver's discard support until it is proven reliable. The device-mapper-test-suite test that exposed this bug just issues a discard that covers a portion of

Re: skd: disable discard support

2014-02-12 Thread Mike Snitzer
On Wed, Feb 12 2014 at 5:18pm -0500, Mike Snitzer snit...@redhat.com wrote: The skd driver has never handled discards reliably. The kernel will BUG as a result of issuing discards to the skd device. Disable the skd driver's discard support until it is proven reliable. Here is the first BUG

Re: skd: disable discard support

2014-02-12 Thread Mike Snitzer
On Wed, Feb 12 2014 at 5:19pm -0500, Mike Snitzer snit...@redhat.com wrote: On Wed, Feb 12 2014 at 5:18pm -0500, Mike Snitzer snit...@redhat.com wrote: The skd driver has never handled discards reliably. The kernel will BUG as a result of issuing discards to the skd device. Disable

Re: OMAP: clock DT conversion issues with omap36xx

2014-02-12 Thread Belisko Marek
Hi Tomi, On Wed, Feb 12, 2014 at 2:18 PM, Tomi Valkeinen tomi.valkei...@ti.com wrote: Hi Tero, Christoph, On 07/02/14 12:12, Christoph Fritz wrote: On Tue, 2014-02-04 at 17:50 +0200, Tero Kristo wrote: On 01/29/2014 01:21 PM, Christoph Fritz wrote: Currently I only analyzed sys_clkout2 (see

Re: [PATCH] x86: fix two sparse warnings in early boot string handling

2014-02-12 Thread Paul Gortmaker
On 14-02-12 05:00 PM, David Rientjes wrote: On Wed, 12 Feb 2014, Paul Gortmaker wrote: Actually no v2 pending. The original v1 patch was/is correct as-is. While x86-64 defconfig passed, it turns out that both strcmp and strstr have to stay, else we will get this on i386 allyesconfig

Re: flaw in nf_tables: add reject module for NFPROTO_INET

2014-02-12 Thread Theodore Ts'o
On Wed, Feb 12, 2014 at 01:41:12PM -0800, Kees Cook wrote: On Wed, Feb 12, 2014 at 09:31:51PM +, ty...@mit.edu wrote: I'm paying attention to Linux kernel coverity reports (as well as working on my goal to drive the number of e2fsprogs coverity reports to zero :-), so feel free to CC me

[PATCH akpm-next] random32: minor cleanups and kdoc fix

2014-02-12 Thread Daniel Borkmann
These are just some very minor and misc cleanups in the PRNG. In prandom_u32() we store the result in an unsigned long which is unnecessary as it should be u32 instead that we get from prandom_u32_state(). prandom_bytes_state()'s comment is in kdoc format, so change it into such as it's done

Re: [RFC PATCH v2 0/4] mtd: nand: add per partition ECC config

2014-02-12 Thread Florian Fainelli
2014-02-12 13:20 GMT-08:00 Boris BREZILLON b.brezillon@gmail.com: Hi Florian, On 12/02/2014 20:49, Florian Fainelli wrote: Hi Boris, 2014-02-11 13:46 GMT-08:00 Boris BREZILLON b.brezillon@gmail.com: Hello, This patch series is a proposal to add per partition ECC config. It

[PATCH v2] ARM: mm: fix reporting of read-only PMD bits

2014-02-12 Thread Kees Cook
On non-LPAE, read-only PMD bits are defined with the combination PMD_SECT_APX | PMD_SECT_AP_WRITE. Adjusted the bit masks to correctly detect this. Signed-off-by: Kees Cook keesc...@chromium.org --- v2: - reorder bits, suggested by Olof Johansson. --- arch/arm/mm/dump.c | 10 +- 1

[PATCH v2] ARM: mm: report both sections from PMD

2014-02-12 Thread Kees Cook
On 2-level page table systems, the PMD has 2 section entries. Report these, otherwise ARM_PTDUMP will miss reporting permission changes on odd section boundaries. Signed-off-by: Kees Cook keesc...@chromium.org --- v2: - reorganize, suggested by Catalin Marinas. ---

Re: flaw in nf_tables: add reject module for NFPROTO_INET

2014-02-12 Thread David Miller
From: Theodore Ts'o ty...@mit.edu Date: Wed, 12 Feb 2014 17:40:58 -0500 Would it be possible to set up a new mailing list on vger.kernel.org, linux-cover...@vger.kernel.org? Done. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

Re: 3.14-mw regression: rtl8169 WARNING: DMA-API: exceeded 7 overlapping mappings of pfn 55ebe

2014-02-12 Thread Ben Hutchings
On Tue, 2014-02-11 at 13:28 -0800, Eric Dumazet wrote: [...] Incoming frames might be taken out of order-3 pages. With regular Ethernet frames, this is 21 frames per order-3 pages. ACTIVE_PFN_MAX_OVERLAP seems too small. Alternative would be to user order-0 only pages if

Re: [PATCH 00/24] rfcomm fixes

2014-02-12 Thread Marcel Holtmann
Hi Peter, This patch series addresses a number of previously unknown issues with the RFCOMM tty device implementation, in addition to addressing the locking regression recently reported [1]. As Gianluca suggested and I agree, this series first reverts 3 of the 4 patches of 3.14-rc1 for

Re: [PATCH] cgroup: use an ordered workqueue for cgroup destruction

2014-02-12 Thread Hugh Dickins
On Fri, 7 Feb 2014, Johannes Weiner wrote: On Thu, Feb 06, 2014 at 03:56:01PM -0800, Hugh Dickins wrote: Sometimes the cleanup after memcg hierarchy testing gets stuck in mem_cgroup_reparent_charges(), unable to bring non-kmem usage down to 0. There may turn out to be several causes, but

[PATCH 1/2] memcg: reparent charges of children before processing parent

2014-02-12 Thread Hugh Dickins
From: Filipe Brandenburger filbran...@google.com Sometimes the cleanup after memcg hierarchy testing gets stuck in mem_cgroup_reparent_charges(), unable to bring non-kmem usage down to 0. There may turn out to be several causes, but a major cause is this: the workitem to offline parent can get

Re: [RFC PATCH] rcu: move SRCU grace period work to power efficient workqueue

2014-02-12 Thread Frederic Weisbecker
On Wed, Feb 12, 2014 at 11:59:22AM -0800, Paul E. McKenney wrote: On Wed, Feb 12, 2014 at 02:23:54PM -0500, Tejun Heo wrote: Hello, On Wed, Feb 12, 2014 at 11:02:41AM -0800, Paul E. McKenney wrote: +2. Use the /sys/devices/virtual/workqueue/*/cpumask sysfs files + to force the

[PATCH 2/2] cgroup: bring back kill_cnt to order css destruction

2014-02-12 Thread Hugh Dickins
Sometimes the cleanup after memcg hierarchy testing gets stuck in mem_cgroup_reparent_charges(), unable to bring non-kmem usage down to 0. There may turn out to be several causes, but a major cause is this: the workitem to offline parent can get run before workitem to offline child; parent's

[GIT PULL v2] liblockdep fixes for v3.14

2014-02-12 Thread Sasha Levin
The following changes since commit 65370bdf881e20907e7a53abab9b8c0bc5f60a6b: Merge branch 'linus' into core/locking (2014-02-02 09:43:20 +0100) are available in the git repository at: https://github.com/sashalevin/liblockdep.git liblockdep-fixes for you to fetch changes up to

Re: [PATCH] kernel: reduce required permission for prctl_set_mm

2014-02-12 Thread Andrew Vagin
On Wed, Feb 12, 2014 at 01:50:35PM -0800, Kees Cook wrote: On Wed, Feb 12, 2014 at 1:32 PM, Andrew Morton a...@linux-foundation.org wrote: On Wed, 12 Feb 2014 19:40:11 +0400 Andrey Vagin ava...@openvz.org wrote: Currently prctl_set_mm requires the global CAP_SYS_RESOURCE, this patch

<    2   3   4   5   6   7   8   9   >