[ 000/109] 3.4.8-stable review

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH This is the start of the stable review cycle for the 3.4.8 release. There are 109 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Thu Aug 9 22:20:39 UTC 2012.

[ 113/122] ALSA: hda - Fix mute-LED GPIO setup for HP Mini 210

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit a3e199732b8e2b272e82cc1ccc49c35239ed6c5a upstream. BIOS on HP Mini 210 doesn't provide the proper "HP_Mute_LED" DMI string, thus the driver doesn't initializ

[ 108/122] net/tun: fix ioctl() based info leaks

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Mathias Krause [ Upstream commits a117dacde0288f3ec60b6e5bcedae8fa37ee0dfc and 8bbb181308bc348e02bfdbebdedd4e4ec9d452ce ] The tun module leaks up to 36 bytes of memory by not

[ 118/122] ASoC: wm8994: Ensure there are enough BCLKs for four channels

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Mark Brown commit b8edf3e5522735c8ce78b81845f7a1a2d4a08626 upstream. Otherwise if someone tries to use all four channels on AIF1 with the device in master mode we won't be able

[ 121/122] futex: Fix bug in WARN_ON for NULL q.pi_state

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Darren Hart commit f27071cb7fe3e1d37a9dbe6c0dfc5395cd40fa43 upstream. The WARN_ON in futex_wait_requeue_pi() for a NULL q.pi_state was testing the address (&q.pi_state) of the p

[ 122/122] futex: Forbid uaddr == uaddr2 in futex_wait_requeue_pi()

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Darren Hart commit 6f7b0a2a5c0fb03be7c25bd1745baa50582348ef upstream. If uaddr == uaddr2, then we have broken the rule of only requeueing from a non-pi futex to a pi futex with

[ 116/122] ALSA: hda - Support dock on Lenovo Thinkpad T530 with ALC269VC

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 707fba3fa76a4c882f5d4c1a12430c09bce8 upstream. Lenovo Thinkpad T530 with ALC269VC codec has a dock port but BIOS doesn't set up the pins properly. Enabl

[ 119/122] m68k: Make sys_atomic_cmpxchg_32 work on classic m68k

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Andreas Schwab commit 9e2760d18b3cf179534bbc27692c84879c61b97c upstream. User space access must always go through uaccess accessors, since on classic m68k user space and kernel

[ 120/122] futex: Test for pi_mutex on fault in futex_wait_requeue_pi()

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Darren Hart commit b6070a8d9853eda010a549fa9a09eb8d7269b929 upstream. If fixup_pi_state_owner() faults, pi_mutex may be NULL. Test for pi_mutex != NULL before testing the owner

[ 117/122] ASoC: wm8962: Allow VMID time to fully ramp

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Mark Brown commit 9d40e5582c9c4cfb6977ba2a0ca9c2ed82c56f21 upstream. Required for reliable power up from cold. Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --

[ 115/122] ALSA: hda - Fix mute-LED GPIO initialization for IDT codecs

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 1f43f6c1bc8d740e75b4177eb29110858bb5fea2 upstream. The IDT codecs initializes the GPIO setup for mute LEDs via snd_hda_sync_vmaster_hook(). This works in mo

[ 114/122] ALSA: hda - Fix polarity of mute LED on HP Mini 210

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit ff8a1e274cbc11da6b57849f925b895a212b56c9 upstream. The commit a3e199732b made the LED working again on HP Mini 210 but with a wrong polarity. This patch fix

[ 112/122] ALSA: hda - Fix invalid D3 of headphone DAC on VT202x codecs

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 6162552b0de6ba80937c3dd53e084967851cd199 upstream. We've got a bug report about the silent output from the headphone on a mobo with VT2021, and spotted out t

[ 110/122] ALSA: snd-usb: fix clock source validity index

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Mack commit aff252a848ce21b431ba822de3dab9c4c94571cb upstream. uac_clock_source_is_valid() uses the control selector value to access the bmControls bitmap of the clock so

[ 104/122] tcp: Add TCP_USER_TIMEOUT negative value check

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Hangbin Liu [ Upstream commit 42493570100b91ef663c4c6f0c0fdab238f9d3c2 ] TCP_USER_TIMEOUT is a TCP level socket option that takes an unsigned int. But patch "tcp: Add TCP_USER_

[ 100/122] net: Fix references to out-of-scope variables in put_cmsg_compat()

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Jesper Juhl [ Upstream commit 818810472b129004c16fc51bf0a570b60776bfb7 ] In net/compat.c::put_cmsg_compat() we may assign 'data' the address of either the 'ctv' or 'cts' local

[ 099/122] ext4: use s_csum_seed instead of i_csum_seed for xattr block

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Tao Ma commit 41eb70dde42b2360074a559a6f1fc49860a50179 upstream. In xattr block operation, we use h_refcount to indicate whether the xattr block is shared among many inodes. And

[ 097/122] ext4: undo ext4_calc_metadata_amount if we fail to claim space

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Theodore Ts'o commit 03179fe92318e7934c180d96f12eff2cb36ef7b6 upstream. The function ext4_calc_metadata_amount() has side effects, although it's not obvious from its function na

[ 089/122] nfsd4: fix cr_principal comparison check in same_creds

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Vivek Trivedi commit 5559b50acdcdcad7e362882d3261bf934c9436f6 upstream. This fixes a wrong check for same cr_principal in same_creds Introduced by 8fbba96e5b327665265ad02b7f331

[ 088/122] nfsd4: our filesystems are normally case sensitive

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: "J. Bruce Fields" commit 2930d381d22b9c56f40dd4c63a8fa59719ca2c3c upstream. Actually, xfs and jfs can optionally be case insensitive; we'll handle that case in later patches. S

[ 086/122] dm thin: reduce endio_hook pool size

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Alasdair G Kergon commit 7768ed33ccdc02801c4483fc5682dc66ace14aea upstream. Reduce the slab size used for the dm_thin_endio_hook mempool. Allocation has been seen to fail on ma

[ 075/122] tg3: Fix Read DMA workaround for 5719 A0.

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Michael Chan commit 10ce95d6ef36c65df7dcd3b8fcf86913f8b298bd upstream. The workaround was mis-applied to all 5719 and 5720 chips. Signed-off-by: Michael Chan Signed-off-by: Da

[ 082/122] drm/radeon: on hotplug force link training to happen (v2)

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Jerome Glisse commit ca2ccde5e2f24a792caa4cca919fc5c6f65d1887 upstream. To have DP behave like VGA/DVI we need to retrain the link on hotplug. For this to happen we need to forc

[ 081/122] drm/radeon: fix hotplug of DP to DVI|HDMI passive adapters (v2)

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Jerome Glisse commit 266dcba541a1ef7e5d82d9e67c67fde2910636e8 upstream. No need to retrain the link for passive adapters. v2: agd5f - no passive DP to VGA adapters, update comm

[ 079/122] drm/radeon: Try harder to avoid HW cursor ending on a multiple of 128 columns.

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Michel Dänzer commit f60ec4c7df043df81e62891ac45383d012afe0da upstream. This could previously fail if either of the enabled displays was using a horizontal resolution that is a

[ 077/122] drm/radeon: fix fence related segfault in CS

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Christian König commit 93bf888c5c730605e3470f5d2381f296eda88d79 upstream. Don't return success if scheduling the IB fails, otherwise we end up with an oops in ttm_eu_fence_buffe

[ 071/122] cifs: ensure that we always do cifsFileInfo_get under the spinlock

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Jeff Layton commit 764a1b1acecedfe204cb2e80d8e2cc7c6df1b0b8 upstream. The readpages bug is a regression that was introduced in 6993f74a5. This also fixes a couple of similar bug

[ 066/122] ACPI, APEI: Fixup common access width firmware bug

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Jean Delvare commit f712c71f7b2b43b894d1e92e1b77385fcad8815f upstream. Many firmwares have a common register definition bug where 8-bit access width is specified for a 32-bit re

[ 062/122] udf: Improve table length check to avoid possible overflow

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Jan Kara commit 57b9655d01ef057a523e810d29c37ac09b80eead upstream. When a partition table length is corrupted to be close to 1 << 32, the check for its length may overflow on 32

[ 058/122] s390/mm: fix fault handling for page table walk case

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Heiko Carstens commit 008c2e8f247f0a8db1e8e26139da12f3a3abcda0 upstream. Make sure the kernel does not incorrectly create a SIGBUS signal during user space accesses: For user s

[ 052/122] atl1c: fix issue of io access mode for AR8152 v2.1

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Cloud Ren commit fa0afcd10951afad2022dda09777d2bf70cdab3d upstream. When io access mode is enabled by BOOTROM or BIOS for AR8152 v2.1, the register can't be read/write by memory

[ 054/122] rtlwifi: rtl8192de: Fix phy-based version calculation

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Forest Bond commit f1b00f4dab29b57bdf1bc03ef12020b280fd2a72 upstream. Commit d83579e2a50ac68389e6b4c58b845c702cf37516 incorporated some changes from the vendor driver that made

[ 050/122] iwlwifi: Check BSS ctx active before call mac80211

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Ilan Peer commit e19ebcab01cc130fa832764d453b263460ec3b91 upstream. It is possible that the BSS context is not active (for example when the current mode is set to GO), or that t

[ 048/122] mac80211: fix read outside array bounds

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Christian Lamparter commit 353d09c6ceedc1cb0c54fe5002c0ca80b6ee6e4f upstream. ieee802_1d_to_ac is defined as a const int[8], but the tid parameter has a range from 0 to 15. Sig

[ 045/122] tun: fix a crash bug and a memory leak

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Mikulas Patocka commit b09e786bd1dd66418b69348cb110f3a64764626a upstream. This patch fixes a crash tun_chr_close -> netdev_run_todo -> tun_free_netdev -> sk_release_kernel -> so

[ 043/122] PM / Sleep: call early resume handlers when suspend_noirq fails

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Colin Cross commit 064b021fbe470ecc9ca10f9f87af48c0fc0865fb upstream. Commit cf579dfb82550e34de7ccf3ef090d8b834ccd3a9 (PM / Sleep: Introduce "late suspend" and "early resume" of

[ 040/122] batman-adv: fix skb->data assignment

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Antonio Quartulli commit d2b6cc8e460494251442a877fcbc150faa175b4f upstream. skb_linearize(skb) possibly rearranges the skb internal data and then changes the skb->data pointer v

[ 038/122] x86/mce: Fix siginfo_t->si_addr value for non-recoverable memory faults

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Tony Luck commit 6751ed65dc6642af64f7b8a440a75563c8aab7ae upstream. In commit dad1743e5993f1 ("x86/mce: Only restart instruction after machine check recovery if it is safe") we

[ 036/122] ALSA: hda - add dock support for Thinkpad X230 Tablet

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: David Henningsson commit 108cc108a3bb42fe4705df1317ff98e1e29428a6 upstream. Also add a model/fixup string "lenovo-dock", so that other Thinkpad users will be able to test this f

[ 033/122] USB: Fix LPM disable/enable during device reset.

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Sarah Sharp commit 6d1d051330ee096f575523647fbd8ffe703600b5 upstream. The USB 3.0 specification says that sending a Set Feature or Clear Feature for U1/U2 Enable is not a valid

[ 024/122] ALSA: hda - Add support for Realtek ALC282

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: David Henningsson commit 4e01ec636e64707d202a1ca21a47bbc6d53085b7 upstream. This codec has a separate dmic path (separate dmic only ADC), and thus it looks mostly like ALC275.

[ 029/122] usb: gadget: Fix g_ether interface link status

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Kevin Cernekee commit 31bde1ceaa873bcaecd49e829bfabceacc4c512d upstream. A "usb0" interface that has never been connected to a host has an unknown operstate, and therefore the I

[ 026/122] ALSA: hda - Dont power up when not powered down.

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Dylan Reid commit b43d224767e426cf1a8b6622d1d172f2b2b0e857 upstream. After cancel_delayed_work_sync returns, the power down work either never started (power_on == 1) or finished

[ 016/122] SCSI: Avoid dangling pointer in scsi_requeue_command()

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Bart Van Assche commit 940f5d47e2f2e1fa00443921a0abf4822335b54d upstream. When we call scsi_unprep_request() the command associated with the request gets destroyed and therefore

[ 018/122] ARM: dt: tegra trimslice: enable USB2 port

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Stephen Warren commit a6a3dd1aed31ace7c827236c53d83f4e845dcff2 upstream. This was accidentally disabled by commit 2a5fdc9 "ARM: dt: tegra: invert status=disable vs status=okay".

[ 017/122] rt2800usb: 2001:3c17 is an RT3370 device

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Albert Pool commit 8fd9d059af12786341dec5a688e607bcdb372238 upstream. D-Link DWA-123 rev A1 Signed-off-by: Albert Pool Acked-by: Gertjan van Wingerde Signed-off-by: John W. Li

[ 015/122] SCSI: Fix device removal NULL pointer dereference

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Bart Van Assche commit 67bd94130015c507011af37858989b199c52e1de upstream. Use blk_queue_dead() to test whether the queue is dead instead of !sdev. Since scsi_prep_fn() may be in

[ 011/122] SCSI: libsas: continue revalidation

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Dan Williams commit 26f2f199ff150d8876b2641c41e60d1c92d2fb81 upstream. Continue running revalidation until no more broadcast devices are discovered. Fixes cases where re-discov

[ 009/122] powerpc/85xx: use the BRx registers to enable indirect mode on the P1022DS

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Timur Tabi commit 6bd825f02966be8ba544047cab313d6032c23819 upstream. In order to enable the DIU video controller on the P1022DS, the FPGA needs to be switched to "indirect mode"

[ 007/122] powerpc/eeh: Check handle_eeh_events() return value

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Kleber Sacilotto de Souza commit 10db8d212864cb6741df7d7fafda5ab6661f6f88 upstream. Function eeh_event_handler() dereferences the pointer returned by handle_eeh_events() without

[ 004/122] mmc: sdhci: fix incorrect command used in tuning

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Aaron Lu commit 473b095a72a95ba719905b1f2e82cd18d099a427 upstream. For SD hosts using retuning mode 1, when retuning timer expired, it will need to do retuning in sdhci_request

[ 002/122] iscsi-target: Drop bogus struct file usage for iSCSI/SCTP

2012-08-07 Thread Greg Kroah-Hartman
From: Greg KH 3.5-stable review patch. If anyone has any objections, please let me know. -- From: Al Viro commit bf6932f44a7b3fa7e2246a8b18a44670e5eab6c2 upstream. >From Al Viro: BTW, speaking of struct file treatment related to sockets - there's this piece

Re: NULL pointer dereference in selinux_ip_postroute_compat

2012-08-07 Thread John Stultz
On 08/07/2012 03:01 PM, Paul Moore wrote: On Tue, Aug 7, 2012 at 5:58 PM, John Stultz wrote: On 08/07/2012 02:50 PM, Paul Moore wrote: On Tue, Aug 7, 2012 at 2:12 PM, John Stultz wrote: Hi, With my kvm environment using 3.6-rc1+, I'm seeing NULL pointer dereferences in selinux_ip_postr

Re: NULL pointer dereference in selinux_ip_postroute_compat

2012-08-07 Thread Paul Moore
On Tuesday, August 07, 2012 10:17:32 PM Serge E. Hallyn wrote: > Quoting Paul Moore (p...@paul-moore.com): > > On Tue, Aug 7, 2012 at 5:58 PM, John Stultz wrote: > > > On 08/07/2012 02:50 PM, Paul Moore wrote: > > >> On Tue, Aug 7, 2012 at 2:12 PM, John Stultz > > >> > > >> wrote: > > >>> Hi, >

Re: NULL pointer dereference in selinux_ip_postroute_compat

2012-08-07 Thread Serge E. Hallyn
Quoting Paul Moore (p...@paul-moore.com): > On Tue, Aug 7, 2012 at 5:58 PM, John Stultz wrote: > > On 08/07/2012 02:50 PM, Paul Moore wrote: > >> > >> On Tue, Aug 7, 2012 at 2:12 PM, John Stultz > >> wrote: > >>> > >>> Hi, > >>> With my kvm environment using 3.6-rc1+, I'm seeing NULL pointer

Re: [RESEND PATCH] [CPUFREQ] conservative: Initialise the cpu field during governor start

2012-08-07 Thread Rafael J. Wysocki
On Tuesday, July 24, 2012, Amit Daniel Kachhap wrote: > This change initialises the cpu id field of cs_cpu_dbs_info structure in > conservative governor and keep this consistent with other governors. > Similar initialisation is present in ondemand governor. > > Signed-off-by: Amit Daniel Kachhap

Re: [PATCH 1/2] perf tools: Initial bash completion support

2012-08-07 Thread David Ahern
On 8/7/12 11:00 AM, Frederic Weisbecker wrote: diff --git a/tools/perf/Makefile b/tools/perf/Makefile index 35655c3..ddfb7e5 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile @@ -951,6 +951,7 @@ install: all $(INSTALL) scripts/python/Perf-Trace-Util/lib/Perf/Trace/* -t '$(DESTDI

Re: [PATCH] cpuidle: coupled: fix sleeping while atomic in cpu notifier

2012-08-07 Thread Rafael J. Wysocki
On Wednesday, July 25, 2012, Colin Cross wrote: > The cpu hotplug notifier gets called in both atomic and non-atomic > contexts, it is not always safe to lock a mutex. Filter out all events > except the six necessary ones, which are all sleepable, before taking > the mutex. > > Signed-off-by: Col

[PATCH] [IA64] aliasing-test: close fd on write error

2012-08-07 Thread Jesper Juhl
If write fails, remember to close(fd) before returning. Signed-off-by: Jesper Juhl --- Documentation/ia64/aliasing-test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/ia64/aliasing-test.c b/Documentation/ia64/aliasing-test.c index 5caa2af..62a190d 100644 --- a/Documentation

Re: [PATCH v2] irq_remap: disable IRQ remapping if any IOAPIC lacks an IOMMU

2012-08-07 Thread Yinghai Lu
On Tue, Aug 7, 2012 at 2:39 PM, Seth Forshee wrote: > The ACPI tables in the Macbook Air 5,1 define a single IOAPIC with id 2, > but the only remapping unit described in the DMAR table matches id 0. > Interrupt remapping fails as a result, and the kernel panics with the > message "timer doesn't wo

[PATCH 0/3] [GIT PULL] tracing: updates

2012-08-07 Thread Steven Rostedt
Ingo, I based this branch off of my tip/perf/core that I sent a pull request for earlier. Please pull the latest tip/perf/core-2 tree, which can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git tip/perf/core-2 Head SHA1: 87abb3b15c62033409f5bf2ffb5620c94f91c

[PATCH 3/3] tracing/trivial: Fix some typos in kernel/trace

2012-08-07 Thread Steven Rostedt
From: Wang Tianhong Fix some typos in kernel/trace. Link: http://lkml.kernel.org/r/1343887320.2228.9.camel@louis-ThinkPad-T410 Signed-off-by: Wang Tianhong Signed-off-by: Steven Rostedt --- kernel/trace/ring_buffer.c |4 ++-- kernel/trace/trace.c |6 +++--- 2 files changed, 5 i

[PATCH 2/3] tracing/filter: Add missing initialization

2012-08-07 Thread Steven Rostedt
From: Jiri Olsa Add missing initialization for ret variable. Its initialization is based on the re_cnt variable, which is being set deep down in the ftrace_function_filter_re function. I'm not sure compilers would be smart enough to see this in near future, so killing the warning this way. Link

[PATCH 1/3] tracing: Fix wakeup_rt self test on virtual machines

2012-08-07 Thread Steven Rostedt
From: Steven Rostedt The warkeup_rt self test used msleep() calls to wait for real time tasks to wake up and run. On bare-metal hardware, this was enough as the scheduler should let the RT task run way before the non-RT task wakes up from the msleep(). If it did not, then that would mean the sche

Re: NULL pointer dereference in selinux_ip_postroute_compat

2012-08-07 Thread Paul Moore
On Tue, Aug 7, 2012 at 5:58 PM, John Stultz wrote: > On 08/07/2012 02:50 PM, Paul Moore wrote: >> >> On Tue, Aug 7, 2012 at 2:12 PM, John Stultz >> wrote: >>> >>> Hi, >>> With my kvm environment using 3.6-rc1+, I'm seeing NULL pointer >>> dereferences in selinux_ip_postroute_compat(). It loo

Re: NULL pointer dereference in selinux_ip_postroute_compat

2012-08-07 Thread John Stultz
On 08/07/2012 02:50 PM, Paul Moore wrote: On Tue, Aug 7, 2012 at 2:12 PM, John Stultz wrote: Hi, With my kvm environment using 3.6-rc1+, I'm seeing NULL pointer dereferences in selinux_ip_postroute_compat(). It looks like the sksec value is null and we die in the following line: if (

[PATCH] cdc-phonet: Don't leak in usbpn_open

2012-08-07 Thread Jesper Juhl
We allocate memory for 'req' with usb_alloc_urb() and then test 'if (!req || rx_submit(pnd, req, GFP_KERNEL | __GFP_COLD))'. If we enter that branch due to '!req' then there is no problem. But if we enter the branch due to 'req' being != 0 and the 'rx_submit()' call being false, then we'll leak the

Re: [PATCH] pci: Account for virtual buses in pci_acs_path_enabled

2012-08-07 Thread Don Dutile
On 08/06/2012 04:47 PM, Bjorn Helgaas wrote: On Sun, Aug 5, 2012 at 11:55 PM, Alex Williamson wrote: On Sun, 2012-08-05 at 23:30 -0600, Bjorn Helgaas wrote: On Sat, Aug 4, 2012 at 12:19 PM, Alex Williamson wrote: It's possible to have buses without an associated bridge (bus->self == NULL).

Re: NULL pointer dereference in selinux_ip_postroute_compat

2012-08-07 Thread Paul Moore
On Tue, Aug 7, 2012 at 2:12 PM, John Stultz wrote: > Hi, > With my kvm environment using 3.6-rc1+, I'm seeing NULL pointer > dereferences in selinux_ip_postroute_compat(). It looks like the sksec value > is null and we die in the following line: > > if (selinux_xfrm_postroute_last(sksec->s

RE: [PATCH 0/4] promote zcache from staging

2012-08-07 Thread Dan Magenheimer
> From: Seth Jennings [mailto:sjenn...@linux.vnet.ibm.com] > Subject: Re: [PATCH 0/4] promote zcache from staging > > On 07/27/2012 01:18 PM, Seth Jennings wrote: > > Some benchmarking numbers demonstrating the I/O saving that can be had > > with zcache: > > > > https://lkml.org/lkml/2012/3/22/383

[PATCH] efikamx: reintroduce Genesi Efika MX Smarttop via device tree

2012-08-07 Thread Matt Sealey
This device tree only supports the final retail board ("TO3"). It is currently feature equivalent to the MX51 Babbage device tree. The following features have been tested and work as well as can be expected: * Serial port * SD card support * I2C bus * SGTL5000 audio support via the internal speak

Re: [PATCH] net:appletalk:ddp:fixed coding style issue again relating to

2012-08-07 Thread David Miller
From: Jeffrin Jose Date: Tue, 7 Aug 2012 19:30:20 +0530 > Fixed coding style issue relating to indentation in > net/appletalk/ddp.c found by checkpatch.pl tool > > Signed-off-by: Jeffrin Jose Please just stop trying to fix this code up, it's noise and you keep making mistakes. > case T

[PATCH] ARM: print an early warning if the ATAG_CORE/OF_DT_MAGIC vet did not pass

2012-08-07 Thread Matt Sealey
When booting and passing either corrupted or missing device trees or ATAGs, the __vet_atags function in kernel/head-common.S will set r2 to 0, thus causing what might be seen as strange behavior. What happens is setup_machine_fdt is passed __atags_pointer which is NULL in the above situation, and

[PATCH v2] irq_remap: disable IRQ remapping if any IOAPIC lacks an IOMMU

2012-08-07 Thread Seth Forshee
The ACPI tables in the Macbook Air 5,1 define a single IOAPIC with id 2, but the only remapping unit described in the DMAR table matches id 0. Interrupt remapping fails as a result, and the kernel panics with the message "timer doesn't work through Interrupt-remapped IO-APIC." To fix this, check e

[PATCH RESEND] Bluetooth: Add support for Apple MacBook Pro 9,2

2012-08-07 Thread Shea Levy
$ usb-devices T: Bus=04 Lev=04 Prnt=04 Port=02 Cnt=01 Dev#= 9 Spd=12 MxCh= 0 D: Ver= 2.00 Cls=ff(vend.) Sub=01 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=05ac ProdID=821d Rev=00.86 S: Manufacturer=Apple Inc. S: Product=Bluetooth USB Host Controller C: #Ifs= 4 Cfg#= 1 Atr=e0 MxPwr=0mA I: If#= 0 A

Re: [PATCH] irq_remap: disable IRQ remapping if any IOAPIC lacks an IOMMU

2012-08-07 Thread Joerg Roedel
On Tue, Aug 07, 2012 at 03:48:09PM -0500, Seth Forshee wrote: > The ACPI tables in the Macbook Air 5,1 define a single IOAPIC with id 2, > but the only remapping unit described in the DMAR table matches id 0. > Interrupt remapping fails as a result, and the kernel panics with the > message "timer d

[PATCH][RFC] PM / Runtime: Introduce pm_runtime_get_and_call()

2012-08-07 Thread Rafael J. Wysocki
Unfortunately, pm_runtime_get() is not a very useful interface, because if the device is not in the "active" state already, it only queues up a work item supposed to resume the device. Then, the caller doesn't really know when the device is going to be resumed which makes it difficult to synchron

Re: [PATCH v2] leds: triggers: send uevent when changing triggers

2012-08-07 Thread Greg KH
On Tue, Aug 07, 2012 at 12:58:15PM -0700, Colin Cross wrote: > Some triggers create sysfs files when they are enabled. Send a uevent > "change" notification whenever the trigger is changed to allow userspace > processes such as udev to modify permissions on the new files. > > A change notificatio

Re: do_IRQ: 1.55 No irq handler for vector (irq -1)

2012-08-07 Thread Borislav Petkov
On Tue, Aug 07, 2012 at 10:45:30AM -0700, Eric W. Biederman wrote: > >> [0.170256] AMD PMU driver. > >> [0.170451] ... version:0 > >> [0.170683] ... bit width: 48 > >> [0.170906] ... generic registers: 6 > >> [0.171125] ... value mask:

Re: IRQ remapping problem on Macbook Air 5,1

2012-08-07 Thread Suresh Siddha
On Tue, 2012-08-07 at 15:55 -0500, Seth Forshee wrote: > On Tue, Aug 07, 2012 at 01:47:52PM -0700, Suresh Siddha wrote: > > On Tue, 2012-08-07 at 22:10 +0200, Joerg Roedel wrote: > > > Hi Seth, > > > > > > On Tue, Aug 07, 2012 at 02:48:37PM -0500, Seth Forshee wrote: > > > > This machine has a bug

Re: [PATCH v2] leds: triggers: send uevent when changing triggers

2012-08-07 Thread Greg KH
On Tue, Aug 07, 2012 at 01:47:23PM -0700, Colin Cross wrote: > On Tue, Aug 7, 2012 at 1:42 PM, Greg KH wrote: > > On Tue, Aug 07, 2012 at 12:58:15PM -0700, Colin Cross wrote: > >> Some triggers create sysfs files when they are enabled. Send a uevent > >> "change" notification whenever the trigger

Re: IRQ remapping problem on Macbook Air 5,1

2012-08-07 Thread Seth Forshee
On Tue, Aug 07, 2012 at 01:47:52PM -0700, Suresh Siddha wrote: > On Tue, 2012-08-07 at 22:10 +0200, Joerg Roedel wrote: > > Hi Seth, > > > > On Tue, Aug 07, 2012 at 02:48:37PM -0500, Seth Forshee wrote: > > > This machine has a bug in its ACPI tables that's causing it to fail to > > > boot unless

Re: [PATCH] irq_remap: disable IRQ remapping if any IOAPIC lacks an IOMMU

2012-08-07 Thread Suresh Siddha
On Tue, 2012-08-07 at 15:48 -0500, Seth Forshee wrote: > The ACPI tables in the Macbook Air 5,1 define a single IOAPIC with id 2, > but the only remapping unit described in the DMAR table matches id 0. > Interrupt remapping fails as a result, and the kernel panics with the > message "timer doesn't

Re: [PATCH 0/5] mfd: replace IORESOURCE_IO by IORESOURCE_MEM

2012-08-07 Thread Arnd Bergmann
On Tuesday 07 August 2012, Geert Uytterhoeven wrote: >Don't you need an extra file in /proc, too (cfr. /proc/ioports and >/proc/iomem)? > > And as Arnd pointed out, if resources will be used for various new buses, > "IORESOURCE_FOO" or "IORESOURCE_OTHER" is a bit vague. > What about conflicts wher

[PATCH] tpm: Do not dereference NULL pointer if acpi_os_map_memory() fails.

2012-08-07 Thread Jesper Juhl
In drivers/char/tpm/tpm_bios.c::read_log() we call acpi_os_map_memory(). That call may fail for a number of reasons (invallid address, out of memory etc). If the call fails it returns NULL and we just pass that to memcpy() unconditionally, which will go bad when it tries to dereference the pointer.

Re: IRQ remapping problem on Macbook Air 5,1

2012-08-07 Thread Suresh Siddha
On Tue, 2012-08-07 at 22:10 +0200, Joerg Roedel wrote: > Hi Seth, > > On Tue, Aug 07, 2012 at 02:48:37PM -0500, Seth Forshee wrote: > > This machine has a bug in its ACPI tables that's causing it to fail to > > boot unless intremap=off is passed to the kernel. The MADT defines a > > single IOAPIC

[PATCH] irq_remap: disable IRQ remapping if any IOAPIC lacks an IOMMU

2012-08-07 Thread Seth Forshee
The ACPI tables in the Macbook Air 5,1 define a single IOAPIC with id 2, but the only remapping unit described in the DMAR table matches id 0. Interrupt remapping fails as a result, and the kernel panics with the message "timer doesn't work through Interrupt-remapped IO-APIC." To fix this, check e

Re: [PATCH v2] leds: triggers: send uevent when changing triggers

2012-08-07 Thread Colin Cross
On Tue, Aug 7, 2012 at 1:42 PM, Greg KH wrote: > On Tue, Aug 07, 2012 at 12:58:15PM -0700, Colin Cross wrote: >> Some triggers create sysfs files when they are enabled. Send a uevent >> "change" notification whenever the trigger is changed to allow userspace >> processes such as udev to modify pe

Re: [PATCH v2] leds: triggers: send uevent when changing triggers

2012-08-07 Thread Greg KH
On Tue, Aug 07, 2012 at 12:58:15PM -0700, Colin Cross wrote: > Some triggers create sysfs files when they are enabled. Send a uevent > "change" notification whenever the trigger is changed to allow userspace > processes such as udev to modify permissions on the new files. > > A change notificatio

[PATCH v2] leds: triggers: send uevent when changing triggers

2012-08-07 Thread Colin Cross
Some triggers create sysfs files when they are enabled. Send a uevent "change" notification whenever the trigger is changed to allow userspace processes such as udev to modify permissions on the new files. A change notification will also be sent during registration of led class devices or led tri

Re: [PATCH 0/4] promote zcache from staging

2012-08-07 Thread Seth Jennings
On 07/27/2012 01:18 PM, Seth Jennings wrote: > Some benchmarking numbers demonstrating the I/O saving that can be had > with zcache: > > https://lkml.org/lkml/2012/3/22/383 There was concern that kernel changes external to zcache since v3.3 may have mitigated the benefit of zcache. So I re-ran m

Re: 회신: [PATCH 2/4] arm/dts: exynos4: Add DTS files derived from common Exynos4

2012-08-07 Thread Arnd Bergmann
On Tuesday 07 August 2012, Dongjin Kim wrote: > Hi, > > I didn't use -M and I couldn't see any difference with the it. > Did I make something wrong on that patch? No, I think it's just git being less smart about file moves than I was hoping for. It might do the right thing if you do the patch in

Re: [PATCH] pinctrl/nomadik: add ASIC DB8450 pinctrl driver

2012-08-07 Thread Stephen Warren
On 08/07/2012 06:12 AM, Linus Walleij wrote: > From: Patrice Chotard > > This implements a subdriver for the DB8540 ASIC for the > Nomadik pin controller. > diff --git a/drivers/pinctrl/pinctrl-nomadik.c > b/drivers/pinctrl/pinctrl-nomadik.c > @@ -1722,6 +1722,8 @@ static int __devinit nmk_pin

Re: [RFC PATCH 0/4] ftrace: Add use of -mfentry for x86_64

2012-08-07 Thread H. Peter Anvin
On 08/07/2012 12:38 PM, Steven Rostedt wrote: This is an RFC patch set that makes gcc use the -mfentry option with -pg. This will set the ftrace 'hook' to the beginning of the function and also remove the requirement that -pg enables frame pointers. This has a couple of benefits (and probably m

Re: Linux 3.4-rc7

2012-08-07 Thread John David Anglin
On 8/7/2012 2:41 PM, Mikulas Patocka wrote: Which restart patch do you mean? http://www.spinics.net/lists/linux-parisc/msg04229.html Dave -- John David Anglindave.ang...@bell.net -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord.

Re: IRQ remapping problem on Macbook Air 5,1

2012-08-07 Thread Joerg Roedel
Hi Seth, On Tue, Aug 07, 2012 at 02:48:37PM -0500, Seth Forshee wrote: > This machine has a bug in its ACPI tables that's causing it to fail to > boot unless intremap=off is passed to the kernel. The MADT defines a > single IOAPIC with id 2, but the remapping unit defined in DMAR matches > id 0. T

Re: [PATCH 1/4] Input: cyttsp4 - bus driver for Cypress TMA4XX touchscreen devices

2012-08-07 Thread Javier Martinez Canillas
On Tue, Aug 7, 2012 at 3:09 PM, Ferruh Yigit wrote: > From: Ferruh YIGIT > > This driver is for Cypress TrueTouch(tm) Standard Product controllers, > Generation4 devices. > > Driver consist of four main modules: > > Bus driver: Linux bus driver implementation, binds other modules. > Core driver:

[PATCH][Trivial] drivers/acpi/osl.c: delete trailing whitespace

2012-08-07 Thread Jesper Juhl
Signed-off-by: Jesper Juhl --- drivers/acpi/osl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 9eaf708..b9eb753 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c @@ -1061,7 +1061,7 @@ acpi_status acpi_os_wait_semaphore(a

[PATCH 1/3] drivers/char/tpm: Add new device driver to support IBM vTPM

2012-08-07 Thread Ashley Lai
This patch adds a new device driver to support IBM virtual TPM (vTPM) for PPC64. This driver provides TPM functionalities by communicating with the vTPM adjunct through Hypervisor calls (Hcalls) and Command/Response Queue (CRQ) commands. Signed-off-by: Ashley Lai --- drivers/char/tpm/Kconfig

[PATCH 15/41] TTY: ttyprintk, initialize tty_port earlier

2012-08-07 Thread Jiri Slaby
After tty_register_driver is called, it is too late to initialize a guy with which we operate in open. When a process already called open(2) on that node, the structures may be in use uninitialized. Move the initialization prior to tty_register_driver. Signed-off-by: Jiri Slaby Cc: Samo Pogacnik

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