[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241027203231.20251-1-mottikumarbabu@gmail.com>
Date: Mon, 28 Oct 2024 02:02:28 +0530
From: MottiKumar Babu <mottikumarbabu@...il.com>
To: cem@...nel.org
Cc: djwong@...nel.org,
chandanbabu@...nel.org,
dchinner@...hat.com,
zhangjiachen.jaycee@...edance.com,
linux-xfs@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-kernel-mentees@...ts.linux.dev,
anupnewsmail@...il.com,
skhan@...uxfoundation.org
Subject: [PATCH] Follow-up on Submitted Patch: Fix out-of-bounds access in xfs_bmapi_allocate
Hi everyone,
I hope this message finds you well. I wanted to follow up on my previously submitted patch titled "[PATCH] Fix out-of-bounds access in xfs_bmapi_allocate by validating whichfork."
As a reminder, this patch addresses an issue reported by Coverity Scan (CID 1633175), where the variable `whichfork` can take invalid values, specifically `2`, leading to an out-of-bounds access in `xfs_bmbt_init_cursor`. The added validation check ensures that `whichfork` remains within the valid range of 0 or 1. If it falls outside this range, the function will return `-EINVAL`, enhancing the code's robustness and preventing potential crashes or undefined behavior.
I appreciate any feedback or suggestions you might have.
Best,
MottiKumar Babu
mottikumarbabu@...il.com
Powered by blists - more mailing lists