On Tue, Apr 15, 2025 at 11:39:39PM +0530, Aditya Dutt wrote:
From: Dave Kleikamp dave.kleikamp@oracle.com
[ Upstream commit a779ed754e52d582b8c0e17959df063108bd0656 ]
In order to make array bounds checking sane, provide a separate definition of the in-inode xtree root and the external xtree page.
Signed-off-by: Dave Kleikamp dave.kleikamp@oracle.com Tested-by: Manas Ghandat ghandatmanas@gmail.com (cherry picked from commit a779ed754e52d582b8c0e17959df063108bd0656) Closes: https://syzkaller.appspot.com/bug?extid=ccb458b6679845ee0bae Signed-off-by: Aditya Dutt duttaditya18@gmail.com
Tested using C reproducer here: https://syzkaller.appspot.com/x/repro.c?x=113bb250e80000 (given in the dashboard link above UBSAN is not triggered when this commit is there. It is triggered when it is not.
Please always submit backports for all relevant stable trees. We can't take this one until the newer trees are fixed.
Please resubmit all ones needed.
thanks,
greg k-h