Skip to content

Fix Y2038 netlink sequence number in libbpf - #606

Open
subharam-cisco wants to merge 1 commit into
sonic-net:masterfrom
subharam-cisco:fix/y2038-libbpf-netlink-seq
Open

Fix Y2038 netlink sequence number in libbpf#606
subharam-cisco wants to merge 1 commit into
sonic-net:masterfrom
subharam-cisco:fix/y2038-libbpf-netlink-seq

Conversation

@subharam-cisco

Copy link
Copy Markdown

Replace time(NULL) with a static monotonic counter in libbpf_netlink_send_recv() to avoid truncating 64-bit time_t into the 32-bit nlmsg_seq field.

@subharam-cisco
subharam-cisco requested a review from a team as a code owner August 7, 2026 06:13
@linux-foundation-easycla

linux-foundation-easycla Bot commented Aug 7, 2026

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: subharam-cisco / name: Subhasri-Ramasamy (5750313)

@mssonicbld

Copy link
Copy Markdown

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

subharam-cisco added a commit to subharam-cisco/sonic-linux-kernel that referenced this pull request Aug 7, 2026
Signed-off-by: Subhasri-Ramasamy <subharam@cisco.com>
@subharam-cisco
subharam-cisco force-pushed the fix/y2038-libbpf-netlink-seq branch from 8822735 to 5750313 Compare August 7, 2026 07:18
@mssonicbld

Copy link
Copy Markdown

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@paulmenzel paulmenzel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please send the patch to Linux upstream for review.

@@ -0,0 +1,48 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: SONiC Build <build@sonic.net>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a person.

should be monotonically increasing; a timestamp is unnecessary. Use a
static counter instead and drop the unused time.h include.

Signed-off-by: SONiC Build <build@sonic.net>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto.

Signed-off-by: Subhasri-Ramasamy <subharam@cisco.com>
@subharam-cisco
subharam-cisco force-pushed the fix/y2038-libbpf-netlink-seq branch from 5750313 to 91d9119 Compare August 7, 2026 13:28
@mssonicbld

Copy link
Copy Markdown

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

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