mm/ksm: fix flag-dropping behavior in ksm_madvise (CVE-2025-40040) | HOL Guard CVE