android_kernel_google_msm/drivers/block
Mike Snitzer efc542e8fd UPSTREAM: block: disable entropy contributions for nonrot devices
(cherry picked from commit b277da0a8a)

Clear QUEUE_FLAG_ADD_RANDOM in all block drivers that set
QUEUE_FLAG_NONROT.

Historically, all block devices have automatically made entropy
contributions.  But as previously stated in commit e2e1a148 ("block: add
sysfs knob for turning off disk entropy contributions"):
    - On SSD disks, the completion times aren't as random as they
      are for rotational drives. So it's questionable whether they
      should contribute to the random pool in the first place.
    - Calling add_disk_randomness() has a lot of overhead.

There are more reliable sources for randomness than non-rotational block
devices.  From a security perspective it is better to err on the side of
caution than to allow entropy contributions from unreliable "random"
sources.

Change-Id: I8e9005feeedf301e486cf1aa13c804e322a3591b
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Artem Borisov <dedsa2002@gmail.com>
2018-01-01 22:06:21 +03:00
..
aoe
drbd drbd: merge_bvec_fn: properly remap bvm->bi_bdev 2015-04-14 17:33:41 +08:00
mtip32xx UPSTREAM: block: disable entropy contributions for nonrot devices 2018-01-01 22:06:21 +03:00
paride
xen-blkback xen-blkback: only read request operation from shared ring once 2016-10-26 23:15:39 +08:00
zram UPSTREAM: block: disable entropy contributions for nonrot devices 2018-01-01 22:06:21 +03: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 2018-01-01 21:26:45 +03:00
loop.c
Makefile zram: promote zram from staging 2018-01-01 21:26:45 +03:00
mg_disk.c
nbd.c nbd: fix possible memory leak 2015-06-19 11:40:28 +08:00
nvme.c
osdblk.c
pktcdvd.c
ps3disk.c
ps3vram.c
rbd.c
rbd_types.h
smart1,2.h
sunvdc.c
swim.c
swim3.c
swim_asm.S
sx8.c
ub.c
umem.c
umem.h
virtio_blk.c virtio-blk: Don't free ida when disk is in use 2014-06-11 12:04:18 -07:00
xd.c
xd.h
xen-blkfront.c xen-blkfront: check for null drvdata in blkback_changed (XenbusStateClosing) 2016-04-27 18:55:27 +08:00
xsysace.c
z2ram.c