Skip to content

kata-containers-cc: fix tarfs build with kernel 6.6+ (i_ctime removal)#17776

Draft
romoh wants to merge 1 commit into
3.0-devfrom
romoh/fix-tarfs-ictime-kernel-6.6
Draft

kata-containers-cc: fix tarfs build with kernel 6.6+ (i_ctime removal)#17776
romoh wants to merge 1 commit into
3.0-devfrom
romoh/fix-tarfs-ictime-kernel-6.6

Conversation

@romoh

@romoh romoh commented Jun 19, 2026

Copy link
Copy Markdown

Linux kernel 6.6 removed the i_ctime field from struct inode, replacing it with inode_set_ctime()/inode_get_ctime() accessors. The tarfs kernel module shipped in kata-containers-cc-tools directly accessed inode->i_ctime, causing a build failure when compiling against kernel-uvm 6.6.137.mshv1-1.azl3 headers.

This patch adds a LINUX_VERSION_CODE guard to use the new accessor on 6.6+ while preserving backward compatibility.

Fixes: mariner-org/mariner#19827

@microsoft-github-policy-service microsoft-github-policy-service Bot added Packaging 3.0-dev PRs Destined for AzureLinux 3.0 labels Jun 19, 2026
Linux kernel 6.6 removed the i_ctime field from struct inode, replacing it
with inode_set_ctime()/inode_get_ctime() accessors. The tarfs kernel module
shipped in kata-containers-cc-tools directly accessed inode->i_ctime, causing
a build failure when compiling against kernel-uvm 6.6.137.mshv1-1.azl3 headers.

This patch adds a LINUX_VERSION_CODE guard to use the new accessor on 6.6+
while preserving backward compatibility.

Fixes: mariner-org/mariner#19827

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@romoh romoh force-pushed the romoh/fix-tarfs-ictime-kernel-6.6 branch from e81b276 to 9a2086b Compare June 19, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.0-dev PRs Destined for AzureLinux 3.0 Packaging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant