Re: [PATCH] pidns: remove recursion from free_pid_ns (v3)

2012-10-09 Thread Andrew Morton
On Sat, 6 Oct 2012 23:56:33 +0400 Andrew Vagin wrote: > Here is a stack trace of recursion: > free_pid_ns(parent) > put_pid_ns(parent) > kref_put(&ns->kref, free_pid_ns); > free_pid_ns > > This patch turns recursion into loops. > > pidns can be nested many times, so in case of recu

[PATCH] x86: Improve 64 bit __phys_addr call performance

2012-10-09 Thread Alexander Duyck
This patch is meant to improve overall system performance when making use of the __phys_addr call on 64 bit x86 systems. To do this I have implemented several changes. First if CONFIG_DEBUG_VIRTUAL is not defined __phys_addr is made an inline, similar to how this is currently handled in 32 bit.

Re: [PATCH 2/2] xattr: prevent NULL ptr deref warnings in __simple_xattr_set

2012-10-09 Thread Sasha Levin
On 09/14/2012 04:58 PM, Aristeu Rozanski wrote: > On Fri, Sep 14, 2012 at 01:55:55PM -0700, Tejun Heo wrote: >> On Fri, Sep 14, 2012 at 01:54:34PM -0700, Tejun Heo wrote: >>> On Fri, Sep 14, 2012 at 09:35:54PM +0200, Sasha Levin wrote: Prevent warnings generated by smatch due to unchecked dere

Re: Linux 3.6

2012-10-09 Thread Nick Bowler
On 2012-10-04 23:30 +0200, Stefan Richter wrote: > On Oct 04 Nick Bowler wrote: > > On 2012-10-04 09:14 -0700, Kees Cook wrote: > > > On Thu, Oct 04, 2012 at 12:03:54PM -0400, Nick Bowler wrote: > > > > On 2012-10-04 08:49 -0700, Kees Cook wrote: > > > > > FWIW, there should have been an audit mess

Re: [PATCH RFC 1/2] kvm: Handle undercommitted guest case in PLE handler

2012-10-09 Thread Raghavendra K T
* Avi Kivity [2012-10-04 17:00:28]: > On 10/04/2012 03:07 PM, Peter Zijlstra wrote: > > On Thu, 2012-10-04 at 14:41 +0200, Avi Kivity wrote: > >> > >> Again the numbers are ridiculously high for arch_local_irq_restore. > >> Maybe there's a bad perf/kvm interaction when we're injecting an > >> in

Re: [RFC PATCH 03/13] ARM: edma: add DT and runtime PM support for AM335x

2012-10-09 Thread Matt Porter
On Fri, Sep 21, 2012 at 08:53:06AM +, Hebbar, Gururaja wrote: > On Thu, Sep 20, 2012 at 20:13:36, Porter, Matt wrote: > > Adds support for parsing the TI EDMA DT data into the required > > EDMA private API platform data. > > > > Calls runtime PM API only in the DT case in order to unidle the >

Re: [RFC PATCH 0/5] amd_iommu: Refactor IOMMU group and support virtual aliases

2012-10-09 Thread Florian Dazinger
Am Tue, 09 Oct 2012 12:35:39 -0600 schrieb Alex Williamson : > On Tue, 2012-10-09 at 20:27 +0200, Florian Dazinger wrote: > > Am Mon, 08 Oct 2012 22:49:28 -0600 > > schrieb Alex Williamson : > > > > > This series is meant to refactor IOMMU group support in amd_iommu > > > to properly support virt

Re: [PATCH] pidns: remove recursion from free_pid_ns (v3)

2012-10-09 Thread Greg KH
On Tue, Oct 09, 2012 at 11:48:21AM -0700, Andrew Morton wrote: > On Sat, 6 Oct 2012 23:56:33 +0400 > Andrew Vagin wrote: > > > Here is a stack trace of recursion: > > free_pid_ns(parent) > > put_pid_ns(parent) > > kref_put(&ns->kref, free_pid_ns); > > free_pid_ns > > > > This patch

Re: [ANNOUNCE] 3.6.1-rt1

2012-10-09 Thread Thomas Gleixner
On Tue, 9 Oct 2012, Steven Rostedt wrote: > On Tue, 2012-10-09 at 15:46 +0200, Thomas Gleixner wrote: > > > The RT patch against 3.6.1 can be found here: > > > > > > http://www.kernel.org/pub/linux/kernel/projects/rt/3.6/patch-3.6.1-rt1.patch.xz > > > > The split quilt queue is available at:

Re: [RFC PATCH 0/7] Improve swiotlb performance by using physical addresses

2012-10-09 Thread Alexander Duyck
On 10/08/2012 08:43 AM, Alexander Duyck wrote: > On 10/06/2012 10:57 AM, Andi Kleen wrote: >> BTW __pa used to be a simple subtraction, the if () was just added to >> handle the few call sites for x86-64 that do __pa(&text_symbol). >> Maybe we should just go back to the old __pa_symbol() for those

Re: [PATCH] pidns: remove recursion from free_pid_ns (v3)

2012-10-09 Thread Andrew Morton
On Tue, 9 Oct 2012 12:03:00 -0700 Greg KH wrote: > On Tue, Oct 09, 2012 at 11:48:21AM -0700, Andrew Morton wrote: > > On Sat, 6 Oct 2012 23:56:33 +0400 > > Andrew Vagin wrote: > > > > > Here is a stack trace of recursion: > > > free_pid_ns(parent) > > > put_pid_ns(parent) > > > kref_put(

Re: [RFC PATCH 2/7] swiotlb: Make io_tlb_start a physical address instead of a virtual address

2012-10-09 Thread Alexander Duyck
On 10/09/2012 09:43 AM, Konrad Rzeszutek Wilk wrote: > On Thu, Oct 04, 2012 at 01:22:58PM -0700, Alexander Duyck wrote: >> On 10/04/2012 10:19 AM, Konrad Rzeszutek Wilk wrote: >> @@ -450,7 +451,7 @@ void *swiotlb_tbl_map_single(struct device *hwdev, >> dma_addr_t tbl_dma_addr, >>

Re: [patch] time: cast ->raw_interval to u64 to avoid shift overflow

2012-10-09 Thread John Stultz
On 10/09/2012 12:18 AM, Dan Carpenter wrote: We fixed a bunch of integer overflows in timekeeping code during the 3.6 cycle. I did an audit based on that and found this potential overflow. Signed-off-by: Dan Carpenter Yep. Looks like this would trigger if you had NOZ idle for more then 4 se

[PATCH] fix stack memory content leak via UNAME26

2012-10-09 Thread Kees Cook
Calling uname() with the UNAME26 personality set allows a leak of kernel stack contents. This fixes it by initializing the stack buffer to zero, defensively calculating the length of copy_to_user() call, and making the len argument unsigned. CVE-2012-0957 Reported-by: Brad Spengler Cc: sta...@vg

Re: [PATCH 0/3] Update LZO compression

2012-10-09 Thread Andrew Morton
On Sun, 7 Oct 2012 17:07:55 +0200 "Markus F.X.J. Oberhumer" wrote: > As requested by akpm I am sending my "lzo-update" branch at > > git://github.com/markus-oberhumer/linux.git lzo-update > > to lkml as a patch series created by "git format-patch -M v3.5..lzo-update". > > You can also browse

Re: [GIT PULL] Disintegrate UAPI for arm64 [ver #2]

2012-10-09 Thread David Howells
Catalin Marinas wrote: > It still fails on arm64. The reason is that I had a __SYSCALL_COMPAT > guard to provide either the 32-bit syscalls or the 64-bit (generic) ones > via asm/unistd.h. With this change: Hmmm. Why does asm/unistd.h get #included for the compat bits at all? Looking in arch/a

Re: [RFC PATCH 0/5] amd_iommu: Refactor IOMMU group and support virtual aliases

2012-10-09 Thread Alex Williamson
On Tue, 2012-10-09 at 20:57 +0200, Florian Dazinger wrote: > Am Tue, 09 Oct 2012 12:35:39 -0600 > schrieb Alex Williamson : > > > On Tue, 2012-10-09 at 20:27 +0200, Florian Dazinger wrote: > > > Am Mon, 08 Oct 2012 22:49:28 -0600 > > > schrieb Alex Williamson : > > > > > > > This series is meant

Re: [GIT PULL] Disintegrate UAPI for xen

2012-10-09 Thread David Howells
Konrad Rzeszutek Wilk wrote: > What is up with your key? I'm using a time-limited subkey to sign git tags with, so you may have to pull my key again to get it. warthog>gpg --recv-keys 044B2B3B gpg: requesting key 044B2B3B from hkp server pgp.mit.edu gpg: key A7CB0B6B: "D

Re: usb 3.0 hard drive doesn't work

2012-10-09 Thread Sarah Sharp
This is probably a known issue. Other Western Digital hard drives had issues with the Link PM feature that went into 3.5. Can you please test with this branch: git clone git://git.kernel.org/pub/scm/linux/kernel/git/sarah/xhci.git -b for-usb-linus-pending In particular, I think this patch will

Re: [PATCH v3] SUNRPC: set desired file system root before connecting local transports

2012-10-09 Thread J. Bruce Fields
Cc'ing Eric since I seem to recall he suggested doing it this way? Seems OK to me, but maybe that swap_root should be in common code? (Or maybe we could use set_fs_root()?) I'm assuming it's up to Trond to take this.--b. On Mon, Oct 08, 2012 at 02:56:32PM +0400, Stanislav Kinsbursky wrote: > To

[PATCH] cpufreq, powernow-k8: Fix usage of smp_processor_id() in preemptible code

2012-10-09 Thread Andreas Herrmann
Commit 6889125b8b4e09c5e53e6ecab3433bed1ce198c9 (cpufreq/powernow-k8: workqueue user shouldn't migrate the kworker to another CPU) causes powernow-k8 to trigger a preempt warning, e.g.: BUG: using smp_processor_id() in preemptible [] code: cpufreq/3776 caller is powernowk8_target+0x2

Re: [PATCH 2/2] Drivers: hv: Add Hyper-V balloon driver

2012-10-09 Thread Andrew Morton
On Sun, 7 Oct 2012 16:59:46 -0700 "K. Y. Srinivasan" wrote: > Add the basic balloon driver. hm, how many balloon drivers does one kernel need? Although I see that the great majority of this code is hypervisor-specific. > Windows hosts dynamically manage the guest > memory allocation via a com

Re: [PATCH v2 03/10] compiler-gcc{3,4}.h: Use GCC_VERSION macro

2012-10-09 Thread Josh Triplett
On Tue, Oct 09, 2012 at 11:41:58AM -0700, Andrew Morton wrote: > On Sun, 07 Oct 2012 13:27:58 -0500 > Daniel Santos wrote: > > > We'll have to ask Andrew. Maybe so he can test on those versions of gcc? > > > > commit d3ffe64a1dbcfe18b57f90f7c01c40c93d0a8b92 > > Author: Andrew Morton > > Date:

Re: [PATCH 1/2] mm: Export vm_committed_as

2012-10-09 Thread Andrew Morton
On Mon, 8 Oct 2012 06:35:39 -0700 Greg KH wrote: > On Mon, Oct 08, 2012 at 03:35:50AM +, KY Srinivasan wrote: > > > > > > > -Original Message- > > > From: Greg KH [mailto:gre...@linuxfoundation.org] > > > Sent: Sunday, October 07, 2012 8:44 PM > > > To: KY Srinivasan > > > Cc: linux

Re: [RFC][CFT][CFReview] execve and kernel_thread unification work

2012-10-09 Thread Chris Metcalf
On 10/1/2012 5:38 PM, Al Viro wrote: > There's an interesting ongoing project around kernel_thread() and > friends, including execve() variants. I really need help from architecture > maintainers on that one; I'd been able to handle (and test) quite a few > architectures on my own [alpha, ar

Re: [PATCH v3] SUNRPC: set desired file system root before connecting local transports

2012-10-09 Thread Myklebust, Trond
On Tue, 2012-10-09 at 15:35 -0400, J. Bruce Fields wrote: > Cc'ing Eric since I seem to recall he suggested doing it this way? > > Seems OK to me, but maybe that swap_root should be in common code? (Or > maybe we could use set_fs_root()?) > > I'm assuming it's up to Trond to take this.--b. I'm

[tip:timers/core] timers: Fix endless looping between cascade() and internal_add_timer()

2012-10-09 Thread tip-bot for Hildner, Christian
Commit-ID: 26cff4e2aa4d666dc6a120ea34336b5057e3e187 Gitweb: http://git.kernel.org/tip/26cff4e2aa4d666dc6a120ea34336b5057e3e187 Author: Hildner, Christian AuthorDate: Mon, 8 Oct 2012 15:49:03 +0200 Committer: Thomas Gleixner CommitDate: Tue, 9 Oct 2012 21:27:14 +0200 timers: Fix endless

[tip:timers/core] timekeeping: Cast raw_interval to u64 to avoid shift overflow

2012-10-09 Thread tip-bot for Dan Carpenter
Commit-ID: 5b3900cd409466c0070b234d941650685ad0c791 Gitweb: http://git.kernel.org/tip/5b3900cd409466c0070b234d941650685ad0c791 Author: Dan Carpenter AuthorDate: Tue, 9 Oct 2012 10:18:23 +0300 Committer: Thomas Gleixner CommitDate: Tue, 9 Oct 2012 21:27:14 +0200 timekeeping: Cast raw_in

RE: [PATCH 00/16] f2fs: introduce flash-friendly file system

2012-10-09 Thread Jooyoung Hwang
On Tue, 2012-10-09 at 16:08 +0900, Jaegeuk Kim wrote: > > -Original Message- > > From: Vyacheslav Dubeyko [mailto:sl...@dubeyko.com] > > Sent: Tuesday, October 09, 2012 4:23 AM > > To: Jaegeuk Kim > > Cc: 'Marco Stornelli'; 'Jaegeuk Kim'; 'Al Viro'; ty...@mit.edu; > > gre...@linuxfoundatio

Re: [PATCH 0/3] Update LZO compression

2012-10-09 Thread Markus F.X.J. Oberhumer
Hi Stephen, On 2012-10-09 21:26, Andrew Morton wrote: > On Sun, 7 Oct 2012 17:07:55 +0200 > "Markus F.X.J. Oberhumer" wrote: > >> As requested by akpm I am sending my "lzo-update" branch at >> >> git://github.com/markus-oberhumer/linux.git lzo-update >> >> to lkml as a patch series created by

Re: [PATCH] [RESEND] qla2xxx: fix potential deadlock on ha->hardware_lock

2012-10-09 Thread Arun Easi
Hi Nick, On Tue, 9 Oct 2012, 11:47am -0700, Nicholas A. Bellinger wrote: Hi Jiri, Andrew, Arun & Co, --8<-- snipped -- Also please have a look below for a few more related items I noticed while reviewing this patch.. drivers/scsi/qla2xxx/qla_init.c |5 +++-- 1 files changed, 3 insert

[PATCH 2/3] rapidio: update asynchronous discovery initialization

2012-10-09 Thread Alexandre Bounine
Update discovery process initialization based on Andrew Morton's comments: https://lkml.org/lkml/2012/10/3/552. This update processes all enumerating mports first and schedules discovery work after that. If the initialization routine fails to allocate resources needed to execute discovery, it aban

[PATCH 0/3] rapidio: updates for multiple mport patches

2012-10-09 Thread Alexandre Bounine
This is a set of updates for patches submitted earlier: https://lkml.org/lkml/2012/10/3/460. Alexandre Bounine (3): rapidio: use msleep in discovery wait rapidio: update asynchronous discovery initialization rapidio: update for destination ID allocation drivers/rapidio/rio-scan.c | 40 ++

[PATCH 3/3] rapidio: update for destination ID allocation

2012-10-09 Thread Alexandre Bounine
This patch address comments provided by Andrew Morton: https://lkml.org/lkml/2012/10/3/550 - Keeps consistent kerneldoc compatible comments style for new static functions. - Removes unnecessary complexity from destination ID allocation routine. - Uses kcalloc() for code clarity. Signed-off-by: A

[PATCH 1/3] rapidio: use msleep in discovery wait

2012-10-09 Thread Alexandre Bounine
Use msleep() routine for code clarity as suggested by Andrew Morton in his comments for the original patch: https://lkml.org/lkml/2012/10/3/546. Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Li Yang --- drivers/rapidio/rio-scan.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(

Re: [PATCH] Do not use cpu_to_node() to find an offlined cpu's node.

2012-10-09 Thread David Rientjes
On Tue, 9 Oct 2012, Wen Congyang wrote: > I clear cpu-to-node mapping when the cpu is hotremoved. If the cpu is onlined, > it will be offlined before clearing cpu-to-node mapping. > > Here is the code in driver/acpi/processor_driver.c: > = > static int acpi_processor_handle_eject(stru

Re: [PATCH 0/3] new ARM-soc warning fixes

2012-10-09 Thread Arnd Bergmann
On Tuesday 09 October 2012, Olof Johansson wrote: > On Tue, Oct 09, 2012 at 05:34:18PM +0200, Arnd Bergmann wrote: > > Hi Olof, > > > > Here are three more fixes that I'd like to merge through the arm-soc > > as time permits. All of them should be completely harmless and they > > only fix harmless

Re: [PATCH 3/8] sparc64: Eliminate PTE table memory wastage.

2012-10-09 Thread Chris Metcalf
On 10/4/2012 2:23 PM, David Miller wrote: > From: "Aneesh Kumar K.V" > Date: Thu, 04 Oct 2012 22:00:48 +0530 > >> David Miller writes: >> >>> We've split up the PTE tables so that they take up half a page instead >>> of a full page. This is in order to facilitate transparent huge page >>> suppo

Re: [PATCH] linux/compiler.h: Add __must_hold macro for functions called with a lock held

2012-10-09 Thread Andrew Morton
On Sun, 7 Oct 2012 19:06:10 -0700 Josh Triplett wrote: > linux/compiler.h has macros to denote functions that acquire or release > locks, but not to denote functions called with a lock held that return > with the lock still held. Add a __must_hold macro to cover that case. hum. How does this w

[PATCH v2 3/8] mm/slob: use min_t() to compare ARCH_SLAB_MINALIGN

2012-10-09 Thread Arnd Bergmann
The definition of ARCH_SLAB_MINALIGN is architecture dependent and can be either of type size_t or int. Comparing that value with ARCH_KMALLOC_MINALIGN can cause harmless warnings on platforms where they are different. Since both are always small positive integer numbers, using the size_t type to c

[PATCH v2 7/8] video: mark nuc900fb_map_video_memory as __devinit

2012-10-09 Thread Arnd Bergmann
nuc900fb_map_video_memory is called by an devinit function that may be called at run-time, but the function itself is marked __init and will be discarded after boot. To avoid calling into a function that may have been overwritten, mark nuc900fb_map_video_memory itself as __devinit. Without this p

[PATCH v2 1/8] SCSI: ARM: ncr5380/oak uses no interrupts

2012-10-09 Thread Arnd Bergmann
The ncr5380 driver is included by multiple board specific drivers, which may or may not use the interrupt handler. The oak variant doesn't, and should set the DONT_USE_INTR macro. Without this patch, building rpc_defconfig results in: drivers/scsi/arm/../NCR5380.c:1160:20: warning: 'oakscsi_intr'

[PATCH v2 2/8] SCSI: ARM: make fas216_dumpinfo function conditional

2012-10-09 Thread Arnd Bergmann
The fas216_dumpinfo function is only used by __fas216_checkmagic, which is conditionally compiled, so we should put both functions inside of the same #ifdef. Without this patch, building rpc_defconfig results in: drivers/scsi/arm/fas216.c:182:13: warning: 'fas216_dumpinfo' defined but not used [

[PATCH v2 v2 v2 8/8] spi/s3c64xx: use correct dma_transfer_direction type

2012-10-09 Thread Arnd Bergmann
There is a subtle difference between dma_transfer_direction and dma_data_direction: the former is used by the dmaengine framework, while the latter is used by the dma-mapping API. Although the purpose is comparable, the actual values are different and must not be mixed. In this case, the driver jus

[PATCH v2 6/8] pcmcia: sharpsl: don't discard sharpsl_pcmcia_ops

2012-10-09 Thread Arnd Bergmann
The sharpsl_pcmcia_ops structure gets passed into sa11xx_drv_pcmcia_probe, where it gets accessed at run-time, unlike all other pcmcia drivers that pass their structures into platform_device_add_data, which makes a copy. This means the gcc warning is valid and the structure must not be marked as _

[PATCH v2 0/8] ARM: mostly harmless gcc warnings

2012-10-09 Thread Arnd Bergmann
Most patches from the first time this was posted have been adopted by a subsystem maintainer or were show to be obsolete. Here are the remaining ones again. I'm planning to submit those patches that are still necessary by the time we have an -rc1 through the arm-soc tree, but my preference is stil

[PATCH v2 5/8] clk: don't mark clkdev_add_table as init

2012-10-09 Thread Arnd Bergmann
s3c2440_clk_add is a subsys_interface method and calls clkdev_add_table, which means we might be calling it after the __init section is discarded. Without this patch, building mini2440_defconfig results in: WARNING: vmlinux.o(.text+0x9848): Section mismatch in reference from the function s3c2440

[PATCH v2 4/8] USB: EHCI: mark ehci_orion_conf_mbus_windows __devinit

2012-10-09 Thread Arnd Bergmann
The __devinit section is going away soon, but while it's still there, we get a correct warning about ehci_orion_conf_mbus_windows being discarded before its caller, so it should be marked __devinit rather than __init. Without this patch, building dove_defconfig results in: WARNING: drivers/usb/ho

Re: [PATCH v3] SUNRPC: set desired file system root before connecting local transports

2012-10-09 Thread Eric W. Biederman
"Myklebust, Trond" writes: > On Tue, 2012-10-09 at 15:35 -0400, J. Bruce Fields wrote: >> Cc'ing Eric since I seem to recall he suggested doing it this way? Yes. On second look setting fs->root won't work. We need to change fs. The problem is that by default all kernel threads share fs so chang

Re: [PATCH RFC] irq: Set CPU affinity as soon as the irq thread is created

2012-10-09 Thread Thomas Gleixner
On Wed, 5 Sep 2012, Steven Rostedt wrote: > On Wed, 2012-09-05 at 18:07 -0500, Sankara Muthukrishnan wrote: > > Hi there, > > This also affects mainline. Please Cc LKML (as I did). > > > > > As irq_thread_check_affinity is called inside the while loop in the > > IRQ thread, the core affinity is

Re: [PATCH] x86/perf: Fix virtualization sanity check

2012-10-09 Thread Andre Przywara
On 10/09/2012 05:51 PM, Konrad Rzeszutek Wilk wrote: On Tue, Oct 09, 2012 at 05:38:34PM +0200, Andre Przywara wrote: In check_hw_exists() we try to detect non-emulated MSR accesses by writing an arbitrary value into one of the PMU registers and check if it's value after a readout is still the sa

Re: [PATCH] linux/compiler.h: Add __must_hold macro for functions called with a lock held

2012-10-09 Thread Ed Cashin
On Oct 9, 2012, at 4:06 PM, Andrew Morton wrote: > On Sun, 7 Oct 2012 19:06:10 -0700 > Josh Triplett wrote: > >> linux/compiler.h has macros to denote functions that acquire or release >> locks, but not to denote functions called with a lock held that return >> with the lock still held. Add a _

Re: [PATCH] Do not use cpu_to_node() to find an offlined cpu's node.

2012-10-09 Thread David Rientjes
On Tue, 9 Oct 2012, Peter Zijlstra wrote: > On Mon, 2012-10-08 at 10:59 +0800, Tang Chen wrote: > > If a cpu is offline, its nid will be set to -1, and cpu_to_node(cpu) will > > return -1. As a result, cpumask_of_node(nid) will return NULL. In this case, > > find_next_bit() in for_each_cpu will ge

Re: [PATCH] linux/compiler.h: Add __must_hold macro for functions called with a lock held

2012-10-09 Thread Josh Triplett
On Tue, Oct 09, 2012 at 01:06:37PM -0700, Andrew Morton wrote: > On Sun, 7 Oct 2012 19:06:10 -0700 > Josh Triplett wrote: > > > linux/compiler.h has macros to denote functions that acquire or release > > locks, but not to denote functions called with a lock held that return > > with the lock stil

Re: [PATCH 16/27] userns: Convert vfs posix_acl support to use kuids and kgids

2012-10-09 Thread Jan Kara
On Wed 19-09-12 18:52:18, Eric W. Biederman wrote: > From: "Eric W. Biederman" > > - In setxattr if we are setting a posix acl convert uids and gids from > the current user namespace into the initial user namespace, before > the xattrs are passed to the underlying filesystem. > > Untransla

Re: [PATCH] Do not use cpu_to_node() to find an offlined cpu's node.

2012-10-09 Thread Peter Zijlstra
On Tue, 2012-10-09 at 13:36 -0700, David Rientjes wrote: > On Tue, 9 Oct 2012, Peter Zijlstra wrote: > > > On Mon, 2012-10-08 at 10:59 +0800, Tang Chen wrote: > > > If a cpu is offline, its nid will be set to -1, and cpu_to_node(cpu) will > > > return -1. As a result, cpumask_of_node(nid) will ret

Re: [PATCH v4] dma-debug: New interfaces to debug dma mapping errors

2012-10-09 Thread Andrew Morton
On Mon, 08 Oct 2012 11:07:20 -0600 Shuah Khan wrote: > > > > Still seems overly complicated to me, but whatev. > > > > I think the way to handle this is pretty simple: set a flag in the dma > > entry when someone runs dma_mapping_error() and, if that flag wasn't > > set at unmap time, emit a lo

[GIT PULL] Btrfs

2012-10-09 Thread Chris Mason
Hi Linus, This is a large pull, with the bulk of the updates coming from: * Hole punching * send/receive fixes * fsync performance * Disk format extension allowing more hardlinks inside a single directory (btrfs-progs patch required to enable the compat bit for this one) I'm cooking more unre

Re: [PATCH v5] dma-debug: New interfaces to debug dma mapping errors

2012-10-09 Thread Andrew Morton
On Mon, 08 Oct 2012 11:08:06 -0600 Shuah Khan wrote: > Add dma-debug interface debug_dma_mapping_error() to debug drivers that fail > to check dma mapping errors on addresses returned by dma_map_single() and > dma_map_page() interfaces. This interface clears a flag set by > debug_dma_map_page() t

Re: dtc: import latest upstream dtc

2012-10-09 Thread Stephen Warren
On 10/01/2012 12:39 PM, Jon Loeliger wrote: >> >> What more do you think needs discussion re: dtc+cpp? > > How not to abuse the ever-loving shit out of it? :-) Perhaps we can just handle this through the regular patch review process; I think it may be difficult to define and agree upon exactly wh

Re: [PATCH 00/16] f2fs: introduce flash-friendly file system

2012-10-09 Thread Dave Chinner
[ Folks, can you trim your responses down to just quote the part you are responding to? Having to repeatedly scroll through 500 lines of irrelevant text just to find the 5 lines that is being commented on is exceedingly painful. ] On Tue, Oct 09, 2012 at 09:01:18PM +0900, Jaegeuk Kim wrote: > > F

Re: [PATCH] ext2: fix return values on parse_options() failure

2012-10-09 Thread Jan Kara
On Tue 09-10-12 08:29:50, Lukáš Czerner wrote: > On Tue, 9 Oct 2012, Zhao Hongjiang wrote: > > > Date: Tue, 09 Oct 2012 13:44:36 +0800 > > From: Zhao Hongjiang > > To: j...@suse.cz > > Cc: linux-e...@vger.kernel.org, linux-kernel@vger.kernel.org, > > Eric W. Biederman , serge.hal...@canonical

Re: [GIT PULL] Disintegrate UAPI for arm64 [ver #2]

2012-10-09 Thread Catalin Marinas
On Tue, Oct 09, 2012 at 08:30:59PM +0100, David Howells wrote: > Catalin Marinas wrote: > > > It still fails on arm64. The reason is that I had a __SYSCALL_COMPAT > > guard to provide either the 32-bit syscalls or the 64-bit (generic) ones > > via asm/unistd.h. With this change: > > Hmmm. > > W

Re: [PATCH] ext3: fix return values on parse_options() failure

2012-10-09 Thread Jan Kara
On Tue 09-10-12 08:19:42, Lukáš Czerner wrote: > On Tue, 9 Oct 2012, Zhao Hongjiang wrote: > > > Date: Tue, 09 Oct 2012 13:48:47 +0800 > > From: Zhao Hongjiang > > To: j...@suse.cz > > Cc: a...@linux-foundation.org, adilger.ker...@dilger.ca, > > linux-e...@vger.kernel.org, linux-kernel@vger.k

Re: [PATCH 0/3] new ARM-soc warning fixes

2012-10-09 Thread Olof Johansson
On Tue, Oct 09, 2012 at 08:01:26PM +, Arnd Bergmann wrote: > On Tuesday 09 October 2012, Olof Johansson wrote: > > On Tue, Oct 09, 2012 at 05:34:18PM +0200, Arnd Bergmann wrote: > > > Hi Olof, > > > > > > Here are three more fixes that I'd like to merge through the arm-soc > > > as time permit

Re: [PATCH 5/5] aio: Refactor aio_read_evt, use cmxchg(), fix bug

2012-10-09 Thread Kent Overstreet
On Tue, Oct 09, 2012 at 11:37:53AM -0700, Zach Brown wrote: > On Mon, Oct 08, 2012 at 11:39:20PM -0700, Kent Overstreet wrote: > > Bunch of cleanup > > Ugh. That's way too much noisy change for one patch with no > description. Break it up into functional pieces and actually describe > them. Heh

Re: [PATCH] init_module: update to modern interfaces

2012-10-09 Thread Michael Kerrisk (man-pages)
[CC widened, so that some more review might come in. Rusty?] Hello Kees, Comments below. On Fri, Sep 21, 2012 at 1:27 AM, Kees Cook wrote: > This updates init_module(2) to reflect the reality of 2.6+ module > loading interfaces. It additionally drops references to the extra > deprecated module

Re: [PATCH 4/5] aio: vmap ringbuffer

2012-10-09 Thread Kent Overstreet
On Tue, Oct 09, 2012 at 11:29:49AM -0700, Zach Brown wrote: > On Mon, Oct 08, 2012 at 11:39:19PM -0700, Kent Overstreet wrote: > > It simplifies a lot of stuff if the ringbuffer is contiguously mapped > > into kernel space, and we can delete a lot of code - in particular, this > > is useful for con

Re: [PATCH 0/3] Volatile Ranges (v7) & Lots of words

2012-10-09 Thread John Stultz
On 10/09/2012 01:07 AM, Mike Hommey wrote: Note it doesn't have to be a vs. situation. madvise could be an additional way to interface with volatile ranges on a given fd. That is, madvise doesn't have to mean anonymous memory. As a matter of fact, MADV_WILLNEED/MADV_DONTNEED are usually used on

Re: [ANNOUNCE] 3.6.1-rt1

2012-10-09 Thread Tim Sander
Hi Thomas > I'm pleased to announce the 3.6.1-rt1 release. I also have to second the big thanks of Steven! >* Fix for a potential deadlock in mm/slab.c. This had been reported > as lockdep splats several times and stupidly ignored as a false > positive, but in fact it's a real (thoug

Re: [PATCH 2/5] aio: kiocb_cancel()

2012-10-09 Thread Kent Overstreet
On Tue, Oct 09, 2012 at 11:26:25AM -0700, Zach Brown wrote: > On Mon, Oct 08, 2012 at 11:39:17PM -0700, Kent Overstreet wrote: > > Minor refactoring, to get rid of some duplicated code > > Honestly: I wouldn't bother. Nothing of consequence uses cancel. > > I have an RFC patch series that tears

Re: [GIT PULL] Disintegrate UAPI for media

2012-10-09 Thread Mauro Carvalho Chehab
a214e66b462680cf86b210b74a8: > > Merge branch 'akpm' (Andrew's patch-bomb) (2012-10-09 16:23:15 +0900) > > are available in the git repository at: > > > git://git.infradead.org/users/dhowells/linux-headers.git > tags/disintegrate-media-20121009 &g

Re: PRJQUOTA case not handled in need_print_warning()

2012-10-09 Thread Jan Kara
On Fri 05-10-12 00:34:29, Jiri Kosina wrote: > Hi, > > commit e8a3e4719b7ec19288c56f22623f537cb78885c1 > Author: Eric W. Biederman > Date: Sun Sep 16 01:11:45 2012 -0700 > > userns: Implement struct kqid > > causes this warning: > > fs/quota/dquot.c: In function ‘need_print_warning’: > f

Re: [PATCH 2/3] lglock: make the per_cpu locks static

2012-10-09 Thread Andrew Morton
On Tue, 9 Oct 2012 11:46:39 +0800 Lai Jiangshan wrote: > The per_cpu locks are not used outside nor exported. > Add a "static" linkage keyword to it. I think a better description is: : The per_cpu locks are not used outside the file which contains the : DEFINE_LGLOCK(), so we can make these sym

Re: [PATCH 16/27] userns: Convert vfs posix_acl support to use kuids and kgids

2012-10-09 Thread Eric W. Biederman
Jan Kara writes: > On Wed 19-09-12 18:52:18, Eric W. Biederman wrote: >> From: "Eric W. Biederman" >> >> - In setxattr if we are setting a posix acl convert uids and gids from >> the current user namespace into the initial user namespace, before >> the xattrs are passed to the underlying fi

Re: [PATCH 3/3] lglock: add DEFINE_STATIC_LGLOCK()

2012-10-09 Thread Andrew Morton
On Tue, 9 Oct 2012 11:46:40 +0800 Lai Jiangshan wrote: > When if the lglock don't to be exported, > we can use DEFINE_STATIC_LGLOCK(). > > --- a/include/linux/lglock.h > +++ b/include/linux/lglock.h > @@ -32,7 +32,8 @@ > #define br_write_lock(name) lg_global_lock(name) > #define br_write_unlo

Re: [PATCH 1/4] module: add syscall to load module from fd

2012-10-09 Thread Michael Kerrisk
Kees, > +SYSCALL_DEFINE2(finit_module, int, fd, const char __user *, uargs) Given the repeated experience of the last few years--new system calls that are in essence revisions of older system calls with a 'flags' argument bolted on to allow more flexible behavior (e.g., accept4(), dup3(), utimens

Re: [PATCH 1/4] module: add syscall to load module from fd

2012-10-09 Thread H. Peter Anvin
On 10/10/2012 05:54 AM, Michael Kerrisk wrote: > Kees, > >> +SYSCALL_DEFINE2(finit_module, int, fd, const char __user *, uargs) > > Given the repeated experience of the last few years--new system calls > that are in essence revisions of older system calls with a 'flags' > argument bolted on to al

Re: [PATCH 1/4] module: add syscall to load module from fd

2012-10-09 Thread Michael Kerrisk (man-pages)
On Tue, Oct 9, 2012 at 11:58 PM, H. Peter Anvin wrote: > On 10/10/2012 05:54 AM, Michael Kerrisk wrote: >> Kees, >> >>> +SYSCALL_DEFINE2(finit_module, int, fd, const char __user *, uargs) >> >> Given the repeated experience of the last few years--new system calls >> that are in essence revisions o

Re: PRJQUOTA case not handled in need_print_warning()

2012-10-09 Thread Eric W. Biederman
Jan Kara writes: > On Fri 05-10-12 00:34:29, Jiri Kosina wrote: >> Hi, >> >> commit e8a3e4719b7ec19288c56f22623f537cb78885c1 >> Author: Eric W. Biederman >> Date: Sun Sep 16 01:11:45 2012 -0700 >> >> userns: Implement struct kqid >> >> causes this warning: >> >> fs/quota/dquot.c: In fu

Re: [PATCH 1/4] module: add syscall to load module from fd

2012-10-09 Thread H. Peter Anvin
On 10/10/2012 06:03 AM, Michael Kerrisk (man-pages) wrote: > Good point. A "whole hog" openat()-style interface is worth thinking about > too. *Although* you could argue that you can always simply open the module file first, and that finit_module() is really what we should have had in the first p

Re: [git pull] IOMMU Updates for v3.7-rc1

2012-10-09 Thread Andrew Oakley
On Fri, 5 Oct 2012 17:23:12 +0200 Joerg Roedel wrote: > IOMMU Updates for Linux v3.7-rc1 > > This time the IOMMU updates contain a bunch of fixes and cleanups to > various IOMMU drivers and the DMA debug code. New features are the > code for IRQ remapping support with the AMD IOMMU (preperation f

X9SCM-F/82574L/e1000e lag / high latency (e1000e/Intel bug)

2012-10-09 Thread Justin Piszcz
Hi, Good news: Supermicro 2.0b fixes an unrelated problem where only 16GB is addressed in the BIOS when you have 32GB on the system, with 2.0b that is resolved. Bad news: This bug still remains (E1000): When you transfer a file/files over Samba, the latency shoots up really high (this also affect

Re: [PATCH] MM: Support more pagesizes for MAP_HUGETLB/SHM_HUGETLB v3

2012-10-09 Thread Andrew Morton
On Wed, 3 Oct 2012 15:24:23 -0700 Andi Kleen wrote: > From: Andi Kleen > > There was some desire in large applications using MAP_HUGETLB/SHM_HUGETLB > to use 1GB huge pages on some mappings, and stay with 2MB on others. This > is useful together with NUMA policy: use 2MB interleaving on some m

Re: [PATCH] driver/char/tpm: fix regression causesd by ppi

2012-10-09 Thread Kent Yoder
Hi Jimmy, On Tue, Oct 09, 2012 at 05:35:22PM +0800, gang@intel.com wrote: > From: Gang Wei > > This patch try to fix the S3 regression https://lkml.org/lkml/2012/10/5/433, > which includes below line: > [ 1554.684638] sysfs: cannot create duplicate filename > '/devices/pnp0/00:0c/ppi' > >

Re: [GIT PULL for 3.7-rc1] media updates - part 1

2012-10-09 Thread Mauro Carvalho Chehab
Em Tue, 9 Oct 2012 14:43:46 -0300 Ezequiel Garcia escreveu: > On Fri, Oct 5, 2012 at 10:42 AM, Mauro Carvalho Chehab ... > > Ezequiel García (13): > > [media] em28xx: Remove useless runtime->private_data usage > > [media] media: Add stk1160 new driver (easycap replacement) > > [

Re: [PATCH 3/5] aio: Rewrite refcounting

2012-10-09 Thread Kent Overstreet
On Tue, Oct 09, 2012 at 11:27:55AM -0700, Zach Brown wrote: > On Mon, Oct 08, 2012 at 11:39:18PM -0700, Kent Overstreet wrote: > > The refcounting before wasn't very clear; there are two refcounts in > > struct kioctx, with an unclear relationship between them (or between > > them and ctx->dead). >

Re: PROBLEM: Performance drop

2012-10-09 Thread katabami
Hi, just for recording. Bug 43284[1] is the duplicate of this bug report. It stops by reporting the "bad" commit, 9bcb8118965ab4631a65ee0726e6518f75cda6c5. [1]https://bugzilla.kernel.org/show_bug.cgi?id=43284 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body

[PATCH] ACPI video: Ignore AE_AML_PACKAGE_LIMIT errors after _DOD evaluation.

2012-10-09 Thread Igor Murzov
This should fix brightness controls on some laptops. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=47861 Signed-off-by: Igor Murzov --- drivers/acpi/video.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c index 1e0a9

Re: [PATCH v3] SUNRPC: set desired file system root before connecting local transports

2012-10-09 Thread J. Bruce Fields
On Tue, Oct 09, 2012 at 01:20:48PM -0700, Eric W. Biederman wrote: > "Myklebust, Trond" writes: > > > On Tue, 2012-10-09 at 15:35 -0400, J. Bruce Fields wrote: > >> Cc'ing Eric since I seem to recall he suggested doing it this way? > > Yes. On second look setting fs->root won't work. We need to

Re: [PATCH 4/5] aio: vmap ringbuffer

2012-10-09 Thread Zach Brown
> If it is measurable I'll take another stab at using memory from > __get_free_pages() for the ringbuffer. That really would be the ideal > solution. No, then you'll run into high order allocation failures with rings that don't fit in a single page. > The other reason I wanted to do this was for

Re: [PATCH 3/5] aio: Rewrite refcounting

2012-10-09 Thread Zach Brown
> Alright... send it out then. Workin' on it! :) > Also, do you know which branch Jens has his patches in? http://git.kernel.dk/?p=linux-block.git;a=commit;h=6b6723fc3e4f24dbd80526df935ca115ead578c6 https://plus.google.com/111643045511375507360/posts As far as I know, he hasn't had a chance to

Re: [GIT PULL] Disintegrate UAPI for nfs

2012-10-09 Thread bfie...@fieldses.org
+0900) > > > > are available in the git repository at: > > > > > > git://git.infradead.org/users/dhowells/linux-headers.git > > tags/disintegrate-nfs-20121009 > > > > for you to fetch changes up to e3dd9a52cb5552c46c2a4ca7ccdfb4dab5c72457: > > >

Re: [PATCH 0/3] Update LZO compression

2012-10-09 Thread Stephen Rothwell
Hi Markus, On Tue, 09 Oct 2012 21:54:59 +0200 "Markus F.X.J. Oberhumer" wrote: > > On 2012-10-09 21:26, Andrew Morton wrote: > > On Sun, 7 Oct 2012 17:07:55 +0200 > > "Markus F.X.J. Oberhumer" wrote: > > > >> As requested by akpm I am sending my "lzo-update" branch at > >> > >> git://github.

Re: [PATCH 4/5] aio: vmap ringbuffer

2012-10-09 Thread Kent Overstreet
On Tue, Oct 09, 2012 at 03:32:10PM -0700, Zach Brown wrote: > > If it is measurable I'll take another stab at using memory from > > __get_free_pages() for the ringbuffer. That really would be the ideal > > solution. > > No, then you'll run into high order allocation failures with rings that > don'

Re: [PATCH 5/5] aio: Refactor aio_read_evt, use cmxchg(), fix bug

2012-10-09 Thread Zach Brown
> If libaio is the only thing in userspace looking at the ringbuffer, and > if I'm looking at the latest libaio code this shouldn't break > anything... We can't assume that libaio is the only thing in userspace using the mapped buffer -- as scary a thought as that is :). If we wanted to change th

Re: [PATCH v3] SUNRPC: set desired file system root before connecting local transports

2012-10-09 Thread Eric W. Biederman
"J. Bruce Fields" writes: > On Tue, Oct 09, 2012 at 01:20:48PM -0700, Eric W. Biederman wrote: >> "Myklebust, Trond" writes: >> >> > On Tue, 2012-10-09 at 15:35 -0400, J. Bruce Fields wrote: >> >> Cc'ing Eric since I seem to recall he suggested doing it this way? >> >> Yes. On second look set

[PATCH 1/2] firmware: Convert firmware path setup from an array to a list

2012-10-09 Thread Dimitris Papastamos
In preparation to support dynamic listing/updating of firmware paths via procfs, this patch converts the firmware path configuration from an array to a list. Signed-off-by: Dimitris Papastamos --- drivers/base/firmware_class.c | 72 ++- 1 file changed, 64

[PATCH 2/2] firmware: Add /proc/fw_path entry to list the firmware paths

2012-10-09 Thread Dimitris Papastamos
This patch provides the aforementioned procfs file that lists the default firmware paths that are used during firmware lookup. The file contains a white space separated list of paths. There will be another patch on top of this that adds the functionality to modify the paths at runtime. Signed-of

[PATCH v2] fix stack memory content leak via UNAME26

2012-10-09 Thread Kees Cook
Calling uname() with the UNAME26 personality set allows a leak of kernel stack contents. This fixes it by initializing the stack buffer to zero, defensively calculating the length of copy_to_user() call, and making the len argument unsigned. CVE-2012-0957 Reported-by: PaX Team Cc: sta...@vger.ke

<    1   2   3   4   5   6   7   >