Skip to contentSkip to conversation

3.16.3-stable review

PATCH In review Greg Kroah-Hartman 4 participants 160 messages Sep 15, 2014 – Sep 16, 2014 Page 2 of 2

Subsystems (3)
lore
Share & tools
lore
author maintainer
#154 lore raw

PATCH 158/158 KEYS: Fix termination condition in assoc array garbage collection

In reply to Greg Kroah-Hartman

3.16-stable review patch. If anyone has any objections, please let me know.

------------------

From: David Howells <[email protected]>

commit 95389b08d93d5c06ec63ab49bd732b0069b7c35e upstream.

This fixes CVE-2014-3631.

It is possible for an associative array to end up with a shortcut node at the root of the tree if there are more than fan-out leaves in the tree, but they all crowd into the same slot in the lowest level (ie. they all have the same first nibble of their index keys).

When assoc_array_gc() returns back up the tree after scanning some leaves, it can fall off of the root and crash because it assumes that the back pointer from a shortcut (after label ascend_old_tree) must point to a normal node - which isn't true of a shortcut node at the root.

Should we find we're ascending rootwards over a shortcut, we should check to see if the backpointer is zero - and if it is, we have completed the scan.

This particular bug cannot occur if the root node is not a shortcut - ie. if you have fewer than 17 keys in a keyring or if you have at least two keys that sit into separate slots (eg. a keyring and a non keyring).

This can be reproduced by:

ring=keyctl newring bar @s
for ((i=1; i<=18; i++)); do last_key=keyctl newring foo$i $ring; done keyctl timeout $last_key 2

Doing this:

echo 3 >/proc/sys/kernel/keys/gc_delay

first will speed things up.

If we do fall off of the top of the tree, we get the following oops:

BUG: unable to handle kernel NULL pointer dereference at 0000000000000018
IP: [<ffffffff8136cea7>] assoc_array_gc+0x2f7/0x540
PGD dae15067 PUD cfc24067 PMD 0
Oops: 0000 [#1] SMP
Modules linked in: xt_nat xt_mark nf_conntrack_netbios_ns nf_conntrack_broadcast ip6t_rpfilter ip6t_REJECT xt_conntrack ebtable_nat ebtable_broute bridge stp llc ebtable_filter ebtables ip6table_ni
CPU: 0 PID: 26011 Comm: kworker/0:1 Not tainted 3.14.9-200.fc20.x86_64 #1
Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
Workqueue: events key_garbage_collector
task: ffff8800918bd580 ti: ffff8800aac14000 task.ti: ffff8800aac14000
RIP: 0010:[<ffffffff8136cea7>] [<ffffffff8136cea7>] assoc_array_gc+0x2f7/0x540
RSP: 0018:ffff8800aac15d40  EFLAGS: 00010206
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff8800aaecacc0
RDX: ffff8800daecf440 RSI: 0000000000000001 RDI: ffff8800aadc2bc0
RBP: ffff8800aac15da8 R08: 0000000000000001 R09: 0000000000000003
R10: ffffffff8136ccc7 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000070 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff88011fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 0000000000000018 CR3: 00000000db10d000 CR4: 00000000000006f0
Stack:
 ffff8800aac15d50 0000000000000011 ffff8800aac15db8 ffffffff812e2a70
 ffff880091a00600 0000000000000000 ffff8800aadc2bc3 00000000cd42c987
 ffff88003702df20 ffff88003702dfa0 0000000053b65c09 ffff8800aac15fd8
Call Trace:
 [<ffffffff812e2a70>] ? keyring_detect_cycle_iterator+0x30/0x30
 [<ffffffff812e3e75>] keyring_gc+0x75/0x80
 [<ffffffff812e1424>] key_garbage_collector+0x154/0x3c0
 [<ffffffff810a67b6>] process_one_work+0x176/0x430
 [<ffffffff810a744b>] worker_thread+0x11b/0x3a0
 [<ffffffff810a7330>] ? rescuer_thread+0x3b0/0x3b0
 [<ffffffff810ae1a8>] kthread+0xd8/0xf0
 [<ffffffff810ae0d0>] ? insert_kthread_work+0x40/0x40
 [<ffffffff816ffb7c>] ret_from_fork+0x7c/0xb0
 [<ffffffff810ae0d0>] ? insert_kthread_work+0x40/0x40
Code: 08 4c 8b 22 0f 84 bf 00 00 00 41 83 c7 01 49 83 e4 fc 41 83 ff 0f 4c 89 65 c0 0f 8f 5a fe ff ff 48 8b 45 c0 4d 63 cf 49 83 c1 02 <4e> 8b 34 c8 4d 85 f6 0f 84 be 00 00 00 41 f6 c6 01 0f 84 92
RIP  [<ffffffff8136cea7>] assoc_array_gc+0x2f7/0x540
 RSP <ffff8800aac15d40>
CR2: 0000000000000018
---[ end trace 1129028a088c0cbd ]---
---
 lib/assoc_array.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
lib/assoc_array.c +3 -1
@@ -1723,11 +1723,13 @@ ascend_old_tree:
 		shortcut = assoc_array_ptr_to_shortcut(ptr);
 		slot = shortcut->parent_slot;
 		cursor = shortcut->back_pointer;
+		if (!cursor)
+			goto gc_complete;
 	} else {
 		slot = node->parent_slot;
 		cursor = ptr;
 	}
