[Bug 220829] New: KASAN (tags): always assign new tag on krealloc/vrealloc

0 views
Skip to first unread message

bugzill...@kernel.org

unread,
Dec 3, 2025, 9:49:03 AM (13 days ago) Dec 3
to kasa...@googlegroups.com
https://bugzilla.kernel.org/show_bug.cgi?id=220829

Bug ID: 220829
Summary: KASAN (tags): always assign new tag on
krealloc/vrealloc
Product: Memory Management
Version: 2.5
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P3
Component: Sanitizers
Assignee: mm_san...@kernel-bugs.kernel.org
Reporter: andre...@gmail.com
CC: kasa...@googlegroups.com
Regression: No

Currently, tag-based KASAN modes keep the allocation/pointer tag on
krealloc()/vrealloc() when the old memory region is large enough to contain the
requested amount of data.

We could likely assign a new tag in this case to detect accesses through the
old memory pointer.

And a test to check this detection.

--
You may reply to this email to add a comment.

You are receiving this mail because:
You are on the CC list for the bug.
Reply all
Reply to author
Forward
0 new messages