android_kernel_samsung_msm8976/drivers/block
Linus Torvalds fe253a8452 loop: fix concurrent lo_open/lo_release
范龙飞 reports that KASAN can report a use-after-free in __lock_acquire.
The reason is due to insufficient serialization in lo_release(), which
will continue to use the loop device even after it has decremented the
lo_refcnt to zero.

In the meantime, another process can come in, open the loop device
again as it is being shut down. Confusion ensues.

Reported-by: 范龙飞 <long7573@126.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Git-commit: ae6650163c66a7eff1acd6eb8b0f752dcfa8eba5
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Change-Id: I965ddcdc2a9d27fd56a54d2886b7c3861c21b05f
Signed-off-by: Srinivasa Rao Kuppala <srkupp@codeaurora.org>
2018-08-20 11:56:48 +02:00
..
aoe
drbd drbd: merge_bvec_fn: properly remap bvm->bi_bdev 2015-01-29 17:40:57 -08:00
mtip32xx
paride paride: make 'verbose' parameter an 'int' again 2016-06-07 10:42:51 +02:00
rsxx
xen-blkback
zram Import latest Samsung release 2017-04-18 03:43:52 +02:00
amiflop.c
ataflop.c
brd.c
cciss.c
cciss.h
cciss_cmd.h
cciss_scsi.c
cciss_scsi.h
cpqarray.c
cpqarray.h
cryptoloop.c
DAC960.c
DAC960.h
floppy.c
hd.c
ida_cmd.h
ida_ioctl.h
Kconfig zram: promote zram from staging 2016-05-18 14:33:57 +05:30
loop.c loop: fix concurrent lo_open/lo_release 2018-08-20 11:56:48 +02:00
Makefile zram: promote zram from staging 2016-05-18 14:33:57 +05:30
mg_disk.c
nbd.c nbd: ratelimit error msgs after socket close 2016-06-07 10:42:52 +02:00
nvme-core.c
nvme-scsi.c
osdblk.c
pktcdvd.c BACKPORT: block: add blk_rq_set_block_pc() 2017-04-22 23:03:01 +02:00
ps3disk.c
ps3vram.c
rbd.c rbd: prevent kernel stack blow up on rbd map 2015-11-09 10:12:58 -08:00
rbd_types.h
smart1,2.h
sunvdc.c sunvdc: don't call VD_OP_GET_VTOC 2014-11-21 09:22:52 -08:00
swim.c
swim3.c
swim_asm.S
sx8.c
umem.c
umem.h
virtio_blk.c
xen-blkfront.c xen-blkfront: check for null drvdata in blkback_changed (XenbusStateClosing) 2015-11-09 10:12:58 -08:00
xsysace.c
z2ram.c