Spdk/lib/ftl
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
..
mngt lib/ftl: Fix segfault in recovery path of unmap 2022-11-22 10:01:30 +00:00
upgrade update Intel copyright notices 2022-11-10 08:28:53 +00:00
utils lib/ftl: Validate l2p_dram_limit parameter 2022-11-22 10:01:30 +00:00
ftl_band_ops.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_band.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_band.h update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_core.c lib/ftl: Update FTL IO activity statistics 2022-11-22 10:01:30 +00:00
ftl_core.h lib/ftl: Update FTL IO activity statistics 2022-11-22 10:01:30 +00:00
ftl_debug.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_debug.h update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_init.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_internal.h update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_io.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_io.h update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_l2p_cache.c lib/ftl: Update FTL IO activity statistics 2022-11-22 10:01:30 +00:00
ftl_l2p_cache.h update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_l2p_flat.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_l2p_flat.h update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_l2p.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_l2p.h update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_layout.c lib/ftl: Fix findings of static code analysis 2022-11-22 10:01:30 +00:00
ftl_layout.h update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_nv_cache_io.h update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_nv_cache.c lib/ftl: Update FTL IO activity statistics 2022-11-22 10:01:30 +00:00
ftl_nv_cache.h update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_p2l.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_reloc.c lib/ftl: Update FTL IO activity statistics 2022-11-22 10:01:30 +00:00
ftl_rq.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_sb_common.h update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_sb_current.h update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_sb.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_sb.h update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_trace.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_trace.h update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_utils.h update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_writer.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl_writer.h update Intel copyright notices 2022-11-10 08:28:53 +00:00
Makefile update Intel copyright notices 2022-11-10 08:28:53 +00:00
spdk_ftl.map ftl: I/O statistics 2022-09-20 19:24:26 +00:00