[Devel] [PATCH RK hci-8.0 1/3] ve: downgrade the trusted exec/mmap denial from WARN to pr_warn

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Tue Dec 1 03:16:55 MSK 2026


> ve_check_trusted_exec()/ve_check_trusted_mmap() protect the host, but
> the WARN(1, ...) is too much here:
> 
>  * it taints the kernel while this is not a kernel bug which we beed to
>    debug and fix
>  * the backtrace only shows the exec/mmap path, which is already known
>  * on a host booted with panic_on_warn a denied exec takes the host down
> 
> The SIGSEGV and the core dump of the offending process are enough to
> report and investigate such an attempt. Downgrade the WARN() to
> pr_warn(), keeping the message, the rate limiting and the signal.
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-147642
> 
> Fixes: fc7157b84c32 ("trusted/ve/mmap: Protect from unsecure library load from CT image")
> Fixes: cc218b70c6b4 ("trusted/ve/fs/exec: Send SIGSEGV to a process trying to execute untrusted files")
> Feature: security/fs: tructed exec feature
> Link: http://lore.virtuozzo.com/20260819162513.493543-1-khorenko@virtuozzo.com
> Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
> 
> ReadyKernel-specific changes:
> The patch was taken as-is without changes.
> 
> RK_BUG: VSTOR-157027 VSTOR-157031
> RK_CHANGELOG: Do not crash a host with panic_on_warn on a denied exec/mmap.
> 
> Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>

Sashiko has reviewed this patch and found no issues.

Carry the trailer below into the next revision and Sashiko will not review this patch again.

Reviewed-by: Sashiko <no-reply at sashiko.virtuozzo.com>

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261125164802.402895-1-khorenko@virtuozzo.com?part=1




More information about the Devel mailing list