Re: [PATCH v17 0/10] Add 32 bit VDSO time function support

2014-02-15 Thread Stefani Seibold
Am Samstag, den 15.02.2014, 20:14 -0800 schrieb H. Peter Anvin: > On 02/15/2014 08:32 AM, Stefani Seibold wrote: > > This patch add the functions vdso_gettimeofday(), vdso_clock_gettime() > > and vdso_time() to the 32 bit VDSO. > > x86-64 allyesconfig: > > AS arch/x86/vdso/vdso32/int80.o

Re: [PATCHv3 6/6] mailbox: move the internal definitions into a private file

2014-02-15 Thread Jassi Brar
On Sun, Feb 16, 2014 at 12:46 AM, Greg KH wrote: > On Sat, Feb 15, 2014 at 11:57:02PM +0530, Jassi Brar wrote: >> From: Suman Anna >> >> This is needed for extracting the omap_mbox. The OMAP mailbox >> code has a need for exporting some pre-existing API to not >> break the current clients. >> >>

Re: [PATCHv3 2/6] mailbox: Introduce a new common API

2014-02-15 Thread Jassi Brar
[merging replies in one post] On Sun, Feb 16, 2014 at 12:45 AM, Greg KH wrote: > On Sat, Feb 15, 2014 at 11:55:27PM +0530, Jassi Brar wrote: >> +/* >> + * Call for IPC controller drivers to register a controller, adding >> + * its channels/mailboxes to the global pool. >> + */ >> +int

Re: [RFC PATCH] mm/vmscan: remove two un-needed mem_cgroup_page_lruvec() call

2014-02-15 Thread Hugh Dickins
On Sun, 16 Feb 2014, Weijie Yang wrote: > On Sun, Feb 16, 2014 at 12:00 PM, Hugh Dickins wrote: > > On Sun, 16 Feb 2014, Weijie Yang wrote: > > > >> In putback_inactive_pages() and move_active_pages_to_lru(), > >> lruvec is already an input parameter and pages are all from this lruvec, > >>

[PATCH v6 2/8] clk: sunxi: Implement MMC phase control

2014-02-15 Thread David Lanzendörfer
From: Emilio López Signed-off-by: Emilio López --- drivers/clk/sunxi/clk-sunxi.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/drivers/clk/sunxi/clk-sunxi.c b/drivers/clk/sunxi/clk-sunxi.c index abb6c5a..33b9977 100644 ---

[PATCH v6 5/8] ARM: dts: sun7i: Add support for mmc

2014-02-15 Thread David Lanzendörfer
Signed-off-by: David Lanzendörfer Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun7i-a20-cubieboard2.dts |8 +++ arch/arm/boot/dts/sun7i-a20-cubietruck.dts |8 +++ arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 23 + arch/arm/boot/dts/sun7i-a20.dtsi

[PATCH v6 4/8] ARM: sunxi: Add driver for SD/MMC hosts found on Allwinner sunxi SoCs

2014-02-15 Thread David Lanzendörfer
This is based on the driver Allwinner ships in their Android kernel sources. Initial porting to upstream kernels done by David Lanzendörfer, additional fixes and cleanups by Hans de Goede. It uses dma in bus-master mode using a built-in designware idmac controller, which is identical to the one

[PATCH v6 3/8] ARM: sunxi: clk: export clk_sunxi_mmc_phase_control

2014-02-15 Thread David Lanzendörfer
From: Hans de Goede Signed-off-by: Hans de Goede --- include/linux/clk/sunxi.h | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 include/linux/clk/sunxi.h diff --git a/include/linux/clk/sunxi.h b/include/linux/clk/sunxi.h new file mode 100644 index

[PATCH v6 7/8] ARM: dts: sun5i: Add support for mmc

2014-02-15 Thread David Lanzendörfer
Signed-off-by: David Lanzendörfer Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts | 30 +++ arch/arm/boot/dts/sun5i-a10s.dtsi| 44 ++ arch/arm/boot/dts/sun5i-a13-olinuxino-micro.dts | 15

[PATCH v6 8/8] ARM: sunxi: Add documentation for driver for SD/MMC hosts found on Allwinner sunxi SoCs

2014-02-15 Thread David Lanzendörfer
Signed-off-by: David Lanzendörfer --- .../devicetree/bindings/mmc/sunxi-mmc.txt | 32 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/mmc/sunxi-mmc.txt diff --git a/Documentation/devicetree/bindings/mmc/sunxi-mmc.txt

[PATCH v6 6/8] ARM: dts: sun4i: Add support for mmc

2014-02-15 Thread David Lanzendörfer
Signed-off-by: David Lanzendörfer Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun4i-a10-a1000.dts |8 arch/arm/boot/dts/sun4i-a10-cubieboard.dts |8 arch/arm/boot/dts/sun4i-a10.dtsi | 54 3 files changed, 70 insertions(+)

[PATCH v6 0/8] ARM: sunxi: Add driver for SD/MMC hosts found on allwinner sunxi SOCs

2014-02-15 Thread David Lanzendörfer
Hello The following patchset adds support for the SD/MMC host found in the Allwinner SoCs. It contains all the necessary modifications for clock environment and also the device tree script modification which add it to all the boards using it. The clock environment function needed for phase

[PATCH v6 1/8] clk: sunxi: factors: automatic reparenting support

2014-02-15 Thread David Lanzendörfer
From: Emilio López This commit implements .determine_rate, so that our factor clocks can be reparented when needed. Signed-off-by: Emilio López --- drivers/clk/sunxi/clk-factors.c | 36 1 file changed, 36 insertions(+) diff --git

Re: [RFC PATCH] mm/vmscan: remove two un-needed mem_cgroup_page_lruvec() call

2014-02-15 Thread Weijie Yang
On Sun, Feb 16, 2014 at 12:00 PM, Hugh Dickins wrote: > On Sun, 16 Feb 2014, Weijie Yang wrote: > >> In putback_inactive_pages() and move_active_pages_to_lru(), >> lruvec is already an input parameter and pages are all from this lruvec, >> therefore there is no need to call

Re: [Openipmi-developer] [PATCH] ipmi: fix BT reset for a while when cmd timeout

2014-02-15 Thread Corey Minyard
I don't really understand the error that is happening. I see that it continues to time out, but I don't know why. If you can get in to this situation here, it makes me worried that there is some other issue. issuing the warm reset, even if the command is not supported, should be harmless.

Re: [PATCH v17 0/10] Add 32 bit VDSO time function support

2014-02-15 Thread H. Peter Anvin
On 02/15/2014 08:32 AM, Stefani Seibold wrote: > This patch add the functions vdso_gettimeofday(), vdso_clock_gettime() > and vdso_time() to the 32 bit VDSO. x86-64 allyesconfig: AS arch/x86/vdso/vdso32/int80.o /home/hpa/kernel/distwork/arch/x86/vdso/vdso32/../vclock_gettime.c:128:4:

Re: [RFC PATCH] mm/vmscan: remove two un-needed mem_cgroup_page_lruvec() call

2014-02-15 Thread Hugh Dickins
On Sun, 16 Feb 2014, Weijie Yang wrote: > In putback_inactive_pages() and move_active_pages_to_lru(), > lruvec is already an input parameter and pages are all from this lruvec, > therefore there is no need to call mem_cgroup_page_lruvec() in loop. > > Signed-off-by: Weijie Yang Looks plausible

Re: Updated Link-Time-Optimization patchkit

2014-02-15 Thread Andi Kleen
On Sat, Feb 15, 2014 at 10:24:43PM +0100, Sam Ravnborg wrote: > Hi Andi. > > On Sat, Feb 15, 2014 at 06:44:24PM +0100, Andi Kleen wrote: > > On Sat, Feb 15, 2014 at 02:38:14PM +0100, Markus Trippelsdorf wrote: > > > On 2014.02.14 at 22:21 +0100, Andi Kleen wrote: > > > > This is the updated LTO

[RFC PATCH] mm/vmscan: remove two un-needed mem_cgroup_page_lruvec() call

2014-02-15 Thread Weijie Yang
In putback_inactive_pages() and move_active_pages_to_lru(), lruvec is already an input parameter and pages are all from this lruvec, therefore there is no need to call mem_cgroup_page_lruvec() in loop. Signed-off-by: Weijie Yang --- mm/vmscan.c |3 --- 1 file changed, 3 deletions(-) diff

[PATCH] perf: tools: fix missing casts for printf arguments.

2014-02-15 Thread Adam Borowski
Because of -Werror, they caused build failure at least on x32, as time_t is of different size than "unsigned long". In another place, __suseconds_t is not compatible with "long int". Signed-off-by: Adam Borowski --- tools/perf/bench/sched-messaging.c | 4 ++-- tools/perf/bench/sched-pipe.c

Re: [PATCH] vt: detect and ignore OSC codes.

2014-02-15 Thread Adam Borowski
On Thu, Feb 13, 2014 at 10:39:12AM -0800, Greg Kroah-Hartman wrote: > On Wed, Jan 15, 2014 at 07:21:04AM +0100, Adam Borowski wrote: > > These can be used to send commands consisting of an arbitrary string to the > > terminal, most often used to set a terminal's window title or to redefine > > the

[PATCH 1/1] fs/mpage.c: forgotten WRITE_SYNC in case of data integrity write

2014-02-15 Thread Roman Pen
In case of wbc->sync_mode == WB_SYNC_ALL we need to do data integrity write, thus mark request as WRITE_SYNC. Signed-off-by: Roman Pen CC: Alexander Viro CC: linux-fsde...@vger.kernel.org CC: linux-kernel@vger.kernel.org --- fs/mpage.c | 23 +++ 1 file changed, 15

Re: [PATCH 2/2] memcg: barriers to see memcgs as fully initialized

2014-02-15 Thread Hugh Dickins
On Thu, 13 Feb 2014, Michal Hocko wrote: > On Wed 12-02-14 17:29:09, Hugh Dickins wrote: > > Commit d8ad30559715 ("mm/memcg: iteration skip memcgs not yet fully > > initialized") is not bad, but Greg Thelen asks "Are barriers needed?" > > > > Yes, I'm afraid so: this makes it a little heavier

Re: [BUG] unable to handle kernel NULL pointer dereference

2014-02-15 Thread John
- Original Message - > From: Borislav Petkov <> > Sent: Saturday, February 15, 2014 6:25 PM > Subject: Re: [BUG] unable to handle kernel NULL pointer dereference > > On Sat, Feb 15, 2014 at 01:04:22PM -0800, John wrote: >> Thanks for the reply, Boris.  The .config is unmodified >>

Re: [RFC PATCH 1/3] regmap: Separate regmap dev initialization

2014-02-15 Thread Mark Brown
On Mon, Feb 10, 2014 at 04:22:33PM +0100, Michal Simek wrote: > Create special function regmap_attach_dev > which can be called separately out of regmap_init. Applied, thanks. I've pushed a signed tag too so dependencies can pull this in:

Re: [PATCH 05/11] vfs: Add a function to lazily unmount all mounts from any dentry.

2014-02-15 Thread Eric W. Biederman
ebied...@xmission.com (Eric W. Biederman) writes: > v2: Always drop the lock when exiting early. > v3: Make detach_mounts robust about freeing several > mounts on the same mountpoint at one time, and remove > the unneeded mnt_list list test. > v4: Document the purpose of detach_mounts and

[GIT PULL] DeviceTree fixes for 3.14

2014-02-15 Thread Rob Herring
Linus, Please pull another set of DT fixes to fix booting on some PPC boards. Rob The following changes since commit 860a445c25aa2f99aa5881603a1f4ed2cec64025: DT: Add vendor prefix for Spansion Inc. (2014-02-05 10:39:17 -0600) are available in the git repository at:

Re: [PATCH 02/11] vfs: More precise tests in d_invalidate

2014-02-15 Thread Eric W. Biederman
Linus Torvalds writes: > On Sat, Feb 15, 2014 at 3:23 PM, Eric W. Biederman > wrote: >> >> Except that today d_invalidate drops the dcache lock and >> calls shrink_dcache_parent. Which gets you into exactly the same >> complex "walk parents and check all siblings" code. > > Hmm. It only does

Re: [PATCH 02/11] vfs: More precise tests in d_invalidate

2014-02-15 Thread Linus Torvalds
On Sat, Feb 15, 2014 at 3:23 PM, Eric W. Biederman wrote: > > Except that today d_invalidate drops the dcache lock and > calls shrink_dcache_parent. Which gets you into exactly the same > complex "walk parents and check all siblings" code. Hmm. It only does that for directories that have

[PATCH net-next 4/4] bonding: Convert memcpy(foo, bar, ETH_ALEN) to ether_addr_copy(foo, bar)

2014-02-15 Thread Joe Perches
ether_addr_copy is smaller and faster for some architectures. This relies on a stack frame being at least __aligned(2) for one use of an Ethernet address on the stack. Signed-off-by: Joe Perches --- drivers/net/bonding/bond_3ad.c | 8 drivers/net/bonding/bond_alb.c | 30

[PATCH net-next 3/4] bonding: Convert c99 comments

2014-02-15 Thread Joe Perches
Neatening only. Signed-off-by: Joe Perches --- drivers/net/bonding/bond_3ad.h | 175 - 1 file changed, 87 insertions(+), 88 deletions(-) diff --git a/drivers/net/bonding/bond_3ad.h b/drivers/net/bonding/bond_3ad.h index 13dc9d3..3b97fe48 100644 ---

[PATCH net-next 2/4] bonding: Neaten pr_

2014-02-15 Thread Joe Perches
Add missing terminating newlines. Convert uses of pr_info to pr_cont in bond_check_params. Standardize upper/lower case styles. Typo fixes, remove unnecessary parentheses and periods. Alignment neatening. Signed-off-by: Joe Perches --- drivers/net/bonding/bond_3ad.c | 11 ++--

[PATCH 1/4] bonding: Convert pr_warning to pr_warn, neatening

2014-02-15 Thread Joe Perches
Use more current logging style. Coalesce formats, realign arguments, drop unnecessary periods. Signed-off-by: Joe Perches --- drivers/net/bonding/bond_alb.c | 6 +- drivers/net/bonding/bond_debugfs.c | 10 ++-- drivers/net/bonding/bond_main.c| 116

[PATCH net-next 0/4] bonding cleaning

2014-02-15 Thread Joe Perches
Miscellaneous cleanups Joe Perches (4): bonding: Convert pr_warning to pr_warn, neatening bonding: Neaten pr_ bonding: Convert c99 comments bonding: Convert memcpy(foo, bar, ETH_ALEN) to ether_addr_copy(foo, bar) drivers/net/bonding/bond_3ad.c | 19 +--

Re: [PATCH] swapoff tmpfs radix_tree: remember to rcu_read_unlock

2014-02-15 Thread Hugh Dickins
On Thu, 13 Feb 2014, Andrew Morton wrote: > On Wed, 12 Feb 2014 18:45:07 -0800 (PST) Hugh Dickins > wrote: > > > Running fsx on tmpfs with concurrent memhog-swapoff-swapon, lots of > > > > BUG: sleeping function called from invalid context at kernel/fork.c:606 > > in_atomic(): 0,

Re: [PATCH v5 1/6] spmi: Linux driver framework for SPMI

2014-02-15 Thread Felipe Balbi
Hi, On Mon, Feb 03, 2014 at 05:05:33PM -0600, Josh Cartwright wrote: [ snip ] > +#ifdef CONFIG_PM_RUNTIME > +static int spmi_runtime_suspend(struct device *dev) > +{ > + struct spmi_device *sdev = to_spmi_device(dev); > + int err; > + > + err = pm_generic_runtime_suspend(dev); > +

Re: 3.14-rc2 XFS backtrace because irqs_disabled.

2014-02-15 Thread Linus Torvalds
[ Added linux-mm to the participants list ] On Thu, Feb 13, 2014 at 4:24 PM, Dave Chinner wrote: > > Dave, the patch below should chop off the stack usage from > xfs_log_force_lsn() issuing IO by deferring it to the CIL workqueue. > Can you given this a run? Ok, so DaveJ confirmed that DaveC's

Re: [PATCH 02/11] vfs: More precise tests in d_invalidate

2014-02-15 Thread Eric W. Biederman
ebied...@xmission.com (Eric W. Biederman) writes: > But when shrink_dcache_parent and check_submounts_and_drop are > effectiely the same function I can't possibly see how you can argue how > the locking has changed or that I am trying to hide things. And in particular the only locking change

[PATCH v6 1/8] clk: sunxi: factors: automatic reparenting support

2014-02-15 Thread David Lanzendörfer
From: Emilio López This commit implements .determine_rate, so that our factor clocks can be reparented when needed. Signed-off-by: Emilio López --- drivers/clk/sunxi/clk-factors.c | 36 1 file changed, 36 insertions(+) diff --git

[PATCH v6 2/8] clk: sunxi: Implement MMC phase control

2014-02-15 Thread David Lanzendörfer
From: Emilio López Signed-off-by: Emilio López --- drivers/clk/sunxi/clk-sunxi.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/drivers/clk/sunxi/clk-sunxi.c b/drivers/clk/sunxi/clk-sunxi.c index abb6c5a..33b9977 100644 ---

[PATCH v6 6/8] ARM: dts: sun4i: Add support for mmc

2014-02-15 Thread David Lanzendörfer
Signed-off-by: David Lanzendörfer Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun4i-a10-a1000.dts |8 arch/arm/boot/dts/sun4i-a10-cubieboard.dts |8 arch/arm/boot/dts/sun4i-a10.dtsi | 54 3 files changed, 70 insertions(+)

[PATCH v6 8/8] ARM: sunxi: Add documentation for driver for SD/MMC hosts found on Allwinner sunxi SoCs

2014-02-15 Thread David Lanzendörfer
Signed-off-by: David Lanzendörfer --- .../devicetree/bindings/mmc/sunxi-mmc.txt | 32 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/mmc/sunxi-mmc.txt diff --git a/Documentation/devicetree/bindings/mmc/sunxi-mmc.txt

[PATCH v6 3/8] ARM: sunxi: clk: export clk_sunxi_mmc_phase_control

2014-02-15 Thread David Lanzendörfer
From: Hans de Goede Signed-off-by: Hans de Goede --- include/linux/clk/sunxi.h | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 include/linux/clk/sunxi.h diff --git a/include/linux/clk/sunxi.h b/include/linux/clk/sunxi.h new file mode 100644 index

[PATCH v6 7/8] ARM: dts: sun5i: Add support for mmc

2014-02-15 Thread David Lanzendörfer
Signed-off-by: David Lanzendörfer Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts | 30 +++ arch/arm/boot/dts/sun5i-a10s.dtsi| 44 ++ arch/arm/boot/dts/sun5i-a13-olinuxino-micro.dts | 15

[PATCH v6 5/8] ARM: dts: sun7i: Add support for mmc

2014-02-15 Thread David Lanzendörfer
Signed-off-by: David Lanzendörfer Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun7i-a20-cubieboard2.dts |8 +++ arch/arm/boot/dts/sun7i-a20-cubietruck.dts |8 +++ arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 23 + arch/arm/boot/dts/sun7i-a20.dtsi

[PATCH v6 4/8] ARM: sunxi: Add driver for SD/MMC hosts found on Allwinner sunxi SoCs

2014-02-15 Thread David Lanzendörfer
This is based on the driver Allwinner ships in their Android kernel sources. Initial porting to upstream kernels done by David Lanzendörfer, additional fixes and cleanups by Hans de Goede. It uses dma in bus-master mode using a built-in designware idmac controller, which is identical to the one

[PATCH v6 0/8]

2014-02-15 Thread David Lanzendörfer
Hello The following patchset adds support for the SD/MMC host found in the Allwinner SoCs. It contains all the necessary modifications for clock environment and also the device tree script modification which add it to all the boards using it. The clock environment function needed for phase

Re: sched: fair: NULL ptr deref in check_preempt_wakeup

2014-02-15 Thread Sasha Levin
On 02/15/2014 06:27 PM, Sasha Levin wrote: Hi folks, While fuzzing with trinity inside a KVM tools guest running latest -next kernel, I've stumbled on the following: As soon as I've finished writing that mail I've hit it again, with a different (but similar) stack trace. [ 770.993016]

[PATCH] initramfs: Debug detected compression method

2014-02-15 Thread Daniel M. Weeks
This can greatly aid in narrowing down the real source of initramfs problems such as failures related to the compression of the in-kernel initramfs when an external initramfs is in use as well. Existing errors are ambiguous as to which initramfs is a problem and why. Signed-off-by: Daniel M.

Re: KSM on Android

2014-02-15 Thread Hugh Dickins
On Thu, 13 Feb 2014, Pradeep Sawlani wrote: > Re-sending this in plain text format (Apologies) > > Hello, > > In pursuit of saving memory on Android, I started experimenting with > Kernel Same Page Merging(KSM). > Number of pages shared because of KSM is reported by >

