DF-2265
sasetparams ENODEV early return leaks ccomp allocation
Summary
sasetparams() kmalloc ccomp at scsi_sa.c:2757 only frees on success path at 3023-3024. Early ENODEV return at 2938-2941 (taken when compression only thing being set device reports no compression support params_to_set&=~SA_PARAM_COMPRESSION then SA_PARAM_NONE check) frees mode_buffer releases ccb but does NOT free ccomp. Each such call leaks sizeof(sa_comp_t) (~16 bytes) M_SCSISA. Privileged-user-triggerable memory leak repeat via MTIOCTOP/MTCOMP on compression-unsupported drive. No unprivileged reach.
No comments yet.