-	BUG_ON(!ptr);
+	BUG_ON(!cursor);
 	node = assoc_array_ptr_to_node(cursor);
 	slot++;
 	goto continue_node;
#155 lore raw
In reply to Greg Kroah-Hartman
Quoted 8 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 3.16.3 release. There are 158 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 Wed Sep 17 19:25:26 UTC 2014. Anything received after that time might be too late.

Build results:

	total: 136 pass: 136 fail: 0

Qemu test results:

	total: 24 pass: 24 fail: 0

Details are available at http://server.roeck-us.net:8010/builders.

Guenter

#156 lore raw
In reply to Greg Kroah-Hartman
Quoted 8 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 3.16.3 release. There are 158 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 Wed Sep 17 19:25:26 UTC 2014. Anything received after that time might be too late.

Quoted 8 lines

The whole patch series can be found in one patch at:

	kernel.org/pub/linux/kernel/v3.0/stable-review/patch-3.16.3-rc1.gz

and the diffstat can be found below.

thanks,

greg k-h

Compiled and booted on my test system. No dmesg regressions.

-- Shuah

Signature · 4 lines
Shuah Khan
Sr. Linux Kernel Developer
Samsung Research America (Silicon Valley)
[email protected] | (970) 217-8978
author maintainer
#157 lore raw
Quoted 13 lines · Shuah Khan
Quoted 12 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 3.16.3 release. There are 158 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 Wed Sep 17 19:25:26 UTC 2014. Anything received after that time might be too late.

The whole patch series can be found in one patch at:

	kernel.org/pub/linux/kernel/v3.0/stable-review/patch-3.16.3-rc1.gz

and the diffstat can be found below.

Quoted 6 lines
Quoted 4 lines

thanks,

greg k-h

Compiled and booted on my test system. No dmesg regressions.

Thanks for testing all 3 of these and letting me know.

greg k-h

#158 lore raw
In reply to Greg Kroah-Hartman

At Mon, 15 Sep 2014 12:23:59 -0700,

Quoted 6 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 3.16.3 release. There are 158 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.

Quoted 6 lines

Responses should be made by Wed Sep 17 19:25:26 UTC 2014. Anything received after that time might be too late.

The whole patch series can be found in one patch at:

	kernel.org/pub/linux/kernel/v3.0/stable-review/patch-3.16.3-rc1.gz

and the diffstat can be found below.

All 3.10.55-rc1, 3.14.19-rc1, and 3.6.3-rc1 passed my test.

- Test Cases:
- Build this kernel.
- Boot this kernel.
- Build the latest mainline kernel with this kernel.

- Test Tool:
https://github.com/satoru-takeuchi/test-linux-stable

- Test Result (kernel .config, ktest config and test log):
http://satoru-takeuchi.org/test-linux-stable/results/<version>-<test datetime>.tar.xz

- Build Environment:
- OS: Debian Jessy x86_64
- CPU: Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz x 4
- memory: 8GB

- Test Target Environment:
- Debian Jessy x86_64 (KVM guest on the Build Environment)
- # of vCPU: 2
- memory: 2GB

Thanks,
Satoru

Quoted 651 lines

thanks,

greg k-h

-------------
Pseudo-Shortlog of commits:

Greg Kroah-Hartman <[email protected]>

    Linux 3.16.3-rc1

David Howells <[email protected]>
KEYS: Fix termination condition in assoc array garbage collection

David Howells <[email protected]>
KEYS: Fix use-after-free in assoc_array_gc()

Pavel Shilovsky <[email protected]>
CIFS: Fix SMB2 readdir error handling

Linus Torvalds <[email protected]>
vfs: fix bad hashing of dentries

Mario Kleiner <[email protected]>

    drm/nouveau: Bump version from 1.1.1 to 1.1.2

Mario Kleiner <[email protected]>
drm/nouveau: Dis/Enable vblank irqs during suspend/resume.

Bart Van Assche <[email protected]>
IB/srp: Fix deadlock between host removal and multipathd

Jeff Moyer <[email protected]>
dm table: propagate QUEUE_FLAG_NO_SG_MERGE

Tejun Heo <[email protected]>
blkcg: don't call into policy draining if root_blkg is already gone

Roger Quadros <[email protected]>
mtd: nand: omap: Fix 1-bit Hamming code scheme, omap_calculate_ecc()

Kevin Hao <[email protected]>
mtd/ftl: fix the double free of the buffers allocated in build_maps()

Pavel Shilovsky <[email protected]>
CIFS: Fix wrong restart readdir for SMB1

Pavel Shilovsky <[email protected]>
CIFS: Fix wrong filename length for SMB2

Pavel Shilovsky <[email protected]>
CIFS: Fix directory rename error

Pavel Shilovsky <[email protected]>
CIFS: Fix wrong directory attributes after rename

Steve French <[email protected]>
CIFS: Possible null ptr deref in SMB2_tcon

Pavel Shilovsky <[email protected]>
CIFS: Fix async reading on reconnects

Pavel Shilovsky <[email protected]>
CIFS: Fix STATUS_CANNOT_DELETE error mapping for SMB2

Ilya Dryomov <[email protected]>
libceph: do not hard code max auth ticket len

Ilya Dryomov <[email protected]>
libceph: add process_one_ticket() helper

Sage Weil <[email protected]>
libceph: gracefully handle large reply messages from the mon

Ilya Dryomov <[email protected]>
libceph: set last_piece in ceph_msg_data_pages_cursor_init() correctly

Chris Mason <[email protected]>
xfs: don't zero partial page cache pages during O_DIRECT write

Dave Chinner <[email protected]>
xfs: don't zero partial page cache pages during O_DIRECT writes

Dave Chinner <[email protected]>
xfs: don't dirty buffers beyond EOF

Dave Chinner <[email protected]>
xfs: quotacheck leaves dquot buffers without verifiers

Dave Chinner <[email protected]>
xfs: ensure verifiers are attached to recovered buffers

Doug Ledford <[email protected]>
RDMA/uapi: Include socket.h in rdma_user_cm.h

Steve Wise <[email protected]>
RDMA/iwcm: Use a default listen backlog if needed

NeilBrown <[email protected]>
md/raid10: Fix memory leak when raid10 reshape completes.

NeilBrown <[email protected]>
md/raid10: fix memory leak when reshaping a RAID10.

NeilBrown <[email protected]>
md/raid6: avoid data corruption during recovery of double-degraded RAID6

NeilBrown <[email protected]>
md/raid5: avoid livelock caused by non-aligned writes.

NeilBrown <[email protected]>
md/raid1,raid10: always abort recover on write error.

Al Viro <[email protected]>
fix copy_tree() regression

Ilya Dryomov <[email protected]>
rbd: rework rbd_request_fn()

Al Viro <[email protected]>
__generic_file_write_iter(): fix handling of sync error after DIO

Vignesh Raman <[email protected]>
Bluetooth: Avoid use of session socket after the session gets freed

Johan Hedberg <[email protected]>
Bluetooth: Fix using uninitialized variable when pairing

Vladimir Davydov <[email protected]>
Bluetooth: never linger on process exit

Johan Hedberg <[email protected]>
Bluetooth: Fix tracking local SSP authentication requirement

Marcel Holtmann <[email protected]>
Bluetooth: Fix merge of advertising data and scan response data

Chin-Ran Lo <[email protected]>
Bluetooth: btmrvl: wait for HOST_SLEEP_ENABLE event in suspend

Al Viro <[email protected]>
fix EBUSY on umount() from MNT_SHRINKABLE

Al Viro <[email protected]>
get rid of propagate_umount() mistakenly treating slaves as busy.

Eric W. Biederman <[email protected]>
mnt: Add tests for unprivileged remount cases that have found to be faulty

Eric W. Biederman <[email protected]>
mnt: Change the default remount atime from relatime to the existing value

Eric W. Biederman <[email protected]>
mnt: Correct permission checks in do_remount

Eric W. Biederman <[email protected]>
mnt: Move the test for MNT_LOCK_READONLY from change_mount_flags into do_remount

Eric W. Biederman <[email protected]>
mnt: Only change user settable mount flags in remount

Steven Rostedt (Red Hat) <[email protected]>
ring-buffer: Up rb_iter_peek() loop count to 3

Steven Rostedt (Red Hat) <[email protected]>
ring-buffer: Always reset iterator to reader page

David Vrabel <[email protected]>
xen/events/fifo: reset control block and local HEADs on resume

Hans de Goede <[email protected]>
ACPI / video: Disable native_backlight on HP ENVY 15 Notebook PC

Hans de Goede <[email protected]>
ACPI / video: Add a disable_native_backlight quirk

Hans de Goede <[email protected]>
ACPI / video: Fix use_native_backlight selection logic

Jiri Kosina <[email protected]>
ACPI / cpuidle: fix deadlock between cpuidle_lock and cpu_hotplug.lock

Yasuaki Ishimatsu <[email protected]>
ACPI / scan: not cache _SUN value in struct acpi_device_pnp

Lv Zheng <[email protected]>
ACPI / EC: Add support to disallow QR_EC to be issued before completing previous QR_EC

Lv Zheng <[email protected]>
ACPI / EC: Add support to disallow QR_EC to be issued when SCI_EVT isn't set

Rafael J. Wysocki <[email protected]>
ACPI / scan: Allow ACPI drivers to bind to PNP device objects

Lan Tianyu <[email protected]>
ACPI: Run fixed event device notifications in process context

Alan Cox <[email protected]>
spi/pxa2xx: Add ACPI ID for Intel Braswell

Tang Chen <[email protected]>
ACPI / hotplug: Check scan handlers in acpi_scan_hot_remove()

David E. Box <[email protected]>
ACPICA: Namespace: Properly null terminate objects detached from a namespace node

David E. Box <[email protected]>
ACPICA: Utilities: Fix memory leak in acpi_ut_copy_iobject_to_iobject

Sebastian Reichel <[email protected]>
bq2415x_charger: Fix Atomic Sleep Bug

Ben Hutchings <[email protected]>
bfa: Fix undefined bit shift on big-endian architectures with 32-bit DMA address

Peter Ujfalusi <[email protected]>
ASoC: omap-twl4030: Fix typo in 2nd dai link's platform_name

Jarkko Nikula <[email protected]>
ASoC: rt5640: Do not allow regmap to use bulk read-write operations

Andreas F�rber <[email protected]>
ASoC: axi: Fix ADI AXI SPDIF specification

Daniel Mack <[email protected]>
ASoC: pxa-ssp: drop SNDRV_PCM_FMTBIT_S24_LE

Dan Carpenter <[email protected]>
ASoC: pxa: pxa-ssp: small leak in probe()

Jie Yang <[email protected]>
ASoC: Intel: Cleanup HSW pcm format support

Peter Ujfalusi <[email protected]>
ASoC: tlv320aic31xx: Do not ignore errors in aic31xx_device_init()

Jarkko Nikula <[email protected]>
ASoC: max98090: Fix missing free_irq

Daniel Mack <[email protected]>

    ASoC: adau1701: fix adau1701_reg_read()

Sylwester Nawrocki <[email protected]>
ASoC: samsung: Correct I2S DAI suspend/resume ops

Scott Jiang <[email protected]>
ASoC: blackfin: use samples to set silence

Praveen Diwakar <[email protected]>
ASoC: wm_adsp: Add missing MODULE_LICENSE

Qiao Zhou <[email protected]>
ASoC: pcm: fix dpcm_path_put in dpcm runtime update

Charles Keepax <[email protected]>
ASoC: wm8994: Prevent double lock of accdet_lock mutex on wm1811

Markos Chandras <[email protected]>
MIPS: CPS: Initialize EVA before bringing up VPEs from secondary cores

Markos Chandras <[email protected]>
MIPS: Malta: EVA: Rename 'eva_entry' to 'platform_eva_init'

Markos Chandras <[email protected]>
MIPS: EVA: Add new EVA header

Aaro Koskinen <[email protected]>
MIPS: OCTEON: make get_system_type() thread-safe

Markos Chandras <[email protected]>
MIPS: Malta: Improve system memory detection for '{e, }memsize' >= 2G

Markos Chandras <[email protected]>
MIPS: scall64-o32: Fix indirect syscall detection

Markos Chandras <[email protected]>
MIPS: syscall: Fix AUDIT value for O32 processes on MIPS64

Alex Smith <[email protected]>
MIPS: asm/reg.h: Make 32- and 64-bit definitions available at the same time

Huacai Chen <[email protected]>
MIPS: Remove BUG_ON(!is_fpu_owner()) in do_ade()

Huacai Chen <[email protected]>
MIPS: tlbex: Fix a missing statement for HUGETLB

Paul Burton <[email protected]>
MIPS: Prevent user from setting FCSR cause bits

James Hogan <[email protected]>
MIPS: smp-mt: Fix link error when PROC_FS=n

Alex Smith <[email protected]>
MIPS: ptrace: Avoid smp_processor_id() when retrieving FPU IR

Alex Smith <[email protected]>
MIPS: ptrace: Change GP regset to use correct core dump register layout

Alex Smith <[email protected]>
MIPS: ptrace: Test correct task's flags in task_user_regset_view()

Alex Smith <[email protected]>
MIPS: O32/32-bit: Fix bug which can cause incorrect system call restarts

Jeffrey Deans <[email protected]>
MIPS: GIC: Prevent array overrun

Tony Battersby <[email protected]>
fix regression in SCSI_IOCTL_SEND_COMMAND

Juergen Gross <[email protected]>
SCSI: save command pool address of Scsi_Host

Bart Van Assche <[email protected]>
scsi_transport_srp: Fix fast_io_fail_tmo=dev_loss_tmo=off behavior

Janusz Dziemidowicz <[email protected]>
scsi: do not issue SCSI RSOC command to Promise Vtrak E610f

Martin K. Petersen <[email protected]>
scsi: add a blacklist flag which enables VPD page inquiries

Hannes Reinecke <[email protected]>
scsi_scan: Restrict sequential scan to 256 LUNs

K. Y. Srinivasan <[email protected]>
drivers: scsi: storvsc: Correctly handle TEST_UNIT_READY failure

K. Y. Srinivasan <[email protected]>
drivers: scsi: storvsc: Set srb_flags in all cases

K. Y. Srinivasan <[email protected]>
Drivers: scsi: storvsc: Fix a bug in handling VMBUS protocol version

K. Y. Srinivasan <[email protected]>
Drivers: scsi: storvsc: Set cmd_per_lun to reflect value supported by the Host

K. Y. Srinivasan <[email protected]>
Drivers: scsi: storvsc: Change the limits to reflect the values on the host

K. Y. Srinivasan <[email protected]>
Drivers: scsi: storvsc: Filter commands based on the storage protocol version

K. Y. Srinivasan <[email protected]>
Drivers: scsi: storvsc: Implement a eh_timed_out handler

James Bottomley <[email protected]>
scsi: use short driver name for per-driver cmd slab caches

Aneesh Kumar K.V <[email protected]>
powerpc/thp: Use ACCESS_ONCE when loading pmdp

Aneesh Kumar K.V <[email protected]>
powerpc/thp: Invalidate with vpn in loop

Aneesh Kumar K.V <[email protected]>
powerpc/thp: Handle combo pages in invalidate

Aneesh Kumar K.V <[email protected]>
powerpc/thp: Invalidate old 64K based hash page mapping before insert of 4k pte

Aneesh Kumar K.V <[email protected]>
powerpc/thp: Don't recompute vsid and ssize in loop on invalidate

Aneesh Kumar K.V <[email protected]>
powerpc/thp: Add write barrier after updating the valid bit

Gavin Shan <[email protected]>
powerpc/pseries: Avoid deadlock on removing ddw

Gavin Shan <[email protected]>
powerpc/pseries: Failure on removing device node

Aneesh Kumar K.V <[email protected]>
powerpc/mm: Use read barrier when creating real_pte

Andrey Utkin <[email protected]>
powerpc/mm/numa: Fix break placement

Vaidyanathan Srinivasan <[email protected]>
powerpc/cpuidle: Fix parsing of idle state flags from device-tree

Felipe Balbi <[email protected]>
regulator: tps65218: fix DCDC4 linear voltage range

Nikesh Oswal <[email protected]>
regulator: arizona-ldo1: remove bypass functionality

Tony Lindgren <[email protected]>
mfd: twl4030-power: Fix PM idle pin configuration to not conflict with regulators

Jeff Mahoney <[email protected]>
drivers/mfd/rtsx_usb.c: export device table

Michael Welling <[email protected]>
mfd: omap-usb-host: Fix improper mask use.

Sasha Levin <[email protected]>
kernel/smp.c:on_each_cpu_cond(): fix warning in fallback path

Li Zhong <[email protected]>
mm: fix potential infinite loop in dissolve_free_huge_pages()

Pranith Kumar <[email protected]>
sh: fix build error by adding generic ioport_{map/unmap}()

Ben Hutchings <[email protected]>
ocfs2: do not write error flag to user structure we cannot copy from/to

Jan Kara <[email protected]>
fanotify: fix double free of pending permission events

Eric Paris <[email protected]>
CAPABILITIES: remove undefined caps from all processes

Stefan Berger <[email protected]>
tpm: Properly clean sysfs entries in error path

Jason Gunthorpe <[email protected]>
tpm: Provide a generic means to override the chip returned timeouts

Jarkko Sakkinen <[email protected]>
tpm: missing tpm_chip_put in tpm_get_random()

Guenter Roeck <[email protected]>
firmware: Do not use WARN_ON(!spin_is_locked())

Alex Deucher <[email protected]>
drm/radeon: use packet2 for nop on hawaii with old firmware

Vaidyanathan Srinivasan <[email protected]>
powerpc/cpufreq: Add pr_warn() on OPAL firmware failures

Christian Borntraeger <[email protected]>
s390/locking: Reenable optimistic spinning

Mark A. Greer <[email protected]>
spi: omap2-mcspi: Configure hardware when slave driver changes mode

Thomas Petazzoni <[email protected]>
spi: orion: fix incorrect handling of cell-index DT property

Joerg Roedel <[email protected]>
iommu/amd: Fix cleanup_domain for mass device removal

Joerg Roedel <[email protected]>
iommu/vt-d: Defer domain removal if device is assigned to a driver

Gavin Shan <[email protected]>
powerpc/powernv: Fix IOMMU group lost

Alex Williamson <[email protected]>
iommu/vt-d: Exclude devices using RMRRs from IOMMU API domains

Paul Bolle <[email protected]>
media: sms: Remove CONFIG_ prefix from Kconfig symbols

Laurent Pinchart <[email protected]>
media: v4l: vb2: Fix stream start and buffer completion race

Laurent Pinchart <[email protected]>
media: v4l: vsp1: Remove the unneeded vsp1_video_buffer video field

Philipp Zabel <[email protected]>
media: mt9v032: fix hblank calculation

Salva Peir� <[email protected]>
media: media-device: Remove duplicated memset() in media_enum_entities()

Mauro Carvalho Chehab <[email protected]>
media: au0828: Only alt setting logic when needed

Mauro Carvalho Chehab <[email protected]>

    media: xc4000: Fix get_frequency()

Mauro Carvalho Chehab <[email protected]>

    media: xc5000: Fix get_frequency()

Jan Kara <[email protected]>
reiserfs: Fix use after free in journal teardown

Jeff Mahoney <[email protected]>
reiserfs: fix corruption introduced by balance_leaf refactor

-------------

Diffstat:

 .../devicetree/bindings/sound/adi,axi-spdif-tx.txt |   2 +-
 Makefile                                           |   4 +-
 arch/arm/boot/dts/omap3-n900.dts                   |   2 +-
 arch/mips/cavium-octeon/setup.c                    |  18 +-
 arch/mips/include/asm/eva.h                        |  43 ++++
 .../include/asm/mach-malta/kernel-entry-init.h     |  22 +-
 arch/mips/include/asm/ptrace.h                     |   2 +-
 arch/mips/include/asm/reg.h                        | 260 +++++++++++++--------
 arch/mips/include/asm/syscall.h                    |   8 +-
 arch/mips/kernel/binfmt_elfo32.c                   |  32 ++-
 arch/mips/kernel/cps-vec.S                         |   4 +
 arch/mips/kernel/irq-gic.c                         |   6 +-
 arch/mips/kernel/ptrace.c                          | 196 +++++++++++++---
 arch/mips/kernel/ptrace32.c                        |   2 +-
 arch/mips/kernel/scall64-o32.S                     |  12 +-
 arch/mips/kernel/smp-mt.c                          |   2 +
 arch/mips/kernel/unaligned.c                       |   1 -
 arch/mips/mm/tlbex.c                               |   1 +
 arch/mips/mti-malta/malta-memory.c                 |  14 +-
 arch/powerpc/include/asm/machdep.h                 |   6 +-
 arch/powerpc/include/asm/pgtable-ppc64.h           |   2 +-
 arch/powerpc/include/asm/pte-hash64-64k.h          |  30 ++-
 arch/powerpc/kernel/iommu.c                        |  38 +--
 arch/powerpc/mm/hash_native_64.c                   |  40 +---
 arch/powerpc/mm/hugepage-hash64.c                  |  88 ++++++-
 arch/powerpc/mm/numa.c                             |   2 +-
 arch/powerpc/mm/pgtable_64.c                       |  38 +--
 arch/powerpc/mm/tlb_hash64.c                       |   2 +-
 arch/powerpc/platforms/powernv/pci-ioda.c          |   2 +-
 arch/powerpc/platforms/pseries/hotplug-memory.c    |   2 +-
 arch/powerpc/platforms/pseries/iommu.c             |  20 +-
 arch/powerpc/platforms/pseries/lpar.c              |  20 +-
 arch/s390/Kconfig                                  |   1 +
 arch/sh/include/asm/io_noioport.h                  |  11 +
 block/blk-cgroup.c                                 |   7 +
 block/scsi_ioctl.c                                 |   9 +-
 drivers/acpi/acpica/nsobject.c                     |  11 +
 drivers/acpi/acpica/utcopy.c                       |   6 +
 drivers/acpi/ec.c                                  |  21 +-
 drivers/acpi/processor_idle.c                      |   4 +-
 drivers/acpi/scan.c                                |  35 +--
 drivers/acpi/video.c                               |  45 +++-
 drivers/block/rbd.c                                | 196 ++++++++++------
 drivers/bluetooth/btmrvl_drv.h                     |   1 +
 drivers/bluetooth/btmrvl_main.c                    |  25 +-
 drivers/char/tpm/tpm-interface.c                   |  73 ++++--
 drivers/char/tpm/tpm_tis.c                         |  31 +++
 drivers/cpufreq/powernv-cpufreq.c                  |  18 +-
 drivers/cpuidle/cpuidle-powernv.c                  |  16 +-
 drivers/firmware/efi/vars.c                        |   8 +-
 drivers/gpu/drm/nouveau/nouveau_display.c          |  11 +
 drivers/gpu/drm/nouveau/nouveau_drm.h              |   4 +-
 drivers/gpu/drm/radeon/cik.c                       |  13 +-
 drivers/infiniband/core/iwcm.c                     |  27 +++
 drivers/infiniband/ulp/srp/ib_srp.c                |  38 ++-
 drivers/iommu/amd_iommu.c                          |  10 +-
 drivers/iommu/intel-iommu.c                        |  57 ++++-
 drivers/md/dm-table.c                              |  13 ++
 drivers/md/raid1.c                                 |   8 +-
 drivers/md/raid10.c                                |  14 +-
 drivers/md/raid5.c                                 |   4 +-
 drivers/media/common/siano/Kconfig                 |   3 +-
 drivers/media/i2c/mt9v032.c                        |   4 +-
 drivers/media/media-device.c                       |   2 -
 drivers/media/platform/vsp1/vsp1_video.c           |   2 -
 drivers/media/platform/vsp1/vsp1_video.h           |   1 -
 drivers/media/tuners/xc4000.c                      |  20 +-
 drivers/media/tuners/xc5000.c                      |  22 +-
 drivers/media/usb/au0828/au0828-video.c            |  34 +--
 drivers/media/v4l2-core/videobuf2-core.c           |   4 +-
 drivers/mfd/omap-usb-host.c                        |   2 +-
 drivers/mfd/rtsx_usb.c                             |   1 +
 drivers/mfd/twl4030-power.c                        |  20 +-
 drivers/mtd/ftl.c                                  |   1 -
 drivers/mtd/nand/omap2.c                           |   2 +-
 drivers/power/bq2415x_charger.c                    |   8 +-
 drivers/regulator/arizona-ldo1.c                   |   2 -
 drivers/regulator/tps65218-regulator.c             |   2 +-
 drivers/scsi/bfa/bfa_ioc.h                         |   2 +-
 drivers/scsi/scsi.c                                |  16 +-
 drivers/scsi/scsi_devinfo.c                        |   1 +
 drivers/scsi/scsi_scan.c                           |  16 +-
 drivers/scsi/scsi_transport_srp.c                  |   3 +-
 drivers/scsi/sd.c                                  |   5 +
 drivers/scsi/storvsc_drv.c                         | 113 ++++++---
 drivers/spi/spi-omap2-mcspi.c                      |  14 ++
 drivers/spi/spi-orion.c                            |  10 +-
 drivers/spi/spi-pxa2xx.c                           |   1 +
 drivers/xen/events/events_fifo.c                   |  48 ++--
 fs/cifs/cifsglob.h                                 |   7 +-
 fs/cifs/file.c                                     |   6 +-
 fs/cifs/inode.c                                    |  11 +-
 fs/cifs/readdir.c                                  |   6 +-
 fs/cifs/smb1ops.c                                  |   7 +
 fs/cifs/smb2file.c                                 |   2 +-
 fs/cifs/smb2inode.c                                |   2 +-
 fs/cifs/smb2maperror.c                             |   4 +-
 fs/cifs/smb2ops.c                                  |  11 +-
 fs/cifs/smb2pdu.c                                  |  14 +-
 fs/dcache.c                                        |   3 +-
 fs/namei.c                                         |   4 +-
 fs/namespace.c                                     | 100 ++++++--
 fs/notify/fanotify/fanotify.c                      |   9 +-
 fs/notify/fanotify/fanotify_user.c                 |  12 +
 fs/notify/notification.c                           |  18 +-
 fs/ocfs2/ioctl.c                                   | 129 ++++------
 fs/pnode.c                                         |   1 +
 fs/proc/array.c                                    |  11 +-
 fs/reiserfs/do_balan.c                             | 111 +++++----
 fs/reiserfs/journal.c                              |  22 +-
 fs/reiserfs/lbalance.c                             |   5 +-
 fs/reiserfs/reiserfs.h                             |   9 +-
 fs/reiserfs/super.c                                |   6 +-
 fs/xfs/xfs_aops.c                                  |  61 +++++
 fs/xfs/xfs_dquot.c                                 |   3 +-
 fs/xfs/xfs_file.c                                  |  21 +-
 fs/xfs/xfs_log_recover.c                           |  51 ++--
 fs/xfs/xfs_qm.c                                    |   8 +-
 include/acpi/acpi_bus.h                            |   1 -
 include/linux/capability.h                         |   5 +-
 include/linux/fsnotify_backend.h                   |   2 +
 include/linux/mount.h                              |   9 +-
 include/linux/tpm.h                                |   3 +
 include/scsi/scsi_device.h                         |   1 +
 include/scsi/scsi_devinfo.h                        |   5 +
 include/uapi/rdma/rdma_user_cm.h                   |   1 +
 kernel/audit.c                                     |   2 +-
 kernel/capability.c                                |   4 +
 kernel/smp.c                                       |   2 +-
 kernel/trace/ring_buffer.c                         |  31 ++-
 lib/assoc_array.c                                  |   6 +-
 mm/filemap.c                                       |   2 +-
 mm/hugetlb.c                                       |   3 +
 net/bluetooth/hci_event.c                          |  23 +-
 net/bluetooth/l2cap_sock.c                         |   3 +-
 net/bluetooth/rfcomm/core.c                        |   7 +-
 net/bluetooth/rfcomm/sock.c                        |   3 +-
 net/bluetooth/sco.c                                |   6 +-
 net/ceph/auth_x.c                                  | 256 ++++++++++----------
 net/ceph/messenger.c                               |   2 +-
 net/ceph/mon_client.c                              |   8 +
 security/commoncap.c                               |   3 +
 sound/soc/blackfin/bf5xx-i2s-pcm.c                 |   8 +-
 sound/soc/codecs/adau1701.c                        |   6 +-
 sound/soc/codecs/max98090.c                        |   2 +-
 sound/soc/codecs/rt5640.c                          |   1 +
 sound/soc/codecs/tlv320aic31xx.c                   |   9 +-
 sound/soc/codecs/wm8994.c                          |   9 +-
 sound/soc/codecs/wm_adsp.c                         |   2 +
 sound/soc/intel/sst-baytrail-pcm.c                 |   2 +-
 sound/soc/intel/sst-haswell-pcm.c                  |  27 ++-
 sound/soc/omap/omap-twl4030.c                      |   2 +-
 sound/soc/pxa/pxa-ssp.c                            |   7 +-
 sound/soc/samsung/i2s.c                            |  16 +-
 sound/soc/soc-pcm.c                                |   1 +
 tools/testing/selftests/Makefile                   |   1 +
 tools/testing/selftests/mount/Makefile             |  17 ++
 .../selftests/mount/unprivileged-remount-test.c    | 242 +++++++++++++++++++
 158 files changed, 2370 insertions(+), 1021 deletions(-)
