[PATCH 04/12] efi: Enable secure boot lockdown automatically when enabled in firmware

2013-03-18 Thread Matthew Garrett
The firmware has a set of flags that indicate whether secure boot is enabled and enforcing. Use them to indicate whether the kernel should lock itself down. We also indicate the machine is in secure boot mode by adding the EFI_SECURE_BOOT bit for use with efi_enabled. Signed-off-by: Matthew Garre

[PATCH] drivers: regulator: Use PTR_RET function

2013-03-18 Thread Alexandru Gheorghiu
Used PTR_RET function instead of IS_ERR and PTR_ERR. Patch found using coccinelle. Signed-off-by: Alexandru Gheorghiu --- drivers/regulator/fan53555.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/regulator/fan53555.c b/drivers/regulator/fan53555.c index 9165b

[PATCH tip/core/rcu 0/15] v3 RCU idle/no-CB changes for 3.10

2013-03-18 Thread Paul E. McKenney
Hello! This series contains changes to RCU_FAST_NO_HZ idle entry/exit and also removes restrictions on no-CBs CPUs. 1. Remove restrictions on no-CBs CPUs. 2. Allow some control of no-CBs CPUs at kernel-build time. The option of most interest is probably the one that makes -all-

Re: [PULL] vhost: tcm_vhost fixes for 3.9

2013-03-18 Thread Nicholas A. Bellinger
On Mon, 2013-03-18 at 23:14 +0200, Michael S. Tsirkin wrote: > On Mon, Mar 18, 2013 at 02:10:03PM -0700, Nicholas A. Bellinger wrote: > > On Mon, 2013-03-18 at 21:54 +0200, Michael S. Tsirkin wrote: > > > On Mon, Mar 18, 2013 at 01:01:36PM -0400, David Miller wrote: > > > > From: "Michael S. Tsirki

[PATCH tip/core/rcu 10/15] rcu: Rearrange locking in rcu_start_gp()

2013-03-18 Thread Paul E. McKenney
From: "Paul E. McKenney" If CPUs are to give prior notice of needed grace periods, it will be necessary to invoke rcu_start_gp() without dropping the root rcu_node structure's ->lock. This commit takes a first step in this direction by moving the release of this lock to the end of rcu_start_gp()

[PATCH tip/core/rcu 14/15] rcu: Abstract rcu_start_future_gp() from rcu_nocb_wait_gp()

2013-03-18 Thread Paul E. McKenney
From: "Paul E. McKenney" CPUs going idle will need to record the need for a future grace period, but won't actually need to block waiting on it. This commit therefore splits rcu_start_future_gp(), which does the recording, from rcu_nocb_wait_gp(), which now invokes rcu_start_future_gp() to do th

[PATCH tip/core/rcu 13/15] rcu: Rename n_nocb_gp_requests to need_future_gp

2013-03-18 Thread Paul E. McKenney
From: "Paul E. McKenney" CPUs going idle need to be able to indicate their need for future grace periods. A mechanism for doing this already exists for no-callbacks CPUs, so the idea is to re-use that mechanism. This commit therefore moves the ->n_nocb_gp_requests field of the rcu_node structur

[PATCH tip/core/rcu 11/15] rcu: Repurpose no-CBs event tracing to future-GP events

2013-03-18 Thread Paul E. McKenney
From: "Paul E. McKenney" Dyntick-idle CPUs need to be able to pre-announce their need for grace periods. This can be done using something similar to the mechanism used by no-CB CPUs to announce their need for grace periods. This commit moves in this direction by renaming the no-CBs grace-period

[PATCH tip/core/rcu 08/15] rcu: Accelerate RCU callbacks at grace-period end

2013-03-18 Thread Paul E. McKenney
From: "Paul E. McKenney" Now that callback acceleration is idempotent, it is safe to accelerate callbacks during grace-period cleanup on any CPUs that the kthread happens to be running on. This commit therefore propagates the completion of the grace period to the per-CPU data structures, and als

[PATCH tip/core/rcu 05/15] rcu: Add event tracing for no-CBs CPUs' grace periods

2013-03-18 Thread Paul E. McKenney
From: "Paul E. McKenney" Signed-off-by: Paul E. McKenney Signed-off-by: Paul E. McKenney --- include/trace/events/rcu.h | 55 ++ kernel/rcutree_plugin.h| 30 + 2 files changed, 85 insertions(+) diff --git a/include/trace/

Re: linux-next: Tree for Mar 18 (mtdcore)

2013-03-18 Thread Randy Dunlap
On 03/17/13 22:18, Stephen Rothwell wrote: > Hi all, > > Changes since 20130315: > when CONFIG_PROC_FS is not enabled: CC [M] drivers/mtd/mtdcore.o drivers/mtd/mtdcore.c: In function 'init_mtd': drivers/mtd/mtdcore.c:1183:2: error: 'proc_mtd' undeclared (first use in this function) drivers

[PATCH 12/12] kexec: Require CAP_SYS_COMPROMISE_KERNEL

2013-03-18 Thread Matthew Garrett
kexec can easily be used to modify the security policy of a running kernel. CONFIG_KEXEC_JUMP makes it trivial for an attacker to simply jump to another kernel, modify the security policy of the previous kernel and then switch back, but it's still merely a matter of difficulty. Long term we'll want

[PATCH 11/12] x86: Require CAP_COMPROMISE_KERNEL for MSR writing

2013-03-18 Thread Matthew Garrett
From: Kees Cook Writing to MSRs should not be allowed unless CAP_COMPROMISE_KERNEL is set since it could lead to execution of arbitrary code in kernel mode. Signed-off-by: Kees Cook Signed-off-by: Matthew Garrett --- arch/x86/kernel/msr.c | 7 +++ 1 file changed, 7 insertions(+) diff --g

[PATCH tip/core/rcu 15/15] rcu: Make rcu_accelerate_cbs() note need for future grace periods

2013-03-18 Thread Paul E. McKenney
From: "Paul E. McKenney" Now that rcu_start_future_gp() has been abstracted from rcu_nocb_wait_gp(), rcu_accelerate_cbs() can invoke rcu_start_future_gp() so as to register the need for any future grace periods needed by a CPU about to enter dyntick-idle mode. This commit makes this change. Note

[PATCH tip/core/rcu 12/15] rcu: Push lock release to rcu_start_gp()'s callers

2013-03-18 Thread Paul E. McKenney
From: "Paul E. McKenney" If CPUs are to give prior notice of needed grace periods, it will be necessary to invoke rcu_start_gp() without dropping the root rcu_node structure's ->lock. This commit takes a second step in this direction by moving the release of this lock to rcu_start_gp()'s callers

[PATCH tip/core/rcu 03/15] rcu: Introduce proper blocking to no-CBs kthreads GP waits

2013-03-18 Thread Paul E. McKenney
From: "Paul E. McKenney" Currently, the no-CBs kthreads do repeated timed waits for grace periods to elapse. This is crude and energy inefficient, so this commit allows no-CBs kthreads to specify exactly which grace period they are waiting for and also allows them to block for the entire duratio

[PATCH tip/core/rcu 07/15] rcu: Export RCU_FAST_NO_HZ parameters to sysfs

2013-03-18 Thread Paul E. McKenney
From: "Paul E. McKenney" RCU_FAST_NO_HZ operation is controlled by four compile-time C-preprocessor macros, but some use cases benefit greatly from runtime adjustment, particularly when tuning devices. This commit therefore creates the corresponding sysfs entries. Reported-by: Robin Randhawa S

RFC (v2): Intel QST sensor driver

2013-03-18 Thread Simon J. Rowe
Hello, I've made changes to my driver for the Intel Quiet System Technology (QST) function that I posted at the end of last year and would again appreciate feedback on it. As before the git repo can be found here: http://mose.dyndns.org/mei.git Changes from v1 --- The module

[PATCH tip/core/rcu 09/15] rcu: Make RCU_FAST_NO_HZ take advantage of numbered callbacks

2013-03-18 Thread Paul E. McKenney
From: "Paul E. McKenney" Because RCU callbacks are now associated with the number of the grace period that they must wait for, CPUs can now take advance callbacks corresponding to grace periods that ended while a given CPU was in dyntick-idle mode. This eliminates the need to try forcing the RCU

[PATCH tip/core/rcu 01/15] rcu: Remove restrictions on no-CBs CPUs

2013-03-18 Thread Paul E. McKenney
From: "Paul E. McKenney" Currently, CPU 0 is constrained to not be a no-CBs CPU, and furthermore at least one no-CBs CPU must remain online at any given time. These restrictions are problematic in some situations, such as cases where all CPUs must run a real-time workload that needs to be insula

[PATCH tip/core/rcu 02/15] rcu: Provide compile-time control for no-CBs CPUs

2013-03-18 Thread Paul E. McKenney
From: "Paul E. McKenney" Currently, the only way to specify no-CBs CPUs is via the rcu_nocbs kernel command-line parameter. This is inconvenient in some cases, particularly for randconfig testing, so this commit adds a new set of kernel configuration parameters. CONFIG_RCU_NOCB_CPU_NONE (the de

[PATCH tip/core/rcu 06/15] rcu: Distinguish "rcuo" kthreads by RCU flavor

2013-03-18 Thread Paul E. McKenney
From: "Paul E. McKenney" Currently, the per-no-CBs-CPU kthreads are named "rcuo" followed by the CPU number, for example, "rcuo". This is problematic given that there are either two or three RCU flavors, each of which gets a per-CPU kthread with exactly the same name. This commit therefore intr

[ 49/75] kbuild: fix make headers_check with make 3.80

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Sam Ravnborg commit c4619bc6fa5149a6ab39be845a39142b6a996ea5 upstream. Commit 10b63956 ("UAPI: Plumb the UAPI Kbuilds into the user header installation and checking") introduced a dependency of

[ 62/75] tun: add a missing nf_reset() in tun_net_xmit()

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit f8af75f3517a24838a36eb5797a1a3e60bf9e276 ] Dave reported following crash : general protection fault: [#1] SMP CPU 2 Pid: 25407, comm: qemu-kvm Not tainted

[ 61/75] tcp: fix double-counted receiver RTT when leaving receiver fast path

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Neal Cardwell [ Upstream commit aab2b4bf224ef8358d262f95b568b8ad0cecf0a0 ] We should not update ts_recent and call tcp_rcv_rtt_measure_ts() both before and after going to step5. That wastes CP

[ 63/75] vxlan: fix oops when delete netns containing vxlan

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Zang MingJie [ Upstream commit 9cb6cb7ed11cd3b69c47bb414983603a6ff20b1d ] The following script will produce a kernel oops: sudo ip netns add v sudo ip netns exec v ip ad add 127.0.0.1

[ 59/75] rds: limit the size allocated by rds_message_alloc()

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Cong Wang [ Upstream commit ece6b0a2b25652d684a7ced4ae680a863af041e0 ] Dave Jones reported the following bug: "When fed mangled socket data, rds will trust what userspace gives it, and tries

[ 60/75] net: ipv6: Dont purge default router if accept_ra=2

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Lorenzo Colitti [ Upstream commit 3e8b0ac3e41e3c88a5522d5df7212438ab51 ] Setting net.ipv6.conf..accept_ra=2 causes the kernel to accept RAs even when forwarding is enabled. However, enabli

[ 03/48] virtio: rng: disallow multiple device registrations, fixes crashes

2013-03-18 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Amit Shah commit e84e7a56a3aa2963db506299e29a5f3f09377f9b upstream. The code currently only supports one virtio-rng device at a time. Invoking guests with multiple devices causes the guest to b

[ 02/48] xen/pciback: Dont disable a PCI device that is already disabled.

2013-03-18 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Konrad Rzeszutek Wilk commit bdc5c1812cea6efe1aaefb3131fcba28cd0b2b68 upstream. While shuting down a HVM guest with pci devices passed through we get this: pciback :04:00.0: restoring conf

[ 01/48] qcaux: add Franklin U600

2013-03-18 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Dan Williams commit 2d90e63603ac235aecd7d20e234616e0682c8b1f upstream. 4 ports; AT/PPP is standard CDC-ACM. The other three (added by this patch) are QCDM/DIAG, possibly GPS, and unknown. Sig

[PATCH tip/core/rcu 04/15] rcu: Add event tracing for no-CBs CPUs' callback registration

2013-03-18 Thread Paul E. McKenney
From: "Paul E. McKenney" Signed-off-by: Paul E. McKenney Signed-off-by: Paul E. McKenney --- kernel/rcutree_plugin.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/kernel/rcutree_plugin.h b/kernel/rcutree_plugin.h index 90a1914..7225a5a 100644 --- a/kernel/rcutree_plugin.h +++ b/ke

[ 12/48] signal: always clear sa_restorer on execve

2013-03-18 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Kees Cook commit 2ca39528c01a933f6689cd6505ce65bd6d68a530 upstream. When the new signal handlers are set up, the location of sa_restorer is not cleared, leaking a parent process's address space

[ 10/48] USB: EHCI: dont check DMA values in QH overlays

2013-03-18 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Alan Stern commit feca7746d5d9e84b105a613b7f3b6ad00d327372 upstream. This patch (as1661) fixes a rather obscure bug in ehci-hcd. In a couple of places, the driver compares the DMA address stor

[ 16/48] TTY: do not reset masters packet mode

2013-03-18 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Jiri Slaby commit b81273a132177edd806476b953f6afeb17b786d5 upstream. Now that login from util-linux is forced to drop all references to a TTY which it wants to hangup (to reach reference count

[ 09/48] USB: storage: fix Huawei mode switching regression

2013-03-18 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Bjørn Mork commit ab4b71644a26d1ab92b987b2fd30e17c25e89f85 upstream. This reverts commit 200e0d99 ("USB: storage: optimize to match the Huawei USB storage devices and support new switch command

[ 08/48] usb: serial: Add Rigblaster Advantage to device table

2013-03-18 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Steve Conklin commit a57e82a18779ab8a5e5a1f5841cef937cf578913 upstream. The Rigblaster Advantage is an amateur radio interface sold by West Mountain Radio. It contains a cp210x serial interface

[ 07/48] USB: added support for Cinterions products AH6 and PLS8

2013-03-18 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Christian Schmiedl commit 1941138e1c024ecb5bd797d414928d3eb94d8662 upstream. add support for Cinterion's products AH6 and PLS8 by adding Product IDs and USB_DEVICE tuples. Signed-off-by: Chris

[ 05/48] USB: cdc-wdm: fix buffer overflow

2013-03-18 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Oliver Neukum commit c0f5ecee4e741667b2493c742b60b6218d40b3aa upstream. The buffer for responses must not overflow. If this would happen, set a flag, drop the data and return an error after use

[ 65/75] team: unsyc the devices addresses when port is removed

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Vlad Yasevich [ Upstream commit ba81276b1a5e3cf0674cb0e6d9525e5ae0c98695 ] When a team port is removed, unsync all devices addresses that may have been synched to the port devices. CC: Jiri P

[ 74/75] Revert "drm/i915: enable irqs earlier when resuming"

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- This reverts commit 31f14f4219d2a74b7a6d86c7798f49141b5eccbe which was commit 15239099d7a7a9ecdc1ccb5b187ae4cda5488ff9 upstream. It caused problems in the 3.8-stable series, but 3.9-rc is just fine. S

[ 73/75] 6lowpan: Fix endianness issue in is_addr_link_local().

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: YOSHIFUJI Hideaki [ Upstream commit 9026c4927254f5bea695cc3ef2e255280e6a3011 ] Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/iee

[ 71/75] rtnl: fix info leak on RTM_GETLINK request for VF devices

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Mathias Krause [ Upstream commit 84d73cd3fb142bf1298a8c13fd4ca50fd2432372 ] Initialize the mac address buffer with 0 as the driver specific function will probably not fill the whole buffer. In

[PATCH v6 2/2] mm: replace hardcoded 3% with admin_reserve_pages knob

2013-03-18 Thread Andrew Shewmaker
Add an admin_reserve_kbytes knob to allow admins to change the hardcoded memory reserve to something other than 3%, which may be multiple gigabytes on large memory systems. Only about 8MB is necessary to enable recovery in the default mode, and only a few hundred MB are required even when overcommi

[ 70/75] bridge: fix mdb info leaks

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Mathias Krause [ Upstream commit c085c49920b2f900ba716b4ca1c1a55ece9872cc ] The bridging code discloses heap and stack bytes via the RTM_GETMDB netlink interface and via the notify messages se

[ 69/75] ipv6: stop multicast forwarding to process interface scoped addresses

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Hannes Frederic Sowa [ Upstream commit ddf64354af4a702ee0b85d0a285ba74c7278a460 ] v2: a) used struct ipv6_addr_props v3: a) reverted changes for ipv6_addr_props v4: a) do not use __ipv6_addr

