numam-spdk/lib
Tomasz Zawadzki ea3a17fb55 blob: disallow bs load on device with unsupported block length
Blobstore supports only block lengths that are less than
SPDK_BS_PAGE_SIZE or when multiplication of block len
results in SPDK_BS_PAGE_SIZE.

This was checked only on spdk_bs_init(), but not spdk_bs_load().

When not checked, it caused issues with lvol store tasting.
During tasting, there is an attempt to perform spdk_bs_load()
on a given device.
It was possible to hit asserts in blobstore by creating
malloc with block size 8192.

Change-Id: I30b62bebad405b581eb2158925884adc616d9b92
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.gerrithub.io/404537
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
2018-03-27 12:21:21 -04:00
..
bdev bdev/malloc,null: save uuid when getting config 2018-03-27 03:15:01 -04:00
blob blob: disallow bs load on device with unsupported block length 2018-03-27 12:21:21 -04:00
blobfs blobfs: cleanup and add comments in deleted file cleanup path 2018-03-02 15:30:32 -05:00
conf conf: Remove use of perror() for strdup() failure 2017-12-15 16:13:27 -05:00
copy io_channel: add return value to pollers 2018-03-13 11:16:20 -04:00
cunit include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
env_dpdk env: print SPDK version during init 2018-03-08 11:38:19 -05:00
event event: allow subsystem to write configuration in async way 2018-03-27 02:57:28 -04:00
ioat scripts/check_format: check for spaces before tabs 2018-03-05 11:09:13 -05:00
iscsi iscsi: update the spdk_iscsi_poll_group_poll handling 2018-03-19 15:56:27 -04:00
json json: add va_arg versions for write_string and write_named_string 2018-02-23 15:27:16 -05:00
jsonrpc jsonrpc: add spdk_jsonrpc_send_error_response_fmt 2018-02-23 15:27:16 -05:00
log log: rename SPDK_TRACE_* to SPDK_LOG_* 2017-12-07 12:23:19 -05:00
lvol lvol: read uuid xattr before name 2018-03-23 04:18:23 -04:00
nbd lib: Return instead of abort() in nbd 2018-03-13 13:41:50 -04:00
net net_framework: add registering of multiple spdk_net_frameworks 2018-03-15 17:54:29 -04:00
nvme nvme: add spdk_nvme_ns_get_uuid() function 2018-03-27 02:43:46 -04:00
nvmf nvmf: mask off reserved bits in AER configuration 2018-03-23 03:45:23 -04:00
rocksdb lib: Return instead of exit in event 2018-03-08 11:47:01 -05:00
rpc rpc: remove the existing socket file when application starts 2018-03-02 16:48:53 -05:00
scsi io_channel: add return value to pollers 2018-03-13 11:16:20 -04:00
trace lib: Return instead of exit in trace 2018-03-13 00:53:35 -04:00
ut_mock test/mock: add pthread_self 2017-09-19 17:15:15 -04:00
util io_channel: invoke unregister_cb on same thread unregister was called 2018-03-19 21:50:19 -04:00
vhost io_channel: add return value to pollers 2018-03-13 11:16:20 -04:00
virtio virtio: remove g_virtio_driver 2018-03-27 00:58:14 -04:00
Makefile virtio: add new library virtio 2017-12-26 13:03:29 -05:00