[Devel] [PATCH hci-8.1 v3 0/6] ve/printk: Fix logs leakage via ve_printk called from IRQ context

Vasileios Almpanis vasileios.almpanis at virtuozzo.com
Mon Oct 12 10:59:23 MSK 2026


On Mon, 12 Oct 2026 00:52:27 +0200, Vladimir Riabchun <vladimir.riabchun at virtuozzo.com> wrote:
> ve/printk: Fix logs leakage via ve_printk called from IRQ context
> 
> Printk function that printed logs to containers' dmesgs mostly used
> get_exec_env() for getting VE. This is fine for task contexts and
> might be wrong for IRQ contexts.
> 
> This patchset fixes this in the following way:
>  - Report non-task usages of ve_printk function which get
>    VE from current task. Do it with WARN so users will be
>    frightened and will report it to us so we can fix it.
>    This will also make an issue visible to our internal tests.
>  - Reject printing to containers when VE is unreliable.
>  - Calculate correct time offsets when calling printk. It can
>    be delayed and the context might change, we can see time
>    travels if time was taken from a different container.
> 
> [...]

Reviewed-by: Vasileios Almpanis <vasileios.almpanis at virtuozzo.com>

-- 
Vasileios Almpanis <vasileios.almpanis at virtuozzo.com>


More information about the Devel mailing list