+ alloc_tag-add-accuracy-based-filtering-to-ioctl-fix.patch added to mm-unstable branch
Andrew Morton <[email protected]> Tue, 04 Aug 2026 12:04:16 -0700
| Newsgroups | org.kernel.vger.mm-commits |
|---|---|
| Message-ID | <[email protected]> |
The patch titled
Subject: alloc_tag-add-accuracy-based-filtering-to-ioctl-fix
has been added to the -mm mm-unstable branch. Its filename is
alloc_tag-add-accuracy-based-filtering-to-ioctl-fix.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/alloc_tag-add-accuracy-based-filtering-to-ioctl-fix.patch
This patch will later appear in the mm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via various
branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there most days
------------------------------------------------------
From: Abhishek Bapat <[email protected]>
Subject: alloc_tag-add-accuracy-based-filtering-to-ioctl-fix
Date: Tue, 4 Aug 2026 18:24:14 +0000
Move the `inaccurate` filtering criteria from `struct allocinfo_tag` to
`struct allocinfo_filter`. validate the introduced feature.
Link: https://lore.kernel.org/e4e49ec4a5960292aeeb9e196526c18dc95228a2.1785867739.git.abhishekbapat@google.com
Signed-off-by: Abhishek Bapat <[email protected]>
Cc: Suren Baghdasaryan <[email protected]>
Cc: Hao Ge <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Kent Overstreet <[email protected]>
Cc: Sourav Panda <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
---
include/uapi/linux/alloc_tag.h | 4 ++--
mm/alloc_tag.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
--- a/include/uapi/linux/alloc_tag.h~alloc_tag-add-accuracy-based-filtering-to-ioctl-fix
+++ a/include/uapi/linux/alloc_tag.h
@@ -31,8 +31,6 @@ struct allocinfo_tag {
char function[ALLOCINFO_STR_SIZE];
char filename[ALLOCINFO_STR_SIZE];
__u64 lineno;
- /* filter criteria only; see allocinfo_counter.accurate for actual accuracy */
- __u64 inaccurate;
};
/* The alignment ensures 32-bit compatible interfaces are not broken */
@@ -74,6 +72,8 @@ struct allocinfo_filter {
struct allocinfo_tag fields;
__u64 min_size;
__u64 max_size;
+ /* filter criteria only; see allocinfo_counter.accurate for actual accuracy */
+ __u64 inaccurate;
};
struct allocinfo_get_at {
--- a/mm/alloc_tag.c~alloc_tag-add-accuracy-based-filtering-to-ioctl-fix
+++ a/mm/alloc_tag.c
@@ -291,7 +291,7 @@ static bool matches_filter(struct codeta
if (filter->mask & ALLOCINFO_FILTER_MASK_INACCURATE) {
inaccurate = !!(ct->flags & CODETAG_FLAG_INACCURATE);
- if (inaccurate != !!(filter->fields.inaccurate))
+ if (inaccurate != !!(filter->inaccurate))
return false;
}
_
Patches currently in -mm which might be from [email protected] are
alloc_tag-add-ioctl-filters-to-proc-allocinfo.patch
alloc_tag-add-size-based-filtering-to-ioctl.patch
alloc_tag-add-accuracy-based-filtering-to-ioctl.patch
alloc_tag-add-accuracy-based-filtering-to-ioctl-fix.patch
kselftest-alloc_tag-add-kselftest-for-ioctl-interface.patch
kselftest-alloc_tag-add-kselftest-for-ioctl-interface-fix.patch
kselftest-alloc_tag-extend-the-allocinfo-ioctl-kselftest.patch