]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Reduce control message size to prevent sendmsg crash
authorVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 12 Jan 2026 16:25:30 +0000 (16:25 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 12 Jan 2026 16:25:30 +0000 (16:25 +0000)
commit66db7f40b2f90e30213adf636d93fba2fc479b14
treeeb4ecb15fc730264a37cc3bcaa89a05f8c5a8be8
parentbc2831843db487d38cedf62978f0d0b0f2054d40
[Fix] Reduce control message size to prevent sendmsg crash

The rspamd_srv_command and rspamd_control_command structures grew too
large (~8KB) due to multiple CONTROL_PATHLEN fields in mp_loaded and
re_map_loaded, exceeding socket buffer limits and causing crashes in
sendmsg during worker startup.

Fix by:
- Removing redundant cache_dir fields (all processes know it from config)
- Using consistent name[64] for both mp_loaded and re_map_loaded
- Getting cache_dir from cfg->hs_cache_dir at receive time instead
src/hs_helper.c
src/libserver/rspamd_control.c
src/libserver/rspamd_control.h
src/libserver/worker_util.c