Spdk/lib/ftl/mngt
Kozlowski Mateusz 304f0802d1 lib/ftl: Fix segfault in recovery path of unmap
The ftl_md_get_buffer_size returns the buffer size in bytes, so we
should divide by the block size, instead of this smaller value. Risks
touching bad memory during dirty shutdown recovery, especially in >16TiB
drives.

Signed-off-by: Kozlowski Mateusz <mateusz.kozlowski@intel.com>
Signed-off-by: Mariusz Barczak <mariusz.barczak@intel.com>
Change-Id: I4095b00a79a1bdbce5046dc46349a9670e41b18e
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15259
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2022-11-22 10:01:30 +00:00
..
ftl_mngt_band.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_mngt_bdev.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_mngt_ioch.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_mngt_l2p.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_mngt_md.c lib/ftl: Fix findings of static code analysis 2022-11-22 10:01:30 +00:00
ftl_mngt_misc.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_mngt_p2l.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_mngt_recovery.c lib/ftl: Fix segfault in recovery path of unmap 2022-11-22 10:01:30 +00:00
ftl_mngt_self_test.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_mngt_shutdown.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_mngt_startup.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_mngt_steps.h update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_mngt_upgrade.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_mngt.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_mngt.h update Intel copyright notices 2022-11-10 08:28:53 +00:00