[PATCH 3.14 003/122] vti6: Use vti6_dev_init as the ndo_init function.

2014-11-19 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Steffen Klassert [ Upstream commit 16a0231bf7dc3fb37e9b1f1cb1a277dc220b5c5e ] vti6_dev_init() sets the dev->iflink via a call to vti6_link_config(). After that, register_netdevice() sets dev->

[PATCH 3.14 048/122] nfs: fix pnfs direct write memory leak

2014-11-19 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Peng Tao commit 8c393f9a721c30a030049a680e1bf896669bb279 upstream. For pNFS direct writes, layout driver may dynamically allocate ds_cinfo.buckets. So we need to take care to free them when fr

[PATCH 3.17 132/141] checkpatch: remove unnecessary + after {8,8}

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Joe Perches commit d2207ccbc59900311c88bb9150b24253cd4ddd49 upstream. There's a useless "+" use that needs to be removed as perl 5.20 emits a "Useless use of greediness modifier '+'" message e

[PATCH 3.17 102/141] x86, kaslr: Prevent .bss from overlaping initrd

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Junjie Mao commit e6023367d779060fddc9a52d1f474085b2b36298 upstream. When choosing a random address, the current implementation does not take into account the reversed space for .bss and .brk

[PATCH 3.17 131/141] builddeb: put the dbg files into the correct directory

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Michal Marek commit 2d0871396995139b37f9ceb153c8b07589148343 upstream. Since the conversion of objtree to use relative pathnames (commit 7e1c04779e, "kbuild: Use relative path for $(objtree)")

[PATCH 3.17 127/141] netfilter: xt_bpf: add mising opaque struct sk_filter definition

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Pablo Neira commit e10038a8ec06ac819b7552bb67aaa6d2d6f850c1 upstream. This structure is not exposed to userspace, so fix this by defining struct sk_filter; so we skip the casting in kernelspac

[PATCH 3.17 128/141] GFS2: Make rename not save dirent location

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Bob Peterson commit 19aeb5a65f1a6504fc665466c188241e7393d66f upstream. This patch fixes a regression in the patch "GFS2: Remember directory insert point", commit 2b47dad866d04f14c328f888ba5406

[PATCH 3.17 126/141] netfilter: nft_compat: fix wrong target lookup in nft_target_select_ops()

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Arturo Borrero commit 7965ee93719921ea5978f331da653dfa2d7b99f5 upstream. The code looks for an already loaded target, and the correct list to search is nft_target_list, not nft_match_list. Si

[PATCH 3.17 125/141] netfilter: nf_log: release skbuff on nlmsg put failure

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Houcheng Lin commit b51d3fa364885a2c1e1668f88776c67c95291820 upstream. The kernel should reserve enough room in the skb so that the DONE message can always be appended. However, in case of e.

Re: frequent lockups in 3.18rc4

2014-11-19 Thread Andy Lutomirski
On 11/19/2014 06:59 AM, Dave Jones wrote: > On Tue, Nov 18, 2014 at 08:40:55PM -0800, Linus Torvalds wrote: > > On Tue, Nov 18, 2014 at 6:19 PM, Dave Jones wrote: > > > > > > NMI watchdog: BUG: soft lockup - CPU#2 stuck for 21s! [trinity-c42:31480] > > > CPU: 2 PID: 31480 Comm: trinity-c42 Not

[PATCH 3.17 122/141] netfilter: nf_tables: check for NULL in nf_tables_newchain pcpu stats allocation

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Sabrina Dubroca commit c123bb7163043bb8f33858cf8e45b01c17dbd171 upstream. alloc_percpu returns NULL on failure, not a negative error code. Fixes: ff3cd7b3c922 ("netfilter: nf_tables: refactor

[PATCH 3.17 123/141] netfilter: nf_log: account for size of NLMSG_DONE attribute

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Florian Westphal commit 9dfa1dfe4d5e5e66a991321ab08afe69759d797a upstream. We currently neither account for the nlattr size, nor do we consider the size of the trailing NLMSG_DONE when allocat

[PATCH 3.17 124/141] netfilter: nfnetlink_log: fix maximum packet length logged to userspace

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Florian Westphal commit c1e7dc91eed0ed1a51c9b814d648db18bf8fc6e9 upstream. don't try to queue payloads > 0x - NLA_HDRLEN, it does not work. The nla length includes the size of the nla stru

[PATCH 3.17 121/141] netfilter: ipset: off by one in ip_set_nfnl_get_byindex()

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit 0f9f5e1b83abd2b37c67658e02a6fc9001831fa5 upstream. The ->ip_set_list[] array is initialized in ip_set_net_init() and it has ->ip_set_max elements so this check should be >

[PATCH 3.17 101/141] x86, microcode, AMD: Fix ucode patch stashing on 32-bit

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Borislav Petkov commit c0a717f23dccdb6e3b03471bc846fdc636f2b353 upstream. Save the patch while we're running on the BSP instead of later, before the initrd has been jettisoned. More importantl

[PATCH 3.17 088/141] dm raid: ensure superblocks size matches devices logical block size

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Heinz Mauelshagen commit 40d43c4b4cac4c2647bf07110d7b07d35f399a84 upstream. The dm-raid superblock (struct dm_raid_superblock) is padded to 512 bytes and that size is being used to read it in

[PATCH 3.17 103/141] md: Always set RECOVERY_NEEDED when clearing RECOVERY_FROZEN

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: NeilBrown commit 45eaf45dfa4850df16bc2e8e7903d89021137f40 upstream. md_check_recovery will skip any recovery and also clear MD_RECOVERY_NEEDED if MD_RECOVERY_FROZEN is set. So when we clear _F

[PATCH 3.17 105/141] NFSv4: Ensure that we call FREE_STATEID when NFSv4.x stateids are revoked

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Trond Myklebust commit c606bb8857921d3ecf4d353942d6cc7e116cc75a upstream. NFSv4.x (x>0) requires us to call TEST_STATEID+FREE_STATEID if a stateid is revoked. We will currently fail to do this

[PATCH 3.17 104/141] NFSv4: Ensure that we remove NFSv4.0 delegations when state has expired

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Trond Myklebust commit 4dfd4f7af0afd201706ad186352ca423b0f17d4b upstream. NFSv4.0 does not have TEST_STATEID/FREE_STATEID functionality, so unlike NFSv4.1, the recovery procedure when stateids

[PATCH 3.17 106/141] NFS: Dont try to reclaim delegation open state if recovery failed

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Trond Myklebust commit f8ebf7a8ca35dde321f0cd385fee6f1950609367 upstream. If state recovery failed, then we should not attempt to reclaim delegated state. http://lkml.kernel.org/r/CAN-5tyHwG=

[PATCH 3.17 107/141] nfs: Fix use of uninitialized variable in nfs_getattr()

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Jan Kara commit 16caf5b6101d03335b386e77e9e14136f989be87 upstream. Variable 'err' needn't be initialized when nfs_getattr() uses it to check whether it should call generic_fillattr() or not. T

[PATCH 3.17 108/141] NFSv4: Fix races between nfs_remove_bad_delegation() and delegation return

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Trond Myklebust commit 869f9dfa4d6d57b79e0afc3af14772c2a023eeb1 upstream. Any attempt to call nfs_remove_bad_delegation() while a delegation is being returned is currently a no-op. This means

[PATCH 3.17 109/141] NFSv4.1: nfs41_clear_delegation_stateid shouldnt trust NFS_DELEGATED_STATE

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Trond Myklebust commit 0c116cadd94b16b30b1dd90d38b2784d9b39b01a upstream. This patch removes the assumption made previously, that we only need to check the delegation stateid when it matches t

[PATCH 3.17 055/141] libceph: do not crash on large auth tickets

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Ilya Dryomov commit aaef31703a0cf6a733e651885bfb49edc3ac6774 upstream. Large (greater than 32k, the value of PAGE_ALLOC_COSTLY_ORDER) auth tickets will have their buffers vmalloc'ed, which lea

[PATCH 3.17 110/141] media: ttusb-dec: buffer overflow in ioctl

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit f2e323ec96077642d397bb1c355def536d489d16 upstream. We need to add a limit check here so we don't overflow the buffer. Signed-off-by: Dan Carpenter Signed-off-by: Mauro C

[PATCH 3.17 114/141] memory-hotplug: Remove "weak" from memory_block_size_bytes() declaration

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Bjorn Helgaas commit e0a8400c6923a163265d52798cdd4c33f3f8ab5a upstream. drivers/base/memory.c provides a default memory_block_size_bytes() definition explicitly marked "weak". Several archite

Re: [PATCH 0/2] fs-udf: Deletion of two unnecessary checks

2014-11-19 Thread Jan Kara
On Tue 18-11-14 18:55:32, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 18 Nov 2014 18:33:08 +0100 > > Another update suggestion was taken into account after a patch was applied > from static source code analysis. I've merged both patches. Thanks.

[PATCH 3.17 112/141] net: systemport: enable RX interrupts after NAPI

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Florian Fainelli commit 8edf0047f4b8e03d94ef88f5a7dec146cce03a06 upstream. There is currently a small window during which the SYSTEMPORT adapter enables its RX interrupts without having enable

[PATCH 3.17 113/141] net: systemport: reset UniMAC coming out of a suspend cycle

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Florian Fainelli commit 704d33e7006f20f9b4fa7d24a0f08c4b5919b131 upstream. bcm_sysport_resume() was missing an UniMAC reset which can lead to various receive FIFO corruptions coming out of a s

[PATCH 3.17 059/141] mac80211: use secondary channel offset IE also beacons during CSA

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Luciano Coelho commit 84469a45a1bedec9918e94ab2f78c5dc0739e4a7 upstream. If we are switching from an HT40+ to an HT40- channel (or vice-versa), we need the secondary channel offset IE to speci

[PATCH 3.17 111/141] cxgb4 : Handle dcb enable correctly

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Anish Bhatt commit 3bb062613b1ecbd0c388106f61344d699f7859ec upstream. Disabling DCBx in firmware automatically enables DCBx for control via host lldp agents. Wait for an explicit setstate call

[PATCH 1/1] dm: Deletion of unnecessary checks before two function calls

2014-11-19 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 19 Nov 2014 21:48:10 +0100 The functions dm_table_destroy() and vfree() perform also input parameter validation. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/md/

[PATCH 3.17 117/141] clocksource: Remove "weak" from clocksource_default_clock() declaration

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Bjorn Helgaas commit 96a2adbc6f501996418da9f7afe39bf0e4d006a9 upstream. kernel/time/jiffies.c provides a default clocksource_default_clock() definition explicitly marked "weak". arch/s390 pro

[PATCH 3.17 116/141] kgdb: Remove "weak" from kgdb_arch_pc() declaration

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Bjorn Helgaas commit 107bcc6d566cb40184068d888637f9aefe6252dd upstream. kernel/debug/debug_core.c provides a default kgdb_arch_pc() definition explicitly marked "weak". Several architectures

[PATCH 3.17 089/141] Input: synaptics - add min/max quirk for Lenovo T440s

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit e4742b1e786ca386e88e6cfb2801e14e15e365cd upstream. The new Lenovo T440s laptop has a different PnP ID "LEN0039", and it needs the similar min/max quirk to make its clickpad

[PATCH 3.17 115/141] vmcore: Remove "weak" from function declarations

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Bjorn Helgaas commit 5ab03ac5aaa1f032e071f1b3dc433b7839359c03 upstream. For the following functions: elfcorehdr_alloc() elfcorehdr_free() elfcorehdr_read() elfcorehdr_read_notes() r

[PATCH 3.17 060/141] mac80211: schedule the actual switch of the station before CSA count 0

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Luciano Coelho commit ff1e417c7c239b7abfe70aa90460a77eaafc7f83 upstream. Due to the time it takes to process the beacon that started the CSA process, we may be late for the switch if we try to

[PATCH 3.17 061/141] mac80211: fix use-after-free in defragmentation

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Johannes Berg commit b8fff407a180286aa683d543d878d98d9fc57b13 upstream. Upon receiving the last fragment, all but the first fragment are freed, but the multicast check for statistics at the en

[PATCH 3.17 017/141] smsc911x: power-up phydev before doing a software reset.

2014-11-19 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Enric Balletbo i Serra [ Upstream commit ccf899a27c08038db91765ff12bb0380dcd85887 ] With commit be9dad1f9f26604fb ("net: phy: suspend phydev when going to HALTED"), the PHY device will be put

Re: linux-next: bad commit in the nfsd tree

2014-11-19 Thread J. Bruce Fields
On Wed, Nov 19, 2014 at 08:04:11AM +1100, Stephen Rothwell wrote: > Hi, > > I just noticed that the top commit of the nfsd tree (be603bbb7bc1 > "OOPS") has no Signed-off-by tags (or a real commit message at all) ... Yes, sorry, I needed it as a temporary fix for a client-side bug (since gone upst

[PATCH v2 2/9] staging: panel: Call init function directly

2014-11-19 Thread Mariusz Gorski
Remove useless function and let the kernel call the actual init function directly. Signed-off-by: Mariusz Gorski Acked-by: Willy Tarreau --- drivers/staging/panel/panel.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/staging/panel/panel.c b/drivers/staging/pa

[PATCH v2 4/9] staging: panel: Use defined value or checking module params state

2014-11-19 Thread Mariusz Gorski
Avoid magic number and use a comparison with a defined value instead that checks whether module param has been set by the user to some value at loading time. Signed-off-by: Mariusz Gorski --- v2: Don't introduce new macros for param value check drivers/staging/panel/panel.c | 86 +++

[PATCH v2 3/9] staging: panel: Remove magic numbers

2014-11-19 Thread Mariusz Gorski
Get rid of magic numbers indicating that the value of a module param is not set. Use a defined value instead. Signed-off-by: Mariusz Gorski Acked-by: Willy Tarreau --- drivers/staging/panel/panel.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/driv

[PATCH v2 7/9] staging: panel: Refactor LCD init code

2014-11-19 Thread Mariusz Gorski
Rework lcd_init method to make it a little bit more clear about the precedence of the params, move LCD geometry and pins layout to the LCD struct and thus make the LCD-related module params effectively read-only. Signed-off-by: Mariusz Gorski --- drivers/staging/panel/panel.c | 304 +

[PATCH v2 8/9] staging: panel: Remove more magic number comparison

2014-11-19 Thread Mariusz Gorski
Use a defined value instead of magic number comparison for checking whether a module param value has been set. Signed-off-by: Mariusz Gorski --- v2: Don't introduce new macros for param value check drivers/staging/panel/panel.c | 20 ++-- 1 file changed, 10 insertions(+), 10 del

[PATCH v2 6/9] staging: panel: Make two more module params read-only

2014-11-19 Thread Mariusz Gorski
Make keypad_type and lcd_type module params read-only. This step also starts making it more clear what is the precedence of device params coming from different sources (device profile, runtime module param values etc). Signed-off-by: Mariusz Gorski --- drivers/staging/panel/panel.c | 71

[PATCH v2 9/9] staging: panel: Move LCD-related state into struct lcd

2014-11-19 Thread Mariusz Gorski
Move more or less all LCD-related state into struct lcd in order to get better cohesion; use bool instead of int where it makes sense. Signed-off-by: Mariusz Gorski Acked-by: Willy Tarreau --- drivers/staging/panel/panel.c | 255 ++ 1 file changed, 134 in

[PATCH v2 5/9] staging: panel: Start making module params read-only

2014-11-19 Thread Mariusz Gorski
Start decoupling module params from the actual device state, both for lcd and keypad, by keeping the params read-only and moving the device state to related structs. Signed-off-by: Mariusz Gorski Acked-by: Willy Tarreau --- drivers/staging/panel/panel.c | 35 +--

[PATCH v2 1/9] staging: panel: Set default parport module param value

2014-11-19 Thread Mariusz Gorski
Set default parport module param value to DEFAULT_PARPORT so that a if-block can be avoided. Signed-off-by: Mariusz Gorski Acked-by: Willy Tarreau --- drivers/staging/panel/panel.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/staging/panel/panel.c b/drivers/st

[PATCH v2 0/9] staging: panel: Refactor panel initialization

2014-11-19 Thread Mariusz Gorski
This set of patches focuses on making current initialization process easier to understand - especially it tries to emphasize what are the priorities of the params coming from different sources (Kconfig values, device profiles and module param values set on loading). I paid attention not to change t

Re: [PATCH 1/3] mfd: cros_ec: Add Chrome OS EC userspace device interface

2014-11-19 Thread Olof Johansson
On Wed, Nov 19, 2014 at 10:37 AM, Javier Martinez Canillas wrote: > Hello Alan, > > Thanks a lot for your feedback. > > On 11/18/2014 06:00 PM, One Thousand Gnomes wrote: >>> +#ifdef CONFIG_COMPAT >>> +struct compat_cros_ec_command { >>> +uint32_t version; >>> +uint32_t command; >>> +c

Re: [PATCH net-net 0/4] Increase the limit of tuntap queues

2014-11-19 Thread Michael S. Tsirkin
On Wed, Nov 19, 2014 at 03:16:28PM -0500, David Miller wrote: > From: Pankaj Gupta > Date: Tue, 18 Nov 2014 21:52:54 +0530 > > > - Accept maximum number of queues as sysctl param so that any user space > > application like libvirt can use this value to limit number of queues. > > Also > > A

RE: [PATCH V4 3/3] perf tool: Add sort key symoff for perf diff

2014-11-19 Thread Liang, Kan
> > Em Tue, Nov 18, 2014 at 11:38:20AM -0500, kan.li...@intel.com escreveu: > > From: Kan Liang > > > > Sometime, especially debugging scaling issue, the function level diff > > may be high granularity. The user may want to do deeper diff analysis > > for some cache or lock issue. The "symoff"

Re: [PATCH 3.17 00/25] 3.17.1-stable review

2014-11-19 Thread Greg Kroah-Hartman
On Wed, Nov 19, 2014 at 12:35:12PM -0800, Paul E. McKenney wrote: > On Wed, Nov 19, 2014 at 12:16:48PM -0800, Greg Kroah-Hartman wrote: > > On Wed, Nov 19, 2014 at 11:44:14AM -0800, Paul E. McKenney wrote: > > > On Wed, Nov 19, 2014 at 09:22:35AM -0800, Greg Kroah-Hartman wrote: > > > > On Mon, Oct

Re: [PATCH V3 0/8] xen: Switch to virtual mapped linear p2m list

2014-11-19 Thread Konrad Rzeszutek Wilk
On Tue, Nov 11, 2014 at 06:43:38AM +0100, Juergen Gross wrote: > Paravirtualized kernels running on Xen use a three level tree for > translation of guest specific physical addresses to machine global > addresses. This p2m tree is used for construction of page table > entries, so the p2m tree walk i

Re: [PATCH] platform: x86: dell-laptop: Add support for keyboard backlight

2014-11-19 Thread Pali Rohár
Hello, I removed other lines so mail is not too long. On Wednesday 19 November 2014 19:34:16 Darren Hart wrote: > > +static int kbd_get_info(struct kbd_info *info) > > +{ > > + u8 units; > > + int ret; > > + > > + get_buffer(); > > + > > + buffer->input[0] = 0x0; > > + dell_send_request

Re: [RFC] situation with csum_and_copy_... API

2014-11-19 Thread Linus Torvalds
On Wed, Nov 19, 2014 at 12:31 PM, David Miller wrote: > > But that is just my opinion, and yes I do acknowledge that we've had > serious holes in this area in the past. The serious holes have generally been exactly in the "upper layers already check" camp, and then it turns out that some odd ioct

Re: [PATCH V3 8/8] xen: Speed up set_phys_to_machine() by using read-only mappings

2014-11-19 Thread Konrad Rzeszutek Wilk
On Tue, Nov 11, 2014 at 06:43:46AM +0100, Juergen Gross wrote: > Instead of checking at each call of set_phys_to_machine() whether a > new p2m page has to be allocated due to writing an entry in a large > invalid or identity area, just map those areas read only and react > to a page fault on write

Re: [Xen-devel] [PATCH V3 7/8] xen: switch to linear virtual mapped sparse p2m list

2014-11-19 Thread Konrad Rzeszutek Wilk
On Thu, Nov 13, 2014 at 10:21:01AM +0100, Juergen Gross wrote: > On 11/11/2014 06:47 PM, David Vrabel wrote: > >On 11/11/14 05:43, Juergen Gross wrote: > >>At start of the day the Xen hypervisor presents a contiguous mfn list > >>to a pv-domain. In order to support sparse memory this mfn list is >

Re: [PATCH V3 7/8] xen: switch to linear virtual mapped sparse p2m list

2014-11-19 Thread Konrad Rzeszutek Wilk
On Tue, Nov 11, 2014 at 06:43:45AM +0100, Juergen Gross wrote: > At start of the day the Xen hypervisor presents a contiguous mfn list > to a pv-domain. In order to support sparse memory this mfn list is > accessed via a three level p2m tree built early in the boot process. > Whenever the system ne

Re: [PATCHv2 2/3] kernel: add support for live patching

2014-11-19 Thread Seth Jennings
On Tue, Nov 18, 2014 at 03:45:22PM +0100, Miroslav Benes wrote: > > On Sun, 16 Nov 2014, Seth Jennings wrote: > > [...] > > > diff --git a/include/linux/livepatch.h b/include/linux/livepatch.h > > new file mode 100644 > > index 000..8b68fef > > --- /dev/null > > +++ b/include/linux/livepatch

Re: [PATCH 3.17 00/25] 3.17.1-stable review

2014-11-19 Thread Paul E. McKenney
On Wed, Nov 19, 2014 at 12:16:48PM -0800, Greg Kroah-Hartman wrote: > On Wed, Nov 19, 2014 at 11:44:14AM -0800, Paul E. McKenney wrote: > > On Wed, Nov 19, 2014 at 09:22:35AM -0800, Greg Kroah-Hartman wrote: > > > On Mon, Oct 13, 2014 at 08:23:19AM -0500, Chuck Ebbert wrote: > > > > On Mon, 13 Oct

[PATCH 1/1] bcache: Deletion of an unnecessary check before the function call "kobject_put"

2014-11-19 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 19 Nov 2014 21:25:39 +0100 The kobject_put() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drive

Re: [ovs-dev] [PATCH net] openvswitch: Fix mask generation for IPv6 labels.

2014-11-19 Thread Pravin Shelar
On Wed, Nov 19, 2014 at 11:51 AM, Joe Stringer wrote: > On Wednesday, November 19, 2014 11:08:35 Pravin Shelar wrote: >> On Wed, Nov 19, 2014 at 9:48 AM, Joe Stringer > wrote: >> > On Wednesday, November 19, 2014 00:11:01 Pravin Shelar wrote: >> >> On Tue, Nov 18, 2014 at 11:25 PM, Joe Stringer

Re: [RFC] situation with csum_and_copy_... API

2014-11-19 Thread David Miller
From: Al Viro Date: Tue, 18 Nov 2014 21:23:07 + > On Tue, Nov 18, 2014 at 12:49:13PM -0800, Linus Torvalds wrote: >> "access_ok()" isn't that expensive, and removing them as unnecessary >> is fraught with errors. We've had several cases of "oops, we used >> __get_user() in a loop, because it

Re: sparc: Clashing values for O_PATH and FMODE_NONOTIFY?

2014-11-19 Thread David Miller
From: David Drysdale Date: Tue, 18 Nov 2014 13:13:51 + > Hi folks, > > It looks like the value for O_PATH on sparc: > > arch/sparc/include/uapi/asm/fcntl.h:37:#define O_PATH 0x100 > > clashes with the arch-independent value for __FMODE_NONOTIFY: > > include/linux/fs.h:137:#define

Re: [PATCH 1/1] netlink: Deletion of an unnecessary check before the function call "__module_get"

2014-11-19 Thread David Miller
From: SF Markus Elfring Date: Tue, 18 Nov 2014 21:08:39 +0100 > From: Markus Elfring > Date: Tue, 18 Nov 2014 21:03:13 +0100 > > The __module_get() function tests whether its argument is NULL and then > returns immediately. Thus the test around the call is not needed. > > This issue was detect

Re: [patches][RFC] situation with csum_and_copy_... API

2014-11-19 Thread David Miller
From: Al Viro Date: Tue, 18 Nov 2014 19:40:53 + > On Tue, Nov 18, 2014 at 08:47:45AM +, Al Viro wrote: > >> I do have a patch doing just that; the question is what to do with >> csum-and-copy >> primitives. Originally I planned to simply strip those access_ok() from >> those >> (both

Re: [PATCH 1/3] intel_pstate: skip the driver if Sun server has ACPI _PPC method

2014-11-19 Thread Linda Knippers
On 11/18/2014 3:37 AM, Ethan Zhao wrote: > Oracle Sun X86 servers have dynamic power capping capability that works via > ACPI _PPC method etc, so skip loading this driver if Sun server has ACPI _PPC > enabled. > > Signed-off-by: Ethan Zhao > --- > drivers/cpufreq/intel_pstate.c | 20

Re: BUG in scsi_lib.c due to a bad commit

2014-11-19 Thread Barto
Hello, I solved the mystery, I found that the element who triggers the bug ( random hang at boot with kernel 3.17 and 3.18 ) is the combination of 3 elements : - the use of a SATA DVD burner ( Liteon iHAS124 C ) on a ICH7 Sata controler - the use of a gigabyte motherboard GA-P31-DSL3 ( bios F10A

Re: [PATCH 3.17 00/25] 3.17.1-stable review

2014-11-19 Thread Holger Hoffstätte
On Wed, 19 Nov 2014 11:44:14 -0800, Paul E. McKenney wrote: > On Wed, Nov 19, 2014 at 09:22:35AM -0800, Greg Kroah-Hartman wrote: >> >> Doesn't build in 3.17 properly :( > > Older kernels can use rcu_note_context_switch() instead of > rcu_note_voluntary_context_switch(), which didn't show up unt

Re: [PATCH 1/1] net: pktgen: Deletion of an unnecessary check before the function call "proc_remove"

2014-11-19 Thread David Miller
From: SF Markus Elfring Date: Tue, 18 Nov 2014 20:16:05 +0100 > From: Markus Elfring > Date: Tue, 18 Nov 2014 20:10:34 +0100 > > The proc_remove() function tests whether its argument is NULL and then > returns immediately. Thus the test around the call is not needed. > > This issue was detecte

Re: [PATCH net] openvswitch: Fix mask generation for IPv6 labels.

2014-11-19 Thread David Miller
From: Joe Stringer Date: Tue, 18 Nov 2014 10:54:17 -0800 > When userspace doesn't provide a mask, OVS datapath generates a fully > unwildcarded mask for the flow. This is done by taking a copy of the > flow key, then iterating across its attributes, setting all values to > 0xff. This works for mo

Re: [PATCH v2] usbnet: rtl8150: remove unused variable

2014-11-19 Thread David Miller
From: Sudip Mukherjee Date: Tue, 18 Nov 2014 21:55:21 +0530 > remove unused variable > > Signed-off-by: Sudip Mukherjee > --- > > change in v2: changed the commit message Applied, thank you. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH 3.17 00/25] 3.17.1-stable review

2014-11-19 Thread Greg Kroah-Hartman
On Wed, Nov 19, 2014 at 11:44:14AM -0800, Paul E. McKenney wrote: > On Wed, Nov 19, 2014 at 09:22:35AM -0800, Greg Kroah-Hartman wrote: > > On Mon, Oct 13, 2014 at 08:23:19AM -0500, Chuck Ebbert wrote: > > > On Mon, 13 Oct 2014 08:28:35 -0300 > > > Henrique de Moraes Holschuh wrote: > > > > > > >

Re: [PATCH net-net 0/4] Increase the limit of tuntap queues

2014-11-19 Thread David Miller
From: Pankaj Gupta Date: Tue, 18 Nov 2014 21:52:54 +0530 > - Accept maximum number of queues as sysctl param so that any user space > application like libvirt can use this value to limit number of queues. Also > Administrators can specify maximum number of queues by updating this sysctl >

Re: [PATCH] platform: x86: dell-laptop: Add support for keyboard backlight

2014-11-19 Thread Darren Hart
On Wed, Nov 19, 2014 at 08:51:28PM +0100, Pali Rohár wrote: > On Wednesday 19 November 2014 20:23:36 Matthew Garrett wrote: > > On Wed, Nov 19, 2014 at 10:34:16AM -0800, Darren Hart wrote: > > > I'm somewhat concerned that this patch doubles the size of > > > this driver. When we're adding this muc

[PATCH 1/1] mISDN: Deletion of unnecessary checks before the function call "vfree"

2014-11-19 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 19 Nov 2014 20:48:26 +0100 The vfree() function performs also input parameter validation. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/isdn/mISDN/l1oip_codec.c |

Re: [PATCH net-next] tun: return NET_XMIT_DROP for dropped packets

2014-11-19 Thread Cong Wang
On Wed, Nov 19, 2014 at 11:46 AM, David Miller wrote: > > Often the issue with TX return values is lack of clear documentation > and use cases. > NET_XMIT_* are marked as qdisc ->enqueue() return codes in include/linux/netdevice.h, and are indeed used mostly by qdisc: $ git grep NET_XMIT_ -- net

Re: [ovs-dev] [PATCH net] openvswitch: Fix mask generation for IPv6 labels.

2014-11-19 Thread Joe Stringer
On Wednesday, November 19, 2014 11:08:35 Pravin Shelar wrote: > On Wed, Nov 19, 2014 at 9:48 AM, Joe Stringer wrote: > > On Wednesday, November 19, 2014 00:11:01 Pravin Shelar wrote: > >> On Tue, Nov 18, 2014 at 11:25 PM, Joe Stringer > > > > wrote: > >> > On 18 November 2014 22:09, Pravin Shel

Re: [PATCH] platform: x86: dell-laptop: Add support for keyboard backlight

2014-11-19 Thread Pali Rohár
On Wednesday 19 November 2014 20:23:36 Matthew Garrett wrote: > On Wed, Nov 19, 2014 at 10:34:16AM -0800, Darren Hart wrote: > > I'm somewhat concerned that this patch doubles the size of > > this driver. When we're adding this much code, I have to > > ask - does it make sense to grow this driver r

Re: [PATCH] mmc: dw_mmc: Turn the card clock off at suspend time

2014-11-19 Thread Andrew Bresticker
Doug, On Wed, Nov 19, 2014 at 11:30 AM, Doug Anderson wrote: > Andrew, > > On Wed, Nov 19, 2014 at 11:03 AM, Andrew Bresticker > wrote: >> Doug, >> >> On Wed, Nov 19, 2014 at 10:51 AM, Doug Anderson >> wrote: >>> Since the dw_mmc driver was first added to Linux it's had a TODO in it >>> that w

Re: [PATCH net-next] tun: return NET_XMIT_DROP for dropped packets

2014-11-19 Thread David Miller
From: Jason Wang Date: Wed, 19 Nov 2014 11:15:36 +0800 > On 11/19/2014 03:53 AM, Cong Wang wrote: >> On Mon, Nov 17, 2014 at 9:20 PM, Jason Wang wrote: >>> > After commit 5d097109257c03a71845729f8db6b5770c4bbedc >>> > ("tun: only queue packets on device"), NETDEV_TX_OK was returned for >>> > dro

Re: [PATCH V3 2/8] xen: Delay remapping memory of pv-domain

2014-11-19 Thread Konrad Rzeszutek Wilk
On Fri, Nov 14, 2014 at 06:14:06PM +0100, Juergen Gross wrote: > On 11/14/2014 05:47 PM, Konrad Rzeszutek Wilk wrote: > >On Fri, Nov 14, 2014 at 05:53:19AM +0100, Juergen Gross wrote: > >>On 11/13/2014 08:56 PM, Konrad Rzeszutek Wilk wrote: > >>+ mfn_save = virt_to_mfn(buf); > >>+ > >

Re: [PATCH 3.17 00/25] 3.17.1-stable review

2014-11-19 Thread Paul E. McKenney
On Wed, Nov 19, 2014 at 09:22:35AM -0800, Greg Kroah-Hartman wrote: > On Mon, Oct 13, 2014 at 08:23:19AM -0500, Chuck Ebbert wrote: > > On Mon, 13 Oct 2014 08:28:35 -0300 > > Henrique de Moraes Holschuh wrote: > > > > > On Mon, 13 Oct 2014, Greg Kroah-Hartman wrote: > > > > This is the start of t

Re: [PATCH v3 3/3] sched, x86: Check that we're on the right stack in schedule and __might_sleep

2014-11-19 Thread Linus Torvalds
On Wed, Nov 19, 2014 at 11:29 AM, Andi Kleen wrote: > > The exception handlers which use the IST stacks don't necessarily > set irq count. Maybe they should. Hmm. I think they should. Since they clearly must not schedule, as they use a percpu stack. Which exceptions use IST? [ grep grep ] Look

Re: frequent lockups in 3.18rc4

2014-11-19 Thread Linus Torvalds
On Wed, Nov 19, 2014 at 11:15 AM, Andy Lutomirski wrote: > > I suspect that the regression was triggered by the seccomp pull, since > that reworked a lot of this code. Note that it turns out that Dave can apparently see the same problems with 3.17, so it's not actually a regression. So it may hav

[PATCH v2] mmc: dw_mmc: Turn the card clock off at suspend time

2014-11-19 Thread Doug Anderson
Since the dw_mmc driver was first added to Linux it's had a TODO in it that we should turn off the card clock during suspend. I have no idea for sure why it wasn't done originally, but if I had to guess I'd guess it was related to the lack of a common clock framework. Let's do it now. There is n

Re: [PATCH v3 3/3] sched, x86: Check that we're on the right stack in schedule and __might_sleep

2014-11-19 Thread Andi Kleen
On Wed, Nov 19, 2014 at 10:40:10AM -0800, Linus Torvalds wrote: > On Tue, Nov 18, 2014 at 3:15 PM, Andy Lutomirski wrote: > > On x86, sleeping while on an IST or irq stack has a surprisingly > > good chance of working, but it can also fail dramatically. Add an > > arch hook to allow schedule and

Re: [PATCH] mmc: dw_mmc: Turn the card clock off at suspend time

2014-11-19 Thread Doug Anderson
Andrew, On Wed, Nov 19, 2014 at 11:03 AM, Andrew Bresticker wrote: > Doug, > > On Wed, Nov 19, 2014 at 10:51 AM, Doug Anderson wrote: >> Since the dw_mmc driver was first added to Linux it's had a TODO in it >> that we should turn off the card clock during suspend. I have no idea >> for sure wh

Re: Re: [PATCH v2] usb: dwc2: resume root hub when device detect with suspend state

2014-11-19 Thread Julius Werner
On Wed, Nov 19, 2014 at 1:47 AM, 李云志 wrote: > hi Julius & Alan > > Shall we use dwc2's private status "hsotg->lx_state" here instesd of > "hcd->state" for checking root hub is in suspend state ? > I see the EHCI driver do something like this(ehci->rh_state == > EHCI_RH_SUSPENDED) before resume

Re: [PATCH] platform: x86: dell-laptop: Add support for keyboard backlight

2014-11-19 Thread Matthew Garrett
On Wed, Nov 19, 2014 at 10:34:16AM -0800, Darren Hart wrote: > I'm somewhat concerned that this patch doubles the size of this driver. When > we're adding this much code, I have to ask - does it make sense to grow this > driver rather than create a new one? There'd be a fair amount of code duplic

Re: [git pull] Input updates for 3.18-rc4

2014-11-19 Thread Marcus Overhagen
Hi Dmitry, luckily I found some time right now. I haven't reverted the original large patch, but I tested your short patch and it fixes the problem for me. regards Marcus On Wed, Nov 19, 2014 at 7:39 PM, Dmitry Torokhov wrote: > On Wed, Nov 19, 2014 at 07:20:21PM +0100, Marcus Overhagen wrote:

Re: [PATCH v3 3/3] sched, x86: Check that we're on the right stack in schedule and __might_sleep

2014-11-19 Thread Andy Lutomirski
On Wed, Nov 19, 2014 at 10:40 AM, Linus Torvalds wrote: > On Tue, Nov 18, 2014 at 3:15 PM, Andy Lutomirski wrote: >> On x86, sleeping while on an IST or irq stack has a surprisingly >> good chance of working, but it can also fail dramatically. Add an >> arch hook to allow schedule and __might_sl

Re: [PATCH] platform: x86: dell-laptop: Add support for keyboard backlight

2014-11-19 Thread Darren Hart
On Fri, Nov 14, 2014 at 01:23:33PM +0100, Pali Rohár wrote: > This patch adds support for configuring keyboard backlight settings on > supported > Dell laptops. It exports kernel leds interface and uses Dell SMBIOS tokens or > keyboard class interface. > > With this patch it is possible to set: >

Re: frequent lockups in 3.18rc4

2014-11-19 Thread Andy Lutomirski
On Wed, Nov 19, 2014 at 9:22 AM, Linus Torvalds wrote: > On Wed, Nov 19, 2014 at 6:59 AM, Dave Jones wrote: >> On Tue, Nov 18, 2014 at 08:40:55PM -0800, Linus Torvalds wrote: >> > >> > That makes me wonder: does the problem go away if you disable NOHZ? >> >> Aparently not. >> >> NMI watchdog: B

Re: [PATCH 2/2] KEYS: request_key() should reget expired keys rather than give EKEYEXPIRED

2014-11-19 Thread Chuck Lever
On Nov 19, 2014, at 7:22 AM, David Howells wrote: > Since the keyring facility can be viewed as a cache (at least in some > applications), the local expiration time on the key should probably be viewed > as a 'needs updating after this time' property rather than an absolute 'anyone > now wanting

Re: rcu warning caused by [sched: Fix race between task_group and sched_task_group]

2014-11-19 Thread Josh Boyer
On Wed, Nov 19, 2014 at 2:08 PM, Paul E. McKenney wrote: > On Wed, Nov 19, 2014 at 11:09:46AM +0100, Heiko Carstens wrote: >> Hi Kirill, >> >> the problem below has already been reported here: >> https://lkml.org/lkml/2014/11/11/505 >> >> but seems there is still no fix available upstream? >> Woul

Re: [PATCH 2/2] pinctrl: rockchip: Fix enable/disable/mask/unmask

2014-11-19 Thread Heiko Stübner
Am Dienstag, 18. November 2014, 15:49:56 schrieb Doug Anderson: > The Rockchip pinctrl driver was only implementing the "mask" and > "unmask" operations though the hardware actually has two distinct > things: enable/disable and mask/unmask. It was implementing the > "mask" operations as a hardware

Re: [PATCH 1/3] genirq: Allow the irqchip state of an IRQ to be save/restored

2014-11-19 Thread Bjorn Andersson
On Mon, Oct 27, 2014 at 4:47 AM, Marc Zyngier wrote: [...] > > Agreed, this makes a lot of sense. Will respin it. > Any update on this? I have a couple of drivers on the way that needs this (querying level of an interrupt line). Regards, Bjorn -- To unsubscribe from this list: send the line "uns

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