[PATCH v2 2/4] random: Use arch_get_random_seed*() at init time and once a second

2014-03-17 Thread H. Peter Anvin
Use arch_get_random_seed*() in two places in the Linux random driver (drivers/char/random.c): 1. During entropy pool initialization, use RDSEED in favor of RDRAND, with a fallback to the latter. Entropy exhaustion is unlikely to happen there on physical hardware as the machine is single-thr

[PATCH v2 3/4] random: If we have arch_get_random_seed*(), try it before blocking

2014-03-17 Thread H. Peter Anvin
If we have arch_get_random_seed*(), try to use it for emergency refill of the entropy pool before giving up and blocking on /dev/random. It may or may not work in the moment, but if it does work, it will give the user better service than blocking will. Reviewed-by: Ingo Molnar Signed-off-by: H.

[PATCH v2 0/4] RDSEED support for the Linux kernel

2014-03-17 Thread H. Peter Anvin
Upcoming Intel silicon adds a new RDSEED instruction. Whereas RDRAND returns output from a PRNG, the RDSEED instruction returns fully conditioned entropy that is suitable for use as seeds to a PRNG. This patchset adds support for RDSEED in the Linux kernel in three places: 1. During bootup, use

Re: [PATCH 1/3] mm: munlock: fix a bug where THP tail page is encountered

2014-03-17 Thread Vlastimil Babka
753.914387] kernel BUG at mm/mlock.c:512! [ 1753.914387] invalid opcode: [#1] PREEMPT SMP DEBUG_PAGEALLOC [ 1753.914387] Dumping ftrace buffer: [ 1753.914387](ftrace buffer empty) [ 1753.914387] Modules linked in: [ 1753.914387] CPU: 26 PID: 36822 Comm: trinity-c337 Tainted: G W

Re: [GIT PULL] Move device tree graph parsing helpers to drivers/of

2014-03-17 Thread Laurent Pinchart
Hi Robert, On Friday 14 March 2014 08:05:05 Robert Schwebel wrote: > On Thu, Mar 13, 2014 at 04:13:08PM +0100, Sylwester Nawrocki wrote: > > My experience and feelings are similar, I started to treat mainline > > kernel much less seriously after similar DT related blocking issues. > > So how do w

Re: [PATCH 1/2] staging: cxtie1: remove unneeded mkret() calls

2014-03-17 Thread DaeSeok Youn
Ok. I will rebase this patch in staging-next branch and send it again. Thanks. Daeseok Youn. 2014-03-18 6:23 GMT+09:00 Greg KH : > On Mon, Mar 10, 2014 at 08:54:18AM +0900, Daeseok Youn wrote: >> >> The mkret() change a value of error from positive to >> negative. This patch is modified to return

Re: [PATCH] uio: Fix memory size check with vma in uio_mmap_physical()

2014-03-17 Thread Greg KH
On Wed, Mar 12, 2014 at 10:24:21AM +0900, Nobuhiro Iwamatsu wrote: > Register for the device are mapped in uio_mmap_physical(). > In this case, it might not be the same as the size of VMA always. Why wouldn't this be the case? > This uses PAGE_ALIGN to memory size, fix the check of the memory siz

Re: [v3.13][v3.14][Regression] kthread: make kthread_create() killable

2014-03-17 Thread One Thousand Gnomes
> Root cause time: it's wrong for the oom-killer to use SIGKILL. In fact It has to use SIGKILL anything else might be caught and grow the user stack a page.. > it's basically always wrong to send signals from in-kernel. Signals > are a userspace IPC mechanism and using them in-kernel a) makes i

Re: [PATCH 2/2] md: Add support for RAID-1 consistency check feature

2014-03-17 Thread NeilBrown
On Mon, 17 Mar 2014 16:00:05 +0100 Ralph Mueck wrote: > This patch introduces a consistency check feature for level-1 RAID > arrays that have been created with the md driver. > When enabled, every read request is duplicated and initiated for each > member of the RAID array. All read blocks are co

Re: [PATCH 1/2] USB: cdc: add MBIM extended functional descriptor structure

2014-03-17 Thread Greg Kroah-Hartman
On Sat, Mar 15, 2014 at 11:49:09PM -0700, Ben Chan wrote: > This patch adds the MBIM extended functional descriptor structure > defined in "Universal Serial Bus Communications Class Subclass > Specification for Mobile Broadband Interface Model, Revision 1.0, > Errata-1" published by USB-IF. > > Si

Re: [PATCH] usb: gadget: f_fs: add missing spinlock and mutex unlock

2014-03-17 Thread Greg KH
On Mon, Mar 17, 2014 at 04:04:04PM -0700, Greg KH wrote: > On Mon, Mar 10, 2014 at 09:33:37AM +0100, Robert Baldyga wrote: > > This patch adds missing spin_unlock and mutex_unlock calls in > > error handling code. > > > > Signed-off-by: Robert Baldyga > > Acked-by: Michal Nazarewicz > > Acked-by

Re: [PATCH] usb: gadget: f_fs: add missing spinlock and mutex unlock

2014-03-17 Thread Greg KH
On Mon, Mar 10, 2014 at 09:33:37AM +0100, Robert Baldyga wrote: > This patch adds missing spin_unlock and mutex_unlock calls in > error handling code. > > Signed-off-by: Robert Baldyga > Acked-by: Michal Nazarewicz > Acked-by: Felipe Balbi > --- > drivers/usb/gadget/f_fs.c |8 ++-- > 1