[ 68/75] bridging: fix rx_handlers return code

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Cristian Bercaru [ Upstream commit 3bc1b1add7a8484cc4a261c3e128dbe1528ce01f ] The frames for which rx_handlers return RX_HANDLER_CONSUMED are no longer counted as dropped. They are counted as

[ 67/75] netlabel: correctly list all the static label mappings

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Paul Moore [ Upstream commits 0c1233aba1e948c37f6dc7620cb7c253fcd71ce9 and a6a8fe950e1b8596bb06f2c89c3a1a4bf2011ba9 ] When we have a large number of static label mappings that spill across t

[ 66/75] macvlan: Set IFF_UNICAST_FLT flag to prevent unnecessary promisc mode.

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Vlad Yasevich [ Upstream commit 87ab7f6f2874f1115817e394a7ed2dea1c72549e ] Macvlan already supports hw address filters. Set the IFF_UNICAST_FLT so that it doesn't needlesly enter PROMISC mode

[ 75/75] Revert "drm/i915: reorder setup sequence to have irqs for output setup"

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- Revert commit 2a9810441fcc26cf3f006f015f8a62094fe57a90 which is commit 52d7ecedac3f96fb562cb482c139015372728638 upstream. This caused problems in 3.8-stable, but all is fine in 3.9-rc. Signed-off-by:

