Registry Mirror
Skip to content

Conversation

@hedgehog-dataplane-update

@hedgehog-dataplane-update hedgehog-dataplane-update Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

🚀 Upgrades available

name old req compatible latest
bindgen 0.72.1 0.72.1 0.73.2 0.73.2
bitflags 2.13.1 2.13.2 2.13.2 2.13.2
clap 4.6.6 4.6.7 4.6.7 4.6.7
crossbeam-utils 0.8.22 0.8.23 0.8.23 0.8.23
ipnet 2.12.1 2.12.2 2.12.2 2.12.2
mio 1.2.2 1.2.3 1.2.3 1.2.3
netdev 0.46.2 0.46.3 0.46.3 0.46.3
ordermap 1.2.1 1.2.2 1.2.2 1.2.2
rustls 0.23.43 0.23.45 0.23.45 0.23.45
syn 3.0.4 3.0.5 3.0.5 3.0.5
ureq 3.4.0 3.4.2 3.4.2 3.4.2
uuid 1.26.0 1.26.1 1.26.1 1.26.1

⚠️ This Pull Request was automatically generated and should be carefully reviewed before acceptance. It may introduce breaking changes.

Copilot AI lite review requested due to automatic review settings September 7, 2026 03:36
@hedgehog-dataplane-update
hedgehog-dataplane-update Bot requested a review from a team as a code owner September 7, 2026 03:36
@hedgehog-dataplane-update
hedgehog-dataplane-update Bot removed the request for review from a team September 7, 2026 03:36
@hedgehog-dataplane-update hedgehog-dataplane-update Bot added ci:+vlab Enable VLAB tests dependencies Pull requests that update a dependency file labels Sep 7, 2026

This comment was marked as low quality.

@daniel-noland daniel-noland added the dont-merge Do not merge this Pull Request label Sep 7, 2026
@daniel-noland

Copy link
Copy Markdown
Collaborator

please don't merge this or I will need to rebase over an absurd amount of lock file noise and block up CI for a day

@codecov

This comment was marked as low quality.

@qmonnet

qmonnet commented Sep 7, 2026

Copy link
Copy Markdown
Member
[843](https://github.com/githedgehog/dataplane/actions/runs/34080338825/job/101614710193?pr=1803#step:5:2845)
  all> error[E0080]: index out of bounds: the length is 1 but the index is 64
  all>     --> /nix/var/nix/builds/nix-61506-3164110195/source/target/x86_64-unknown-linux-gnu/debug/build/dataplane-dpdk-sys-25702df7908aa671/out/generated.rs:7796:5
  all>      |
  all> 7796 |     ["Size of rte_mempool_cache"][::core::mem::size_of::<rte_mempool_cache>() - 8256usize];
  all>      |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `_` failed here
  all> 
  all> error[E0080]: index out of bounds: the length is 1 but the index is 64
  all>      --> /nix/var/nix/builds/nix-61506-3164110195/source/target/x86_64-unknown-linux-gnu/debug/build/dataplane-dpdk-sys-25702df7908aa671/out/generated.rs:13921:5
  all>       |
  all> 13921 |     ["Size of rte_rcu_qsbr"][::core::mem::size_of::<rte_rcu_qsbr>() - 128usize];
  all>       |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `_` failed here

Some errors in the generated code. Possibly related to the bindgen minor version update?

@qmonnet

qmonnet commented Sep 8, 2026

Copy link
Copy Markdown
Member

I bisected and the breakage does come from the bindgen update; actually introduced in v0.73.0. Then I asked Claude for help to pin it down exactly.

Relevant changelog entry:

Guarantee opaque type layout across all architectures (rust-lang/rust-bindgen#3280).

The relevant commit is rust-lang/rust-bindgen@9366e0af8da5, which rewrote helpers::blob(). The old code turned a {size, align} blob into [u64; size/align] (the result was always a whole number of align-sized units). The new code emits __BindgenOpaqueArray{align}<[u8; size]>, a #[repr(C, align(N))] type. A repr(align(8)) wrapper's size rounds up to a multiple of 8, so the blob no longer occupies exactly layout.size bytes when size isn't a multiple of align. Padding fields fall into that case: rte_mempool_cache is three u32s (12 bytes) followed by an alignas(64) member, so bindgen wants 52 bytes of padding, and bindgen v0.73.1 builds it with align = min(field_align, MAX_GUARANTEED_ALIGN=8):

pub __bindgen_padding_0: __BindgenOpaqueArray8<[u8; 52usize]>,  // align 8, size 56 (!)

Align 8 pushes it from offset 12 to 16, and its 56-byte size ends at 72 instead of 64, so objs lands at 72, and the repr(align(64)) round-up inflates the struct by a full cache line: 8320 instead of 8256. Same shape in rte_rcu_qsbr (192 instead of 128), in both cases the difference is exactly 64 bytes.

It seems it was fixed upstream just after 0.73.1 was released, with rust-lang/rust-bindgen@38ebc486a780 ("codegen: Don't force padding to be aligned"), which sets padding_align = 1 unconditionally.

So when we rebase this PR, we want to make sure we bump bindgen to v0.73.2+ (not out yet), or drop the update for now, until the fix gets released.

@coderabbitai

coderabbitai Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 1b5f8484-3fec-4a9a-9ad5-2e83cab78295

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

daniel-noland and others added 11 commits September 14, 2026 16:45
Signed-off-by: Daniel Noland <daniel@githedgehog.com>
Defer the new zizmor self-repository syntax until actionlint and the
p/default Semgrep rules can parse it.

Signed-off-by: Daniel Noland <daniel@githedgehog.com>
Signed-off-by: github-actions[bot] <224724778+hedgehog-dataplane-update[bot]@users.noreply.github.com>
Signed-off-by: github-actions[bot] <224724778+hedgehog-dataplane-update[bot]@users.noreply.github.com>
name    old req compatible latest new req
====    ======= ========== ====== =======
bindgen 0.72.1  0.72.1     0.73.2 0.73.2

Signed-off-by: github-actions[bot] <224724778+hedgehog-dataplane-update[bot]@users.noreply.github.com>
name     old req compatible latest new req
====     ======= ========== ====== =======
bitflags 2.13.1  2.13.2     2.13.2 2.13.2

Signed-off-by: github-actions[bot] <224724778+hedgehog-dataplane-update[bot]@users.noreply.github.com>
name old req compatible latest new req
==== ======= ========== ====== =======
clap 4.6.6   4.6.7      4.6.7  4.6.7

Signed-off-by: github-actions[bot] <224724778+hedgehog-dataplane-update[bot]@users.noreply.github.com>
name            old req compatible latest new req
====            ======= ========== ====== =======
crossbeam-utils 0.8.22  0.8.23     0.8.23 0.8.23

Signed-off-by: github-actions[bot] <224724778+hedgehog-dataplane-update[bot]@users.noreply.github.com>
name  old req compatible latest new req
====  ======= ========== ====== =======
ipnet 2.12.1  2.12.2     2.12.2 2.12.2

Signed-off-by: github-actions[bot] <224724778+hedgehog-dataplane-update[bot]@users.noreply.github.com>
name old req compatible latest new req
==== ======= ========== ====== =======
mio  1.2.2   1.2.3      1.2.3  1.2.3

Signed-off-by: github-actions[bot] <224724778+hedgehog-dataplane-update[bot]@users.noreply.github.com>
name   old req compatible latest new req
====   ======= ========== ====== =======
netdev 0.46.2  0.46.3     0.46.3 0.46.3

Signed-off-by: github-actions[bot] <224724778+hedgehog-dataplane-update[bot]@users.noreply.github.com>
name     old req compatible latest new req
====     ======= ========== ====== =======
ordermap 1.2.1   1.2.2      1.2.2  1.2.2

Signed-off-by: github-actions[bot] <224724778+hedgehog-dataplane-update[bot]@users.noreply.github.com>
name old req compatible latest new req
==== ======= ========== ====== =======
syn  3.0.4   3.0.5      3.0.5  3.0.5

Signed-off-by: github-actions[bot] <224724778+hedgehog-dataplane-update[bot]@users.noreply.github.com>
name old req compatible latest new req
==== ======= ========== ====== =======
ureq 3.4.0   3.4.2      3.4.2  3.4.2

Signed-off-by: github-actions[bot] <224724778+hedgehog-dataplane-update[bot]@users.noreply.github.com>
name old req compatible latest new req
==== ======= ========== ====== =======
uuid 1.26.0  1.26.1     1.26.1 1.26.1

Signed-off-by: github-actions[bot] <224724778+hedgehog-dataplane-update[bot]@users.noreply.github.com>
@daniel-noland

Copy link
Copy Markdown
Collaborator

closing in favor of #1817

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated ci:+cross/full ci:+vlab Enable VLAB tests dependencies Pull requests that update a dependency file dont-merge Do not merge this Pull Request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants