| 0/0 |
2026/09/21 00:02 |
flow |
assessment-security |
43m
Results: map[DenialOfService:false Explanation:**Analysis of the Bug Report**
The bug report is a KCSAN data-race warning between a read in `copy_mm`
(specifically inside `dup_mm`) and a write in `lru_gen_del_mm`.
1. **The Write (`lru_gen_del_mm`)**:
When a process exits and its `mm_users` count drops to zero, `__mmput` is
called, which in turn calls `lru_gen_del_mm`. This function removes the
`mm_struct` from the LRU generation list using
`list_del_init(&mm->lru_gen.list)`. The `list_del_init` operation modifies
the `next` and `prev` pointers of the adjacent elements in the doubly-linked
list.
2. **The Read (`dup_mm`)**:
When a process calls `clone` without `CLONE_VM`, `copy_mm` calls `dup_mm` to
duplicate the current process's `mm_struct`. `dup_mm` allocates a new
`mm_struct` and copies the old one using `memcpy(mm, oldmm, sizeof(*mm))`.
**The Race Condition**:
If the `oldmm` (the `mm_struct` of the process calling `clone`) happens to be
adjacent in the `lru_gen.list` to another `mm_struct` that is currently being
deleted by an exiting process, the `list_del_init` operation on the exiting `mm`
will update the `next` or `prev` pointers of `oldmm->lru_gen.list`.
Concurrently, `dup_mm` is reading the entirety of `oldmm` via `memcpy`. This
results in a torn read of the `lru_gen.list` pointers, which KCSAN correctly
flags as a data race.
**Security Impact**:
This data race is completely **benign** and has no security impact.
After `memcpy` copies the potentially torn `lru_gen.list` pointers into the new
`mm_struct`, `dup_mm` calls `mm_init(mm, tsk)`. Inside `mm_init`, the function
`lru_gen_init_mm(mm)` is called, which unconditionally reinitializes the list
head via `INIT_LIST_HEAD(&mm->lru_gen.list)`.
None of the initialization functions called between `memcpy` and
`lru_gen_init_mm` (such as `mm_alloc_pgd`, `init_new_context`, etc.) access the
`lru_gen.list` field. Furthermore, if any of these initialization steps fail,
the new `mm_struct` is simply freed via `kmem_cache_free`, which also does not
touch the list pointers.
Because the torn read value is never dereferenced or used in any way before
being overwritten or discarded, there is no risk of memory corruption,
information leaks, or denial of service.
**Triggerability**:
The bug can be triggered by any unprivileged local user (or within a user
namespace) simply by repeatedly calling `clone` (to trigger `dup_mm`) while
other processes are exiting (to trigger `lru_gen_del_mm`). However, as
established, triggering this race does not affect the kernel's execution or
stability. Exploitable:false FilesystemTrigger:false NetworkTrigger:false PeripheralTrigger:false RemoteTrigger:false Unprivileged:true UserNamespace:true VMGuestTrigger:false VMHostTrigger:false]
|
| 1/1 |
2026/09/21 00:02 |
action |
syz-repro-to-c-repro |
0m
Results:
|
| 2/1 |
2026/09/21 00:02 |
action |
kernel-checkouter |
1m
Results: map[KernelSrc:/app/workdir/cache/src/decf5f9385ed91ec40fcae5ae68b3c3de7586ec8]
|
| 3/1 |
2026/09/21 00:04 |
action |
kernel-builder |
20m
Results: map[KernelObj:/app/workdir/cache/build/15228b76238aa159e9fc6e8473639a18d9d1a692]
|
| 4/1 |
2026/09/21 00:24 |
action |
codesearch-prepare |
16m
Results: map[Index:codesearch-index]
|
| 5/1 |
2026/09/21 00:41 |
agent |
expert |
5m
Model:
Results: map[DenialOfService:false Exploitable:false FilesystemTrigger:false NetworkTrigger:false PeripheralTrigger:false RemoteTrigger:false Unprivileged:true UserNamespace:true VMGuestTrigger:false VMHostTrigger:false]
Instruction: You are an experienced Linux kernel security engineer. Your task is to analyze given kernel bug report
and determine its security impact based on the following dimensions.
Use the provided tools to examine the source code, check for capability checks (e.g., capable(), ns_capable()),
and understand the nature of the bug. Analyze the given kernel build and configuration.
You can check the kernel config by grepping ".config" file; you can check kernel cmdline by grepping
".config" file for "CONFIG_CMDLINE=". Assume sysctl parameters have default values.
But analyze for the corresponding production build w/o debugging tools enabled (like KASAN, KMSAN, UBSAN).
Try different strategies when analyzing the bug:
- think of ways in which the vulnerable code is unreachable
- or the other way around: try to come up with different ideas of how an unprivileged user can reach the bug
If still unsure err on the side of the bug being non-exploitable/not-accessible.
In the final reply, provide a reasoning for your assessment.
Analysis dimensions:
* Exploitable:
Determine if the bug can result in memory corruption, elevated privileges, or an information leak.
Memory safety issues are almost always exploitable (KASAN or UBSAN reports for use-after-free, out-of-bounds;
refcounting issues, corrupted lists, etc). When kernel is crashing on a completely wild pointer access
(e.g. user-space address, or non-canonical address, but not on NULL or address corresponding to KASAN shadow
for NULL address), including both data accesses and control transfers, that also usually implies possibility
of exploitation. Such reports usually say "unable to handle kernel paging request".
Uses of uninitialized values detected by KMSAN may be exploitable b/c attacker frequently can affect uninit
values with spraying techniques. However, for these exploitability depends on how exactly the uninit value
is used in the code, and what it affects.
Information leaks are exploitable on their own and should be classified as such. A bug that copies kernel
memory contents to userspace (e.g. an out-of-bounds read whose result is returned to the caller, or
uninitialized stack/heap bytes written to a user buffer) is exploitable: it can reveal kernel pointer
values and defeat KASLR, expose sensitive data such as cryptographic keys or other processes' memory, and
serves as a necessary building block in most modern kernel privilege-escalation exploit chains. Do not classify
an information leak as non-exploitable solely because it does not directly cause a memory write or control-flow
hijack; the leak itself is the exploit primitive.
Think of what happens after the bug is triggered. Some bugs cause kernel panic and halt execution,
they are harder to exploit. For example, BUG reports halts the kernel. However, WARNING reports don't halt
execution in production builds. Debug bug detection tools (like KASAN, KMSAN, KCSAN, UBSAN) are also not enabled
in production builds, so attacker can freely exploit these bugs w/o being detected by these tools.
If you see an integer overflow, think how the overflowed value used later (if it's used as allocation size,
or an array index). If you see an out-of-bounds read, think if it's followed by an out-of-bounds write as well.
Some KCSAN data-races may be exploitable by skilled attackers as well. Think what data structures got corrupted
as the result of data races and how. However, note that kernel has lots of "benign" data races that don't lead
to any runtime misbehavior at all.
* Denial Of Service:
Determine if the bug can result in denial-of-service. Most bugs can, since they cause system crash,
hangs, deadlocks, or resource leaks. This is mostly applicable to WARNING bugs that won't cause system crash
in production. For these think what will be consequences of the violation of the kernel assumptions flagged
by the WARNING. In some cases the unexpected condition is also properly handled by the normal control flow
(e.g. with "if (WARN_ON(...))"), these won't cause denial-of-service. If the condition is not handled,
then it may or may not cause denial-of-service.
* Accessible From Unprivileged Processes:
Determine if the bug can be reached from a typical (non-root) user process that does NOT have any special capabilities
(like CAP_SYS_ADMIN, CAP_NET_ADMIN, CAP_NET_RAW, CAP_PERFMON) or access to device nodes restricted to root.
Assume that unprivileged_bpf_disabled=1, that is eBPF loading is not accessible. However, cBPF (classical BPF)
is still accessible to non-root processes.
Assume that user namespaces are not accessible, that is, the process cannot get the mentioned capabilities even
within a new user namespace (checked by ns_capable() function in the kernel sources).
* Accessible From User Namespaces:
Determine if the bug can be reached within a user-namespace where the process has all capabilities
(including CAP_SYS_ADMIN, CAP_NET_ADMIN, CAP_NET_RAW, CAP_PERFMON). Such capabilities are checked with ns_capable()
function in the kernel sources.
* VM Guest Trigger:
Determine if the bug can be triggered from the context of a typical KVM guest (e.g., set up by a QEMU VMM).
Consider accesses to standard Linux host paravirtualized features (virtio-blk, virtio-net, etc.),
and handling of VM exits in the KVM code.
* VM Host Trigger in The Confidential Computing Context:
Determine if the bug can be triggered in a confidential computing guest kernel from the context of a KVM host.
Consider access to standard Linux guest paravirtualized features (virtio-blk, virtio-net, etc.).
* Ethernet Network Trigger:
Determine if the bug can be triggered by processing ingress network Ethernet traffic, either directly (network stack)
or via drivers exposed to network data.
* Other Remote Trigger:
Determine if the bug can be triggered by processing remote traffic other than Ethernet (Wifi, Bluetooth, NFC, etc).
* Peripheral Trigger:
Determine if the bug can be triggered via an untrusted peripheral device that can be physically plugged
into a system, such as a USB device or a niche hardware driver handling external hardware inputs.
This is particularly important for mobile and desktop environments where users can plug in unknown devices.
* Malicious Filesystem Trigger:
Determine if the bug can be triggered by the kernel mounting and parsing a malicious filesystem image.
This is highly critical for Desktop and Mobile environments where external media or downloaded images
might be auto-mounted.
Don't make assumptions about the kernel source code (it may be different from what you assume it is).
Extensively use the provided code access tools (codesearch-*, git-*, grepper, etc)
to examine the actual source code, and confirm any assumptions.
Prefer calling several tools at the same time to save round-trips.
Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.
Prompt:
The kernel bug report is:
==================================================================
BUG: KCSAN: data-race in copy_mm / lru_gen_del_mm
write to 0xffff8881077eb088 of 8 bytes by task 7336 on cpu 0:
__list_del include/linux/list.h:241 [inline]
__list_del_entry include/linux/list.h:264 [inline]
list_del_init include/linux/list.h:333 [inline]
lru_gen_del_mm+0x299/0x3e0 mm/vmscan.c:2998
__mmput+0x17a/0x1c0 kernel/fork.c:1203
mmput+0x40/0x50 kernel/fork.c:1216
exit_mm+0x113/0x1a0 kernel/exit.c:617
do_exit+0x438/0x1510 kernel/exit.c:999
do_group_exit+0x138/0x140 kernel/exit.c:1154
__do_sys_exit_group kernel/exit.c:1165 [inline]
__se_sys_exit_group kernel/exit.c:1163 [inline]
__x64_sys_exit_group+0x1f/0x20 kernel/exit.c:1163
x64_sys_call+0x254f/0x2550 arch/x86/include/generated/asm/syscalls_64.h:232
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x112/0x360 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
read to 0xffff8881077eaa00 of 1728 bytes by task 7337 on cpu 1:
dup_mm kernel/fork.c:1537 [inline]
copy_mm+0xd6/0x340 kernel/fork.c:1595
copy_process+0x10ad/0x2340 kernel/fork.c:2310
kernel_clone+0x1c0/0x5f0 kernel/fork.c:2769
__do_sys_clone kernel/fork.c:2911 [inline]
__se_sys_clone kernel/fork.c:2895 [inline]
__x64_sys_clone+0x143/0x180 kernel/fork.c:2895
x64_sys_call+0x2479/0x2550 arch/x86/include/generated/asm/syscalls_64.h:57
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x112/0x360 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 7337 Comm: dhcpcd-run-hook Not tainted syzkaller #0 PREEMPT(lazy)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
==================================================================
Reply: **Analysis of the Bug Report**
The bug report is a KCSAN data-race warning between a read in `copy_mm` (specifically inside `dup_mm`) and a write in `lru_gen_del_mm`.
1. **The Write (`lru_gen_del_mm`)**:
When a process exits and its `mm_users` count drops to zero, `__mmput` is called, which in turn calls `lru_gen_del_mm`. This function removes the `mm_struct` from the LRU generation list using `list_del_init(&mm->lru_gen.list)`. The `list_del_init` operation modifies the `next` and `prev` pointers of the adjacent elements in the doubly-linked list.
2. **The Read (`dup_mm`)**:
When a process calls `clone` without `CLONE_VM`, `copy_mm` calls `dup_mm` to duplicate the current process's `mm_struct`. `dup_mm` allocates a new `mm_struct` and copies the old one using `memcpy(mm, oldmm, sizeof(*mm))`.
**The Race Condition**:
If the `oldmm` (the `mm_struct` of the process calling `clone`) happens to be adjacent in the `lru_gen.list` to another `mm_struct` that is currently being deleted by an exiting process, the `list_del_init` operation on the exiting `mm` will update the `next` or `prev` pointers of `oldmm->lru_gen.list`. Concurrently, `dup_mm` is reading the entirety of `oldmm` via `memcpy`. This results in a torn read of the `lru_gen.list` pointers, which KCSAN correctly flags as a data race.
**Security Impact**:
This data race is completely **benign** and has no security impact.
After `memcpy` copies the potentially torn `lru_gen.list` pointers into the new `mm_struct`, `dup_mm` calls `mm_init(mm, tsk)`. Inside `mm_init`, the function `lru_gen_init_mm(mm)` is called, which unconditionally reinitializes the list head via `INIT_LIST_HEAD(&mm->lru_gen.list)`.
None of the initialization functions called between `memcpy` and `lru_gen_init_mm` (such as `mm_alloc_pgd`, `init_new_context`, etc.) access the `lru_gen.list` field. Furthermore, if any of these initialization steps fail, the new `mm_struct` is simply freed via `kmem_cache_free`, which also does not touch the list pointers.
Because the torn read value is never dereferenced or used in any way before being overwritten or discarded, there is no risk of memory corruption, information leaks, or denial of service.
**Triggerability**:
The bug can be triggered by any unprivileged local user (or within a user namespace) simply by repeatedly calling `clone` (to trigger `dup_mm`) while other processes are exiting (to trigger `lru_gen_del_mm`). However, as established, triggering this race does not affect the kernel's execution or stability.
|
| 6/2 |
2026/09/21 00:41 |
llm |
expert |
0m
Model:
Tokens:
input: 6874
output: 32
thoughts: 212
Thoughts: **Analyzing a KCSAN Data-Race Report**
Okay, so I've got a KCSAN data-race report here. Looks like the core issue is a race condition between `copy_mm` performing a read and `lru_gen_del_mm` doing a write. Specifically, the write is happening within `__list_del`, which is called inside `lru_gen_del_mm`, which is ultimately called from `__mmput`. The read, on the other hand, is inside `dup_mm`, which is part of `copy_mm`, and that's triggered during a `clone` operation by `copy_process`.
Right, let's zoom in on `dup_mm` and `lru_gen_del_mm` to get a better handle on this. The write is targeting `0xffff8881077eb088` and affects 8 bytes, while the read is looking at `0xffff8881077eaa00` and touches 1728 bytes. Hmm, `dup_mm` seems to be doing a full copy of the `mm_struct`, most likely with a `memcpy` or something similar, which could explain that large read size. I'd better confirm this, let's take a look at the `dup_mm` function directly in `kernel/fork.c`.
|
| 7/2 |
2026/09/21 00:41 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:kernel/fork.c Name:dup_mm]
Results: map[SourceCode:1517: /**
1518: * dup_mm() - duplicates an existing mm structure
1519: * @tsk: the task_struct with which the new mm will be associated.
1520: * @oldmm: the mm to duplicate.
1521: *
1522: * Allocates a new mm structure and duplicates the provided @oldmm structure
1523: * content into it.
1524: *
1525: * Return: the duplicated mm or NULL on failure.
1526: */
1527: static struct mm_struct *dup_mm(struct task_struct *tsk,
1528: struct mm_struct *oldmm)
1529: {
1530: struct mm_struct *mm;
1531: int err;
1532:
1533: mm = allocate_mm();
1534: if (!mm)
1535: goto fail_nomem;
1536:
1537: memcpy(mm, oldmm, sizeof(*mm));
1538:
1539: if (!mm_init(mm, tsk))
1540: goto fail_nomem;
1541:
1542: uprobe_start_dup_mmap();
1543: err = dup_mmap(mm, oldmm);
1544: if (err)
1545: goto free_pt;
1546: uprobe_end_dup_mmap();
1547:
1548: mm->hiwater_rss = get_mm_rss(mm);
1549: mm->hiwater_vm = mm->total_vm;
1550:
1551: if (mm->binfmt && !try_module_get(mm->binfmt->module))
1552: goto free_pt;
1553:
1554: return mm;
1555:
1556: free_pt:
1557: /* don't put binfmt in mmput, we haven't got module yet */
1558: mm->binfmt = NULL;
1559: mm_init_owner(mm, NULL);
1560: mmput(mm);
1561: if (err)
1562: uprobe_end_dup_mmap();
1563:
1564: fail_nomem:
1565: return NULL;
1566: }
SourceFile:kernel/fork.c]
|
| 8/2 |
2026/09/21 00:41 |
llm |
expert |
0m
Model:
Tokens:
input: 8114
output: 32
thoughts: 148
Thoughts: **My Immediate Concerns Regarding Memory Management**
Okay, so I'm looking at this code and I've got a red flag popping up. The `memcpy(mm, oldmm, sizeof(*mm));` at line 1537 is the critical read, right? And I'm seeing that the write is happening in `lru_gen_del_mm`, specifically modifying `mm->lru_gen.list`. Here's the kicker: it looks like `oldmm` β the very memory region we're *copying from* β is getting modified by `lru_gen_del_mm` during the duplication process! That screams potential race condition to me.
Now, `lru_gen_del_mm` is being called from `__mmput`. That means the `mm_users` count has dropped to zero at some point. But wait...if `mm_users` is zero, how can we even *have* a `dup_mm` call on it? Something seems fundamentally wrong with this control flow. The very act of the `dup_mm` function should be predicated on a nonzero value for `mm_users`. Let's step back and double check the broader context by examining `copy_mm` carefully to try and resolve this. This doesn't seem right.
|
| 9/2 |
2026/09/21 00:41 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:kernel/fork.c Name:copy_mm]
Results: map[SourceCode:1568: static int copy_mm(u64 clone_flags, struct task_struct *tsk)
1569: {
1570: struct mm_struct *mm, *oldmm;
1571:
1572: tsk->min_flt = tsk->maj_flt = 0;
1573: tsk->nvcsw = tsk->nivcsw = 0;
1574: #ifdef CONFIG_DETECT_HUNG_TASK
1575: tsk->last_switch_count = tsk->nvcsw + tsk->nivcsw;
1576: tsk->last_switch_time = 0;
1577: #endif
1578:
1579: tsk->mm = NULL;
1580: tsk->active_mm = NULL;
1581:
1582: /*
1583: * Are we cloning a kernel thread?
1584: *
1585: * We need to steal a active VM for that..
1586: */
1587: oldmm = current->mm;
1588: if (!oldmm)
1589: return 0;
1590:
1591: if (clone_flags & CLONE_VM) {
1592: mmget(oldmm);
1593: mm = oldmm;
1594: } else {
1595: mm = dup_mm(tsk, current->mm);
1596: if (!mm)
1597: return -ENOMEM;
1598: }
1599:
1600: tsk->mm = mm;
1601: tsk->active_mm = mm;
1602: return 0;
1603: }
SourceFile:kernel/fork.c]
|
| 10/2 |
2026/09/21 00:41 |
llm |
expert |
0m
Model:
Tokens:
input: 9084
output: 38
thoughts: 625
Thoughts: **Analyzing a Memory Management Conundrum**
Okay, so I'm looking at this KCSAN report and the core of the issue seems to stem from how memory management structures are handled during cloning. Specifically, `copy_mm` is being called on `current->mm`, but the report raises the immediate question of how that same `mm` could be involved in a `__mmput` operation. That doesn't make sense. If the memory management structure is in the process of being duplicated, its reference count (`mm_users`) should prevent it from being deallocated.
Then it hits me, `__mmput` triggers when `mm_users` hits zero, but `current->mm` must have a positive `mm_users` count while the current task is running and cloning, which means it should not be the one being freed.
The report highlights a write to address `0xffff8881077eb088` and a read from `0xffff8881077eaa00`. This read operation is `memcpy(mm, oldmm, sizeof(*mm))`, that is, reading from `oldmm` and writing to `mm`. The crucial detail is that the read is happening on `oldmm` (address `0xffff8881077eaa00`), and the write to address `0xffff8881077eb088` which is an offset from the read address (`0xffff8881077eaa00 + 0x688`). The `memcpy` function is reading `sizeof(*mm)` bytes from `oldmm`.
Now, if `lru_gen_del_mm` is modifying `oldmm`, then we have a problem. The function modifies `oldmm`. However, `oldmm` is `current->mm` of task 7337. Again, how can that `current->mm` be deleted?
Aha! Maybe `lru_gen_del_mm` is affecting `mm->lru_gen.list` of *another* mm structure, and list operation corrupts pointers which affect the `oldmm->lru_gen.list`. `lru_gen_del_mm` does a `list_del_init(&mm->lru_gen.list)`. This modifies `prev` and `next` elements in the linked list. So, if `oldmm` happens to be adjacent to the deleted `mm` in the `lru_gen.list`, `list_del_init` on the deleted `mm` could write to `oldmm->lru_gen.list.prev` or `next`. Bingo!
That explains it! `dup_mm` is reading `oldmm` using `memcpy` without any locks. Therefore, `memcpy` is reading `oldmm->lru_gen.list` while it is being updated by `list_del_init` of an adjacent `mm`! It's a classic data race on a list element. Time to look more closely at `lru_gen_del_mm`.
|
| 11/2 |
2026/09/21 00:41 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:mm/vmscan.c Name:lru_gen_del_mm]
Results: map[SourceCode:2969: void lru_gen_del_mm(struct mm_struct *mm)
2970: {
2971: int nid;
2972: struct lru_gen_mm_list *mm_list;
2973: struct mem_cgroup *memcg = NULL;
2974:
2975: if (list_empty(&mm->lru_gen.list))
2976: return;
2977:
2978: #ifdef CONFIG_MEMCG
2979: memcg = mm->lru_gen.memcg;
2980: #endif
2981: mm_list = get_mm_list(memcg);
2982:
2983: spin_lock(&mm_list->lock);
2984:
2985: for_each_node(nid) {
2986: struct lruvec *lruvec = get_lruvec(memcg, nid);
2987: struct lru_gen_mm_state *mm_state = get_mm_state(lruvec);
2988:
2989: /* where the current iteration continues after */
2990: if (mm_state->head == &mm->lru_gen.list)
2991: mm_state->head = mm_state->head->prev;
2992:
2993: /* where the last iteration ended before */
2994: if (mm_state->tail == &mm->lru_gen.list)
2995: mm_state->tail = mm_state->tail->next;
2996: }
2997:
2998: list_del_init(&mm->lru_gen.list);
2999:
3000: spin_unlock(&mm_list->lock);
3001:
3002: #ifdef CONFIG_MEMCG
3003: mem_cgroup_put(mm->lru_gen.memcg);
3004: mm->lru_gen.memcg = NULL;
3005: #endif
3006: }
SourceFile:mm/vmscan.c]
|
| 12/2 |
2026/09/21 00:41 |
llm |
expert |
0m
Model:
Tokens:
input: 11010
output: 32
thoughts: 175
Thoughts: **Analyzing a Potential Data Race in Memory Management**
Okay, so I see that `list_del_init(&mm->lru_gen.list)` definitely alters the `next` and `prev` pointers of the list's neighboring elements. I'm following the logic; if `oldmm` and `mm` are next to each other in this list, then modifying `mm->lru_gen.list` is going to write to either `oldmm->lru_gen.list.next` or `oldmm->lru_gen.list.prev`. Now, simultaneously, `dup_mm` is doing a direct `memcpy` from `oldmm` to `newmm`. Right there, that's a data race, no question.
The key now is, is this harmful? `dup_mm` copies `oldmm` to `newmm`. Then we call `mm_init(newmm, tsk)`. So, the question becomes, what does `mm_init` actually *do*? Specifically, does `mm_init` reinitialize `newmm->lru_gen.list`? That's where the resolution of the race lies. If `mm_init` reinitializes the list, it's likely a benign race, since `newmm` will be cleaned up and the previous information from `oldmm` will be irrelevant. If it does not reinitialize, then the race could be a problem. Time to dig into the `mm_init` implementation...
|
| 13/2 |
2026/09/21 00:41 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:kernel/fork.c Name:mm_init]
Results: map[SourceCode:1091: static struct mm_struct *mm_init(struct mm_struct *mm, struct task_struct *p)
1092: {
1093: mt_init_flags(&mm->mm_mt, MM_MT_FLAGS);
1094: mt_set_external_lock(&mm->mm_mt, &mm->mmap_lock);
1095: atomic_set(&mm->mm_users, 1);
1096: atomic_set(&mm->mm_count, 1);
1097: seqcount_init(&mm->write_protect_seq);
1098: mmap_init_lock(mm);
1099: INIT_LIST_HEAD(&mm->mmlist);
1100: mm_pgtables_bytes_init(mm);
1101: mm->map_count = 0;
1102: mm->locked_vm = 0;
1103: atomic64_set(&mm->pinned_vm, 0);
1104: memset(&mm->rss_stat, 0, sizeof(mm->rss_stat));
1105: spin_lock_init(&mm->page_table_lock);
1106: spin_lock_init(&mm->arg_lock);
1107: mm_init_cpumask(mm);
1108: mm_init_aio(mm);
1109: mm_init_owner(mm, p);
1110: mm_pasid_init(mm);
1111: RCU_INIT_POINTER(mm->exe_file, NULL);
1112: mmu_notifier_subscriptions_init(mm);
1113: init_tlb_flush_pending(mm);
1114: #if defined(CONFIG_TRANSPARENT_HUGEPAGE) && !defined(CONFIG_SPLIT_PMD_PTLOCKS)
1115: mm->pmd_huge_pte = NULL;
1116: #endif
1117: mm_init_uprobes_state(mm);
1118: hugetlb_count_init(mm);
1119: futex_mm_init(mm);
1120:
1121: mm_flags_clear_all(mm);
1122: if (current->mm) {
1123: unsigned long flags = __mm_flags_get_word(current->mm);
1124:
1125: __mm_flags_overwrite_word(mm, mmf_init_legacy_flags(flags));
1126: mm->def_flags = current->mm->def_flags & VM_INIT_DEF_MASK;
1127: } else {
1128: __mm_flags_overwrite_word(mm, coredump_filter);
1129: mm->def_flags = 0;
1130: }
1131:
1132: if (mm_alloc_pgd(mm))
1133: goto fail_mm_init;
1134:
1135: if (mm_alloc_id(mm))
1136: goto fail_noid;
1137:
1138: if (init_new_context(p, mm))
1139: goto fail_nocontext;
1140:
1141: if (mm_alloc_cid(mm, p))
1142: goto fail_cid;
1143:
1144: if (mm_alloc_sched(mm))
1145: goto fail_sched;
1146:
1147: if (percpu_counter_init_many(mm->rss_stat, 0, GFP_KERNEL_ACCOUNT,
1148: NR_MM_COUNTERS))
1149: goto fail_pcpu;
1150:
1151: lru_gen_init_mm(mm);
1152: return mm;
1153:
1154: fail_pcpu:
1155: mm_destroy_sched(mm);
1156: fail_sched:
1157: mm_destroy_cid(mm);
1158: fail_cid:
1159: destroy_context(mm);
1160: fail_nocontext:
1161: mm_free_id(mm);
1162: fail_noid:
1163: mm_free_pgd(mm);
1164: fail_mm_init:
1165: free_mm(mm);
1166: return NULL;
1167: }
SourceFile:kernel/fork.c]
|
| 14/2 |
2026/09/21 00:41 |
llm |
expert |
0m
Model:
Tokens:
input: 12795
output: 38
thoughts: 39
Thoughts: Here's my summary, as the expert:
**Tracing the Memory Management Initialization**
Okay, so I'm digging into this code and, yep, on line 1151, the function `lru_gen_init_mm(mm)` is getting called. That's a key point. This means the LRU generation initialization is being triggered. My next move is clear: I need to dive into `lru_gen_init_mm` itself. I want to see precisely what's happening within that function β what data structures are being set up, what critical initializations are occurring, and what assumptions this setup relies on within the overall memory management scheme. This is where the core of my analysis really begins. I want to understand how the generational LRU is integrated and how it's poised to handle memory management, and `lru_gen_init_mm` holds the key.
|
| 15/2 |
2026/09/21 00:41 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:mm/vmscan.c Name:lru_gen_init_mm]
Results: map[SourceCode:1502: static inline void lru_gen_init_mm(struct mm_struct *mm)
1503: {
1504: INIT_LIST_HEAD(&mm->lru_gen.list);
1505: mm->lru_gen.bitmap = 0;
1506: #ifdef CONFIG_MEMCG
1507: mm->lru_gen.memcg = NULL;
1508: #endif
1509: }
SourceFile:include/linux/mm_types.h]
|
| 16/2 |
2026/09/21 00:41 |
llm |
expert |
0m
Model:
Tokens:
input: 13219
output: 32
thoughts: 436
Thoughts: **Benign Data Race in `lru_gen_init_mm` - No Real Consequence**
Okay, so I'm digging into this `lru_gen_init_mm` issue. First things first, I need to confirm where `lru_gen_init_mm` is actually defined β is it in `mm_types.h` or `mm_inline.h`? The initial report says `mm_types.h`, but I'm betting it's actually in `mm_inline.h` or even `mm.h`. I'll have to double-check that. Regardless, I see `INIT_LIST_HEAD(&mm->lru_gen.list)` being called.
Right, so there's a `memcpy` going on that's writing data, and then *immediately* `INIT_LIST_HEAD` is nuking that same memory location, specifically `lru_gen.list`. The key here is that whatever `memcpy` is reading is *never* used. It's an immediate overwrite. This data race, in and of itself, is benign.
The KCSAN report seems to be flagging a data race between `memcpy` and `list_del_init`, because `memcpy` isn't atomic, but this seems to be a case of the race being completely harmless. The torn read doesn't matter, and the value is discarded, it is not used for anything. I need to make sure I haven't overlooked any other potential issues, however.
I have to consider the worst-case scenarios. Could `memcpy` crash if it's reading unmapped memory? No, because `oldmm` is `current->mm`, which is always pinned and alive. Could it read a pointer that's later dereferenced? Nope, because `INIT_LIST_HEAD` is immediately overwriting the copied data. So, I can confidently say this looks like a completely benign data race.
I still want to be completely sure. I'm going to double-check and see if there are any other fields besides `lru_gen.list` that are being written or read. Let's see... The write is to `0xffff8881077eb088` (8 bytes), the read is to `0xffff8881077eaa00` (1728 bytes). That means there's a 1672 byte offset. I need to check the `mm_struct` layout to see what lies at that particular offset and ensure there's no other data that could be affected. Just to be absolutely certain.
|
| 17/2 |
2026/09/21 00:41 |
tool |
codesearch-struct-layout |
0m
Args: map[ContextFile:kernel/fork.c Name:mm_struct]
Results: map[Fields:[map[Name: OffsetBits:0 SizeBits:13824] map[Name:flexible_array OffsetBits:13824 SizeBits:0]]]
|
| 18/2 |
2026/09/21 00:41 |
llm |
expert |
0m
Model:
Tokens:
input: 14308
output: 40
thoughts: 67
Thoughts: **Analyzing the `mm_struct` Size and a Specific Offset**
Okay, let's break this down. First, I'm noting that the `mm_struct` size is 13824 bits, which works out to 1728 bytes. That's a reasonable size for a core memory management structure; I've seen far larger. Now, I'm focusing on offset 1672. Converting that to bits, `1672 * 8 = 13376` bits. The goal is to query the field located at this offset. I'm going to start by confirming I have a valid field at that offset and then proceed to understand the data within.
|
| 19/2 |
2026/09/21 00:41 |
tool |
codesearch-struct-layout |
0m
Args: map[ContextFile:kernel/fork.c FieldOffset:1672 Name:mm_struct]
Results: map[Fields:[map[Name: OffsetBits:0 SizeBits:13824]]]
|
| 20/2 |
2026/09/21 00:41 |
llm |
expert |
0m
Model:
Tokens:
input: 14601
output: 36
thoughts: 38
Thoughts: Okay, here's my interpretation of those thoughts, tailored for an expert audience, as if they were my own:
**Investigating a Data Structure's Quirks**
Hmm, so it looks like this function isn't returning a specific member, but the entire structure or an anonymous union. That's not what I was expecting. It throws off my assumptions about how the relevant data is being accessed and can lead to unnecessary overhead. I need to understand what's *actually* happening. My intuition is telling me there's something unconventional going on at a specific offset.
Alright, let's get down to brass tacks. I'm going to consult `codeexpert` now. I need to pinpoint the layout, specifically, what's at offset 1672 within the `mm_struct`. It could be a padding issue, a cleverly placed bitfield, or something entirely unexpected. Knowing the details there will give me a clear picture of whether this is optimized or a potential bottleneck. I'm hoping to get some low-level details.
|
| 21/2 |
2026/09/21 00:41 |
tool |
codeexpert |
3m
Args: map[Question:What field is at offset 1672 (0x688) in mm_struct?]
Results: map[Answer:The field at offset 1672 (0x688) in `struct mm_struct` is `ksm_rmap_items` (type `unsigned long`).
### Layout Breakdown & Calculation
In the active x86_64 configuration, the anonymous inner struct inside `mm_struct` has a total size of 1728 bytes (0x6C0, or 13824 bits as reported by `codesearch-struct-layout`).
Working backwards from the end of the inner struct at offset 1728 (0x6C0):
- **1724β1727 (4 bytes)**: Struct alignment padding (to 8-byte boundary)
- **1720β1723 (4 bytes)**: `mm_id_t mm_id` (`CONFIG_MM_ID`)
- **1712β1719 (8 bytes)**: `lru_gen.memcg` (`CONFIG_MEMCG`)
- **1704β1711 (8 bytes)**: `lru_gen.bitmap`
- **1688β1703 (16 bytes)**: `lru_gen.list` (`struct list_head`)
- **1680β1687 (8 bytes)**: `atomic_long_t ksm_zero_pages`
- **1672β1679 (8 bytes, 0x688β0x68F)**: `unsigned long ksm_rmap_items`
- **1664β1671 (8 bytes, 0x680β0x687)**: `unsigned long ksm_merging_pages`
- **1656β1663 (8 bytes)**: `struct iommu_mm_data *iommu_mm` (`CONFIG_IOMMU_MM_DATA`)
- **1624β1655 (32 bytes)**: `struct work_struct async_put_work`
### Caveats & Unverified Aspects
1. Because `mm_struct` encloses its members in an anonymous struct (`struct { ... } __randomize_layout;`), struct layout tools only expose top-level fields (`""` from 0 to 1728, followed by `flexible_array` at 1728). The offset was determined by calculating sizes and alignments of the preceding/subsequent fields relative to the verified struct boundary at 1728 bytes.
2. If `CONFIG_RANDSTRUCT` (structure layout randomization) is enabled, member ordering is randomized at build time. In standard builds without `CONFIG_RANDSTRUCT`, `__randomize_layout` expands to `__designated_init`, preserving sequential source declaration order.
3. If specific optional Kconfig options near the end of `mm_struct` are toggled off (e.g., `CONFIG_KSM`, `CONFIG_LRU_GEN_WALKS_MMU`, or `CONFIG_MM_ID`), field offsets in this region will shift accordingly.]
|
| 22/3 |
2026/09/21 00:41 |
agent |
codeexpert |
3m
Model:
Results: map[Answer:The field at offset 1672 (0x688) in `struct mm_struct` is `ksm_rmap_items` (type `unsigned long`).
### Layout Breakdown & Calculation
In the active x86_64 configuration, the anonymous inner struct inside `mm_struct` has a total size of 1728 bytes (0x6C0, or 13824 bits as reported by `codesearch-struct-layout`).
Working backwards from the end of the inner struct at offset 1728 (0x6C0):
- **1724β1727 (4 bytes)**: Struct alignment padding (to 8-byte boundary)
- **1720β1723 (4 bytes)**: `mm_id_t mm_id` (`CONFIG_MM_ID`)
- **1712β1719 (8 bytes)**: `lru_gen.memcg` (`CONFIG_MEMCG`)
- **1704β1711 (8 bytes)**: `lru_gen.bitmap`
- **1688β1703 (16 bytes)**: `lru_gen.list` (`struct list_head`)
- **1680β1687 (8 bytes)**: `atomic_long_t ksm_zero_pages`
- **1672β1679 (8 bytes, 0x688β0x68F)**: `unsigned long ksm_rmap_items`
- **1664β1671 (8 bytes, 0x680β0x687)**: `unsigned long ksm_merging_pages`
- **1656β1663 (8 bytes)**: `struct iommu_mm_data *iommu_mm` (`CONFIG_IOMMU_MM_DATA`)
- **1624β1655 (32 bytes)**: `struct work_struct async_put_work`
### Caveats & Unverified Aspects
1. Because `mm_struct` encloses its members in an anonymous struct (`struct { ... } __randomize_layout;`), struct layout tools only expose top-level fields (`""` from 0 to 1728, followed by `flexible_array` at 1728). The offset was determined by calculating sizes and alignments of the preceding/subsequent fields relative to the verified struct boundary at 1728 bytes.
2. If `CONFIG_RANDSTRUCT` (structure layout randomization) is enabled, member ordering is randomized at build time. In standard builds without `CONFIG_RANDSTRUCT`, `__randomize_layout` expands to `__designated_init`, preserving sequential source declaration order.
3. If specific optional Kconfig options near the end of `mm_struct` are toggled off (e.g., `CONFIG_KSM`, `CONFIG_LRU_GEN_WALKS_MMU`, or `CONFIG_MM_ID`), field offsets in this region will shift accordingly.]
Instruction:
You are a capable Linux kernel developer tasked with researching complex questions
about kernel source code. You will be given a concrete question, and need to provide
a concrete answer.
Research the question using targeted, efficient tool calls. Don't make assumptions,
or rely on your previous knowledge about the kernel source code, use available tools
to access the actual source code. Keep your tool calls focused and limited to the
scope of the question. Do not explore tangential code paths or perform unbounded searches.
Use all available sources of information:
- kernel source code
- documentation in the Documentation dir in the source tree
- git commits descriptions, git blame
Do not guess file names or file paths and attempt to read them without
verifying their existence first using content search or directory listing tools.
If a file, symbol, or directory is not found via content search (grepper) or
directory listing (codesearch-dir-index), treat it as completely absent.
Do not attempt to guess alternative names, extensions, or directories.
Tool Selection Guidelines:
1. For C functions, structs, and variables: Prefer codesearch-definition-source
or codesearch-struct-layout FIRST to retrieve clean, exact definitions
without line-number guessing.
2. If symbol lookup fails (e.g., preprocessor macros, macro-generated code, or
disabled #ifdef branches), fall back to read-file or grepper.
3. For file headers, #include directives, preprocessor macro definitions, and
non-C files (Kconfig, Makefiles, docs): Use read-file or grepper directly.
4. Be concise and targeted. Answer the question as directly and concisely as possible
once you have located the relevant code or definitions. If a symbol or function cannot
be found after targeted searches, conclude with the best available information rather
than continuing repetitive searches.
Do NOT use git-log to search for the presence or existence of files in the
repository. git-log is only for tracing commit history of files that are
already present in the current checkout. If a file does not exist in the
current checkout, it cannot be used for reproduction.
Avoid running broad git-log queries (such as searches on the entire repo)
without a specific 'PathPrefix' to restrict the scope, as these are very
expensive and will time out.
If a git-log tool call times out, do not retry the query with the same broad
scope. You must specify a tighter, narrower 'PathPrefix' for subsequent queries.
Prefer calling several tools at the same time to save round-trips.
Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.
Prompt: What field is at offset 1672 (0x688) in mm_struct?
|
| 23/4 |
2026/09/21 00:41 |
llm |
codeexpert |
0m
Model:
Tokens:
input: 4168
output: 29
thoughts: 173
Thoughts: **Analyzing the Offset within `mm_struct`**
Okay, so the question is, what's at offset 1672 (0x688) within the `mm_struct`? Let's figure this out. Time to leverage the tools at our disposal. Specifically, the `codesearch-struct-layout` tool looks like the perfect fit.
I recall its functionality β the key parameters are the `Name` of the structure we're interested in, a `FieldOffset` to specify which byte position we want information about, and a `ContextFile` which is not relevant in this case. If `FieldOffset` isn't provided, it shows the entire struct layout, but in this case, we definitely *do* want to know about a specific offset.
Therefore, the obvious next step is to execute `codesearch-struct-layout` with `Name="mm_struct"` and `FieldOffset=1672`. Hopefully, this will give us a definitive answer and identify the field(s) located at that memory address. I'm keen to see what comes up. Let's get cracking.
|
| 24/4 |
2026/09/21 00:41 |
tool |
codesearch-struct-layout |
0m
Args: map[FieldOffset:1672 Name:mm_struct]
Results: map[Fields:[map[Name: OffsetBits:0 SizeBits:13824]]]
|
| 25/4 |
2026/09/21 00:41 |
llm |
codeexpert |
0m
Model:
Tokens:
input: 4643
output: 21
thoughts: 131
Thoughts: **Debugging a Mysterious Data Structure**
Okay, so I just got this back: `{Fields:[{Name:"",OffsetBits:0,SizeBits:13824}]}`. Hmm, that's⦠interesting. The `Name` field is empty. That's a red flag. My immediate thought is, maybe this is an unnamed struct or union we're dealing with. It's possible the `FieldOffset` wasn't specific enough, or perhaps we neglected to specify the `ContextFile`. Or, *maybe* the `FieldOffset` lies within an unnamed struct or union itself, which complicates things. I also think, we could query the *entire* struct, rather than this specific element, or, as a preliminary, let's just trace back where `mm_struct` is even defined.
Right, so to get a handle on this, I'll try calling `codesearch-struct-layout` again, but this time I'll omit the `FieldOffset` entirely. That should give me a complete picture of all the fields. Alternatively, I can start by trying to find the definition of `mm_struct` directly. That might provide some immediate clarity.
|
| 26/4 |
2026/09/21 00:41 |
tool |
codesearch-struct-layout |
0m
Args:
Results: map[Fields:[map[Name: OffsetBits:0 SizeBits:13824] map[Name:flexible_array OffsetBits:13824 SizeBits:0]]]
|
| 27/4 |
2026/09/21 00:41 |
llm |
codeexpert |
0m
Model:
Tokens:
input: 5100
output: 21
thoughts: 56
Thoughts: Here's my thought process, as if I were considering this issue:
**Delving into the `mm_struct` Mystery**
Okay, hold on a minute. I'm looking at this `mm_struct`, and I'm pretty sure I'm seeing an anonymous struct or union *within* it. Alternatively, maybe this whole thing is begging for a `ContextFile` setup. Damn, I need to understand this structure better! The definition of `struct mm_struct` is going to be key here. Where is it actually declared? I need the source code.
Alright, time to crack out the heavy artillery. I'll fire up `grepper` (or, if I'm feeling fancy, maybe use `codesearch-definition-source`) to locate the full definition of that structure. That's the first step. I need the full context to understand what I'm dealing with. Let's get hunting!
|
| 28/4 |
2026/09/21 00:42 |
tool |
codesearch-definition-source |
0m
Args:
Results: map[SourceCode:1175: struct mm_struct {
1176: struct {
1177: /*
1178: * Fields which are often written to are placed in a separate
1179: * cache line.
1180: */
1181: struct {
1182: /**
1183: * @mm_count: The number of references to &struct
1184: * mm_struct (@mm_users count as 1).
1185: *
1186: * Use mmgrab()/mmdrop() to modify. When this drops to
1187: * 0, the &struct mm_struct is freed.
1188: */
1189: atomic_t mm_count;
1190: } ____cacheline_aligned_in_smp;
1191:
1192: struct maple_tree mm_mt;
1193:
1194: unsigned long mmap_base; /* base of mmap area */
1195: unsigned long mmap_legacy_base; /* base of mmap area in bottom-up allocations */
1196: #ifdef CONFIG_HAVE_ARCH_COMPAT_MMAP_BASES
1197: /* Base addresses for compatible mmap() */
1198: unsigned long mmap_compat_base;
1199: unsigned long mmap_compat_legacy_base;
1200: #endif
1201: unsigned long task_size; /* size of task vm space */
1202: pgd_t * pgd;
1203:
1204: #ifdef CONFIG_MEMBARRIER
1205: /**
1206: * @membarrier_state: Flags controlling membarrier behavior.
1207: *
1208: * This field is close to @pgd to hopefully fit in the same
1209: * cache-line, which needs to be touched by switch_mm().
1210: */
1211: atomic_t membarrier_state;
1212: #endif
1213:
1214: /**
1215: * @mm_users: The number of users including userspace.
1216: *
1217: * Use mmget()/mmget_not_zero()/mmput() to modify. When this
1218: * drops to 0 (i.e. when the task exits and there are no other
1219: * temporary reference holders), we also release a reference on
1220: * @mm_count (which may then free the &struct mm_struct if
1221: * @mm_count also drops to 0).
1222: */
1223: atomic_t mm_users;
1224:
1225: /* MM CID related storage */
1226: struct mm_mm_cid mm_cid;
1227:
1228: /* sched_cache related statistics */
1229: struct sched_cache_stat sc_stat;
1230: #ifdef CONFIG_MMU
1231: atomic_long_t pgtables_bytes; /* size of all page tables */
1232: #endif
1233: int map_count; /* number of VMAs */
1234:
1235: spinlock_t page_table_lock; /* Protects page tables and some
1236: * counters
1237: */
1238: /*
1239: * Typically the current mmap_lock's offset is 56 bytes from
1240: * the last cacheline boundary, which is very optimal, as
1241: * its two hot fields 'count' and 'owner' sit in 2 different
1242: * cachelines, and when mmap_lock is highly contended, both
1243: * of the 2 fields will be accessed frequently, current layout
1244: * will help to reduce cache bouncing.
1245: *
1246: * So please be careful with adding new fields before
1247: * mmap_lock, which can easily push the 2 fields into one
1248: * cacheline.
1249: */
1250: struct rw_semaphore mmap_lock;
1251:
1252: struct list_head mmlist; /* List of maybe swapped mm's. These
1253: * are globally strung together off
1254: * init_mm.mmlist, and are protected
1255: * by mmlist_lock
1256: */
1257: #ifdef CONFIG_PER_VMA_LOCK
1258: struct rcuwait vma_writer_wait;
1259: /*
1260: * This field has lock-like semantics, meaning it is sometimes
1261: * accessed with ACQUIRE/RELEASE semantics.
1262: * Roughly speaking, incrementing the sequence number is
1263: * equivalent to releasing locks on VMAs; reading the sequence
1264: * number can be part of taking a read lock on a VMA.
1265: * Incremented every time mmap_lock is write-locked/unlocked.
1266: * Initialized to 0, therefore odd values indicate mmap_lock
1267: * is write-locked and even values that it's released.
1268: *
1269: * Can be modified under write mmap_lock using RELEASE
1270: * semantics.
1271: * Can be read with no other protection when holding write
1272: * mmap_lock.
1273: * Can be read with ACQUIRE semantics if not holding write
1274: * mmap_lock.
1275: */
1276: seqcount_t mm_lock_seq;
1277: #endif
1278: struct futex_mm_data futex;
1279:
1280: unsigned long hiwater_rss; /* High-watermark of RSS usage */
1281: unsigned long hiwater_vm; /* High-water virtual memory usage */
1282:
1283: unsigned long total_vm; /* Total pages mapped */
1284: unsigned long locked_vm; /* Pages that have PG_mlocked set */
1285: atomic64_t pinned_vm; /* Refcount permanently increased */
1286: unsigned long data_vm; /* VM_WRITE & ~VM_SHARED & ~VM_STACK */
1287: unsigned long exec_vm; /* VM_EXEC & ~VM_WRITE & ~VM_STACK */
1288: unsigned long stack_vm; /* VM_STACK */
1289: union {
1290: /* Temporary while VMA flags are being converted. */
1291: vm_flags_t def_flags;
1292: vma_flags_t def_vma_flags;
1293: };
1294:
1295: /**
1296: * @write_protect_seq: Locked when any thread is write
1297: * protecting pages mapped by this mm to enforce a later COW,
1298: * for instance during page table copying for fork().
1299: */
1300: seqcount_t write_protect_seq;
1301:
1302: spinlock_t arg_lock; /* protect the below fields */
1303:
1304: unsigned long start_code, end_code, start_data, end_data;
1305: unsigned long start_brk, brk, start_stack;
1306: unsigned long arg_start, arg_end, env_start, env_end;
1307:
1308: unsigned long saved_auxv[AT_VECTOR_SIZE]; /* for /proc/PID/auxv */
1309:
1310: #ifdef CONFIG_ARCH_HAS_ELF_CORE_EFLAGS
1311: /* the ABI-related flags from the ELF header. Used for core dump */
1312: unsigned long saved_e_flags;
1313: #endif
1314:
1315: struct percpu_counter rss_stat[NR_MM_COUNTERS];
1316:
1317: struct linux_binfmt *binfmt;
1318:
1319: /* Architecture-specific MM context */
1320: mm_context_t context;
1321:
1322: mm_flags_t flags; /* Must use mm_flags_* hlpers to access */
1323:
1324: #ifdef CONFIG_AIO
1325: spinlock_t ioctx_lock;
1326: struct kioctx_table __rcu *ioctx_table;
1327: #endif
1328: #ifdef CONFIG_MEMCG
1329: /*
1330: * "owner" points to a task that is regarded as the canonical
1331: * user/owner of this mm. All of the following must be true in
1332: * order for it to be changed:
1333: *
1334: * current == mm->owner
1335: * current->mm != mm
1336: * new_owner->mm == mm
1337: * new_owner->alloc_lock is held
1338: */
1339: struct task_struct __rcu *owner;
1340: #endif
1341:
1342: /* store ref to file /proc/<pid>/exe symlink points to */
1343: struct file __rcu *exe_file;
1344: #ifdef CONFIG_MMU_NOTIFIER
1345: struct mmu_notifier_subscriptions *notifier_subscriptions;
1346: #endif
1347: #if defined(CONFIG_TRANSPARENT_HUGEPAGE) && !defined(CONFIG_SPLIT_PMD_PTLOCKS)
1348: pgtable_t pmd_huge_pte; /* protected by page_table_lock */
1349: #endif
1350: #ifdef CONFIG_NUMA_BALANCING
1351: /*
1352: * numa_next_scan is the next time that PTEs will be remapped
1353: * PROT_NONE to trigger NUMA hinting faults; such faults gather
1354: * statistics and migrate pages to new nodes if necessary.
1355: */
1356: unsigned long numa_next_scan;
1357:
1358: /* Restart point for scanning and remapping PTEs. */
1359: unsigned long numa_scan_offset;
1360:
1361: /* numa_scan_seq prevents two threads remapping PTEs. */
1362: int numa_scan_seq;
1363: #endif
1364: /*
1365: * An operation with batched TLB flushing is going on. Anything
1366: * that can move process memory needs to flush the TLB when
1367: * moving a PROT_NONE mapped page.
1368: */
1369: atomic_t tlb_flush_pending;
1370: #ifdef CONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH
1371: /* See flush_tlb_batched_pending() */
1372: atomic_t tlb_flush_batched;
1373: #endif
1374: struct uprobes_state uprobes_state;
1375: #ifdef CONFIG_PREEMPT_RT
1376: struct rcu_head delayed_drop;
1377: #endif
1378: #ifdef CONFIG_HUGETLB_PAGE
1379: atomic_long_t hugetlb_usage;
1380: #endif
1381: struct work_struct async_put_work;
1382:
1383: #ifdef CONFIG_IOMMU_MM_DATA
1384: struct iommu_mm_data *iommu_mm;
1385: #endif
1386: #ifdef CONFIG_KSM
1387: /*
1388: * Represent how many pages of this process are involved in KSM
1389: * merging (not including ksm_zero_pages).
1390: */
1391: unsigned long ksm_merging_pages;
1392: /*
1393: * Represent how many pages are checked for ksm merging
1394: * including merged and not merged.
1395: */
1396: unsigned long ksm_rmap_items;
1397: /*
1398: * Represent how many empty pages are merged with kernel zero
1399: * pages when enabling KSM use_zero_pages.
1400: */
1401: atomic_long_t ksm_zero_pages;
1402: #endif /* CONFIG_KSM */
1403: #ifdef CONFIG_LRU_GEN_WALKS_MMU
1404: struct {
1405: /* this mm_struct is on lru_gen_mm_list */
1406: struct list_head list;
1407: /*
1408: * Set when switching to this mm_struct, as a hint of
1409: * whether it has been used since the last time per-node
1410: * page table walkers cleared the corresponding bits.
1411: */
1412: unsigned long bitmap;
1413: #ifdef CONFIG_MEMCG
1414: /* points to the memcg of "owner" above */
1415: struct mem_cgroup *memcg;
1416: #endif
1417: } lru_gen;
1418: #endif /* CONFIG_LRU_GEN_WALKS_MMU */
1419: #ifdef CONFIG_MM_ID
1420: mm_id_t mm_id;
1421: #endif /* CONFIG_MM_ID */
1422: } __randomize_layout;
1423:
1424: /*
1425: * The mm_cpumask needs to be at the end of mm_struct, because it
1426: * is dynamically sized based on nr_cpu_ids.
1427: */
1428: char flexible_array[] __aligned(__alignof__(unsigned long));
1429: };
SourceFile:include/linux/mm_types.h]
|
| 29/4 |
2026/09/21 00:42 |
llm |
codeexpert |
0m
Model:
Tokens:
input: 9296
output: 42
thoughts: 419
Thoughts: **Analyzing the `mm_struct` Layout**
Okay, let's dive into this `mm_struct` in the Linux kernel. Hmm, interesting... the entire pre-`flexible_array` portion is neatly tucked inside this anonymous struct: `struct { ... } __randomize_layout;`. That's a clever way to organize things. Now, I see why the tool reported that anonymous struct with an empty name, `""`, at offset 0. And a size of 1728 bytes... that makes sense.
But wait, can I actually *query* the layout of that anonymous struct directly using the layout tool? Or maybe through some kind of context file? Perhaps I need to provide more specific information to the layout checker. I need to figure out if the tool has built-in support for inspecting anonymous structs like this, or if there's a workaround.
I'm wondering, how does `codesearch-struct-layout` handle these anonymous structures internally? Why does it report those specific offset and size values: `Fields:[{Name:"",OffsetBits:0,SizeBits:13824},{Name:"flexible_array",OffsetBits:13824,SizeBits:0}]`? That's the key. Can I leverage something like `FieldOffset` to pinpoint specific fields within that anonymous structure? It seemed to return the whole structure when I passed `FieldOffset: 1672` because that byte is *within* the anonymous struct.
So, the real question is how to get detailed information about the internal members of this anonymous struct. Does clang or gcc index them with some kind of internal name, or is there a trick I'm missing? And I need to know what context files use `mm_struct`, so let's query the references.
|
| 30/4 |
2026/09/21 00:42 |
tool |
codesearch-find-references |
0m
Args: map[ContextFile:include/linux/mm_types.h IncludeSnippetLines:0 Name:mm_struct]
Results: map[References:[map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:____bpf_find_vma SourceFile:kernel/bpf/task_iter.c SourceLine:759] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__access_remote_vm SourceFile:mm/memory.c SourceLine:7210] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__account_locked_vm SourceFile:mm/util.c SourceLine:506] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__anon_vma_prepare SourceFile:mm/rmap.c SourceLine:187] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__apply_to_page_range SourceFile:mm/memory.c SourceLine:3595] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__arch_uprobe_optimize SourceFile:arch/x86/kernel/uprobes.c SourceLine:1169] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__bad_area SourceFile:arch/x86/mm/fault.c SourceLine:844] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__bpf_trace_exit_mmap SourceFile:include/trace/events/mmap.h SourceLine:46] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__bpf_trace_mmap_lock SourceFile:include/trace/events/mmap_lock.h SourceLine:14] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__bpf_trace_mmap_lock_acquire_returned SourceFile:include/trace/events/mmap_lock.h SourceLine:47] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__bpf_trace_rss_stat SourceFile:include/trace/events/kmem.h SourceLine:427] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__check_map_count_against_split SourceFile:mm/mremap.c SourceLine:1039] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__copy_present_ptes SourceFile:mm/memory.c SourceLine:1165] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__copy_remote_vm_str SourceFile:mm/memory.c SourceLine:7334] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__create_xol_area SourceFile:kernel/events/uprobes.c SourceLine:1756] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__do_sys_brk SourceFile:mm/mmap.c SourceLine:120] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__do_sys_msync SourceFile:mm/msync.c SourceLine:36] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__do_sys_process_madvise SourceFile:mm/madvise.c SourceLine:2102] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__do_sys_process_mrelease SourceFile:mm/oom_kill.c SourceLine:1198] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__do_sys_remap_file_pages SourceFile:mm/mmap.c SourceLine:1105] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__do_sys_set_mempolicy_home_node SourceFile:mm/mempolicy.c SourceLine:1766] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__do_trace_exit_mmap SourceFile:include/trace/events/mmap.h SourceLine:46] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__do_trace_mmap_lock_acquire_returned SourceFile:include/trace/events/mmap_lock.h SourceLine:47] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__do_trace_mmap_lock_released SourceFile:include/trace/events/mmap_lock.h SourceLine:45] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__do_trace_mmap_lock_start_locking SourceFile:include/trace/events/mmap_lock.h SourceLine:44] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__do_trace_rss_stat SourceFile:include/trace/events/kmem.h SourceLine:427] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__do_trace_xen_mmu_alloc_ptpage SourceFile:include/trace/events/xen.h SourceLine:236] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__do_trace_xen_mmu_flush_tlb_multi SourceFile:include/trace/events/xen.h SourceLine:299] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__do_trace_xen_mmu_pgd_pin SourceFile:include/trace/events/xen.h SourceLine:286] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__do_trace_xen_mmu_pgd_unpin SourceFile:include/trace/events/xen.h SourceLine:287] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__do_trace_xen_mmu_ptep_modify_prot_commit SourceFile:include/trace/events/xen.h SourceLine:234] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__do_trace_xen_mmu_ptep_modify_prot_start SourceFile:include/trace/events/xen.h SourceLine:233] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__execute_only_pkey SourceFile:arch/x86/mm/pkeys.c SourceLine:14] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__futex_key_to_node SourceFile:kernel/futex/core.c SourceLine:291] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__futex_pivot_hash SourceFile:kernel/futex/core.c SourceLine:199] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__futex_ref_atomic_begin SourceFile:kernel/futex/core.c SourceLine:1612] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__futex_ref_atomic_end SourceFile:kernel/futex/core.c SourceLine:1634] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__get_user_pages SourceFile:mm/gup.c SourceLine:1354] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__get_user_pages_locked SourceFile:mm/gup.c SourceLine:1649] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__gup_longterm_locked SourceFile:mm/gup.c SourceLine:2460] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__handle_mm_fault SourceFile:mm/memory.c SourceLine:6615] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__huge_pmd_unshare SourceFile:mm/hugetlb.c SourceLine:7025] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__ib_umem_get_va SourceFile:drivers/infiniband/core/umem.c SourceLine:171] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__in_uprobe_trampoline SourceFile:arch/x86/kernel/uprobes.c SourceLine:722] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__install_special_mapping SourceFile:mm/vma.c SourceLine:3464] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__is_optimized SourceFile:arch/x86/kernel/uprobes.c SourceLine:1105] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__mem_cgroup_charge SourceFile:mm/memcontrol.c SourceLine:5221] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__mem_open SourceFile:fs/proc/base.c SourceLine:842] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__mm_flags_get_bitmap SourceFile:include/linux/mm_types.h SourceLine:1438] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__mm_flags_get_word SourceFile:include/linux/mm_types.h SourceLine:1444] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__mm_flags_overwrite_word SourceFile:include/linux/mm_types.h SourceLine:1432] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__mm_flags_set_mask_bits_word SourceFile:include/linux/mm_types.h SourceLine:1453] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__mm_get_cid SourceFile:kernel/sched/sched.h SourceLine:3956] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__mm_populate SourceFile:mm/gup.c SourceLine:1927] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__mmap_complete SourceFile:mm/vma.c SourceLine:2716] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__mmap_lock_do_trace_acquire_returned SourceFile:mm/mmap_lock.c SourceLine:32] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__mmap_lock_do_trace_released SourceFile:mm/mmap_lock.c SourceLine:39] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__mmap_lock_do_trace_start_locking SourceFile:mm/mmap_lock.c SourceLine:26] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__mmap_lock_trace_acquire_returned SourceFile:include/linux/mmap_lock.h SourceLine:38] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__mmap_lock_trace_released SourceFile:include/linux/mmap_lock.h SourceLine:45] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__mmap_lock_trace_start_locking SourceFile:include/linux/mmap_lock.h SourceLine:31] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__mmap_region SourceFile:mm/vma.c SourceLine:2842] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__mmdrop SourceFile:kernel/fork.c SourceLine:724] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__mmput SourceFile:kernel/fork.c SourceLine:1185] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__mmu_interval_notifier_insert SourceFile:mm/mmu_notifier.c SourceLine:937] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__mmu_notifier_arch_invalidate_secondary_tlbs SourceFile:mm/mmu_notifier.c SourceLine:620] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__mmu_notifier_clear_flush_young SourceFile:mm/mmu_notifier.c SourceLine:393] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__mmu_notifier_clear_young SourceFile:mm/mmu_notifier.c SourceLine:413] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__mmu_notifier_register SourceFile:mm/mmu_notifier.c SourceLine:644] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__mmu_notifier_release SourceFile:mm/mmu_notifier.c SourceLine:376] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__mmu_notifier_subscriptions_destroy SourceFile:mm/mmu_notifier.c SourceLine:826] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__mmu_notifier_test_young SourceFile:mm/mmu_notifier.c SourceLine:433] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__oom_kill_process SourceFile:mm/oom_kill.c SourceLine:915] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__oom_reap_task_mm SourceFile:mm/oom_kill.c SourceLine:513] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__p4d_alloc SourceFile:mm/memory.c SourceLine:6913] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__p4d_alloc_one_noprof SourceFile:include/asm-generic/pgalloc.h SourceLine:230] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__p4d_free SourceFile:include/asm-generic/pgalloc.h SourceLine:259] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__paravirt_pgd_alloc SourceFile:arch/x86/include/asm/pgalloc.h SourceLine:15] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__pgd_alloc_noprof SourceFile:include/asm-generic/pgalloc.h SourceLine:277] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__pgd_free SourceFile:include/asm-generic/pgalloc.h SourceLine:298] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__pmd_alloc SourceFile:mm/memory.c SourceLine:6959] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__print_bad_page_map_pgtable SourceFile:mm/memory.c SourceLine:562] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__probestub_exit_mmap SourceFile:include/trace/events/mmap.h SourceLine:46] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__probestub_mmap_lock_acquire_returned SourceFile:include/trace/events/mmap_lock.h SourceLine:47] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__probestub_mmap_lock_released SourceFile:include/trace/events/mmap_lock.h SourceLine:45] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__probestub_mmap_lock_start_locking SourceFile:include/trace/events/mmap_lock.h SourceLine:44] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__probestub_rss_stat SourceFile:include/trace/events/kmem.h SourceLine:427] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__pte_alloc SourceFile:mm/memory.c SourceLine:451] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__pte_alloc_one_kernel_noprof SourceFile:include/asm-generic/pgalloc.h SourceLine:19] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__pte_alloc_one_noprof SourceFile:include/asm-generic/pgalloc.h SourceLine:72] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__pud_alloc SourceFile:mm/memory.c SourceLine:6936] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__pud_alloc_one_noprof SourceFile:include/asm-generic/pgalloc.h SourceLine:173] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__pud_free SourceFile:include/asm-generic/pgalloc.h SourceLine:211] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__sched_mm_cid_exit SourceFile:kernel/sched/core.c SourceLine:11105] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__set_oom_adj SourceFile:fs/proc/base.c SourceLine:1108] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__text_poke SourceFile:arch/x86/kernel/alternative.c SourceLine:2418] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__tlb_gather_mmu SourceFile:mm/mmu_gather.c SourceLine:427] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__traceiter_exit_mmap SourceFile:include/trace/events/mmap.h SourceLine:46] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__traceiter_exit_mmap SourceFile:include/trace/events/mmap.h SourceLine:46] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__traceiter_mmap_lock_acquire_returned SourceFile:include/trace/events/mmap_lock.h SourceLine:47] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__traceiter_mmap_lock_acquire_returned SourceFile:include/trace/events/mmap_lock.h SourceLine:47] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__traceiter_mmap_lock_released SourceFile:include/trace/events/mmap_lock.h SourceLine:45] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__traceiter_mmap_lock_released SourceFile:include/trace/events/mmap_lock.h SourceLine:45] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__traceiter_mmap_lock_start_locking SourceFile:include/trace/events/mmap_lock.h SourceLine:44] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__traceiter_mmap_lock_start_locking SourceFile:include/trace/events/mmap_lock.h SourceLine:44] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__traceiter_rss_stat SourceFile:include/trace/events/kmem.h SourceLine:427] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__traceiter_rss_stat SourceFile:include/trace/events/kmem.h SourceLine:427] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__try_to_set_owner SourceFile:kernel/exit.c SourceLine:459] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__unmap_hugepage_range SourceFile:mm/hugetlb.c SourceLine:5202] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__update_ref_ctr SourceFile:kernel/events/uprobes.c SourceLine:308] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__uprobe_perf_filter SourceFile:kernel/trace/trace_uprobe.c SourceLine:1249] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__vm_enough_memory SourceFile:mm/util.c SourceLine:959] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__vm_munmap SourceFile:mm/vma.c SourceLine:3385] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__vma_raw_mm_seqnum SourceFile:include/linux/mmap_lock.h SourceLine:269] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:__wp_page_copy_user SourceFile:mm/memory.c SourceLine:3694] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:_install_special_mapping SourceFile:mm/mmap.c SourceLine:1482] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:_pgd_alloc SourceFile:arch/x86/mm/pgtable.c SourceLine:295] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:_pgd_free SourceFile:arch/x86/mm/pgtable.c SourceLine:306] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:access_process_vm SourceFile:mm/memory.c SourceLine:7314] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:access_remote_vm SourceFile:mm/memory.c SourceLine:7300] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:account_locked_vm SourceFile:mm/util.c SourceLine:549] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:account_mm_sched SourceFile:kernel/sched/fair.c SourceLine:1738] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:acct_arg_size SourceFile:fs/exec.c SourceLine:135] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:acct_collect SourceFile:kernel/acct.c SourceLine:564] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:acct_stack_growth SourceFile:mm/vma.c SourceLine:3184] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:add_folio_for_migration SourceFile:mm/migrate.c SourceLine:2301] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:add_mm_counter SourceFile:include/linux/mm.h SourceLine:3465] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:add_mm_rss_vec SourceFile:mm/memory.c SourceLine:486] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:aio_ring_mremap SourceFile:fs/aio.c SourceLine:409] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:aio_setup_ring SourceFile:fs/aio.c SourceLine:539] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:alloc_new_pmd SourceFile:mm/mremap.c SourceLine:125] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:alloc_new_pud SourceFile:mm/mremap.c SourceLine:112] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:amd_iommu_domain_alloc_sva SourceFile:drivers/iommu/amd/pasid.c SourceLine:183] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:apply_mlockall_flags SourceFile:mm/mlock.c SourceLine:719] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:apply_to_existing_page_range SourceFile:mm/memory.c SourceLine:3652] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:apply_to_p4d_range SourceFile:mm/memory.c SourceLine:3559] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:apply_to_page_range SourceFile:mm/memory.c SourceLine:3638] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:apply_to_pmd_range SourceFile:mm/memory.c SourceLine:3485] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:apply_to_pte_range SourceFile:mm/memory.c SourceLine:3442] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:apply_to_pud_range SourceFile:mm/memory.c SourceLine:3523] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:arch_do_swap_page_nr SourceFile:include/linux/pgtable.h SourceLine:1396] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:arch_dup_mmap SourceFile:arch/x86/include/asm/mmu_context.h SourceLine:218] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:arch_dup_mmap SourceFile:arch/x86/include/asm/mmu_context.h SourceLine:218] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:arch_dup_pkeys SourceFile:arch/x86/include/asm/mmu_context.h SourceLine:205] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:arch_dup_pkeys SourceFile:arch/x86/include/asm/mmu_context.h SourceLine:206] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:arch_exit_mmap SourceFile:arch/x86/include/asm/mmu_context.h SourceLine:226] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:arch_get_unmapped_area SourceFile:arch/x86/kernel/sys_x86_64.c SourceLine:130] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:arch_get_unmapped_area_topdown SourceFile:arch/x86/kernel/sys_x86_64.c SourceLine:172] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:arch_pgtable_dma_compat SourceFile:include/linux/mmu_context.h SourceLine:40] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:arch_pick_mmap_layout SourceFile:arch/x86/mm/mmap.c SourceLine:122] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:arch_randomize_brk SourceFile:arch/x86/kernel/process.c SourceLine:1027] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:arch_tlbbatch_add_pending SourceFile:arch/x86/include/asm/tlbflush.h SourceLine:379] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:arch_tlbbatch_should_defer SourceFile:arch/x86/include/asm/tlbflush.h SourceLine:355] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:arch_unmap_one SourceFile:include/linux/pgtable.h SourceLine:1436] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:arch_uprobe_analyze_insn SourceFile:arch/x86/kernel/uprobes.c SourceLine:1626] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:arch_uprobe_optimize SourceFile:arch/x86/kernel/uprobes.c SourceLine:1193] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:audit_log_d_path_exe SourceFile:kernel/audit.c SourceLine:2421] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:auxv_read SourceFile:fs/proc/base.c SourceLine:1065] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:bad_area_access_error SourceFile:arch/x86/mm/fault.c SourceLine:878] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:bpf_iter_mmput_async SourceFile:kernel/bpf/task_iter.c SourceLine:833] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:bpf_mmap_unlock_mm SourceFile:kernel/bpf/mmap_unlock_work.h SourceLine:56] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:bprm_mm_init SourceFile:fs/exec.c SourceLine:261] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:can_migrate_llc_task SourceFile:kernel/sched/fair.c SourceLine:10727] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:cap_vm_enough_memory SourceFile:security/commoncap.c SourceLine:1453] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:cgroup_id_from_mm SourceFile:include/linux/memcontrol.h SourceLine:1031] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:change_protection_range SourceFile:mm/mprotect.c SourceLine:660] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:check_brk_limits SourceFile:mm/mmap.c SourceLine:105] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:check_mm SourceFile:kernel/fork.c SourceLine:628] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:check_prep_vma SourceFile:mm/mremap.c SourceLine:1749] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:check_stable_address_space SourceFile:include/linux/oom.h SourceLine:92] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:check_trace_callback_type_exit_mmap SourceFile:include/trace/events/mmap.h SourceLine:46] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:check_trace_callback_type_mmap_lock_acquire_returned SourceFile:include/trace/events/mmap_lock.h SourceLine:47] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:check_trace_callback_type_mmap_lock_released SourceFile:include/trace/events/mmap_lock.h SourceLine:45] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:check_trace_callback_type_mmap_lock_start_locking SourceFile:include/trace/events/mmap_lock.h SourceLine:44] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:check_trace_callback_type_rss_stat SourceFile:include/trace/events/kmem.h SourceLine:427] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:check_trace_callback_type_xen_mmu_alloc_ptpage SourceFile:include/trace/events/xen.h SourceLine:236] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:check_trace_callback_type_xen_mmu_flush_tlb_multi SourceFile:include/trace/events/xen.h SourceLine:299] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:check_trace_callback_type_xen_mmu_pgd_pin SourceFile:include/trace/events/xen.h SourceLine:286] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:check_trace_callback_type_xen_mmu_pgd_unpin SourceFile:include/trace/events/xen.h SourceLine:287] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:check_trace_callback_type_xen_mmu_ptep_modify_prot_commit SourceFile:include/trace/events/xen.h SourceLine:234] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:check_trace_callback_type_xen_mmu_ptep_modify_prot_start SourceFile:include/trace/events/xen.h SourceLine:233] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:choose_new_asid SourceFile:arch/x86/mm/tlb.c SourceLine:225] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:class_mmap_read_lock_constructor SourceFile:include/linux/mmap_lock.h SourceLine:630] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:class_mmap_read_lock_constructor SourceFile:include/linux/mmap_lock.h SourceLine:630] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:class_mmap_read_lock_destructor SourceFile:include/linux/mmap_lock.h SourceLine:630] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:class_mmap_read_lock_destructor SourceFile:include/linux/mmap_lock.h SourceLine:630] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:class_mmap_write_lock_constructor SourceFile:include/linux/mmap_lock.h SourceLine:633] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:class_mmap_write_lock_constructor SourceFile:include/linux/mmap_lock.h SourceLine:633] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:class_mmap_write_lock_destructor SourceFile:include/linux/mmap_lock.h SourceLine:633] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:class_mmap_write_lock_destructor SourceFile:include/linux/mmap_lock.h SourceLine:633] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:class_private_hash_constructor SourceFile:kernel/futex/futex.h SourceLine:261] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:cleanup_lazy_tlbs SourceFile:kernel/fork.c SourceLine:676] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:clear_full_ptes SourceFile:include/linux/pgtable.h SourceLine:935] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:clear_nonpresent_ptes SourceFile:include/linux/pgtable.h SourceLine:1002] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:clear_ptes SourceFile:include/linux/pgtable.h SourceLine:964] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:clear_refs_write SourceFile:fs/proc/task_mmu.c SourceLine:1863] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:collapse_pte_mapped_thp SourceFile:include/linux/khugepaged.h SourceLine:45] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:consider_global_asid SourceFile:arch/x86/mm/tlb.c SourceLine:446] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:consumer_filter SourceFile:kernel/events/uprobes.c SourceLine:1133] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:copy_from_vaddr SourceFile:arch/x86/kernel/uprobes.c SourceLine:1091] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:copy_hugetlb_page_range SourceFile:mm/hugetlb.c SourceLine:4886] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:copy_hugetlb_page_range SourceFile:mm/hugetlb.c SourceLine:4886] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:copy_mm SourceFile:kernel/fork.c SourceLine:1570] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:copy_mm SourceFile:kernel/fork.c SourceLine:1570] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:copy_nonpresent_pte SourceFile:mm/memory.c SourceLine:1008] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:copy_nonpresent_pte SourceFile:mm/memory.c SourceLine:1008] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:copy_p4d_range SourceFile:mm/memory.c SourceLine:1539] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:copy_page_range SourceFile:mm/memory.c SourceLine:1594] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:copy_page_range SourceFile:mm/memory.c SourceLine:1595] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:copy_pmd_range SourceFile:mm/memory.c SourceLine:1465] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:copy_pmd_range SourceFile:mm/memory.c SourceLine:1466] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:copy_pte_range SourceFile:mm/memory.c SourceLine:1310] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:copy_pte_range SourceFile:mm/memory.c SourceLine:1311] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:copy_pud_range SourceFile:mm/memory.c SourceLine:1502] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:copy_pud_range SourceFile:mm/memory.c SourceLine:1503] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:copy_remote_vm_str SourceFile:mm/memory.c SourceLine:7428] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:copy_vma SourceFile:mm/vma.c SourceLine:1950] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:count_memcg_event_mm SourceFile:include/linux/memcontrol.h SourceLine:997] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:count_memcg_events_mm SourceFile:include/linux/memcontrol.h SourceLine:982] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:count_mm_mlocked_page_nr SourceFile:mm/mlock.c SourceLine:578] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:cpuset_attach_task SourceFile:kernel/cgroup/cpuset.c SourceLine:3287] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:cpuset_migrate_mm SourceFile:kernel/cgroup/cpuset.c SourceLine:2617] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:cpuset_update_tasks_nodemask SourceFile:kernel/cgroup/cpuset.c SourceLine:2726] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:cr4_update_pce_mm SourceFile:arch/x86/mm/tlb.c SourceLine:753] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:create_elf_tables SourceFile:fs/binfmt_elf.c SourceLine:169] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:create_init_stack_vma SourceFile:mm/vma_exec.c SourceLine:112] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:current_is_single_threaded SourceFile:lib/is_single_threaded.c SourceLine:18] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:dec_mm_counter SourceFile:include/linux/mm.h SourceLine:3479] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:dec_tlb_flush_pending SourceFile:include/linux/mm_inline.h SourceLine:511] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:delayed_uprobe_add SourceFile:kernel/events/uprobes.c SourceLine:236] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:delayed_uprobe_check SourceFile:kernel/events/uprobes.c SourceLine:226] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:delayed_uprobe_remove SourceFile:kernel/events/uprobes.c SourceLine:261] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:destroy_context SourceFile:arch/x86/include/asm/mmu_context.h SourceLine:172] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:destroy_context_ldt SourceFile:arch/x86/kernel/ldt.c SourceLine:491] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_brk_flags SourceFile:mm/vma.c SourceLine:2993] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_check_lazy_tlb SourceFile:kernel/fork.c SourceLine:660] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_fault SourceFile:mm/memory.c SourceLine:6107] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_get_mempolicy SourceFile:mm/mempolicy.c SourceLine:1154] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_madvise SourceFile:mm/madvise.c SourceLine:1993] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_mbind SourceFile:mm/mempolicy.c SourceLine:1493] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_migrate_pages SourceFile:mm/mempolicy.c SourceLine:1339] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_mmap SourceFile:mm/mmap.c SourceLine:344] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_mremap SourceFile:mm/mremap.c SourceLine:1990] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_munmap SourceFile:mm/mmap.c SourceLine:1077] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_pagemap_cmd SourceFile:fs/proc/task_mmu.c SourceLine:3303] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_pagemap_scan SourceFile:fs/proc/task_mmu.c SourceLine:3227] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_pages_move SourceFile:mm/migrate.c SourceLine:2358] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_pages_stat SourceFile:mm/migrate.c SourceLine:2519] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_pages_stat_array SourceFile:mm/migrate.c SourceLine:2457] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_perf_trace_exit_mmap SourceFile:include/trace/events/mmap.h SourceLine:46] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_perf_trace_mmap_lock SourceFile:include/trace/events/mmap_lock.h SourceLine:14] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_perf_trace_mmap_lock_acquire_returned SourceFile:include/trace/events/mmap_lock.h SourceLine:47] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_perf_trace_rss_stat SourceFile:include/trace/events/kmem.h SourceLine:427] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_procmap_query SourceFile:fs/proc/task_mmu.c SourceLine:685] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_sanity_check SourceFile:arch/x86/kernel/ldt.c SourceLine:189] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_shoot_lazy_tlb SourceFile:kernel/fork.c SourceLine:667] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_task_stat SourceFile:fs/proc/array.c SourceLine:477] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_trace_event_raw_event_exit_mmap SourceFile:include/trace/events/mmap.h SourceLine:46] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_trace_event_raw_event_mmap_lock SourceFile:include/trace/events/mmap_lock.h SourceLine:14] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_trace_event_raw_event_mmap_lock_acquire_returned SourceFile:include/trace/events/mmap_lock.h SourceLine:47] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_trace_event_raw_event_rss_stat SourceFile:include/trace/events/kmem.h SourceLine:427] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_user_addr_fault SourceFile:arch/x86/mm/fault.c SourceLine:1222] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_vmi_align_munmap SourceFile:mm/vma.c SourceLine:1664] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:do_vmi_munmap SourceFile:mm/vma.c SourceLine:1710] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:dump_vma_snapshot SourceFile:fs/coredump.c SourceLine:1718] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:dup_lam SourceFile:arch/x86/include/asm/mmu_context.h SourceLine:130] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:dup_lam SourceFile:arch/x86/include/asm/mmu_context.h SourceLine:130] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:dup_mm SourceFile:kernel/fork.c SourceLine:1528] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:dup_mm SourceFile:kernel/fork.c SourceLine:1530] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:dup_mm_exe_file SourceFile:kernel/fork.c SourceLine:566] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:dup_mm_exe_file SourceFile:kernel/fork.c SourceLine:566] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:dup_mmap SourceFile:mm/mmap.c SourceLine:1708] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:dup_mmap SourceFile:mm/mmap.c SourceLine:1708] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:elf_coredump_get_mm_eflags SourceFile:fs/binfmt_elf.c SourceLine:114] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:elf_coredump_set_mm_eflags SourceFile:fs/binfmt_elf.c SourceLine:107] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:enter_lazy_tlb SourceFile:arch/x86/include/asm/tlbflush.h SourceLine:190] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:environ_read SourceFile:fs/proc/base.c SourceLine:993] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ep_user_copy_worker SourceFile:drivers/usb/gadget/legacy/inode.c SourceLine:470] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:exceed_llc_capacity SourceFile:kernel/sched/fair.c SourceLine:1481] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:exec_mm_put_old SourceFile:fs/exec.c SourceLine:915] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:exec_mmap SourceFile:fs/exec.c SourceLine:846] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:exec_mmap SourceFile:fs/exec.c SourceLine:848] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:exec_mmap SourceFile:fs/exec.c SourceLine:848] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:execute_only_pkey SourceFile:arch/x86/include/asm/pkeys.h SourceLine:24] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:exit_aio SourceFile:fs/aio.c SourceLine:945] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:exit_mm SourceFile:kernel/exit.c SourceLine:585] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:exit_mm_sched_cache SourceFile:kernel/exit.c SourceLine:574] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:exit_mmap SourceFile:mm/mmap.c SourceLine:1288] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:expand_downwards SourceFile:mm/vma.c SourceLine:3311] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:expand_stack SourceFile:mm/mmap.c SourceLine:1041] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:expand_vma_in_place SourceFile:mm/mremap.c SourceLine:1549] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:fault_in_safe_writeable SourceFile:mm/gup.c SourceLine:2120] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:fault_in_user_writeable SourceFile:kernel/futex/core.c SourceLine:744] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:faultin_page_range SourceFile:mm/gup.c SourceLine:1887] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:filemap_map_pmd SourceFile:mm/filemap.c SourceLine:3719] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:fill_auxv_note SourceFile:fs/binfmt_elf.c SourceLine:1562] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:fill_psinfo SourceFile:fs/binfmt_elf.c SourceLine:1518] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:filter_chain SourceFile:kernel/events/uprobes.c SourceLine:1138] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:find_active_uprobe_rcu SourceFile:kernel/events/uprobes.c SourceLine:2469] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:find_active_uprobe_speculative SourceFile:kernel/events/uprobes.c SourceLine:2426] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:find_exact_vma SourceFile:include/linux/mm.h SourceLine:4659] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:find_extend_vma_locked SourceFile:mm/mmap.c SourceLine:998] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:find_get_mmu_notifier SourceFile:mm/mmu_notifier.c SourceLine:758] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:find_mm_struct SourceFile:mm/migrate.c SourceLine:2556] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:find_ref_ctr_vma SourceFile:kernel/events/uprobes.c SourceLine:295] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:find_tcp_vma SourceFile:net/ipv4/tcp.c SourceLine:2169] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:find_vma SourceFile:mm/mmap.c SourceLine:918] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:find_vma_intersection SourceFile:mm/mmap.c SourceLine:899] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:find_vma_prev SourceFile:mm/mmap.c SourceLine:941] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:finish_asid_transition SourceFile:arch/x86/mm/tlb.c SourceLine:465] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:finish_asid_transition SourceFile:arch/x86/mm/tlb.c SourceLine:478] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:finish_cpu SourceFile:kernel/cpu.c SourceLine:911] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:finish_task_switch SourceFile:kernel/sched/core.c SourceLine:5338] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:fixup_user_fault SourceFile:mm/gup.c SourceLine:1564] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:flush_cache_dup_mm SourceFile:include/asm-generic/cacheflush.h SourceLine:29] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:flush_cache_mm SourceFile:include/asm-generic/cacheflush.h SourceLine:23] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:flush_ldt SourceFile:arch/x86/kernel/ldt.c SourceLine:138] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:flush_tlb_batched_pending SourceFile:mm/rmap.c SourceLine:810] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:flush_tlb_func SourceFile:arch/x86/mm/tlb.c SourceLine:1115] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:flush_tlb_mm_range SourceFile:arch/x86/mm/tlb.c SourceLine:1401] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:folio_prealloc SourceFile:mm/memory.c SourceLine:1283] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:follow_huge_pmd SourceFile:mm/gup.c SourceLine:706] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:follow_huge_pud SourceFile:mm/gup.c SourceLine:653] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:follow_page_mask SourceFile:mm/gup.c SourceLine:1012] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:follow_page_pte SourceFile:mm/gup.c SourceLine:805] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:follow_pfnmap_start SourceFile:mm/memory.c SourceLine:7043] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:follow_pmd_mask SourceFile:mm/gup.c SourceLine:906] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:follow_pud_mask SourceFile:mm/gup.c SourceLine:950] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:free_ldt_pgtables SourceFile:arch/x86/kernel/ldt.c SourceLine:393] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:free_pmds SourceFile:arch/x86/mm/pgtable.c SourceLine:150] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:futex_hash_allocate SourceFile:kernel/futex/core.c SourceLine:1842] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:futex_hash_free SourceFile:kernel/futex/core.c SourceLine:1792] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:futex_key_to_node_opt SourceFile:kernel/futex/core.c SourceLine:320] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:futex_mm_init SourceFile:kernel/futex/core.c SourceLine:2057] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:futex_mpol SourceFile:kernel/futex/core.c SourceLine:337] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:futex_pivot_hash SourceFile:kernel/futex/core.c SourceLine:224] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:futex_pivot_pending SourceFile:kernel/futex/core.c SourceLine:1802] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:futex_private_hash SourceFile:kernel/futex/core.c SourceLine:237] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:futex_private_hash_put SourceFile:kernel/futex/core.c SourceLine:144] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:futex_ref_drop SourceFile:kernel/futex/core.c SourceLine:1701] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:futex_ref_get SourceFile:kernel/futex/core.c SourceLine:1747] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:futex_ref_is_dead SourceFile:kernel/futex/core.c SourceLine:1775] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:futex_ref_put SourceFile:kernel/futex/core.c SourceLine:1761] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:futex_ref_rcu SourceFile:kernel/futex/core.c SourceLine:1676] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:futex_ref_rcu SourceFile:kernel/futex/core.c SourceLine:1676] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:futex_ref_rcu SourceFile:kernel/futex/core.c SourceLine:1676] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:futex_ref_rcu SourceFile:kernel/futex/core.c SourceLine:1676] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:generic_get_unmapped_area SourceFile:mm/mmap.c SourceLine:707] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:generic_get_unmapped_area_topdown SourceFile:mm/mmap.c SourceLine:757] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_and_clear_full_ptes SourceFile:include/linux/pgtable.h SourceLine:874] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_and_clear_ptes SourceFile:include/linux/pgtable.h SourceLine:910] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_arg_page SourceFile:fs/exec.c SourceLine:150] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_cmdline SourceFile:mm/util.c SourceLine:1019] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_futex_key SourceFile:kernel/futex/core.c SourceLine:510] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_gate_page SourceFile:mm/gup.c SourceLine:1030] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_gate_vma SourceFile:arch/x86/entry/vsyscall/vsyscall_64.c SourceLine:324] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_locked_pte SourceFile:mm/memory.c SourceLine:2424] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_mem_cgroup_from_mm SourceFile:mm/memcontrol.c SourceLine:1157] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_mm_cmdline SourceFile:fs/proc/base.c SourceLine:283] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_mm_counter SourceFile:include/linux/mm.h SourceLine:3453] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_mm_counter_sum SourceFile:include/linux/mm.h SourceLine:3458] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_mm_exe_file SourceFile:kernel/fork.c SourceLine:1340] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_mm_hiwater_rss SourceFile:include/linux/mm.h SourceLine:3515] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_mm_hiwater_vm SourceFile:include/linux/mm.h SourceLine:3520] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_mm_proctitle SourceFile:fs/proc/base.c SourceLine:246] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_mm_rss SourceFile:include/linux/mm.h SourceLine:3501] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_mm_rss_sum SourceFile:include/linux/mm.h SourceLine:3508] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_mmap_base SourceFile:arch/x86/mm/mmap.c SourceLine:148] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_mmap_lock_carefully SourceFile:mm/mmap_lock.c SourceLine:439] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_next_mm SourceFile:mm/vmscan.c SourceLine:2926] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_next_mm SourceFile:mm/vmscan.c SourceLine:2930] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_next_mm SourceFile:mm/vmscan.c SourceLine:2930] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_next_mm SourceFile:mm/vmscan.c SourceLine:2930] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_old_pmd SourceFile:mm/mremap.c SourceLine:96] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_old_pud SourceFile:mm/mremap.c SourceLine:75] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_pref_llc SourceFile:kernel/sched/fair.c SourceLine:1700] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_task_cmdline SourceFile:fs/proc/base.c SourceLine:373] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_task_exe_file SourceFile:kernel/fork.c SourceLine:1361] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_task_mm SourceFile:kernel/fork.c SourceLine:1386] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_untagged_addr SourceFile:mm/madvise.c SourceLine:1889] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_uprobe_trampoline SourceFile:arch/x86/kernel/uprobes.c SourceLine:694] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_user_page_vma_remote SourceFile:include/linux/mm.h SourceLine:3345] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_user_pages_remote SourceFile:mm/gup.c SourceLine:2598] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:get_xol_area SourceFile:kernel/events/uprobes.c SourceLine:1801] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:getrusage SourceFile:kernel/sys.c SourceLine:1852] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:gup_vma_lookup SourceFile:mm/gup.c SourceLine:1265] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:handle_mm_fault SourceFile:mm/memory.c SourceLine:6845] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:hmm_do_fault SourceFile:mm/hmm.c SourceLine:645] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:hmm_range_fault_locked SourceFile:mm/hmm.c SourceLine:700] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:hmm_range_fault_unlocked_timeout SourceFile:mm/hmm.c SourceLine:791] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:huge_pmd_share SourceFile:mm/hugetlb.c SourceLine:6976] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:huge_pte_alloc SourceFile:mm/hugetlb.c SourceLine:7127] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:huge_pte_clear SourceFile:include/asm-generic/hugetlb.h SourceLine:62] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:huge_pte_lock SourceFile:include/linux/hugetlb.h SourceLine:1314] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:huge_pte_lockptr SourceFile:include/linux/hugetlb.h SourceLine:992] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:huge_pte_offset SourceFile:mm/hugetlb.c SourceLine:7170] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:huge_ptep_get SourceFile:include/asm-generic/hugetlb.h SourceLine:118] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:huge_ptep_get_and_clear SourceFile:include/asm-generic/hugetlb.h SourceLine:78] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:huge_ptep_set_wrprotect SourceFile:include/asm-generic/hugetlb.h SourceLine:101] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:hugetlb_change_protection SourceFile:mm/hugetlb.c SourceLine:6489] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:hugetlb_count_add SourceFile:include/linux/hugetlb.h SourceLine:1043] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:hugetlb_count_init SourceFile:include/linux/hugetlb.h SourceLine:1038] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:hugetlb_count_sub SourceFile:include/linux/hugetlb.h SourceLine:1048] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:hugetlb_fault SourceFile:mm/hugetlb.c SourceLine:6001] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:hugetlb_no_page SourceFile:mm/hugetlb.c SourceLine:5757] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:hugetlb_pte_stable SourceFile:mm/hugetlb.c SourceLine:5738] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:hugetlb_report_usage SourceFile:mm/hugetlb.c SourceLine:4604] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:hugetlb_unshare_pmds SourceFile:mm/hugetlb.c SourceLine:7369] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:hugetlb_wp SourceFile:mm/hugetlb.c SourceLine:5482] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:hugetlbfs_fallocate SourceFile:fs/hugetlbfs/inode.c SourceLine:708] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:i915_gem_mmap_ioctl SourceFile:drivers/gpu/drm/i915/gem/i915_gem_mman.c SourceLine:105] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ib_umem_odp_map_dma_and_lock SourceFile:drivers/infiniband/core/umem_odp.c SourceLine:329] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:in_gate_area SourceFile:arch/x86/entry/vsyscall/vsyscall_64.c SourceLine:335] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:in_uprobe_trampoline SourceFile:arch/x86/kernel/uprobes.c SourceLine:731] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:inc_mm_counter SourceFile:include/linux/mm.h SourceLine:3472] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:inc_mm_tlb_gen SourceFile:arch/x86/include/asm/tlbflush.h SourceLine:367] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:inc_tlb_flush_pending SourceFile:include/linux/mm_inline.h SourceLine:470] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:init_flush_tlb_info SourceFile:arch/x86/mm/tlb.c SourceLine:1377] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:init_new_context SourceFile:arch/x86/include/asm/mmu_context.h SourceLine:148] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:init_new_context_ldt SourceFile:arch/x86/include/asm/mmu_context.h SourceLine:55] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:init_tlb_flush_pending SourceFile:include/linux/mm_inline.h SourceLine:465] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:initialize_tlbstate_and_flush SourceFile:arch/x86/mm/tlb.c SourceLine:1061] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:insert_pages SourceFile:mm/memory.c SourceLine:2564] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:insert_pfn SourceFile:mm/memory.c SourceLine:2804] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:insert_vm_struct SourceFile:mm/vma.c SourceLine:3404] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:install_breakpoint SourceFile:kernel/events/uprobes.c SourceLine:1157] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:install_ldt SourceFile:arch/x86/kernel/ldt.c SourceLine:421] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:intel_svm_domain_alloc SourceFile:drivers/iommu/intel/iommu.h SourceLine:1306] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:invalid_llc_nr SourceFile:kernel/sched/fair.c SourceLine:1529] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:io_account_mem SourceFile:io_uring/rsrc.c SourceLine:114] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:io_unaccount_mem SourceFile:io_uring/rsrc.c SourceLine:104] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ioctx_add_table SourceFile:fs/aio.c SourceLine:720] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ioctx_alloc SourceFile:fs/aio.c SourceLine:788] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:iommu_alloc_mm_data SourceFile:drivers/iommu/iommu-sva.c SourceLine:20] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:iommu_sva_bind_device SourceFile:drivers/iommu/iommu-sva.c SourceLine:72] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:iommu_sva_domain_alloc SourceFile:drivers/iommu/iommu-sva.c SourceLine:310] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:iommu_sva_handle_mm SourceFile:drivers/iommu/iommu-sva.c SourceLine:222] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ipi_sync_rq_state SourceFile:kernel/sched/membarrier.c SourceLine:234] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ipi_sync_rq_state SourceFile:kernel/sched/membarrier.c SourceLine:234] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:is_64bit_mm SourceFile:arch/x86/include/asm/mmu_context.h SourceLine:233] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:is_hugepage_only_range SourceFile:include/linux/hugetlb.h SourceLine:836] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:is_notrack_mm SourceFile:arch/x86/include/asm/mmu_context.h SourceLine:245] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:is_optimized SourceFile:arch/x86/kernel/uprobes.c SourceLine:1117] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:is_trap_at_addr SourceFile:kernel/events/uprobes.c SourceLine:2397] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:iterate_mm_list SourceFile:mm/vmscan.c SourceLine:3082] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:iterate_mm_list SourceFile:mm/vmscan.c SourceLine:3086] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:kernel_migrate_pages SourceFile:mm/mempolicy.c SourceLine:1867] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:kernel_move_pages SourceFile:mm/migrate.c SourceLine:2608] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:khugepaged_exit SourceFile:include/linux/khugepaged.h SourceLine:38] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:khugepaged_fork SourceFile:include/linux/khugepaged.h SourceLine:35] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:khugepaged_fork SourceFile:include/linux/khugepaged.h SourceLine:35] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:kill_ioctx SourceFile:fs/aio.c SourceLine:901] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ksm_disable SourceFile:include/linux/ksm.h SourceLine:112] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ksm_execve SourceFile:include/linux/ksm.h SourceLine:121] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ksm_exit SourceFile:include/linux/ksm.h SourceLine:126] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ksm_fork SourceFile:include/linux/ksm.h SourceLine:117] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ksm_fork SourceFile:include/linux/ksm.h SourceLine:117] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ksm_might_unmap_zero_page SourceFile:include/linux/ksm.h SourceLine:130] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ksm_vma_flags SourceFile:include/linux/ksm.h SourceLine:106] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ksys_shmdt SourceFile:ipc/shm.c SourceLine:1733] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:kthread_unuse_mm SourceFile:kernel/kthread.c SourceLine:1661] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:kthread_use_mm SourceFile:kernel/kthread.c SourceLine:1615] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:kthread_use_mm SourceFile:kernel/kthread.c SourceLine:1617] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ldt_arch_exit_mmap SourceFile:arch/x86/kernel/ldt.c SourceLine:497] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ldt_dup_context SourceFile:arch/x86/kernel/ldt.c SourceLine:451] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ldt_dup_context SourceFile:arch/x86/kernel/ldt.c SourceLine:451] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:leave_mm SourceFile:arch/x86/mm/tlb.c SourceLine:587] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:load_elf_binary SourceFile:fs/binfmt_elf.c SourceLine:849] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:load_mm_ldt SourceFile:arch/x86/kernel/ldt.c SourceLine:42] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:lock_mm_and_find_vma SourceFile:mm/mmap_lock.c SourceLine:496] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:lock_next_vma SourceFile:mm/mmap_lock.c SourceLine:369] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:lock_next_vma_under_mmap_lock SourceFile:mm/mmap_lock.c SourceLine:344] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:lock_vma_under_rcu SourceFile:mm/mmap_lock.c SourceLine:296] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:lookup_ioctx SourceFile:fs/aio.c SourceLine:1131] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:lookup_node SourceFile:mm/mempolicy.c SourceLine:1136] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:lru_gen_add_mm SourceFile:mm/vmscan.c SourceLine:2942] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:lru_gen_del_mm SourceFile:mm/vmscan.c SourceLine:2969] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:lru_gen_init_mm SourceFile:include/linux/mm_types.h SourceLine:1502] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:lru_gen_migrate_mm SourceFile:mm/vmscan.c SourceLine:3009] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:lru_gen_use_mm SourceFile:include/linux/mm_types.h SourceLine:1511] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:m_start SourceFile:fs/proc/task_mmu.c SourceLine:313] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:m_stop SourceFile:fs/proc/task_mmu.c SourceLine:364] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:madvise_cold_or_pageout_pte_range SourceFile:mm/madvise.c SourceLine:369] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:madvise_dontneed_free SourceFile:mm/madvise.c SourceLine:907] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:madvise_free_pte_range SourceFile:mm/madvise.c SourceLine:667] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:madvise_free_single_vma SourceFile:mm/madvise.c SourceLine:810] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:madvise_lock SourceFile:mm/madvise.c SourceLine:1778] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:madvise_populate SourceFile:mm/madvise.c SourceLine:968] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:madvise_remove SourceFile:mm/madvise.c SourceLine:1014] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:madvise_unlock SourceFile:mm/madvise.c SourceLine:1802] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:madvise_walk_vmas SourceFile:mm/madvise.c SourceLine:1673] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:madvise_willneed SourceFile:mm/madvise.c SourceLine:293] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:map_files_d_revalidate SourceFile:fs/proc/base.c SourceLine:2184] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:map_files_get_link SourceFile:fs/proc/base.c SourceLine:2236] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:map_ldt_struct SourceFile:arch/x86/kernel/ldt.c SourceLine:288] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:map_ldt_struct_to_user SourceFile:arch/x86/kernel/ldt.c SourceLine:264] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:map_vdso SourceFile:arch/x86/entry/vdso/vma.c SourceLine:158] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:map_vdso_once SourceFile:arch/x86/entry/vdso/vma.c SourceLine:224] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mark_oom_victim SourceFile:mm/oom_kill.c SourceLine:754] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:may_access_mm SourceFile:kernel/fork.c SourceLine:1400] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:may_expand_vm SourceFile:mm/mmap.c SourceLine:1348] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mem_cgroup_charge SourceFile:include/linux/memcontrol.h SourceLine:657] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mem_cgroup_swapin_charge_folio SourceFile:mm/memcontrol.c SourceLine:5280] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mem_release SourceFile:fs/proc/base.c SourceLine:967] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mem_rw SourceFile:fs/proc/base.c SourceLine:883] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:membarrier_exec_mmap SourceFile:kernel/sched/membarrier.c SourceLine:249] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:membarrier_get_registrations SourceFile:kernel/sched/membarrier.c SourceLine:567] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:membarrier_mm_sync_core_before_usermode SourceFile:include/linux/sched/mm.h SourceLine:534] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:membarrier_private_expedited SourceFile:kernel/sched/membarrier.c SourceLine:332] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:membarrier_register_global_expedited SourceFile:kernel/sched/membarrier.c SourceLine:506] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:membarrier_register_private_expedited SourceFile:kernel/sched/membarrier.c SourceLine:525] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:membarrier_switch_mm SourceFile:kernel/sched/sched.h SourceLine:3847] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:membarrier_switch_mm SourceFile:kernel/sched/sched.h SourceLine:3848] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:membarrier_update_current_mm SourceFile:kernel/sched/membarrier.c SourceLine:265] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:memcg_memory_event_mm SourceFile:include/linux/memcontrol.h SourceLine:1012] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:migrate_to_node SourceFile:mm/mempolicy.c SourceLine:1285] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:migration_entry_wait SourceFile:mm/migrate.c SourceLine:493] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mlock_fixup SourceFile:mm/mlock.c SourceLine:472] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mlock_future_ok SourceFile:mm/mmap.c SourceLine:231] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_access SourceFile:kernel/fork.c SourceLine:1413] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_account_fault SourceFile:mm/memory.c SourceLine:6725] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_active_cpus_exceeds SourceFile:arch/x86/mm/tlb.c SourceLine:348] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_alloc SourceFile:kernel/fork.c SourceLine:1174] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_alloc_cid_noprof SourceFile:include/linux/mm_types.h SourceLine:1591] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_alloc_id SourceFile:kernel/fork.c SourceLine:624] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_alloc_pgd SourceFile:kernel/fork.c SourceLine:581] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_alloc_sched_noprof SourceFile:include/linux/mm_types.h SourceLine:1630] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_assign_global_asid SourceFile:arch/x86/include/asm/tlbflush.h SourceLine:301] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_cache_init SourceFile:kernel/fork.c SourceLine:3134] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_cid_complete_transit SourceFile:kernel/sched/core.c SourceLine:10931] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_cid_converge SourceFile:kernel/sched/sched.h SourceLine:3978] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_cid_fixup_cpus_to_tasks SourceFile:kernel/sched/core.c SourceLine:10951] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_cid_fixup_task_to_cpu SourceFile:kernel/sched/core.c SourceLine:11006] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_cid_fixup_tasks_to_cpus SourceFile:kernel/sched/core.c SourceLine:11021] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_cid_from_cpu SourceFile:kernel/sched/sched.h SourceLine:4014] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_cid_from_task SourceFile:kernel/sched/sched.h SourceLine:4049] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_cid_irq_work SourceFile:kernel/sched/core.c SourceLine:11219] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_cid_irq_work SourceFile:kernel/sched/core.c SourceLine:11219] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_cid_irq_work SourceFile:kernel/sched/core.c SourceLine:11219] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_cid_irq_work SourceFile:kernel/sched/core.c SourceLine:11219] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_cid_schedin SourceFile:kernel/sched/sched.h SourceLine:4080] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_cid_schedout SourceFile:kernel/sched/sched.h SourceLine:4096] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_cid_update_pcpu_cid SourceFile:kernel/sched/sched.h SourceLine:4005] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_cid_work_fn SourceFile:kernel/sched/core.c SourceLine:11196] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_cid_work_fn SourceFile:kernel/sched/core.c SourceLine:11196] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_cid_work_fn SourceFile:kernel/sched/core.c SourceLine:11196] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_cid_work_fn SourceFile:kernel/sched/core.c SourceLine:11196] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_cidmask SourceFile:include/linux/mm_types.h SourceLine:1580] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_clear_asid_transition SourceFile:arch/x86/include/asm/tlbflush.h SourceLine:312] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_clear_owner SourceFile:kernel/fork.c SourceLine:1059] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_cpumask SourceFile:include/linux/mm_types.h SourceLine:1480] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_cpus_allowed SourceFile:include/linux/mm_types.h SourceLine:1569] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_dec_nr_pmds SourceFile:include/linux/mm.h SourceLine:3649] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_dec_nr_ptes SourceFile:include/linux/mm.h SourceLine:3673] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_dec_nr_puds SourceFile:include/linux/mm.h SourceLine:3621] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_destroy_cid SourceFile:include/linux/mm_types.h SourceLine:1601] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_destroy_sched SourceFile:include/linux/mm_types.h SourceLine:1644] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_drop_all_locks SourceFile:mm/vma.c SourceLine:2416] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_drop_cid SourceFile:kernel/sched/sched.h SourceLine:3933] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_drop_cid_on_cpu SourceFile:kernel/sched/sched.h SourceLine:3947] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_exit_exec_release SourceFile:kernel/fork.c SourceLine:1511] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_find_pmd SourceFile:mm/rmap.c SourceLine:884] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_flags_clear SourceFile:include/linux/mm.h SourceLine:979] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_flags_clear_all SourceFile:include/linux/mm.h SourceLine:984] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_flags_set SourceFile:include/linux/mm.h SourceLine:974] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_flags_test SourceFile:include/linux/mm.h SourceLine:959] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_flags_test_and_clear SourceFile:include/linux/mm.h SourceLine:969] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_flags_test_and_set SourceFile:include/linux/mm.h SourceLine:964] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_free_global_asid SourceFile:arch/x86/mm/tlb.c SourceLine:405] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_free_id SourceFile:kernel/fork.c SourceLine:625] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_free_pgd SourceFile:kernel/fork.c SourceLine:589] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_get_cid SourceFile:kernel/sched/sched.h SourceLine:3967] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_get_enqcmd_pasid SourceFile:include/linux/iommu.h SourceLine:1654] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_global_asid SourceFile:arch/x86/include/asm/tlbflush.h SourceLine:278] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_has_notifiers SourceFile:include/linux/mmu_notifier.h SourceLine:313] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_in_asid_transition SourceFile:arch/x86/include/asm/tlbflush.h SourceLine:317] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_inc_nr_pmds SourceFile:include/linux/mm.h SourceLine:3642] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_inc_nr_ptes SourceFile:include/linux/mm.h SourceLine:3668] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_inc_nr_puds SourceFile:include/linux/mm.h SourceLine:3614] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_init SourceFile:kernel/fork.c SourceLine:1091] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_init_aio SourceFile:kernel/fork.c SourceLine:1051] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_init_cid SourceFile:kernel/sched/core.c SourceLine:11229] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_init_cpumask SourceFile:include/linux/mm_types.h SourceLine:1471] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_init_global_asid SourceFile:arch/x86/include/asm/tlbflush.h SourceLine:293] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_init_owner SourceFile:kernel/fork.c SourceLine:1068] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_init_sched SourceFile:kernel/sched/fair.c SourceLine:1622] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_init_uprobes_state SourceFile:kernel/fork.c SourceLine:1075] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_is_efi SourceFile:include/linux/efi.h SourceLine:696] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_lam_cr3_mask SourceFile:arch/x86/include/asm/mmu_context.h SourceLine:125] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_lock_seqcount_begin SourceFile:include/linux/mmap_lock.h SourceLine:123] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_lock_seqcount_end SourceFile:include/linux/mmap_lock.h SourceLine:128] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_lock_seqcount_init SourceFile:include/linux/mmap_lock.h SourceLine:118] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_match_cgroup SourceFile:include/linux/memcontrol.h SourceLine:874] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_needs_global_asid SourceFile:arch/x86/mm/tlb.c SourceLine:426] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_p4d_folded SourceFile:arch/x86/include/asm/pgtable_64.h SourceLine:53] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_pasid_drop SourceFile:drivers/iommu/iommu-sva.c SourceLine:207] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_pasid_init SourceFile:include/linux/iommu.h SourceLine:1637] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_pgtables_bytes SourceFile:include/linux/mm.h SourceLine:3663] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_pgtables_bytes_init SourceFile:include/linux/mm.h SourceLine:3658] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_pkey_alloc SourceFile:arch/x86/include/asm/pkeys.h SourceLine:80] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_pkey_free SourceFile:arch/x86/include/asm/pkeys.h SourceLine:110] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_pkey_is_allocated SourceFile:arch/x86/include/asm/pkeys.h SourceLine:54] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_prepare_for_swap_entries SourceFile:mm/internal.h SourceLine:1624] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_put_huge_zero_folio SourceFile:include/linux/huge_mm.h SourceLine:772] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_release SourceFile:kernel/fork.c SourceLine:1478] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_reset_untag_mask SourceFile:arch/x86/include/asm/mmu_context.h SourceLine:134] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_set_has_pinned_flag SourceFile:mm/gup.c SourceLine:479] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_take_all_locks SourceFile:mm/vma.c SourceLine:2320] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_tlb_flush_nested SourceFile:include/linux/mm_inline.h SourceLine:537] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_tlb_flush_pending SourceFile:include/linux/mm_inline.h SourceLine:524] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_trace_rss_stat SourceFile:mm/memory.c SourceLine:167] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_untag_mask SourceFile:include/linux/mmu_context.h SourceLine:33] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_update_cpus_allowed SourceFile:kernel/sched/core.c SourceLine:10892] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_update_max_cids SourceFile:kernel/sched/core.c SourceLine:10855] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_update_next_owner SourceFile:kernel/exit.c SourceLine:494] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mm_valid_pasid SourceFile:include/linux/iommu.h SourceLine:1649] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmap_assert_locked SourceFile:include/linux/mmap_lock.h SourceLine:69] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmap_assert_write_locked SourceFile:include/linux/mmap_lock.h SourceLine:74] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmap_init_lock SourceFile:kernel/fork.c SourceLine:1082] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmap_lock_is_contended SourceFile:include/linux/mmap_lock.h SourceLine:642] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmap_lock_speculate_retry SourceFile:include/linux/mmap_lock.h SourceLine:145] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmap_lock_speculate_try_begin SourceFile:include/linux/mmap_lock.h SourceLine:134] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmap_read_lock SourceFile:include/linux/mmap_lock.h SourceLine:597] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmap_read_lock_killable SourceFile:include/linux/mmap_lock.h SourceLine:604] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmap_read_lock_maybe_expand SourceFile:mm/mmap.c SourceLine:1686] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmap_read_trylock SourceFile:include/linux/mmap_lock.h SourceLine:614] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmap_read_unlock SourceFile:include/linux/mmap_lock.h SourceLine:624] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmap_read_unlock_non_owner SourceFile:include/linux/mmap_lock.h SourceLine:636] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmap_upgrade_trylock SourceFile:mm/mmap_lock.c SourceLine:453] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmap_write_downgrade SourceFile:include/linux/mmap_lock.h SourceLine:590] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmap_write_lock SourceFile:include/linux/mmap_lock.h SourceLine:541] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmap_write_lock_killable SourceFile:include/linux/mmap_lock.h SourceLine:557] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmap_write_lock_nested SourceFile:include/linux/mmap_lock.h SourceLine:549] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmap_write_unlock SourceFile:include/linux/mmap_lock.h SourceLine:583] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmdrop SourceFile:include/linux/sched/mm.h SourceLine:47] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmdrop_async SourceFile:kernel/fork.c SourceLine:755] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmdrop_async_fn SourceFile:kernel/fork.c SourceLine:749] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmdrop_async_fn SourceFile:kernel/fork.c SourceLine:751] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmdrop_async_fn SourceFile:kernel/fork.c SourceLine:751] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmdrop_async_fn SourceFile:kernel/fork.c SourceLine:751] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmdrop_lazy_tlb SourceFile:include/linux/sched/mm.h SourceLine:94] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmdrop_lazy_tlb_sched SourceFile:include/linux/sched/mm.h SourceLine:107] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmdrop_sched SourceFile:include/linux/sched/mm.h SourceLine:81] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmf_recalc_uprobes SourceFile:kernel/events/uprobes.c SourceLine:2376] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmget SourceFile:include/linux/sched/mm.h SourceLine:131] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmget_not_zero SourceFile:include/linux/sched/mm.h SourceLine:136] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmgrab SourceFile:include/linux/sched/mm.h SourceLine:35] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmgrab_lazy_tlb SourceFile:include/linux/sched/mm.h SourceLine:88] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmput SourceFile:kernel/fork.c SourceLine:1211] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmput_async SourceFile:kernel/fork.c SourceLine:1229] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmput_async_fn SourceFile:kernel/fork.c SourceLine:1223] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmput_async_fn SourceFile:kernel/fork.c SourceLine:1223] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmput_async_fn SourceFile:kernel/fork.c SourceLine:1223] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmput_async_fn SourceFile:kernel/fork.c SourceLine:1223] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmu_interval_notifier_insert SourceFile:mm/mmu_notifier.c SourceLine:1019] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmu_interval_notifier_insert_locked SourceFile:mm/mmu_notifier.c SourceLine:1042] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmu_interval_notifier_remove SourceFile:mm/mmu_notifier.c SourceLine:1087] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmu_notifier_arch_invalidate_secondary_tlbs SourceFile:include/linux/mmu_notifier.h SourceLine:514] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmu_notifier_clear_flush_young SourceFile:include/linux/mmu_notifier.h SourceLine:446] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmu_notifier_clear_young SourceFile:include/linux/mmu_notifier.h SourceLine:454] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmu_notifier_free_rcu SourceFile:mm/mmu_notifier.c SourceLine:889] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmu_notifier_get SourceFile:include/linux/mmu_notifier.h SourceLine:321] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmu_notifier_get_locked SourceFile:mm/mmu_notifier.c SourceLine:798] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmu_notifier_put SourceFile:mm/mmu_notifier.c SourceLine:920] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmu_notifier_range_init SourceFile:include/linux/mmu_notifier.h SourceLine:536] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmu_notifier_range_init_owner SourceFile:include/linux/mmu_notifier.h SourceLine:550] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmu_notifier_register SourceFile:mm/mmu_notifier.c SourceLine:746] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmu_notifier_release SourceFile:include/linux/mmu_notifier.h SourceLine:440] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmu_notifier_subscriptions_destroy SourceFile:include/linux/mmu_notifier.h SourceLine:526] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmu_notifier_subscriptions_init SourceFile:include/linux/mmu_notifier.h SourceLine:521] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmu_notifier_test_young SourceFile:include/linux/mmu_notifier.h SourceLine:462] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mmu_notifier_unregister SourceFile:mm/mmu_notifier.c SourceLine:844] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mn_hlist_release SourceFile:mm/mmu_notifier.c SourceLine:328] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mn_itree_release SourceFile:mm/mmu_notifier.c SourceLine:273] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mop_up_one_pmd SourceFile:arch/x86/mm/pgtable.c SourceLine:208] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:move_huge_pte SourceFile:mm/hugetlb.c SourceLine:5087] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:move_hugetlb_page_tables SourceFile:mm/hugetlb.c SourceLine:5141] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:move_normal_pmd SourceFile:mm/mremap.c SourceLine:364] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:move_normal_pud SourceFile:mm/mremap.c SourceLine:441] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:move_page_tables SourceFile:mm/mremap.c SourceLine:810] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:move_ptes SourceFile:mm/mremap.c SourceLine:202] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:move_vma SourceFile:mm/mremap.c SourceLine:1363] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mpol_rebind_mm SourceFile:mm/mempolicy.c SourceLine:565] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mprotect_fixup SourceFile:mm/mprotect.c SourceLine:764] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:mremap_to SourceFile:mm/mremap.c SourceLine:1460] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:native_pte_clear SourceFile:arch/x86/include/asm/pgtable_64.h SourceLine:66] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:nmi_uaccess_okay SourceFile:arch/x86/mm/tlb.c SourceLine:1724] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:nmi_uaccess_okay SourceFile:arch/x86/mm/tlb.c SourceLine:1725] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:notify_uffd SourceFile:mm/mremap.c SourceLine:1706] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:oom_reap_task SourceFile:mm/oom_kill.c SourceLine:606] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:oom_reap_task_mm SourceFile:mm/oom_kill.c SourceLine:562] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:p4d_alloc SourceFile:include/linux/mm.h SourceLine:3694] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:p4d_alloc_one_noprof SourceFile:include/asm-generic/pgalloc.h SourceLine:252] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:p4d_alloc_track SourceFile:mm/pgalloc-track.h SourceLine:9] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:p4d_free SourceFile:include/asm-generic/pgalloc.h SourceLine:268] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:p4d_populate SourceFile:arch/x86/include/asm/pgalloc.h SourceLine:111] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:p4d_populate_init SourceFile:arch/x86/mm/init_64.c SourceLine:72] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:p4d_populate_safe SourceFile:arch/x86/include/asm/pgalloc.h SourceLine:117] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:page_table_check_pmd_clear SourceFile:include/linux/page_table_check.h SourceLine:129] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:page_table_check_pmds_set SourceFile:include/linux/page_table_check.h SourceLine:145] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:page_table_check_pte_clear SourceFile:include/linux/page_table_check.h SourceLine:124] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:page_table_check_pte_clear_range SourceFile:include/linux/page_table_check.h SourceLine:155] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:page_table_check_ptes_set SourceFile:include/linux/page_table_check.h SourceLine:139] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:page_table_check_pud_clear SourceFile:include/linux/page_table_check.h SourceLine:134] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:page_table_check_puds_set SourceFile:include/linux/page_table_check.h SourceLine:150] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:page_vma_mapped_walk SourceFile:mm/page_vma_mapped.c SourceLine:189] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pagemap_open SourceFile:fs/proc/task_mmu.c SourceLine:2400] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pagemap_read SourceFile:fs/proc/task_mmu.c SourceLine:2307] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pagemap_release SourceFile:fs/proc/task_mmu.c SourceLine:2411] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pagemap_scan_hugetlb_hole_wp SourceFile:fs/proc/task_mmu.c SourceLine:3044] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pagetable_pmd_ctor SourceFile:include/linux/mm.h SourceLine:4021] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pagetable_pte_ctor SourceFile:include/linux/mm.h SourceLine:3930] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:paravirt_alloc_p4d SourceFile:arch/x86/include/asm/pgalloc.h SourceLine:27] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:paravirt_alloc_pmd SourceFile:arch/x86/include/asm/pgalloc.h SourceLine:23] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:paravirt_alloc_pte SourceFile:arch/x86/include/asm/pgalloc.h SourceLine:22] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:paravirt_alloc_pud SourceFile:arch/x86/include/asm/pgalloc.h SourceLine:26] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:paravirt_arch_exit_mmap SourceFile:arch/x86/include/asm/paravirt.h SourceLine:49] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:paravirt_enter_mmap SourceFile:arch/x86/include/asm/paravirt.h SourceLine:557] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:paravirt_pgd_free SourceFile:arch/x86/include/asm/pgalloc.h SourceLine:21] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:perf_addr_filter_apply SourceFile:kernel/events/core.c SourceLine:11922] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:perf_event_addr_filters_apply SourceFile:kernel/events/core.c SourceLine:11946] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:perf_get_page_size SourceFile:kernel/events/core.c SourceLine:8570] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:perf_get_pgtable_size SourceFile:kernel/events/core.c SourceLine:8511] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:perf_trace_exit_mmap SourceFile:include/trace/events/mmap.h SourceLine:46] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:perf_trace_mmap_lock SourceFile:include/trace/events/mmap_lock.h SourceLine:14] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:perf_trace_mmap_lock_acquire_returned SourceFile:include/trace/events/mmap_lock.h SourceLine:47] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:perf_trace_rss_stat SourceFile:include/trace/events/kmem.h SourceLine:427] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pgd_alloc SourceFile:arch/x86/mm/pgtable.c SourceLine:311] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pgd_ctor SourceFile:arch/x86/mm/pgtable.c SourceLine:82] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pgd_free SourceFile:arch/x86/mm/pgtable.c SourceLine:365] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pgd_mop_up_pmds SourceFile:arch/x86/mm/pgtable.c SourceLine:223] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pgd_populate SourceFile:arch/x86/include/asm/pgalloc.h SourceLine:132] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pgd_populate_init SourceFile:arch/x86/mm/init_64.c SourceLine:73] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pgd_populate_safe SourceFile:arch/x86/include/asm/pgalloc.h SourceLine:140] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pgd_prepopulate_pmd SourceFile:arch/x86/mm/pgtable.c SourceLine:242] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pgd_prepopulate_user_pmd SourceFile:arch/x86/mm/pgtable.c SourceLine:263] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pgd_set_mm SourceFile:arch/x86/mm/pgtable.c SourceLine:72] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pin_user_pages_remote SourceFile:mm/gup.c SourceLine:3342] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pmd_alloc SourceFile:include/linux/mm.h SourceLine:3708] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pmd_alloc_one_noprof SourceFile:include/asm-generic/pgalloc.h SourceLine:136] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pmd_alloc_track SourceFile:mm/pgalloc-track.h SourceLine:35] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pmd_free SourceFile:include/asm-generic/pgalloc.h SourceLine:160] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pmd_install SourceFile:mm/memory.c SourceLine:425] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pmd_lock SourceFile:include/linux/mm.h SourceLine:4014] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pmd_lockptr SourceFile:include/linux/mm.h SourceLine:3986] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pmd_migration_entry_wait SourceFile:include/linux/swapops.h SourceLine:355] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pmd_off SourceFile:include/linux/pgtable.h SourceLine:165] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pmd_populate SourceFile:arch/x86/include/asm/pgalloc.h SourceLine:76] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pmd_populate_kernel SourceFile:arch/x86/include/asm/pgalloc.h SourceLine:62] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pmd_populate_kernel_init SourceFile:arch/x86/mm/init_64.c SourceLine:75] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pmd_populate_kernel_safe SourceFile:arch/x86/include/asm/pgalloc.h SourceLine:69] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pmdp_huge_get_and_clear SourceFile:arch/x86/include/asm/pgtable.h SourceLine:1317] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pmdp_set_wrprotect SourceFile:arch/x86/include/asm/pgtable.h SourceLine:1339] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:populate_vma_page_range SourceFile:mm/gup.c SourceLine:1816] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:prctl_get_auxv SourceFile:kernel/sys.c SourceLine:2481] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:prctl_get_thp_disable SourceFile:kernel/sys.c SourceLine:2492] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:prctl_set_auxv SourceFile:kernel/sys.c SourceLine:2168] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:prctl_set_mm SourceFile:kernel/sys.c SourceLine:2201] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:prctl_set_mm_exe_file SourceFile:kernel/sys.c SourceLine:1966] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:prctl_set_thp_disable SourceFile:kernel/sys.c SourceLine:2508] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:preallocate_pmds SourceFile:arch/x86/mm/pgtable.c SourceLine:165] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:prepare_sync_core_cmd SourceFile:include/linux/sync_core.h SourceLine:30] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:prepare_uprobe SourceFile:kernel/events/uprobes.c SourceLine:1100] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:print_vma_addr SourceFile:mm/memory.c SourceLine:7454] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:probe_range SourceFile:drivers/gpu/drm/i915/gem/i915_gem_userptr.c SourceLine:402] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:proc_coredump_filter_read SourceFile:fs/proc/base.c SourceLine:2927] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:proc_coredump_filter_write SourceFile:fs/proc/base.c SourceLine:2958] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:proc_map_files_lookup SourceFile:fs/proc/base.c SourceLine:2329] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:proc_map_files_readdir SourceFile:fs/proc/base.c SourceLine:2380] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:proc_mem_foll_force SourceFile:fs/proc/base.c SourceLine:858] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:proc_mem_open SourceFile:fs/proc/base.c SourceLine:821] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:proc_pid_statm SourceFile:fs/proc/array.c SourceLine:686] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:proc_pid_status SourceFile:fs/proc/array.c SourceLine:441] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:process_mm_walk_lock SourceFile:mm/pagewalk.c SourceLine:435] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:process_shares_mm SourceFile:mm/oom_kill.c SourceLine:491] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:process_shares_mm SourceFile:mm/oom_kill.c SourceLine:496] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:process_vm_rw_core SourceFile:mm/process_vm_access.c SourceLine:159] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:process_vm_rw_single_vec SourceFile:mm/process_vm_access.c SourceLine:77] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ptdump_walk_pgd SourceFile:mm/ptdump.c SourceLine:175] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ptdump_walk_pgd_level SourceFile:arch/x86/mm/dump_pagetables.c SourceLine:474] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ptdump_walk_pgd_level_core SourceFile:arch/x86/mm/dump_pagetables.c SourceLine:424] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ptdump_walk_pgd_level_debugfs SourceFile:arch/x86/mm/dump_pagetables.c SourceLine:479] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pte_accessible SourceFile:arch/x86/include/asm/pgtable.h SourceLine:965] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pte_alloc_huge SourceFile:include/linux/hugetlb.h SourceLine:193] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pte_alloc_one SourceFile:arch/x86/mm/pgtable.c SourceLine:16] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pte_alloc_one_kernel_noprof SourceFile:include/asm-generic/pgalloc.h SourceLine:43] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pte_free SourceFile:include/asm-generic/pgalloc.h SourceLine:114] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pte_free_kernel SourceFile:include/asm-generic/pgalloc.h SourceLine:55] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pte_lockptr SourceFile:include/linux/mm.h SourceLine:3862] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pte_offset_map_lock SourceFile:mm/pgtable-generic.c SourceLine:393] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pte_offset_map_ro_nolock SourceFile:mm/pgtable-generic.c SourceLine:311] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pte_offset_map_rw_nolock SourceFile:mm/pgtable-generic.c SourceLine:323] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ptep_clear SourceFile:include/linux/pgtable.h SourceLine:700] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ptep_clear_flush SourceFile:mm/pgtable-generic.c SourceLine:100] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ptep_get_and_clear SourceFile:arch/x86/include/asm/pgtable.h SourceLine:1239] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ptep_get_and_clear_full SourceFile:arch/x86/include/asm/pgtable.h SourceLine:1248] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ptep_lockptr SourceFile:include/linux/mm.h SourceLine:3867] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ptep_set_wrprotect SourceFile:arch/x86/include/asm/pgtable.h SourceLine:1267] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ptrace_access_vm SourceFile:kernel/ptrace.c SourceLine:72] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pud_alloc SourceFile:include/linux/mm.h SourceLine:3701] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pud_alloc_one_noprof SourceFile:include/asm-generic/pgalloc.h SourceLine:204] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pud_alloc_track SourceFile:mm/pgalloc-track.h SourceLine:22] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pud_free SourceFile:include/asm-generic/pgalloc.h SourceLine:220] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pud_lock SourceFile:include/linux/mm.h SourceLine:4042] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pud_lockptr SourceFile:include/linux/mm.h SourceLine:4037] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pud_populate SourceFile:arch/x86/include/asm/pgalloc.h SourceLine:97] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pud_populate_init SourceFile:arch/x86/mm/init_64.c SourceLine:74] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pud_populate_safe SourceFile:arch/x86/include/asm/pgalloc.h SourceLine:103] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pudp_huge_get_and_clear SourceFile:arch/x86/include/asm/pgtable.h SourceLine:1328] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:pudp_set_wrprotect SourceFile:include/linux/pgtable.h SourceLine:1243] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:query_vma_find_by_addr SourceFile:fs/proc/task_mmu.c SourceLine:583] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:queue_pages_range SourceFile:mm/mempolicy.c SourceLine:983] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:read_ldt SourceFile:arch/x86/kernel/ldt.c SourceLine:504] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_for_each_vma SourceFile:kernel/events/uprobes.c SourceLine:1290] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_exit_mmap SourceFile:include/trace/events/mmap.h SourceLine:46] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_mmap_lock_acquire_returned SourceFile:include/trace/events/mmap_lock.h SourceLine:47] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_mmap_lock_released SourceFile:include/trace/events/mmap_lock.h SourceLine:45] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_mmap_lock_start_locking SourceFile:include/trace/events/mmap_lock.h SourceLine:44] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_prio_exit_mmap SourceFile:include/trace/events/mmap.h SourceLine:46] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_prio_mmap_lock_acquire_returned SourceFile:include/trace/events/mmap_lock.h SourceLine:47] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_prio_mmap_lock_released SourceFile:include/trace/events/mmap_lock.h SourceLine:45] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_prio_mmap_lock_start_locking SourceFile:include/trace/events/mmap_lock.h SourceLine:44] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_prio_rss_stat SourceFile:include/trace/events/kmem.h SourceLine:427] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_prio_xen_mmu_alloc_ptpage SourceFile:include/trace/events/xen.h SourceLine:236] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_prio_xen_mmu_flush_tlb_multi SourceFile:include/trace/events/xen.h SourceLine:299] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_prio_xen_mmu_pgd_pin SourceFile:include/trace/events/xen.h SourceLine:286] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_prio_xen_mmu_pgd_unpin SourceFile:include/trace/events/xen.h SourceLine:287] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_prio_xen_mmu_ptep_modify_prot_commit SourceFile:include/trace/events/xen.h SourceLine:234] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_prio_xen_mmu_ptep_modify_prot_start SourceFile:include/trace/events/xen.h SourceLine:233] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_rss_stat SourceFile:include/trace/events/kmem.h SourceLine:427] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_xen_mmu_alloc_ptpage SourceFile:include/trace/events/xen.h SourceLine:236] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_xen_mmu_flush_tlb_multi SourceFile:include/trace/events/xen.h SourceLine:299] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_xen_mmu_pgd_pin SourceFile:include/trace/events/xen.h SourceLine:286] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_xen_mmu_pgd_unpin SourceFile:include/trace/events/xen.h SourceLine:287] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_xen_mmu_ptep_modify_prot_commit SourceFile:include/trace/events/xen.h SourceLine:234] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:register_trace_xen_mmu_ptep_modify_prot_start SourceFile:include/trace/events/xen.h SourceLine:233] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:relocate_vma_down SourceFile:mm/vma_exec.c SourceLine:36] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:remap_p4d_range SourceFile:mm/memory.c SourceLine:3113] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:remap_pfn_range_internal SourceFile:mm/memory.c SourceLine:3160] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:remap_pmd_range SourceFile:mm/memory.c SourceLine:3068] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:remap_pte_range SourceFile:mm/memory.c SourceLine:3042] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:remap_pud_range SourceFile:mm/memory.c SourceLine:3091] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:remove_breakpoint SourceFile:kernel/events/uprobes.c SourceLine:1185] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:replace_mm_exe_file SourceFile:kernel/fork.c SourceLine:1289] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:reset_mm_hiwater_rss SourceFile:include/linux/mm.h SourceLine:3539] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:sanity_check_ldt_mapping SourceFile:arch/x86/kernel/ldt.c SourceLine:272] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:sched_force_init_mm SourceFile:kernel/sched/core.c SourceLine:8447] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:sched_mm_cid_add_user SourceFile:kernel/sched/core.c SourceLine:11035] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:sched_mm_cid_exit SourceFile:kernel/sched/core.c SourceLine:11133] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:sched_mm_cid_fork SourceFile:kernel/sched/core.c SourceLine:11047] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:security_vm_enough_memory_mm SourceFile:security/security.c SourceLine:735] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:selinux_vm_enough_memory SourceFile:security/selinux/hooks.c SourceLine:2263] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:seq_print_user_ip SourceFile:kernel/trace/trace_output.c SourceLine:424] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:set_binfmt SourceFile:fs/exec.c SourceLine:2002] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:set_huge_pte_at SourceFile:include/asm-generic/hugetlb.h SourceLine:70] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:set_mm_exe_file SourceFile:kernel/fork.c SourceLine:1252] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:set_notrack_mm SourceFile:arch/x86/include/asm/mmu_context.h SourceLine:250] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:set_pmd_at SourceFile:arch/x86/include/asm/pgtable.h SourceLine:1202] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:set_ptes SourceFile:include/linux/pgtable.h SourceLine:444] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:set_pud_at SourceFile:arch/x86/include/asm/pgtable.h SourceLine:1209] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:set_tlb_ubc_flush_pending SourceFile:mm/rmap.c SourceLine:742] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:setmax_mm_hiwater_rss SourceFile:include/linux/mm.h SourceLine:3545] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:setup_arg_pages SourceFile:fs/exec.c SourceLine:609] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:shmem_alloc_and_add_folio SourceFile:mm/shmem.c SourceLine:1941] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:shmem_get_folio_gfp SourceFile:mm/shmem.c SourceLine:2433] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:shmem_swapin_folio SourceFile:mm/shmem.c SourceLine:2261] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:should_defer_flush SourceFile:mm/rmap.c SourceLine:787] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:should_flush_tlb SourceFile:arch/x86/mm/tlb.c SourceLine:1278] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:should_flush_tlb SourceFile:arch/x86/mm/tlb.c SourceLine:1300] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:should_trim_cpumask SourceFile:arch/x86/mm/tlb.c SourceLine:1314] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:show_numa_map SourceFile:fs/proc/task_mmu.c SourceLine:3535] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:show_smaps_rollup SourceFile:fs/proc/task_mmu.c SourceLine:1491] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:shrink_vma SourceFile:mm/mremap.c SourceLine:1424] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:stack_map_lock_vma SourceFile:kernel/bpf/stackmap.c SourceLine:288] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:sva_arch_invalidate_secondary_tlbs SourceFile:drivers/iommu/amd/pasid.c SourceLine:60] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:sva_mn_release SourceFile:drivers/iommu/amd/pasid.c SourceLine:80] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:switch_ldt SourceFile:arch/x86/kernel/ldt.c SourceLine:90] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:switch_ldt SourceFile:arch/x86/kernel/ldt.c SourceLine:90] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:switch_mm SourceFile:arch/x86/mm/tlb.c SourceLine:607] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:switch_mm SourceFile:arch/x86/mm/tlb.c SourceLine:607] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:switch_mm_irqs_off SourceFile:arch/x86/mm/tlb.c SourceLine:783] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:switch_mm_irqs_off SourceFile:arch/x86/mm/tlb.c SourceLine:783] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:switch_mm_irqs_off SourceFile:arch/x86/mm/tlb.c SourceLine:786] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:switch_mm_irqs_off SourceFile:arch/x86/mm/tlb.c SourceLine:914] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:switch_mm_irqs_off SourceFile:arch/x86/mm/tlb.c SourceLine:914] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:switch_mm_irqs_off SourceFile:arch/x86/mm/tlb.c SourceLine:914] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:switch_mm_irqs_off SourceFile:arch/x86/mm/tlb.c SourceLine:914] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:switch_mm_irqs_off SourceFile:arch/x86/mm/tlb.c SourceLine:914] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:switch_mm_irqs_off SourceFile:arch/x86/mm/tlb.c SourceLine:914] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:switch_mm_irqs_off SourceFile:arch/x86/mm/tlb.c SourceLine:914] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:switch_mm_irqs_off SourceFile:arch/x86/mm/tlb.c SourceLine:914] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:sync_runqueues_membarrier_state SourceFile:kernel/sched/membarrier.c SourceLine:445] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:sync_with_folio_pmd_zap SourceFile:mm/internal.h SourceLine:598] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:task_cache_work SourceFile:kernel/sched/fair.c SourceLine:1880] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:task_mem SourceFile:fs/proc/task_mmu.c SourceLine:37] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:task_statm SourceFile:fs/proc/task_mmu.c SourceLine:94] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:task_thp_status SourceFile:fs/proc/array.c SourceLine:419] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:task_tick_cache SourceFile:kernel/sched/fair.c SourceLine:1788] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:task_untag_mask SourceFile:fs/proc/array.c SourceLine:428] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:task_vma_seq_get_next SourceFile:kernel/bpf/task_iter.c SourceLine:433] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:task_vsize SourceFile:fs/proc/task_mmu.c SourceLine:89] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:task_will_free_mem SourceFile:mm/oom_kill.c SourceLine:867] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:tear_down_vmas SourceFile:mm/mmap.c SourceLine:1265] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:tlb_gather_mmu SourceFile:mm/mmu_gather.c SourceLine:462] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:tlb_gather_mmu_fullmm SourceFile:mm/mmu_gather.c SourceLine:478] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_call__exit_mmap SourceFile:include/trace/events/mmap.h SourceLine:46] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_call__mmap_lock_acquire_returned SourceFile:include/trace/events/mmap_lock.h SourceLine:47] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_call__mmap_lock_released SourceFile:include/trace/events/mmap_lock.h SourceLine:45] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_call__mmap_lock_start_locking SourceFile:include/trace/events/mmap_lock.h SourceLine:44] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_call__rss_stat SourceFile:include/trace/events/kmem.h SourceLine:427] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_call__xen_mmu_alloc_ptpage SourceFile:include/trace/events/xen.h SourceLine:236] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_call__xen_mmu_flush_tlb_multi SourceFile:include/trace/events/xen.h SourceLine:299] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_call__xen_mmu_pgd_pin SourceFile:include/trace/events/xen.h SourceLine:286] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_call__xen_mmu_pgd_unpin SourceFile:include/trace/events/xen.h SourceLine:287] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_call__xen_mmu_ptep_modify_prot_commit SourceFile:include/trace/events/xen.h SourceLine:234] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_call__xen_mmu_ptep_modify_prot_start SourceFile:include/trace/events/xen.h SourceLine:233] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_event_get_offsets_exit_mmap SourceFile:include/trace/events/mmap.h SourceLine:46] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_event_get_offsets_mmap_lock SourceFile:include/trace/events/mmap_lock.h SourceLine:14] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_event_get_offsets_mmap_lock_acquire_returned SourceFile:include/trace/events/mmap_lock.h SourceLine:47] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_event_get_offsets_rss_stat SourceFile:include/trace/events/kmem.h SourceLine:427] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_event_raw_event_exit_mmap SourceFile:include/trace/events/mmap.h SourceLine:46] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_event_raw_event_mmap_lock SourceFile:include/trace/events/mmap_lock.h SourceLine:14] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_event_raw_event_mmap_lock_acquire_returned SourceFile:include/trace/events/mmap_lock.h SourceLine:47] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_event_raw_event_rss_stat SourceFile:include/trace/events/kmem.h SourceLine:427] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_exit_mmap SourceFile:include/trace/events/mmap.h SourceLine:46] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_mmap_lock_acquire_returned SourceFile:include/trace/events/mmap_lock.h SourceLine:47] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_mmap_lock_released SourceFile:include/trace/events/mmap_lock.h SourceLine:45] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_mmap_lock_start_locking SourceFile:include/trace/events/mmap_lock.h SourceLine:44] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_rss_stat SourceFile:include/trace/events/kmem.h SourceLine:427] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_user_stack_print SourceFile:kernel/trace/trace_output.c SourceLine:1474] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_xen_mmu_alloc_ptpage SourceFile:include/trace/events/xen.h SourceLine:236] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_xen_mmu_flush_tlb_multi SourceFile:include/trace/events/xen.h SourceLine:299] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_xen_mmu_pgd_pin SourceFile:include/trace/events/xen.h SourceLine:286] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_xen_mmu_pgd_unpin SourceFile:include/trace/events/xen.h SourceLine:287] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_xen_mmu_ptep_modify_prot_commit SourceFile:include/trace/events/xen.h SourceLine:234] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:trace_xen_mmu_ptep_modify_prot_start SourceFile:include/trace/events/xen.h SourceLine:233] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:try_to_inc_max_seq SourceFile:mm/vmscan.c SourceLine:4075] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:try_to_migrate_one SourceFile:mm/rmap.c SourceLine:2468] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:try_to_set_owner SourceFile:kernel/exit.c SourceLine:475] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:try_to_set_owner SourceFile:kernel/exit.c SourceLine:480] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:try_to_unmap_one SourceFile:mm/rmap.c SourceLine:2204] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:try_to_unmap_poisoned_hugetlb_one SourceFile:mm/rmap.c SourceLine:1990] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:try_to_unuse SourceFile:mm/swapfile.c SourceLine:2738] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:try_to_unuse SourceFile:mm/swapfile.c SourceLine:2739] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:try_to_unuse SourceFile:mm/swapfile.c SourceLine:2764] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:try_to_unuse SourceFile:mm/swapfile.c SourceLine:2764] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:try_to_unuse SourceFile:mm/swapfile.c SourceLine:2764] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:try_vma_read_lock SourceFile:mm/madvise.c SourceLine:1640] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:ttu_anon_swapbacked_folio SourceFile:mm/rmap.c SourceLine:2149] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:unapply_uprobe SourceFile:kernel/events/uprobes.c SourceLine:1473] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:unmap_ldt_struct SourceFile:arch/x86/kernel/ldt.c SourceLine:349] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:unmap_ref_private SourceFile:mm/hugetlb.c SourceLine:5423] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:unmap_region SourceFile:mm/vma.c SourceLine:527] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:unmap_source_vma SourceFile:mm/mremap.c SourceLine:1162] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:unregister_trace_exit_mmap SourceFile:include/trace/events/mmap.h SourceLine:46] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:unregister_trace_mmap_lock_acquire_returned SourceFile:include/trace/events/mmap_lock.h SourceLine:47] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:unregister_trace_mmap_lock_released SourceFile:include/trace/events/mmap_lock.h SourceLine:45] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:unregister_trace_mmap_lock_start_locking SourceFile:include/trace/events/mmap_lock.h SourceLine:44] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:unregister_trace_rss_stat SourceFile:include/trace/events/kmem.h SourceLine:427] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:unregister_trace_xen_mmu_alloc_ptpage SourceFile:include/trace/events/xen.h SourceLine:236] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:unregister_trace_xen_mmu_flush_tlb_multi SourceFile:include/trace/events/xen.h SourceLine:299] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:unregister_trace_xen_mmu_pgd_pin SourceFile:include/trace/events/xen.h SourceLine:286] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:unregister_trace_xen_mmu_pgd_unpin SourceFile:include/trace/events/xen.h SourceLine:287] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:unregister_trace_xen_mmu_ptep_modify_prot_commit SourceFile:include/trace/events/xen.h SourceLine:234] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:unregister_trace_xen_mmu_ptep_modify_prot_start SourceFile:include/trace/events/xen.h SourceLine:233] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:unuse_mm SourceFile:mm/swapfile.c SourceLine:2681] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:unuse_temporary_mm SourceFile:arch/x86/mm/tlb.c SourceLine:1027] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:update_hiwater_rss SourceFile:include/linux/mm.h SourceLine:3525] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:update_hiwater_vm SourceFile:include/linux/mm.h SourceLine:3533] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:update_ref_ctr SourceFile:kernel/events/uprobes.c SourceLine:356] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:update_ref_ctr_warn SourceFile:kernel/events/uprobes.c SourceLine:347] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:upgrade_mmap_lock_carefully SourceFile:mm/mmap_lock.c SourceLine:466] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:uprobe_clear_state SourceFile:kernel/events/uprobes.c SourceLine:1815] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:uprobe_copy_process SourceFile:kernel/events/uprobes.c SourceLine:2183] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:uprobe_dup_mmap SourceFile:kernel/events/uprobes.c SourceLine:1841] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:uprobe_dup_mmap SourceFile:kernel/events/uprobes.c SourceLine:1841] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:uprobe_multi_link_filter SourceFile:kernel/trace/bpf_trace.c SourceLine:3168] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:uprobe_perf_filter SourceFile:kernel/trace/trace_uprobe.c SourceLine:1367] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:uprobe_write SourceFile:kernel/events/uprobes.c SourceLine:505] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:use_global_asid SourceFile:arch/x86/mm/tlb.c SourceLine:376] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:use_temporary_mm SourceFile:arch/x86/mm/tlb.c SourceLine:992] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:use_temporary_mm SourceFile:arch/x86/mm/tlb.c SourceLine:994] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:userfaultfd_unmap_complete SourceFile:include/linux/userfaultfd_k.h SourceLine:454] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:uverbs_user_mmap_disassociate SourceFile:drivers/infiniband/core/uverbs_main.c SourceLine:779] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:vdso_install_vvar_mapping SourceFile:lib/vdso/datastore.c SourceLine:123] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:vdso_join_timens SourceFile:kernel/time/namespace_vdso.c SourceLine:127] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:vector_madvise SourceFile:mm/madvise.c SourceLine:2027] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:vfs_coredump SourceFile:fs/coredump.c SourceLine:1161] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:vm_area_alloc SourceFile:mm/vma_init.c SourceLine:32] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:vm_brk_flags SourceFile:mm/mmap.c SourceLine:1224] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:vm_lock_anon_vma SourceFile:mm/vma.c SourceLine:2241] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:vm_lock_mapping SourceFile:mm/vma.c SourceLine:2264] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:vm_mmap_pgoff SourceFile:mm/util.c SourceLine:571] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:vm_stat_account SourceFile:mm/mmap.c SourceLine:1374] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:vma_complete SourceFile:mm/vma.c SourceLine:384] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:vma_end_write_all SourceFile:include/linux/mmap_lock.h SourceLine:577] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:vma_init SourceFile:include/linux/mm.h SourceLine:991] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:vma_iter_init SourceFile:include/linux/mm_types.h SourceLine:1560] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:vma_link SourceFile:mm/vma.c SourceLine:1924] map[ReferenceKind:uses ReferencingEntityKind:function ReferencingEntityName:vma_lookup SourceFile:include/linux/mm.h SourceLine:4353]] TruncatedOutput:true]
|
| 31/4 |
2026/09/21 00:42 |
llm |
codeexpert |
0m
Model:
Tokens:
input: 63568
output: 40
thoughts: 170
Thoughts: **Investigating `codesearch-struct-layout` and Field References**
Okay, hold on a second! Can `codesearch-struct-layout` *actually* find field references using that `struct_name::field_name` syntax? I need to double-check `codesearch-find-references` again. "To find field references use 'struct_name::field_name' syntax," right? Right. Okay, so what if I want to find references to fields within `mm_struct`, or even just examine the layout of `mm_struct` fields themselves? This could be useful.
Wait... could I use `codesearch-find-references` on something like `mm_struct::...`? That's a possibility. Now, can `codesearch-struct-layout` actually be used in conjunction with `mm_struct::...` or does it have a similar query option? I need to look into this. I'm going to test `codesearch-struct-layout` with `ContextFile: "kernel/fork.c"` to check the syntax, that should give me a good baseline. Let's see if this works.
|
| 32/4 |
2026/09/21 00:42 |
tool |
codesearch-struct-layout |
0m
Args: map[ContextFile:kernel/fork.c FieldOffset:1672 Name:mm_struct]
Results: map[Fields:[map[Name: OffsetBits:0 SizeBits:13824]]]
|
| 33/4 |
2026/09/21 00:42 |
llm |
codeexpert |
0m
Model:
Tokens:
input: 64056
output: 20
thoughts: 215
Thoughts: **Debugging a Tricky Struct Layout Issue**
Okay, so I'm still getting that frustrating output: `{Fields:[{Name:"",OffsetBits:0,SizeBits:13824}]}`. It looks like it's that anonymous struct that's messing things up. My immediate thought is, "Wait, is 'Name' actually something like `mm_struct::<anonymous>`?" We need to figure out how to access those anonymous struct members. I wonder, can I learn from how `codesearch-struct-layout` tackles these anonymous structs?
Maybe I should expand the scope. Let's see what happens if I run `codesearch-struct-layout` on *other* structs that also have anonymous structs. That might give me some clues. And, while I'm at it, is there even a way to *query* that anonymous struct directly using `codesearch-struct-layout`? I need to find the right tool for the job here.
Right, let's step back and look at how `mm_struct` itself is defined. Aha! I see it:
```c
struct mm_struct {
struct {
...
} __randomize_layout;
char flexible_array[] __aligned(__alignof__(unsigned long));
};
```
So there's this `__randomize_layout` thing. What the heck *is* that? I've never seen that before. Okay, time to fire up `grepper` and search for where `__randomize_layout` is actually defined. That should give me the context I need to understand what's going on here.
|
| 34/4 |
2026/09/21 00:42 |
tool |
grepper |
0m
Args: map[Expression:define __randomize_layout]
Results: map[Output:include/linux/compiler_types.h=207=struct ftrace_likely_data {
--
include/linux/compiler_types.h-468-#if defined(RANDSTRUCT) && !defined(__CHECKER__)
include/linux/compiler_types.h:469:# define __randomize_layout __designated_init __attribute__((randomize_layout))
include/linux/compiler_types.h-470-# define __no_randomize_layout __attribute__((no_randomize_layout))
--
include/linux/compiler_types.h-474-#else
include/linux/compiler_types.h:475:# define __randomize_layout __designated_init
include/linux/compiler_types.h-476-# define __no_randomize_layout
--
tools/testing/vma/include/stubs.h=20=struct unmap_desc;
--
tools/testing/vma/include/stubs.h-22-#define __bitwise
tools/testing/vma/include/stubs.h:23:#define __randomize_layout
tools/testing/vma/include/stubs.h-24-
]
|
| 35/4 |
2026/09/21 00:42 |
llm |
codeexpert |
0m
Model:
Tokens:
input: 64931
output: 38
thoughts: 292
Thoughts: **Investigating Potential Data Structure Anomalies**
Okay, here's the plan. I'm going to leverage `codesearch-find-references` with that neat `struct_name::field_name` syntax. I want to see what happens when I look for references to fields like `mm_struct::mm_count` or `mm_struct::work`, particularly those located near a specific offset, say 1672. It's time to dig in and see what's what.
But hold on, before I dive into the search, I need to know the size of `mm_struct` itself. Let's fire up `codesearch-struct-layout` and get that information. Aha! 13824 bits, which is 1728 bytes. Okay, so 1672 is 0x688 in hex.
Let me do a quick calculation. 1728 bytes (total size) minus 1672 bytes (the offset of interest) leaves us with⦠56 bytes! That's 56 bytes from the end of the struct. It's either near the end of the struct or the end of the struct is near 1672.
Right, 56 bytes before the end of the struct, that's important. I need to know what's there.
Now, let's take a look at the actual definition of `mm_struct`. I'm going to look in `include/linux/mm_types.h`, from lines 1360 to 1430 to get a clearer picture of what those last few bytes might be. This should give me some context before I proceed with the search.
|
| 36/4 |
2026/09/21 00:42 |
tool |
read-file |
0m
Args: map[File:include/linux/mm_types.h FirstLine:1360 LineCount:70]
Results: map[Contents:1360:
1361: /* numa_scan_seq prevents two threads remapping PTEs. */
1362: int numa_scan_seq;
1363: #endif
1364: /*
1365: * An operation with batched TLB flushing is going on. Anything
1366: * that can move process memory needs to flush the TLB when
1367: * moving a PROT_NONE mapped page.
1368: */
1369: atomic_t tlb_flush_pending;
1370: #ifdef CONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH
1371: /* See flush_tlb_batched_pending() */
1372: atomic_t tlb_flush_batched;
1373: #endif
1374: struct uprobes_state uprobes_state;
1375: #ifdef CONFIG_PREEMPT_RT
1376: struct rcu_head delayed_drop;
1377: #endif
1378: #ifdef CONFIG_HUGETLB_PAGE
1379: atomic_long_t hugetlb_usage;
1380: #endif
1381: struct work_struct async_put_work;
1382:
1383: #ifdef CONFIG_IOMMU_MM_DATA
1384: struct iommu_mm_data *iommu_mm;
1385: #endif
1386: #ifdef CONFIG_KSM
1387: /*
1388: * Represent how many pages of this process are involved in KSM
1389: * merging (not including ksm_zero_pages).
1390: */
1391: unsigned long ksm_merging_pages;
1392: /*
1393: * Represent how many pages are checked for ksm merging
1394: * including merged and not merged.
1395: */
1396: unsigned long ksm_rmap_items;
1397: /*
1398: * Represent how many empty pages are merged with kernel zero
1399: * pages when enabling KSM use_zero_pages.
1400: */
1401: atomic_long_t ksm_zero_pages;
1402: #endif /* CONFIG_KSM */
1403: #ifdef CONFIG_LRU_GEN_WALKS_MMU
1404: struct {
1405: /* this mm_struct is on lru_gen_mm_list */
1406: struct list_head list;
1407: /*
1408: * Set when switching to this mm_struct, as a hint of
1409: * whether it has been used since the last time per-node
1410: * page table walkers cleared the corresponding bits.
1411: */
1412: unsigned long bitmap;
1413: #ifdef CONFIG_MEMCG
1414: /* points to the memcg of "owner" above */
1415: struct mem_cgroup *memcg;
1416: #endif
1417: } lru_gen;
1418: #endif /* CONFIG_LRU_GEN_WALKS_MMU */
1419: #ifdef CONFIG_MM_ID
1420: mm_id_t mm_id;
1421: #endif /* CONFIG_MM_ID */
1422: } __randomize_layout;
1423:
1424: /*
1425: * The mm_cpumask needs to be at the end of mm_struct, because it
1426: * is dynamically sized based on nr_cpu_ids.
1427: */
1428: char flexible_array[] __aligned(__alignof__(unsigned long));
1429: };
]
|
| 37/4 |
2026/09/21 00:42 |
llm |
codeexpert-compressor |
0m
Model:
Reply: ### 1. Goal and Question
Determine which field is at offset 1672 (0x688) in `struct mm_struct`.
---
### 2. Approaches Tried and Results
1. **`codesearch-struct-layout` with `FieldOffset: 1672, Name: "mm_struct"`**:
- Result: `{"Fields":[{"Name":"","OffsetBits":0,"SizeBits":13824}]}`
- Analysis: The entire struct up to offset 1728 bytes (13824 bits) is an unnamed structure. Offset 1672 lies inside this unnamed struct.
2. **`codesearch-struct-layout` with `Name: "mm_struct"` (full struct)**:
- Result:
- Field `""` at `OffsetBits: 0`, `SizeBits: 13824` (1728 bytes = 0x6C0).
- Field `"flexible_array"` at `OffsetBits: 13824`, `SizeBits: 0`.
3. **`codesearch-definition-source` with `Name: "mm_struct"`**:
- Result: Retrieved definition from `include/linux/mm_types.h` (lines 1175β1429).
- Revealed that `mm_struct` wraps almost all fields in an anonymous struct marked `__randomize_layout` (lines 1176β1422), ending with `char flexible_array[] __aligned(__alignof__(unsigned long));` at line 1428.
4. **`codesearch-find-references` for `mm_struct`**:
- Result: Returned numerous referencing C source files (e.g., `kernel/fork.c`, `mm/memory.c`, `mm/mmap.c`, etc.) that can serve as `ContextFile` if needed.
---
### 3. Key Findings & Code Definitions
#### `struct mm_struct` Definition (`include/linux/mm_types.h`, lines 1175β1429)
```c
struct mm_struct {
struct {
struct {
atomic_t mm_count;
} ____cacheline_aligned_in_smp;
struct maple_tree mm_mt;
unsigned long mmap_base;
unsigned long mmap_legacy_base;
#ifdef CONFIG_HAVE_ARCH_COMPAT_MMAP_BASES
unsigned long mmap_compat_base;
unsigned long mmap_compat_legacy_base;
#endif
unsigned long task_size;
pgd_t * pgd;
#ifdef CONFIG_MEMBARRIER
atomic_t membarrier_state;
#endif
atomic_t mm_users;
struct mm_mm_cid mm_cid;
struct sched_cache_stat sc_stat;
#ifdef CONFIG_MMU
atomic_long_t pgtables_bytes;
#endif
int map_count;
spinlock_t page_table_lock;
struct rw_semaphore mmap_lock;
struct list_head mmlist;
#ifdef CONFIG_PER_VMA_LOCK
struct rcuwait vma_writer_wait;
seqcount_t mm_lock_seq;
#endif
struct futex_mm_data futex;
unsigned long hiwater_rss;
unsigned long hiwater_vm;
unsigned long total_vm;
unsigned long locked_vm;
atomic64_t pinned_vm;
unsigned long data_vm;
unsigned long exec_vm;
unsigned long stack_vm;
union {
vm_flags_t def_flags;
vma_flags_t def_vma_flags;
};
seqcount_t write_protect_seq;
spinlock_t arg_lock;
unsigned long start_code, end_code, start_data, end_data;
unsigned long start_brk, brk, start_stack;
unsigned long arg_start, arg_end, env_start, env_end;
unsigned long saved_auxv[AT_VECTOR_SIZE];
#ifdef CONFIG_ARCH_HAS_ELF_CORE_EFLAGS
unsigned long saved_e_flags;
#endif
struct percpu_counter rss_stat[NR_MM_COUNTERS];
struct linux_binfmt *binfmt;
mm_context_t context;
mm_flags_t flags;
#ifdef CONFIG_AIO
spinlock_t ioctx_lock;
struct kioctx_table __rcu *ioctx_table;
#endif
#ifdef CONFIG_MEMCG
struct task_struct __rcu *owner;
#endif
struct file __rcu *exe_file;
#ifdef CONFIG_MMU_NOTIFIER
struct mmu_notifier_subscriptions *notifier_subscriptions;
#endif
#if defined(CONFIG_TRANSPARENT_HUGEPAGE) && !defined(CONFIG_SPLIT_PMD_PTLOCKS)
pgtable_t pmd_huge_pte;
#endif
#ifdef CONFIG_NUMA_BALANCING
unsigned long numa_next_scan;
unsigned long numa_scan_offset;
int numa_scan_seq;
#endif
atomic_t tlb_flush_pending;
#ifdef CONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH
atomic_t tlb_flush_batched;
#endif
struct uprobes_state uprobes_state;
#ifdef CONFIG_PREEMPT_RT
struct rcu_head delayed_drop;
#endif
#ifdef CONFIG_HUGETLB_PAGE
atomic_long_t hugetlb_usage;
#endif
struct work_struct async_put_work;
#ifdef CONFIG_IOMMU_MM_DATA
struct iommu_mm_data *iommu_mm;
#endif
#ifdef CONFIG_KSM
unsigned long ksm_merging_pages;
unsigned long ksm_rmap_items;
atomic_long_t ksm_zero_pages;
#endif /* CONFIG_KSM */
#ifdef CONFIG_LRU_GEN_WALKS_MMU
struct {
struct list_head list;
unsigned long bitmap;
#ifdef CONFIG_MEMCG
struct mem_cgroup *memcg;
#endif
} lru_gen;
#endif /* CONFIG_LRU_GEN_WALKS_MMU */
#ifdef CONFIG_MM_ID
mm_id_t mm_id;
#endif /* CONFIG_MM_ID */
} __randomize_layout;
char flexible_array[] __aligned(__alignof__(unsigned long));
};
```
---
### 4. Active Investigation & Next Steps
- Target offset: 1672 (0x688). Total size of inner struct is 1728 (0x6C0) bytes.
- Offset 1672 is only 56 bytes (0x38) before the end of the 1728-byte anonymous struct (1728 - 1672 = 56 bytes).
- Near the end of the anonymous struct are fields:
- `ksm_merging_pages`, `ksm_rmap_items`, `ksm_zero_pages`
- `lru_gen` (`list`, `bitmap`, `memcg`)
- `mm_id`
- `async_put_work`, `iommu_mm`
- Need to determine the exact field at offset 1672 in the active build/configuration.
- Options to obtain exact layout:
1. Check if `codesearch-struct-layout` works on the anonymous inner struct or if there is a way to query fields with a specific `ContextFile` (e.g. `kernel/fork.c` or `mm/memory.c`).
2. Inspect member types near the end:
- `sizeof(struct work_struct)` = 32 bytes (or 24 depending on pool)
- `lru_gen`: `list_head` (16 bytes) + `unsigned long` (8 bytes) + pointer (8 bytes) = 32 bytes
- `mm_id` (4 or 8 bytes)
- `ksm_*`
3. Search for configuration/build flags enabled in the repo or calculate offsets from the end (offset 1728) backwards or from known anchors.
4. Query type layouts of sub-structs near the end using `codesearch-struct-layout` (e.g. `work_struct`, `lru_gen`, `uprobes_state`, etc.).
---
### 5. Notes / Watchouts
- Avoid repeatedly calling `codesearch-struct-layout` on `mm_struct` without understanding why it outputs field `""`; the anonymous struct wrapper conceals top-level named members at `mm_struct` level.
- `set-results` must be called exactly once before the final response.
Tokens:
input: 52776
output: 2103
thoughts: 0
|
| 38/4 |
2026/09/21 00:42 |
llm |
codeexpert |
0m
Model:
Tokens:
input: 8714
output: 19
thoughts: 185
Thoughts: **Investigating the Unusual `mm_struct` Layout**
Okay, let's take a look at this. The output from `codesearch-struct-layout` for the `mm_struct` structure gives me something puzzling: `{"Fields":[{"Name":"","OffsetBits":0,"SizeBits":13824},{"Name":"flexible_array","OffsetBits":13824,"SizeBits":0}]}`. That first field, the one with the empty name, that's what's throwing me. Why is it blank? Aha! It must be because `mm_struct` contains an anonymous struct member. That explains the behavior.
Now, I'm curious. Can `codesearch-struct-layout` actually delve into the layout of *other* structs, in general? It's a useful tool, so I want to understand its limitations.
To figure out more about that first unnamed field, and confirm this anonymous struct hypothesis, I need to dig deeper. I'll check `mm_types.h`, and other likely locations to determine if there are any other structs. Maybe there's a related structure declaration hidden away somewhere. I should also investigate other files that might use an offset of 1672 (or 0x688 in hex) to see what uses it. I could also use git to check the commits for this offset. A simple grep would suffice. This is a good starting point.
|
| 39/4 |
2026/09/21 00:42 |
tool |
grepper |
0m
Args:
Results: map[Output:
Full output is too long, showing 500 out of 578 lines.
Use more precise expression if possible.
arch/arm/boot/dts/nxp/imx/imx35-pinfunc.h-565-#define MX35_PAD_D3_VSYNC__ARM11P_TOP_TRACE_19 0x220 0x684 0x000 0x7 0x0
arch/arm/boot/dts/nxp/imx/imx35-pinfunc.h:566:#define MX35_PAD_D3_REV__IPU_DISPB_D3_REV 0x224 0x688 0x000 0x0 0x0
arch/arm/boot/dts/nxp/imx/imx35-pinfunc.h:567:#define MX35_PAD_D3_REV__IPU_DISPB_SER_RS 0x224 0x688 0x000 0x2 0x0
arch/arm/boot/dts/nxp/imx/imx35-pinfunc.h:568:#define MX35_PAD_D3_REV__GPIO1_3 0x224 0x688 0x84c 0x5 0x1
arch/arm/boot/dts/nxp/imx/imx35-pinfunc.h:569:#define MX35_PAD_D3_REV__SDMA_DEBUG_BUS_RWB 0x224 0x688 0x000 0x6 0x0
arch/arm/boot/dts/nxp/imx/imx35-pinfunc.h:570:#define MX35_PAD_D3_REV__ARM11P_TOP_TRACE_20 0x224 0x688 0x000 0x7 0x0
arch/arm/boot/dts/nxp/imx/imx35-pinfunc.h-571-#define MX35_PAD_D3_CLS__IPU_DISPB_D3_CLS 0x228 0x68c 0x000 0x0 0x0
--
arch/arm/boot/dts/nxp/imx/imx51-pinfunc.h-486-#define MX51_PAD_USBH1_NXT__USBH1_NXT 0x284 0x684 0x000 0x0 0x0
arch/arm/boot/dts/nxp/imx/imx51-pinfunc.h:487:#define MX51_PAD_USBH1_DATA0__GPIO1_11 0x288 0x688 0x000 0x2 0x0
arch/arm/boot/dts/nxp/imx/imx51-pinfunc.h:488:#define MX51_PAD_USBH1_DATA0__UART2_CTS 0x288 0x688 0x000 0x1 0x0
arch/arm/boot/dts/nxp/imx/imx51-pinfunc.h:489:#define MX51_PAD_USBH1_DATA0__USBH1_DATA0 0x288 0x688 0x000 0x0 0x0
arch/arm/boot/dts/nxp/imx/imx51-pinfunc.h-490-#define MX51_PAD_USBH1_DATA1__GPIO1_12 0x28c 0x68c 0x000 0x2 0x0
--
arch/arm/boot/dts/nxp/imx/imx53-pinfunc.h-1048-#define MX53_PAD_SD1_DATA3__SATA_PHY_DTB_1 0x2f8 0x680 0x000 0x7 0x0
arch/arm/boot/dts/nxp/imx/imx53-pinfunc.h:1049:#define MX53_PAD_SD2_CLK__ESDHC2_CLK 0x2fc 0x688 0x000 0x0 0x0
arch/arm/boot/dts/nxp/imx/imx53-pinfunc.h:1050:#define MX53_PAD_SD2_CLK__GPIO1_10 0x2fc 0x688 0x000 0x1 0x0
arch/arm/boot/dts/nxp/imx/imx53-pinfunc.h:1051:#define MX53_PAD_SD2_CLK__KPP_COL_5 0x2fc 0x688 0x840 0x2 0x2
arch/arm/boot/dts/nxp/imx/imx53-pinfunc.h:1052:#define MX53_PAD_SD2_CLK__AUDMUX_AUD4_RXFS 0x2fc 0x688 0x73c 0x3 0x1
arch/arm/boot/dts/nxp/imx/imx53-pinfunc.h:1053:#define MX53_PAD_SD2_CLK__CSPI_SCLK 0x2fc 0x688 0x780 0x5 0x3
arch/arm/boot/dts/nxp/imx/imx53-pinfunc.h:1054:#define MX53_PAD_SD2_CLK__SCC_RANDOM_V 0x2fc 0x688 0x000 0x7 0x0
arch/arm/boot/dts/nxp/imx/imx53-pinfunc.h-1055-#define MX53_PAD_SD2_CMD__ESDHC2_CMD 0x300 0x68c 0x000 0x0 0x0
--
arch/arm/boot/dts/nxp/imx/imx6dl-pinfunc.h-902-#define MX6QDL_PAD_NANDF_D6__GPIO2_IO06 0x29c 0x684 0x000 0x5 0x0
arch/arm/boot/dts/nxp/imx/imx6dl-pinfunc.h:903:#define MX6QDL_PAD_NANDF_D7__NAND_DATA07 0x2a0 0x688 0x000 0x0 0x0
arch/arm/boot/dts/nxp/imx/imx6dl-pinfunc.h:904:#define MX6QDL_PAD_NANDF_D7__SD2_DATA7 0x2a0 0x688 0x000 0x1 0x0
arch/arm/boot/dts/nxp/imx/imx6dl-pinfunc.h:905:#define MX6QDL_PAD_NANDF_D7__GPIO2_IO07 0x2a0 0x688 0x000 0x5 0x0
arch/arm/boot/dts/nxp/imx/imx6dl-pinfunc.h-906-#define MX6QDL_PAD_NANDF_RB0__NAND_READY_B 0x2a4 0x68c 0x000 0x0 0x0
--
arch/arm/boot/dts/nxp/imx/imx6sl-pinfunc.h-70-#define MX6SL_PAD_ECSPI1_MISO__GPIO4_IO10 0x068 0x358 0x000 0x5 0x0
arch/arm/boot/dts/nxp/imx/imx6sl-pinfunc.h:71:#define MX6SL_PAD_ECSPI1_MOSI__ECSPI1_MOSI 0x06c 0x35c 0x688 0x0 0x0
arch/arm/boot/dts/nxp/imx/imx6sl-pinfunc.h-72-#define MX6SL_PAD_ECSPI1_MOSI__AUD4_TXC 0x06c 0x35c 0x5f4 0x1 0x0
--
arch/arm/boot/dts/nxp/imx/imx6sl-pinfunc.h-629-#define MX6SL_PAD_LCD_DAT0__LCD_DATA00 0x1b0 0x4b8 0x778 0x0 0x1
arch/arm/boot/dts/nxp/imx/imx6sl-pinfunc.h:630:#define MX6SL_PAD_LCD_DAT0__ECSPI1_MOSI 0x1b0 0x4b8 0x688 0x1 0x1
arch/arm/boot/dts/nxp/imx/imx6sl-pinfunc.h-631-#define MX6SL_PAD_LCD_DAT0__USB_OTG2_ID 0x1b0 0x4b8 0x5e0 0x2 0x1
--
arch/arm/boot/dts/socionext/uniphier-pro5.dtsi=686= sd: mmc@68800000 {
--
arch/arm/boot/dts/socionext/uniphier-pro5.dtsi-688- status = "disabled";
arch/arm/boot/dts/socionext/uniphier-pro5.dtsi:689: reg = <0x68800000 0x800>;
arch/arm/boot/dts/socionext/uniphier-pro5.dtsi-690- interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
--
arch/arm/boot/dts/ti/omap/dra74x-mmc-iodelay.dtsi=503= mmc3_iodelay_manual1_rev20_conf: mmc3_iodelay_manual1_conf {
--
arch/arm/boot/dts/ti/omap/dra74x-mmc-iodelay.dtsi-507- 0x684 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC3_CMD_IN */
arch/arm/boot/dts/ti/omap/dra74x-mmc-iodelay.dtsi:508: 0x688 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC3_CMD_OEN */
arch/arm/boot/dts/ti/omap/dra74x-mmc-iodelay.dtsi-509- 0x68c A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC3_CMD_OUT */
--
arch/arm/boot/dts/ti/omap/dra74x-mmc-iodelay.dtsi=526= mmc3_iodelay_manual1_rev11_conf: mmc3_iodelay_manual1_conf {
--
arch/arm/boot/dts/ti/omap/dra74x-mmc-iodelay.dtsi-530- 0x684 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC3_CMD_IN */
arch/arm/boot/dts/ti/omap/dra74x-mmc-iodelay.dtsi:531: 0x688 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC3_CMD_OEN */
arch/arm/boot/dts/ti/omap/dra74x-mmc-iodelay.dtsi-532- 0x68c A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC3_CMD_OUT */
--
arch/arm/boot/dts/ti/omap/dra76x-mmc-iodelay.dtsi=195= mmc3_iodelay_manual1_conf: mmc3_iodelay_manual1_conf {
--
arch/arm/boot/dts/ti/omap/dra76x-mmc-iodelay.dtsi-199- 0x684 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC3_CMD_IN */
arch/arm/boot/dts/ti/omap/dra76x-mmc-iodelay.dtsi:200: 0x688 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC3_CMD_OEN */
arch/arm/boot/dts/ti/omap/dra76x-mmc-iodelay.dtsi-201- 0x68c A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC3_CMD_OUT */
--
arch/arm/boot/dts/ti/omap/dra76x-mmc-iodelay.dtsi=218= mmc3_iodelay_sdr50_conf: mmc3_iodelay_sdr50_conf {
--
arch/arm/boot/dts/ti/omap/dra76x-mmc-iodelay.dtsi-222- 0x684 A_DELAY_PS(122) G_DELAY_PS(0) /* CFG_MMC3_CMD_IN */
arch/arm/boot/dts/ti/omap/dra76x-mmc-iodelay.dtsi:223: 0x688 A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC3_CMD_OEN */
arch/arm/boot/dts/ti/omap/dra76x-mmc-iodelay.dtsi-224- 0x68c A_DELAY_PS(0) G_DELAY_PS(0) /* CFG_MMC3_CMD_OUT */
--
arch/m68k/ifpsp060/fpsp.sa-766- .long 0xfa9cf200,0x0523f200,0x0c23f200,0x08a2f23c
arch/m68k/ifpsp060/fpsp.sa:767: .long 0x44223f80,0x0000f21f,0xd030f227,0x68800a97
arch/m68k/ifpsp060/fpsp.sa-768- .long 0x80000000,0xf2009000,0xf21f4820,0x60ff0000
--
arch/m68k/ifpsp060/fpsp.sa-863- .long 0xc0fb997d,0xd6a20000,0x00003ffe,0x0000b110
arch/m68k/ifpsp060/fpsp.sa:864: .long 0x688aebdc,0x6f6a0000,0x00003ffe,0x0000b5bc
arch/m68k/ifpsp060/fpsp.sa-865- .long 0xc49059ec,0xc4b00000,0x00003ffe,0x0000ba44
--
arch/m68k/ifpsp060/fpsp.sa-1177- .long 0x0000000c,0x201ff200,0x0080f23c,0x44a24000
arch/m68k/ifpsp060/fpsp.sa:1178: .long 0x0000222e,0xff5cf22e,0x6880ff84,0xb3aeff84
arch/m68k/ifpsp060/fpsp.sa-1179- .long 0xf2009000,0xf22e4820,0xff8460ff,0x00001eb0
--
arch/m68k/ifpsp060/fpsp.sa-1340- .long 0x4828ff90,0xf227e00c,0xf2104823,0xf23a48a3
arch/m68k/ifpsp060/fpsp.sa:1341: .long 0xf6c8f200,0x0100f200,0x0923f22e,0x6880ff84
arch/m68k/ifpsp060/fpsp.sa-1342- .long 0xf2000980,0xf2000880,0xf23a54a3,0xf6ccf23a
--
arch/m68k/ifpsp060/fpsp.sa-1350- .long 0xf648f200,0x04a2f200,0x00a0f227,0xe00cf200
arch/m68k/ifpsp060/fpsp.sa:1351: .long 0x0400f200,0x0023f22e,0x6880ff84,0xf2000080
arch/m68k/ifpsp060/fpsp.sa-1352- .long 0xf20004a3,0xf23a5580,0xf660f23a,0x5500f662
--
crypto/blowfish_common.c=34=static const u32 bf_sbox[256 * 4] = {
--
crypto/blowfish_common.c-82- 0x8ff6e2fb, 0xf2122b64, 0x8888b812, 0x900df01c,
crypto/blowfish_common.c:83: 0x4fad5ea0, 0x688fc31c, 0xd1cff191, 0xb3a8c1ad,
crypto/blowfish_common.c-84- 0x2f2f2218, 0xbe0e1777, 0xea752dfe, 0x8b021fa1,
--
crypto/cast5_generic.c=91=static const u32 s6[256] = {
--
crypto/cast5_generic.c-110- 0x80226dae, 0xc340a4a3, 0xdf7e9c09, 0xa694a807, 0x5b7c5ecc,
crypto/cast5_generic.c:111: 0x221db3a6, 0x9a69a02f, 0x68818a54,
crypto/cast5_generic.c-112- 0xceb2296f, 0x53c0843a, 0xfe893655, 0x25bfe68a, 0xb4628abc,
--
crypto/cast6_generic.c=34=static const u32 Tm[24][8] = {
--
crypto/cast6_generic.c-69- { 0x3e47a721, 0xad2192c2, 0x1bfb7e63, 0x8ad56a04, 0xf9af55a5,
crypto/cast6_generic.c:70: 0x68894146, 0xd7632ce7, 0x463d1888 } ,
crypto/cast6_generic.c-71- { 0xb5170429, 0x23f0efca, 0x92cadb6b, 0x01a4c70c, 0x707eb2ad,
--
crypto/streebog_generic.c=152=static const unsigned long long Ax[8][256] = {
--
crypto/streebog_generic.c-192- 0x6d2193ede4821537ULL, 0xfcf639494190e3acULL, 0x7c3b228621f1c57eULL,
crypto/streebog_generic.c:193: 0xfb16ac2b0494b0c0ULL, 0xbf7e529a3745d7f9ULL, 0x6881b6a32e3f7c73ULL,
crypto/streebog_generic.c-194- 0xca78d2bad9b8e733ULL, 0xbbfe2fc2342aa3a9ULL, 0x0dbddffecc6381e4ULL,
--
crypto/wp512.c=228=static const u64 C2[256] = {
--
crypto/wp512.c-262- 0x1df480803a8074baULL, 0x6127bebec2be997cULL, 0x87ebcdcd13cd26deULL,
crypto/wp512.c:263: 0x68893434d034bde4ULL, 0x903248483d487a75ULL, 0xe354ffffdbffab24ULL,
crypto/wp512.c-264- 0xf48d7a7af57af78fULL, 0x3d6490907a90f4eaULL, 0xbe9d5f5f615fc23eULL,
--
drivers/clk/renesas/clk-emev2.c-20-#define STI_RSTCTRL 0x124
drivers/clk/renesas/clk-emev2.c:21:#define STI_CLKSEL 0x688
drivers/clk/renesas/clk-emev2.c-22-
--
drivers/dma/k3dma.c-41-#define INT_ERR2_RAW 0x618
drivers/dma/k3dma.c:42:#define CH_PRI 0x688
drivers/dma/k3dma.c-43-#define CH_STAT 0x690
--
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c=1131=static const u16 amdgpu_unsupported_pciidlist[] = {
--
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c-1414- 0x6859,
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c:1415: 0x6880,
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c:1416: 0x6888,
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c:1417: 0x6889,
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c:1418: 0x688A,
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c:1419: 0x688C,
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c:1420: 0x688D,
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c-1421- 0x6898,
--
drivers/gpu/drm/amd/include/asic_reg/mmhub/mmhub_1_7_offset.h-1068-// addressBlock: mmhub_dagb_dagbdec4
drivers/gpu/drm/amd/include/asic_reg/mmhub/mmhub_1_7_offset.h:1069:// base address: 0x68800
drivers/gpu/drm/amd/include/asic_reg/mmhub/mmhub_1_7_offset.h-1070-#define regDAGB4_RDCLI0 0x0200
--
drivers/gpu/drm/amd/include/asic_reg/mmhub/mmhub_9_4_1_offset.h-1050-// addressBlock: mmhub_dagb_dagbdec4
drivers/gpu/drm/amd/include/asic_reg/mmhub/mmhub_9_4_1_offset.h:1051:// base address: 0x68800
drivers/gpu/drm/amd/include/asic_reg/mmhub/mmhub_9_4_1_offset.h-1052-#define mmDAGB4_RDCLI0 0x0200
--
drivers/gpu/drm/bridge/analogix/analogix_dp_reg.h-78-#define ANALOGIX_DP_LANE_COUNT_SET 0x684
drivers/gpu/drm/bridge/analogix/analogix_dp_reg.h:79:#define ANALOGIX_DP_TRAINING_PTN_SET 0x688
drivers/gpu/drm/bridge/analogix/analogix_dp_reg.h-80-#define ANALOGIX_DP_LN0_LINK_TRAINING_CTL 0x68C
--
drivers/gpu/drm/bridge/tc358767.c=1957=static bool tc_readable_reg(struct device *dev, unsigned int reg)
--
drivers/gpu/drm/bridge/tc358767.c-2082- case 0x684:
drivers/gpu/drm/bridge/tc358767.c:2083: case 0x688:
drivers/gpu/drm/bridge/tc358767.c-2084- case DP0_AUXSTATUS:
--
drivers/gpu/drm/i915/display/intel_pfit_regs.h-43-#define _PFA_CTL_1 0x68080
drivers/gpu/drm/i915/display/intel_pfit_regs.h:44:#define _PFB_CTL_1 0x68880
drivers/gpu/drm/i915/display/intel_pfit_regs.h-45-#define PF_CTL(pipe) _MMIO_PIPE(pipe, _PFA_CTL_1, _PFB_CTL_1)
--
drivers/gpu/drm/i915/display/intel_pfit_regs.h-55-#define _PFA_WIN_SZ 0x68074
drivers/gpu/drm/i915/display/intel_pfit_regs.h:56:#define _PFB_WIN_SZ 0x68874
drivers/gpu/drm/i915/display/intel_pfit_regs.h-57-#define PF_WIN_SZ(pipe) _MMIO_PIPE(pipe, _PFA_WIN_SZ, _PFB_WIN_SZ)
--
drivers/gpu/drm/i915/display/intel_pfit_regs.h-63-#define _PFA_WIN_POS 0x68070
drivers/gpu/drm/i915/display/intel_pfit_regs.h:64:#define _PFB_WIN_POS 0x68870
drivers/gpu/drm/i915/display/intel_pfit_regs.h-65-#define PF_WIN_POS(pipe) _MMIO_PIPE(pipe, _PFA_WIN_POS, _PFB_WIN_POS)
--
drivers/gpu/drm/i915/display/intel_pfit_regs.h-71-#define _PFA_VSCALE 0x68084
drivers/gpu/drm/i915/display/intel_pfit_regs.h:72:#define _PFB_VSCALE 0x68884
drivers/gpu/drm/i915/display/intel_pfit_regs.h-73-#define PF_VSCALE(pipe) _MMIO_PIPE(pipe, _PFA_VSCALE, _PFB_VSCALE)
--
drivers/gpu/drm/i915/display/intel_pfit_regs.h-75-#define _PFA_HSCALE 0x68090
drivers/gpu/drm/i915/display/intel_pfit_regs.h:76:#define _PFB_HSCALE 0x68890
drivers/gpu/drm/i915/display/intel_pfit_regs.h-77-#define PF_HSCALE(pipe) _MMIO_PIPE(pipe, _PFA_HSCALE, _PFB_HSCALE)
--
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/gf100.fuc3.h=920=static uint32_t gf100_pmu_code[] = {
--
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/gf100.fuc3.h-1151- 0x80b6100b,
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/gf100.fuc3.h:1152: 0x6886b158,
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/gf100.fuc3.h-1153- 0xf01bf402,
--
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/gt215.fuc3.h=920=static uint32_t gt215_pmu_code[] = {
--
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/gt215.fuc3.h-1151- 0x80b6100b,
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/gt215.fuc3.h:1152: 0x6886b158,
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/gt215.fuc3.h-1153- 0xf01bf402,
--
drivers/gpu/drm/radeon/avivod.h-37-
drivers/gpu/drm/radeon/avivod.h:38:#define D2CRTC_CONTROL 0x6880
drivers/gpu/drm/radeon/avivod.h-39-#define D2CRTC_STATUS 0x689c
--
drivers/gpu/drm/radeon/r500_reg.h-503-
drivers/gpu/drm/radeon/r500_reg.h:504:#define AVIVO_D2CRTC_CONTROL 0x6880
drivers/gpu/drm/radeon/r500_reg.h:505:#define AVIVO_D2CRTC_BLANK_CONTROL 0x6884
drivers/gpu/drm/radeon/r500_reg.h:506:#define AVIVO_D2CRTC_INTERLACE_CONTROL 0x6888
drivers/gpu/drm/radeon/r500_reg.h:507:#define AVIVO_D2CRTC_INTERLACE_STATUS 0x688c
drivers/gpu/drm/radeon/r500_reg.h-508-#define AVIVO_D2CRTC_STATUS_POSITION 0x68a0
--
drivers/gpu/drm/radeon/sumod.h-198-# define SCLK_FSTATE_3_VLD (1 << 31)
drivers/gpu/drm/radeon/sumod.h:199:#define CG_SCLK_DPM_CTRL_2 0x688
drivers/gpu/drm/radeon/sumod.h-200-#define CG_GCOOR 0x68c
--
drivers/hwmon/intel-m10-bmc-hwmon.c=414=static const struct m10bmc_sdata n6000bmc_curr_tbl[] = {
--
drivers/hwmon/intel-m10-bmc-hwmon.c-423- { 0x678, 0x67c, 0x680, 0x0, 0x0, 1, "CVL Non Core Rails Inlet Current" },
drivers/hwmon/intel-m10-bmc-hwmon.c:424: { 0x688, 0x68c, 0x690, 0x0, 0x0, 1, "MAX10 & Board CLK PWR 3V3 Inlet Current" },
drivers/hwmon/intel-m10-bmc-hwmon.c-425- { 0x698, 0x0, 0x0, 0x0, 0x0, 1, "CVL Core Voltage Rail Current" },
--
drivers/hwtracing/coresight/coresight-etm4x.h-94-#define TRCCIDCCTLR1 0x684
drivers/hwtracing/coresight/coresight-etm4x.h:95:#define TRCVMIDCCTLR0 0x688
drivers/hwtracing/coresight/coresight-etm4x.h-96-#define TRCVMIDCCTLR1 0x68C
--
drivers/media/i2c/imx355.c=189=static const struct cci_reg_sequence imx355_global_regs[] = {
--
drivers/media/i2c/imx355.c-234- { CCI_REG8(0x68a9), 0xff },
drivers/media/i2c/imx355.c:235: { CCI_REG8(0x6888), 0x00 },
drivers/media/i2c/imx355.c:236: { CCI_REG8(0x6889), 0x00 },
drivers/media/i2c/imx355.c-237- { CCI_REG8(0x68b0), 0x00 },
--
drivers/media/rc/imon.c=1398=static void imon_pad_to_keys(struct imon_context *ictx, unsigned char *buf)
--
drivers/media/rc/imon.c-1464- * 0x68nnnnB7 to 0x6AnnnnB7, the left mouse button generates
drivers/media/rc/imon.c:1465: * 0x688301b7 and the right one 0x688481b7. All other keys generate
drivers/media/rc/imon.c-1466- * 0x2nnnnnnn. Position coordinate is encoded in buf[1] and buf[2] with
--
drivers/media/rc/keymaps/rc-imon-pad.c=17=static struct rc_map_table imon_pad[] = {
--
drivers/media/rc/keymaps/rc-imon-pad.c-110- { 0x01020080, BTN_RIGHT },
drivers/media/rc/keymaps/rc-imon-pad.c:111: { 0x688301b7, BTN_LEFT },
drivers/media/rc/keymaps/rc-imon-pad.c:112: { 0x688481b7, BTN_RIGHT },
drivers/media/rc/keymaps/rc-imon-pad.c-113-
--
drivers/memory/tegra/tegra194.c=12=static const struct tegra_mc_client tegra194_mc_clients[] = {
--
drivers/memory/tegra/tegra194.c-968- .sid = {
drivers/memory/tegra/tegra194.c:969: .override = 0x688,
drivers/memory/tegra/tegra194.c-970- .security = 0x68c,
--
drivers/memory/tegra/tegra210-emc.h-437-#define EMC_PMACRO_OB_DDLL_LONG_DQS_RANK0_1 0x684
drivers/memory/tegra/tegra210-emc.h:438:#define EMC_PMACRO_OB_DDLL_LONG_DQS_RANK0_2 0x688
drivers/memory/tegra/tegra210-emc.h-439-#define EMC_PMACRO_OB_DDLL_LONG_DQS_RANK0_3 0x68c
--
drivers/mfd/cs47l15-tables.c=48=static const struct reg_default cs47l15_reg_default[] = {
--
drivers/mfd/cs47l15-tables.c-256- { 0x00000687, 0x0080 }, /* R1671 (0x687) - OUT1LMIX Input 4 Volume */
drivers/mfd/cs47l15-tables.c:257: { 0x00000688, 0x0000 }, /* R1672 (0x688) - OUT1RMIX Input 1 Source */
drivers/mfd/cs47l15-tables.c-258- { 0x00000689, 0x0080 }, /* R1673 (0x689) - OUT1RMIX Input 1 Volume */
--
drivers/mfd/cs47l35-tables.c=64=static const struct reg_default cs47l35_reg_default[] = {
--
drivers/mfd/cs47l35-tables.c-263- { 0x00000687, 0x0080 }, /* R1671 (0x687) - OUT1LMIX Input 4 Volume */
drivers/mfd/cs47l35-tables.c:264: { 0x00000688, 0x0000 }, /* R1672 (0x688) - OUT1RMIX Input 1 Source */
drivers/mfd/cs47l35-tables.c-265- { 0x00000689, 0x0080 }, /* R1673 (0x689) - OUT1RMIX Input 1 Volume */
--
drivers/mfd/cs47l85-tables.c=354=static const struct reg_default cs47l85_reg_default[] = {
--
drivers/mfd/cs47l85-tables.c-669- { 0x00000687, 0x0080 }, /* R1671 (0x687) - OUT1LMIX Input 4 Volume */
drivers/mfd/cs47l85-tables.c:670: { 0x00000688, 0x0000 }, /* R1672 (0x688) - OUT1RMIX Input 1 Source */
drivers/mfd/cs47l85-tables.c-671- { 0x00000689, 0x0080 }, /* R1673 (0x689) - OUT1RMIX Input 1 Volume */
--
drivers/mfd/cs47l90-tables.c=71=static const struct reg_default cs47l90_reg_default[] = {
--
drivers/mfd/cs47l90-tables.c-380- { 0x00000687, 0x0080 }, /* R1671 (0x687) - OUT1LMIX Input 4 Volume */
drivers/mfd/cs47l90-tables.c:381: { 0x00000688, 0x0000 }, /* R1672 (0x688) - OUT1RMIX Input 1 Source */
drivers/mfd/cs47l90-tables.c-382- { 0x00000689, 0x0080 }, /* R1673 (0x689) - OUT1RMIX Input 1 Volume */
--
drivers/mfd/cs47l92-tables.c=118=static const struct reg_default cs47l92_reg_default[] = {
--
drivers/mfd/cs47l92-tables.c-408- { 0x00000687, 0x0080 }, /* R1671 (0x687) - OUT1LMIX Input 4 Volume */
drivers/mfd/cs47l92-tables.c:409: { 0x00000688, 0x0000 }, /* R1672 (0x688) - OUT1RMIX Input 1 Source */
drivers/mfd/cs47l92-tables.c-410- { 0x00000689, 0x0080 }, /* R1673 (0x689) - OUT1RMIX Input 1 Volume */
--
drivers/net/ethernet/broadcom/bnx2.c=159=static const struct flash_spec flash_table[] =
--
drivers/net/ethernet/broadcom/bnx2.c-221- /* ATMEL AT45DB011B (buffered flash) */
drivers/net/ethernet/broadcom/bnx2.c:222: {0x2e000003, 0x6e808273, 0x00570081, 0x68848353, 0xaf000400,
drivers/net/ethernet/broadcom/bnx2.c-223- BUFFERED_FLAGS, BUFFERED_FLASH_PAGE_BITS, BUFFERED_FLASH_PAGE_SIZE,
--
drivers/net/ethernet/broadcom/bnx2.c-236- /* Ateml Expansion entry 1110 */
drivers/net/ethernet/broadcom/bnx2.c:237: {0x37000001, 0x76808273, 0x00570081, 0x68848353, 0xaf000400,
drivers/net/ethernet/broadcom/bnx2.c-238- BUFFERED_FLAGS, BUFFERED_FLASH_PAGE_BITS, BUFFERED_FLASH_PAGE_SIZE,
--
drivers/net/ethernet/broadcom/bnx2.c-241- /* ATMEL AT45DB021B (buffered flash) */
drivers/net/ethernet/broadcom/bnx2.c:242: {0x3f000003, 0x7e808273, 0x00570081, 0x68848353, 0xaf000400,
drivers/net/ethernet/broadcom/bnx2.c-243- BUFFERED_FLAGS, BUFFERED_FLASH_PAGE_BITS, BUFFERED_FLASH_PAGE_SIZE,
--
drivers/net/ethernet/broadcom/bnx2.c=7059=bnx2_get_regs(struct net_device *dev, struct ethtool_regs *regs, void *_p)
--
drivers/net/ethernet/broadcom/bnx2.c-7085- 0x6800, 0x6848, 0x684c, 0x6860,
drivers/net/ethernet/broadcom/bnx2.c:7086: 0x6888, 0x6910, 0x8000
drivers/net/ethernet/broadcom/bnx2.c-7087- };
--
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c=686=static void bnx2x_ets_e3b0_pbf_disabled(const struct link_params *params)
--
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c-699- if (port)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c:700: /* 0x688 (|011|0 10|00 1|000) */
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c:701: REG_WR(bp, PBF_REG_ETS_ARB_PRIORITY_CLIENT_P1 , 0x688);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c-702- else
--
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c-707- if (port)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c:708: /* 0x688 (|011|0 10|00 1|000)*/
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c:709: REG_WR(bp, PBF_REG_ETS_ARB_CLIENT_CREDIT_MAP_P1, 0x688);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c-710- else
--
drivers/net/ethernet/cavium/thunder/thunder_bgx.h-82-#define BGX_CMRX_TX_STAT16 0x680
drivers/net/ethernet/cavium/thunder/thunder_bgx.h:83:#define BGX_CMRX_TX_STAT17 0x688
drivers/net/ethernet/cavium/thunder/thunder_bgx.h-84-#define BGX_CMR_TX_LMACS 0x1000
--
drivers/net/ethernet/realtek/r8169_main.c=99=static const struct rtl_chip_info {
--
drivers/net/ethernet/realtek/r8169_main.c-122- { 0x7cf, 0x689, RTL_GIGA_MAC_VER_64, "RTL8125D", FIRMWARE_8125D_2 },
drivers/net/ethernet/realtek/r8169_main.c:123: { 0x7cf, 0x688, RTL_GIGA_MAC_VER_64, "RTL8125D", FIRMWARE_8125D_1 },
drivers/net/ethernet/realtek/r8169_main.c-124-
--
drivers/net/usb/kalmia.c=350=static const struct usb_device_id products[] = {
--
drivers/net/usb/kalmia.c-353- /* The stick switched into modem (by e.g. usb_modeswitch): */
drivers/net/usb/kalmia.c:354: { USB_DEVICE(0x04e8, 0x6889),
drivers/net/usb/kalmia.c-355- .driver_info = (unsigned long) &kalmia_info, },
--
drivers/net/usb/lan78xx.h-746-#define NS2_ICMPV6_ADDR1_1 (0x684)
drivers/net/usb/lan78xx.h:747:#define NS2_ICMPV6_ADDR1_2 (0x688)
drivers/net/usb/lan78xx.h-748-#define NS2_ICMPV6_ADDR1_3 (0x68C)
--
drivers/net/wireless/ath/ath9k/ar9003_2p2_initvals.h=535=static const u32 ar9300Modes_high_power_tx_gain_table_2p2[][5] = {
--
drivers/net/wireless/ath/ath9k/ar9003_2p2_initvals.h-595- {0x0000a5d4, 0x648a4432, 0x648a4432, 0x4e801ce3, 0x4e801ce3},
drivers/net/wireless/ath/ath9k/ar9003_2p2_initvals.h:596: {0x0000a5d8, 0x688a4434, 0x688a4434, 0x52801ce5, 0x52801ce5},
drivers/net/wireless/ath/ath9k/ar9003_2p2_initvals.h-597- {0x0000a5dc, 0x6c8a6434, 0x6c8a6434, 0x56801ce9, 0x56801ce9},
--
drivers/net/wireless/ath/ath9k/ar9580_1p0_initvals.h=463=static const u32 ar9580_1p0_high_power_tx_gain_table[][5] = {
--
drivers/net/wireless/ath/ath9k/ar9580_1p0_initvals.h-523- {0x0000a5d4, 0x648a4432, 0x648a4432, 0x4e801ce3, 0x4e801ce3},
drivers/net/wireless/ath/ath9k/ar9580_1p0_initvals.h:524: {0x0000a5d8, 0x688a4434, 0x688a4434, 0x52801ce5, 0x52801ce5},
drivers/net/wireless/ath/ath9k/ar9580_1p0_initvals.h-525- {0x0000a5dc, 0x6c8a6434, 0x6c8a6434, 0x56801ce9, 0x56801ce9},
--
drivers/net/wireless/ath/carl9170/hw.h-182-#define AR9170_MAC_REG_MISC_684 (AR9170_MAC_REG_BASE + 0x684)
drivers/net/wireless/ath/carl9170/hw.h:183:#define AR9170_MAC_REG_TX_UNDERRUN (AR9170_MAC_REG_BASE + 0x688)
drivers/net/wireless/ath/carl9170/hw.h-184-
--
drivers/net/wireless/broadcom/b43/b43.h-157-#define B43_MMIO_IFSSLOT 0x684 /* Interframe slot time */
drivers/net/wireless/broadcom/b43/b43.h:158:#define B43_MMIO_IFSCTL 0x688 /* Interframe space control */
drivers/net/wireless/broadcom/b43/b43.h-159-#define B43_MMIO_IFSSTAT 0x690
--
drivers/net/wireless/broadcom/b43legacy/xmit.c=644=return;
--
drivers/net/wireless/broadcom/b43legacy/xmit.c-647- /* FIXME kill magic */
drivers/net/wireless/broadcom/b43legacy/xmit.c:648: b43legacy_write16(dev, 0x688,
drivers/net/wireless/broadcom/b43legacy/xmit.c:649: b43legacy_read16(dev, 0x688) | 0x4);
drivers/net/wireless/broadcom/b43legacy/xmit.c-650-
--
drivers/net/wireless/broadcom/brcm80211/brcmsmac/d11.h=107=struct d11regs {
--
drivers/net/wireless/broadcom/brcm80211/brcmsmac/d11.h-370- u16 PAD; /* 0x686 */
drivers/net/wireless/broadcom/brcm80211/brcmsmac/d11.h:371: u16 ifs_ctl; /* 0x688 */
drivers/net/wireless/broadcom/brcm80211/brcmsmac/d11.h-372- u16 PAD[0x3]; /* 0x68a - 0x68F */
--
drivers/net/wireless/mediatek/mt76/mt7915/mmio.c=197=static const u32 mt7916_offs[] = {
--
drivers/net/wireless/mediatek/mt76/mt7915/mmio.c-253- [MIB_DR11] = 0x574,
drivers/net/wireless/mediatek/mt76/mt7915/mmio.c:254: [MIB_MB_SDR0] = 0x688,
drivers/net/wireless/mediatek/mt76/mt7915/mmio.c-255- [MIB_MB_SDR1] = 0x690,
--
drivers/net/wireless/mediatek/mt76/mt792x_regs.h-141-
drivers/net/wireless/mediatek/mt76/mt792x_regs.h:142:#define MT_MIB_MB_BSDR0(_band) MT_WF_MIB(_band, 0x688)
drivers/net/wireless/mediatek/mt76/mt792x_regs.h-143-#define MT_MIB_RTS_COUNT_MASK GENMASK(15, 0)
--
drivers/net/wireless/mediatek/mt76/mt792x_regs.h-374-#define MT_WFDMA0_RX_RING1_EXT_CTRL MT_WFDMA0(0x684)
drivers/net/wireless/mediatek/mt76/mt792x_regs.h:375:#define MT_WFDMA0_RX_RING2_EXT_CTRL MT_WFDMA0(0x688)
drivers/net/wireless/mediatek/mt76/mt792x_regs.h-376-#define MT_WFDMA0_RX_RING3_EXT_CTRL MT_WFDMA0(0x68c)
--
drivers/net/wireless/realtek/rtw89/rtw8852c_table.c=29594=static const struct rtw89_reg2_def rtw89_8852c_phy_nctl_regs[] = {
--
drivers/net/wireless/realtek/rtw89/rtw8852c_table.c-30870- {0x8a4c, 0x4380e4a9},
drivers/net/wireless/realtek/rtw89/rtw8852c_table.c:30871: {0x8a50, 0x68806340},
drivers/net/wireless/realtek/rtw89/rtw8852c_table.c-30872- {0x8a54, 0x0bac4300},
--
drivers/net/wireless/realtek/rtw89/rtw8852c_table.c-30879- {0x8a70, 0x4380e4a9},
drivers/net/wireless/realtek/rtw89/rtw8852c_table.c:30880: {0x8a74, 0x68816340},
drivers/net/wireless/realtek/rtw89/rtw8852c_table.c-30881- {0x8a78, 0x0baa4300},
--
drivers/net/wireless/realtek/rtw89/rtw8852c_table.c-30884- {0x8a84, 0x4380e4a9},
drivers/net/wireless/realtek/rtw89/rtw8852c_table.c:30885: {0x8a88, 0x68826341},
drivers/net/wireless/realtek/rtw89/rtw8852c_table.c-30886- {0x8a8c, 0x0baa4300},
--
drivers/phy/cadence/phy-cadence-sierra.c=1697=static const struct cdns_reg_pairs sgmii_100_no_ssc_plllc1_opt3_ln_regs[] = {
drivers/phy/cadence/phy-cadence-sierra.c:1698: {0x688E, SIERRA_DET_STANDEC_D_PREG},
drivers/phy/cadence/phy-cadence-sierra.c-1699- {0x0004, SIERRA_PSC_LN_IDLE_PREG},
--
drivers/phy/qualcomm/phy-qcom-qmp-qserdes-lalb-v8.h-426-#define QSERDES_V8_LALB_CDR_FASTLOCK_CP_CUR_PLL_RATE3 0x684
drivers/phy/qualcomm/phy-qcom-qmp-qserdes-lalb-v8.h:427:#define QSERDES_V8_LALB_CDR_FASTLOCK_CP_CUR_PLL_RATE4 0x688
drivers/phy/qualcomm/phy-qcom-qmp-qserdes-lalb-v8.h-428-#define QSERDES_V8_LALB_DEBUG_BUS_SEL 0x68c
--
drivers/staging/media/ipu7/ipu7-isys-csi2-regs.h-624-#define CORE_DIG_DLANE_2_RW_CFG_2 0x6804
drivers/staging/media/ipu7/ipu7-isys-csi2-regs.h:625:#define CORE_DIG_DLANE_2_RW_LP_0 0x6880
drivers/staging/media/ipu7/ipu7-isys-csi2-regs.h:626:#define CORE_DIG_DLANE_2_RW_LP_1 0x6882
drivers/staging/media/ipu7/ipu7-isys-csi2-regs.h:627:#define CORE_DIG_DLANE_2_RW_LP_2 0x6884
drivers/staging/media/ipu7/ipu7-isys-csi2-regs.h-628-#define CORE_DIG_DLANE_2_R_LP_0 0x68a0
--
drivers/usb/gadget/udc/tegra-xudc.c-148-#define SSPX_CORE_CNT0_PING_TBURST(x) ((x) & SSPX_CORE_CNT0_PING_TBURST_MASK)
drivers/usb/gadget/udc/tegra-xudc.c:149:#define SSPX_CORE_CNT30 0x688
drivers/usb/gadget/udc/tegra-xudc.c-150-#define SSPX_CORE_CNT30_LMPITP_TIMER_MASK GENMASK(19, 0)
--
drivers/usb/serial/option.c=47=static void option_instat_callback(struct urb *urb);
--
drivers/usb/serial/option.c-490-#define SAMSUNG_VENDOR_ID 0x04e8
drivers/usb/serial/option.c:491:#define SAMSUNG_PRODUCT_GT_B3730 0x6889
drivers/usb/serial/option.c-492-
--
drivers/usb/serial/sierra.c=175=static const struct usb_device_id id_table[] = {
--
drivers/usb/serial/sierra.c-237- /* Sierra Wireless C885 */
drivers/usb/serial/sierra.c:238: { USB_DEVICE_AND_INTERFACE_INFO(0x1199, 0x6880, 0xFF, 0xFF, 0xFF)},
drivers/usb/serial/sierra.c-239- /* Sierra Wireless C888, Air Card 501, USB 303, USB 304 */
--
drivers/video/fbdev/nvidia/nv_hw.c=946=void NVLoadStateExt(struct nvidia_par *par, RIVA_HW_STATE * state)
--
drivers/video/fbdev/nvidia/nv_hw.c-1210- NV_WR32(par->PGRAPH, 0x684, par->FbMapSize - 1);
drivers/video/fbdev/nvidia/nv_hw.c:1211: NV_WR32(par->PGRAPH, 0x688, par->FbMapSize - 1);
drivers/video/fbdev/nvidia/nv_hw.c-1212-
--
fs/nls/nls_cp932.c=602=static const wchar_t c2u_94[256] = {
--
fs/nls/nls_cp932.c-617- 0x5EC3,0x62DD,0x6392,0x6557,0x676F,0x76C3,0x724C,0x80CC,/* 0x70-0x77 */
fs/nls/nls_cp932.c:618: 0x80BA,0x8F29,0x914D,0x500D,0x57F9,0x5A92,0x6885,0x0000,/* 0x78-0x7F */
fs/nls/nls_cp932.c-619-
--
fs/nls/nls_cp932.c=710=static const wchar_t c2u_97[256] = {
--
fs/nls/nls_cp932.c-735- 0x865C,0x4E86,0x4EAE,0x50DA,0x4E21,0x51CC,0x5BEE,0x6599,/* 0xB8-0xBF */
fs/nls/nls_cp932.c:736: 0x6881,0x6DBC,0x731F,0x7642,0x77AD,0x7A1C,0x7CE7,0x826F,/* 0xC0-0xC7 */
fs/nls/nls_cp932.c-737- 0x8AD2,0x907C,0x91CF,0x9675,0x9818,0x529B,0x7DD1,0x502B,/* 0xC8-0xCF */
--
fs/nls/nls_cp932.c=962=static const wchar_t c2u_9E[256] = {
--
fs/nls/nls_cp932.c-979-
fs/nls/nls_cp932.c:980: 0x68B3,0x682B,0x6859,0x6863,0x6877,0x687F,0x689F,0x688F,/* 0x80-0x87 */
fs/nls/nls_cp932.c:981: 0x68AD,0x6894,0x689D,0x689B,0x6883,0x6AAE,0x68B9,0x6874,/* 0x88-0x8F */
fs/nls/nls_cp932.c:982: 0x68B5,0x68A0,0x68BA,0x690F,0x688D,0x687E,0x6901,0x68CA,/* 0x90-0x97 */
fs/nls/nls_cp932.c-983- 0x6908,0x68D8,0x6922,0x6926,0x68E1,0x690C,0x68CD,0x68D4,/* 0x98-0x9F */
--
fs/nls/nls_cp936.c=808=static const wchar_t c2u_97[256] = {
--
fs/nls/nls_cp936.c-818- 0x686F,0x6870,0x6871,0x6872,0x6873,0x6875,0x6878,0x6879,/* 0x48-0x4F */
fs/nls/nls_cp936.c:819: 0x687A,0x687B,0x687C,0x687D,0x687E,0x687F,0x6880,0x6882,/* 0x50-0x57 */
fs/nls/nls_cp936.c:820: 0x6884,0x6887,0x6888,0x6889,0x688A,0x688B,0x688C,0x688D,/* 0x58-0x5F */
fs/nls/nls_cp936.c:821: 0x688E,0x6890,0x6891,0x6892,0x6894,0x6895,0x6896,0x6898,/* 0x60-0x67 */
fs/nls/nls_cp936.c-822- 0x6899,0x689A,0x689B,0x689C,0x689D,0x689E,0x689F,0x68A0,/* 0x68-0x6F */
--
fs/nls/nls_cp936.c=1634=static const wchar_t c2u_B0[256] = {
--
fs/nls/nls_cp936.c-1665- 0x62CC,0x4F34,0x74E3,0x534A,0x529E,0x7ECA,0x90A6,0x5E2E,/* 0xE8-0xEF */
fs/nls/nls_cp936.c:1666: 0x6886,0x699C,0x8180,0x7ED1,0x68D2,0x78C5,0x868C,0x9551,/* 0xF0-0xF7 */
fs/nls/nls_cp936.c-1667- 0x508D,0x8C24,0x82DE,0x80DE,0x5305,0x8912,0x5265,0x0000,/* 0xF8-0xFF */
--
fs/nls/nls_cp936.c=2246=static const wchar_t c2u_C1[256] = {
--
fs/nls/nls_cp936.c-2270- 0x6D9F,0x5E18,0x655B,0x8138,0x94FE,0x604B,0x70BC,0x7EC3,/* 0xB0-0xB7 */
fs/nls/nls_cp936.c:2271: 0x7CAE,0x51C9,0x6881,0x7CB1,0x826F,0x4E24,0x8F86,0x91CF,/* 0xB8-0xBF */
fs/nls/nls_cp936.c-2272- 0x667E,0x4EAE,0x8C05,0x64A9,0x804A,0x50DA,0x7597,0x71CE,/* 0xC0-0xC7 */
--
fs/nls/nls_cp936.c=2318=static const wchar_t c2u_C3[256] = {
--
fs/nls/nls_cp936.c-2341- 0x732B,0x8305,0x951A,0x6BDB,0x77DB,0x94C6,0x536F,0x8302,/* 0xA8-0xAF */
fs/nls/nls_cp936.c:2342: 0x5192,0x5E3D,0x8C8C,0x8D38,0x4E48,0x73AB,0x679A,0x6885,/* 0xB0-0xB7 */
fs/nls/nls_cp936.c-2343- 0x9176,0x9709,0x7164,0x6CA1,0x7709,0x5A92,0x9541,0x6BCF,/* 0xB8-0xBF */
--
fs/nls/nls_cp936.c=3650=static const wchar_t c2u_E8[256] = {
--
fs/nls/nls_cp936.c-3680- 0x6832,0x6833,0x6860,0x6861,0x684E,0x6862,0x6844,0x6864,/* 0xE0-0xE7 */
fs/nls/nls_cp936.c:3681: 0x6883,0x681D,0x6855,0x6866,0x6841,0x6867,0x6840,0x683E,/* 0xE8-0xEF */
fs/nls/nls_cp936.c:3682: 0x684A,0x6849,0x6829,0x68B5,0x688F,0x6874,0x6877,0x6893,/* 0xF0-0xF7 */
fs/nls/nls_cp936.c-3683- 0x686B,0x68C2,0x696E,0x68FC,0x691F,0x6920,0x68F9,0x0000,/* 0xF8-0xFF */
--
fs/nls/nls_cp949.c=2672=static const wchar_t c2u_CD[256] = {
--
fs/nls/nls_cp949.c-2700- 0x8F9C,0x932E,0x96C7,0x9867,0x9AD8,0x9F13,0x54ED,0x659B,/* 0xD0-0xD7 */
fs/nls/nls_cp949.c:2701: 0x66F2,0x688F,0x7A40,0x8C37,0x9D60,0x56F0,0x5764,0x5D11,/* 0xD8-0xDF */
fs/nls/nls_cp949.c-2702- 0x6606,0x68B1,0x68CD,0x6EFE,0x7428,0x889E,0x9BE4,0x6C68,/* 0xE0-0xE7 */
--
fs/nls/nls_cp949.c=2960=static const wchar_t c2u_D5[256] = {
--
fs/nls/nls_cp949.c-2988- 0x5FA0,0x840A,0x51B7,0x63A0,0x7565,0x4EAE,0x5006,0x5169,/* 0xD0-0xD7 */
fs/nls/nls_cp949.c:2989: 0x51C9,0x6881,0x6A11,0x7CAE,0x7CB1,0x7CE7,0x826F,0x8AD2,/* 0xD8-0xDF */
fs/nls/nls_cp949.c-2990- 0x8F1B,0x91CF,0x4FB6,0x5137,0x52F5,0x5442,0x5EEC,0x616E,/* 0xE0-0xE7 */
--
fs/nls/nls_cp949.c=3068=static const wchar_t c2u_D8[256] = {
--
fs/nls/nls_cp949.c-3096- 0x671B,0x7DB2,0x7F54,0x8292,0x832B,0x83BD,0x8F1E,0x9099,/* 0xD0-0xD7 */
fs/nls/nls_cp949.c:3097: 0x57CB,0x59B9,0x5A92,0x5BD0,0x6627,0x679A,0x6885,0x6BCF,/* 0xD8-0xDF */
fs/nls/nls_cp949.c-3098- 0x7164,0x7F75,0x8CB7,0x8CE3,0x9081,0x9B45,0x8108,0x8C8A,/* 0xE0-0xE7 */
--
fs/nls/nls_cp950.c=589=static const wchar_t c2u_B1[256] = {
--
fs/nls/nls_cp950.c-618- 0x659B,0x65AC,0x65CF,0x65CB,0x65CC,0x65CE,0x665D,0x665A,/* 0xD8-0xDF */
fs/nls/nls_cp950.c:619: 0x6664,0x6668,0x6666,0x665E,0x66F9,0x52D7,0x671B,0x6881,/* 0xE0-0xE7 */
fs/nls/nls_cp950.c-620- 0x68AF,0x68A2,0x6893,0x68B5,0x687F,0x6876,0x68B1,0x68A7,/* 0xE8-0xEF */
fs/nls/nls_cp950.c:621: 0x6897,0x68B0,0x6883,0x68C4,0x68AD,0x6886,0x6885,0x6894,/* 0xF0-0xF7 */
fs/nls/nls_cp950.c:622: 0x689D,0x68A8,0x689F,0x68A1,0x6882,0x6B32,0x6BBA,0x0000,/* 0xF8-0xFF */
fs/nls/nls_cp950.c-623-};
--
]
|
| 40/4 |
2026/09/21 00:42 |
llm |
codeexpert |
0m
Model:
Tokens:
input: 29414
output: 34
thoughts: 1245
Thoughts: **Analyzing `mm_struct` Layout with Available Tools**
Okay, so I'm trying to figure out why `codesearch-struct-layout` is only returning the outer `mm_struct` and not the members within the anonymous inner struct. Let's see, it shows the size of `mm_struct` as 13824 bits, which is 1728 bytes. The issue is likely that anonymous inner struct, `struct { ... } __randomize_layout;`. Since it's unnamed, the tool likely treats it as a single unnamed field. Hmm, is there a way to actually get the layout of *those* members? Can I query `codesearch-struct-layout` for a specific member name or the struct name? No, I see that the `Name` field in the results is the struct/union name itself.
Can I query `codesearch-find-references` with a field of `mm_struct`? The tool declaration says the syntax is `struct_name::field_name`. But wait, does that give me offsets? No, it just finds references.
Alright, what other tools do I have at my disposal? I have `codesearch-dir-index`, `read-file`, `codesearch-file-index`, `codesearch-definition-comment`, `codesearch-definition-source`, `codesearch-find-references`, `codesearch-struct-layout`, `grepper`, `git-log`, `git-show`, `git-blame`, and `set-results`.
Let's look at `codesearch-struct-layout` again. Are there any other structs defined *inside* `mm_struct` or any typedefs that could help? Perhaps I can query for the layout of the members' types? Maybe I can check the members near the end of `mm_struct` to get some hints.
Let's read the source from `include/linux/mm_types.h`, specifically lines 1360-1425. Okay, I see several members defined there, like `atomic_t tlb_flush_pending`, `struct uprobes_state`, and various conditional members based on CONFIG options.
Now, a critical question: Can I determine which config options are *enabled* in the database that `codesearch-struct-layout` is using? That would give me a lot of information. Wait! The tool description of `codesearch-struct-layout` specifically says it's *complete and accurate*! It says it "provides layout of a struct/union (fields, offsets, sizes)" and that if a field isn't in the output, it's not in the struct definition *because of `#ifdefs`*. It also says that if you don't see a field in the output, it is NOT present in the struct definition.
And, crucially, "ContextFile: Source file path that references the entity. It helps to restrict scope of the search, if there are different definitions with the same name in different source files."
So, perhaps if I check `codesearch-struct-layout` on *other* structs, I can infer which configs are enabled. For instance, does `struct uprobes_state` even exist in the current build configuration? Let's try checking `codesearch-struct-layout` for `uprobes_state`! That should give me a good indication.
|
| 41/4 |
2026/09/21 00:42 |
tool |
codesearch-struct-layout |
0m
Args: map[ContextFile:kernel/fork.c Name:uprobes_state]
Results: map[Fields:[map[Name:xol_area OffsetBits:0 SizeBits:64]]]
|
| 42/4 |
2026/09/21 00:42 |
llm |
codeexpert |
0m
Model:
Tokens:
input: 31459
output: 32
thoughts: 29
Thoughts: Here's my take on those thoughts, tailored for an expert audience:
**Examining uProbe State and Work Structure**
Okay, so `uprobes_state` is 64 bits, which works out to 8 bytes. That's a good starting point, and I'm noting that size immediately. Now, let's pivot and take a look at `work_struct`. I want to understand how the system is handling the actual work queueing and execution that relates to those uProbes. Understanding `work_struct` and its interplay with the uProbe state is crucial for identifying potential performance bottlenecks, race conditions, or even just general resource consumption characteristics. I'm going to start by confirming the relationship and look for any interesting size or alignment considerations, especially since we are using 64 bit pointers here.
|
| 43/4 |
2026/09/21 00:42 |
tool |
codesearch-struct-layout |
0m
Args: map[ContextFile:kernel/fork.c Name:work_struct]
Results: map[Fields:[map[Name:data OffsetBits:0 SizeBits:64] map[Name:entry OffsetBits:64 SizeBits:128] map[Name:func OffsetBits:192 SizeBits:64]]]
|
| 44/4 |
2026/09/21 00:42 |
llm |
codeexpert |
0m
Model:
Tokens:
input: 31763
output: 36
thoughts: 155
Thoughts: **Analyzing the `work_struct` Memory Layout**
Okay, so I'm looking at this `work_struct` structure and trying to optimize memory usage, as always. Right now, it's defined as: data is 64 bits (starting at offset 0), then we have entry at 128 bits (offset 64), and finally func is 64 bits (offset 192). That gives us a total size of 256 bits, which translates to 32 bytes. That seems a bit... chunky, doesn't it? I wonder if we can tighten things up here.
Before making any changes, I need to check some kernel configuration options. Let's see... is `CONFIG_IOMMU_MM_DATA` enabled? That could influence how this is used. What about `CONFIG_KSM`? Or maybe `CONFIG_LRU_GEN_WALKS_MMU`? `CONFIG_MM_ID`? `CONFIG_PREEMPT_RT`? And, of course, let's not forget `CONFIG_HUGETLB_PAGE` β that *always* has implications.
Hmm, wait. Let's not get ahead of ourselves. Before I make any assumptions, it's probably best to take a look at the `struct iommu_mm_data` definition itself. That should provide the necessary context. Let's dive into that and see what we can learn.
|
| 45/4 |
2026/09/21 00:42 |
tool |
codesearch-struct-layout |
0m
Args: map[ContextFile:kernel/fork.c Name:iommu_mm_data]
Results: map[Fields:[map[Name:pasid OffsetBits:0 SizeBits:32] map[Name:mm OffsetBits:64 SizeBits:64] map[Name:sva_domains OffsetBits:128 SizeBits:128] map[Name:mm_list_elm OffsetBits:256 SizeBits:128]]]
|
| 46/4 |
2026/09/21 00:42 |
llm |
codeexpert |
0m
Model:
Tokens:
input: 32361
output: 19
thoughts: 140
Thoughts: **My Line of Inquiry**
Okay, so I'm looking at this `struct iommu_mm_data`, and it's definitely present within this specific context. Now, the real question is, how can I reliably test for the presence or absence of a particular `CONFIG` option? I need to figure out the best way to determine if a configuration option like `CONFIG_KSM` or `CONFIG_MM_ID` is defined. This is crucial because these configurations often act as guards, controlling the inclusion of entire structs or specific fields within structs in these C files.
My next step is to pinpoint where these configurations are *actually* used. I need to search the codebase and identify instances where `CONFIG_MM_ID` is referenced. The same goes for other potentially relevant configurations like `CONFIG_LRU_GEN_WALKS_MMU`, `CONFIG_KSM`, `CONFIG_PREEMPT_RT`, `CONFIG_HUGETLB_PAGE`, and `CONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH`. By finding the usage locations, I can then understand how each condition impacts the structure and how it's used. This targeted search is the key to understanding how the `iommu_mm_data` structure and related components are conditionally compiled and configured.
|
| 47/4 |
2026/09/21 00:42 |
tool |
grepper |
0m
Args: map[Expression:CONFIG_MM_ID]
Results: map[Output:include/linux/mm.h=2994=static inline bool folio_maybe_mapped_shared(struct folio *folio)
--
include/linux/mm.h-3006- */
include/linux/mm.h:3007: if (!IS_ENABLED(CONFIG_MM_ID))
include/linux/mm.h-3008- return true;
--
include/linux/mm_types.h=1175=struct mm_struct {
--
include/linux/mm_types.h-1418-#endif /* CONFIG_LRU_GEN_WALKS_MMU */
include/linux/mm_types.h:1419:#ifdef CONFIG_MM_ID
include/linux/mm_types.h-1420- mm_id_t mm_id;
include/linux/mm_types.h:1421:#endif /* CONFIG_MM_ID */
include/linux/mm_types.h-1422- } __randomize_layout;
--
include/linux/rmap.h=109=void anon_vma_init(void); /* create anon_vma_cachep */
include/linux/rmap.h-110-
include/linux/rmap.h:111:#ifdef CONFIG_MM_ID
include/linux/rmap.h-112-static __always_inline void folio_lock_large_mapcount(struct folio *folio)
--
include/linux/rmap.h=227=static __always_inline int folio_sub_return_large_mapcount(struct folio *folio,
--
include/linux/rmap.h-272-#define folio_sub_large_mapcount folio_sub_return_large_mapcount
include/linux/rmap.h:273:#else /* !CONFIG_MM_ID */
include/linux/rmap.h-274-/*
--
include/linux/rmap.h=303=static inline int folio_sub_return_large_mapcount(struct folio *folio,
--
include/linux/rmap.h-307-}
include/linux/rmap.h:308:#endif /* CONFIG_MM_ID */
include/linux/rmap.h-309-
--
kernel/fork.c=589=static inline void mm_free_pgd(struct mm_struct *mm)
--
kernel/fork.c-597-
kernel/fork.c:598:#ifdef CONFIG_MM_ID
kernel/fork.c-599-static DEFINE_IDA(mm_ida);
--
kernel/fork.c=612=static inline void mm_free_id(struct mm_struct *mm)
--
kernel/fork.c-622-}
kernel/fork.c:623:#else /* !CONFIG_MM_ID */
kernel/fork.c-624-static inline int mm_alloc_id(struct mm_struct *mm) { return 0; }
kernel/fork.c=625=static inline void mm_free_id(struct mm_struct *mm) {}
kernel/fork.c:626:#endif /* CONFIG_MM_ID */
kernel/fork.c-627-
--
mm/internal.h=773=static inline void prep_compound_head(struct page *page, unsigned int order)
--
mm/internal.h-780- atomic_set(&folio->_nr_pages_mapped, 0);
mm/internal.h:781: if (IS_ENABLED(CONFIG_MM_ID)) {
mm/internal.h-782- folio->_mm_ids = 0;
--
mm/page_alloc.c=1091=static int free_tail_page_prepare(struct page *head_page, struct page *page)
--
mm/page_alloc.c-1117- }
mm/page_alloc.c:1118: if (IS_ENABLED(CONFIG_MM_ID)) {
mm/page_alloc.c-1119- if (unlikely(folio->_mm_id_mapcount[0] != -1)) {
]
|
| 48/4 |
2026/09/21 00:42 |
llm |
codeexpert |
0m
Model:
Tokens:
input: 33805
output: 30
thoughts: 24
Thoughts: Here's my summary, as the expert:
**Investigating the `folio` Structure**
Okay, let's dive into this `struct folio`. My immediate instinct is to get a handle on its memory layout and key fields. I need to understand how the data within a `folio` is arranged in memory. It's time to leverage my knowledge and tools. I'm going to consult `codesearch-struct-layout` specifically for information on the `folio` structure. This should give me a quick and efficient way to explore its fields and their offsets, which is crucial for performance optimization and debugging, especially when dealing with low-level kernel code or memory management routines. I'm expecting this lookup to be fast, and I'll be looking for any surprising alignments or packing choices.
|
| 49/4 |
2026/09/21 00:42 |
tool |
codesearch-struct-layout |
0m
Args: map[ContextFile:kernel/fork.c Name:folio]
Results: map[Fields:[map[Name: OffsetBits:0 SizeBits:512] map[Name: OffsetBits:512 SizeBits:512] map[Name: OffsetBits:1024 SizeBits:512] map[Name: OffsetBits:1536 SizeBits:512]]]
|
| 50/4 |
2026/09/21 00:42 |
llm |
codeexpert |
0m
Model:
Tokens:
input: 34115
output: 30
thoughts: 83
Thoughts: **Investigating Kernel Configuration Dependencies**
Okay, so I'm digging through this code and noticed the use of anonymous structs in `folio`. That's interesting, but what I really need to know is which of these structs are going to include specific kernel configuration options, namely `CONFIG_KSM`, `CONFIG_LRU_GEN`, or crucially, `CONFIG_PREEMPT_RT`. This is where I need to focus my attention. Let's start with `CONFIG_PREEMPT_RT` since that's top-of-mind.
I need to quickly determine if `CONFIG_PREEMPT_RT` is even enabled. That's the baseline. If it's not, a whole branch of investigation becomes irrelevant. Assuming it *is* enabled, then I need to understand how it's used within this structure. My next step is to trace how the `CONFIG_PREEMPT_RT` impacts synchronization primitives. I'm thinking I need to zero in on either `spinlock` or `rt_mutex`. It's likely that a `CONFIG_PREEMPT_RT` enabled kernel will have a specific set of synchronization primitives it uses. This will tell me how to look at the structure within the context of the running kernel.
|
| 51/4 |
2026/09/21 00:42 |
tool |
codesearch-struct-layout |
0m
Args: map[ContextFile:kernel/fork.c Name:spinlock]
Results: map[Fields:[map[Name: OffsetBits:0 SizeBits:32]]]
|
| 52/4 |
2026/09/21 00:42 |
llm |
codeexpert |
0m
Model:
Tokens:
input: 34518
output: 18
thoughts: 156
Thoughts: **Analyzing Spinlock Size and RT Configuration**
Okay, so I'm looking at this code and immediately something jumps out at me: the size of `spinlock`. It's defined as 32 bits (4 bytes) here. Now, I know that in a PREEMPT_RT kernel, a spinlock transforms into something significantly larger, around 32 or even 40 bytes, typically a `struct rt_mutex_base`. The fact that it's *not* that size here is a major clue. It strongly suggests that `CONFIG_PREEMPT_RT` is *not* defined in this configuration.
To confirm this, I need to verify what `spinlock_t` actually resolves to in this specific build environment. Is it just a simple `raw_spinlock` which is also 4 bytes without the real-time stuff? That would further solidify the non-RT configuration.
I need to understand what `.config` is used.
Alright, let's switch gears and investigate the build configuration. I'm going to scan the source tree looking for the relevant `.config` file or something like `include/generated/autoconf.h`. These files contain all the build settings, and they'll definitively tell me whether `CONFIG_PREEMPT_RT` is set or not. I'll need to use `grep` or search the file system index to pinpoint the exact configuration in use. That should tell me the story.
|
| 53/4 |
2026/09/21 00:43 |
tool |
grepper |
0m
Error:
Args: map[PathPrefix:include/generated]
|
| 54/4 |
2026/09/21 00:43 |
llm |
codeexpert |
0m
Model:
Tokens:
input: 35012
output: 25
thoughts: 9
Thoughts: Okay, here's my attempt at summarizing the thought process, as if it were my own, assuming the user is an expert.
**Passing Expression to grepper: A Quick Thought Process**
Alright, so the core idea is to get `Expression` over to `grepper`. I need to think about that process:
* **First, What's the Goal?** My immediate assumption is that we want `grepper` to *do something* with the `Expression`. Is it to evaluate it? Parse it? Validate it? The context here is key. I'm going to assume, for now, that the goal is about analyzing or using the Expression.
* **What is 'Expression'?** We aren't told what `Expression` actually *is*. Is this a mathematical expression? A regular expression? A query expression? A search term? A complex data structure? The nature of `Expression` dictates the appropriate method and the next question about encoding.
* **How do we 'Pass' It?** Assuming it's some object we want to pass along:
* Do we need to serialize `Expression` into some transmittable format (JSON, XML, a custom binary format)?
* How will `grepper` receive it? Message queue? HTTP request? Function call within the same process? The interface to `grepper` is critical here.
* Are we dealing with any memory constraints or performance limitations in the 'passing'?
* **What are potential concerns?** Are there security risks? Will we deal with malicious expressions? Scalability concerns?
* **Let's start from there** Given the information, my next action is likely to be to define the context. I need to figure out what `Expression` is and how it will interface with `grepper`.
|
| 55/4 |
2026/09/21 00:43 |
tool |
grepper |
0m
Error:
Args: map[Expression:CONFIG_ PathPrefix:include/generated]
Results:
|
| 56/4 |
2026/09/21 00:43 |
llm |
codeexpert |
0m
Model:
Tokens:
input: 35446
output: 21
thoughts: 41
Thoughts: Okay, let's dive into this. Here's how I'd approach this task, as if these were my internal thoughts:
**Investigating Code Generation and Directory Structures**
Alright, I need to get a handle on what's been generated. First step, I should examine the files. I'll start with the obvious places β `include/generated`, the root directory, and the architecture-specific directories. These are the usual suspects for generated code, header files, and configuration data. I'm looking for anything that gives me insight into the build process or the configuration details of this project.
Hold on, before I manually browse those directories, there might be a more efficient way. I recall seeing a `codesearch-dir-index` file and that might be really helpful on `include/generated`. It would index the files and make my search more efficient and pinpoint. This should save me a significant amount of time if that's the case. That index, if it exists and is up-to-date, should provide a quick and dirty overview, saving me the need to walk the file system and, better, if this is a cross-reference I should be able to hunt down a file or function name. Let's start with that!
|
| 57/4 |
2026/09/21 00:43 |
tool |
codesearch-dir-index |
0m
Error:
Args: map[Dir:include/generated]
Results: map[Files:<nil> Subdirs:<nil>]
|
| 58/4 |
2026/09/21 00:43 |
llm |
codeexpert |
0m
Model:
Tokens:
input: 35792
output: 32
thoughts: 217
Thoughts: **Investigating the Build Architecture**
Okay, so I see that the `include/generated` directory isn't present in the Git tree; it's being ignored, which is expected. But this makes me pause β what architecture is the build index indexing? I need to figure this out. Ah, right, the build index is x86_64! Why? Time to dig deeper. I'll check `sizeof(void *)` or the layout of structures like `work_struct` or `uprobes_state`.
Let's start with `work_struct`. Okay, the `data` field is 64 bits, which is 8 bytes. Then the `entry` field, a `list_head`, is 128 bits, or 16 bytes (two pointers, that makes sense). The `func` field is 64 bits, or 8 bytes. That adds up to a total of 32 bytes (256 bits). Yes, that confirms it - this is a 64-bit architecture! A pointer is 8 bytes.
Alright, let's look at `uprobes_state`. The `xol_area` field is 64 bits, 8 bytes. Everything is lining up nicely.
Wait, hold on! I need to be absolutely certain... What's `mm_context_t`? I should probably check that too. Time to fire up `codesearch-struct-layout` and look for the structure definitions of `mm_context_t` or even just `mm_context`. This might give me a more definitive answer.
|
| 59/4 |
2026/09/21 00:43 |
tool |
codesearch-struct-layout |
0m
Error:
Args: map[ContextFile:kernel/fork.c Name:mm_context]
Results:
|
| 60/4 |
2026/09/21 00:43 |
llm |
codeexpert |
0m
Model:
Tokens:
input: 36407
output: 23
thoughts: 14
Thoughts: Here's my attempt at summarizing the thought process, tailored for an expert audience:
**Investigating `mm_context_t`**
Alright, let's dig into this `mm_context_t`. I'm going to start by pulling up the definition. I'm assuming, given the naming, that it's likely related to memory management or context switching within a kernel or operating system. Could be user-space too, but the "mm" prefix is a strong indicator of something low-level. I'll need to pinpoint where it's defined and what header file(s) it's declared in. This is likely a structure or typedef. I'm immediately thinking it could be part of a virtual memory system, process management, or possibly even a custom allocator framework. I'll need to check the relevant include paths for the OS/kernel that I'm working with. This will be the key to understanding its intended use and the data it encapsulates. Knowing this struct will be essential to understanding what I'm looking at.
|
| 61/4 |
2026/09/21 00:43 |
tool |
grepper |
0m
Args: map[Expression:typedef struct .* mm_context_t;]
Results: map[Output:arch/hexagon/include/asm/mmu.h=16=struct mm_context {
--
arch/hexagon/include/asm/mmu.h-21-
arch/hexagon/include/asm/mmu.h:22:typedef struct mm_context mm_context_t;
arch/hexagon/include/asm/mmu.h-23-
]
|
| 62/4 |
2026/09/21 00:43 |
llm |
codeexpert |
0m
Model:
Tokens:
input: 36762
output: 40
thoughts: 30
Thoughts: Here's my take on those thoughts:
**Analyzing `mm_context_t` in x86 Architecture**
Okay, so I need to get a handle on the `mm_context_t` structure. I'm going to jump into the `arch/x86/include/asm/mmu.h` header file right away. This is where I'd expect to find the definitive definition, given this is the x86 architecture and we're dealing with memory management. I want to see exactly how it's defined within the context of the x86 hardware. Specifically, what fields are there? What's the underlying data representation? This is crucial for understanding how the kernel manages process address spaces and context switching on this architecture. Itβs also important to understand where and how the architecture's memory management units interact with this context.
|
| 63/4 |
2026/09/21 00:43 |
tool |
read-file |
0m
Args: map[File:arch/x86/include/asm/mmu.h FirstLine:1 LineCount:60]
Results: map[Contents: 1: /* SPDX-License-Identifier: GPL-2.0 */
2: #ifndef _ASM_X86_MMU_H
3: #define _ASM_X86_MMU_H
4:
5: #include <linux/spinlock.h>
6: #include <linux/rwsem.h>
7: #include <linux/mutex.h>
8: #include <linux/atomic.h>
9: #include <linux/bits.h>
10:
11: /* Uprobes on this MM assume 32-bit code */
12: #define MM_CONTEXT_UPROBE_IA32 0
13: /* vsyscall page is accessible on this MM */
14: #define MM_CONTEXT_HAS_VSYSCALL 1
15: /* Do not allow changing LAM mode */
16: #define MM_CONTEXT_LOCK_LAM 2
17: /* Allow LAM and SVA coexisting */
18: #define MM_CONTEXT_FORCE_TAGGED_SVA 3
19: /* Tracks mm_cpumask */
20: #define MM_CONTEXT_NOTRACK 4
21:
22: /*
23: * x86 has arch-specific MMU state beyond what lives in mm_struct.
24: */
25: typedef struct {
26: /*
27: * ctx_id uniquely identifies this mm_struct. A ctx_id will never
28: * be reused, and zero is not a valid ctx_id.
29: */
30: u64 ctx_id;
31:
32: /*
33: * Any code that needs to do any sort of TLB flushing for this
34: * mm will first make its changes to the page tables, then
35: * increment tlb_gen, then flush. This lets the low-level
36: * flushing code keep track of what needs flushing.
37: *
38: * This is not used on Xen PV.
39: */
40: atomic64_t tlb_gen;
41:
42: unsigned long next_trim_cpumask;
43:
44: #ifdef CONFIG_MODIFY_LDT_SYSCALL
45: struct rw_semaphore ldt_usr_sem;
46: struct ldt_struct *ldt;
47: #endif
48:
49: unsigned long flags;
50:
51: #ifdef CONFIG_ADDRESS_MASKING
52: /* Active LAM mode: X86_CR3_LAM_U48 or X86_CR3_LAM_U57 or 0 (disabled) */
53: unsigned long lam_cr3_mask;
54:
55: /* Significant bits of the virtual address. Excludes tag bits. */
56: u64 untag_mask;
57: #endif
58:
59: struct mutex lock;
60: void __user *vdso; /* vdso base address */
]
|
| 64/4 |
2026/09/21 00:43 |
llm |
codeexpert |
0m
Model:
Tokens:
input: 37869
output: 41
thoughts: 23
Thoughts: Okay, here's my interpretation of what's going through my mind as I approach this `mmu.h` header file, tailored for an expert audience like yourself:
**Diving into the x86 MMU Head**
Alright, time to get into the nitty-gritty of the x86 Memory Management Unit. Let's see whatβs defined in this `arch/x86/include/asm/mmu.h` header. I anticipate a wealth of macro definitions, data structure declarations, and function prototypes. This file *should* be the core of how the kernel interacts with the hardware's translation mechanisms. I'm looking for the foundational building blocks: page table entry (PTE) formats, page directory entry (PDE) structures, potentially the layout of the page table hierarchy, and definitely any assembly instructions that are commonly used for manipulating the MMU. I'll be scrutinizing the bit fields and their meanings β the access permissions, dirty bits, present flags, and cache control mechanisms. I expect to see definitions related to virtual address translation, physical address mapping, and potentially even support for things like huge pages and address space layout randomization (ASLR), and I'll be keeping a keen eye out for any specific architecture extensions related to memory management, like those introduced with newer processor generations. My goal is to grasp the low-level details that underpin the entire virtual memory abstraction on x86, which is crucial for things like process isolation, memory protection, and efficient memory utilization. Let's see what gems are hidden in this file.
|
| 65/4 |
2026/09/21 00:43 |
tool |
read-file |
0m
Args: map[File:arch/x86/include/asm/mmu.h FirstLine:61 LineCount:40]
Results: map[Contents: 61: const struct vdso_image *vdso_image; /* vdso image in use */
62:
63: atomic_t perf_rdpmc_allowed; /* nonzero if rdpmc is allowed */
64: #ifdef CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS
65: /*
66: * One bit per protection key says whether userspace can
67: * use it or not. protected by mmap_lock.
68: */
69: u16 pkey_allocation_map;
70: s16 execute_only_pkey;
71: #endif
72:
73: #ifdef CONFIG_BROADCAST_TLB_FLUSH
74: /*
75: * The global ASID will be a non-zero value when the process has
76: * the same ASID across all CPUs, allowing it to make use of
77: * hardware-assisted remote TLB invalidation like AMD INVLPGB.
78: */
79: u16 global_asid;
80:
81: /* The process is transitioning to a new global ASID number. */
82: bool asid_transition;
83: #endif
84: } mm_context_t;
85:
86: #define INIT_MM_CONTEXT(mm) \
87: .context = { \
88: .ctx_id = 1, \
89: .lock = __MUTEX_INITIALIZER(mm.context.lock), \
90: }
91:
92: void leave_mm(void);
93: #define leave_mm leave_mm
94:
95: #endif /* _ASM_X86_MMU_H */
]
|
| 66/4 |
2026/09/21 00:43 |
llm |
codeexpert |
0m
Model:
Tokens:
input: 38765
output: 34
thoughts: 72
Thoughts: **Investigating the `mm_context_t` Definition**
Okay, hold on a second! Let me just re-familiarize myself with this `mm_context_t` struct, specifically its definition. Right, it's defined in `arch/x86/include/asm/mmu.h`. Hmm, an anonymous struct typedef... Interesting. I wonder if `codesearch-struct-layout` can handle inspecting this type of definition, given that it's anonymous? It's time to check its capabilities. Let's see if I can get some helpful information out of this tool.
|
| 67/4 |
2026/09/21 00:43 |
tool |
codesearch-struct-layout |
0m
Error:
Args: map[ContextFile:kernel/fork.c Name:mm_context_t]
Results:
|
| 68/4 |
2026/09/21 00:43 |
llm |
codeexpert |
0m
Model:
Tokens:
input: 39033
output: 22
thoughts: 91
Thoughts: **Investigating the `codesearch-struct-layout` Limitation**
Okay, so I've hit a snag. It seems like `codesearch-struct-layout` is only parsing struct and union tags directly (like `struct foo`), and it's not recognizing typedefs (type 7, apparently). That's a bit limiting, isn't it? My first thought is to dig a little deeper, what about nested structs or structures containing tags? Perhaps the tool is missing those interactions.
Alright, I need a new approach. I'm going to start with a target. Let me see... does *any* struct contain `mm_id_t`? I'll check that right away.
First things first: Let me refresh myself on what the heck `mm_id_t` *is*. Gotta know what I'm looking for before I look for it, you know?
|
| 69/4 |
2026/09/21 00:43 |
tool |
grepper |
0m
Args: map[Expression:typedef .* mm_id_t;]
Results: map[Output:include/linux/mm_types.h=328=typedef int mm_id_mapcount_t;
include/linux/mm_types.h-329-#define MM_ID_MAPCOUNT_MAX INT_MAX
include/linux/mm_types.h:330:typedef unsigned int mm_id_t;
include/linux/mm_types.h-331-#else /* !CONFIG_64BIT */
include/linux/mm_types.h=332=typedef short mm_id_mapcount_t;
include/linux/mm_types.h-333-#define MM_ID_MAPCOUNT_MAX SHRT_MAX
include/linux/mm_types.h:334:typedef unsigned short mm_id_t;
include/linux/mm_types.h-335-#endif /* CONFIG_64BIT */
]
|
| 70/4 |
2026/09/21 00:43 |
llm |
codeexpert |
0m
Model:
Tokens:
input: 39552
output: 37
thoughts: 57
Thoughts: Here's my summary, as though I'm thinking through this process:
**Diving into `mm_id_t`**
Okay, so I'm dealing with `mm_id_t`. Based on the context, I'm pretty sure it's an unsigned integer, and since we're on a 64-bit kernel configuration (CONFIG_64BIT), that means it's likely a 32-bit integer, consuming 4 bytes. But, wait a second, I need to be absolutely certain before I make any assumptions. Let me just quickly double-check that definition to confirm the bit size. I'll take a quick look at lines 320 to 340 in `include/linux/mm_types.h` to see how it's defined and verify it's the expected size. Always good to double-check!
|
| 71/4 |
2026/09/21 00:43 |
tool |
read-file |
0m
Args: map[File:include/linux/mm_types.h FirstLine:320 LineCount:25]
Results: map[Contents: 320: /*
321: * On 32bit, we can cut the required metadata in half, because:
322: * (a) PID_MAX_LIMIT implicitly limits the number of MMs we could ever have,
323: * so we can limit MM IDs to 15 bit (32767).
324: * (b) We don't expect folios where even a single complete PTE mapping by
325: * one MM would exceed 15 bits (order-15).
326: */
327: #ifdef CONFIG_64BIT
328: typedef int mm_id_mapcount_t;
329: #define MM_ID_MAPCOUNT_MAX INT_MAX
330: typedef unsigned int mm_id_t;
331: #else /* !CONFIG_64BIT */
332: typedef short mm_id_mapcount_t;
333: #define MM_ID_MAPCOUNT_MAX SHRT_MAX
334: typedef unsigned short mm_id_t;
335: #endif /* CONFIG_64BIT */
336:
337: /* We implicitly use the dummy ID for init-mm etc. where we never rmap pages. */
338: #define MM_ID_DUMMY 0
339: #define MM_ID_MIN (MM_ID_DUMMY + 1)
340:
341: /*
342: * We leave the highest bit of each MM id unused, so we can store a flag
343: * in the highest bit of each folio->_mm_id[].
344: */
]
|
| 72/4 |
2026/09/21 00:43 |
llm |
codeexpert |
0m
Model:
Tokens:
input: 40300
output: 34
thoughts: 33
Thoughts: Okay, here's my take on those thoughts, tailored for an expert audience:
**Analyzing the Folio Structure**
Alright, time to get down to brass tacks. I need to take a look at the `struct folio` definition. I'm already mentally reaching for the relevant include file, `include/linux/mm_types.h`. Let's get that pulled up and dissected. There's probably something specific I'm trying to confirm or understand better about its layout, probably in relation to some recent changes or a tricky memory management scenario I'm wrestling with. I'll need to examine the members carefully.
|
| 73/4 |
2026/09/21 00:43 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:include/linux/mm_types.h Name:folio]
Results: map[SourceCode: 358: /**
359: * struct folio - Represents a contiguous set of bytes.
360: * @flags: Identical to the page flags.
361: * @lru: Least Recently Used list; tracks how recently this folio was used.
362: * @mlock_count: Number of times this folio has been pinned by mlock().
363: * @mapping: The file this page belongs to, or refers to the anon_vma for
364: * anonymous memory.
365: * @index: Offset within the file, in units of pages. For anonymous memory,
366: * this is the index from the beginning of the mmap.
367: * @share: number of DAX mappings that reference this folio. See
368: * dax_associate_entry.
369: * @private: Filesystem per-folio data (see folio_attach_private()).
370: * @swap: Used for swp_entry_t if folio_test_swapcache().
371: * @migrate_info: Stores migration state (anon_vma pointer and
372: * FOLIO_WAS_* markers).
373: * @_mapcount: Do not access this member directly. Use folio_mapcount() to
374: * find out how many times this folio is mapped by userspace.
375: * @_refcount: Do not access this member directly. Use folio_ref_count()
376: * to find how many references there are to this folio.
377: * @memcg_data: Memory Control Group data.
378: * @pgmap: Metadata for ZONE_DEVICE mappings
379: * @virtual: Virtual address in the kernel direct map.
380: * @_last_cpupid: IDs of last CPU and last process that accessed the folio.
381: * @_entire_mapcount: Do not use directly, call folio_entire_mapcount().
382: * @_large_mapcount: Do not use directly, call folio_mapcount().
383: * @_nr_pages_mapped: Do not use outside of rmap and debug code.
384: * @_pincount: Do not use directly, call folio_maybe_dma_pinned().
385: * @_nr_pages: Do not use directly, call folio_nr_pages().
386: * @_mm_id: Do not use outside of rmap code.
387: * @_mm_ids: Do not use outside of rmap code.
388: * @_mm_id_mapcount: Do not use outside of rmap code.
389: * @_hugetlb_subpool: Do not use directly, use accessor in hugetlb.h.
390: * @_hugetlb_cgroup: Do not use directly, use accessor in hugetlb_cgroup.h.
391: * @_hugetlb_cgroup_rsvd: Do not use directly, use accessor in hugetlb_cgroup.h.
392: * @_hugetlb_hwpoison: Do not use directly, call raw_hwp_list_head().
393: * @_deferred_list: Folios to be split under memory pressure.
394: * @_unused_slab_obj_exts: Placeholder to match obj_exts in struct slab.
395: *
396: * A folio is a physically, virtually and logically contiguous set
397: * of bytes. It is a power-of-two in size, and it is aligned to that
398: * same power-of-two. It is at least as large as %PAGE_SIZE. If it is
399: * in the page cache, it is at a file offset which is a multiple of that
400: * power-of-two. It may be mapped into userspace at an address which is
401: * at an arbitrary page offset, but its kernel virtual address is aligned
402: * to its size.
403: */
404: struct folio {
405: /* private: don't document the anon union */
406: union {
407: struct {
408: /* public: */
409: memdesc_flags_t flags;
410: union {
411: struct list_head lru;
412: /* private: avoid cluttering the output */
413: /* For the Unevictable "LRU list" slot */
414: struct {
415: /* Avoid compound_info */
416: void *__filler;
417: /* public: */
418: unsigned int mlock_count;
419: /* private: */
420: };
421: /* public: */
422: struct dev_pagemap *pgmap;
423: };
424: struct address_space *mapping;
425: union {
426: pgoff_t index;
427: unsigned long share;
428: };
429: union {
430: void *private;
431: swp_entry_t swap;
432: unsigned long migrate_info;
433: };
434: atomic_t _mapcount;
435: atomic_t _refcount;
436: #ifdef CONFIG_MEMCG
437: unsigned long memcg_data;
438: #elif defined(CONFIG_SLAB_OBJ_EXT)
439: unsigned long _unused_slab_obj_exts;
440: #endif
441: #if defined(WANT_PAGE_VIRTUAL)
442: void *virtual;
443: #endif
444: #ifdef LAST_CPUPID_NOT_IN_PAGE_FLAGS
445: int _last_cpupid;
446: #endif
447: /* private: the union with struct page is transitional */
448: };
449: struct page page;
450: };
451: union {
452: struct {
453: unsigned long _flags_1;
454: unsigned long _head_1;
455: union {
456: struct {
457: /* public: */
458: atomic_t _large_mapcount;
459: atomic_t _nr_pages_mapped;
460: #ifdef CONFIG_64BIT
461: atomic_t _entire_mapcount;
462: atomic_t _pincount;
463: #endif /* CONFIG_64BIT */
464: mm_id_mapcount_t _mm_id_mapcount[2];
465: union {
466: mm_id_t _mm_id[2];
467: unsigned long _mm_ids;
468: };
469: /* private: the union with struct page is transitional */
470: };
471: unsigned long _usable_1[4];
472: };
473: atomic_t _mapcount_1;
474: atomic_t _refcount_1;
475: /* public: */
476: #ifdef NR_PAGES_IN_LARGE_FOLIO
477: unsigned int _nr_pages;
478: #endif /* NR_PAGES_IN_LARGE_FOLIO */
479: /* private: the union with struct page is transitional */
480: };
481: struct page __page_1;
482: };
483: union {
484: struct {
485: unsigned long _flags_2;
486: unsigned long _head_2;
487: /* public: */
488: struct list_head _deferred_list;
489: #ifndef CONFIG_64BIT
490: atomic_t _entire_mapcount;
491: atomic_t _pincount;
492: #endif /* !CONFIG_64BIT */
493: /* private: the union with struct page is transitional */
494: };
495: struct page __page_2;
496: };
497: union {
498: struct {
499: unsigned long _flags_3;
500: unsigned long _head_3;
501: /* public: */
502: void *_hugetlb_subpool;
503: void *_hugetlb_cgroup;
504: void *_hugetlb_cgroup_rsvd;
505: void *_hugetlb_hwpoison;
506: /* private: the union with struct page is transitional */
507: };
508: struct page __page_3;
509: };
510: };
SourceFile:include/linux/mm_types.h]
|
| 74/4 |
2026/09/21 00:43 |
llm |
codeexpert |
1m
Model:
Tokens:
input: 42978
output: 28
thoughts: 449
Thoughts: **My Analysis of `folio` and `mm_struct`**
Okay, hold on a second. I need to understand this `folio` structure more thoroughly, especially in relation to that union definition: `union { struct { ... }; struct page page; };`. Hmm, let's check what `codesearch-struct-layout` gives us for it. Right, the layout! It lists four fields, each 512 bits. That makes sense, given that each union can be 64 bytes, which is `struct page`'s size on a 64-bit system.
But wait, why did `codesearch-struct-layout` return an empty string, `""`, in the first place? Ah, I see! It only returns *top-level* members of the struct. Now, if I think about `mm_struct`, what are its top-level members? Let me quickly refresh my memory...
```c
struct mm_struct {
struct {
...
} __randomize_layout;
char flexible_array[] __aligned(__alignof__(unsigned long));
};
```
Yes, that's it! It has an anonymous struct - `struct { ... } __randomize_layout;` - and a flexible array `char flexible_array[]`. The anonymous struct is the culprit; that's why `codesearch-struct-layout` only provides the empty string. It's not expanding anonymous structs or unions! That's a key limitation.
Okay, so what other options do I have? Can I check other structs to see if this pattern is common? Or does Clang or GCC or DWARF index these anonymous structures under *some* name? Could I query `codesearch-definition-source` or `codesearch-definition-comment` for more information? I need to dig deeper.
For now, I'm going to shift focus and look at `kernel/fork.c`, to see where `mm_struct` is actually initialized or used. Let's search for functions like `mm_init`, `dup_mm`, or `mm_alloc`. That might give me a better understanding of its overall usage.
|
| 75/4 |
2026/09/21 00:44 |
tool |
grepper |
0m
Args: map[Expression:memcpy.*mm PathPrefix:kernel/fork.c]
Results: map[Output:kernel/fork.c=1527=static struct mm_struct *dup_mm(struct task_struct *tsk,
--
kernel/fork.c-1536-
kernel/fork.c:1537: memcpy(mm, oldmm, sizeof(*mm));
kernel/fork.c-1538-
]
|
| 76/4 |
2026/09/21 00:44 |
llm |
codeexpert |
0m
Model:
Tokens:
input: 44010
output: 34
thoughts: 42
Thoughts: Here's my take on those lines of code:
**Diving into `dup_mm` in `kernel/fork.c`**
Okay, so I'm focusing in on `dup_mm` β seems like a core function for the memory management duplication process during a fork, right? Let me pull up those lines in `kernel/fork.c`, let's see, lines 1100 to 1250, give or take a few. I'm expecting this to be the meat of how the parent's memory space is duplicated, or more likely *shared* initially, for the child process. I need to understand this part to really grasp how copy-on-write works, and how page table entries are set up initially. I'm looking for the allocation strategies, any reference counting, and crucially, any initial modifications to the page tables themselves. I'm also watching out for subtle optimizations or potential race conditions that might arise with concurrent access. This is going to be my key to understanding memory separation after a fork.
|
| 77/4 |
2026/09/21 00:44 |
tool |
read-file |
0m
Args: map[File:kernel/fork.c FirstLine:1100 LineCount:80]
Results: map[Contents:1100: mm_pgtables_bytes_init(mm);
1101: mm->map_count = 0;
1102: mm->locked_vm = 0;
1103: atomic64_set(&mm->pinned_vm, 0);
1104: memset(&mm->rss_stat, 0, sizeof(mm->rss_stat));
1105: spin_lock_init(&mm->page_table_lock);
1106: spin_lock_init(&mm->arg_lock);
1107: mm_init_cpumask(mm);
1108: mm_init_aio(mm);
1109: mm_init_owner(mm, p);
1110: mm_pasid_init(mm);
1111: RCU_INIT_POINTER(mm->exe_file, NULL);
1112: mmu_notifier_subscriptions_init(mm);
1113: init_tlb_flush_pending(mm);
1114: #if defined(CONFIG_TRANSPARENT_HUGEPAGE) && !defined(CONFIG_SPLIT_PMD_PTLOCKS)
1115: mm->pmd_huge_pte = NULL;
1116: #endif
1117: mm_init_uprobes_state(mm);
1118: hugetlb_count_init(mm);
1119: futex_mm_init(mm);
1120:
1121: mm_flags_clear_all(mm);
1122: if (current->mm) {
1123: unsigned long flags = __mm_flags_get_word(current->mm);
1124:
1125: __mm_flags_overwrite_word(mm, mmf_init_legacy_flags(flags));
1126: mm->def_flags = current->mm->def_flags & VM_INIT_DEF_MASK;
1127: } else {
1128: __mm_flags_overwrite_word(mm, coredump_filter);
1129: mm->def_flags = 0;
1130: }
1131:
1132: if (mm_alloc_pgd(mm))
1133: goto fail_mm_init;
1134:
1135: if (mm_alloc_id(mm))
1136: goto fail_noid;
1137:
1138: if (init_new_context(p, mm))
1139: goto fail_nocontext;
1140:
1141: if (mm_alloc_cid(mm, p))
1142: goto fail_cid;
1143:
1144: if (mm_alloc_sched(mm))
1145: goto fail_sched;
1146:
1147: if (percpu_counter_init_many(mm->rss_stat, 0, GFP_KERNEL_ACCOUNT,
1148: NR_MM_COUNTERS))
1149: goto fail_pcpu;
1150:
1151: lru_gen_init_mm(mm);
1152: return mm;
1153:
1154: fail_pcpu:
1155: mm_destroy_sched(mm);
1156: fail_sched:
1157: mm_destroy_cid(mm);
1158: fail_cid:
1159: destroy_context(mm);
1160: fail_nocontext:
1161: mm_free_id(mm);
1162: fail_noid:
1163: mm_free_pgd(mm);
1164: fail_mm_init:
1165: free_mm(mm);
1166: return NULL;
1167: }
1168:
1169: /*
1170: * Allocate and initialize an mm_struct.
1171: */
1172: struct mm_struct *mm_alloc(void)
1173: {
1174: struct mm_struct *mm;
1175:
1176: mm = allocate_mm();
1177: if (!mm)
1178: return NULL;
1179:
]
|
| 78/4 |
2026/09/21 00:44 |
llm |
codeexpert |
0m
Model:
Tokens:
input: 45488
output: 46
thoughts: 55
Thoughts: **Investigating Cross-References to `mm_struct` Fields**
Alright, let's dive in. I'm going to leverage `codesearch-find-references` to trace the usage of fields within the `mm_struct` structure. But before I go too deep, I need to check something important. Can I directly query for specific fields like `mm_struct::ksm_merging_pages` or will I need to refine my search? I suspect it *should* work, but it's always best to verify. Time to run a quick test and be sure. No sense in generating noisy results or missing something critical right off the bat. Let's see what happens.
|
| 79/4 |
2026/09/21 00:44 |
tool |
codesearch-find-references |
0m
Args: map[ContextFile:kernel/fork.c IncludeSnippetLines:1 Name:mm_struct::ksm_merging_pages]
Results: map[References:<nil> TruncatedOutput:false]
|
| 80/4 |
2026/09/21 00:44 |
llm |
codeexpert |
0m
Model:
Tokens:
input: 45752
output: 41
thoughts: 53
Thoughts: **Debugging a KSM Configuration Issue**
Okay, so the system just spat back a JSON response that's pretty unhelpful: `{"References":[],"TruncatedOutput":false}`. That's a classic sign something's not quite right with the configuration. Let me think... Could `CONFIG_KSM` be disabled? Or perhaps it's defined under a different name entirely? Gotta rule that out first. My gut tells me something is amiss, I need to understand what's not enabled or misnamed. Then again, I should probably also check `mm_struct::mmlist`. I know KSM touches memory structures so maybe this is where the real problem is!
|
| 81/4 |
2026/09/21 00:44 |
tool |
codesearch-find-references |
0m
Args: map[ContextFile:kernel/fork.c IncludeSnippetLines:1 Name:mm_struct::mmlist]
Results: map[References:<nil> TruncatedOutput:false]
|
| 82/4 |
2026/09/21 00:44 |
llm |
codeexpert |
0m
Model:
Tokens:
input: 46005
output: 37
thoughts: 38
Thoughts: Okay, here's my interpretation of those thoughts, summarized from an expert's perspective, as if they were my own:
**Debugging a Stubborn Empty List**
Right, so the function returned an empty list again. Hmm, I suspected as much, but why? Ah, the penny drops... it's because those fields within `mm_struct` are actually *part* of an anonymous struct. That's a classic gotcha! Okay, so the standard field name isn't directly accessible.
So, instead of searching for the generic `mm_struct`, what's the workaround? I wonder if searching for a variation on the underlying name might work... the `::mmlist` struct name, or just `mmlist`, might be a better approach to get around the struct nesting. It is worth a try. Time to refine that search query.
|
| 83/4 |
2026/09/21 00:45 |
tool |
codesearch-find-references |
0m
Error:
Args: map[ContextFile:kernel/fork.c IncludeSnippetLines:1 Name:mmlist]
Results: map[References:<nil> TruncatedOutput:false]
|
| 84/4 |
2026/09/21 00:45 |
llm |
codeexpert |
0m
Model:
Tokens:
input: 46395
output: 702
thoughts: 3080
Thoughts: **Analysis of `mm_struct` Offset 1672**
Okay, let's break this down. The task is to identify the field located at offset 1672 (0x688) within the `mm_struct` structure, considering potential configurations and optimizations. We're given that the anonymous structure within `mm_struct` is 1728 bytes (0x6C0) long, and from this, we can deduce that offset 1672 is 56 bytes before the structure's end.
I'll proceed by working backward from the end of the structure, making sure to account for padding and alignment requirements. Looking at `include/linux/mm_types.h`, the end of the structure is where we'll find our answers.
Let's begin. At the very end, we have `mm_id_t mm_id`, which is a 4-byte integer. This implies an 8-byte alignment, meaning there's a 4-byte padding before `mm_id`, placing `mm_id` from 1720 to 1724. Before `mm_id` is the `lru_gen` structure, its size depends on whether `CONFIG_MEMCG` is enabled, which is standard on x86_64 defconfig: If `CONFIG_MEMCG` is enabled, `lru_gen` is 32 bytes (16 for `list_head`, 8 for `bitmap`, 8 for `memcg`). If not, it's 24 bytes (16 for `list_head`, 8 for `bitmap`). Then comes `CONFIG_KSM`, where we have `ksm_merging_pages`, `ksm_rmap_items`, and `ksm_zero_pages`, each being 8 bytes. `iommu_mm` is 8 bytes, and finally, `async_put_work` is 32 bytes.
Now, let's assemble this! We're expecting `CONFIG_MM_ID`, `CONFIG_LRU_GEN_WALKS_MMU`, `CONFIG_MEMCG`, `CONFIG_KSM`, and `CONFIG_IOMMU_MM_DATA` to be enabled, which should provide the most likely configuration.
So we have: end = 1728. Alignment for `mm_id`: 4-byte padding at the end, placing `mm_id` at 1720-1724. Then `lru_gen`: 32 bytes, from 1688-1720. Before that, `CONFIG_KSM`: 24 bytes, 1664-1688.
Here it is! `ksm_merging_pages` is 1664β1672, `ksm_rmap_items` is 1672β1680. Precisely at offset 1672 (0x688)! `ksm_zero_pages` starts at 1680.
Let's do a double-check. Start from the very end, and work backwards:
1728 end.
Padding: 1724-1728 (4 bytes)
`mm_id`: 1720-1724 (4 bytes)
`lru_gen.memcg`: 1712-1720 (8 bytes)
`lru_gen.bitmap`: 1704-1712 (8 bytes)
`lru_gen.list`: 1688-1704 (16 bytes)
`ksm_zero_pages`: 1680-1688 (8 bytes)
`ksm_rmap_items`: 1672-1680 (8 bytes)
`ksm_merging_pages`: 1664-1672 (8 bytes)
`iommu_mm`: 1656-1664 (8 bytes)
`async_put_work`: 1624-1656 (32 bytes)
...
Yes! If we have a standard configuration, 1672 (0x688) aligns to `ksm_rmap_items`! Even better, let's verify all the standard fields before `ksm_rmap_items`: `tlb_flush_batched`, `uprobes_state`, `hugetlb_usage`, `async_put_work` are all in the correct order and sizes. In total: 4 + 4
|
| 85/4 |
2026/09/21 00:45 |
tool |
set-results |
0m
Args: map[Answer:The field at offset 1672 (0x688) in `struct mm_struct` is `ksm_rmap_items` (type `unsigned long`).
### Layout Breakdown & Calculation
In the active x86_64 configuration, the anonymous inner struct inside `mm_struct` has a total size of 1728 bytes (0x6C0, or 13824 bits as reported by `codesearch-struct-layout`).
Working backwards from the end of the inner struct at offset 1728 (0x6C0):
- **1724β1727 (4 bytes)**: Struct alignment padding (to 8-byte boundary)
- **1720β1723 (4 bytes)**: `mm_id_t mm_id` (`CONFIG_MM_ID`)
- **1712β1719 (8 bytes)**: `lru_gen.memcg` (`CONFIG_MEMCG`)
- **1704β1711 (8 bytes)**: `lru_gen.bitmap`
- **1688β1703 (16 bytes)**: `lru_gen.list` (`struct list_head`)
- **1680β1687 (8 bytes)**: `atomic_long_t ksm_zero_pages`
- **1672β1679 (8 bytes, 0x688β0x68F)**: `unsigned long ksm_rmap_items`
- **1664β1671 (8 bytes, 0x680β0x687)**: `unsigned long ksm_merging_pages`
- **1656β1663 (8 bytes)**: `struct iommu_mm_data *iommu_mm` (`CONFIG_IOMMU_MM_DATA`)
- **1624β1655 (32 bytes)**: `struct work_struct async_put_work`
### Caveats & Unverified Aspects
1. Because `mm_struct` encloses its members in an anonymous struct (`struct { ... } __randomize_layout;`), struct layout tools only expose top-level fields (`""` from 0 to 1728, followed by `flexible_array` at 1728). The offset was determined by calculating sizes and alignments of the preceding/subsequent fields relative to the verified struct boundary at 1728 bytes.
2. If `CONFIG_RANDSTRUCT` (structure layout randomization) is enabled, member ordering is randomized at build time. In standard builds without `CONFIG_RANDSTRUCT`, `__randomize_layout` expands to `__designated_init`, preserving sequential source declaration order.
3. If specific optional Kconfig options near the end of `mm_struct` are toggled off (e.g., `CONFIG_KSM`, `CONFIG_LRU_GEN_WALKS_MMU`, or `CONFIG_MM_ID`), field offsets in this region will shift accordingly.]
Results: map[Answer:The field at offset 1672 (0x688) in `struct mm_struct` is `ksm_rmap_items` (type `unsigned long`).
### Layout Breakdown & Calculation
In the active x86_64 configuration, the anonymous inner struct inside `mm_struct` has a total size of 1728 bytes (0x6C0, or 13824 bits as reported by `codesearch-struct-layout`).
Working backwards from the end of the inner struct at offset 1728 (0x6C0):
- **1724β1727 (4 bytes)**: Struct alignment padding (to 8-byte boundary)
- **1720β1723 (4 bytes)**: `mm_id_t mm_id` (`CONFIG_MM_ID`)
- **1712β1719 (8 bytes)**: `lru_gen.memcg` (`CONFIG_MEMCG`)
- **1704β1711 (8 bytes)**: `lru_gen.bitmap`
- **1688β1703 (16 bytes)**: `lru_gen.list` (`struct list_head`)
- **1680β1687 (8 bytes)**: `atomic_long_t ksm_zero_pages`
- **1672β1679 (8 bytes, 0x688β0x68F)**: `unsigned long ksm_rmap_items`
- **1664β1671 (8 bytes, 0x680β0x687)**: `unsigned long ksm_merging_pages`
- **1656β1663 (8 bytes)**: `struct iommu_mm_data *iommu_mm` (`CONFIG_IOMMU_MM_DATA`)
- **1624β1655 (32 bytes)**: `struct work_struct async_put_work`
### Caveats & Unverified Aspects
1. Because `mm_struct` encloses its members in an anonymous struct (`struct { ... } __randomize_layout;`), struct layout tools only expose top-level fields (`""` from 0 to 1728, followed by `flexible_array` at 1728). The offset was determined by calculating sizes and alignments of the preceding/subsequent fields relative to the verified struct boundary at 1728 bytes.
2. If `CONFIG_RANDSTRUCT` (structure layout randomization) is enabled, member ordering is randomized at build time. In standard builds without `CONFIG_RANDSTRUCT`, `__randomize_layout` expands to `__designated_init`, preserving sequential source declaration order.
3. If specific optional Kconfig options near the end of `mm_struct` are toggled off (e.g., `CONFIG_KSM`, `CONFIG_LRU_GEN_WALKS_MMU`, or `CONFIG_MM_ID`), field offsets in this region will shift accordingly.]
|
| 86/2 |
2026/09/21 00:45 |
llm |
expert |
0m
Model:
Tokens:
input: 15596
output: 32
thoughts: 1875
Thoughts: **Analyzing a Benign Data Race in `dup_mm`**
Okay, so I've got this KCSAN report flagged, and I need to figure out what's going on. First, I see the addresses mentioned in the report, and I quickly map the offsets. I can confirm the write is definitely to `lru_gen.list`, based on the KCSAN report's details about the `__list_del` call. The code expert's initial offset calculation is a bit off, probably due to different configurations, but the key is that it's writing to the `lru_gen.list` of the `oldmm`.
Now, the write occurs when another `mm` is being deleted, and it's modifying the `oldmm` list pointers. This is normal and protected by `mm_list->lock`. However, `dup_mm` performs a `memcpy` from `oldmm` *without* holding that lock. This means there's a data race: a read concurrently with a write!
My immediate thought is that this data race is *benign*. `memcpy` reads `oldmm->lru_gen.list.next` (and potentially `prev`) while they are being updated. However, the `mm_init` function, called right after the `memcpy`, calls `lru_gen_init_mm`, which immediately re-initializes the `lru_gen.list` with `INIT_LIST_HEAD`. The torn read is overwritten! No memory corruption, no leak, no crash. It's just a KCSAN finding, but the read value is discarded.
Let me think a bit more deeply about other issues. Could the torn pointer cause a fault during the `memcpy`? No. The code is simply reading bytes from memory. Could the compiler do some weird optimizations? No, `memcpy` is standard. Could `oldmm` be freed while being read? No, `oldmm` is `current->mm` during `clone`, and so it has a reference and won't be freed.
Since the code doesn't *use* the potentially torn `lru_gen.list` before re-initializing it, it is a benign data race. Let me re-examine the `dup_mm` code to be completely sure. No other uses. Therefore, it's safe to say there is no way this bug is exploitable.
Given the prompt, let's go through the security analysis. Exploitable? No. Denial of Service? No. Unprivileged? Yes (through `clone`). User Namespace? Yes. VM Guest Trigger? No (it cannot be triggered from the context of a typical KVM guest, but in the context of the guest's kernel, it can be triggered). VM Host Trigger? No. Ethernet Network Trigger? No. Other Remote Trigger? No. Peripheral Trigger? No. Malicious Filesystem Trigger? No.
Since the bug is non-exploitable/not-accessible, I am confident in my assessment. The reasoning is: the torn data read is immediately overwritten, and the kernel does not rely on those values.
|
| 87/2 |
2026/09/21 00:45 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:kernel/fork.c Name:mm_init]
Results: map[SourceCode:1091: static struct mm_struct *mm_init(struct mm_struct *mm, struct task_struct *p)
1092: {
1093: mt_init_flags(&mm->mm_mt, MM_MT_FLAGS);
1094: mt_set_external_lock(&mm->mm_mt, &mm->mmap_lock);
1095: atomic_set(&mm->mm_users, 1);
1096: atomic_set(&mm->mm_count, 1);
1097: seqcount_init(&mm->write_protect_seq);
1098: mmap_init_lock(mm);
1099: INIT_LIST_HEAD(&mm->mmlist);
1100: mm_pgtables_bytes_init(mm);
1101: mm->map_count = 0;
1102: mm->locked_vm = 0;
1103: atomic64_set(&mm->pinned_vm, 0);
1104: memset(&mm->rss_stat, 0, sizeof(mm->rss_stat));
1105: spin_lock_init(&mm->page_table_lock);
1106: spin_lock_init(&mm->arg_lock);
1107: mm_init_cpumask(mm);
1108: mm_init_aio(mm);
1109: mm_init_owner(mm, p);
1110: mm_pasid_init(mm);
1111: RCU_INIT_POINTER(mm->exe_file, NULL);
1112: mmu_notifier_subscriptions_init(mm);
1113: init_tlb_flush_pending(mm);
1114: #if defined(CONFIG_TRANSPARENT_HUGEPAGE) && !defined(CONFIG_SPLIT_PMD_PTLOCKS)
1115: mm->pmd_huge_pte = NULL;
1116: #endif
1117: mm_init_uprobes_state(mm);
1118: hugetlb_count_init(mm);
1119: futex_mm_init(mm);
1120:
1121: mm_flags_clear_all(mm);
1122: if (current->mm) {
1123: unsigned long flags = __mm_flags_get_word(current->mm);
1124:
1125: __mm_flags_overwrite_word(mm, mmf_init_legacy_flags(flags));
1126: mm->def_flags = current->mm->def_flags & VM_INIT_DEF_MASK;
1127: } else {
1128: __mm_flags_overwrite_word(mm, coredump_filter);
1129: mm->def_flags = 0;
1130: }
1131:
1132: if (mm_alloc_pgd(mm))
1133: goto fail_mm_init;
1134:
1135: if (mm_alloc_id(mm))
1136: goto fail_noid;
1137:
1138: if (init_new_context(p, mm))
1139: goto fail_nocontext;
1140:
1141: if (mm_alloc_cid(mm, p))
1142: goto fail_cid;
1143:
1144: if (mm_alloc_sched(mm))
1145: goto fail_sched;
1146:
1147: if (percpu_counter_init_many(mm->rss_stat, 0, GFP_KERNEL_ACCOUNT,
1148: NR_MM_COUNTERS))
1149: goto fail_pcpu;
1150:
1151: lru_gen_init_mm(mm);
1152: return mm;
1153:
1154: fail_pcpu:
1155: mm_destroy_sched(mm);
1156: fail_sched:
1157: mm_destroy_cid(mm);
1158: fail_cid:
1159: destroy_context(mm);
1160: fail_nocontext:
1161: mm_free_id(mm);
1162: fail_noid:
1163: mm_free_pgd(mm);
1164: fail_mm_init:
1165: free_mm(mm);
1166: return NULL;
1167: }
SourceFile:kernel/fork.c]
|
| 88/2 |
2026/09/21 00:45 |
llm |
expert |
0m
Model:
Tokens:
input: 19426
output: 32
thoughts: 159
Thoughts: **Analyzing Memory Management Initialization**
Okay, so I'm diving into this initialization sequence, specifically focusing on the `lru_gen.list` within the `mm_struct`. It seems clear that none of the pre-`lru_gen_init_mm` functions β `mm_alloc_pgd`, `mm_alloc_id`, `init_new_context`, `mm_alloc_cid`, `mm_alloc_sched`, and `percpu_counter_init_many` β directly interact with that `lru_gen.list`. That's good, minimizes the chance of initial corruption.
But wait, I need to consider failure scenarios. What if one of those allocation functions throws an error and jumps to something like `fail_pcpu`? Where does the cleanup go from there? Okay, if there's a failure, the code branches to `fail_mm_init`. And `fail_mm_init` *does* call `free_mm(mm)`.
This is the critical point. Does `free_mm` actually use the `mm->lru_gen.list`? That's what I need to verify. I need to go and examine the implementation of `free_mm` to be absolutely certain it doesn't cause any issues with the `lru_gen.list` before or after `lru_gen_init_mm` has been called. Gotta rule out any potential for a double free or use-after-free situation if a failure happens before `lru_gen_init_mm` completes.
|
| 89/2 |
2026/09/21 00:45 |
tool |
codesearch-definition-source |
0m
Error:
Args: map[ContextFile:kernel/fork.c Name:free_mm]
Results: map[SourceCode: SourceFile:]
|
| 90/2 |
2026/09/21 00:45 |
llm |
expert |
0m
Model:
Tokens:
input: 19972
output: 21
thoughts: 22
Thoughts: Here's my attempt at summarizing the thought process, tailored for an expert audience:
**Investigating `free_mm`**
Okay, hold on a second. That `free_mm` function... I have a nagging feeling it's not a standard function call. It could be a macro, or perhaps an inline function defined somewhere specific to this project or library. That would certainly impact how it behaves and how it might be optimized. Given the context, it's definitely worth checking. Let's fire up the search tools and see where `free_mm` is defined. I need to understand its exact expansion and side effects before I can make any assumptions about what's going on here. Macros, in particular, can introduce subtle gotchas. Let's go digging!
|
| 91/2 |
2026/09/21 00:45 |
tool |
grepper |
0m
Error:
Args: map[Expression:^static inline void free_mm]
Results:
|
| 92/2 |
2026/09/21 00:45 |
llm |
expert |
0m
Model:
Tokens:
input: 20192
output: 19
thoughts: 18
Thoughts: Here's my attempt at summarizing the thought process, tailored for an expert audience:
**Memory Management Deep Dive**
Okay, so I need to understand this memory management component better. My first instinct is to zero in on the core freeing function. Let's start with a targeted search for the function `void free_mm` or, alternatively, any potential macros that might be defining or overriding it, so I'll also look for `#define free_mm`. I'm expecting to find either the explicit implementation of the free routine or, at the very least, a definition that clarifies how the specific memory region will be deallocated. My familiarity with the system and expected memory layout will help me interpret what I find. The goal is to quickly pinpoint the memory deallocation logic.
|
| 93/2 |
2026/09/21 00:45 |
tool |
grepper |
0m
Error:
Args: map[Expression:void free_mm\(]
Results:
|
| 94/2 |
2026/09/21 00:45 |
llm |
expert |
0m
Model:
Tokens:
input: 20405
output: 28
thoughts: 18
Thoughts: Here's my attempt at summarizing the thought process, tailored for an expert audience:
**Investigating Memory Management During Fork**
Okay, so I'm digging into `kernel/fork.c`. Specifically, I want to understand how memory is handled during a process fork. My immediate hunch is that I need to see how the kernel manages the newly created process's memory space, especially in the context of the parent process's memory. The `free_mm` function is a classic suspect when dealing with memory deallocation, and since we're creating a *new* process, I'm betting it plays a role in cleanup or adjustment of the memory map, even if temporarily. Maybe freeing resources associated with an old mm_struct, or some other clean up tasks that I am overlooking at first glance. I'm focusing on that `free_mm` function to start because, if the kernel *doesn't* free memory here, where would it? Let's check it out.
|
| 95/2 |
2026/09/21 00:45 |
tool |
grepper |
0m
Args: map[Expression:free_mm PathPrefix:kernel/fork.c]
Results: map[Output:kernel/fork.c=628=static void check_mm(struct mm_struct *mm)
--
kernel/fork.c-655-#define allocate_mm() (kmem_cache_alloc(mm_cachep, GFP_KERNEL))
kernel/fork.c:656:#define free_mm(mm) (kmem_cache_free(mm_cachep, (mm)))
kernel/fork.c-657-
--
kernel/fork.c=724=void __mmdrop(struct mm_struct *mm)
--
kernel/fork.c-742-
kernel/fork.c:743: free_mm(mm);
kernel/fork.c-744-}
--
kernel/fork.c=1091=static struct mm_struct *mm_init(struct mm_struct *mm, struct task_struct *p)
--
kernel/fork.c-1164-fail_mm_init:
kernel/fork.c:1165: free_mm(mm);
kernel/fork.c-1166- return NULL;
]
|
| 96/2 |
2026/09/21 00:45 |
llm |
expert |
0m
Model:
Tokens:
input: 20936
output: 66
thoughts: 393
Thoughts: **My Assessment of the Data Race**
Okay, so looking at this KCSAN report, I've got a handle on the situation. The heart of it boils down to that `free_mm` call β it's really just a wrapper for `kmem_cache_free(mm_cachep, (mm))`. That means the `mm->lru_gen.list` isn't actually being touched in the `free_mm` path. Aha! So, even in an error scenario, that potentially torn read from the data race is completely irrelevant. That confirms it, this is a truly benign data race. No security impact whatsoever.
Here's my distilled understanding: A data race is reported between the `memcpy` call in `dup_mm` and `list_del_init` which is called from `lru_gen_del_mm`. `dup_mm` is basically cloning the memory management structures from the current process (`current->mm`) to a new `mm`. Meanwhile, another thread might be busy removing a *different* `mm` from the `lru_gen.list`. Since those lists are often adjacent, `list_del_init` could potentially be in the middle of updating the `prev` or `next` pointers within the `oldmm->lru_gen.list`. The `memcpy` call is reading these values, causing the race.
The catch is, and this is crucial, the values read during this race in the *new* `mm` are never actually used. They're either immediately overwritten by `INIT_LIST_HEAD(&mm->lru_gen.list)` in `lru_gen_init_mm` (called during `mm_init`) or, in an error case, the entire `mm` is simply freed. That means there's no memory corruption, no information leak, and certainly no denial-of-service potential, which is what I'm looking for in these cases.
The triggers for this race are also straightforward: any unprivileged user can hit it by calling `clone` concurrently with another process exiting (which triggers `lru_gen_del_mm`).
Now that I've nailed this down, I'm ready to `set-results` and provide this reasoning.
|
| 97/2 |
2026/09/21 00:46 |
tool |
set-results |
0m
Args: map[DenialOfService:false Exploitable:false FilesystemTrigger:false NetworkTrigger:false PeripheralTrigger:false RemoteTrigger:false Unprivileged:true UserNamespace:true VMGuestTrigger:false VMHostTrigger:false]
Results: map[DenialOfService:false Exploitable:false FilesystemTrigger:false NetworkTrigger:false PeripheralTrigger:false RemoteTrigger:false Unprivileged:true UserNamespace:true VMGuestTrigger:false VMHostTrigger:false]
|
| 98/2 |
2026/09/21 00:46 |
llm |
expert |
0m
Model:
Tokens:
input: 21941
output: 723
thoughts: 13
Thoughts: Okay, here's the summary, assuming I'm the expert and reflecting on the provided "thoughts":
**Finalizing the Analysis**
Alright, the data's in, the analyses are complete. Now it's time to craft the synthesis, the concluding argument, the final response. I've got a clear understanding of the implications of these findings, and I need to translate that into a concise, yet compelling narrative. The challenge, as always, is to be both precise and accessible. I need to make sure the conclusions are irrefutable, and presented with a level of clarity befitting my expertise. This is where I truly earn my keep: distilling complex information into actionable insights. Time to write.
|
| 99/1 |
2026/09/21 00:46 |
action |
format-explanation |
0m
Results: map[Explanation:**Analysis of the Bug Report**
The bug report is a KCSAN data-race warning between a read in `copy_mm`
(specifically inside `dup_mm`) and a write in `lru_gen_del_mm`.
1. **The Write (`lru_gen_del_mm`)**:
When a process exits and its `mm_users` count drops to zero, `__mmput` is
called, which in turn calls `lru_gen_del_mm`. This function removes the
`mm_struct` from the LRU generation list using
`list_del_init(&mm->lru_gen.list)`. The `list_del_init` operation modifies
the `next` and `prev` pointers of the adjacent elements in the doubly-linked
list.
2. **The Read (`dup_mm`)**:
When a process calls `clone` without `CLONE_VM`, `copy_mm` calls `dup_mm` to
duplicate the current process's `mm_struct`. `dup_mm` allocates a new
`mm_struct` and copies the old one using `memcpy(mm, oldmm, sizeof(*mm))`.
**The Race Condition**:
If the `oldmm` (the `mm_struct` of the process calling `clone`) happens to be
adjacent in the `lru_gen.list` to another `mm_struct` that is currently being
deleted by an exiting process, the `list_del_init` operation on the exiting `mm`
will update the `next` or `prev` pointers of `oldmm->lru_gen.list`.
Concurrently, `dup_mm` is reading the entirety of `oldmm` via `memcpy`. This
results in a torn read of the `lru_gen.list` pointers, which KCSAN correctly
flags as a data race.
**Security Impact**:
This data race is completely **benign** and has no security impact.
After `memcpy` copies the potentially torn `lru_gen.list` pointers into the new
`mm_struct`, `dup_mm` calls `mm_init(mm, tsk)`. Inside `mm_init`, the function
`lru_gen_init_mm(mm)` is called, which unconditionally reinitializes the list
head via `INIT_LIST_HEAD(&mm->lru_gen.list)`.
None of the initialization functions called between `memcpy` and
`lru_gen_init_mm` (such as `mm_alloc_pgd`, `init_new_context`, etc.) access the
`lru_gen.list` field. Furthermore, if any of these initialization steps fail,
the new `mm_struct` is simply freed via `kmem_cache_free`, which also does not
touch the list pointers.
Because the torn read value is never dereferenced or used in any way before
being overwritten or discarded, there is no risk of memory corruption,
information leaks, or denial of service.
**Triggerability**:
The bug can be triggered by any unprivileged local user (or within a user
namespace) simply by repeatedly calling `clone` (to trigger `dup_mm`) while
other processes are exiting (to trigger `lru_gen_del_mm`). However, as
established, triggering this race does not affect the kernel's execution or
stability.]
|