author maintainer
#159 lore raw
Quoted 33 lines · Satoru Takeuchi

At Mon, 15 Sep 2014 12:23:59 -0700,

Quoted 6 lines · Greg Kroah-Hartman

This is the start of the stable review cycle for the 3.16.3 release. There are 158 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.

Quoted 6 lines

Responses should be made by Wed Sep 17 19:25:26 UTC 2014. Anything received after that time might be too late.

The whole patch series can be found in one patch at:

	kernel.org/pub/linux/kernel/v3.0/stable-review/patch-3.16.3-rc1.gz

and the diffstat can be found below.

All 3.10.55-rc1, 3.14.19-rc1, and 3.6.3-rc1 passed my test.

- Test Cases:
- Build this kernel.
- Boot this kernel.
- Build the latest mainline kernel with this kernel.

- Test Tool:
https://github.com/satoru-takeuchi/test-linux-stable

- Test Result (kernel .config, ktest config and test log):
http://satoru-takeuchi.org/test-linux-stable/results/<version>-<test datetime>.tar.xz

- Build Environment:
- OS: Debian Jessy x86_64
- CPU: Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz x 4
- memory: 8GB

Quoted 4 lines

- Test Target Environment:
- Debian Jessy x86_64 (KVM guest on the Build Environment)
- # of vCPU: 2
- memory: 2GB

Thanks for testing and letting me know.

greg k-h