<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/source/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in user_ns_map_kunit.c</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>e86d265826b8dc54178e16c4027d3bd5d0299f12 - Merge tag &apos;namespace-7.4-rc1.misc&apos; of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs</title>
        <link>http://kernelsources.org:8080/source/history/linux/kernel/tests/user_ns_map_kunit.c#e86d265826b8dc54178e16c4027d3bd5d0299f12</link>
        <description>Merge tag &apos;namespace-7.4-rc1.misc&apos; of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfsPull namespace updates from Christian Brauner: - Reject uid_map, gid_map and projid_map values that don&apos;t fit in a   u32.   map_write() parsed with simple_strtoul() and truncated modulo 2^32 on   64-bit so &quot;4294967301 1000 1&quot; was installed as &quot;5 1000 1&quot; without an   error. Each field is parsed with kstrtou32() now and selftests cover   the out-of-range, negative and in-range cases. This isn&apos;t a security   fix. The truncated values were valid ids and every later check still   applied to them. - Annotate struct uid_gid_map&apos;s forward and reverse pointers with   __counted_by_ptr and add a KUnit suite for inserting and sorting   extents.   insert_extent() wrote to forward[nr_extents] before bumping the count   which the annotation flags, so it bumps first now. Two follow-up   fixes rename the now global helpers to uid_gid_map_insert_extent()   and uid_gid_map_sort(), since the btrfs self-tests have their own   insert_extent(), and guard the declarations on CONFIG_KUNIT. - Drop the BUG_ON() NULL checks in copy_mnt_ns() and copy_utsname().   create_new_namespaces() always passes a valid pointer and the other   copy_*_ns() helpers don&apos;t check either. - Remove a dead key_put() on the create_user_ns() error path.* tag &apos;namespace-7.4-rc1.misc&apos; of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs:  selftests/namespaces: add uid_map/gid_map range tests  userns: reject uid_map/gid_map values that do not fit in u32  userns: declare the KUnit-visible helpers whenever KUnit is enabled  userns: rename insert_extent() and sort_idmaps()  userns: Add KUnit test suite for uid_gid_map  userns: Add __counted_by_ptr attribute to struct uid_gid_map  fs: namespace: drop BUG_ON() in copy_mnt_ns()  uts: drop BUG_ON() in copy_utsname()  userns: remove dead key_put() on the create_user_ns() error path

            List of files:
            /linux/kernel/tests/user_ns_map_kunit.c</description>
        <pubDate>Tue, 20 Oct 2026 04:09:10 +0200</pubDate>
        <dc:creator>Linus Torvalds &lt;torvalds@linux-foundation.org&gt;</dc:creator>
    </item>
<item>
        <title>15aa70de9f706fb0e3852f636b8a0a9d5bc048ab - Merge patch series &quot;Minor bugfixes for kunit userns tests&quot;</title>
        <link>http://kernelsources.org:8080/source/history/linux/kernel/tests/user_ns_map_kunit.c#15aa70de9f706fb0e3852f636b8a0a9d5bc048ab</link>
        <description>Merge patch series &quot;Minor bugfixes for kunit userns tests&quot;Christian Brauner &lt;brauner@kernel.org&gt; says:Two fixes for the kunit userns tests. Rename the helpers and make surethat the correct config knob guards the declarations.Christian Brauner (2):  userns: rename insert_extent() and sort_idmaps()  userns: declare the KUnit-visible helpers whenever KUnit is enabledinclude/linux/user_namespace.h   |  9 +++++---- kernel/tests/user_ns_map_kunit.c |  6 +++--- kernel/user_namespace.c          | 19 ++++++++++--------- 3 files changed, 18 insertions(+), 16 deletions(-)Link: https://patch.msgid.link/20260911-deftig-geprahlt-gesehen-16310bdf51f5@brauner* patches from https://patch.msgid.link/20260911-deftig-geprahlt-gesehen-16310bdf51f5@brauner:  userns: declare the KUnit-visible helpers whenever KUnit is enabled  userns: rename insert_extent() and sort_idmaps()Signed-off-by: Christian Brauner (Amutable) &lt;brauner@kernel.org&gt;

            List of files:
            /linux/kernel/tests/user_ns_map_kunit.c</description>
        <pubDate>Fri, 11 Sep 2026 15:00:41 +0200</pubDate>
        <dc:creator>Christian Brauner &lt;brauner@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>86cfbad9d7b3d2f6546dd3452aaade8022ac63ec - userns: rename insert_extent() and sort_idmaps()</title>
        <link>http://kernelsources.org:8080/source/history/linux/kernel/tests/user_ns_map_kunit.c#86cfbad9d7b3d2f6546dd3452aaade8022ac63ec</link>
        <description>userns: rename insert_extent() and sort_idmaps()The KUnit test suite turned insert_extent() and sort_idmaps() into globalsymbols and declared them in include/linux/user_namespace.h. That headeris pulled in nearly everywhere through linux/cgroup.h and the btrfsself-tests carry a static insert_extent() of their own, so any configwith both test suites enabled fails to build:  fs/btrfs/tests/inode-tests.c:16:13: error: conflicting types for &apos;insert_extent&apos;  include/linux/user_namespace.h:212:12: note: previous declaration of &apos;insert_extent&apos;A global symbol needs a prefix. Rename them touid_gid_map_insert_extent() and uid_gid_map_sort(). It&apos;s the better nameanyway.No functional changes.Fixes: f6f1a2496ba5 (&quot;userns: Add KUnit test suite for uid_gid_map&quot;)Reported-by: kernel test robot &lt;lkp@intel.com&gt;Closes: https://lore.kernel.org/oe-kbuild-all/202609110843.okbPe7GM-lkp@intel.com/Closes: https://lore.kernel.org/oe-kbuild-all/202609110937.zHKPPXJk-lkp@intel.com/Link: https://patch.msgid.link/20260911-suggerieren-suchaktion-fliehen-87b9cdf1d169@braunerSigned-off-by: Christian Brauner (Amutable) &lt;brauner@kernel.org&gt;

            List of files:
            /linux/kernel/tests/user_ns_map_kunit.c</description>
        <pubDate>Fri, 11 Sep 2026 14:58:39 +0200</pubDate>
        <dc:creator>Christian Brauner &lt;brauner@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>34a496d638705dc227cc6dd2aaaa9e450893502f - Merge patch series &quot;userns: Add __counted_by_ptr attribute to struct uid_gid_map&quot;</title>
        <link>http://kernelsources.org:8080/source/history/linux/kernel/tests/user_ns_map_kunit.c#34a496d638705dc227cc6dd2aaaa9e450893502f</link>
        <description>Merge patch series &quot;userns: Add __counted_by_ptr attribute to struct uid_gid_map&quot;Add kunit tests for user namespace idmappings.* patches from https://patch.msgid.link/20260908222734.3048684-1-morbo@google.com:  userns: Add KUnit test suite for uid_gid_map  userns: Add __counted_by_ptr attribute to struct uid_gid_mapLink: https://patch.msgid.link/20260908222734.3048684-1-morbo@google.comSigned-off-by: Christian Brauner (Amutable) &lt;brauner@kernel.org&gt;

            List of files:
            /linux/kernel/tests/user_ns_map_kunit.c</description>
        <pubDate>Wed, 09 Sep 2026 09:45:17 +0200</pubDate>
        <dc:creator>Christian Brauner &lt;brauner@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>f6f1a2496ba5dcc076d7fb7aa329887cd6ae55fa - userns: Add KUnit test suite for uid_gid_map</title>
        <link>http://kernelsources.org:8080/source/history/linux/kernel/tests/user_ns_map_kunit.c#f6f1a2496ba5dcc076d7fb7aa329887cd6ae55fa</link>
        <description>userns: Add KUnit test suite for uid_gid_mapAdd a KUnit test suite to verify the insertion and sorting of mappingsin struct uid_gid_map. This test suite validates both base extentinsertion (&lt;= 5 mappings) and extended extent insertion (&gt; 5 mappings,which triggers the allocation of the forward and reverse pointers).This is especially useful for verifying that the __counted_by_ptrattribute added to &apos;forward&apos; and &apos;reverse&apos; pointers works correctlywithout causing any runtime bounds-checking panics or traps.Signed-off-by: Bill Wendling &lt;morbo@google.com&gt;Link: https://patch.msgid.link/20260908222734.3048684-2-morbo@google.comTested-by: Bradley Morgan &lt;brads@mainlining.org&gt;Reviewed-by: Bradley Morgan &lt;brads@mainlining.org&gt;Signed-off-by: Christian Brauner (Amutable) &lt;brauner@kernel.org&gt;

            List of files:
            /linux/kernel/tests/user_ns_map_kunit.c</description>
        <pubDate>Wed, 09 Sep 2026 00:27:30 +0200</pubDate>
        <dc:creator>Bill Wendling &lt;morbo@google.com&gt;</dc:creator>
    </item>
</channel>
</rss>
