forked from cloud-hypervisor/cloud-hypervisor
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
block: qcow: limit max nesting depth for backing file
Impose a limit on the maximum nesting of file formats that can open more files. For example, a qcow2 file can have a backing file, which could be another qcow2 file with a backing file (or even the same file as the original), potentially causing unbounded recursion. This commit is based on crosvm implementation: https://chromium.googlesource.com/crosvm/crosvm/+/eb1640e301d66c06e0e0a07886946830f3f2f4fe Fixes: cloud-hypervisor#6472 Signed-off-by: Yu Li <liyu.yukiteru@bytedance.com>
- Loading branch information
1 parent
7c46e61
commit a29a810
Showing
2 changed files
with
43 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters