Re: [PATCH] net: sk == 0xffffffff fix - not for commit

2014-01-17 Thread Andrzej Pietrasiewicz
W dniu 16.01.2014 17:29, Eric Dumazet pisze: On Thu, 2014-01-16 at 16:21 +0100, Andrzej Pietrasiewicz wrote: W dniu 10.12.2013 15:25, Eric Dumazet pisze: On Tue, 2013-12-10 at 07:55 +0100, Andrzej Pietrasiewicz wrote: W dniu 09.12.2013 16:31, Eric Dumazet pisze: On Mon, 2013-12-09 at 12:47

Re: [PATCH] dcache: fix d_splice_alias handling of aliases

2014-01-17 Thread Christoph Hellwig
On Wed, Jan 15, 2014 at 10:17:49AM -0500, J. Bruce Fields wrote: > From: "J. Bruce Fields" > > d_splice_alias can create duplicate directory aliases (in the !new > case), or (in the new case) d_move without holding appropriate locks. > > d_materialise_unique deals with both of these problems.

Re: ipv6: default route for link local address is not added while assigning a address

2014-01-17 Thread Hannes Frederic Sowa
Hi! On Fri, Jan 17, 2014 at 02:04:26PM +0530, sohny thomas wrote: > Any updates on my reply, Any more info is required. > Can this be pulled into the kernel tree? Your patch was posted to the wrong mailing list. Please repost to net...@vger.kernel.org so

Re: [PATCH(v2)] commoncap: don't alloc the credential unless needed in cap_task_prctl

2014-01-17 Thread Tetsuo Handa
James, would you pick up this patch? Tetsuo Handa wrote: > James, please apply. > > Kevin, does "cause OOM" mean something like the OOM killer or kmalloc() > failure > is triggerred by frequent prctl() requests by userspace applications? > If yes, we should backport to stable as this affects

Re: [PATCH v6] Bluetooth: Add hci_h4p driver

2014-01-17 Thread Pavel Machek
Hi! > > Add hci_h4p bluetooth driver to bluetooth-next. This device is used > > for example on Nokia N900 cell phone. > > > > Signed-off-by: Pali Rohár > > Signed-off-by: Pavel Machek > > Thanks-to: Sebastian Reichel > > Thanks-to: Joe Perches > > > > --- > > > > Changes from v5: Comment

RE: [PATCH] libahci: correct a misleading comment

2014-01-17 Thread Dorau, Lukasz
On Friday, January 17, 2014 1:00 PM Tejun Heo wrote: > On Fri, Jan 17, 2014 at 12:43:20PM +0100, Lukasz Dorau wrote: > > There is an error in a comment introduced by: > > commit fa070ee6dc70bcc19737a2406d741b089b3149d5 > > libahci: fix turning on LEDs in ahci_start_port() > > > > Correct

Re: [PATCH 2/4] ARM: sun6i: dt: Add PLL6 and SPI module clocks

2014-01-17 Thread Maxime Ripard
Hi Josh, On Thu, Jan 16, 2014 at 12:15:28PM -0600, Josh Cartwright wrote: > On Thu, Jan 16, 2014 at 06:11:23PM +0100, Maxime Ripard wrote: > > The module clocks in the A31 are still compatible with the A10 one. Add the > > SPI > > module clocks and the PLL6 in the device tree to allow their use

Re: [PATCH] ARM: sunxi: change the AllWinner A1X to sunxi

2014-01-17 Thread Maxime Ripard
Hi Arnd, On Wed, Jan 15, 2014 at 10:40:56AM +0100, Arnd Bergmann wrote: > On Wednesday 15 January 2014 10:10:06 Maxime Ripard wrote: > > On Thu, Jan 09, 2014 at 04:34:04PM +0100, Gerardo Di Iorio wrote: > > > Change the AllWinner A1X SOCs to Allwinner Sunxi SOCs > > > > > > Signed-off-by:

Re: [PATCH 1/3] ACPI / idle: Move idle_boot_override out of the arch directory

2014-01-17 Thread Sudeep Holla
On 17/01/14 02:03, Hanjun Guo wrote: > Move idle_boot_override out of the arch directory to be a single enum > including both platforms values, this will make it rather easier to > avoid ifdefs around which definitions are for which processor in > generally used ACPI code. > > IDLE_FORCE_MWAIT

Re: [PATCH] mm/kmemleak: add support for re-enable kmemleak at runtime

2014-01-17 Thread Catalin Marinas
On Fri, Jan 17, 2014 at 09:40:02AM +, Jianguo Wu wrote: > Now disabling kmemleak is an irreversible operation, but sometimes > we may need to re-enable kmemleak at runtime. So add a knob to enable > kmemleak at runtime: > echo on > /sys/kernel/debug/kmemleak It is irreversible for very good

Notification

2014-01-17 Thread United Nations Development Programme
UNDP is fighting poverty, building democratic societies ,for help/Grant send your Complete Informations -- 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

Re: [PATCH] libahci: correct a misleading comment

2014-01-17 Thread Tejun Heo
On Fri, Jan 17, 2014 at 12:43:20PM +0100, Lukasz Dorau wrote: > There is an error in a comment introduced by: > commit fa070ee6dc70bcc19737a2406d741b089b3149d5 > libahci: fix turning on LEDs in ahci_start_port() > > Correct it. > > Signed-off-by: Lukasz Dorau > --- >

Re: [PATCH 3.13-rc5] module: Add missing newline in printk call.

2014-01-17 Thread Tetsuo Handa
Rusty, would you pick up this patch? This message was added in 3.13-rc1. Thus, should be fixed in 3.13. Tetsuo Handa wrote: > From cc90e27d5cda227e7a0cbeb5de3cc1cbb1595dfa Mon Sep 17 00:00:00 2001 > From: Tetsuo Handa > Date: Mon, 23 Dec 2013 15:52:42 +0900 > Subject: [PATCH] module: Add

Re: [PATCH v3] HID: New hid-cp2112 driver

2014-01-17 Thread David Herrmann
Hi This patch is in a much better state than before! I have a bunch of comments below, mostly nitpicks and coding-style issues. If you fix the coding style and minor issues below, I think we can merge it. Thanks David On Thu, Jan 16, 2014 at 10:52 PM, David Barksdale wrote: > This patch adds

Re: [PATCH V6 1/2] PHY: Exynos: Add Exynos5250 SATA PHY driver

2014-01-17 Thread Yuvaraj Kumar
Sorry for the late reply. On Fri, Jan 10, 2014 at 8:35 PM, Tomasz Figa wrote: > Hi Yuvaraj, > > In general this version looks pretty good, but I have some questions inline. Please find my comments inline. > > On 10.01.2014 08:00, Yuvaraj Kumar C D wrote: > [snip] > >> diff --git

[PATCH] libahci: correct a misleading comment

2014-01-17 Thread Lukasz Dorau
There is an error in a comment introduced by: commit fa070ee6dc70bcc19737a2406d741b089b3149d5 libahci: fix turning on LEDs in ahci_start_port() Correct it. Signed-off-by: Lukasz Dorau --- drivers/ata/libahci.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH] cris: Provide {in,out}[wl]_p()

2014-01-17 Thread Geert Uytterhoeven
drivers/staging/comedi/drivers/das6402.c: In function 'intr_handler': drivers/staging/comedi/drivers/das6402.c:164:3: error: implicit declaration of function 'outw_p' [-Werror=implicit-function-declaration] drivers/staging/speakup/speakup_dtlk.c: In function 'synth_probe':

Re: [PATCH] gpio: intel-mid: comments cleanup

2014-01-17 Thread Mika Westerberg
On Thu, Jan 16, 2014 at 04:19:11PM -0800, David Cohen wrote: > - * Copyright (c) 2008, 2009, 2013, Intel Corporation. > + * Copyright (c) 20014 Intel Corporation. Heh, it should probably be 2014 :) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message

[RFC PATCH 3/3] zram: list and select compression algorithms

2014-01-17 Thread Sergey Senozhatsky
Add compressor device attr that allows to list and select compression algorithms. Define and make available for selection LZ4 compressor ops. usage example: List available compression algorithms (currently selected one is LZO): cat /sys/block/zram0/compressor lz4 Change compression

[RFC PATCH 1/3] zram: delete zram_init_device() function

2014-01-17 Thread Sergey Senozhatsky
allocate new `zram_meta' in disksize_store() only for uninitialised zram device, saving a number of allocations and deallocations in case if disksize_store() was called on currently used device. at the same time zram_meta stack variable is not necessary, because we can set ->meta directly. there

[RFC PATCH 2/3] zram: introduce zram compressor operations struct

2014-01-17 Thread Sergey Senozhatsky
This is preparation patch to add LZ4 compression support. struct zram_compress_ops defines common compress and decompress prototypes. Use these ops->compress and ops->decompress callbacks instead of direct LZO lzo1x_1_compress() and lzo1x_decompress_safe() calls. Compressor ops should be defined

[RFC PATCH 0/3] add LZ4 compression support

2014-01-17 Thread Sergey Senozhatsky
This patchset introduces support for LZ4 compression (along with LZO) and adds functionality to list and change compression algorithms, using new `compressor' device attribute. Sergey Senozhatsky (3): zram: delete zram_init_device() function zram: introduce zram compressor operations struct

Re: [percpu_counter] 74e72f894: -47.6% aim7 jobs-per-min

2014-01-17 Thread Ming Lei
Hi Fengguang, On Fri, Jan 17, 2014 at 6:20 PM, Fengguang Wu wrote: > Ming Lei, > > We noticed that commit 74e72f894 ("lib/percpu_counter.c: fix > __percpu_counter_add()") introduces -47.6% regression in aim7 brk_test > on a 2S SNB server. Comparing to its parent commit: The commit has a bug,

Re: [PATCH 11/11] ext4: add cross rename support

2014-01-17 Thread Michael Kerrisk (man-pages)
Hi Miklos, A few comments below, including one piece in the code that really must be fixed. On 01/16/2014 11:54 PM, Miklos Szeredi wrote: >> On Wed, Jan 15, 2014 at 7:23 PM, J. Bruce Fields >> wrote: >>> Do you have a man page update somewhere for the two new flags? > > Here's the updated man

RE: [PATCH] ASoC: wm8804: Allow control of master clock divider in PLL generation

2014-01-17 Thread Dimitris Papastamos
> Charles (or someone else from Wolfson), you commented on previous > versions of this - are you still OK with it? Looks good to me. Privacy & Confidentiality Notice - This message and any attachments contain privileged and confidential

Re: [PATCH, RFC 08/30] [media] arv: fix sleep_on race

2014-01-17 Thread Hans Verkuil
On 01/02/2014 01:07 PM, Arnd Bergmann wrote: > interruptible_sleep_on is racy and going away. In the arv driver that > race has probably never caused problems since it would require a whole > video frame to be captured before the read function has a chance to > go to sleep, but using

Re: [PATCH] arm64: fix strnlen_user when count <= strlen

2014-01-17 Thread Will Deacon
Hi Kyle, On Thu, Jan 16, 2014 at 11:48:17PM +, Kyle McMartin wrote: > I received a bug report about the ruby test-suite failing on AArch64 when > attempting to pass MAX_ARG_STRLEN sized args to execv[1]. It was > expecting an E2BIG returned, but instead was receiving ENOMEM, and >

Re: [PATCH] x86: dma-mapping: fix GFP_ATOMIC macro usage

2014-01-17 Thread Andy Whitcroft
On Fri, Jan 17, 2014 at 8:46 AM, Marek Szyprowski wrote: > GFP_ATOMIC is not a single gfp flag, but a macro which expands to the other > flags and LACK of __GFP_WAIT flag. To check if caller wanted to perform an > atomic allocation, the code must test __GFP_WAIT flag presence. This patch > fixes

Re: [PATCH, RFC 07/30] [media] radio-cadet: avoid interruptible_sleep_on race

2014-01-17 Thread Hans Verkuil
Hi Arnd! On 01/02/2014 01:07 PM, Arnd Bergmann wrote: > interruptible_sleep_on is racy and going away. This replaces > one use in the radio-cadet driver with an open-coded > wait loop that lets us check the condition under the mutex > but sleep without it. > > Signed-off-by: Arnd Bergmann > Cc:

Re: [PATCH, RFC 06/30] [media] usbvision: remove bogus sleep_on_timeout

2014-01-17 Thread Hans Verkuil
On 01/02/2014 01:07 PM, Arnd Bergmann wrote: > There is no reason to use sleep_on_timeout here, and we want to get > rid of that interface. Use the simpler msleep_interruptible instead. Since this define is unused anyway, lets just remove it completely. I'll post a patch for this. Regards,

[ipc] 5769cf63: LTP semget02 TFAILs

2014-01-17 Thread Fengguang Wu
Hi Davidlohr, We noticed LTP test failures ltp.msgget02.1.TFAIL ltp.semget02.2.TFAIL ltp.semget02.3.TFAIL and the first bad commit is commit 5769cf6355d87f63906b3e51887eff7017c39217 Author: Davidlohr Bueso AuthorDate: Wed Jan 15 16:56:01 2014 +1100 Commit:

Re: gcc tickets for sparse attributes

2014-01-17 Thread Johannes Berg
> > IMHO the context extension doesn't work well enough in sparse to > > document and implement as is. It would be much better if it actually was > > able to differentiate between contexts, rather than treating each one > > the same. > > That would certainly be nice, but that's something

Re: [PATCH, RFC 05/30] [media] omap_vout: avoid sleep_on race

2014-01-17 Thread Hans Verkuil
Hi Arnd, On 01/02/2014 01:07 PM, Arnd Bergmann wrote: > sleep_on and its variants are broken and going away soon. This changes > the omap vout driver to use interruptible_sleep_on_timeout instead, I assume you mean wait_event_interruptible_timeout here :-) Reviewed-by: Hans Verkuil If there

Re: [PATCH v5 2/4] devicetree: bindings: Document Krait CPU/L1 EDAC

2014-01-17 Thread Lorenzo Pieralisi
On Thu, Jan 16, 2014 at 07:26:17PM +, Stephen Boyd wrote: > On 01/16, Lorenzo Pieralisi wrote: > > On Thu, Jan 16, 2014 at 06:05:05PM +, Stephen Boyd wrote: > > > On 01/16, Lorenzo Pieralisi wrote: > > > > Do we really want to do that ? I am not sure. A cpus node is supposed to > > > > be

Re: [PATCH] x86, CPU, AMD: Add workaround for family 16h, erratum 793

2014-01-17 Thread Borislav Petkov
On Thu, Jan 16, 2014 at 10:21:24PM -0200, Henrique de Moraes Holschuh wrote: > On Thu, 16 Jan 2014, Aravind Gopalakrishnan wrote: > > We might want to still have a software fix for this just in case > > someone uses older BIOSes.. > > There is no "just in case" when it comes to someone using

Re: [PATCH 4/11] use ether_addr_equal_64bits

2014-01-17 Thread Dan Carpenter
We're worried about reading beyond the end of the array and it's a heap allocation and the last char of the eth addr is the last byte of the page. This causes an oops. It's almost impossible to hit that bug. 1) You would have to have the eth addr at the end of the array. 2) It would have to be

Re: [PATCH] dcache: fix d_splice_alias handling of aliases

2014-01-17 Thread Steven Whitehouse
Hi, On Thu, 2014-01-16 at 13:51 -0500, J. Bruce Fields wrote: > On Thu, Jan 16, 2014 at 11:54:07AM -0500, Bob Peterson wrote: > > - Original Message - > > | Something like this? > > (snip) > > | @@ -779,6 +782,11 @@ static struct dentry *__gfs2_lookup(struct inode > > *dir, > > | struct

[PATCH v7 3/7] locks: Disable LOCK_MAND support for MS_SHARELOCK mounts

2014-01-17 Thread Pavel Shilovsky
Signed-off-by: Pavel Shilovsky --- fs/locks.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/fs/locks.c b/fs/locks.c index 7ecc511..c7e780a 100644 --- a/fs/locks.c +++ b/fs/locks.c @@ -1904,6 +1904,12 @@ SYSCALL_DEFINE2(flock, unsigned int, fd, unsigned int, cmd)

[PATCH v7 0/7] Add O_DENY* support for VFS and CIFS/NFS

2014-01-17 Thread Pavel Shilovsky
This patchset adds support of O_DENY* flags for Linux fs layer. These flags can be used by any application that needs share reservations to organize a file access. VFS already has some sort of this capability - now it's done through flock/LOCK_MAND mechanis, but that approach is non-atomic.

[PATCH v7 1/7] VFS: Introduce new O_DENY* open flags

2014-01-17 Thread Pavel Shilovsky
This patch adds 3 flags: 1) O_DENYREAD that doesn't permit read access, 2) O_DENYWRITE that doesn't permit write access, 3) O_DENYDELETE that doesn't permit delete or rename. Network filesystems CIFS, SMB2.0, SMB3.0 and NFSv4 have such flags - this change can benefit cifs and nfs modules as well

[PATCH v7 7/7] NFSv4: Add O_DENY* open flags support

2014-01-17 Thread Pavel Shilovsky
Pass O_DENY* flags to NFSv4 open request. Make it return -ESHAREDENIED on share conflicts with other opens and disable O_DENYDELETE support since NFSv4 doesn't support it. Add extra file descriptor counters for every fmode|denymode value into nfs4_state. Make the client not repeat the previous

RE: [PATCH net-next 2/2] reciprocal_divide: correction/update of the algorithm

2014-01-17 Thread David Laight
From: Hannes Frederic Sowa > On Thu, Jan 16, 2014 at 10:37:37AM -0600, Christoph Lameter wrote: > > On Thu, 16 Jan 2014, Daniel Borkmann wrote: > > > > > - * or else the performance is slower than a normal divide. > > > - */ > > > -extern u32 reciprocal_value(u32 B); > > > +struct reciprocal_value

[PATCH v7 6/7] NFSv4: Add deny state handling for nfs4_state struct

2014-01-17 Thread Pavel Shilovsky
and prepare code intrastructure to handle O_DENY* flags. Signed-off-by: Pavel Shilovsky --- fs/nfs/dir.c|2 +- fs/nfs/inode.c |7 +- fs/nfs/nfs4_fs.h| 41 +- fs/nfs/nfs4file.c |2 +- fs/nfs/nfs4proc.c | 194

Re: [PATCH] ARM64: perf: support dwarf unwinding in compat mode

2014-01-17 Thread Will Deacon
On Fri, Jan 17, 2014 at 09:00:09AM +, Jean Pihet wrote: > On 16 January 2014 14:47, Jean Pihet wrote: > >> So the simplest thing would be to make compat_user_stack_pointer expand to > >> user_stack_pointer(current_pt_regs()) on arm64 and merge that in with your > >> original patch fixing

[PATCH v7 4/7] CIFS: Add O_DENY* open flags support

2014-01-17 Thread Pavel Shilovsky
Construct share_access value from O_DENY* flags and send it to the server. Use NTCreateAndX command rather than Trans2 all the time we have any of O_DENY* flags regardless of unix extensions support. Also change smb error mapping of NT_STATUS_SHARING_VIOLATION to -ESHAREDENIED. Signed-off-by:

[PATCH v7 5/7] NFSD: Pass share reservations flags to VFS

2014-01-17 Thread Pavel Shilovsky
that maps them into O_DENY* flags and make them visible for applications on mounts with sharelock option. Signed-off-by: Pavel Shilovsky --- fs/locks.c |1 + fs/nfsd/nfs4state.c | 46 +- fs/nfsd/nfsproc.c |1 + 3 files changed, 47

[PATCH v7 2/7] VFS: Add O_DENYDELETE support for VFS

2014-01-17 Thread Pavel Shilovsky
Introduce new LOCK_DELETE flock flag that is suggested to be used internally only to map O_DENYDELETE open flag: !O_DENYDELETE -> LOCK_DELETE | LOCK_MAND. Signed-off-by: Pavel Shilovsky --- fs/locks.c | 56 -- fs/namei.c

Re: [PATCH net-next v2 2/3] net: add trim helper and convert users

2014-01-17 Thread Daniel Borkmann
On 01/17/2014 10:52 AM, David Laight wrote: From: Hannes Frederic Sowa ... +/** + * trim - perform a reciprocal multiplication in order to "clamp" a + *value into range [0, ep_ro), where the upper interval + *endpoint is right-open. This is useful, e.g. for accessing + *

Re: [PATCH] clocksource: timer-sun5i: Switch to sched_clock_register()

2014-01-17 Thread Daniel Lezcano
On 01/17/2014 02:38 AM, Stephen Boyd wrote: The 32 bit sched_clock interface supports 64 bits since 3.13-rc1. Upgrade to the 64 bit function to allow us to remove the 32 bit registration interface. Cc: Maxime Ripard Signed-off-by: Stephen Boyd --- Cc'in Ingo because this is simple enough to

Re: [PATCH RFC 1/6] net: rfkill: gpio: fix gpio name buffer size off by 1

2014-01-17 Thread Chen-Yu Tsai
On Fri, Jan 17, 2014 at 5:46 PM, David Laight wrote: > From: Chen-Yu Tsai >> snprintf should be passed the complete size of the buffer, including >> the space for '\0'. The previous code resulted in the *_reset and >> *_shutdown strings being truncated. > ... >> diff --git

RE: [PATCH net-next v2 2/3] net: add trim helper and convert users

2014-01-17 Thread David Laight
From: Hannes Frederic Sowa ... > +/** > + * trim - perform a reciprocal multiplication in order to "clamp" a > + *value into range [0, ep_ro), where the upper interval > + *endpoint is right-open. This is useful, e.g. for accessing > + *a index of an array containing ep_ro

Re: [PATCH 6/6] numa,sched: normalize faults_from stats and weigh by CPU use

2014-01-17 Thread Peter Zijlstra
On Fri, Jan 17, 2014 at 01:17:36AM -0500, r...@redhat.com wrote: > + /* > + * Normalize the faults_from, so all tasks in a group > + * count according to CPU use, instead of by the raw > + * number of faults. This

[Q] L1_CACHE_BYTES on flush_pfn_alias function.

2014-01-17 Thread 이정승
Hi, Follow the mailing-list http://comments.gmane.org/gmane.linux.ports.arm.omap/31686 >>Setting the L1 cache line size larger than it actually is should be safe. the written code expected as L1_CACHE_BYTES should be real cache line size has bug. It looks like that flush_pfn_alias function

Re: [PATCH] ASoC: wm8804: Allow control of master clock divider in PLL generation

2014-01-17 Thread Charles Keepax
On Tue, Jan 14, 2014 at 08:34:10PM +0100, Daniel Matuschek wrote: > WM8804 can run with PLL frequencies of 256xfs and 128xfs for > most sample rates. At 192kHz only 128xfs is supported. The > existing driver selects 128xfs automatically for some lower > samples rates. By using an additional

RE: [PATCH RFC 1/6] net: rfkill: gpio: fix gpio name buffer size off by 1

2014-01-17 Thread David Laight
From: Chen-Yu Tsai > snprintf should be passed the complete size of the buffer, including > the space for '\0'. The previous code resulted in the *_reset and > *_shutdown strings being truncated. ... > diff --git a/net/rfkill/rfkill-gpio.c b/net/rfkill/rfkill-gpio.c ... > -

[PATCH v6] mmc: sdhci-moxart: Add MOXA ART SDHCI driver

2014-01-17 Thread Jonas Jensen
ng: Fatal exception in interrupt Changes since v5: 1. add local dma_cookie_t to host struct 2. store dmaengine_submit() return value to [1] 3. use [1] when calling dmaengine_tx_status() Applies to next-20140117 .../devicetree/bindings/mmc/moxa,moxart-sdhci.txt | 28

[PATCH net] net: core: orphan frags before queuing to slow qdisc

2014-01-17 Thread Jason Wang
Many qdiscs can queue a packet for a long time, this will lead an issue with zerocopy skb. It means the frags will not be orphaned in an expected short time, this breaks the assumption that virtio-net will transmit the packet in time. So if guest packets were queued through such kind of qdisc and

Re: [BUG] Panic when booting

2014-01-17 Thread Paul Bolle
On Fri, 2014-01-17 at 17:34 +0800, Madper Xie wrote: > I meet following panic when I booting my HP Compad Elite 8300 Elite SFF > desktop. > > [call trace here:] > [0.569993] Kernel panic - not syncing: VFS: Unable to mount root fs on > unknown-block(0,0) > [0.578269] CPU: 1 PID: 1 Comm:

[PATCH] mm/kmemleak: add support for re-enable kmemleak at runtime

2014-01-17 Thread Jianguo Wu
Now disabling kmemleak is an irreversible operation, but sometimes we may need to re-enable kmemleak at runtime. So add a knob to enable kmemleak at runtime: echo on > /sys/kernel/debug/kmemleak Signed-off-by: Jianguo Wu --- Documentation/kmemleak.txt |3 ++- mm/kmemleak.c |

Re: powerpc/hugetlb: BUG: using smp_processor_id() in preemptible

2014-01-17 Thread “tiejun.chen”
On 01/17/2014 05:23 PM, Nikita Yushchenko wrote: Hi While running LTP hugeltb tests on freescale powerpc board, I'm getting [ 7253.637591] BUG: using smp_processor_id() in preemptible [ ] code: hugemmap01/9048 [ 7253.637601] caller is free_hugepd_range.constprop.25+0x88/0x1a8 [

[BUG] Panic when booting

2014-01-17 Thread Madper Xie
Howdy all, I meet following panic when I booting my HP Compad Elite 8300 Elite SFF desktop. [call trace here:] [0.569993] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) [0.578269] CPU: 1 PID: 1 Comm: swapper/0 Tainted: GW3.13.0-rc8 #1 [

Re: [PATCH 1/2] USB: at91: fix the number of endpoint parameter

2014-01-17 Thread Nicolas Ferre
On 17/01/2014 03:59, Bo Shen : > In sama5d3 SoC, there are 16 endpoints. As the USBA_NR_ENDPOINTS > is only 7. So, fix it for sama5d3 SoC using the udc->num_ep. > > Signed-off-by: Bo Shen Acked-by: Nicolas Ferre > --- > > drivers/usb/gadget/atmel_usba_udc.c | 2 +- > 1 file changed, 1

Re: [PATCH 2/2] USB: at91: using USBA_NR_DMAS for DMA channels

2014-01-17 Thread Nicolas Ferre
On 17/01/2014 03:59, Bo Shen : > When the SoC is earlier than sama5d3 SoC, which have the same number > endpoints and DMAs. However for sama5d3 SoC, it has different number > for endpoints and DMAs. So, define USBA_NR_DMAs for DMA channels > > Signed-off-by: Bo Shen Acked-by: Nicolas Ferre >

[PATCH 11/9] PCI/MSI: Phase out pci_enable_msi_block()

2014-01-17 Thread Alexander Gordeev
This update obsoletes pci_enable_msi_block() function in favor of pci_enable_msi_range(). Signed-off-by: Alexander Gordeev --- drivers/pci/msi.c | 17 +++-- include/linux/pci.h |7 ++- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/drivers/pci/msi.c

[PATCH v2 resend 0/5] arm64: advertise availability of CRC and crypto instructions

2014-01-17 Thread Ard Biesheuvel
This series is a followup to the patch that was recently merged by Catalin that allocates hwcaps bits for CRC and Crypto Extensions instructions so userland can discover whether the current CPU has any of those capabilities. Patch #1 enables ARM support for the ELF_HWCAP2/AT_HWCAP2 ELF auxv entry

[PATCH v2 resend 4/5] ARM: introduce HWCAP2 feature bits for ARMv8 Crypto Extensions

2014-01-17 Thread Ard Biesheuvel
This allocates feature bits 0-4 in HWCAP2 for the crypto and CRC extensions introduced in ARMv8. Signed-off-by: Ard Biesheuvel --- arch/arm/include/uapi/asm/hwcap.h | 5 + arch/arm/kernel/setup.c | 5 + 2 files changed, 10 insertions(+) diff --git

Re: [PATCH] tty: Fallback to use dynamic major number

2014-01-17 Thread Tushar Behera
On 16 January 2014 23:45, Mark Brown wrote: > On Thu, Jan 16, 2014 at 09:22:40AM -0800, Greg KH wrote: >> On Thu, Jan 16, 2014 at 05:08:14PM +, Mark Brown wrote: > >> > No, the issue is happening because the drivers are registering things >> > at module load time and not at device

[PATCH v2 resend 1/5] ARM: add support for AT_HWCAP2 ELF auxv entry

2014-01-17 Thread Ard Biesheuvel
This enables AT_HWCAP2 for ARM. The generic support for this new ELF auxv entry was added in commit 2171364d1a9 (powerpc: Add HWCAP2 aux entry) Signed-off-by: Ard Biesheuvel --- arch/arm/include/asm/hwcap.h | 3 ++- arch/arm/include/uapi/asm/hwcap.h | 4 arch/arm/kernel/setup.c

[PATCH 10/9] PCI/MSI: Undeprecate pci_enable_msi()

2014-01-17 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev --- Documentation/PCI/MSI-HOWTO.txt | 23 --- 1 files changed, 20 insertions(+), 3 deletions(-) diff --git a/Documentation/PCI/MSI-HOWTO.txt b/Documentation/PCI/MSI-HOWTO.txt index a8d0100..3c3080e 100644 ---

[PATCH v2 resend 3/5] arm64: add AT_HWCAP2 support for 32-bit compat

2014-01-17 Thread Ard Biesheuvel
Add support for the ELF auxv entry AT_HWCAP2 when running 32-bit ELF binaries in compat mode. Signed-off-by: Ard Biesheuvel --- arch/arm64/include/asm/hwcap.h | 3 ++- arch/arm64/kernel/setup.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git

powerpc/hugetlb: BUG: using smp_processor_id() in preemptible

2014-01-17 Thread Nikita Yushchenko
Hi While running LTP hugeltb tests on freescale powerpc board, I'm getting [ 7253.637591] BUG: using smp_processor_id() in preemptible [ ] code: hugemmap01/9048 [ 7253.637601] caller is free_hugepd_range.constprop.25+0x88/0x1a8 [ 7253.637605] CPU: 1 PID: 9048 Comm: hugemmap01

[PATCH v2 resend 5/5] arm64: advertise ARMv8 extensions to 32-bit compat ELF binaries

2014-01-17 Thread Ard Biesheuvel
This adds support for advertising the presence of ARMv8 Crypto Extensions in the Aarch32 execution state to 32-bit ELF binaries running in 32-bit compat mode under the arm64 kernel. Signed-off-by: Ard Biesheuvel --- arch/arm64/include/asm/hwcap.h | 6 ++ arch/arm64/kernel/setup.c | 32

[PATCH v2 resend 2/5] binfmt_elf: add ELF_HWCAP2 to compat auxv entries

2014-01-17 Thread Ard Biesheuvel
Add ELF_HWCAP2 to the set of auxv entries that is passed to a 32-bit ELF program running in 32-bit compat mode under a 64-bit kernel. Signed-off-by: Ard Biesheuvel --- fs/compat_binfmt_elf.c | 5 + 1 file changed, 5 insertions(+) diff --git a/fs/compat_binfmt_elf.c b/fs/compat_binfmt_elf.c

[PATCH] media: i2c: mt9v032: Check return value of clk_prepare_enable/clk_set_rate

2014-01-17 Thread Prabhakar Lad
From: "Lad, Prabhakar" clk_set_rate(), clk_prepare_enable() functions can fail, so check the return values to avoid surprises. Signed-off-by: Lad, Prabhakar --- drivers/media/i2c/mt9v032.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git

Re: gcc tickets for sparse attributes

2014-01-17 Thread Josh Triplett
On Fri, Jan 17, 2014 at 09:33:16AM +0100, Johannes Berg wrote: > On Thu, 2014-01-16 at 21:27 -0800, H. Peter Anvin wrote: > > > However, I would also like support for the context extensions, but I'm > > not knowledgeable enough to describe the semantics accurately. Would > > anyone be willing to

Re: gcc tickets for sparse attributes

2014-01-17 Thread Josh Triplett
On Thu, Jan 16, 2014 at 09:27:08PM -0800, H. Peter Anvin wrote: > I have filed gcc tickets asking for direct support in gcc for some > sparse extensions that we use heavily in the kernel: > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59850 > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59851 >

[PATCH] media: i2c: mt9p031: Check return value of clk_prepare_enable/clk_set_rate

2014-01-17 Thread Prabhakar Lad
From: "Lad, Prabhakar" clk_set_rate(), clk_prepare_enable() functions can fail, so check the return values to avoid surprises. Signed-off-by: Lad, Prabhakar --- drivers/media/i2c/mt9p031.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git

Re: [patch v2 -mm] mm, oom: prefer thread group leaders for display purposes

2014-01-17 Thread Michal Hocko
On Thu 16-01-14 14:49:25, David Rientjes wrote: > On Thu, 16 Jan 2014, Michal Hocko wrote: > > > > When two threads have the same badness score, it's preferable to kill the > > > thread group leader so that the actual process name is printed to the > > > kernel log rather than the thread group

[RFC PATCH] fs null_blk: Null pointer deference problem in alloc_page_buffers

2014-01-17 Thread Raghavendra K T
If we load the null_blk module with bs=8k we get following oops: [ 3819.812190] BUG: unable to handle kernel NULL pointer dereference at 0008 [ 3819.812387] IP: [] create_empty_buffers+0x28/0xaf [ 3819.812527] PGD 219244067 PUD 215a06067 PMD 0 [ 3819.812640] Oops: [#1] SMP [

Re: [RFC][PATCH] preempt: Debug for possible missed preemption checks

2014-01-17 Thread Peter Zijlstra
On Thu, Jan 16, 2014 at 09:12:14PM -0800, Andrew Morton wrote: > On Thu, 16 Jan 2014 23:57:51 -0500 Steven Rostedt wrote: > > > When PROVE_LOCKING and PREEMPT is configured, the preempt state > > tracking is active. Testing this out, I added a module that did the > > following: > > So I assume

[PATCH 4/4] sched: Idle task shortcut optimization

2014-01-17 Thread Daniel Lezcano
With the previous patch, we have no ambiguity on going to idle. So we can pick directly the idle task instead of looking up all the domains which will in any case return no task except the idle_task. Signed-off-by: Daniel Lezcano --- kernel/sched/core.c | 43

[PATCH 3/4] sched: Move idle_stamp up to the core

2014-01-17 Thread Daniel Lezcano
The idle_balance modifies the idle_stamp field of the rq, making this information to be shared across core.c and fair.c. As we can know if the cpu is going to idle or not with the previous patch, let's encapsulate the idle_stamp information in core.c by moving it up to the caller. The idle_balance

[PATCH 1/4] sched: Remove 'cpu' parameter for idle_balance()

2014-01-17 Thread Daniel Lezcano
The cpu parameter passed to idle_balance is not needed as it could be retrieved from the struct rq. Signed-off-by: Daniel Lezcano --- kernel/sched/core.c |2 +- kernel/sched/fair.c |3 ++- kernel/sched/sched.h |2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git

[PATCH 2/4] sched: Fix race in idle_balance()

2014-01-17 Thread Daniel Lezcano
The scheduler main function 'schedule()' checks if there are no more tasks on the runqueue. Then it checks if a task should be pulled in the current runqueue in idle_balance() assuming it will go to idle otherwise. But the idle_balance() releases the rq->lock in order to lookup in the sched

Re: [PATCH] ARM64: perf: support dwarf unwinding in compat mode

2014-01-17 Thread Jean Pihet
Hi Will, Some more thoughts below On 16 January 2014 14:47, Jean Pihet wrote: > Will, > > On 16 January 2014 13:57, Will Deacon wrote: >> On Thu, Jan 16, 2014 at 12:26:53PM +, Jean Pihet wrote: >>> On 16 January 2014 12:56, Will Deacon wrote: >>> > In your previous series, compat

[BUG] perf stat: corrupts memory when using PMU cpumask

2014-01-17 Thread Stephane Eranian
Hi, I have been debugging a NULL pointer issue with perf stat unit/scale code and in the process I ran into what appeared like a double-free issue reported by glibc. It took me a while to realize that it was because of memory corruption caused by a recent change in how evsel are freed. My test

Re: [PATCH 1/5] HID: logitech-dj: Fix USB 3.0 issue

2014-01-17 Thread Nestor Lopez Casado
On Thu, Jan 16, 2014 at 10:50 PM, Jiri Kosina wrote: > On Wed, 8 Jan 2014, Benjamin Tissoires wrote: > >> From: Benjamin Tisssoires >> >> This fix (not very clean though) should fix the long time USB3 >> issue that was spotted last year. The rational has been given by >> Hans de Goede: > > Man

Re: [PATCH] mm: vmstat: Do not display stats for TLB flushes unless debugging

2014-01-17 Thread Mel Gorman
On Thu, Jan 16, 2014 at 03:22:12PM -0800, David Rientjes wrote: > On Thu, 16 Jan 2014, Mel Gorman wrote: > > > diff --git a/mm/vmstat.c b/mm/vmstat.c > > index 7249614..def5dd2 100644 > > --- a/mm/vmstat.c > > +++ b/mm/vmstat.c > > @@ -851,12 +851,14 @@ const char * const vmstat_text[] = { > >

[PATCH] cris: cryptocop: fix GFP_ATOMIC macro usage

2014-01-17 Thread Marek Szyprowski
GFP_ATOMIC is not a single gfp flag, but a macro which expands to the other flags and LACK of __GFP_WAIT flag. To check if caller wanted to perform an atomic allocation, the code must test __GFP_WAIT flag presence. Signed-off-by: Marek Szyprowski --- arch/cris/arch-v32/drivers/cryptocop.c |

[PATCH v16] dmaengine: Add MOXA ART DMA engine driver

2014-01-17 Thread Jonas Jensen
driver or client application. Signed-off-by: Jonas Jensen --- Notes: Changes since v15: 1. rebase drivers/dma/Kconfig to next-20140117 Applies to next-20140117 .../devicetree/bindings/dma/moxa,moxart-dma.txt| 45 ++ drivers/dma/Kconfig| 8

[PATCH] ARM: dma-mapping: fix GFP_ATOMIC macro usage

2014-01-17 Thread Marek Szyprowski
GFP_ATOMIC is not a single gfp flag, but a macro which expands to the other flags and LACK of __GFP_WAIT flag. To check if caller wanted to perform an atomic allocation, the code must test __GFP_WAIT flag presence. This patch fixes the issue introduced in v3.6-rc5 Signed-off-by: Marek Szyprowski

[PATCH] x86: dma-mapping: fix GFP_ATOMIC macro usage

2014-01-17 Thread Marek Szyprowski
GFP_ATOMIC is not a single gfp flag, but a macro which expands to the other flags and LACK of __GFP_WAIT flag. To check if caller wanted to perform an atomic allocation, the code must test __GFP_WAIT flag presence. This patch fixes the issue introduced in v3.5-rc1 CC: sta...@vger.kernel.org

[PATCH] staging: lustre: fix GFP_ATOMIC macro usage

2014-01-17 Thread Marek Szyprowski
GFP_ATOMIC is not a single gfp flag, but a macro which expands to the other flags and LACK of __GFP_WAIT flag. To check if caller wanted to perform an atomic allocation, the code must test __GFP_WAIT flag presence. Signed-off-by: Marek Szyprowski ---

Re: ipv6: default route for link local address is not added while assigning a address

2014-01-17 Thread sohny thomas
Hi All, Any updates on my reply, Any more info is required. Can this be pulled into the kernel tree? Thanks & Regards, Sohny On Monday 13 January 2014 02:19 PM, sohny thomas wrote: On Friday 10 January 2014 10:46 PM, Hannes Frederic Sowa wrote: On Fri, Jan 10, 2014 at 05:33:08PM +0100,

Re: gcc tickets for sparse attributes

2014-01-17 Thread Johannes Berg
On Thu, 2014-01-16 at 21:27 -0800, H. Peter Anvin wrote: > However, I would also like support for the context extensions, but I'm > not knowledgeable enough to describe the semantics accurately. Would > anyone be willing to file a ticket describing how the context extension > works well enough

[PATCH v2 2/6] arm64: Add regs_return_value() in syscall.h

2014-01-17 Thread AKASHI Takahiro
This macro is used mainly for audit to record system call's results, but may also be used in test_kprobes.c. Signed-off-by: AKASHI Takahiro --- arch/arm64/include/asm/ptrace.h |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/include/asm/ptrace.h

[PATCH v2 3/6] arm64: Add audit support

2014-01-17 Thread AKASHI Takahiro
On AArch64, audit can be enabled with CONFIG_AUDIT_GENERIC. Most of audit features are implemented in generic way. This patch adds a small piece of architecture dependent code. syscall_get_arch(), which is used in seccomp, should just return AUDIT_ARCH_*. Signed-off-by: AKASHI Takahiro ---

[PATCH v2 4/6] arm64: audit: Add 32-bit (compat) syscall support

2014-01-17 Thread AKASHI Takahiro
Generic audit code also support compat system calls now. This patch adds a small piece of architecture dependent code. Signed-off-by: AKASHI Takahiro --- arch/arm64/include/asm/audit.h | 20 arch/arm64/include/asm/syscall.h | 10 ++ 2 files changed, 30

[PATCH v2 5/6] arm64: audit: Add makefile rule to create unistd_32.h for compat syscalls

2014-01-17 Thread AKASHI Takahiro
generic compat sycall audit (lib/compat_audit.c) requires unistd_32.h for __NR_xyx compat syscall numbers. This is a different file from unistd32.h on arm64 and so it must be generated from unistd32.h. Signed-off-by: AKASHI Takahiro --- arch/arm64/Makefile |4

[PATCH v2 6/6] arm64: audit: Add audit hook in ptrace/syscall_trace

2014-01-17 Thread AKASHI Takahiro
This patch adds auditing functions on entry to or exit from every system call invocation. Signed-off-by: AKASHI Takahiro --- arch/arm64/include/asm/thread_info.h |1 + arch/arm64/kernel/entry.S|3 +++ arch/arm64/kernel/ptrace.c | 12 3 files changed,

<    1   2   3   4   5   6   7   8   9   10   >