Commit Graph

637623 Commits

Author SHA1 Message Date
Johan Hovold
cbec225bcd USB: serial: digi_acceleport: fix OOB data sanity check
am: e1533c4615

Change-Id: I11a587042880ad2b13633b9a761e2ecf744225af
2017-03-18 11:30:17 +00:00
Johan Hovold
e1533c4615 USB: serial: digi_acceleport: fix OOB data sanity check
commit 2d38088921 upstream.

Make sure to check for short transfers to avoid underflow in a loop
condition when parsing the receive buffer.

Also fix an off-by-one error in the incomplete sanity check which could
lead to invalid data being parsed.

Fixes: 8c209e6782 ("USB: make actual_length in struct urb field u32")
Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-18 19:14:26 +08:00
Greg Hackmann
2a3c6e6396 ANDROID: sched: fix duplicate sched_group_energy const specifiers
EAS uses "const struct sched_group_energy * const" fairly consistently.
But a couple of places swap the "*" and second "const", making the
pointer mutable.

In the case of struct sched_group, "* const" would have been an error,
since init_sched_energy() writes to sd->groups->sge.

Change-Id: Ic6a8fcf99e65c0f25d9cc55c32625ef3ca5c9aca
Signed-off-by: Greg Hackmann <ghackmann@google.com>
2017-03-17 09:48:24 -07:00
yangdongdong
481aeb2911 ANDROID: power: align wakeup_sources format
This aligns every column of elements in wakeup_sources to
conveniently check any specific column for suspicious power
consumption wakeup source or for other easily human readable purpose.

Change-Id: Iac8b0538170fcc0cca9f6857c15d9a4c62c8865e
Signed-off-by: yangdongdong <yangdongdong@xiaomi.com>
2017-03-16 10:42:42 -07:00
Bowgo Tsai
80f190c3be ANDROID: dm: android-verity: allow disable dm-verity for Treble VTS
To start Treble VTS test, a single AOSP system.img will be flashed onto
the device. The size of AOSP system.img might be different than the
system partition size on device, making locating verity metadata fail
(at the last fixed size of the partition).

This change allows disabling dm-verity on system partition when the
device is unlocked (orange device state) with invalid metadata.

BUG: 35603549
Test: boot device with a different-sized system.img, checks verity is
      not enabled via:

          "adb shell getprop | grep partition.system.verified"

Change-Id: Ide78dca4eefde4ab019e4b202d3f590dcb1bb506
Signed-off-by: Bowgo Tsai <bowgotsai@google.com>
2017-03-15 11:25:38 -07:00
Greg Kroah-Hartman
47c0adf050 Linux 4.9.15
am: d962bf8dd9

Change-Id: I055dc341cd4382f0ed26c22dda9b48689de8205e
2017-03-15 02:28:37 +00:00
K. Y. Srinivasan
9b301b2cdf drivers: hv: Turn off write permission on the hypercall page
am: 182ff0ebbd

Change-Id: Ia827064dcb01c718ec90e7ae84eff5906ee3cbf8
2017-03-15 02:28:29 +00:00
OGAWA Hirofumi
dcde000edf fat: fix using uninitialized fields of fat_inode/fsinfo_inode
am: 63e873679b

Change-Id: Ie72d319ca8b0e40c1d42e9548782ef1e6f3bfc17
2017-03-15 02:28:19 +00:00
Tahsin Erdogan
e9400d28a2 mm: do not call mem_cgroup_free() from within mem_cgroup_alloc()
am: 16ace91043

Change-Id: I178827e0fb40abeade0e4a148a8b09f8dcb0f32d
2017-03-15 02:28:10 +00:00
Kirill A. Shutemov
9512164bf3 thp: fix another corner case of munlock() vs. THPs
am: 1771fc58a3

Change-Id: Ib24b4d9f9a51c22c36ca49ce28916992267e9400
2017-03-15 02:28:01 +00:00
Daniel Borkmann
821079ce42 x86/tlb: Fix tlb flushing when lguest clears PGE
am: 2f18b39499

Change-Id: I7becb72b54a3c5da3fcbef5019d99cff2978b953
2017-03-15 02:27:52 +00:00
Dan Williams
810aa43ff7 x86, mm: fix gup_pte_range() vs DAX mappings
am: 91cdd9d796

Change-Id: I925fe226ea09b4a0b2f1ec5eac509c1bf55f18f0
2017-03-15 02:27:42 +00:00
Arnd Bergmann
4944178fd7 libceph: use BUG() instead of BUG_ON(1)
am: 290215a2ab

Change-Id: I57b1ea589696f8f4998ca44b73f4fbb7dfc2e5d2
2017-03-15 02:27:33 +00:00
Hans de Goede
9fa3ad1625 drm/i915: Fix not finding the VBT when it overlaps with OPREGION_ASLE_EXT
am: ff3bcdc9b5

Change-Id: Ib8f2eb7f5e2260d34f95b72ae25bc6a57ebd842b
2017-03-15 02:27:24 +00:00
Ville Syrjl
72282dbe6b drm/i915: Avoid spurious WARNs about the wrong pipe in the PPS code
am: 686ea5862e

Change-Id: Ia2e54ed7a09853c55ec83ab1eb1147c1779acd8c
2017-03-15 02:27:15 +00:00
Chris Wilson
98a4eb93f8 drm: Cancel drm_fb_helper_resume_work on unload
am: 967e17bcc9

Change-Id: I9ec04db6a128317a0cdd70fb15431b8a48c355c4
2017-03-15 02:27:05 +00:00
Chris Wilson
bce3604e88 drm: Cancel drm_fb_helper_dirty_work on unload
am: 9edc456fe6

Change-Id: Ib6287acc5005f59a643b45741f5f78c7b655a6b7
2017-03-15 02:26:56 +00:00
Chris Wilson
8025203892 drm/i915/gvt: Disable access to stolen memory as a guest
am: 868a747c77

Change-Id: I54d69f72f872aabcfd6a36fd8c9abbb7827846b3
2017-03-15 02:26:46 +00:00
Dan Carpenter
3b00357811 drm/atomic: fix an error code in mode_fixup()
am: f72b751f43

Change-Id: I18838dc3ede11f6392a8d603a73c69cae8e23814
2017-03-15 02:26:37 +00:00
Fabio Estevam
38a92554c3 drm/imx: imx-tve: Do not set the regulator voltage
am: 98620b564f

Change-Id: Ied1d961e246dfa08b4027323a1a5d37409c0a2a0
2017-03-15 02:26:27 +00:00
Nandor Han
b006c34fc2 dmaengine: imx-sdma - correct the dma transfer residue calculation
am: 3a654a8593

Change-Id: I02761c73b18a16b3de0fed6f9c0fd0a7c754e8d0
2017-03-15 02:26:18 +00:00
Thomas Hellstrom
5565d5e545 drm/vmwgfx: Work around drm removal of control nodes
am: 56a567de55

Change-Id: Ifb3022a9ef4036af99432a337fe40a22866e0c53
2017-03-15 02:26:04 +00:00
Michel Dnzer
1d71e2fac9 drm/ttm: Make sure BOs being swapped out are cacheable
am: 55f47122c2

Change-Id: Ic2b524170b46affcd1ccf2b52d2210f8aa011a50
2017-03-15 02:25:54 +00:00
Tomeu Vizoso
0f6fb6b1f4 drm/edid: Add EDID_QUIRK_FORCE_8BPC quirk for Rotel RSX-1058
am: ec8e40b117

Change-Id: I32ab57bf5cffa49847cf84ba7013c0e4f300a5b6
2017-03-15 02:25:45 +00:00
Y.C. Chen
fadc487f27 drm/ast: Fix AST2400 POST failure without BMC FW or VBIOS
am: f96c10c2bd

Change-Id: I5a0a780d3d8fd6b8e53037f46c16988a73a64846
2017-03-15 02:25:35 +00:00
Y.C. Chen
5e46c8da51 drm/ast: Call open_key before enable_mmio in POST code
am: 5da03582e2

Change-Id: Ide77ca452127c4f35ad5f6665031880663dc9ffe
2017-03-15 02:25:25 +00:00
Y.C. Chen
1868ace5b5 drm/ast: Fix test for VGA enabled
am: 54aa80e300

Change-Id: I5c44e2f1f52c90ad81be0e200960a9fd1b73b4f5
2017-03-15 02:25:16 +00:00
Alex Deucher
c0f3104f85 drm/amdgpu: add more cases to DCE11 possible crtc mask setup
am: 0734a3213c

Change-Id: I51bb0c57562e149dd5946781b9081860c0b338b8
2017-03-15 02:25:07 +00:00
Johannes Berg
c60a5987a9 mac80211: use driver-indicated transmitter STA only for data frames
am: b507df2e23

Change-Id: I6bde405c3e252d9ac1eaa605f8997245bb2f482b
2017-03-15 02:24:58 +00:00
Felix Fietkau
855ee12931 mac80211: don't handle filtered frames within a BA session
am: 3981384999

Change-Id: Ib18afd2b459eca059c16750a33dbcc8a0386f0e8
2017-03-15 02:24:50 +00:00
Sara Sharon
2159c30e7f mac80211: don't reorder frames with SN smaller than SSN
am: 42e7f37714

Change-Id: I43a58e1e61d3ce776a11afef684533f940c74e38
2017-03-15 02:24:41 +00:00
Matt Chen
fef4174099 mac80211: flush delayed work when entering suspend
am: b116db0da1

Change-Id: I51bdbb788a9287a06e36cdda68d35f67983a65e5
2017-03-15 02:24:30 +00:00
Dan Williams
0f20cb8cdb nfit, libnvdimm: fix interleave set cookie calculation
am: 9ad1571da2

Change-Id: I764f42679b5bdabf8720148340aba5e23cbb15f0
2017-03-15 02:24:21 +00:00
Max Filippov
92ac0a477b xtensa: move parse_tag_fdt out of #ifdef CONFIG_BLK_DEV_INITRD
am: a7b9c9ddb6

Change-Id: Ibb93922bbf0c49b31d80ffa31de23f058f7e08d1
2017-03-15 02:24:12 +00:00
Clemens Gruber
59d39c255b pwm: pca9685: Fix period change with same duty cycle
am: 019c088dc4

Change-Id: Id57b7144856bd8bd082638dc16d98556d388195d
2017-03-15 02:24:03 +00:00
Trond Myklebust
49fe05a803 nlm: Ensure callback code also checks that the files match
am: 1f2f16c7b7

Change-Id: I43a97d53ff81c6eb8ae23b92ede80f3917806ede
2017-03-15 02:23:54 +00:00
Gavin Shan
9e380d66bc drivers/pci/hotplug: Fix initial state for empty slot
am: 4f77c55c3a

Change-Id: I06aecc89657e692b88615195afccf6e47ed6b136
2017-03-15 02:23:46 +00:00
Gavin Shan
07163c8825 drivers/pci/hotplug: Handle presence detection change properly
am: 1afe7b4ac3

Change-Id: Ia1259f87fb6dcb038d42ca40a35fb43f7167b001
2017-03-15 02:23:37 +00:00
Nicholas Bellinger
c45b44d5d8 target: Fix NULL dereference during LUN lookup + active I/O shutdown
am: 17ea11d553

Change-Id: I2c9b9e4596cdb9bb666de90603c41d4dfc26aaea
2017-03-15 02:23:28 +00:00
Gavin Shan
9ac636111c pci/hotplug/pnv-php: Disable surprise hotplug capability on conflicts
am: 54eff720c9

Change-Id: I1420772893847955dfd3ae3c1746a72e8cb849e3
2017-03-15 02:23:19 +00:00
Gavin Shan
867461fafe pci/hotplug/pnv-php: Remove WARN_ON() in pnv_php_put_slot()
am: 4ee3508f7a

Change-Id: I284c8381fe4eafd18062463a0e204f335dc3ccca
2017-03-15 02:23:10 +00:00
Jeff Layton
0f0cab5276 ceph: remove req from unsafe list when unregistering it
am: 5da90d0018

Change-Id: I7bfcdd15b663f7f79098beedc2e8baaa7db23331
2017-03-15 02:23:01 +00:00
Steven Rostedt (VMware)
ce337fd88d ktest: Fix child exit code processing
am: ff61e0123b

Change-Id: I48042d180623cda33ac13019be30c802a00722fc
2017-03-15 02:22:51 +00:00
Boris Brezillon
6fa9f8055f memory/atmel-ebi: Fix ns <-> cycles conversions
am: 1f2ca141ec

Change-Id: I1e564f59c0cae201de5bf92275a2809024b7fd49
2017-03-15 02:22:42 +00:00
Peter Zijlstra
debf88db0f orangefs: Use RCU for destroy_inode
am: b2b0f6ffd3

Change-Id: I89639d90d673b86119bdf6043ba608f30cf3f0fb
2017-03-15 02:22:34 +00:00
Eric W. Biederman
5feec54044 fs: Better permission checking for submounts
am: d3381fab77

Change-Id: I5f0019d2c86afd0a055f823f6751db9f6378e38f
2017-03-15 02:22:24 +00:00
Bart Van Assche
a2898ad07e IB/srp: Fix race conditions related to task management
am: 48e2181b0b

Change-Id: I171e07c10757212c74ebc5c01341b2b9752bf1f6
2017-03-15 02:22:15 +00:00
Bart Van Assche
23011815f9 IB/srp: Avoid that duplicate responses trigger a kernel bug
am: d5d1d2cc4b

Change-Id: I1d6058be1db22b0853190d0a932dc9c1136a5110
2017-03-15 02:22:05 +00:00
Bart Van Assche
9b6ab4a0c2 IB/SRP: Avoid using IB_MR_TYPE_SG_GAPS
am: 516a12ab11

Change-Id: I07efb0732a142e665ff782a7a9d6fc89d6609f12
2017-03-15 02:21:56 +00:00
Leon Romanovsky
9d68e9eae5 IB/mlx5: Fix out-of-bound access
am: 04f16db056

Change-Id: Id1506c11832c0efa03ec281d877295fe4a077ac4
2017-03-15 02:21:45 +00:00