Skip to content

Conversation

@helsaawy
Copy link
Contributor

@helsaawy helsaawy commented Jun 12, 2025

Zero out the Linux GetProperties Blkio field, since it scales with the number of container layers attacked to the uVM.
Additionally empty the Rdma and Network fields, in case they can also grow without bound.
None of the fields are used in any code paths in the AzCRI, or exposed elsewhere.

Clarify comment about the maximum message size, to reflect that it mirrors and HCS value and is not arbitrary.

Zero out the Linux `GetProperties` `Blkio` field, since it scales with the
number of container layers attacked to the uVM.
Additionally empty the `Rdma` and `Network` fields, in case they can
also grow without bound.
None of the fields are used in any code paths in the AzCRI, or exposed
elsewhere.

Clarify comment about the maximum message size, to reflect that it
mirrors and HCS value and is not arbitrary.

Additionally, don't quit the receive loop if the message size is too
large, since that brings the bridge down with it.

Signed-off-by: Hamza El-Saawy <[email protected]>
@helsaawy helsaawy requested a review from a team as a code owner June 12, 2025 17:47
Signed-off-by: Hamza El-Saawy <[email protected]>
@helsaawy helsaawy merged commit a53730e into microsoft:main Jun 13, 2025
19 checks passed
@helsaawy helsaawy deleted the bridge-size branch June 13, 2025 21:41
@helsaawy helsaawy mentioned this pull request Jun 16, 2025
helsaawy added a commit that referenced this pull request Jun 16, 2025
* [backport]Trim LCOW `GetProperties` response (#2458)

* Trim LCOW `GetProperties` response

Zero out the Linux `GetProperties` `Blkio` field, since it scales with the
number of container layers attacked to the uVM.
Additionally empty the `Rdma` and `Network` fields, in case they can
also grow without bound.
None of the fields are used in any code paths in the AzCRI, or exposed
elsewhere.

Clarify comment about the maximum message size, to reflect that it
mirrors and HCS value and is not arbitrary.

Additionally, don't quit the receive loop if the message size is too
large, since that brings the bridge down with it.

Signed-off-by: Hamza El-Saawy <[email protected]>

* PR: undo receive loop changes

Signed-off-by: Hamza El-Saawy <[email protected]>

---------

Signed-off-by: Hamza El-Saawy <[email protected]>
(cherry picked from commit a53730e)
Signed-off-by: Hamza El-Saawy <[email protected]>

* [backport]Swap `EvalSymlinks` with `ResolvePath` (#2455)

* Swap `EvalSymlinks` with `ResolvePath`

Redo PR 1644, which swapped builtin `"path/filepath".EvalSymlinks` with
`"github.com/Microsoft/go-winio/pkg/fs".ResolvePath`, since the later is
able to handle deeply nested symlinks and (as of
[go1.23](golang.org/doc/go1.23#pathfilepathpkgpathfilepath)),
mountpoints.

Signed-off-by: Hamza El-Saawy <[email protected]>

* PR: update CIM test code

Signed-off-by: Hamza El-Saawy <[email protected]>

---------

Signed-off-by: Hamza El-Saawy <[email protected]>
(cherry picked from commit e3722b0)
Signed-off-by: Hamza El-Saawy <[email protected]>

---------

Signed-off-by: Hamza El-Saawy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants