fdt: Relax check on total_size

This breaks if DT file was padded e.g. when getting it from a block
device (useful for passing it into a QEMU system) but the extra padding
should have no impact on the code, which should only read the first
`header.total_size` bytes of the `input` buffer.

BUG=b:460349550
TEST=tools/presubmit --no-delta all

Change-Id: Idc03817a594f6eeff3b13504de4c5797d56220ed
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/7256934
Auto-Submit: Pierre-Clément Tosi <ptosi@google.com>
Commit-Queue: Keiichi Watanabe <keiichiw@chromium.org>
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
1 file changed
tree: e6f1c72d5bbdcffa7a93af221cdbbc017203f337
  1. .cargo/
  2. .config/
  3. .devcontainer/
  4. .github/
  5. .vscode/
  6. aarch64/
  7. aarch64_sys_reg/
  8. acpi_tables/
  9. android_audio/
  10. arch/
  11. argh_helpers/
  12. audio_streams_conformance_test/
  13. audio_util/
  14. base/
  15. base_tokio/
  16. bit_field/
  17. common/
  18. cros_async/
  19. cros_fdt/
  20. cros_tracing/
  21. cros_tracing_types/
  22. crosvm_cli/
  23. crosvm_control/
  24. devices/
  25. disk/
  26. docs/
  27. e2e_tests/
  28. ext2/
  29. fuse/
  30. fuzz/
  31. gpu_display/
  32. hypervisor/
  33. infra/
  34. io_uring/
  35. jail/
  36. kernel_cmdline/
  37. kernel_loader/
  38. kvm_sys/
  39. libcras_stub/
  40. linux_input_sys/
  41. logo/
  42. media/
  43. metrics/
  44. metrics_events/
  45. net_sys/
  46. net_util/
  47. perfetto/
  48. power_monitor/
  49. prebuilts/
  50. proc_init/
  51. proto_build_tools/
  52. protos/
  53. resources/
  54. riscv64/
  55. sandbox/
  56. serde_keyvalue/
  57. snapshot/
  58. src/
  59. swap/
  60. system_api/
  61. tests/
  62. third_party/
  63. tools/
  64. tube_transporter/
  65. usb_sys/
  66. usb_util/
  67. vendor/
  68. vfio_sys/
  69. vhost/
  70. virtio_sys/
  71. vm_control/
  72. vm_memory/
  73. win_audio/
  74. win_util/
  75. x86_64/
  76. .dockerignore
  77. .envrc
  78. .gitattributes
  79. .gitignore
  80. .gitmodules
  81. .rustfmt.toml
  82. ARCHITECTURE.md
  83. Cargo.lock
  84. Cargo.toml
  85. CONTRIBUTING.md
  86. DIR_METADATA
  87. LICENSE
  88. mypy.ini
  89. OWNERS
  90. OWNERS_COUNCIL
  91. PRESUBMIT.cfg
  92. pyproject.toml
  93. README.chromeos.md
  94. README.md
  95. rust-toolchain
README.md

crosvm - The ChromeOS Virtual Machine Monitor

crosvm is a virtual machine monitor (VMM) based on Linux’s KVM hypervisor, with a focus on simplicity, security, and speed. crosvm is intended to run Linux guests, originally as a security boundary for running native applications on the ChromeOS platform. Compared to QEMU, crosvm doesn’t emulate architectures or real hardware, instead concentrating on paravirtualized devices, such as the virtio standard.

crosvm is currently used to run Linux/Android guests on ChromeOS devices.

Logo