Re: zram: zsmalloc calls sleeping function from atomic context

2014-03-17 Thread Andrew Morton
ction called from invalid context at > mm/vmalloc.c:74 > [ 631.541181] in_atomic(): 1, irqs_disabled(): 0, pid: 94, name: kworker/u8:2 > [ 631.541183] Preemption disabled at:[] > zram_bvec_rw.isra.14+0x2be/0x4fc [zram] > > [ 631.541193] CPU: 2 PID: 94 Comm: kworker/u8:

Re: [PATCH 1/3] mm: munlock: fix a bug where THP tail page is encountered

2014-03-17 Thread Sasha Levin
87] invalid opcode: [#1] PREEMPT SMP DEBUG_PAGEALLOC [ 1753.914387] Dumping ftrace buffer: [ 1753.914387](ftrace buffer empty) [ 1753.914387] Modules linked in: [ 1753.914387] CPU: 26 PID: 36822 Comm: trinity-c337 Tainted: GW 3.14.0-rc6-next-20140317-sasha-00012-ge93392

mm: kernel BUG at mm/mremap.c:68!

2014-03-17 Thread Sasha Levin
90231](ftrace buffer empty) [ 2977.290231] Modules linked in: [ 2977.290231] CPU: 20 PID: 36563 Comm: trinity-c383 Tainted: GW 3.14.0-rc6-next-20140317-sasha-00012-ge933921-dirty #226 [ 2977.290231] task: 880bf79d3000 ti: 880bfb5c8000 task.ti: 880bfb5c8000 [ 2977.290231

Re: [PATCH 1/2] md: Add configurability for consistency check feature

2014-03-17 Thread NeilBrown
On Mon, 17 Mar 2014 16:00:04 +0100 Ralph Mueck wrote: > This patch adds sysfs configurability for the md level-1 RAID > consistency check. > The feature introduces a new attribute in sysfs named "safe_read". > To toggle consistency checks on/off, simply echo safe_read in > /sys/block/md*/md/safe_

Re: [PATCH V9 2/2] ARM: dts: Enable ahci sata and sata phy

2014-03-17 Thread Kukjin Kim
On 03/03/14 20:59, Kishon Vijay Abraham I wrote: On Monday 03 March 2014 10:52 AM, Yuvaraj Kumar C D wrote: This patch adds dt entry for ahci sata controller and its corresponding phy controller.phy node has been added w.r.t new generic phy framework. Signed-off-by: Yuvaraj Kumar C D This

Re: [char-misc-next 3/3 V2] mei: report consistently copy_from/to_user failures

2014-03-17 Thread Greg KH
On Wed, Mar 12, 2014 at 01:19:13PM +0200, Tomas Winkler wrote: > From: Alexander Usyskin > > Consistently display error on possible copy_from/to_user failures > use dev_dbg so it cannot be abused to flood the kernel log > > Signed-off-by: Alexander Usyskin > Signed-off-by: Tomas Winkler > Rev

Re: [PATCH v7 2/2] ARM hibernation / suspend-to-disk

2014-03-17 Thread Sebastian Capella
On 17 March 2014 13:44, Ezequiel Garcia wrote: > On Mar 17, Sebastian Capella wrote: >> On 16 March 2014 00:09, Ezequiel Garcia >> wrote: >> > On Mar 05, Sebastian Capella wrote: >> > [..] >> >> diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig >> >> index 1f8fed9..83707702 100644 >> >> ---

Re: [PATCH 6/9 v7] ARM: dts: exynos5250/5420: add dt node for sss module

2014-03-17 Thread Kukjin Kim
On 02/17/14 18:44, Naveen Krishna Chatradhi wrote: This patch adds the device tree node for SSS module found on Exynos5420 and Exynos5250 Signed-off-by: Naveen Krishna Chatradhi Reviewed-by: Tomasz Figa TO: CC: David S. Miller CC: Kukjin Kim CC: --- Changes since v6: None arch/arm/boot/dts/ex

[PATCH v23 10/13] x86, vdso: Add 32 bit VDSO time support for 64 bit kernel

2014-03-17 Thread Stefani Seibold
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 performance. The vsyscall_gtod_data struture mus

[GIT PULL] EFI changes for v3.15

2014-03-17 Thread Matt Fleming
Peter, I've queued up a few fixes that avoid some crashes when running with CONFIG_EFI_MIXED. Please pull into the queue for the merge window. The following changes since commit 617b3c37da78cb89c63ed880b2405afc7490567b: Merge branch 'mixed-mode' into efi-for-mingo (2014-03-05 18:18:50 +)

[PATCH v23 12/13] x86, vdso32: Disable stack protector, adjust optimizations

2014-03-17 Thread Stefani Seibold
From: "H. Peter Anvin" For the 32-bit VDSO, match the 64-bit VDSO in: 1. Disable the stack protector. 2. Use -fno-omit-frame-pointer for user space debugging sanity. 3. Use -foptimize-sibling-calls like the 64-bit VDSO does. Reported-by: Ingo Molnar Signed-off-by: Stefani Seibold --- arch/x8

[PATCH v23 11/13] x86, vdso: Zero-pad the VVAR page

2014-03-17 Thread Stefani Seibold
From: Andy Lutomirski By coincidence, the VVAR page is at the end of an ELF segment. As a result, if it ends up being a partial page, the kernel loader will leave garbage behind at the end of the vvar page. Zero-pad it to a full page to fix this issue. This has probably been broken since the V

[PATCH v23 13/13] x86, vdso32: handle 32 bit vDSO larger one page

2014-03-17 Thread Stefani Seibold
This patch enables 32 bit vDSO which are larger than a page. Signed-off-by: Stefani Seibold --- arch/x86/vdso/vdso32-setup.c | 22 +++--- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/arch/x86/vdso/vdso32-setup.c b/arch/x86/vdso/vdso32-setup.c index e10abdf..0bc3

[PATCH 2/5] tools lib traceevent: handle the '->' operator

2014-03-17 Thread Ramkumar Ramachandra
perf test emits the following warning: $ perf test 5: parse events tests ... Warning: unknown op '->' ... Add the operator to the checks. Cc: Steven Rostedt Cc: Namhyung Kim Cc: Jiri Olsa Cc: Arnaldo Carvalho de Melo Signed-off-by: Ramkumar Ramachandra --- tools/lib/tracee

[PATCH 1/5] MAINTAINERS: add tools/lib/traceevent/ to perf subsystem

2014-03-17 Thread Ramkumar Ramachandra
Cc: Steven Rostedt Cc: Arnaldo Carvalho de Melo Signed-off-by: Ramkumar Ramachandra --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index b3fdb0f..788effd 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6693,6 +6693,7 @@ F:arch/*/kernel/*/*/p

[PATCH v23 01/13] x86, vdso: Make vsyscall_gtod_data handling x86 generic

2014-03-17 Thread Stefani Seibold
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. Reviewed-by: Andy Lutomirski Signed-off-by: Stefani Seibold --- arc

Re: linux-next: manual merge of the staging tree with the v4l-dvb tree

2014-03-17 Thread Russell King
On Mon, Mar 17, 2014 at 04:29:37PM -0300, Mauro Carvalho Chehab wrote: > Em Mon, 17 Mar 2014 11:29:53 -0700 > Greg KH escreveu: > > > On Mon, Mar 17, 2014 at 08:01:22AM -0300, Mauro Carvalho Chehab wrote: > > > Em Mon, 17 Mar 2014 18:55:42 +1100 > > > Stephen Rothwell escreveu: > > > > > > > Hi

[PATCH v23 03/13] x86, vdso: Revamp vclock_gettime.c

2014-03-17 Thread Stefani Seibold
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. Reviewed-by: Andy Lutomirski Signed-off-by: Stefani Seibold --- arch/x86/vdso/vclock_gettime.c | 85

[PATCH 4/5] tools lib traceevent: field_is_long() includes unsigned long

2014-03-17 Thread Ramkumar Ramachandra
Note in the comment that field_is_long() also checks for "unsigned long" and "unsigned long long" in addition to "long long". Cc: Steven Rostedt Cc: Namhyung Kim Cc: Jiri Olsa Cc: Arnaldo Carvalho de Melo Signed-off-by: Ramkumar Ramachandra --- tools/lib/traceevent/event-parse.c | 2 +- 1 fi

[PATCH 0/5] Squelch warnings emitted by 'perf test'

2014-03-17 Thread Ramkumar Ramachandra
Hi, The motivation for the series is mainly [2/5] and [5/5] -- to squelch the warnings emitted by 'perf test'. I made some effort to understand what's going on, but I didn't get very far. [5/5] feels especially like a band-aid fix: please let me know how to do it right. Thanks. Ramkumar Ramachan

[PATCH 3/5] tools lib traceevent: use else-if cascade, not separate ifs

2014-03-17 Thread Ramkumar Ramachandra
When token cannot be more than one value, it seems wasteful to go through all the strcmp() calls. Use an else-if cascade instead. Cc: Steven Rostedt Cc: Namhyung Kim Cc: Jiri Olsa Cc: Arnaldo Carvalho de Melo Signed-off-by: Ramkumar Ramachandra --- tools/lib/traceevent/event-parse.c | 12 +++

[PATCH 5/5] perf test: squelch warnings about undefined sizeof

2014-03-17 Thread Ramkumar Ramachandra
perf test emits the following warnings on the parse events test: $ perf test 5: parse events tests Warning: function sizeof not defined Warning: function sizeof not defined Warning: function sizeof not defined Warning: function sizeof not defined Warning: function sizeof n

[PATCH v23 04/13] x86, vdso: __vdso_clock_gettime() cleanup

2014-03-17 Thread Stefani Seibold
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. Reviewed-by: Andy Lutomirski Signed-off-by: Stefani Seib

[PATCH v23 09/13] x86, vdso: Add 32 bit VDSO time support for 32 bit kernel

2014-03-17 Thread Stefani Seibold
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. Reviewed-by: Andy Lutomirski Signed-off-by: Stefani Seibold --- arch/x86/include/asm/vdso.h

Re: [PATCH v2 00/14] UEFI support for arm(64)

2014-03-17 Thread Matt Fleming
On Thu, 13 Mar, at 10:46:53PM, Leif Lindholm wrote: > Since all prerequisites are not ready for the (32-bit) arm patches to > go in, I have broken these out of this set and will be resubmitting > them separately. > > This set now provides arm64 support only - but includes the code that > is common

[PATCH v23 08/13] x86, vdso: Patch alternatives in the 32-bit VDSO

2014-03-17 Thread Stefani Seibold
From: Andy Lutomirski We need the alternatives mechanism for rdtsc_barrier() to work. Signed-off-by: Stefani Seibold --- arch/x86/include/asm/vdso.h | 2 ++ arch/x86/vdso/Makefile | 3 ++- arch/x86/vdso/vdso32-setup.c | 23 --- arch/x86/vdso/vma.c | 13 +++

[PATCH v23 05/13] x86, vdso: Replace VVAR(vsyscall_gtod_data) by gtod macro

2014-03-17 Thread Stefani Seibold
There a currently more than 30 users of the gtod macro, so replace the last VVAR(vsyscall_gtod_data) by gtod macro. Reviewed-by: Andy Lutomirski Signed-off-by: Stefani Seibold --- arch/x86/vdso/vclock_gettime.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/v

[PATCH v23 07/13] x86, vdso: Introduce VVAR marco for vdso32

2014-03-17 Thread Stefani Seibold
This patch revamps the vvar.h for introduce the VVAR macro for vdso32. Reviewed-by: Andy Lutomirski Signed-off-by: Stefani Seibold --- arch/x86/include/asm/vvar.h | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/vvar.h b/arch/x86/include/a

[PATCH v23 00/13] x86: Add x86 32 bit VDSO time function support

2014-03-17 Thread Stefani Seibold
This patch add the functions vdso_gettimeofday(), vdso_clock_gettime() and vdso_time() to the x86 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 time functions a fast and a reliable way

[PATCH v23 06/13] x86, vdso: Cleanup __vdso_gettimeofday()

2014-03-17 Thread Stefani Seibold
This patch do a little cleanup for the __vdso_gettimeofday() function. It kicks out an unneeded ret local variable and makes the code faster if only the timezone is needed (an admittedly rare case.) Reviewed-by: Andy Lutomirski Signed-off-by: Stefani Seibold --- arch/x86/vdso/vclock_gettime.c

Re: [PATCH 2/3] vrange: Add purged page detection on setting memory non-volatile

2014-03-17 Thread John Stultz
On 03/17/2014 02:39 AM, Jan Kara wrote: > On Fri 14-03-14 11:33:32, John Stultz wrote: >> Users of volatile ranges will need to know if memory was discarded. >> This patch adds the purged state tracking required to inform userland >> when it marks memory as non-volatile that some memory in that ran

[PATCH v23 02/13] mm: Add new func _install_special_mapping() to mmap.c

2014-03-17 Thread Stefani Seibold
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 additonal vvar and hpet pages into the 32 bit

Re: linux-next: build failure after merge of the driver-core tree

2014-03-17 Thread Tejun Heo
On Mon, Mar 17, 2014 at 06:05:54PM -0400, Tejun Heo wrote: > I think this is being blown out of proportion. It was a rarely used > API and converting to the new one is mostly trivial which can be So, looked at the failed code. The only necessary change seems to be calling device_remove_file_self

Re: [PATCH 1/3] vrange: Add vrange syscall and handle splitting/merging and marking vmas

2014-03-17 Thread John Stultz
On 03/17/2014 02:21 AM, Jan Kara wrote: > On Fri 14-03-14 11:33:31, John Stultz wrote: >> This patch introduces the vrange() syscall, which allows for specifying >> ranges of memory as volatile, and able to be discarded by the system. >> >> This initial patch simply adds the syscall, and the vma ha

Re: [PATCH 1/3] mm: munlock: fix a bug where THP tail page is encountered

2014-03-17 Thread Vlastimil Babka
On 17.3.2014 22:08, Sasha Levin wrote: On 03/17/2014 08:38 AM, Vlastimil Babka wrote: On 03/15/2014 04:06 AM, Sasha Levin wrote: On 03/14/2014 07:55 PM, Sasha Levin wrote: On 12/17/2013 08:00 AM, Vlastimil Babka wrote: From: Vlastimil Babka Date: Fri, 13 Dec 2013 14:25:21 +0100 Subject: [PATC

Re: [PATCH v7 2/2] ARM hibernation / suspend-to-disk

2014-03-17 Thread Sebastian Capella
Thanks Russell! On 16 March 2014 02:46, Russell King - ARM Linux wrote: > On Mon, Mar 10, 2014 at 11:32:17AM -0700, Sebastian Capella wrote: ... > Let's look at the implementations... > > #define __pa(x) __virt_to_phys((unsigned long)(x)) > static inline phys_addr_t __virt_to_phys

Re: linux-next: build failure after merge of the driver-core tree

2014-03-17 Thread Tejun Heo
Hello, On Mon, Mar 17, 2014 at 02:56:19PM -0700, Greg KH wrote: > > Now regarding the practicals of sorting out our trees, Stephen suggested > > that rather than doing anything on my side (heh, I like that !), you > > should revert the last patch of the series, the one removing the old > > API, in

Re: For review: open_by_name_at(2) man page

2014-03-17 Thread NeilBrown
On Mon, 17 Mar 2014 16:57:29 +0100 "Michael Kerrisk (man-pages)" wrote: > Hi Aneesh, (and others) > > Below is a man page I've written for name_to_handle_at(2) and > open_by_name_at(2). Would you be willing to review it please, > and let me know of any corrections/improvements? > > Thanks, > >

[char-misc-next 3/5 V2] mei: client.h fix checkpatch errors

2014-03-17 Thread Tomas Winkler
Fix checkpatch error return is not a function, parentheses are not required Signed-off-by: Tomas Winkler --- V2: fix typo in the commit message checkpetch -> checkpatch drivers/misc/mei/client.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/misc/mei/client

Re: linux-next: build failure after merge of the driver-core tree

2014-03-17 Thread Greg KH
On Tue, Mar 18, 2014 at 07:33:30AM +1100, Benjamin Herrenschmidt wrote: > On Mon, 2014-03-17 at 11:33 -0700, Greg KH wrote: > > > There were only 3 (or 4), users of this api, and no new ones had been > > added in _years_, it's a very obscure thing, and odds are, it wouldn't > > ever be added again

[PATCH] sched: use zalloc_cpumask_var for rootdomain cpumasks

2014-03-17 Thread Mark Salter
In kernel/sched/core.c, there is: static int init_rootdomain(struct root_domain *rd) { memset(rd, 0, sizeof(*rd)); if (!alloc_cpumask_var(&rd->span, GFP_KERNEL)) goto out; if (!alloc_cpumask_var(&rd->online, GFP_KERNEL)) goto free_span;

Re: [patch v3]DM: dm-insitu-comp: a compressed DM target for SSD

2014-03-17 Thread Mike Snitzer
On Mon, Mar 17 2014 at 5:56am -0400, Shaohua Li wrote: > On Fri, Mar 14, 2014 at 06:44:45PM -0400, Mike Snitzer wrote: > > On Fri, Mar 14 2014 at 5:40am -0400, > > Shaohua Li wrote: > > > > > On Mon, Mar 10, 2014 at 09:52:56AM -0400, Mike Snitzer wrote: > > > > On Fri, Mar 07 2014 at 2:57am

Re: [PATCH 2/2] pstore: fix memory leak when decompress using big_oops_buf

2014-03-17 Thread Tony Luck
Ok - applied the original two that Andrew had allready taken into -mm, plus these four to my "next" branch. So I have these queued: Liu ShuoX (6): pstore: clarify clearing of _read_cnt in ramoops_context pstore: skip zero size persistent ram buffer in traverse pstore: Fix NULL p

Re: [PATCH] staging: unisys: use kzalloc instead of kmalloc/memset 0

2014-03-17 Thread Greg KH
On Wed, Mar 12, 2014 at 07:37:50PM +0900, Daeseok Youn wrote: > > Signed-off-by: Daeseok Youn > --- > drivers/staging/unisys/uislib/uislib.c |5 + > drivers/staging/unisys/uislib/uisutils.c |2 +- > 2 files changed, 2 insertions(+), 5 deletions(-) > > diff --git a/drivers/staging/

w1: 3.14-rc7 - possible recursive locking detected

2014-03-17 Thread Belisko Marek
Hi, booting latest 3.14-rc7 on gta04 board gives following warning: [3.101409] Driver for 1-wire Dallas network protocol. [3.109649] omap_hdq omap_hdq: OMAP HDQ Hardware Rev 0.5. Driver in Interrupt mode [3.330810] [3.332397] = [3.33

Re: [PATCH] [staging][r8188eu]: memory leak in rtw_free_cmd_obj if command is (_Set_Drv_Extra)

2014-03-17 Thread Greg KH
On Mon, Mar 10, 2014 at 11:37:44AM -0400, Wang, Xiaoming wrote: > pcmd->parmbuf->pbuf has been allocated if command is > GEN_CMD_CODE(_Set_Drv_Extra), > and it enqueued by rtw_enqueue_cmd. rtw_cmd_thread dequeue pcmd by > rtw_dequeue_cmd. > The memory leak happened on this branch "if( _FAIL == >

Re: [PATCH] staging: dgap: Fixed sparse error: same symbol redeclared with different type

2014-03-17 Thread Greg KH
On Wed, Mar 12, 2014 at 08:55:44PM -0700, Masood Mehmood wrote: > sparse reported dgap_do_fep_load is redeclared with different type. while > fixing, I noticed __user attribute is used incorrectly in declaration. > There is no need to define __user for firware->data. > > Replaced the __user with '

Re: [v3.13][v3.14][Regression] kthread: make kthread_create()killable

2014-03-17 Thread Tetsuo Handa
Andrew Morton wrote: > What process is running here? Presumably modprobe. Yes. It is a worker systemd-udevd process who is acting like modprobe . > A possible explanation is that modprobe has genuinely received a > SIGKILL. Can you identify anything in this setup which might send a > SIGKILL to

Re: [PATCH] watchdog: Printing traces for all cpus on lockup detection

2014-03-17 Thread Andrew Morton
On Mon, 17 Mar 2014 15:10:05 -0400 Don Zickus wrote: > From: Aaron Tomlin > > A 'softlockup' is defined as a bug that causes the kernel to > loop in kernel mode for more than a predefined period to > time, without giving other tasks a chance to run. > > Currently, upon detection of this condit

Re: [PATCH] staging: dgap: Fixed sparse error: same symbol redeclared with different type

2014-03-17 Thread Greg KH
On Sun, Mar 09, 2014 at 12:57:35AM -0800, Masood Mehmood wrote: > sparse reported dgap_do_fep_load is redeclared with different type. while > fixing, I noticed __user attribute is used incorrectly in declaration. > There is no need to define __user for firware->data. > > Replaced the __user with '

RE: [Nfs-ganesha-devel] name_to_handle_at() and persistent filesystem IDs

2014-03-17 Thread Frank Filz
> Michael Kerrisk writes: > > > Hello Aneesh, > > > > I'm currently working on a man page for name_to_handle_at() and > > open_by_handle_at(), and I have a question relating to a point that > > probably needs to be covered in the man page. > > > > Back in July 2010, in this thread: > > http://thr

Re: [PATCH 1/2] staging: cxtie1: remove unneeded mkret() calls

2014-03-17 Thread Greg KH
On Mon, Mar 10, 2014 at 08:54:18AM +0900, Daeseok Youn wrote: > > The mkret() change a value of error from positive to > negative. This patch is modified to return negative value > when it failed. It doesn't need to call with function > for changing from positive to negative. > > Signed-off-by: D

Re: [PATCH 2/2] net: cdc_ncm: respect operator preferred MTU reported by MBIM

2014-03-17 Thread Bjørn Mork
Ben Chan writes: > It's a bit messy how MTU is currently handled in MBIM. While wMTU may > seem optional and redundant, it addresses some issues with > wMaxSegmentSize and MBIM_CID_IP_CONFIGURATION, and hence why I suggest > using wMTU when available: > > (1) wMaxSegmentSize > > The MBIM 1.0 erra

Re: [PATCH V2] ATHEROS-ALX: Use dma_set_mask_and_coherent and fix a bug

2014-03-17 Thread David Miller
From: Peter Senna Tschudin Date: Sun, 16 Mar 2014 00:30:52 +0100 > 1. For the 64 bits dma mask use dma_set_mask_and_coherent instead of > dma_set_mask and dma_set_coherent_mask. > > 2. For the 32 bits dma mask dma_set_coherent_mask is only called if > dma_set_mask fails, which is unusual. As

Re: [PATCH v5 0/9] Use regmap+devm+DT in pm8xxx input drivers

2014-03-17 Thread Stephen Boyd
ping? On 03/11/14 10:50, Stephen Boyd wrote: > ping? > > On 03/04/14 10:34, Stephen Boyd wrote: >> These patches move the pm8xxx input drivers over to use devm_* APIs >> and regmap. This breaks the dependency of these drivers on the pm8xxx >> specific read/write calls and also simplifies the probe

Do you need a Loan? Contact Santander Finance

2014-03-17 Thread Santander Finance
We offer all purpose loan at 3% interest rate. Contact Us for more details by Email:santanderfinancegr...@gmail.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majord

Re: [PATCH] backing_dev: Fix hung task on sync

2014-03-17 Thread Tejun Heo
On Mon, Mar 17, 2014 at 01:53:57PM -0700, dbasehore . wrote: > It will still be at least be pending after the specified time has > passed. I'm proposing that we still set the timer. The difference is > that there is a possibility the work will already be pending when the > timer goes off. There wil

Re: [PATCH 1/3] mm: munlock: fix a bug where THP tail page is encountered

2014-03-17 Thread Sasha Levin
On 03/17/2014 08:38 AM, Vlastimil Babka wrote: On 03/15/2014 04:06 AM, Sasha Levin wrote: On 03/14/2014 07:55 PM, Sasha Levin wrote: On 12/17/2013 08:00 AM, Vlastimil Babka wrote: From: Vlastimil Babka Date: Fri, 13 Dec 2013 14:25:21 +0100 Subject: [PATCH 1/3] mm: munlock: fix a bug where THP

RE: [PATCH net-next,v2,1/1] hyperv: Add support for virtual Receive Side Scaling (vRSS)

2014-03-17 Thread Haiyang Zhang
> -Original Message- > From: Ben Hutchings [mailto:b...@decadent.org.uk] > Sent: Monday, March 17, 2014 4:28 PM > To: Haiyang Zhang > Cc: da...@davemloft.net; net...@vger.kernel.org; KY Srinivasan; > o...@aepfle.de; jasow...@redhat.com; linux-kernel@vger.kernel.org; > driverdev-de...@linu

Re: [PATCH 1/2] Staging: comedi: Fix if/else style in hwdrv_apci1500.c

2014-03-17 Thread Greg Kroah-Hartman
On Sun, Mar 09, 2014 at 09:24:40AM -0700, Conrad Meyer wrote: > Also kill some useless comments while I was there, e.g.: > if (foo) { > ... > } /* if (foo) */ > > With vim: > :%s/}\t\t*\/\*\s\s*\(if\|else\|for\|while\|switch\).*$/}/ Neither of these patches apply to my tree, can you re

Re: [PATCH] Staging: comedi: fixup: dev_warn() with correct dev

2014-03-17 Thread Greg Kroah-Hartman
On Tue, Mar 11, 2014 at 07:58:17AM -0700, Conrad Meyer wrote: > Replace hw_dev with class_dev in new dev_warn()s. > > > Signed-off-by: Conrad Meyer > Reviewed-by: Ian Abbott > --- > .../comedi/drivers/addi-data/hwdrv_apci1500.c | 104 > ++--- > 1 file changed, 52 insertio

Re: DMA-API mapping errors in vmw_pvscsi

2014-03-17 Thread Arvind Kumar
>It's missing checking in two places: from pci_map_single() and on >scsi_dma_map(). In the latter case, pvscsi_map_buffers needs to return >an error code and then pvscsi_queue_ring can return -1. Agreed! And in addition to that pvscsi_queue_ring() also calls pci_map_single() to map the sense buff

Re: [PATCH] backing_dev: Fix hung task on sync

2014-03-17 Thread dbasehore .
On Mon, Mar 17, 2014 at 7:40 AM, Tejun Heo wrote: > Hello, > > On Sun, Mar 16, 2014 at 12:13:55PM -0700, dbasehore . wrote: >> There's already behavior that is somewhat like that with the current >> implementation. If there's an item on a workqueue, it could run at any >> time. From the perspectiv

RE: [PATCH net-next,v2,1/1] hyperv: Add support for virtual Receive Side Scaling (vRSS)

2014-03-17 Thread Haiyang Zhang
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Monday, March 17, 2014 4:20 PM > To: Haiyang Zhang > Cc: net...@vger.kernel.org; KY Srinivasan; o...@aepfle.de; > jasow...@redhat.com; linux-kernel@vger.kernel.org; driverdev- > de...@linuxdriverproject.org > S

Re: [PATCH v7 2/2] ARM hibernation / suspend-to-disk

2014-03-17 Thread Ezequiel Garcia
On Mar 17, Sebastian Capella wrote: > On 16 March 2014 00:09, Ezequiel Garcia > wrote: > > On Mar 05, Sebastian Capella wrote: > > [..] > >> diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig > >> index 1f8fed9..83707702 100644 > >> --- a/arch/arm/mm/Kconfig > >> +++ b/arch/arm/mm/Kconfig > >>

Re: [v3.13][v3.14][Regression] kthread: make kthread_create() killable

2014-03-17 Thread Andrew Morton
On Mon, 17 Mar 2014 21:19:19 +0100 Oleg Nesterov wrote: > > kthread_create_on_node() thinks that SIGKILL came from the oom-killer > > and it cheerfully returns -ENOMEM, which is incorrect if that signal > > came from userspace. > > Yes, I think it should return -EINTR. > > > And I don't _think_

execve and /proc/PID/environ

2014-03-17 Thread Paul Jolly
Hi - this is my first post here so I hope I'm duly abiding by the etiquette outlined in [1]. Indeed I am not subscribed to the list and so would be very grateful to be copied on any replies, per ADB's comment in [2] I am trying to build a fuse-based file system that implements a version of variant

Re: linux-next: build failure after merge of the driver-core tree

2014-03-17 Thread Benjamin Herrenschmidt
On Mon, 2014-03-17 at 11:33 -0700, Greg KH wrote: > There were only 3 (or 4), users of this api, and no new ones had been > added in _years_, it's a very obscure thing, and odds are, it wouldn't > ever be added again, especially as it was just removed entirely not > being needed anymore. And I'd

Re: [PATCH 2/2] PM / Runtime: Update runtime_idle() documentation for return value meaning

2014-03-17 Thread Pavel Machek
On Mon 2014-03-17 21:26:11, Geert Uytterhoeven wrote: > From: Geert Uytterhoeven > > As of commit 45f0a85c8258741d11bda25c0a5669c06267204a ('PM / Runtime: > Rework the "runtime idle" helper routine'), the return value of > ->runtime_idle() is no longer ignored by the PM core, but used to decide >

Re: [PATCH net-next,v2,1/1] hyperv: Add support for virtual Receive Side Scaling (vRSS)

2014-03-17 Thread Ben Hutchings
On Sat, 2014-03-15 at 10:18 -0700, Haiyang Zhang wrote: [...] > #define RING_SIZE_MIN 64 > -static int ring_size = 128; > +int ring_size = 128; > module_param(ring_size, int, S_IRUGO); > MODULE_PARM_DESC(ring_size, "Ring buffer size (# of pages)"); You have to add some driver-specific prefix to

[PATCH 2/2] PM / Runtime: Update runtime_idle() documentation for return value meaning

2014-03-17 Thread Geert Uytterhoeven
From: Geert Uytterhoeven As of commit 45f0a85c8258741d11bda25c0a5669c06267204a ('PM / Runtime: Rework the "runtime idle" helper routine'), the return value of ->runtime_idle() is no longer ignored by the PM core, but used to decide whether to suspend the device or not. Update the documentation t

[PATCH 1/2] PM: Correct whitespace errors in

2014-03-17 Thread Geert Uytterhoeven
From: Geert Uytterhoeven Signed-off-by: Geert Uytterhoeven --- include/linux/pm.h | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/include/linux/pm.h b/include/linux/pm.h index 8c6583a53a06..22ba7338d48c 100644 --- a/include/linux/pm.h +++

Re: [PATCH net-next,v2,1/1] hyperv: Add support for virtual Receive Side Scaling (vRSS)

2014-03-17 Thread David Miller
From: Haiyang Zhang Date: Sat, 15 Mar 2014 10:18:07 -0700 > - if (netif_queue_stopped(ndev) && !net_device->start_remove && > - (hv_ringbuf_avail_percent(&device->channel->outbound) > - > RING_AVAIL_PERCENT_HIWATER || > - num

Re: [v3.13][v3.14][Regression] kthread: make kthread_create() killable

2014-03-17 Thread Oleg Nesterov
On 03/17, Andrew Morton wrote: > > On Fri, 14 Mar 2014 16:46:26 -0400 Joseph Salisbury > wrote: > > > Hi Tetsuo, > > > > A kernel bug report was opened against Ubuntu[0]. We performed a kernel > > bisect, and found that reverting the following commit resolved this bug: > > > > > > commit 786235e

Re: [PATCH 7/7] pid: get pid_t ppid of task in init_pid_ns

2014-03-17 Thread Eric Paris
g rcu locking, in > > the > > arbitrary and init_pid_ns. > > This provides an alternative to sys_getppid(), which is relative to the > > child > > process' pid namespace. > ... > > +static int pid_alive(const struct task_struct *p); > > This patch

Re: [PATCH 7/7] pid: get pid_t ppid of task in init_pid_ns

2014-03-17 Thread Tony Luck
es an alternative to sys_getppid(), which is relative to the child > process' pid namespace. ... > +static int pid_alive(const struct task_struct *p); This patch (or some successor version of it) showed up in next-20140317 and the above declaration caused a bunch of warnings on ia64: incl

Re: [Regression, bisected 9e30cc] "sysfs, kernfs: no need to kern_mount() sysfs from sysfs_init()" prevents system from booting correctly

2014-03-17 Thread Tejun Heo
Hello, On Fri, Mar 14, 2014 at 11:48:10AM -0400, Alexandre Demers wrote: > Since it takes a while before the system begins to display errors, > I'll have to test it and report it later today when I'll get back from > work. Any update? > Now, about the userland part, this seems a broad question..

[PATCH percpu/for-3.15] percpu: allocation size should be even

2014-03-17 Thread Tejun Heo
>From 2f69fa829cb4ca062aaffee9ab9eb44484db75b1 Mon Sep 17 00:00:00 2001 From: Viro Date: Mon, 17 Mar 2014 16:01:27 -0400 723ad1d90b56 ("percpu: store offsets instead of lengths in ->map[]") updated percpu area allocator to use the lowest bit, instead of sign, to signify whether the area is occupi

Re: [PATCH 2/9] perf tools: Count periods of filtered entries separately

2014-03-17 Thread Arnaldo Carvalho de Melo
Em Mon, Mar 10, 2014 at 04:43:53PM +0900, Namhyung Kim escreveu: > @@ -749,9 +750,6 @@ int perf_event__preprocess_sample(const union perf_event > *event, > if (thread == NULL) > return -1; > > - if (thread__is_filtered(thread)) > - goto out_filtered; > - What

Re: [PATCH] checkpatch: Reduce false positives for "Missing blank line after declarations" test

2014-03-17 Thread Joe Perches
On Mon, 2014-03-17 at 11:45 -0700, Joe Perches wrote: > Avoid some false positives for this test by adding > a few common macro types that declare variables. Self-NAK. It causes too many other false positives. I'll play with it awhile and test it better before posting something else. -- To unsu

Re: [v3.13][v3.14][Regression] kthread: make kthread_create() killable

2014-03-17 Thread Andrew Morton
On Fri, 14 Mar 2014 16:46:26 -0400 Joseph Salisbury wrote: > Hi Tetsuo, > > A kernel bug report was opened against Ubuntu[0]. We performed a kernel > bisect, and found that reverting the following commit resolved this bug: > > > commit 786235eeba0e1e85e5cbbb9f97d1087ad03dfa21 > Author: Tetsu

zram: sleeping vunmap_pmd_range called from atomic zram_make_request

2014-03-17 Thread Sasha Levin
D: 4213 Comm: kswapd14 Tainted: GW 3.14.0-rc6-next-20140317-sasha-00012-ge933921-dirty #226 [ 827.278467] 88022970 8802296fd388 8449ebb3 0001 [ 827.279610] 8802296fd3b8 81176cec 8802296fd3c8 [ 827.281258] [

Re: [PATCH 1/1] sparc64:tsb.c:use array size macro rather than number

2014-03-17 Thread David Miller
From: Doug Date: Fri, 7 Mar 2014 16:29:03 +0530 > From: Doug Wilson > > This is a small patch which uses ARRAY_SIZE macro > rather than a number to make code readability better. > > Signed-off-by: Doug Wilson Applied, thanks Doug. -- To unsubscribe from this list: send the line "uns

Re: [PATCH] improve_stack: make stack dump output useful again

2014-03-17 Thread Sasha Levin
On 03/17/2014 03:49 PM, Linus Torvalds wrote: On Mon, Mar 17, 2014 at 12:31 PM, Sasha Levin wrote: What about duplicate symbol names? Without the full hex address we lose the ability to correctly translate from symbol name to file/line. Yeah, and we should strive to avoid that issue. The th

Re: [PATCH] sparc: use %s for unaligned panic

2014-03-17 Thread David Miller
From: Sam Ravnborg Date: Sat, 15 Mar 2014 09:07:09 +0100 > On Tue, Mar 11, 2014 at 01:24:46PM -0700, Kees Cook wrote: >> Since unaligned_panic() takes a literal string, make sure it can never >> accidentally be used as a format string. >> >> Signed-off-by: Kees Cook >> --- >> arch/sparc/kernel

Re: [PATCH] improve_stack: make stack dump output useful again

2014-03-17 Thread Linus Torvalds
On Mon, Mar 17, 2014 at 12:31 PM, Sasha Levin wrote: > > What about duplicate symbol names? Without the full hex address we lose > the ability to correctly translate from symbol name to file/line. Yeah, and we should strive to avoid that issue. The thing is, think about address randomization. We

Re: [PATCHv4 0/7] omap hwspinlock dt support

2014-03-17 Thread Ohad Ben-Cohen
Hi Suman, On Mon, Mar 17, 2014 at 9:10 PM, Suman Anna wrote: > base_id would be a property (if added) of the hwspinlock controller node, > and from DT perspective, we will be using the phandle for the controller > anyway. So, using a base_id+specifier seems redundant, as the specifier is > alread

[PATCH v4 2/4] mac80211: set NET_NAME_USER for user-space created ifs

2014-03-17 Thread David Herrmann
The nl80211 interface allows creating new netdevs from user-space. The name is *always* provided by user-space, so we should set NET_NAME_USER to provide that information via sysfs. But we must not set it for the default wlan%d names as these are kernel-provided names. This allows udev to not rena

<    1   2   3   4   5   6   >