On Mon, 16 Nov 2026 20:20:38 +0100, Vladimir Riabchun wrote:
> Fix kernel crash in overlayfs
>
> When testing CRIU with containers with docker images,
> we found an easily reproducible kernel crash:
>
> [ 2300.870181] BUG: kernel NULL pointer dereference, address: 0000000000000005
> [ 2300.871537] #PF: supervisor read access in kernel mode
> [ 2300.872577] #PF: error_code(0x0000) - not-present page
> [ 2300.873595] PGD 800000010a18f067 P4D 800000010a18f067 PUD 10730c067 PMD 0
> [ 2300.874900] Oops: Oops: 0000 [#1] SMP PTI
> [ 2300.875742] CPU: 1 UID: 0 PID: 5419 Comm: criu ve: 0 Kdump: loaded Not
> tainted 6.12.0-211.39.1.16.6.vz10.x86_64 #1 16.6 PREEMPT(voluntary)
> [ 2300.878057] Hardware name: Acronis OpenStack Compute/Virtuozzo, BIOS
> 1.16.1-1.vz9.2 04/01/2014
> [ 2300.879684] RIP: 0010:ovl_get_index_name_fh+0x18/0x70 [overlay]
> [ 2300.880859] Code: ...
> [ 2300.884128] RSP: 0018:ffffd32582e0f7c0 EFLAGS: 00010246
> [ 2300.895807] Call Trace:
> [ 2300.896397] <TASK>
> [ 2300.904435] ovl_create_index+0x82/0x260 [overlay]
> [ 2300.905406] ovl_copy_up_workdir+0x30a/0x330 [overlay]
> [ 2300.906427] ovl_do_copy_up+0x10d/0x2e0 [overlay]
> [ 2300.907387] ovl_copy_up_one+0x456/0x720 [overlay]
> [ 2300.910736] ovl_copy_up_flags+0x81/0x110 [overlay]
> [ 2300.911740] ovl_create_object+0x51/0x130 [overlay]
> [ 2300.912719] vfs_mkdir+0x194/0x250
> [ 2300.913470] do_mkdirat+0x14c/0x180
> [ 2300.914223] __x64_sys_mkdir+0x46/0x70
> [ 2300.915019] do_syscall_64+0x7d/0x160
> [ 2300.922814] entry_SYSCALL_64_after_hwframe+0x76/0x7e
>
> [...]
Applied to branch-rh10-6.12.0-211.75.1.26.x.vz10-ovz, will be released in
rh10-6.12.0-211.75.1.24.3.vz10, thanks!
[1/6] ve: Remove STOPPED state
https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/d40b07e29ae1
[2/6] ve: Introduce override_ve/revert_ve helpers
https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/8c1e6db371f9
[3/6] ve: Defer ve creds drop until ve is completely destroyed
https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/9ccd49c56a83
[4/6] ovl: Keep creator VE in overlayfs superblock
https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/fcfdbdbcb412
[5/6] ovl: Fix leaking fd references in ovl_copyfile
https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/f9f9d8c876c2
[6/6] ve/overlayfs: Override VE together with creds
https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/a97b7d4669d9
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel