[PATCH 260/270] fs/compat_ioctl.c: VIDEO_SET_SPU_PALETTE missing error check

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Kees Cook commit 12176503366885edd542389eed3aaf94be163fdb upstream. The compat ioctl for VIDEO_SET_SPU_PALETTE was missing an error check while converting ioctl arguments. This could lead

[PATCH 261/270] qmi_wwan/cdc_ether: move Novatel 551 and E362 to qmi_wwan

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Dan Williams commit f8295ec22cb0f1ee6849b862addbfa3ea9320755 upstream. These devices provide QMI and ethernet functionality via a standard CDC ethernet descriptor. But when driven by cdc_

Re: [PATCH v8 1/2] x86/kexec: add a new atomic notifier list for kdump

2012-11-26 Thread Gleb Natapov
On Mon, Nov 26, 2012 at 09:08:54AM -0600, Eric W. Biederman wrote: > Zhang Yanfei writes: > > > This patch adds an atomic notifier list named crash_notifier_list. > > Currently, when loading kvm-intel module, a notifier will be registered > > in the list to enable vmcss loaded on all cpus to be V

Re: [PATCH V2 Resend 3/4] workqueue: Schedule work on non-idle cpu instead of current one

2012-11-26 Thread Tejun Heo
Hello, Viresh. On Tue, Nov 06, 2012 at 04:08:45PM +0530, Viresh Kumar wrote: > Workqueues queues work on current cpu, if the caller haven't passed a > preferred > cpu. This may wake up an idle CPU, which is actually not required. > > This work can be processed by any CPU and so we must select a

[PATCH 252/270] ehci: fix Lucid nohandoff pci quirk to be more generic with BIOS versions

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Anisse Astier commit c323dc023b9501e5d09582ec7efd1d40a9001d99 upstream. BIOS vendors keep changing the BIOS versions. Only match the beginning of the string to match all Lucid tablets with

[PATCH 250/270] USB: mos7840: remove NULL-urb submission

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 28c3ae9a8cf45f439c9a0779ebd0256e2ae72813 upstream. The private int_urb is never allocated so the submission from the control completion handler will always fail. Remove

[PATCH 248/270] USB: mos7840: fix urb leak at release

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 65a4cdbb170e4ec1a7fa0e94936d47e24a17b0e8 upstream. Make sure control urb is freed at release. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman Signed-of

[PATCH 246/270] USB: sierra: fix memory leak in attach error path

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 7e41f9bcdd2e813ea2a3c40db291d87ea06b559f upstream. Make sure port private data is deallocated on errors in attach. Signed-off-by: Johan Hovold Signed-off-by: Greg Kro

[PATCH 243/270] USB: opticon: fix DMA from stack

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit ea0dbebffe118724cd4df7d9b071ea8ee48d48f0 upstream. Make sure to allocate the control-message buffer dynamically as some platforms cannot do DMA from stack. Note that o

[PATCH 241/270] USB: quatech2: fix memory leak in error path

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit b8a0055050b6294826171641b182c09f78f4cc63 upstream. Fix memory leak in attach error path where the read urb was never freed. Cc: Bill Pemberton Signed-off-by: Johan Ho

[PATCH 239/270] USB: metro-usb: fix io after disconnect

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 2ee44fbeac92c36e53779a57ee84cfee1affe418 upstream. Make sure no control urb is submitted during close after a disconnect by checking the disconnected flag. Signed-off-

[PATCH 238/270] vhost: fix mergeable bufs on BE hosts

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: "Michael S. Tsirkin" commit 910a578f7e9400a78a3b13aba0b4d2df16a2cb05 upstream. We copy head count to a 16 bit field, this works by chance on LE but on BE guest gets 0. Fix it up. Signed-o

[PATCH 237/270] sysfs: sysfs_pathname/sysfs_add_one: Use strlcat() instead of strcat()

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Geert Uytterhoeven commit 66081a72517a131430dcf986775f3268aafcb546 upstream. The warning check for duplicate sysfs entries can cause a buffer overflow when printing the warning, as strcat(

[PATCH 231/270] b43: Fix oops on unload when firmware not found

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Larry Finger commit f89ff6441df06abc2d95f3ef67525923032d6283 upstream. When b43 fails to find firmware when loaded, a subsequent unload will oops due to calling ieee80211_unregister_hw() w

[PATCH 233/270] x86, mm: Trim memory in memblock to be page aligned

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Yinghai Lu commit 6ede1fd3cb404c0016de6ac529df46d561bd558b upstream. We will not map partial pages, so need to make sure memblock allocation will not allocate those bytes out. Also we wil

[PATCH 228/270] ARM: at91: at91sam9g10: fix SOC type detection

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Ivan Shugov commit 3d9a0183dd3423353e9e363bcc261c1220d05f9f upstream. Newer at91sam9g10 SoC revision can't be detected, so the kernel can't boot with this kind of kernel panic: "AT91: Impo

[PATCH 224/270] SUNRPC: Prevent races in xs_abort_connection()

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Trond Myklebust commit 4bc1e68ed6a8b59be8a79eb719be515a55c7bc68 upstream. The call to xprt_disconnect_done() that is triggered by a successful connection reset will trigger another automat

[PATCH 225/270] SUNRPC: Get rid of the xs_error_report socket callback

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Trond Myklebust commit f878b657ce8e7d3673afe48110ec208a29e38c4a upstream. Chris Perl reports that we're seeing races between the wakeup call in xs_error_report and the connect attempts. Ba

[PATCH 223/270] Revert "SUNRPC: Ensure we close the socket on EPIPE errors too..."

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Trond Myklebust commit b9d2bb2ee537424a7f855e1f93eed44eb9ee0854 upstream. This reverts commit 55420c24a0d4d1fce70ca713f84aa00b6b74a70e. Now that we clear the connected flag when entering T

[PATCH 222/270] SUNRPC: Clear the connect flag when socket state is TCP_CLOSE_WAIT

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Trond Myklebust commit d0bea455dd48da1ecbd04fedf00eb89437455fdc upstream. This is needed to ensure that we call xprt_connect() upon the next call to call_connect(). Signed-off-by: Trond M

[PATCH 219/270] dmaengine: sirf: fix a typo in dma_prep_interleaved

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Barry Song commit 5997e089e4c3a7f0958a8fb0a54ec2b5a6f06168 upstream. either DEV_TO_MEM or MEM_TO_DEV is supported, so change OR to AND. Signed-off-by: Barry Song Signed-off-by: Vinod Kou

[PATCH 181/270] Bluetooth: SMP: Fix setting unknown auth_req bits

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Johan Hedberg commit 065a13e2cc665f6547dc7e8a9d6b6565badf940a upstream. When sending a pairing request or response we should not just blindly copy the value that the remote device sent. In

[PATCH 188/270] iwlwifi: fix 6000 series channel switch command

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Johannes Berg commit 8f7b8db6e0557c8437adf9371e020cd89a7e85dc upstream. The channel switch command for 6000 series devices is larger than the maximum inline command size of 320 bytes. The

[PATCH 182/270] oprofile, x86: Fix wrapping bug in op_x86_get_ctrl()

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit 44009105081b51417f311f4c3be0061870b6b8ed upstream. The "event" variable is a u16 so the shift will always wrap to zero making the line a no-op. Signed-off-by: Dan Car

[PATCH 195/270] xen/x86: don't corrupt %eip when returning from a signal handler

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: David Vrabel commit a349e23d1cf746f8bdc603dcc61fae9ee4a695f6 upstream. In 32 bit guests, if a userspace process has %eax == -ERESTARTSYS (-512) or -ERESTARTNOINTR (-513) when it is interru

[PATCH 194/270] pinctrl: remove mutex lock in groups show

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Haojian Zhuang commit 7ae9d71e8df27a3ab60a05ae3add08728debc09c upstream. Mutex is locked duplicatly by pinconf_groups_show() and pin_config_group_get(). It results dead lock. So avoid to l

[PATCH 209/270] extcon: unregister compat link on cleanup

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Peter Huewe commit 824a1bc045cef278aec15bef35d8d0b59ce77856 upstream. Since extcon registers this compat link at device registration (extcon_dev_register), we should probably remove them a

[PATCH 208/270] extcon: Unregister compat class at module unload to fix oops

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Peter Huewe commit 0dc77b6dabec8fd298392018cc0de5214af2dc43 upstream. If you compile extcon with CONFIG_ANDROID and then load and unload the module you get a simple oops as the driver does

[PATCH 211/270] arch/tile: avoid generating .eh_frame information in modules

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Chris Metcalf commit 627072b06c362bbe7dc256f618aaa63351f0cfe6 upstream. The tile tool chain uses the .eh_frame information for backtracing. The vmlinux build drops any .eh_frame sections a

[PATCH 215/270] xhci: fix integer overflow

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Oliver Neukum commit 16b45fdf9c4e82f5d3bc53aa70737650e7c8d5ed upstream. xhci_service_interval_to_ns() returns long long to avoid an overflow. However, the type cast happens too late. The f

[PATCH 212/270] drm/radeon: add some new SI PCI ids

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Alex Deucher commit b6aa22db7857ab7ed042d6c56b800bfc727cfdff upstream. Signed-off-by: Alex Deucher Signed-off-by: Herton Ronaldo Krzesinski --- include/drm/drm_pciids.h |3 +++ 1 fi

[PATCH 210/270] pinctrl: fix missing unlock on error in pinctrl_groups_show()

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Wei Yongjun commit b4dd784ba8af03bf1f9ee5118c792d7abd4919bd upstream. Add the missing unlock on the error handle path in function pinctrl_groups_show(). Signed-off-by: Wei Yongjun Signed

[PATCH 207/270] cpufreq / powernow-k8: Remove usage of smp_processor_id() in preemptible code

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Andreas Herrmann commit e4df1cbcc1f329e53a1fff7450b2229e0addff20 upstream. Commit 6889125b8b4e09c5e53e6ecab3433bed1ce198c9 (cpufreq/powernow-k8: workqueue user shouldn't migrate the kworke

[PATCH 205/270] Staging: android: binder: Allow using highmem for binder buffers

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: =?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?= commit 585650dcec88e704a19bb226a34b6a7166111623 upstream. The default kernel mapping for the pages allocated for the binder buffers is never used. Se

[PATCH 203/270] staging: comedi: amplc_pc236: fix invalid register access during detach

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Ian Abbott commit aaeb61a97b7159ebe30b18a422d04eeabfa8790b upstream. `pc236_detach()` is called by the comedi core if it attempted to attach a device and failed. `pc236_detach()` calls `p

[PATCH 202/270] usb hub: send clear_tt_buffer_complete events when canceling TT clear work

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Octavian Purdila commit 3b6054da68f9b0d5ed6a7ed0f42a79e61904352c upstream. There is a race condition in the USB hub code with regard to handling TT clear requests that can get the HCD driv

[PATCH 199/270] ALSA: hda - Fix silent headphone output from Toshiba P200

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit cb766404e6b8c566569eb9ada02ea45d28729864 upstream. By some reason, Toshiba laptop doesn't like the EAPD turned up for the headphone pin. Add a fix up code to force to

[PATCH 198/270] Revert "cgroup: Remove task_lock() from cgroup_post_fork()"

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Tejun Heo commit d87838321124061f6c935069d97f37010fa417e6 upstream. This reverts commit 7e3aa30ac8c904a706518b725c451bb486daaae9. The commit incorrectly assumed that fork path always perf

[PATCH 197/270] Revert "cgroup: Drop task_lock(parent) on cgroup_fork()"

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Tejun Heo commit 9bb71308b8133d643648776243e4d5599b1c193d upstream. This reverts commit 7e381b0eb1e1a9805c37335562e8dc02e7d7848c. The commit incorrectly assumed that fork path always perf

Re: [PATCH V2 Resend 0/4] Create sched_select_cpu() and use it for workqueues and timers

2012-11-26 Thread Steven Rostedt
On Mon, 2012-11-26 at 09:03 -0800, Paul E. McKenney wrote: > If I understand correctly (though also suffering turkey OD), the idea is > to offload work to more energy-efficient CPUs. This is determined by a CPU that isn't running the idle task? Is it because a CPU that just woke up may be runnin

[PATCH 192/270] pinctrl: tegra: correct bank for pingroup and drv pingroup

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Pritesh Raithatha commit a03690e44468dcd3088f6600ab036d17bd2130ff upstream. Signed-off-by: Pritesh Raithatha Acked-by: Stephen Warren Tested-by: Stephen Warren Signed-off-by: Linus Wall

[PATCH 190/270] dt: Document: correct tegra20/30 pinctrl slew-rate name

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Pritesh Raithatha commit d6ec6b60a56a1e7d99da1fc69c031fa5ab54ba94 upstream. change nvidia,slew_rate* to nvidia,slew-rate* Signed-off-by: Pritesh Raithatha Acked-by: Stephen Warren Teste

[PATCH 189/270] cgroup: notify_on_release may not be triggered in some cases

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Daisuke Nishimura commit 1f5320d5972aa50d3e8d2b227b636b370e608359 upstream. notify_on_release must be triggered when the last process in a cgroup is move to another. But if the first(and o

[PATCH 187/270] net/wireless: ipw2200: Fix panic occurring in ipw_handle_promiscuous_tx()

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Stanislav Yakovlev commit bf11315eeda510ea4fc1a2bf972d8155d31d89b4 upstream. The driver does not count space of radiotap fields when allocating skb for radiotap packet. This leads to kerne

[PATCH 184/270] mac80211: check if key has TKIP type before updating IV

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Stanislaw Gruszka commit 4045f72bcf3c293c7c5932ef001742d8bb5ded76 upstream. This patch fix corruption which can manifest itself by following crash when switching on rfkill switch with rt2x

Re: [net-next RFC] pktgen: don't wait for the device who doesn't free skb immediately after sent

2012-11-26 Thread Stephen Hemminger
On Mon, 26 Nov 2012 15:56:52 +0800 Jason Wang wrote: > Some deivces do not free the old tx skbs immediately after it has been sent > (usually in tx interrupt). One such example is virtio-net which optimizes for > virt and only free the possible old tx skbs during the next packet sending. > This

[PATCH 183/270] cfg80211/mac80211: avoid state mishmash on deauth

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Stanislaw Gruszka commit 6863255bd0e48bc41ae5a066d5c771801e92735a upstream. Avoid situation when we are on associate state in mac80211 and on disassociate state in cfg80211. This can resul

[PATCH 180/270] ring-buffer: Check for uninitialized cpu buffer before resizing

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Vaibhav Nagarnaik commit 8e49f418c9632790bf456634742d34d97120a784 upstream. With a system where, num_present_cpus < num_possible_cpus, even if all CPUs are online, non-present CPUs don't h

[PATCH 178/270] ext4: fix metadata checksum calculation for the superblock

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Theodore Ts'o commit 06db49e68ae70cf16819b85a14057acb2820776a upstream. The function ext4_handle_dirty_super() was calculating the superblock on the wrong block data. As a result, when th

[PATCH 142/270] libceph: fix crypto key null deref, memory leak

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Sylvain Munaut commit f0666b1ac875ff32fe290219b150ec62eebbe10e upstream. Avoid crashing if the crypto key payload was NULL, as when it was not correctly allocated and initialized. Also, a

[PATCH 146/270] rbd: reset BACKOFF if unable to re-queue

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Alex Elder commit 588377d6199034c36d335e7df5818b731fea072c upstream. If ceph_fault() is unable to queue work after a delay, it sets the BACKOFF connection flag so con_work() will attempt t

[PATCH 154/270] drm/i915: remove useless BUG_ON which caused a regression in 3.5.

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Willy Tarreau commit c77d7162a7ae451c2e895d7ef7fbeb0906107472 upstream. starting an old X server causes a kernel BUG since commit 1b50247a8d: [ cut here ] kernel B

[PATCH 165/270] drm/radeon: Don't destroy I2C Bus Rec in radeon_ext_tmds_enc_destroy().

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Egbert Eich commit 082918471139b07964967cfe5f70230909c82ae1 upstream. radeon_i2c_fini() walks thru the list of I2C bus recs rdev->i2c_bus[] to destroy each of them. radeon_ext_tmds_enc_des

[PATCH 166/270] ALSA: hda - Always check array bounds in alc_get_line_out_pfx

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: David Henningsson commit 71aa5ebe36a4e936eff281b375a4707b6a8320f2 upstream. Even when CONFIG_SND_DEBUG is not enabled, we don't want to return an arbitrary memory location when the channel

[PATCH 167/270] NLM: nlm_lookup_file() may return NLMv4-specific error codes

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Trond Myklebust commit cd0b16c1c3cda12dbed1f8de8f1a9b0591990724 upstream. If the filehandle is stale, or open access is denied for some reason, nlm_fopen() may return one of the NLMv4-spec

[PATCH 174/270] USB: option: add more ZTE devices

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: =?UTF-8?q?Bj=C3=B8rn=20Mork?= commit 4b35f1c52943851b310afb09047bfe991ac8f5ae upstream. Signed-off-by: Bjørn Mork Signed-off-by: Greg Kroah-Hartman Signed-off-by: Herton Ronaldo Krzesins

[PATCH 175/270] kernel/sys.c: fix stack memory content leak via UNAME26

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Kees Cook commit 2702b1526c7278c4d65d78de209a465d4de2885e upstream. Calling uname() with the UNAME26 personality set allows a leak of kernel stack contents. This fixes it by defensively c

[PATCH 177/270] ext4: race-condition protection for ext4_convert_unwritten_extents_endio

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Dmitry Monakhov commit dee1f973ca341c266229faa5a1a5bb268bed3531 upstream. We assumed that at the time we call ext4_convert_unwritten_extents_endio() extent in question is fully inside [map

[PATCH 173/270] USB: option: blacklist net interface on ZTE devices

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: =?UTF-8?q?Bj=C3=B8rn=20Mork?= commit 1452df6f1b7e396d89c2a1fdbdc0e0e839f97671 upstream. Based on information from the ZTE Windows drivers. Signed-off-by: Bjørn Mork Signed-off-by: Greg K

[PATCH 170/270] USB: cdc-acm: fix pipe type of write endpoint

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Ming Lei commit c5211187f7ff8e8dbff4ebf7c011ac4c0ffe319c upstream. If the write endpoint is interrupt type, usb_sndintpipe() should be passed to usb_fill_int_urb() instead of usb_sndbulkpi

[PATCH 168/270] x86: Exclude E820_RESERVED regions and memory holes above 4 GB from direct mapping.

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Jacob Shin commit 1e779aabe1f0768c2bf8f8c0a5583679b54a upstream. On systems with very large memory (1 TB in our case), BIOS may report a reserved region or a hole in the E820 map, even

Re: [PATCH v8 1/2] x86/kexec: add a new atomic notifier list for kdump

2012-11-26 Thread Eric W. Biederman
Gleb Natapov writes: > On Mon, Nov 26, 2012 at 09:08:54AM -0600, Eric W. Biederman wrote: >> Zhang Yanfei writes: >> >> > This patch adds an atomic notifier list named crash_notifier_list. >> > Currently, when loading kvm-intel module, a notifier will be registered >> > in the list to enable vm

[PATCH 164/270] usb: musb: am35xx: drop spurious unplugging a device

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Stefano Babic commit 6ff1f3d3bd7c69c62ca5773b1b684bce42eff06a upstream. On AM3517, tx and rx interrupt are detected together with the disconnect event. This generates a kernel panic in mus

[PATCH 162/270] ALSA: hda - Fix registration race of VGA switcheroo

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 128960a9ad67e2d119738f5211956e0304517551 upstream. Delay the registration of VGA switcheroo client to the end of the probing. Otherwise a too quick switching may resul

[PATCH 160/270] pcmcia: sharpsl: don't discard sharpsl_pcmcia_ops

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit fdc858a466b738d35d3492bc7cf77b1dac98bf7c upstream. The sharpsl_pcmcia_ops structure gets passed into sa11xx_drv_pcmcia_probe, where it gets accessed at run-time, unlik

[PATCH 159/270] drm/i915: Set guardband clipping workaround bit in the right register.

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Kenneth Graunke commit 26b6e44afb58432a5e998da0343757404f9de9ee upstream. A previous patch, namely: commit bf97b276ca04cee9ab65ffd378fa8e6aedd71ff6 Author: Daniel Vetter Date: Wed Apr

[PATCH 156/270] usb: Don't enable LPM if the exit latency is zero.

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Sarah Sharp commit ae8963adb4ad8c5f2a89ca1d99fb7bb721e7599f upstream. Some USB 3.0 devices signal that they don't implement Link PM by having all zeroes in the U1/U2 exit latencies in thei

[PATCH 155/270] USB: Enable LPM after a failed probe.

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Sarah Sharp commit d01f87c0ffa96cb44faa78710711eb6e974b891c upstream. Before a driver is probed, we want to disable USB 3.0 Link Power Management (LPM), in case the driver needs hub-initia

Re: [PATCH] audit: create explicit AUDIT_SECCOMP event type

2012-11-26 Thread Kees Cook
On Mon, Nov 26, 2012 at 6:14 AM, Steve Grubb wrote: > On Monday, November 19, 2012 01:56:53 PM Kees Cook wrote: >> The seccomp path was using AUDIT_ANOM_ABEND from when seccomp mode 1 >> could only kill a process. While we still want to make sure an audit >> record is forced on a kill, this should

Re: [PATCH -mm] memcg: do not trigger OOM from add_to_page_cache_locked

2012-11-26 Thread Johannes Weiner
On Mon, Nov 26, 2012 at 02:18:37PM +0100, Michal Hocko wrote: > [CCing also Johannes - the thread started here: > https://lkml.org/lkml/2012/11/21/497] > > On Mon 26-11-12 01:38:55, azurIt wrote: > > >This is hackish but it should help you in this case. Kamezawa, what do > > >you think about that?

[PATCH 152/270] ASoC: wm2200: Use rev A register patches on rev B

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Mark Brown commit 5ae9eb4cbdfd640269dbd66aa3c92ea8e11cc838 upstream. Signed-off-by: Mark Brown Signed-off-by: Herton Ronaldo Krzesinski --- sound/soc/codecs/wm2200.c |1 + 1 file ch

[PATCH 150/270] libceph: check for invalid mapping

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Sage Weil commit d63b77f4c552cc3a20506871046ab0fcbc332609 upstream. If we encounter an invalid (e.g., zeroed) mapping, return an error and avoid a divide by zero. Signed-off-by: Sage Weil

[PATCH 148/270] ceph: fix dentry reference leak in encode_fh()

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: David Zafman commit 52eb5a900a9863a8b77a895f770e5d825c8e02c6 upstream. Call to d_find_alias() needs a corresponding dput() This fixes http://tracker.newdream.net/issues/3271 Signed-off-b

Re: [PATCH 1/1] TPM: STMicroelectronics ST33 I2C KERNEL 3.x.x

2012-11-26 Thread Kent Yoder
Hi Mathias, On Mon, Nov 19, 2012 at 11:15:21PM +0100, Mathias Leblanc wrote: > * STMicroelectronics version 1.2.0, Copyright (C) 2010 > * STMicroelectronics comes with ABSOLUTELY NO WARRANTY. > * This is free software, and you are welcome to redistribute it > * under certain conditions. > > T

[PATCH 145/270] libceph: only kunmap kmapped pages

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Alex Elder commit 5ce765a540f34d1e2005e1210f49f67fdf11e997 upstream. In write_partial_msg_pages(), pages need to be kmapped in order to perform a CRC-32c calculation on them. As an artifa

[PATCH 143/270] libceph: delay debugfs initialization until we learn global_id

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Sage Weil commit d1c338a509cea5378df59629ad47382810c38623 upstream. The debugfs directory includes the cluster fsid and our unique global_id. We need to delay the initialization of the deb

[PATCH 139/270] libceph: avoid dropping con mutex before fault

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Sage Weil commit 8636ea672f0c5ab7478c42c5b6705ebd1db7eb6a upstream. The ceph_fault() function takes the con mutex, so we should avoid dropping it before calling it. This fixes a potential

[PATCH 137/270] libceph: revoke mon_client messages on session restart

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Sage Weil commit 4f471e4a9c7db0256834e1b376ea50c82e345c3c upstream. Revoke all mon_client messages when we shut down the old connection. This is mostly moot since we are re-using the same

[PATCH 091/270] libceph: make ceph_con_revoke_message() a msg op

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Alex Elder commit 8921d114f5574c6da2cdd00749d185633ecf88f3 upstream. ceph_con_revoke_message() is passed both a message and a ceph connection. A ceph_msg allocated for incoming messages o

[PATCH 093/270] libceph: fix overflow in osdmap_decode()

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Xi Wang commit e91a9b639a691e0982088b5954eaafb5a25c8f1c upstream. On 32-bit systems, a large `n' would overflow `n * sizeof(u32)' and bypass the check ceph_decode_need(p, end, n * sizeof(u

[PATCH 100/270] libceph: encapsulate advancing msg page

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Alex Elder commit 84ca8fc87fcf4ab97bb8acdb59bf97bb4820cb14 upstream. In write_partial_msg_pages(), once all the data from a page has been sent we advance to the next one. Put the code tha

[PATCH 106/270] libceph: don't change socket state on sock event

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Alex Elder commit 188048bce311ee41e5178bc3255415d0eae28423 upstream. Currently the socket state change event handler records an error message on a connection to distinguish a close while c

[PATCH 110/270] libceph: clear NEGOTIATING when done

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Alex Elder commit 3ec50d1868a9e0493046400bb1fdd054c7f64ebd upstream. A connection state's NEGOTIATING bit gets set while in CONNECTING state after we have successfully exchanged a ceph ban

[PATCH 120/270] libceph: prevent the race of incoming work during teardown

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Guanjun He commit a2a3258417eb6a1799cf893350771428875a8287 upstream. Add an atomic variable 'stopping' as flag in struct ceph_messenger, set this flag to 1 in function ceph_destroy_client(

[PATCH 123/270] libceph: resubmit linger ops when pg mapping changes

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Sage Weil commit 6194ea895e447fdf4adfd23f67873a32bf4f15ae upstream. The linger op registration (i.e., watch) modifies the object state. As such, the OSD will reply with success if it has

[PATCH 125/270] libceph: protect ceph_con_open() with mutex

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Sage Weil commit 5469155f2bc83bb2c88b0a0370c3d54d87eed06e upstream. Take the con mutex while we are initiating a ceph open. This is necessary because the may have previously been in use a

[PATCH 130/270] libceph: drop gratuitous socket close calls in con_work

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Sage Weil commit 2e8cb10063820af7ed7638e3fd9013eee21266e7 upstream. If the state is CLOSED or OPENING, we shouldn't have a socket. Signed-off-by: Sage Weil Signed-off-by: Herton Ronaldo

[PATCH 135/270] libceph: clear all flags on con_close

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Sage Weil commit 43c7427d100769451601b8a36988ac0528ce0124 upstream. Signed-off-by: Sage Weil Signed-off-by: Herton Ronaldo Krzesinski --- net/ceph/messenger.c |2 ++ 1 file changed,

[PATCH 133/270] libceph: replace connection state bits with states

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Sage Weil commit 8dacc7da69a491c515851e68de6036f21b5663ce upstream. Use a simple set of 6 enumerated values for the socket states (CON_STATE_*) and use those instead of the state bits. Al

[PATCH 129/270] libceph: move ceph_con_send() closed check under the con mutex

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Sage Weil commit a59b55a602b6c741052d79c1e3643f8440cddd27 upstream. Take the con mutex before checking whether the connection is closed to avoid racing with someone else closing it. Signe

Re: [PATCH v3 1/4] ACPI: Support system notify handler via .sys_notify

2012-11-26 Thread Toshi Kani
Hi Rafael, Thanks for reviewing! My comments are in-line. On Sat, 2012-11-24 at 23:01 +0100, Rafael J. Wysocki wrote: > On Thursday, November 08, 2012 01:23:44 PM Toshi Kani wrote: > > Added a new .sys_notify interface, which allows ACPI drivers to > > register their system-level (ex. hotplug) n

build failure next-20121126

2012-11-26 Thread H Hartley Sweeten
Hello all, I was just trying a allyesconfig build of next-20121126 and got this: CC fs/cifs/cifs_debug.o In function 'copy_from_user', inlined from 'cifs_security_flags_proc_write' at fs/cifs/cifs_debug.c:593: /home/bigguiness/src/git/linux-next/arch/x86/include/

[PATCH 126/270] libceph: reset connection retry on successfully negotiation

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Sage Weil commit 85effe183dd45854d1ad1a370b88cddb403c4c91 upstream. We exponentially back off when we encounter connection errors. If several errors accumulate, we will eventually wait ag

Re: [PATCH v8 1/2] x86/kexec: add a new atomic notifier list for kdump

2012-11-26 Thread Gleb Natapov
On Mon, Nov 26, 2012 at 11:43:10AM -0600, Eric W. Biederman wrote: > Gleb Natapov writes: > > > On Mon, Nov 26, 2012 at 09:08:54AM -0600, Eric W. Biederman wrote: > >> Zhang Yanfei writes: > >> > >> > This patch adds an atomic notifier list named crash_notifier_list. > >> > Currently, when load

Re: [RFC][PATCH] fs: configfs: programmatically create config groups

2012-11-26 Thread Michal Nazarewicz
On Mon, Nov 26 2012, Sebastian Andrzej Siewior wrote: > Wouldn't say that. It may adds complexity on another level. The target > subsystem has the same problem with adding luns and there seems nothing > wrong with having lun3 and 4 and leaving 0 and 1 unsued. That's not what Wikipedia claims thoug

[PATCH 124/270] libceph: (re)initialize bio_iter on start of message receive

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Sage Weil commit a4107026976f06c9a6ce8cc84a763564ee39d901 upstream. Previously, we were opportunistically initializing the bio_iter if it appeared to be uninitialized in the middle of the

[PATCH 119/270] libceph: initialize msgpool message types

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Sage Weil commit d50b409fb8698571d8209e5adfe122e287e31290 upstream. Initialize the type field for messages in a msgpool. The caller was doing this for osd ops, but not for the reply messa

[PATCH 121/270] libceph: report socket read/write error message

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Sage Weil commit 3a140a0d5c4b9e35373b016e41dfc85f1e526bdb upstream. We need to set error_msg to something useful before calling ceph_fault(); do so here for try_{read,write}(). This is mo

[PATCH 116/270] libceph: set peer name on con_open, not init

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Sage Weil commit b7a9e5dd40f17a48a72f249b8bbc989b63bae5fd upstream. The peer name may change on each open attempt, even when the connection is reused. Signed-off-by: Sage Weil Signed-off

[PATCH 115/270] libceph: add some fine ASCII art

2012-11-26 Thread Herton Ronaldo Krzesinski
3.5.7u1 -stable review patch. If anyone has any objections, please let me know. -- From: Alex Elder commit bc18f4b1c850ab355e38373fbb60fd28568d84b5 upstream. Sage liked the state diagram I put in my commit description so I'm putting it in with the code. Signed-off-by: Alex El

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