Skip to content

Conversation

@github-actions
Copy link

@github-actions github-actions bot commented Aug 7, 2025

When fs_stat() queries the root / mountpoint it should return its root i_node but instead it tries to return the parent i_node which does not exist. Fix this by checking if parent is set otherwise return the root i_node.

Backport 1dcf123 from #93764.

Fixes #94000

When fs_stat() queries the root / mountpoint it should return its root
i_node but instead it tries to return the parent i_node which does not
exist. Fix this by checking if parent is set otherwise return the root
i_node.

Fixes #94000.

Signed-off-by: Bas van Loon <bas@arch-embedded.com>
(cherry picked from commit 1dcf123)
@github-actions github-actions bot added the Backport Backport PR and backport failure issues label Aug 7, 2025
@github-project-automation github-project-automation bot moved this to To do in Backports Aug 7, 2025
@de-nordic de-nordic self-assigned this Aug 8, 2025
@de-nordic de-nordic added this to the v4.2.1 milestone Aug 8, 2025
@de-nordic de-nordic added the bug The issue is a bug, or the PR is fixing a bug label Aug 8, 2025
@de-nordic
Copy link
Contributor

FYI @bas-archembedded

@de-nordic de-nordic linked an issue Aug 8, 2025 that may be closed by this pull request
1 task
@dkalowsk dkalowsk closed this Aug 21, 2025
@github-project-automation github-project-automation bot moved this from To do to Done in Backports Aug 21, 2025
@dkalowsk dkalowsk reopened this Aug 21, 2025
@github-project-automation github-project-automation bot moved this from Done to Needs more info in Backports Aug 21, 2025
@zephyrbot zephyrbot requested review from Laczen and nashif August 21, 2025 01:16
@sonarqubecloud
Copy link

@dkalowsk dkalowsk merged commit e918bda into v4.2-branch Aug 21, 2025
33 of 37 checks passed
@dkalowsk dkalowsk deleted the backport-93764-to-v4.2-branch branch August 21, 2025 20:32
@github-project-automation github-project-automation bot moved this from Needs more info to Done in Backports Aug 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: File System Backport Backport PR and backport failure issues bug The issue is a bug, or the PR is fixing a bug

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

EXT2 fs_stat on mount point fails with a NULL pointer dereference.

5 participants