mirror_zfs/module/zfs
Richard Yao 1bd02680c0 Fix NULL pointer dereference in spa_open_common()
Calling spa_open() will pass a NULL pointer to spa_open_common()'s
config parameter. Under the right circumstances, we will dereference the
config parameter without doing a NULL check.

Clang's static analyzer found this.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14044
2022-10-18 15:34:54 -07:00
..
abd.c
aggsum.c
arc.c Cleanup: Address Clang's static analyzer's unused code complaints 2022-10-14 13:37:54 -07:00
blake3_zfs.c
blkptr.c
bplist.c
bpobj.c
bptree.c
bqueue.c
btree.c
dataset_kstats.c
dbuf_stats.c
dbuf.c Cleanup: Address Clang's static analyzer's unused code complaints 2022-10-14 13:37:54 -07:00
ddt_zap.c
ddt.c
dmu_diff.c
dmu_object.c
dmu_objset.c
dmu_recv.c
dmu_redact.c
dmu_send.c
dmu_traverse.c
dmu_tx.c
dmu_zfetch.c
dmu.c
dnode_sync.c
dnode.c
dsl_bookmark.c Cleanup: Address Clang's static analyzer's unused code complaints 2022-10-14 13:37:54 -07:00
dsl_crypt.c
dsl_dataset.c Cleanup: Address Clang's static analyzer's unused code complaints 2022-10-14 13:37:54 -07:00
dsl_deadlist.c
dsl_deleg.c
dsl_destroy.c
dsl_dir.c
dsl_pool.c Cleanup: Address Clang's static analyzer's unused code complaints 2022-10-14 13:37:54 -07:00
dsl_prop.c
dsl_scan.c
dsl_synctask.c
dsl_userhold.c
edonr_zfs.c
fm.c fm_fmri_hc_create() must call va_end() before returning 2022-10-18 15:34:36 -07:00
gzip.c
hkdf.c
lz4_zfs.c
lz4.c
lzjb.c
metaslab.c
mmp.c Cleanup: Address Clang's static analyzer's unused code complaints 2022-10-14 13:37:54 -07:00
multilist.c
objlist.c
pathname.c
range_tree.c
refcount.c
rrwlock.c
sa.c
sha256.c
skein_zfs.c
spa_checkpoint.c
spa_config.c
spa_errlog.c
spa_history.c
spa_log_spacemap.c
spa_misc.c
spa_stats.c
spa.c Fix NULL pointer dereference in spa_open_common() 2022-10-18 15:34:54 -07:00
space_map.c
space_reftree.c
THIRDPARTYLICENSE.cityhash
THIRDPARTYLICENSE.cityhash.descrip
txg.c
uberblock.c
unique.c
vdev_cache.c
vdev_draid_rand.c
vdev_draid.c
vdev_indirect_births.c
vdev_indirect_mapping.c
vdev_indirect.c
vdev_initialize.c
vdev_label.c
vdev_mirror.c
vdev_missing.c
vdev_queue.c
vdev_raidz_math_aarch64_neon_common.h
vdev_raidz_math_aarch64_neon.c
vdev_raidz_math_aarch64_neonx2.c
vdev_raidz_math_avx2.c
vdev_raidz_math_avx512bw.c
vdev_raidz_math_avx512f.c
vdev_raidz_math_impl.h
vdev_raidz_math_powerpc_altivec_common.h
vdev_raidz_math_powerpc_altivec.c
vdev_raidz_math_scalar.c
vdev_raidz_math_sse2.c
vdev_raidz_math_ssse3.c
vdev_raidz_math.c
vdev_raidz.c
vdev_rebuild.c
vdev_removal.c
vdev_root.c
vdev_trim.c
vdev.c Cleanup: Address Clang's static analyzer's unused code complaints 2022-10-14 13:37:54 -07:00
zap_leaf.c
zap_micro.c Fix NULL pointer passed to strlcpy from zap_lookup_impl() 2022-10-18 15:34:44 -07:00
zap.c
zcp_get.c Cleanup: Address Clang's static analyzer's unused code complaints 2022-10-14 13:37:54 -07:00
zcp_global.c
zcp_iter.c
zcp_set.c
zcp_synctask.c
zcp.c
zfeature.c
zfs_byteswap.c
zfs_chksum.c
zfs_fm.c
zfs_fuid.c
zfs_ioctl.c
zfs_log.c
zfs_onexit.c
zfs_quota.c
zfs_ratelimit.c
zfs_replay.c
zfs_rlock.c
zfs_sa.c
zfs_vnops.c
zil.c
zio_checksum.c
zio_compress.c Fix declarations of non-global variables 2022-10-18 11:05:32 -07:00
zio_inject.c
zio.c Fix declarations of non-global variables 2022-10-18 11:05:32 -07:00
zle.c
zrlock.c
zthr.c
zvol.c