Re: [RFC v7 00/11] Support vrange for anonymous page

2013-04-10 Thread Minchan Kim
On Wed, Apr 10, 2013 at 04:22:58PM -0400, KOSAKI Motohiro wrote: > (3/12/13 3:38 AM), Minchan Kim wrote: > > First of all, let's define the term. > > From now on, I'd like to call it as vrange(a.k.a volatile range) > > for anonymous page. If you have a better name in mind, please suggest. > > > >

[PATCH 1/2] tracing: Fix possible NULL pointer dereferences

2013-04-10 Thread Namhyung Kim
From: Namhyung Kim Currently set_ftrace_pid and set_graph_function files use seq_lseek for their fops. However seq_open() is called only for FMODE_READ in the fops->open() so that if an user tries to seek one of those file when she open it for writing, it sees NULL seq_file and then panic. It c

[PATCH 2/2] tracing: Reset ftrace_graph_filter_enabled if count is zero

2013-04-10 Thread Namhyung Kim
From: Namhyung Kim The ftrace_graph_count can be decreased with a "!" pattern, so that the enabled flag should be updated too. Signed-off-by: Namhyung Kim --- kernel/trace/ftrace.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftr

Re: [PATCH v2] net: mv643xx_eth: use managed devm_kzalloc

2013-04-10 Thread Sebastian Hesselbarth
On 04/11/2013 05:39 AM, David Miller wrote: From: Sebastian Hesselbarth Date: Wed, 10 Apr 2013 22:42:07 +0200 This patch moves shared private data kzalloc to managed devm_kzalloc and cleans now unneccessary kfree and error handling. Signed-off-by: Sebastian Hesselbarth This doesn't apply cle

[net-next PATCH] xen-netback: switch to use skb_partial_csum_set()

2013-04-10 Thread Jason Wang
Switch to use skb_partial_csum_set() to simplify the codes. Cc: Ian Campbell Signed-off-by: Jason Wang --- Note: - Compile test only. --- drivers/net/xen-netback/netback.c | 22 -- 1 files changed, 8 insertions(+), 14 deletions(-) diff --git a/drivers/net/xen-netback/netb

Re: [PATCH 2/2] regulator: ab8500: Unregister ab8500-ext regulators in probe() failure path

2013-04-10 Thread Bengt Jönsson
On 04/11/2013 06:05 AM, Axel Lin wrote: Signed-off-by: Axel Lin Looks good to me. Acked-by: Bengt Jonsson --- drivers/regulator/ab8500.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/regulator/ab8500.c b/drivers/regulator/ab8500.c index c200f8b..ea182d

Re: [PATCH 1/2] regulator: ab8500-ext: Make the return type of ab8500_ext_regulator_exit() void

2013-04-10 Thread Bengt Jönsson
On 04/11/2013 06:04 AM, Axel Lin wrote: ab8500_ext_regulator_exit() never fails. Signed-off-by: Axel Lin Looks good to me. Acked-by: Bengt Jonsson --- drivers/regulator/ab8500-ext.c |4 +--- drivers/regulator/ab8500.c |9 +++-- include/linux/regulator/ab8500.h |2

Re: [net-next 4/5] netback: set transport header before passing it to kernel

2013-04-10 Thread Jason Wang
On 04/10/2013 09:33 PM, Ian Campbell wrote: > On Tue, 2013-03-26 at 06:19 +, Jason Wang wrote: >> Currently, for the packets receives from netback, before doing header check, >> kernel just reset the transport header in netif_receive_skb() which pretends >> non >> l4 header. This is suboptimal

Re: [kbuild] [patch 1/2 -next] dma-buf: double unlock in debugfs code

2013-04-10 Thread Dan Carpenter
Oops... I mailed that prematurely. There isn't a [patch 2/2]. regards, dan carpenter -- 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/majordomo-info.html Please read th

[patch 1/2 -next] dma-buf: double unlock in debugfs code

2013-04-10 Thread Dan Carpenter
We unlock here when we failed to take the lock. Signed-off-by: Dan Carpenter --- This is in linux-next, and I think the debugfs code is only in Sumit's tree. diff --git a/drivers/base/dma-buf.c b/drivers/base/dma-buf.c index 466476f..174cd2c 100644 --- a/drivers/base/dma-buf.c +++ b/drivers/base

linux-next: manual merge of the arm-soc tree with the arm-current tree

2013-04-10 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the arm-soc tree got conflicts in arch/arm/configs/h7201_defconfig and arch/arm/configs/h7202_defconfig between commit e42c3074c8f7 ("ARM: remove NWFPE and VFP emulation code from the kernel") from the arm-current tree and commit 293eb135a924 ("ARM: kill Hynix h

Re: [PATCH] sched: wake-affine throttle

2013-04-10 Thread Michael Wang
On 04/10/2013 05:22 PM, Michael Wang wrote: > Hi, Peter > > Thanks for your reply :) > > On 04/10/2013 04:51 PM, Peter Zijlstra wrote: >> On Wed, 2013-04-10 at 11:30 +0800, Michael Wang wrote: >>> | 15 GB | 32 | 35918 | | 37632 | +4.77% | 47923 | +33.42% | >>> 52241 | +45.45% >> >> So I

Re: [PATCH 01/10] mm: vmscan: Limit the number of pages kswapd reclaims at each priority

2013-04-10 Thread Will Huck
Hi Rik, On 03/22/2013 11:52 AM, Rik van Riel wrote: On 03/21/2013 08:05 PM, Will Huck wrote: One offline question, how to understand this in function balance_pgdat: /* * Do some background aging of the anon list, to give * pages a chance to be referenced before reclaiming. */ age_acitve_a

Re: [PATCH 01/10] mm: vmscan: Limit the number of pages kswapd reclaims at each priority

2013-04-10 Thread Will Huck
Hi Rik, On 03/22/2013 11:52 AM, Rik van Riel wrote: On 03/21/2013 08:05 PM, Will Huck wrote: One offline question, how to understand this in function balance_pgdat: /* * Do some background aging of the anon list, to give * pages a chance to be referenced before reclaiming. */ age_acitve_a

cirrusfb: possible circular locking dependency

2013-04-10 Thread dyoung
lockdep is complaining about below, I see it often in kvm guests, False postive? [ 600.383445] == [ 600.383447] [ INFO: possible circular locking dependency detected ] [ 600.383452] 3.9.0-rc5+ #71 Not tainted [ 600.383454] ---

[PATCH v2] kernel: kallsyms: memory override issue, need check destination buffer length

2013-04-10 Thread Chen Gang
We don't export any symbols > 128 characters, but if we did then kallsyms_expand_symbol() would overflow the buffer handed to it. So we need check destination buffer length when copying. the related test: if we define an EXPORT function which name more than 128. will panic when ca

Re: [PATCH] Do not force shutdown/reboot to boot cpu.

2013-04-10 Thread Paul Mackerras
On Wed, Apr 10, 2013 at 08:10:05AM -0700, Linus Torvalds wrote: > The optimal solution would be to just speed up the > disable_nonboot_cpus() code so much that it isn't an issue. That would > be good for suspending too, although I guess suspend isn't a big issue > if you have a thousand CPU's. > >

linux-next: manual merge of the driver-core tree with the tip tree

2013-04-10 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the driver-core tree got a conflict in kernel/rtmutex-tester.c between commit 8184004ed7a0 ("locking/rtmutex/tester: Set correct permissions on sysfs files") from the tip tree and commit 928c0c1571b0 ("rtmutex-tester: fix mode of sysfs files") from the driver-c

Re: [PATCH] drm/i915: don't check inconsistent modeset state when force-restoring