sched: fair: NULL ptr deref in check_preempt_wakeup

2014-02-15 Thread Sasha Levin
Hi folks, While fuzzing with trinity inside a KVM tools guest running latest -next kernel, I've stumbled on the following: [ 522.645288] BUG: unable to handle kernel NULL pointer dereference at 0150 [ 522.646271] IP: [] check_preempt_wakeup+0x11f/0x210 [ 522.646976] PGD

Re: [BUG] unable to handle kernel NULL pointer dereference

2014-02-15 Thread Borislav Petkov
On Sat, Feb 15, 2014 at 01:04:22PM -0800, John wrote: > Thanks for the reply, Boris.  The .config is unmodified > from the Arch Distro default for 3.13.3-1 which can be found > here: http://pastebin.com/LPGZ8ZqA Yep, it is that struct net *net argument to put_pipe_version() which is NULL: 12:

Re: [PATCH 02/11] vfs: More precise tests in d_invalidate

2014-02-15 Thread Eric W. Biederman
Linus Torvalds writes: > On Sat, Feb 15, 2014 at 2:51 PM, Linus Torvalds > wrote: >> >> the whole check_submounts_and_drop thing walks the parent chain and >> locks each parent with the renamelock held for writing. > > Oops, my bad about the write lock, brainfart due to grepping and > reading

RE: [PATCH V6 1/1] Drivers: hv: Implement the file copy service

2014-02-15 Thread KY Srinivasan
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Saturday, February 15, 2014 12:08 PM > To: KY Srinivasan > Cc: linux-kernel@vger.kernel.org; de...@linuxdriverproject.org; > o...@aepfle.de; > a...@canonical.com; jasow...@redhat.com > Subject: Re: [PATCH

[PATCH] Fix flags for initramfs LZ4 compression

2014-02-15 Thread Daniel M. Weeks
LZ4 as implemented in the kernel differs from the default method now used by the reference implementation of LZ4. Until the in-kernel method is updated to support the new default, passing the legacy flag (-l) to the compressor is necessary. Without this flag the kernel-generated, LZ4-compressed

Re: [CRIU] [PATCH 1/3] prctl: reduce permissions to change boundaries of data, brk and stack

2014-02-15 Thread Eric W. Biederman
Andrey Wagin writes: > 2014-02-14 23:16 GMT+04:00 Eric W. Biederman : >> >> Hmm. Let me rewind this a little bit. >> >> I want to be very stupid and ask the following. >> >> Why can't you have the process of interest do: >> ptrace(PTRACE_ATTACHME); >> execve(executable, args,

Re: [CRIU] [PATCH 1/3] prctl: reduce permissions to change boundaries of data, brk and stack

2014-02-15 Thread Eric W. Biederman
Cyrill Gorcunov writes: > On Fri, Feb 14, 2014 at 12:18:46PM -0800, Eric W. Biederman wrote: >> >> > >> >> > Why can't you have the process of interest do: >> >> > ptrace(PTRACE_ATTACHME); >> >> > execve(executable, args, ...); >> >> > >> >> > /* Have the

Re: [PATCH 02/11] vfs: More precise tests in d_invalidate

2014-02-15 Thread Linus Torvalds
On Sat, Feb 15, 2014 at 2:51 PM, Linus Torvalds wrote: > > the whole check_submounts_and_drop thing walks the parent chain and > locks each parent with the renamelock held for writing. Oops, my bad about the write lock, brainfart due to grepping and reading the wrong context...

Re: [PATCH] kbuild: unconditionally clobber include/linux/version.h on distclean

2014-02-15 Thread David Howells
Paul Gortmaker wrote: > As of v3.7, the UAPI changes relocated headers around such that the > kernel version header lived in a new place. > > If a person is bisecting and if you go back to pre-UAPI days, > you will create an include/linux/version.h -- then if you checkout a > post-UAPI kernel,

Re: [PATCH 02/11] vfs: More precise tests in d_invalidate

2014-02-15 Thread Linus Torvalds
On Sat, Feb 15, 2014 at 1:36 PM, Eric W. Biederman wrote: > > The one difference between d_invalidate and check_submounts_and_drop > is that d_invalidate must respect it when a d_revalidate method has > earlier called d_drop so preserve the d_unhashed check in > d_invalidate. What? There's

Re: 3.14-rc2 XFS backtrace because irqs_disabled.

2014-02-15 Thread Linus Torvalds
On Sat, Feb 15, 2014 at 2:28 PM, Dave Jones wrote: > > I've got a shitload of debug options enabled, which may explain it. > Or perhaps that new STACK_PROTECTOR_STRONG stuff ? Well, a lot of it is just the callee-saved registers. The compiler will tend to preferentially allocate registers in the

Re: [PATCH v2] Bluetooth: Add hci_h4p driver

2014-02-15 Thread Pavel Machek
Hi! > > >> > Firmware files are available for download from nemo project: > > >> > > > >> > https://api.merproject.org/public/source/nemo:devel:hw:ti:om > > >> > ap3:n900/bcm-bt-firmware/bcm-bt-firmware-0.21rc3.tar.bz2 > > >> > https://api.merproject.org/public/source/nemo:devel:hw:ti:o > > >> >

Re: 3.14-rc2 XFS backtrace because irqs_disabled.

2014-02-15 Thread Dave Jones
On Sun, Feb 16, 2014 at 09:23:56AM +1100, Dave Chinner wrote: > There's a pretty massive difference between the actual stack usage > of the local variables and the amount of stack being used by the > compiled code. > > What it appears to be is that the compiler is pushing 6-10 registers >

Re: 3.14-rc2 XFS backtrace because irqs_disabled.

2014-02-15 Thread Dave Chinner
On Fri, Feb 14, 2014 at 11:01:23AM -0500, Dave Jones wrote: > On Fri, Feb 14, 2014 at 11:24:27AM +1100, Dave Chinner wrote: > > > > I can fix this one easily - we already have a workqueue for doing > > > async log pushes (will split the stack between xlog_cil_force_lsn > > > and

[PATCH 11/11] proc: Update proc_flush_task_mnt to use d_invalidate

2014-02-15 Thread Eric W. Biederman
Now that d_invalidate always succeeds and flushes mount points use it in stead of a combination of shrink_dcache_parent and d_drop in proc_flush_task_mnt. This removes the danger of a mount point under /proc//... becoming unreachable after the d_drop. Signed-off-by: "Eric W. Biederman" ---

[PATCH 10/11] vfs: Remove d_drop calls from d_revalidate implementations

2014-02-15 Thread Eric W. Biederman
Now that d_invalidate always succeeds it is not longer necessary or desirable to hard code d_drop calls into filesystem specific d_revalidate implementations. Remove the unnecessary d_drop calls and rely on d_invalidate to drop the dentries. Using d_invalidate ensures that paths to mount points

[PATCH 09/11] vfs: Make d_invalidate return void

2014-02-15 Thread Eric W. Biederman
Now that d_invalidate can no longer fail, stop returning a useless return code. For the few callers that checked the return code update remove the handling of d_invalidate failure. Signed-off-by: "Eric W. Biederman" --- fs/btrfs/ioctl.c |5 + fs/cifs/readdir.c |6 +-

inotify cookie regression/info leak in latest mainline

2014-02-15 Thread Vegard Nossum
Hi, It would seem that commit 7053aee26a3548ebaba046ae2e52396ccf56ac6c Author: Jan Kara Date: Tue Jan 21 15:48:14 2014 -0800 fsnotify: do not share events between notification groups introduced a bug where the cookie field of struct inotify_event never gets initialised. In particular,

[PATCH 07/11] vfs: Remove unnecessary calls of check_submounts_and_drop

2014-02-15 Thread Eric W. Biederman
Now that check_submounts_and_drop can not fail and is called from d_invalidate there is no longer a need to call check_submounts_and_drom from filesystem d_revalidate methods so remove it. Signed-off-by: "Eric W. Biederman" --- fs/afs/dir.c |5 - fs/fuse/dir.c|3 ---

Re: [PATCH 03/19] lto: Make asmlinkage __visible

2014-02-15 Thread Sam Ravnborg
On Fri, Feb 14, 2014 at 10:21:27PM +0100, Andi Kleen wrote: > From: Andi Kleen > > Note this causes warnings for static asmlinkage, which > is used in some places. These can be later cleaned up. > static asmlinkage usually makes no sense. > Reading the above changelog - it does not justify

[PATCH 08/11] vfs: Merge check_submounts_and_drop and d_invalidate

2014-02-15 Thread Eric W. Biederman
Now that d_invalidate is the only caller of check_submounts_and_drop, expand check_submounts_and_drop inline in d_invalidate. Signed-off-by: "Eric W. Biederman" --- fs/dcache.c| 55 +++ include/linux/dcache.h |1 - 2 files changed,

[PATCH 06/11] vfs: Lazily remove mounts on unlinked files and directories.

2014-02-15 Thread Eric W. Biederman
With the introduction of mount namespaces and bind mounts it became possible to access files and directories that on some paths are mount points but are not mount points on other paths. It is very confusing when rm -rf somedir returns -EBUSY simply because somedir is mounted somewhere else.

[PATCH 05/11] vfs: Add a function to lazily unmount all mounts from any dentry.

2014-02-15 Thread Eric W. Biederman
v2: Always drop the lock when exiting early. v3: Make detach_mounts robust about freeing several mounts on the same mountpoint at one time, and remove the unneeded mnt_list list test. v4: Document the purpose of detach_mounts and why new_mountpoint is safe to call. Signed-off-by:

Re: [PATCH 08/19] Kbuild, lto, workaround: Don't warn for initcall_reference in modpost

2014-02-15 Thread Sam Ravnborg
On Fri, Feb 14, 2014 at 10:21:32PM +0100, Andi Kleen wrote: > From: Andi Kleen > > This reference is discarded, but can cause warnings when it refers to > exit. Ignore for now. > > This is a workaround and can be removed once we get rid of > -fno-toplevel-reorder > > Signed-off-by: Andi Kleen

[PATCH 04/11] vfs: Keep a list of mounts on a mount point

2014-02-15 Thread Eric W. Biederman
To spot any possible problems call BUG if a mountpoint is put when it's list of mounts is not empty. Signed-off-by: Eric W. Biederman --- fs/mount.h |2 ++ fs/namespace.c |6 ++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/fs/mount.h b/fs/mount.h index

[PATCH 03/11] vfs: Don't allow overwriting mounts in the current mount namespace

2014-02-15 Thread Eric W. Biederman
In preparation for allowing mountpoints to be renamed and unlinked in remote filesystems and in other mount namespaces test if on a dentry there is a mount in the local mount namespace before allowing it to be renamed or unlinked. The primary motivation here are old versions of fusermount

[PATCH 02/11] vfs: More precise tests in d_invalidate

2014-02-15 Thread Eric W. Biederman
The current comments in d_invalidate about what and why it is doing what it is doing are wildly off-base. Which is not surprising as the comments date back to last minute bug fix of the 2.2 kernel. The big fat lie of a comment said: If it's a directory, we can't drop it for fear of somebody

Re: [PATCH 14/19] Kbuild, lto: Handle basic LTO in modpost

2014-02-15 Thread Sam Ravnborg
On Fri, Feb 14, 2014 at 10:21:38PM +0100, Andi Kleen wrote: > From: Andi Kleen > > - Don't warn about LTO marker symbols. modpost runs before > the linker, so the module is not necessarily LTOed yet. > - Don't complain about .gnu.lto* sections > > Signed-off-by: Andi Kleen > --- >

[PATCH 01/11] vfs: Document the effect of d_revalidate on d_find_alias

2014-02-15 Thread Eric W. Biederman
d_drop or check_submounts_and_drop called from d_revalidate can result in renamed directories with child dentries being unhashed. These renamed and drop directory dentries can be rehashed after d_materialise_unique uses d_find_alias to find them. Signed-off-by: "Eric W. Biederman" ---

[PATCH 0/11] Detaching mounts on unlink

2014-02-15 Thread Eric W. Biederman
The last round of this patchset the semantics of dropping mounts on unlink were agreed upon so long as we preserve the current semantics in a single mount namespace. There are two big changes with this version of the patchset. 1) The test for a mount in the current mount namespace has been

Re: [PATCH 10/19] Kbuild, lto: add ld-version and ld-ifversion macros

2014-02-15 Thread Sam Ravnborg
On Fri, Feb 14, 2014 at 10:21:34PM +0100, Andi Kleen wrote: > From: Andi Kleen > > To check the linker version. Used by the LTO makefile. Everything in Kbuild.include is supposed to be documented in Documentation/kbuild/* Please add documentation too. Sam -- To unsubscribe from this

Re: [PATCH 01/19] x86, lto: Disable LTO for the x86 VDSO

2014-02-15 Thread Sam Ravnborg
On Fri, Feb 14, 2014 at 10:21:25PM +0100, Andi Kleen wrote: > From: Andi Kleen > > The VDSO does not play well with LTO, so just disable LTO for it. > Also pass a 32bit linker flag for the 32bit version. > > Cc: x...@kernel.org > Signed-off-by: Andi Kleen > --- > arch/x86/vdso/Makefile | 10

Re: Updated Link-Time-Optimization patchkit

2014-02-15 Thread Sam Ravnborg
Hi Andi. On Sat, Feb 15, 2014 at 06:44:24PM +0100, Andi Kleen wrote: > On Sat, Feb 15, 2014 at 02:38:14PM +0100, Markus Trippelsdorf wrote: > > On 2014.02.14 at 22:21 +0100, Andi Kleen wrote: > > > This is the updated LTO patchkit for 3.14-rc2. LTO allows > > > the compiler to do global

Re: [BUG] unable to handle kernel NULL pointer dereference

2014-02-15 Thread John
- Original Message - > From: Borislav Petkov <> > Sent: Saturday, February 15, 2014 3:30 PM > Subject: Re: [BUG] unable to handle kernel NULL pointer dereference > > If I'd have to guess, that's trying to rcu deref that struct net_generic > *ng in net_generic() but this is only

Re: [PATCH 39/48] powerpc: Replace __get_cpu_var uses

2014-02-15 Thread Benjamin Herrenschmidt
On Sun, 2014-02-16 at 07:32 +1100, Benjamin Herrenschmidt wrote: > > But even that looks like it should be considered a bug. Please file in > > GNOME bugzilla. > > In my case it doesn't have an inline part. I only get an attachment, > > I'll file it in gnome bz. Hah, story of my life: 3.8.x

Re: [PATCH 2/3] staging: r8188eu: delete unnecessary field initialization

2014-02-15 Thread Greg Kroah-Hartman
On Sat, Feb 15, 2014 at 08:36:12AM +0100, Julia Lawall wrote: > From: Julia Lawall > > On success, the function netdev_alloc_skb initializes the dev field of its > result to its first argument, so this doesn't have to be done in the > calling context. > > The semantic patch that fixes this

[PULL REQUEST] i2c for 3.14

2014-02-15 Thread Wolfram Sang
Linus, i2c has a bugfix and documentation improvements for you. Please pull. Thanks, Wolfram The following changes since commit b28a960c42fcd9cfc987441fa6d1c1a471f0f9ed: Linux 3.14-rc2 (2014-02-09 18:15:47 -0800) are available in the git repository at:

Re: [PATCH 39/48] powerpc: Replace __get_cpu_var uses

2014-02-15 Thread Benjamin Herrenschmidt
On Sat, 2014-02-15 at 18:12 +, David Woodhouse wrote: > On Sat, 2014-02-15 at 16:45 +0100, Peter Zijlstra wrote: > > > > David; in particular; quilt mail adds "Content-Disposition: inline" > > headers and Evo, in its infinite wisdom, makes the entire body into an > > attachment. > > Hm,

Re: [BUG] unable to handle kernel NULL pointer dereference

2014-02-15 Thread Borislav Petkov
If I'd have to guess, that's trying to rcu deref that struct net_generic *ng in net_generic() but this is only guesswork as I don't have your .config. Anyway, adding some more people to CC. [ 137.689996] Code: f8 e8 4f b8 9a c8 31 c0 eb c6 90 8d b4 26 00 00 00 00 55 89 e5 56 53 3e 8d 74 26 00

[PATCH 1/2] rtc: rtc-ds1307: fix sysfs wakealarm attribute creation

2014-02-15 Thread Simon Guinot
In order to allow the creation of the sysfs attribute wakealarm, this patch moves the device_set_wakeup_capable() call above the RTC device registration. Signed-off-by: Simon Guinot --- drivers/rtc/rtc-ds1307.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 2/2] rtc: rtc-ds1307: add alarm support for mcp7941x chips

2014-02-15 Thread Simon Guinot
This patch adds alarm support for the Microchip RTC devices MCP794xx. Note that two programmable alarms are provided by the chip but only one is used by the driver. Signed-off-by: Simon Guinot --- drivers/rtc/rtc-ds1307.c | 183 ++- 1 file changed,

[PATCH 0/2] Add alarm suport for the Microchip RTC devices MCP794xx

2014-02-15 Thread Simon Guinot
Hello, This patch series adds alarm support for the Microchip RTC devices MCP794xx. A such compatible RTC (MCP7940NT) is embedded on the Seagate boards n090x01 (based on the Armada-370 SoC). Regards, Simon Simon Guinot (2): rtc: rtc-ds1307: fix sysfs wakealarm attribute creation rtc:

Re: [cgroups] BUG: unable to handle kernel NULL pointer dereference at 0000003c

2014-02-15 Thread Li Zefan
于 2014年02月15日 20:42, Fengguang Wu 写道: > Greetings, > > I got the below dmesg and the first bad commit is > > git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git for-next > commit de00ffa56ea3132c6013fc8f07133b8a1014cf53 > Author: Tejun Heo > AuthorDate: Tue Feb 11 11:52:48 2014

Re: [PATCH v2 03/11] sysfs: create bin_attributes under the requested group

2014-02-15 Thread Greg Kroah-Hartman
On Fri, Feb 14, 2014 at 02:02:07PM -0800, Cody P Schafer wrote: > bin_attributes created/updated in create_files() (such as those listed > via (struct device).attribute_groups) were not placed under the > specified group, and instead appeared in the base kobj directory. > > Fix this by making

Re: [BUG] unable to handle kernel NULL pointer dereference

2014-02-15 Thread John
> When booting into linux v3.13.3, I am unable to mount an nfs share on this  > particular hardware.  I get the same problem using v3.12.11.  Only the 3.10.x > series allows normal operation.  Partial dmesg output shown inline, > additional > logs available upon request. > > PLEASE cc me on

Re: [PATCH V6 1/1] Drivers: hv: Implement the file copy service

2014-02-15 Thread Greg KH
On Wed, Feb 12, 2014 at 10:14:03AM -0800, K. Y. Srinivasan wrote: > Implement the file copy service for Linux guests on Hyper-V. This permits the > host to copy a file (over VMBUS) into the guest. This facility is part of > "guest integration services" supported on the Windows platform. > Here is

Re: [PATCH v6 0/6] Add support for the System Power Management Interface (SPMI)

2014-02-15 Thread Greg Kroah-Hartman
On Wed, Feb 12, 2014 at 01:44:21PM -0600, Josh Cartwright wrote: > Hey Greg- > > Is it possible for you to pick this up for 3.15? It'd be nice if we could get > an Ack from devicetree folks on patches 2 and 5, but there has been many > months > worth of opportunity for that. All now applied to

Re: [PATCH] Drivers: net: wireless: mac80211_hwim fixed coding style issues

2014-02-15 Thread Antonio Quartulli
On 15/02/14 19:13, Johannes Berg wrote: > On Sat, 2014-02-15 at 12:55 +0100, Justin van Wijngaarden wrote: > >> @@ -1,19 +1,17 @@ >> -/* >> - * mac80211_hwsim - software simulator of 802.11 radio(s) for mac80211 >> +/* mac80211_hwsim - software simulator of 802.11 radio(s) for mac80211 > > I

[GIT PULL] x86 EFI fixes for v3.14-rc3

2014-02-15 Thread H. Peter Anvin
Hi Linus, A few more EFI-related fixes. The following changes since commit 4640c7ee9b8953237d05a61ea3ea93981d1bc961: x86, smap: smap_violation() is bogus if CONFIG_X86_SMAP is off (2014-02-13 08:40:52 -0800) are available in the git repository at:

Re: [PATCH] lib: Fix some sparse warnings in devres.c

2014-02-15 Thread Greg Kroah-Hartman
On Thu, Feb 06, 2014 at 11:13:46AM -0500, Steven Rostedt wrote: > Having a discussion about sparse warnings in the kernel, and that we > should clean them up, I decided to pick a random file to do so. This > happened to be devres.c which gives the following warnings: > > CHECK lib/devres.c >

  1   2   3   4   5   >