Commit graph

567489 commits

Author SHA1 Message Date
Jan Kara
3e0e74cef5 ext4: trim allocation requests to group size
am: 8774c73cf6

Change-Id: I7ef4daf4451a8e8373f8e6e0cf07e08c676c9921
2017-03-12 08:18:07 +00:00
Roman Pen
5dc0688be0 ext4: do not polute the extents cache while shifting extents
am: a3068b3e80

Change-Id: I8a8eb01160a8dca91e99709f5247b9d159847c70
2017-03-12 08:17:57 +00:00
Roman Pen
9c0e44491b ext4: Include forgotten start block on fallocate insert range
am: 3daefdae5f

Change-Id: I96ed2bfb756e3a37c07656d632660757c100065b
2017-03-12 08:17:48 +00:00
Omar Sandoval
b267b4c1f8 loop: fix LO_FLAGS_PARTSCAN hang
am: cd3db55c64

Change-Id: I19b2069183011982702a38dfad5f2b589bbd3f4e
2017-03-12 08:17:38 +00:00
Ming Lei
4e15ddc811 block/loop: fix race between I/O and set_status
am: 356d71df73

Change-Id: I57316c57bb82477bd2e6d24047b9399016c48348
2017-03-12 08:17:29 +00:00
Theodore Ts'o
438bedf5bf jbd2: don't leak modified metadata buffers on an aborted journal
am: 973f40f368

Change-Id: I3c95a6a0e9d2daa4713da89a47c3aac6b6193d02
2017-03-12 08:17:19 +00:00
Mathieu Desnoyers
cd5e303ecd Fix: Disable sys_membarrier when nohz_full is enabled
am: c0ef1f537a

Change-Id: I3650becd64c5156d24dee601990d48c68057e81d
2017-03-12 08:17:10 +00:00
Hannes Reinecke
fbf3cf0c83 sd: get disk reference in sd_check_events()
am: ea240cfed9

Change-Id: Ie5d8f2f3588859d8a4f4466c158223afbf8e2ecb
2017-03-12 08:17:00 +00:00
Hannes Reinecke
2e4caeeccf scsi: use 'scsi_device_from_queue()' for scsi_dh
am: 33950b56d2

Change-Id: Ie22776722d50f3c91cfdebd8e89284e123cf2648
2017-03-12 08:16:50 +00:00
Raghava Aditya Renukunta
51c24a5930 scsi: aacraid: Reorder Adapter status check
am: 2dc9a859eb

Change-Id: Idbd0d6bc38a75a802547ad44280c72f83d930604
2017-03-12 08:16:41 +00:00
Long Li
ebf84b4166 scsi: storvsc: properly set residual data length on errors
am: 18dbfcae65

Change-Id: Icd112397502c0caed46d5c3613e9cb2720901e6f
2017-03-12 08:16:33 +00:00
Long Li
15c7c84688 scsi: storvsc: properly handle SRB_ERROR when sense message is present
am: 80bccab34a

Change-Id: Ia376c2f0f0a0b1328b60ed5fb707fe5a12ec64ad
2017-03-12 08:16:23 +00:00
Long Li
1c933caeb8 scsi: storvsc: use tagged SRB requests if supported by the device
am: 5cdc8193ac

Change-Id: Id08acaf5e82dcfb9f447ba4e375f97423ae216b4
2017-03-12 08:16:12 +00:00
Mikulas Patocka
ed15ac577e dm stats: fix a leaked s->histogram_boundaries array
am: 6a284310d5

Change-Id: Iffdf38daa52f8e2386d20f50ae62dae523c41991
2017-03-12 08:16:03 +00:00
Joe Thornber
48d4f39d94 dm cache: fix corruption seen when using cache > 2TB
am: fdea1f9721

Change-Id: Ife7330de88f3c77653c946783ea95ca393b3d1b4
2017-03-12 08:15:54 +00:00
Davidlohr Bueso
75e2698872 ipc/shm: Fix shmat mmap nil-page protection
am: f0ae01568e

Change-Id: I53489954b39ece583120b8462d57a969ab1e972f
2017-03-12 08:15:46 +00:00
Minchan Kim
656fedaf74 mm: do not access page->mapping directly on page_endio
am: c5c893e7c4

Change-Id: Ic37f4022408ccc77d7702ebc4be606bd94ad20e1
2017-03-12 08:15:36 +00:00
Vinayak Menon
5cc4831e1b mm: vmpressure: fix sending wrong events on underflow
am: 66f43a5768

Change-Id: I914c9c65e90dc02251788277937daca32fd59818
2017-03-12 08:15:27 +00:00
Gavin Shan
32125704fe mm/page_alloc: fix nodes for reclaim in fast path
am: 612e4679b8

Change-Id: I134dc72c598a798d4f3dead4421c269ae7bb3791
2017-03-12 08:15:17 +00:00
Ashok Raj
6082e028f3 iommu/vt-d: Tylersburg isoch identity map check is done too late.
am: 31dac0e870

Change-Id: I0e8dacd983deed5a478e50a4ce4c48622668e563
2017-03-12 08:15:08 +00:00
CQ Tang
9f53657d44 iommu/vt-d: Fix some macros that are incorrectly specified in intel-iommu
am: 07852563db

Change-Id: I19ddfcf5d9f41e3fc8580b6449b27c1485b06e16
2017-03-12 08:14:59 +00:00
Leonard Crestez
d461b88a36 regulator: Fix regulator_summary for deviceless consumers
am: 5cc0cd0e3a

Change-Id: I9bcef233094a090abaa0d344853f8f249ff5351f
2017-03-12 08:14:49 +00:00
Arnd Bergmann
5d8fa8946f staging: rtl: fix possible NULL pointer dereference
am: 272d60bfce

Change-Id: I49cd1afa12c293484de6c18eb31e67d2baa0a4d4
2017-03-12 08:14:40 +00:00
Hui Wang
6d2b913f5f ALSA: hda - Fix micmute hotkey problem for a lenovo AIO machine
am: 8c8f42c9a4

Change-Id: I0075697f99a22a1364d3ecdc993c1257662f9eb5
2017-03-12 08:14:31 +00:00
Takashi Iwai
1d0a0ca704 ALSA: hda - Add subwoofer support for Dell Inspiron 17 7000 Gaming
am: cd585d3ba5

Change-Id: I7d9b34fdcf5dcc2d88d5cd0c1ebf263eefcf6acf
2017-03-12 08:14:21 +00:00
Takashi Iwai
cc787f23a2 ALSA: seq: Fix link corruption by event error handling
am: 003aa34372

Change-Id: I5c14157cc11ff09f45950d0b9a58dcc2c22535d4
2017-03-12 08:14:11 +00:00
Takashi Iwai
10481abe18 ALSA: ctxfi: Fallback DMA mask to 32bit
am: 70dbc00f7e

Change-Id: If4ce0b2e8a727aa341bdd484eb920ba33f09707d
2017-03-12 08:14:01 +00:00
Takashi Iwai
5b01070e45 ALSA: timer: Reject user params with too small ticks
am: 9879f9d01a

Change-Id: I3fb699e66b0e89da94eea1124c89fedf9f2cc576
2017-03-12 08:13:51 +00:00
Jaroslav Kysela
b8ad06607a ALSA: hda - fix Lewisburg audio issue
am: b9bf1f0657

Change-Id: Ib9f0327ded792418c9c5d5531257fdacfef23ad8
2017-03-12 08:13:42 +00:00
Kai-Heng Feng
de7da8e6cd ALSA: hda/realtek - Cannot adjust speaker's volume on a Dell AIO
am: 1f4f37076d

Change-Id: I644061092b4149f275fa5de0354a57ad2711b9a7
2017-03-12 08:13:33 +00:00
Alexandre Belloni
6a56b6d975 ARM: dts: at91: Enable DMA on sama5d2_xplained console
am: 6b1d7b6f54

Change-Id: Id2e050faf5544cd7ea2cd5f414c851550ea59f70
2017-03-12 08:13:24 +00:00
Alexandre Belloni
264e78debe ARM: dts: at91: Enable DMA on sama5d4_xplained console
am: be83ed085f

Change-Id: Ia3caad88499707a3c3c011e29b89dc2197231ba4
2017-03-12 08:13:15 +00:00
Alexandre Belloni
ec78efab74 ARM: at91: define LPDDR types
am: b401418c6c

Change-Id: I3a3a6313fb6e75193fd502aa2b54401d218493c0
2017-03-12 08:13:05 +00:00
Randy Dunlap
99065c3e46 media: fix dm1105.c build error
am: f3a0b20040

Change-Id: Icd2cd4503a794b66d64c45659b73f870d032eb65
2017-03-12 08:12:57 +00:00
Guennadi Liakhovetski
91c8ba257e uvcvideo: Fix a wrong macro
am: b0bde9f6a0

Change-Id: I5c521825b9659f7ff74b8708550930f86a278b91
2017-03-12 08:12:47 +00:00
Nicolas Iooss
2d93d7bb63 am437x-vpfe: always assign bpp variable
am: 5988e73201

Change-Id: I2bdb0d627980fa6a38dd774e1f27c400edcbae76
2017-03-12 08:12:38 +00:00
Paul Burton
3a674057ac MIPS: Handle microMIPS jumps in the same way as MIPS32/MIPS64 jumps
am: ab7546e491

Change-Id: Idcfd907ca44b5d0e5231e07e1945eb7a1e874f39
2017-03-12 08:12:28 +00:00
Paul Burton
378772df95 MIPS: Calculate microMIPS ra properly when unwinding the stack
am: cc387ae089

Change-Id: Ic8e08f715b0137db795069024c05dbbdcba65355
2017-03-12 08:12:19 +00:00
Paul Burton
dfba5f8f76 MIPS: Fix is_jump_ins() handling of 16b microMIPS instructions
am: d75d675a05

Change-Id: I21332f13b7cb7a85cca19151ef909445879e2b44
2017-03-12 08:12:09 +00:00
Paul Burton
6e3b0aea46 MIPS: Fix get_frame_info() handling of microMIPS function size
am: 72a0cfae59

Change-Id: Id3a27d9cecbf32d7796c41fbd66865e04a0bf5a4
2017-03-12 08:12:01 +00:00
Paul Burton
e7503003f0 MIPS: Prevent unaligned accesses during stack unwinding
am: 2998bf60d3

Change-Id: I35cd0b6a76195d79d0416447d90f5168637c00dd
2017-03-12 08:11:51 +00:00
Paul Burton
c6e7fd7d72 MIPS: Clear ISA bit correctly in get_frame_info()
am: 0d45490221

Change-Id: I531d407a5a29d93c60ac199b7ff7d13ced328c05
2017-03-12 08:11:42 +00:00
Felix Fietkau
b3ec549b78 MIPS: Lantiq: Keep ethernet enabled during boot
am: f1be0f5814

Change-Id: Id823b48dec5de9b66ca8f98eaffd4cb5eba52efe
2017-03-12 08:11:34 +00:00
James Cowgill
c1fecd0722 MIPS: OCTEON: Fix copy_from_user fault handling for large buffers
am: 093292b8f8

Change-Id: I366bdcba20ff678b6796f1805be0940297292dcd
2017-03-12 08:11:25 +00:00
Mirko Parthey
0c2e951f6e MIPS: BCM47XX: Fix button inversion for Asus WL-500W
am: b32e43cf3f

Change-Id: Ida853a4548c2f09b1fe2d070c25cad409d022525
2017-03-12 08:11:15 +00:00
Ralf Baechle
cd13ff96da MIPS: Fix special case in 64 bit IP checksumming.
am: 5636da7aba

Change-Id: I9ca72b7b7dbf94ecc4be5aaa910024ead497165c
2017-03-12 08:11:06 +00:00
Shuah Khan
249dd69807 samples: move mic/mpssd example code from Documentation
am: faf6aa4b12

Change-Id: I7ed0b2c9987635d6e46fa9207cc9c7457896b536
2017-03-12 08:10:58 +00:00
Jan Kara
8774c73cf6 ext4: trim allocation requests to group size
commit cd648b8a8fd5071d232242d5ee7ee3c0815776af upstream.

If filesystem groups are artifically small (using parameter -g to
mkfs.ext4), ext4_mb_normalize_request() can result in a request that is
larger than a block group. Trim the request size to not confuse
allocation code.

Reported-by: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-12 06:37:27 +01:00
Roman Pen
a3068b3e80 ext4: do not polute the extents cache while shifting extents
commit 03e916fa8b5577d85471452a3d0c5738aa658dae upstream.

Inside ext4_ext_shift_extents() function ext4_find_extent() is called
without EXT4_EX_NOCACHE flag, which should prevent cache population.

This leads to oudated offsets in the extents tree and wrong blocks
afterwards.

Patch fixes the problem providing EXT4_EX_NOCACHE flag for each
ext4_find_extents() call inside ext4_ext_shift_extents function.

Fixes: 331573febb
Signed-off-by: Roman Pen <roman.penyaev@profitbricks.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: Namjae Jeon <namjae.jeon@samsung.com>
Cc: Andreas Dilger <adilger.kernel@dilger.ca>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-12 06:37:27 +01:00
Roman Pen
3daefdae5f ext4: Include forgotten start block on fallocate insert range
commit 2a9b8cba62c0741109c33a2be700ff3d7703a7c2 upstream.

While doing 'insert range' start block should be also shifted right.
The bug can be easily reproduced by the following test:

    ptr = malloc(4096);
    assert(ptr);

    fd = open("./ext4.file", O_CREAT | O_TRUNC | O_RDWR, 0600);
    assert(fd >= 0);

    rc = fallocate(fd, 0, 0, 8192);
    assert(rc == 0);
    for (i = 0; i < 2048; i++)
            *((unsigned short *)ptr + i) = 0xbeef;
    rc = pwrite(fd, ptr, 4096, 0);
    assert(rc == 4096);
    rc = pwrite(fd, ptr, 4096, 4096);
    assert(rc == 4096);

    for (block = 2; block < 1000; block++) {
            rc = fallocate(fd, FALLOC_FL_INSERT_RANGE, 4096, 4096);
            assert(rc == 0);

            for (i = 0; i < 2048; i++)
                    *((unsigned short *)ptr + i) = block;

            rc = pwrite(fd, ptr, 4096, 4096);
            assert(rc == 4096);
    }

Because start block is not included in the range the hole appears at
the wrong offset (just after the desired offset) and the following
pwrite() overwrites already existent block, keeping hole untouched.

Simple way to verify wrong behaviour is to check zeroed blocks after
the test:

   $ hexdump ./ext4.file | grep '0000 0000'

The root cause of the bug is a wrong range (start, stop], where start
should be inclusive, i.e. [start, stop].

This patch fixes the problem by including start into the range.  But
not to break left shift (range collapse) stop points to the beginning
of the a block, not to the end.

The other not obvious change is an iterator check on validness in a
main loop.  Because iterator is unsigned the following corner case
should be considered with care: insert a block at 0 offset, when stop
variables overflows and never becomes less than start, which is 0.
To handle this special case iterator is set to NULL to indicate that
end of the loop is reached.

Fixes: 331573febb
Signed-off-by: Roman Pen <roman.penyaev@profitbricks.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: Namjae Jeon <namjae.jeon@samsung.com>
Cc: Andreas Dilger <adilger.kernel@dilger.ca>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-12 06:37:27 +01:00