[ 55/75] loopdev: remove an user triggerable oops

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Guo Chao commit b1a6650406875b9097a032eed89af50682fe1160 upstream. When loopdev is built as module and we pass an invalid parameter, loop_init() will return directly without deregister misc dev

[ 64/75] bonding: fire NETDEV_RELEASE event only on 0 slaves

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Veaceslav Falico [ Upstream commit 80028ea1c0afc24d4ddeb8dd2a9992fff03616ca ] Currently, if we set up netconsole over bonding and release a slave, netconsole will stop logging on the whole bon

[ 58/75] atl1c: restore buffer state

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: "Huang, Xiong" [ Upstream commit 7cb08d7f3a5ea6131f4f243c2080530ac41cb293 ] in the previous commit : f1f220ea1dda078, the BUSY state of buffer is wrongly deleted. this patch just restore it.

[ 57/75] l2tp: Restore socket refcount when sendmsg succeeds

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Guillaume Nault [ Upstream commit 8b82547e33e85fc24d4d172a93c796de1fefa81a ] The sendmsg() syscall handler for PPPoL2TP doesn't decrease the socket reference counter after successful transmiss

[ 47/75] btrfs: use rcu_barrier() to wait for bdev puts at unmount

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Eric Sandeen commit bc178622d40d87e75abc131007342429c9b03351 upstream. Doing this would reliably fail with -EBUSY for me: # mount /dev/sdb2 /mnt/scratch; umount /mnt/scratch; mkfs.btrfs -f /de

[ 56/75] net/sctp: Validate parameter size for SCTP_GET_ASSOC_STATS

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Guenter Roeck commit 726bc6b092da4c093eb74d13c07184b18c1af0f1 upstream. Building sctp may fail with: In function ‘copy_from_user’, inlined from ‘sctp_getsockopt_assoc_stats’ at net/sc

[ 46/75] s390/mm: fix flush_tlb_kernel_range()

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Heiko Carstens commit f6a70a07079518280022286a1dceb797d12e1edf upstream. Our flush_tlb_kernel_range() implementation calls __tlb_flush_mm() with &init_mm as argument. __tlb_flush_mm() however w

[ 54/75] loopdev: fix a deadlock

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Guo Chao commit 5370019dc2d2c2ff90e95d181468071362934f3a upstream. bd_mutex and lo_ctl_mutex can be held in different order. Path #1: blkdev_open blkdev_get __blkdev_get (hold bd_mutex)

[ 53/75] block: use i_size_write() in bd_set_size()

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Guo Chao commit d646a02a9d44d1421f273ae3923d97b47b918176 upstream. blkdev_ioctl(GETBLKSIZE) uses i_size_read() to read size of block device. If we update block size directly, reader may see int

[PATCH v6 1/2] mm: limit growth of 3% hardcoded other user reserve

2013-03-18 Thread Andrew Shewmaker
Add user_reserve_kbytes knob. Limit the growth of the memory reserved for other user processes to min(3% current process size, user_reserve_pages). user_reserve_pages defaults to min(3% free pages, 128MB) I arrived at 128MB by taking the max VSZ of sshd, login, bash, and top ... then adding the

[ 52/75] net/mlx4_en: Disable RFS when running in SRIOV mode

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Amir Vadai commit a229e488ac3f904d06c20d8d3f47831db3c7a15a upstream. Commit 37706996 "mlx4_en: fix allocation of CPU affinity reverse-map" fixed a bug when mlx4_dev->caps.comp_pool is larger fr

[ 51/75] net/mlx4_en: Initialize RFS filters lock and list in init_netdev

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Amir Vadai commit 78fb2de711ec28997bf38bcf3e48e108e907be77 upstream. filters_lock might have been used while it was re-initialized. Moved filters_lock and filters_list initialization to init_ne

[ 34/75] w1-gpio: remove erroneous __exit and __exit_p()

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 01230551e7c2fb9a1c2519b356d703851049cbe0 upstream. Commit 8a1861d997 ("w1-gpio: Simplify & get rid of defines") changed (apparently unknowingly) the driver to a hotpluggable

[ 50/75] atmel_lcdfb: fix 16-bpp modes on older SOCs

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit a79eac7165ed62114e6ca197195aa5060a54f137 upstream. Fix regression introduced by commit 787f9fd23283 ("atmel_lcdfb: support 16bit BGR:565 mode, remove unsupported 15bit modes

[ 48/75] mtd: nand: reintroduce NAND_NO_READRDY as NAND_NEED_READRDY

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Brian Norris commit 5bc7c33ca93a285dcfe7b7fd64970f6314440ad1 upstream. This partially reverts commit 1696e6bc2ae83734e64e206ac99766ea19e9a14e ("mtd: nand: kill NAND_NO_READRDY"). In that patch

[ 14/75] staging: vt6656: Fix oops on resume from suspend.

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Malcolm Priestley commit 6987a6dabfc40222ef767f67b57212fe3a0225fb upstream. Remove usb_put_dev from vt6656_suspend and usb_get_dev from vt6566_resume. These are not normally in suspend/resume

[ 17/75] signal: always clear sa_restorer on execve

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Kees Cook commit 2ca39528c01a933f6689cd6505ce65bd6d68a530 upstream. When the new signal handlers are set up, the location of sa_restorer is not cleared, leaking a parent process's address space

[ 21/75] serial: 8250_pci: add support for another kind of NetMos Technology PCI 9835 Multi-I/O Controller

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Wang YanQing commit 8d2f8cd424ca0b99001f3ff4f5db87c4e525f366 upstream. 01:08.0 Communication controller: NetMos Technology PCI 9835 Multi-I/O Controller (rev 01) Subsystem: Device [100

[ 24/75] tty/serial: Add support for Altera serial port

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Ley Foon Tan commit e06c93cacb82dd147266fd1bdb2d0a0bd45ff2c1 upstream. Add support for Altera 8250/16550 compatible serial port. Signed-off-by: Ley Foon Tan Signed-off-by: Greg Kroah-Hartman

[ 33/75] hwmon: (lineage-pem) Add missing terminating entry for pem_[input|fan]_attributes

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Axel Lin commit df069079c153d22adf6c28dcc0b1cf62bba75167 upstream. Signed-off-by: Axel Lin Acked-by: Jean Delvare Signed-off-by: Guenter Roeck Signed-off-by: Greg Kroah-Hartman --- driver

[ 29/75] perf,x86: fix kernel crash with PEBS/BTS after suspend/resume

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Stephane Eranian commit 1d9d8639c063caf6efc2447f5f26aa637f844ff6 upstream. This patch fixes a kernel crash when using precise sampling (PEBS) after a suspend/resume. Turns out the CPU notifier

[ 23/75] tty: serial: fix typo "SERIAL_S3C2412"

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Paul Bolle commit c51d41a1dd8f23a06a4ed651ebb9617de7f59368 upstream. The Kconfig symbol SERIAL_S3C2412 got removed in commit da121506eb03ee5daea55404709110b798bd61d9 ("serial: samsung: merge pr

[ 38/75] powerpc: Make VSID_BITS* dependency explicit

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: "Aneesh Kumar K.V" commit e39d1a471484662620651cd9520250d33843f235 upstream. VSID_BITS and VSID_BITS_1T depends on the context bits and user esid bits. Make the dependency explicit Acked-by:

[ 04/48] USB: option: add Huawei E5331

2013-03-18 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Bjørn Mork commit daec90e7382cbd0e73eb6861109b3da91e5ab1f3 upstream. Another device using CDC ACM with vendor specific protocol to mark serial functions. Signed-off-by: Bjørn Mork Signed-off-

Re: [PATCH 1/2] teach argv_split() to handle the mutable strings

2013-03-18 Thread Andrew Morton
On Sat, 16 Mar 2013 21:23:53 +0100 Oleg Nesterov wrote: > argv_split() allocates argv[count_argc(str)] array and assumes that > it will find the same number of arguments later. This is obviously > wrong if this string can be changed, say, by sysctl. > > With this patch argv_split() kstrndup's th

Re: [PATCH 2/9] vfs: export do_splice_direct() to modules

2013-03-18 Thread Al Viro
On Mon, Mar 18, 2013 at 04:39:36PM +0100, Jan Kara wrote: > IMO the deadlock is real. In freeze_super() we wait for all writers to > the filesystem to finish while blocking beginning of any further writes. So > we have a deadlock scenario like: > > THREAD1 THREAD2

[ 42/75] selinux: use GFP_ATOMIC under spin_lock

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit 4502403dcf8f5c76abd4dbab8726c8e4ecb5cd34 upstream. The call tree here is: sk_clone_lock() <- takes bh_lock_sock(newsk); xfrm_sk_clone_policy() __xfrm_sk_clone

[ 41/75] ARM: davinci: edma: fix dmaengine induced null pointer dereference on da830

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Matt Porter commit 069552777a121eb39da29de4bc0383483dbe1f7e upstream. This adds additional error checking to the private edma api implementation to catch the case where the edma_alloc_slot() ha

[ 40/75] powerpc: Rename USER_ESID_BITS* to ESID_BITS*

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: "Aneesh Kumar K.V" commit af81d7878c641629f2693ae3fdaf74b4af14dfca upstream. Now we use ESID_BITS of kernel address to build proto vsid. So rename USER_ESIT_BITS to ESID_BITS Acked-by: Paul Ma

[ 39/75] powerpc: Update kernel VSID range

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: "Aneesh Kumar K.V" commit c60ac5693c47df32a2b4b18af97fca5635def015 upstream. This patch change the kernel VSID range so that we limit VSID_BITS to 37. This enables us to support 64TB with 65 bi

[ 37/75] powerpc: Fix cputable entry for 970MP rev 1.0

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Benjamin Herrenschmidt commit d63ac5f6cf31c8a83170a9509b350c1489a7262b upstream. Commit 44ae3ab3358e962039c36ad4ae461ae9fb29596c forgot to update the entry for the 970MP rev 1.0 processor when

[ 36/75] powerpc: Fix STAB initialization

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Benjamin Herrenschmidt commit 13938117a57f88a22f0df9722a5db7271fda85cd upstream. Commit f5339277eb8d3aed37f12a27988366f68ab68930 accidentally removed more than just iSeries bits and took out th

[ 45/75] s390: critical section cleanup vs. machine checks

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Martin Schwidefsky commit 6551fbdfd8b85d1ab5822ac98abb4fb449bcfae0 upstream. The current machine check code uses the registers stored by the machine in the lowcore at __LC_GPREGS_SAVE_AREA as t

[ 44/75] perf,x86: fix link failure for non-Intel configs

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: David Rientjes commit 6c4d3bc99b3341067775efd4d9d13cc8e655fd7c upstream. Commit 1d9d8639c063 ("perf,x86: fix kernel crash with PEBS/BTS after suspend/resume") introduces a link failure since pe

[ 32/75] hwmon: (pmbus/ltc2978) Fix temperature reporting

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Guenter Roeck commit 8c958c703ef8804093437959221951eaf0e1e664 upstream. On LTC2978, only READ_TEMPERATURE is supported. It reports the internal junction temperature. This register is unpaged.

[ 31/75] ARM: w1-gpio: fix erroneous gpio requests

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 2d798a3f20ae992b0b69a2b68c04ada397c32ed4 upstream. Fix regression introduced by commit d2323cf773 ("onewire: w1-gpio: add ext_pullup_enable pin in platform data") which adde

[ 30/75] ALSA: seq: Fix missing error handling in snd_seq_timer_open()

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 66efdc71d95887b652a742a5dae51fa834d71465 upstream. snd_seq_timer_open() didn't catch the whole error path but let through if the timer id is a slave. This may lead to Oops

[ 28/75] ARM: kirkwood: fix to retain gbe MAC addresses for DT kernels

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Hesselbarth commit 7bf5b408b419fc849578e6e9fbd221bf43638eb6 upstream. The ethernet controller used on kirkwood looses its MAC address register contents when the corresponding clock is

[ 27/75] Fix 4 port and add support for 8 port Unknown PCI serial port cards

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Scott Ashcroft commit d13402a4a944e72612a9ec5c9190e35717c02a9d upstream. I've managed to find an 8 port version of the card 4 port card which was discussed here: http://marc.info/?l=linux-ser

[ 26/75] TTY: do not reset masters packet mode

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Jiri Slaby commit b81273a132177edd806476b953f6afeb17b786d5 upstream. Now that login from util-linux is forced to drop all references to a TTY which it wants to hangup (to reach reference count

[ 25/75] TTY: disable debugging warning

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Jiri Slaby commit 34dcfb8479ab3c3669561eb9279284cb0eda2572 upstream. We added a warning to flush_to_ldisc to report cases when it is called with a NULL tty. It was for debugging purposes and it

[ 13/75] USB: EHCI: dont check DMA values in QH overlays

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Alan Stern commit feca7746d5d9e84b105a613b7f3b6ad00d327372 upstream. This patch (as1661) fixes a rather obscure bug in ehci-hcd. In a couple of places, the driver compares the DMA address stor

[ 22/75] tty: serial: fix typo "ARCH_S5P6450"

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Paul Bolle commit 827aa0d36d486f359808c8fb931cf7a71011a09d upstream. This could have been either ARCH_S5P64X0 or CPU_S5P6450. Looking at commit 2555e663b367b8d555e76023f4de3f6338c28d6c ("ARM: S

[ 20/75] serial: 8250: Keep 8250. module options functional after driver rename

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Josh Boyer commit f2b8dfd9e480c3db3bad0c25c590a5d11b31f4ef upstream. With commit 835d844d1 (8250_pnp: do pnp probe before legacy probe), the 8250 driver was renamed to 8250_core. This means an

[ 19/75] tty/8250_pnp: serial port detection regression since v3.7

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Sean Young commit 77e372a3d82e5e4878ce1962207edd766773cc76 upstream. The InsydeH2O BIOS (version dated 09/12/2011) has the following in its pnp resouces for its serial ports: $ cat /sys/bus/pn

[ 18/75] ext3: Fix format string issues

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Lars-Peter Clausen commit 8d0c2d10dd72c5292eda7a06231056a4c972e4cc upstream. ext3_msg() takes the printk prefix as the second parameter and the format string as the third parameter. Two callers

[ 16/75] qcserial: bind to DM/DIAG port on Gobi 1K devices

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Dan Williams commit 3f8bc5e4da29c7e05edeca6b475abb4fb01a5a13 upstream. Turns out we just need altsetting 1 and then we can talk to it. Signed-off-by: Dan Williams Signed-off-by: Greg Kroah-Ha

[ 15/75] staging: comedi: dt9812: use CR_CHAN() for channel number

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Ian Abbott commit 564c526a1bed5e42b5cd52cfe1752c4296ef17a6 upstream. As pointed out by Dan Carpenper in , the

[ 03/75] virtio: rng: disallow multiple device registrations, fixes crashes

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Amit Shah commit e84e7a56a3aa2963db506299e29a5f3f09377f9b upstream. The code currently only supports one virtio-rng device at a time. Invoking guests with multiple devices causes the guest to b

[ 12/75] USB: EHCI: work around silicon bug in Intels EHCI controllers

2013-03-18 Thread Greg Kroah-Hartman
3.8-stable review patch. If anyone has any objections, please let me know. -- From: Alan Stern commit 6402c796d3b4205d3d7296157956c5100a05d7d6 upstream. This patch (as1660) works around a hardware problem present in some (if not all) Intel EHCI controllers. After a QH has bee

<    2   3   4   5   6   7   8   9   10   >