2013-04-10 Thread Tomas Melin
On Wed, Apr 10, 2013 at 9:32 PM, Tomas Melin wrote: > On Tue, Apr 9, 2013 at 10:51 PM, Daniel Vetter wrote: >> v2: Try harder not to create a big patch (Chris). >> > Tested the patch applied to 3.9-rc6. Atleast on my machine that > helped, although once I managed to get the error (but not warning

Re: [PATCH 13/30] video/s3c: move platform_data out of arch/arm

2013-04-10 Thread Jingoo Han
On Thursday, April 11, 2013 9:05 AM, Arnd Bergmann wrote: > > The s3c-fb driver requires header files from the samsung platforms > to find its platform_data definition, but this no longer works on > multiplatform kernels, so let's move the data into a new header > file under include/linux/platform

Re: [PATCH 12/30] video/exynos: remove unnecessary header inclusions

2013-04-10 Thread Jingoo Han
On Thursday, April 11, 2013 9:05 AM, Arnd Bergmann wrote: > > In multiplatform configurations, we cannot include headers > provided by only the exynos platform. Fortunately a number > of drivers that include those headers do not actually need > them, so we can just remove the inclusions. > > Sign

Re: [PATCH] module: add kset_obj_exists() and use it

2013-04-10 Thread Veaceslav Falico
On Thu, Apr 11, 2013 at 11:28:06AM +0930, Rusty Russell wrote: Greg KH writes: On Tue, Apr 09, 2013 at 01:22:09PM +0200, Veaceslav Falico wrote: Add a new function, kset_obj_exists(), which is identical to kset_find_obj() but doesn't take a reference to the kobject found and only returns bool

Re: Kexec couldn't reboot capture kernel on pandaboard ES with OMAP4460

2013-04-10 Thread Li Haifeng
2013/4/10 Stephen Warren : > On 04/10/2013 03:35 AM, Li Haifeng wrote: >> Hi, everyone. >> >> Recently, I try to run kdump on pandaboard ES with omap4460. After >> load capture kernel by "kexec -l" and execute "kexec -e", the serial >> port output "Starting new kernel" and "Bye", then the system ha

Re: [PATCH 13/30] video/s3c: move platform_data out of arch/arm

2013-04-10 Thread Jingoo Han
On Thursday, April 11, 2013 9:05 AM, Arnd Bergmann wrote: > > The s3c-fb driver requires header files from the samsung platforms > to find its platform_data definition, but this no longer works on > multiplatform kernels, so let's move the data into a new header > file under include/linux/platform

Re: [PATCH] kernel: kallsyms: parameters checking, for EXPORT_SYMBOL_GPL functions

2013-04-10 Thread Chen Gang
On 2013年04月11日 10:52, Rusty Russell wrote: >>> >> Or is someone already doing this? >>> >> >> > >> > really has: >> > >> > kernel: __wake_up_sync_key in kernel/sched/core.c. >> > lib: *printf. >> > mm: kfree. > No, I mean "is someone calling these functions with NULL". > > Cheers,

Re: [PATCH] kernel: kallsyms: memory override issue, need check destination buffer length

2013-04-10 Thread Chen Gang
On 2013年04月11日 12:08, Rusty Russell wrote: > Chen Gang writes: >> We don't export any symbols > 128 characters, but if we did then >> kallsyms_expand_symbol() would overflow the buffer handed to it. >> So we need check destination buffer length when copying. >> >> the related test: >>

Re: [PATCH] kernel: auditfilter: looping issue, memory leak if has 2 or more AUDIT_FILTERKEYs

2013-04-10 Thread Chen Gang
On 2013年04月11日 05:19, Eric Paris wrote: > - Original Message - > >> > b. has an new issue for AUDIT_DIR: >> >after AUDIT_DIR succeed, it will set rule->tree. >> >next, the other case fail, then will call audit_free_rule. >> >but audit_free_rule will not free rule-

Re: [PATCH] driver core: add uid and gid to devtmpfs

2013-04-10 Thread Eric W. Biederman
Greg KH writes: > From: Kay Sievers > > Some drivers want to tell userspace what uid and gid should be used for > their device nodes, so allow that information to percolate through the > driver core to userspace in order to make this happen. This means that > some systems (i.e. Android and fri

Re: [PATCH] rtc: rtc-s3c: use clk_prepare_enable and clk_disable_unprepare

2013-04-10 Thread Jingoo Han
On Wednesday, April 10, 2013 6:50 PM, Sylwester Nawrocki wrote: > On 04/09/2013 04:27 PM, Vivek Gautam wrote: > > From: Thomas Abraham > > > > Convert clk_enable/clk_disable to clk_prepare_enable/clk_disable_unprepare > > calls as required by common clock framework. > > > > Signed-off-by: Thomas A

Re: [PATCH] kernel: kallsyms: memory override issue, need check destination buffer length

2013-04-10 Thread Rusty Russell
Chen Gang writes: > We don't export any symbols > 128 characters, but if we did then > kallsyms_expand_symbol() would overflow the buffer handed to it. > So we need check destination buffer length when copying. > > the related test: > if we define an EXPORT function which name more tha

linux-next: manual merge of the tip tree with the pm tree

2013-04-10 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in include/linux/clockchips.h between commit 4dbad816febb ("timer: move enum definition out of ifdef section") from the pm tree and commit 19919226c3f2 ("clockevents: Add missing tick_check_broadcast_expired() for CLOCKEVENTS=n") from

[PATCH 2/2] regulator: ab8500: Unregister ab8500-ext regulators in probe() failure path

2013-04-10 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/ab8500.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/regulator/ab8500.c b/drivers/regulator/ab8500.c index c200f8b..ea182d3 100644 --- a/drivers/regulator/ab8500.c +++ b/drivers/regulator/ab8500.c @@ -3172,8 +317

[PATCH 1/2] regulator: ab8500-ext: Make the return type of ab8500_ext_regulator_exit() void

2013-04-10 Thread Axel Lin
ab8500_ext_regulator_exit() never fails. Signed-off-by: Axel Lin --- drivers/regulator/ab8500-ext.c |4 +--- drivers/regulator/ab8500.c |9 +++-- include/linux/regulator/ab8500.h |2 +- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/regulator/ab85

linux-next: manual merge of the tip tree with the net-next tree

2013-04-10 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in tools/Makefile between commit e306e2c13b8c ("filter: add minimal BPF JIT image disassembler") from the net-next tree and commit 85c66be101e1 ("perf tools: Introduce tools/lib/lk library") from the tip tree. I fixed it up (see belo

Re: [PATCH v2] MODSIGN: do not send garbage to stderr when enabling modules signature

2013-04-10 Thread Rusty Russell
David Cohen writes: > On 04/10/2013 03:32 AM, Rusty Russell wrote: >> David Cohen writes: >>> openssl may send garbage to stderr when generating X.509 key pair for >>> modules signature regardless there was an error or not. It makes more >>> difficult to create scripts based on kernel error/warni

Re: [PATCH] kernel: kallsyms: parameters checking, for EXPORT_SYMBOL_GPL functions

2013-04-10 Thread Rusty Russell
Chen Gang writes: > On 2013年04月10日 14:57, Rusty Russell wrote: >> Chen Gang writes: >>> > for EXPORT_SYMBOL_GPL functions, necessary to check their parameters. >>> > >>> > Signed-off-by: Chen Gang >> Why? >> >> If someone misuses these functions, they crash and thus indicate that >> the calle

Re: [PATCH] kernel: auditfilter: looping issue, memory leak if has 2 or more AUDIT_FILTERKEYs

2013-04-10 Thread Chen Gang
On 2013年04月11日 04:08, Eric Paris wrote: > We only allow one filter key per rule. So we should never be able to get > into this situation. See audit_data_to_entry() really it is, thanks. :-) -- Chen Gang Asianux Corporation -- To unsubscribe from this list: send the line "unsubscribe lin

Re: [PATCH] kernel: auditfilter: looping issue, memory leak if has 2 or more AUDIT_FILTERKEYs

2013-04-10 Thread Chen Gang
On 2013年04月11日 04:29, Eric Paris wrote: > - Original Message - >> > >> > >> > in another function: audit_data_to_entry: >> > >> > a. has the same issue for case AUDIT_WATCH. > You are saying if there were 2 of them it will leak the old one? No. If you > have 2 AUDIT_WATCH entries th

Re: [RFC Patch 0/2] mm: Add parameters to make kernel behavior at memory error on dirty cache selectable

2013-04-10 Thread Simon Jeons
Hi Mitsuhiro, On 04/11/2013 11:26 AM, Mitsuhiro Tanino wrote: Hi All, Please find a patch set that introduces these new sysctl interfaces, to handle a case when an memory error is detected on dirty page cache. - vm.memory_failure_dirty_panic - vm.memory_failure_print_ratelimit - vm.memory_failur

[PATCHv2] powerpc/crypto: Add property for 'era' in SEC dts crypto node

2013-04-10 Thread Vakul Garg
The crypto node now contains a new property 'fsl,sec-era'. This is required so that applications can retrieve era info without having to be able to read SEC's register space. Signed-off-by: Vakul Garg --- Changelog: v2: Added era in p1023si-post.dtsi as per Kim's comments. arch/powerpc

[PATCH] powerpc/crypto: removed qoriq-sec4.1-0.dtsi.

2013-04-10 Thread Vakul Garg
Removing qoriq-sec4.1-0.dtsi as it is not used by any soc anymore. Signed-off-by: Vakul Garg --- arch/powerpc/boot/dts/fsl/qoriq-sec4.1-0.dtsi | 109 - 1 files changed, 0 insertions(+), 109 deletions(-) delete mode 100644 arch/powerpc/boot/dts/fsl/qoriq-sec4.1-0.dtsi d

Re: [PATCH] checkpatch: Warn on comparisons to true and false

2013-04-10 Thread Joe Perches
On Wed, 2013-04-10 at 22:14 -0400, Dave Jones wrote: > It would be interesting to see how many people have historically screwed > up and used (!a) when they mean (a) and vice versa, versus spelling > it out longform. I'd be surprised if the results weren't skewed > in favour of the more verbose f

Re: [PATCH 2/3] mm, slub: count freed pages via rcu as this task's reclaimed_slab

2013-04-10 Thread Simon Jeons
Hi Christoph, On 04/10/2013 09:54 PM, Christoph Lameter wrote: On Wed, 10 Apr 2013, Simon Jeons wrote: It seems that you misunderstand my question. I don't doubt slab/slub can use high order pages. However, what I focus on is why slab/slub can use compound page, PageCompound() just on behalf of

Re: [PATCH] kernel: auditfilter: looping issue, memory leak if has 2 or more AUDIT_FILTERKEYs

2013-04-10 Thread Chen Gang
On 2013年04月11日 05:32, Eric Paris wrote: > - Original Message - >> > >> > also for function audit_list: >> > when call audit_make_reply fails (will return NULL). >> > we need free all its related variables instead of only kfree rull. >> > (such as call autit_free_rule) >> >

[PATCH 3/4] ARM: mmp: bring up pxa988 with device tree support

2013-04-10 Thread Neil Zhang
bring up pxa988 with device tree support. Signed-off-by: Neil Zhang Signed-off-by: Chao Xie --- arch/arm/boot/dts/pxa988-dkb.dts | 36 ++ arch/arm/boot/dts/pxa988.dtsi | 196 + arch/arm/mach-mmp/Kconfig | 25 arch/ar

[PATCH 2/4] ARM: mmp: move function declaration to head file

2013-04-10 Thread Neil Zhang
Move some of the function declaration to head file. Signed-off-by: Neil Zhang Signed-off-by: Chao Xie --- arch/arm/mach-mmp/common.h |3 +++ arch/arm/mach-mmp/mmp-dt.c |3 --- arch/arm/mach-mmp/mmp2-dt.c |3 --- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/arch/a

[PATCH 0/4] bring up pxa988 with DT

2013-04-10 Thread Neil Zhang
This patch sets do the following things: 1. add wakeup function for ICU. 2. move some common funciton declaration to common.h 3. bring up pxa988 with DT support Chao Xie (1): ARM: mmp: add wakeup function for ICU Neil Zhang (3): ARM: mmp: move function declaration to head file ARM: mmp: bri

Re: [PATCH v2] net: mv643xx_eth: use managed devm_kzalloc

2013-04-10 Thread David Miller
From: Sebastian Hesselbarth Date: Wed, 10 Apr 2013 22:42:07 +0200 > This patch moves shared private data kzalloc to managed devm_kzalloc and > cleans now unneccessary kfree and error handling. > > Signed-off-by: Sebastian Hesselbarth This doesn't apply cleanly to the net-next tree. -- To unsub

[PATCH 4/4] ARM: mmp: add SMP support for pxa988

2013-04-10 Thread Neil Zhang
Add SMP support for pxa988. Signed-off-by: Neil Zhang Signed-off-by: Chao Xie --- arch/arm/mach-mmp/Makefile |4 + arch/arm/mach-mmp/common.h |2 + arch/arm/mach-mmp/headsmp.S | 104 ++ arch/arm/mach-mmp/mmpx-dt.c |1 + arch/arm/mach-mmp/platsmp.c | 170 +

[PATCH 1/4] ARM: mmp: add wakeup function for ICU

2013-04-10 Thread Neil Zhang
From: Chao Xie PXA988 will use GIC as its interrupt controller, and ICU is used as wakeup logic. When AP subsystem is powered off, GIC will lose its context, the PMU will need ICU to wakeup the AP subsystem. When ICU works as wakeup logic, there is no need to know intc-nr-irqs, change the corresp

Re: [PATCH v3 00/12] event tracing expose change and bugfix/cleanup

2013-04-10 Thread zhangwei(Jovi)
On 2013/4/10 23:08, Steven Rostedt wrote: > On Wed, 2013-04-10 at 11:26 +0800, zhangwei(Jovi) wrote: >> From: "zhangwei(Jovi)" >> >> Hi steven, >> >> I have reworked this patchset again with minor change. >> [v2 -> v3: >> - change trace_descripte_t defintion in patch 3 >> - new patch "export f

Re: [PATCH] process cputimer is moving faster than its corresponding clock

2013-04-10 Thread Olivier Langlois
On Wed, 2013-04-10 at 13:35 +0200, Peter Zijlstra wrote: > On Fri, 2013-04-05 at 13:59 -0400, Olivier Langlois wrote: > > Process timers are moving fasters than their corresponding > > cpu clock for various reasons: > > > > 1. There is a race condition when getting a timer sample that makes the

[RFC Patch 2/2] mm: Add parameters to limit a rate of outputting memory error messages

2013-04-10 Thread Mitsuhiro Tanino
This patch introduces new sysctl interfaces in order to limit a rate of outputting memory error messages. - vm.memory_failure_print_ratelimit: Specify the minimum length of time between messages. By default the rate limiting is disabled. - vm.memory_failure_print_ratelimit_burst: Specify th

[RFC Patch 1/2] mm: Add a parameter to force a kernel panic when memory error occurs on dirty cache

2013-04-10 Thread Mitsuhiro Tanino
This patch introduces a sysctl interface, vm.memory_failure_dirty_panic, to provide selectable actions when a memory error is detected on dirty page cache. Signed-off-by: Mitsuhiro Tanino --- diff --git a/a/Documentation/sysctl/vm.txt b/b/Documentation/sysctl/vm.txt index 078701f..7dad994 10064

[RFC Patch 0/2] mm: Add parameters to make kernel behavior at memory error on dirty cache selectable

2013-04-10 Thread Mitsuhiro Tanino
Hi All, Please find a patch set that introduces these new sysctl interfaces, to handle a case when an memory error is detected on dirty page cache. - vm.memory_failure_dirty_panic - vm.memory_failure_print_ratelimit - vm.memory_failure_print_ratelimit_burst Problem - Recently, it is commo

Re: [PATCH] net: mvmdio: add clocks property to binding documentation

2013-04-10 Thread David Miller
From: Sebastian Hesselbarth Date: Wed, 10 Apr 2013 19:36:29 +0200 > Patch "net: mvmdio: get and enable optional clock" was missing an > update of the corresponding device tree binding documentation. This > patch adds the clocks property to mvmdio binding documentation. > > Signed-off-by: Sebasti

Re: [PATCH] tcp: incoming connections might use wrong route under synflood

2013-04-10 Thread David Miller
From: Dmitry Popov Date: Thu, 11 Apr 2013 00:09:09 +0400 > There is a bug in cookie_v4_check (net/ipv4/syncookies.c): > flowi4_init_output(&fl4, 0, sk->sk_mark, RT_CONN_FLAGS(sk), > RT_SCOPE_UNIVERSE, IPPROTO_TCP, > inet_sk_flowi_flags(sk),

Re: [PATCH 3.8-stable] net: count hw_addr syncs so that unsync works properly.

2013-04-10 Thread David Miller
From: Jeremy Kerr Date: Thu, 11 Apr 2013 13:02:15 +1000 > Hi all, > This patch looks like it should be in the 3.8-stable tree, should we apply it? >>> >>> I queue up networking patches as needed and that queue is >>> visible at: >>> >>> http://patchwork.ozlabs.org/user/bundle/2566/?sta

Re: [PATCH] net: usb: active URB submitted multiple times

2013-04-10 Thread David Miller
I think you need to read Documentation/SubmittingPatches, and Documentation/email-clients.txt Do not submit the diff for the individual files seperately, provide all the changes together as a single patch. Do not use an attachment, instead provide your patch inline as plain ASCII, unformatted te

[PATCH] kernel: kallsyms: memory override issue, need check destination buffer length

2013-04-10 Thread Chen Gang
We don't export any symbols > 128 characters, but if we did then kallsyms_expand_symbol() would overflow the buffer handed to it. So we need check destination buffer length when copying. the related test: if we define an EXPORT function which name more than 128. will panic when ca

Re: [PATCH 3.8-stable] net: count hw_addr syncs so that unsync works properly.

2013-04-10 Thread Jeremy Kerr
Hi all, >>> This patch looks like it should be in the 3.8-stable tree, should we apply >>> it? >> >> I queue up networking patches as needed and that queue is >> visible at: >> >> http://patchwork.ozlabs.org/user/bundle/2566/?state=* > > Actually, this bundle is not visible via that link. It app

Re: [PATCH/RFC 4/6] ARM: shmobile: sh73a0: add support for the DMA0 controller in DT

2013-04-10 Thread Simon Horman
On Thu, Apr 11, 2013 at 12:01:27PM +0900, Simon Horman wrote: > On Thu, Apr 11, 2013 at 12:19:47AM +0200, Guennadi Liakhovetski wrote: > > Add a Device Tree node for the DMA0 controller on sh73a0 and > > auxdata to supply platform data to the driver. To enable the > > DMA0 controller it also has to

Re: [PATCH/RFC 4/6] ARM: shmobile: sh73a0: add support for the DMA0 controller in DT

2013-04-10 Thread Simon Horman
On Thu, Apr 11, 2013 at 12:19:47AM +0200, Guennadi Liakhovetski wrote: > Add a Device Tree node for the DMA0 controller on sh73a0 and > auxdata to supply platform data to the driver. To enable the > DMA0 controller it also has to be taken out of reset. > > Signed-off-by: Guennadi Liakhovetski H

Re: [PATCH/RFC 6/6] ARM: shmobile: kzm9g-reference: add DMA channels to the MMCIF DT

2013-04-10 Thread Simon Horman
On Thu, Apr 11, 2013 at 12:19:49AM +0200, Guennadi Liakhovetski wrote: > The MMCIF driver can use DMA for data transfer, add suitable > Device Tree bindings. > > Signed-off-by: Guennadi Liakhovetski Hi Guennadi, this seems reasonable to me. I guess the best thing is for you to repost it once th

Re: [PATCH 3.8-stable] net: count hw_addr syncs so that unsync works properly.

2013-04-10 Thread Stephen Rothwell
Hi Dave, On Wed, 10 Apr 2013 20:54:01 -0400 (EDT) David Miller wrote: > > From: Jonghwan Choi > Date: Thu, 11 Apr 2013 09:31:44 +0900 > > > This patch looks like it should be in the 3.8-stable tree, should we apply > > it? > > I queue up networking patches as needed and that queue is > visibl

Re: [PATCH] x86: add phys addr validity check for /dev/mem mmap

2013-04-10 Thread Simon Jeons
Hi H.Peter, On 04/11/2013 10:48 AM, H. Peter Anvin wrote: On 04/10/2013 07:40 PM, Simon Jeons wrote: Hi H.Peter, On 04/04/2013 09:13 AM, H. Peter Anvin wrote: On 04/03/2013 06:11 PM, Simon Jeons wrote: Why we consider boot_cpu_data.x86_phys_bits instead of e820 map here? Because x86_phys_bit

Re: [PATCH] rbd: revalidate_disk upon rbd resize

2013-04-10 Thread Alex Elder
On 04/10/2013 02:30 PM, Alex Elder wrote: > On 04/10/2013 11:06 AM, Laurent Barbe wrote: >> If rbd disk is open and rbd resize is done, new size is not visible by >> filesystem. >> Like is done in virtio-blk and dm driver, revalidate_disk() permits to >> update the bd_inode size. > > Looks good to

Re: [PATCH 1/4] Documentation: Add memory mapped ARM architected timer binding

2013-04-10 Thread Stephen Boyd
On 04/10/13 03:13, Mark Rutland wrote: + +- #size-cells : Must be 1. + +- ranges : Indicates parent and child bus address space are the same. + >>> Similarly, what if someone wants to write a more complex mapping for some >>> reason? >>> >>> We should be able to handle it i

Re: [PATCH] x86: add phys addr validity check for /dev/mem mmap

2013-04-10 Thread H. Peter Anvin
On 04/10/2013 07:40 PM, Simon Jeons wrote: > Hi H.Peter, > On 04/04/2013 09:13 AM, H. Peter Anvin wrote: >> On 04/03/2013 06:11 PM, Simon Jeons wrote: >>> Why we consider boot_cpu_data.x86_phys_bits instead of e820 map here? >>> >> Because x86_phys_bits is what controls how much address space the >

mm/slab: extremly high slab cache problem

2013-04-10 Thread lulu he
Hi, I'am not used to ask but I have followed every piece of information I could not find solution, so I'am trying here for help. On one of my server, I have some memory/disk KV service, Memory KV behave like memcached, ask for a big trunk of memory(10GB) when initialized, Disk Kv behave like leve

[PATCH v2] Add new model: rts5249

2013-04-10 Thread wei_wang
From: Wei WANG v2: 1. Modify copyright notice 2. Add macro definitions for phy registers 3. Replace mdelay with msleep Wei WANG (1): mfd:rtsx: Support RTS5249 drivers/mfd/Makefile |2 +- drivers/mfd/rts5249.c| 241 ++ drivers/mfd/r

[PATCH v2] mfd:rtsx: Support RTS5249

2013-04-10 Thread wei_wang
From: Wei WANG Support new model: RTS5249 Signed-off-by: Wei WANG --- drivers/mfd/Makefile |2 +- drivers/mfd/rts5249.c| 241 ++ drivers/mfd/rtsx_pcr.c |5 + drivers/mfd/rtsx_pcr.h |1 + include/linux/mfd/rtsx_pci

Re: [PATCH] Sys V shared memory limited to 8TiB.

2013-04-10 Thread Robin Holt
On Wed, Apr 10, 2013 at 04:15:07PM -0700, Andrew Morton wrote: > On Tue, 9 Apr 2013 21:39:24 -0500 Robin Holt wrote: > > > Trying to run an application which was trying to put data into half > > of memory using shmget(), we found that having a shmall value below > > 8EiB-8TiB would prevent us fro

Re: [PATCH] x86: add phys addr validity check for /dev/mem mmap

2013-04-10 Thread Simon Jeons
Hi H.Peter, On 04/04/2013 09:13 AM, H. Peter Anvin wrote: On 04/03/2013 06:11 PM, Simon Jeons wrote: Why we consider boot_cpu_data.x86_phys_bits instead of e820 map here? Because x86_phys_bits is what controls how much address space the processor has. e820 tells us how much *RAM* the machine

[PATCH] KVM: ARM: Fix wrong address in comment

2013-04-10 Thread Jonghwan Choi
hyp_hvc vector offset should be 0x14 and hyp_svc vector offset should be 0x8. Signed-off-by: Jonghwan Choi --- arch/arm/kvm/interrupts.S |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/kvm/interrupts.S b/arch/arm/kvm/interrupts.S index 8ca87ab..a8e0c2d 100644

Re: [PATCH] checkpatch: Warn on comparisons to true and false

2013-04-10 Thread Dave Jones
On Wed, Apr 10, 2013 at 03:57:51PM -0700, Andrew Morton wrote: > On Tue, 09 Apr 2013 20:17:14 -0700 Joe Perches wrote: > > > Comparisons of A to true and false are better written > > as A and !A. > > > > Bleat a message on use. > > hm. I'm counting around 1,100 instances of "== true" a

regulator: Some patches for twl-regulator are not found in regulator tree

2013-04-10 Thread Axel Lin
Hi Mark, I found some patches for twl are not in linux-next, and I cannot find them in your tree ( although you replied the patches applied. ) I think below patches are missing: [PATCH] regulator: twl: Remove TWL6030_FIXED_RESOURCE [1] [PATCH] regulator: twl: Remove VDD1_VSEL_table and VDD2_VSEL_t

[PATCH 3.8-stable] GFS2: Fix unlock of fcntl locks during withdrawn state

2013-04-10 Thread Jonghwan Choi
This patch looks like it should be in the 3.8-stable tree, should we apply it? -- From: "Steven Whitehouse " commit c2952d202f710d326ac36a8ea6bd216b20615ec8 upstream When withdraw occurs, we need to continue to allow unlocks of fcntl locks to occur, however these will only be lo

[PATCH 3.8-stable] GFS2: return error if malloc failed in gfs2_rs_alloc()

2013-04-10 Thread Jonghwan Choi
This patch looks like it should be in the 3.8-stable tree, should we apply it? -- From: "Wei Yongjun " commit 441362d06be349430d06e37286adce4b90e6ce96 upstream The error code in gfs2_rs_alloc() is set to ENOMEM when error but never be used, instead, gfs2_rs_alloc() always return

Re: [PATCH] module: add kset_obj_exists() and use it

2013-04-10 Thread Rusty Russell
Greg KH writes: > On Tue, Apr 09, 2013 at 01:22:09PM +0200, Veaceslav Falico wrote: >> Add a new function, kset_obj_exists(), which is identical to >> kset_find_obj() but doesn't take a reference to the kobject >> found and only returns bool if found/not found. >> >> The main purpose would be to

Re: [char-misc-next 0/3 v7] Support NFC device on MEI CL bus

2013-04-10 Thread Greg KH
On Thu, Apr 11, 2013 at 03:03:28AM +0200, Samuel Ortiz wrote: > v6 -> v7: >* Removed include/uapi/linux/mei/nfc.h. > All MEI NFC definitions are now folded into drivers/misc/mei/nfc.c All now applied, thanks for the persistance. greg k-h -- To unsubscribe from this list: send the line "u

Re: [PATCHv9 2/8] zsmalloc: add documentation

2013-04-10 Thread Rob Landley
On 04/10/2013 01:18:54 PM, Seth Jennings wrote: This patch adds a documentation file for zsmalloc at Documentation/vm/zsmalloc.txt Docs acked-by: Rob Landley Literary criticism below: Signed-off-by: Seth Jennings --- Documentation/vm/zsmalloc.txt | 68 +++

Re: [PATCH v8 10/13] PCI/acpiphp: do not use ACPI PCI subdriver mechanism

2013-04-10 Thread Yijing Wang
>> Hi Bjorn, >> Thanks for review. >> >>> My goal is that a user should never have to specify a kernel boot >>> parameter or edit a modules.conf file, but the user did previously >>> have some way to influence whether we use pciehp or acpiphp. I know >>> we still have some issues, particul

Re: [PATCHv9 8/8] zswap: add documentation

2013-04-10 Thread Rob Landley
On 04/10/2013 01:19:00 PM, Seth Jennings wrote: This patch adds the documentation file for the zswap functionality Signed-off-by: Seth Jennings --- Documentation/vm/zsmalloc.txt | 2 +- Documentation/vm/zswap.txt| 82 +++ 2 files changed, 83 inse

Re: [PATCH 14/30] thermal/exynos: remove unnecessary header inclusions

2013-04-10 Thread Eduardo Valentin
Rui, Arnd, As agreed in [1], I will be helping on the thermal maintenance. On 10-04-2013 20:04, Arnd Bergmann wrote: In multiplatform configurations, we cannot include headers provided by only the exynos platform. Fortunately a number of drivers that include those headers do not actually need t

Re: [PATCH] kernel: auditfilter: looping issue, memory leak if has 2 or more AUDIT_FILTERKEYs

2013-04-10 Thread Chen Gang
On 2013年04月11日 05:38, Eric Paris wrote: > - Original Message - >> > >> > also for function audit_list_rules: >> > when call audit_make_reply fails (will return NULL). >> > we also need process data->buf, not only data itself. >> > >> > please help check, thanks. > struct audit

Re: [PATCH] checkpatch: Warn on comparisons to true and false

2013-04-10 Thread Joe Perches
On Wed, 2013-04-10 at 15:57 -0700, Andrew Morton wrote: > On Tue, 09 Apr 2013 20:17:14 -0700 Joe Perches wrote: > > Comparisons of A to true and false are better written > > as A and !A. > > Bleat a message on use. > hm. I'm counting around 1,100 instances of "== true" and "== false". And about

Re: [PATCH 09/30] mmc: sdhci-s3c: remove platform dependencies

2013-04-10 Thread Chris Ball
Hi, On Wed, Apr 10 2013, Arnd Bergmann wrote: > plat/regs-sdhci.h is not used anywhere but in the sdhci-s3c > driver, so it can become a local file there and all other > inclusions removed. > > plat/sdhci.h is used only to define the platform devices, > and with the exception of the platform_data

[char-misc-next 3/3 v7] mei: nfc: Implement MEI bus ops

2013-04-10 Thread Samuel Ortiz
The send ops for NFC builds the command header, updates the request id and then waits for an ACK. The recv ops check if it receives data or an ACK and in the latter case wakes the send ops up. The enable ops sends the NFC HECI connect command. Signed-off-by: Samuel Ortiz Signed-off-by: Tomas Wink

Re: [PATCH] kernel: audit: beautify code, for extern function, better to check its parameters by itself

2013-04-10 Thread Chen Gang
On 2013年04月11日 01:31, Eric Paris wrote: > - Original Message - >> > >> > __audit_socketcall is an extern function. >> > better to check its parameters by itself. >> > >> > also can return error code, when fail (find invalid parameters). >> > also use macro instead of real hard

[char-misc-next 2/3 v7] mei: nfc: Add NFC device to the MEI bus

2013-04-10 Thread Samuel Ortiz
After building its bus name as a string based on its vendor id and radio type, we can add it to the bus. Signed-off-by: Samuel Ortiz Signed-off-by: Tomas Winkler --- drivers/misc/mei/nfc.c | 75 1 file changed, 75 insertions(+) diff --git a/dr

[char-misc-next 0/3 v7] Support NFC device on MEI CL bus

2013-04-10 Thread Samuel Ortiz
v6 -> v7: * Removed include/uapi/linux/mei/nfc.h. All MEI NFC definitions are now folded into drivers/misc/mei/nfc.c Samuel Ortiz (3): mei: nfc: Initial nfc implementation mei: nfc: Add NFC device to the MEI bus mei: nfc: Implement MEI bus ops drivers/misc/mei/Makefile |1 + d

[char-misc-next 1/3 v7] mei: nfc: Initial nfc implementation

2013-04-10 Thread Samuel Ortiz
NFC ME device is exported through the MEI bus to be consumed by the NFC subsystem. NFC is represented by two mei clients: An info one and the actual NFC one. In order to properly build the ME id we first need to retrieve the firmware information from the info client and then disconnect from it. S

[PATCH] ARM: msm: Fix uncompess.h tx underrun check

2013-04-10 Thread Stephen Boyd
Bit 3 of the SR register is set if there is a tx underrun. If this bit isn't set, we should loop on the tx ready bit until we can transmit again. Otherwise we should skip the loop and transmit immediately. The code is doing the opposite though, checking for an underrun and then looping on the tx re

Re: [PATCH 3.8-stable] net: count hw_addr syncs so that unsync works properly.

2013-04-10 Thread David Miller
From: Jonghwan Choi Date: Thu, 11 Apr 2013 09:31:44 +0900 > This patch looks like it should be in the 3.8-stable tree, should we apply > it? I queue up networking patches as needed and that queue is visible at: http://patchwork.ozlabs.org/user/bundle/2566/?state=* and yes this patch, along wit

Re: [PATCH 1/5] clean up checks against "high_memory" variable

2013-04-10 Thread Borislav Petkov
On Wed, Apr 10, 2013 at 04:32:50PM -0700, Dave Hansen wrote: > > We have a new debugging check on x86 that has caught a number > of long-standing bugs. However, there is a _bit_ of collateral > damage with things that call __pa(high_memory). > > We are now checking that any addresses passed to _

[PATCH 3.8-stable] net: count hw_addr syncs so that unsync works properly.

2013-04-10 Thread Jonghwan Choi
This patch looks like it should be in the 3.8-stable tree, should we apply it? -- From: "Vlad Yasevich " commit 4543fbefe6e06a9e40d9f2b28d688393a299f079 upstream A few drivers use dev_uc_sync/unsync to synchronize the address lists from master down to slave/lower devices. In so

[tip:x86/urgent] x86, mm: Patch out arch_flush_lazy_mmu_mode() when running on bare metal

2013-04-10 Thread tip-bot for Boris Ostrovsky
Commit-ID: 511ba86e1d386f671084b5d0e6f110bb30b8eeb2 Gitweb: http://git.kernel.org/tip/511ba86e1d386f671084b5d0e6f110bb30b8eeb2 Author: Boris Ostrovsky AuthorDate: Sat, 23 Mar 2013 09:36:36 -0400 Committer: H. Peter Anvin CommitDate: Wed, 10 Apr 2013 11:25:10 -0700 x86, mm: Patch out ar

[tip:x86/urgent] x86, mm, paravirt: Fix vmalloc_fault oops during lazy MMU updates

2013-04-10 Thread tip-bot for Samu Kallio
Commit-ID: 1160c2779b826c6f5c08e5cc542de58fd1f667d5 Gitweb: http://git.kernel.org/tip/1160c2779b826c6f5c08e5cc542de58fd1f667d5 Author: Samu Kallio AuthorDate: Sat, 23 Mar 2013 09:36:35 -0400 Committer: H. Peter Anvin CommitDate: Wed, 10 Apr 2013 11:25:07 -0700 x86, mm, paravirt: Fix vm

Re: [PATCH 15/30] mtd: onenand/samsung: make regs-onenand.h file local

2013-04-10 Thread Kyungmin Park
Thanks Arnd. On Thu, Apr 11, 2013 at 9:04 AM, Arnd Bergmann wrote: > Nothing uses the NAND register definitions other than the > actual driver, so we can move the header file into the > same local directory, which lets us build it in a multiplatform > configuration. > > Signed-off-by: Arnd Bergma

  1   2   3   4   5   6   7   8   9   >