| 0/0 |
2026/09/16 00:02 |
flow |
assessment-security |
43m
Results: map[DenialOfService:false Explanation:Based on the analysis of the kernel source code, here is the assessment of the
bug:
**Bug Mechanism:**
The bug is a lockdep warning: `WARNING: bad unlock balance detected!` triggered
in `blk_mq_unfreeze_queue`.
It occurs because the lockdep annotations for the queue freeze lock
(`rwsem_acquire` and `rwsem_release` on `q->io_lockdep_map` and
`q->q_lockdep_map`) become unbalanced. This unbalance is caused by a race
condition: when Task A calls `blk_mq_unfreeze_queue`, it decrements
`q->mq_freeze_depth` to 0 and releases the `mq_freeze_lock`. Before Task A can
call `blk_unfreeze_release_lock`, Task B can call `blk_mq_freeze_queue`, acquire
the lock, and modify `q->mq_freeze_disk_dead` or `q->mq_freeze_queue_dying`.
Task A then reads the modified state and incorrectly skips or executes
`rwsem_release`, leading to the lockdep warning.
**Security Impact:**
Crucially, the fields `mq_freeze_disk_dead`, `mq_freeze_queue_dying`,
`mq_freeze_owner`, and `mq_freeze_owner_depth` in `struct request_queue` are
strictly guarded by `#ifdef CONFIG_LOCKDEP`. Furthermore, the functions
`rwsem_acquire` and `rwsem_release` are lockdep macros that compile to empty
statements when `CONFIG_LOCKDEP` is disabled.
In production kernel builds, `CONFIG_LOCKDEP` is disabled. Therefore, this bug
is purely a lockdep state tracking mismatch and has absolutely no effect on the
actual queue freezing logic, memory safety, or control flow. It **cannot** cause
a denial of service, memory corruption, or be exploited in any way.
**Triggerability:**
The bug is triggered during NVMe namespace scanning (`nvme_scan_ns`), which
happens when an NVMe device is probed, added, or reset. This requires either
physical access to plug in an NVMe device (Peripheral Trigger) or root
privileges (e.g., `CAP_SYS_ADMIN` to issue `NVME_IOCTL_RESET` or write to the
`rescan_controller` sysfs attribute). It cannot be triggered by unprivileged
users or from within user namespaces. Exploitable:false FilesystemTrigger:false NetworkTrigger:false PeripheralTrigger:true RemoteTrigger:false Unprivileged:false UserNamespace:false VMGuestTrigger:false VMHostTrigger:false]
|
| 1/1 |
2026/09/16 00:02 |
action |
syz-repro-to-c-repro |
0m
Results:
|
| 2/1 |
2026/09/16 00:02 |
action |
kernel-checkouter |
0m
Results: map[KernelSrc:/app/workdir/cache/src/84a958cdd6340c89fc180bcaf2cf85eabad4b178]
|
| 3/1 |
2026/09/16 00:02 |
action |
kernel-builder |
23m
Results: map[KernelObj:/app/workdir/cache/build/c36cd4b63f3980426e343e10c99ed8ab2b6be34d]
|
| 4/1 |
2026/09/16 00:25 |
action |
codesearch-prepare |
15m
Results: map[Index:codesearch-index]
|
| 5/1 |
2026/09/16 00:41 |
agent |
expert |
4m
Model:
Results: map[DenialOfService:false Exploitable:false FilesystemTrigger:false NetworkTrigger:false PeripheralTrigger:true RemoteTrigger:false Unprivileged:false UserNamespace:false 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:
=====================================
WARNING: bad unlock balance detected!
syzkaller #0 Tainted: G L
-------------------------------------
kworker/u8:28/9220 is trying to release lock (&q->q_usage_counter(io)) at:
[<ffffffff85e833c7>] blk_mq_unfreeze_queue include/linux/blk-mq.h:962 [inline]
[<ffffffff85e833c7>] nvme_update_ns_info+0xa07/0x1200 drivers/nvme/host/core.c:2623
but there are no more locks to release!
other info that might help us debug this:
locks held by kworker/u8:28/9220: 2, last CPU#1:
#0: ffff88801ae8d138 ((wq_completion)async){+.+.}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline]
#0: ffff88801ae8d138 ((wq_completion)async){+.+.}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#0: ffff88801ae8d138 ((wq_completion)async){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3361 [inline]
#0: ffff88801ae8d138 ((wq_completion)async){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 kernel/workqueue.c:3479
#1: ffffc9000460fc40 ((work_completion)(&entry->work)){+.+.}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline]
#1: ffffc9000460fc40 ((work_completion)(&entry->work)){+.+.}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#1: ffffc9000460fc40 ((work_completion)(&entry->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3361 [inline]
#1: ffffc9000460fc40 ((work_completion)(&entry->work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 kernel/workqueue.c:3479
stack backtrace:
CPU: 1 UID: 0 PID: 9220 Comm: kworker/u8:28 Tainted: G L syzkaller #0 PREEMPT_{RT,(full)}
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Workqueue: async async_run_entry_fn
Call Trace:
<TASK>
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
print_unlock_imbalance_bug+0xdc/0xf0 kernel/locking/lockdep.c:5349
__lock_release kernel/locking/lockdep.c:5590 [inline]
lock_release+0x252/0x3c0 kernel/locking/lockdep.c:5964
blk_mq_unfreeze_queue include/linux/blk-mq.h:962 [inline]
nvme_update_ns_info+0xa07/0x1200 drivers/nvme/host/core.c:2623
nvme_alloc_ns drivers/nvme/host/core.c:4293 [inline]
nvme_scan_ns+0x34c1/0x46c0 drivers/nvme/host/core.c:4483
async_run_entry_fn+0x9d/0x430 kernel/async.c:129
process_one_work kernel/workqueue.c:3396 [inline]
process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3479
worker_thread+0xa47/0xfb0 kernel/workqueue.c:3560
kthread+0x38b/0x470 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
</TASK>
Reply: Based on the analysis of the kernel source code, here is the assessment of the bug:
**Bug Mechanism:**
The bug is a lockdep warning: `WARNING: bad unlock balance detected!` triggered in `blk_mq_unfreeze_queue`.
It occurs because the lockdep annotations for the queue freeze lock (`rwsem_acquire` and `rwsem_release` on `q->io_lockdep_map` and `q->q_lockdep_map`) become unbalanced. This unbalance is caused by a race condition: when Task A calls `blk_mq_unfreeze_queue`, it decrements `q->mq_freeze_depth` to 0 and releases the `mq_freeze_lock`. Before Task A can call `blk_unfreeze_release_lock`, Task B can call `blk_mq_freeze_queue`, acquire the lock, and modify `q->mq_freeze_disk_dead` or `q->mq_freeze_queue_dying`. Task A then reads the modified state and incorrectly skips or executes `rwsem_release`, leading to the lockdep warning.
**Security Impact:**
Crucially, the fields `mq_freeze_disk_dead`, `mq_freeze_queue_dying`, `mq_freeze_owner`, and `mq_freeze_owner_depth` in `struct request_queue` are strictly guarded by `#ifdef CONFIG_LOCKDEP`. Furthermore, the functions `rwsem_acquire` and `rwsem_release` are lockdep macros that compile to empty statements when `CONFIG_LOCKDEP` is disabled.
In production kernel builds, `CONFIG_LOCKDEP` is disabled. Therefore, this bug is purely a lockdep state tracking mismatch and has absolutely no effect on the actual queue freezing logic, memory safety, or control flow. It **cannot** cause a denial of service, memory corruption, or be exploited in any way.
**Triggerability:**
The bug is triggered during NVMe namespace scanning (`nvme_scan_ns`), which happens when an NVMe device is probed, added, or reset. This requires either physical access to plug in an NVMe device (Peripheral Trigger) or root privileges (e.g., `CAP_SYS_ADMIN` to issue `NVME_IOCTL_RESET` or write to the `rescan_controller` sysfs attribute). It cannot be triggered by unprivileged users or from within user namespaces.
|
| 6/2 |
2026/09/16 00:41 |
llm |
expert |
0m
Model:
Tokens:
input: 7154
output: 39
thoughts: 183
Thoughts: **Investigating a Nasty NVMe Bug**
Okay, so I've got a bug report staring me in the face: "WARNING: bad unlock balance detected!" β that's never a good sign, especially when dealing with NVMe, where you really don't want to mess up the locking. The stack trace, which I always start with, points directly to `nvme_update_ns_info`. And looking at that trace I can see that the problem seems to be originating from the `blk_mq_unfreeze_queue` function, then being called from within `nvme_update_ns_info`. The call chain goes like this: `nvme_update_ns_info` which then is called from `nvme_scan_ns`.
My immediate thought is to zero in on `drivers/nvme/host/core.c` around line 2623, where that critical `nvme_update_ns_info` function resides. That's the first point of attack. Let's see what's going on with the unlock balance there. Given the call stack, I suspect there may be a potential issue related to the flow between freezing and unfreezing the queue, or how this function is supposed to work with its parent functions `nvme_scan_ns` and `nvme_alloc_ns`.
|
| 7/2 |
2026/09/16 00:41 |
tool |
read-file |
0m
Args: map[File:drivers/nvme/host/core.c FirstLine:2600 LineCount:50]
Results: map[Contents:2600: lim.physical_block_size = ns_lim->physical_block_size;
2601: lim.io_min = ns_lim->io_min;
2602: lim.io_opt = ns_lim->io_opt;
2603: queue_limits_stack_bdev(&lim, ns->disk->part0, 0,
2604: ns->head->disk->disk_name);
2605: if (lim.features & BLK_FEAT_ZONED)
2606: nvme_stack_zone_resources(&lim, ns_lim);
2607: if (unsupported)
2608: ns->head->disk->flags |= GENHD_FL_HIDDEN;
2609: else
2610: nvme_init_integrity(ns->head, &lim, info);
2611: lim.max_write_streams = ns_lim->max_write_streams;
2612: lim.write_stream_granularity = ns_lim->write_stream_granularity;
2613: ret = queue_limits_commit_update(ns->head->disk->queue, &lim);
2614: if (ret)
2615: goto unfreeze_head_queue;
2616:
2617: set_capacity_and_notify(ns->head->disk, get_capacity(ns->disk));
2618: set_disk_ro(ns->head->disk, nvme_ns_is_readonly(ns, info));
2619: nvme_mpath_revalidate_paths(ns->head);
2620: ret = nvme_mpath_revalidate_zones(ns->head);
2621:
2622: unfreeze_head_queue:
2623: blk_mq_unfreeze_queue(ns->head->disk->queue, memflags);
2624: }
2625:
2626: return ret;
2627: }
2628:
2629: int nvme_ns_get_unique_id(struct nvme_ns *ns, u8 id[16],
2630: enum blk_unique_id type)
2631: {
2632: struct nvme_ns_ids *ids = &ns->head->ids;
2633:
2634: if (type != BLK_UID_EUI64)
2635: return -EINVAL;
2636:
2637: if (memchr_inv(ids->nguid, 0, sizeof(ids->nguid))) {
2638: memcpy(id, &ids->nguid, sizeof(ids->nguid));
2639: return sizeof(ids->nguid);
2640: }
2641: if (memchr_inv(ids->eui64, 0, sizeof(ids->eui64))) {
2642: memcpy(id, &ids->eui64, sizeof(ids->eui64));
2643: return sizeof(ids->eui64);
2644: }
2645:
2646: return -EINVAL;
2647: }
2648:
2649: static int nvme_get_unique_id(struct gendisk *disk, u8 id[16],
]
|
| 8/2 |
2026/09/16 00:41 |
llm |
expert |
0m
Model:
Tokens:
input: 8563
output: 39
thoughts: 18
Thoughts: Okay, here's my interpretation of that thought process, assuming I'm deeply familiar with NVMe and kernel-level code:
**Diving Deeper into Namespace Information Updates**
Alright, I'm thinking we need to trace back a bit, let's go further upstream and check out the `nvme_update_ns_info` function a bit earlier. We're looking at namespace information updates, and that likely means some crucial data is being changed or refreshed. I want to see *how* it's being updated, *what* triggers the update, and most importantly, *what* data is getting touched. I'm mentally parsing the call stack, anticipating the parameters being passed and how they influence the flow of execution. Understanding the earlier parts of this function will clarify the context and the potential impact of what's happening. I want to build a complete picture from the start.
|
| 9/2 |
2026/09/16 00:41 |
tool |
read-file |
0m
Args: map[File:drivers/nvme/host/core.c FirstLine:2550 LineCount:50]
Results: map[Contents:2550: ret = nvme_update_ns_info_generic(ns, info);
2551: break;
2552: }
2553: ret = nvme_update_ns_info_block(ns, info);
2554: break;
2555: case NVME_CSI_NVM:
2556: ret = nvme_update_ns_info_block(ns, info);
2557: break;
2558: default:
2559: dev_info(ns->ctrl->device,
2560: "block device for nsid %u not supported (csi %u)\n",
2561: info->nsid, info->ids.csi);
2562: ret = nvme_update_ns_info_generic(ns, info);
2563: break;
2564: }
2565:
2566: /*
2567: * If probing fails due an unsupported feature, hide the block device,
2568: * but still allow other access.
2569: */
2570: if (ret == -ENODEV) {
2571: ns->disk->flags |= GENHD_FL_HIDDEN;
2572: set_bit(NVME_NS_READY, &ns->flags);
2573: unsupported = true;
2574: ret = 0;
2575: }
2576:
2577: if (!ret && nvme_ns_head_multipath(ns->head)) {
2578: struct queue_limits *ns_lim = &ns->disk->queue->limits;
2579: struct queue_limits lim;
2580: unsigned int memflags;
2581:
2582: lim = queue_limits_start_update(ns->head->disk->queue);
2583: memflags = blk_mq_freeze_queue(ns->head->disk->queue);
2584: /*
2585: * queue_limits mixes values that are the hardware limitations
2586: * for bio splitting with what is the device configuration.
2587: *
2588: * For NVMe the device configuration can change after e.g. a
2589: * Format command, and we really want to pick up the new format
2590: * value here. But we must still stack the queue limits to the
2591: * least common denominator for multipathing to split the bios
2592: * properly.
2593: *
2594: * To work around this, we explicitly set the device
2595: * configuration to those that we just queried, but only stack
2596: * the splitting limits in to make sure we still obey possibly
2597: * lower limitations of other controllers.
2598: */
2599: lim.logical_block_size = ns_lim->logical_block_size;
]
|
| 10/2 |
2026/09/16 00:41 |
llm |
expert |
0m
Model:
Tokens:
input: 9605
output: 41
thoughts: 101
Thoughts: Here's my thinking process:
**Debugging a Block Layer Imbalance**
Okay, so I've hit a pretty nasty bug: "bad unlock balance detected!". My initial instinct is that this is likely a race condition or some kind of state mismatch. The error specifically flags `blk_mq_unfreeze_queue(ns->head->disk->queue, memflags);` as the culprit. That means something is trying to *unfreeze* a queue that isn't actually frozen, which is a classic symptom of some kind of synchronization issue in the block layer's queue management.
Now, I immediately recall that `blk_mq_freeze_queue(ns->head->disk->queue);` is called right before the unfreeze. This looks like the critical sequence. The `memflags` variable is being passed, so I can already foresee possible issues with flags and state transitioning.
My next step is to dive into the implementations of `blk_mq_freeze_queue` and `blk_mq_unfreeze_queue` functions. I need to understand *exactly* how they manipulate the queue's internal state. Specifically, I'll be looking for any potential for missing flags, premature unfreezing, or errors in state tracking. I'll be hunting for any condition that would lead to a false positive for the freeze. This seems like a promising path. This kind of debugging is my bread and butter!
|
| 11/2 |
2026/09/16 00:41 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/nvme/host/core.c Name:blk_mq_freeze_queue]
Results: map[SourceCode: 951: static inline unsigned int __must_check
952: blk_mq_freeze_queue(struct request_queue *q)
953: {
954: unsigned int memflags = memalloc_noio_save();
955:
956: blk_mq_freeze_queue_nomemsave(q);
957: return memflags;
958: }
SourceFile:include/linux/blk-mq.h]
|
| 12/2 |
2026/09/16 00:41 |
llm |
expert |
0m
Model:
Tokens:
input: 10188
output: 45
thoughts: 17
Thoughts: Okay, here's my summary, presented as a stream of thought:
**Diving into `blk_mq_freeze_queue_nomemsave`**
Alright, time to dig into this `blk_mq_freeze_queue_nomemsave` function. I need to refresh my memory on what exactly it does within the context of the block layer's multi-queue implementation. I know "freeze" usually implies a pause or suspension of some kind, but "nomemsave" is the intriguing part. That strongly suggests it's a freeze operation that's *not* designed to preserve the state of things in a way that allows a clean unfreeze or restart later. I wonder why they'd implement something with that constraint. Is it for emergency situations? Or perhaps for very specific scenarios where a full state save is overkill? Or maybe it's to avoid some sort of locking complexity? I need to look at the surrounding code to determine the exact use-case and understand the trade-offs they're making. My experience tells me that such a function is probably used for things that are transient, like error handling or debugging, or maybe for very specific control flows. Let's see...
|
| 13/2 |
2026/09/16 00:41 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/nvme/host/core.c Name:blk_mq_freeze_queue_nomemsave]
Results: map[SourceCode: 204: void blk_mq_freeze_queue_nomemsave(struct request_queue *q)
205: {
206: blk_freeze_queue_start(q);
207: blk_mq_freeze_queue_wait(q);
208: }
SourceFile:block/blk-mq.c]
|
| 14/2 |
2026/09/16 00:41 |
llm |
expert |
0m
Model:
Tokens:
input: 10611
output: 38
thoughts: 13
Thoughts: Okay, here's my attempt at summarizing that thought process, keeping in mind I'm speaking to a fellow expert:
**Investigating `blk_freeze_queue_start`**
Right, let's dive into this. The mental checklist here is pretty standard when I encounter a function name like `blk_freeze_queue_start`. The name itself strongly suggests it's related to freezing, or at least quiescing, a block device queue. I immediately start thinking about the implications β potential for data consistency, synchronization primitives involved, and likely interactions with the scheduler and other I/O layers.
I'm probably going to be mentally tracing execution paths, looking for where this function is called, and more importantly, *why*. What triggers the freeze? Is it initiated by user space, a kernel component, or perhaps in response to an external event? The context is key. I'll need to understand the scenarios where this is used.
I'll be drilling down into the arguments of the function too, obviously, what does it expect, what information does it need from the caller? The return values are also crucial. Failure conditions will be of particular interest. What happens if the freeze fails? Does it retry? Does it cause a panic?
Finally, I'm already anticipating a need to analyze the surrounding code. What locks are held when `blk_freeze_queue_start` is called? Are there any potential deadlocks? How is the queue unfrozen, and what's the general lifecycle of a frozen queue? This is going to be a deep dive.
|
| 15/2 |
2026/09/16 00:41 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:block/blk-mq.c Name:blk_freeze_queue_start]
Results: map[SourceCode: 182: void blk_freeze_queue_start(struct request_queue *q)
183: {
184: if (__blk_freeze_queue_start(q, current))
185: blk_freeze_acquire_lock(q);
186: }
SourceFile:block/blk-mq.c]
|
| 16/2 |
2026/09/16 00:41 |
llm |
expert |
0m
Model:
Tokens:
input: 11099
output: 39
thoughts: 14
Thoughts: Here's my attempt at summarizing the thought process, tailored for an expert audience and written in the first person:
**Investigating `__blk_freeze_queue_start`**
Okay, time to dive into `__blk_freeze_queue_start`. I need to refresh my memory on exactly how this function fits into the overall freezing/thawing mechanism of the block layer. I recall this being a critical entry point during quiescence, so I need to understand its exact role and the potential implications of its behavior. Specifically, I'm interested in how it interacts with the request queues, how it handles in-flight IO, and what synchronization primitives it relies on. I'm going to quickly look through the source code to confirm the presumed interaction with the freezing and thawing logic. The goal is to fully understand any potential race conditions and locking dependencies.
|
| 17/2 |
2026/09/16 00:41 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:block/blk-mq.c Name:__blk_freeze_queue_start]
Results: map[SourceCode: 163: bool __blk_freeze_queue_start(struct request_queue *q,
164: struct task_struct *owner)
165: {
166: bool freeze;
167:
168: mutex_lock(&q->mq_freeze_lock);
169: freeze = blk_freeze_set_owner(q, owner);
170: if (++q->mq_freeze_depth == 1) {
171: percpu_ref_kill(&q->q_usage_counter);
172: mutex_unlock(&q->mq_freeze_lock);
173: if (queue_is_mq(q))
174: blk_mq_run_hw_queues(q, false);
175: } else {
176: mutex_unlock(&q->mq_freeze_lock);
177: }
178:
179: return freeze;
180: }
SourceFile:block/blk-mq.c]
|
| 18/2 |
2026/09/16 00:41 |
llm |
expert |
0m
Model:
Tokens:
input: 11627
output: 38
thoughts: 13
Thoughts: Here's my attempt at summarizing the thought process, tailored for an expert audience and written in the first person:
**Diving into `blk_freeze_acquire_lock`**
Okay, time to dissect `blk_freeze_acquire_lock`. I need to refresh my understanding of its role in the block layer's freezing mechanism. I need to make sure I understand the locking semantics involved here; any missed details can lead to pretty nasty deadlock conditions or, at best, performance bottlenecks. Specifically, I should think about how this interacts with the various states a device might be in β active I/O, being frozen, quiescing... and how this specific function contributes to establishing an orderly transition between those states. Let's see how it handles concurrency and what protections it provides against race conditions, especially considering the potential for multiple threads or processes to be interacting with the block device at once. I want to check for any potential livelocks and evaluate the strategy for priority inversion.
|
| 19/2 |
2026/09/16 00:41 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:block/blk-mq.c Name:blk_freeze_acquire_lock]
Results: map[SourceCode: 761: static inline void blk_freeze_acquire_lock(struct request_queue *q)
762: {
763: if (!q->mq_freeze_disk_dead)
764: rwsem_acquire(&q->io_lockdep_map, 0, 1, _RET_IP_);
765: if (!q->mq_freeze_queue_dying)
766: rwsem_acquire(&q->q_lockdep_map, 0, 1, _RET_IP_);
767: }
SourceFile:block/blk.h]
|
| 20/2 |
2026/09/16 00:41 |
llm |
expert |
0m
Model:
Tokens:
input: 12053
output: 42
thoughts: 36
Thoughts: Okay, here's my interpretation of those thoughts, tailored for an expert audience, presented in the first person:
**Lockdep Debugging: A Deep Dive into `blk_mq_unfreeze_queue`**
Alright, that lockdep warning is screaming at me β specifically about the interaction with `&q->q_usage_counter(io)`. My immediate thought is, "Okay, where's the most likely spot for this to crop up?" The answer, logically, points me directly towards `blk_mq_unfreeze_queue`. It's the obvious place to start digging because that function is fundamentally about releasing a frozen queue β meaning it's highly likely to touch any related counters or synchronization primitives. I need to understand how we're interacting with `q_usage_counter` within that context. I need to figure out the exact sequence and locking order to see if we've violated any lockdep rules. Time to check the code.
|
| 21/2 |
2026/09/16 00:41 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:drivers/nvme/host/core.c Name:blk_mq_unfreeze_queue]
Results: map[SourceCode: 959: static inline void
960: blk_mq_unfreeze_queue(struct request_queue *q, unsigned int memflags)
961: {
962: blk_mq_unfreeze_queue_nomemrestore(q);
963: memalloc_noio_restore(memflags);
964: }
SourceFile:include/linux/blk-mq.h]
|
| 22/2 |
2026/09/16 00:41 |
llm |
expert |
0m
Model:
Tokens:
input: 12458
output: 45
thoughts: 18
Thoughts: Here's my attempt at summarizing the thought process, tailored for an expert audience:
**Diving into `blk_mq_unfreeze_queue_nomemrestore`**
Okay, so I'm looking at `blk_mq_unfreeze_queue_nomemrestore`. My initial thought is, this function must be pretty critical, given the "unfreeze" and "nomemrestore" aspects. It probably deals with resuming a block queue after a period of being suspended, but crucially, it avoids reallocating or restoring memory in that process. I need to understand the implications of that "nomemrestore" bit, because that suggests a carefully crafted unfreezing strategy.
I'm immediately considering the context. When does a queue get frozen in the first place? And what sort of resources are *not* being restored? Is this related to a specific kind of I/O workload or memory management scheme? Is it related to power-saving mechanisms? I bet it has something to do with gracefully handling low-memory situations or perhaps migrating I/O to a lower power state when the system's memory is constrained, or maybe for a checkpoint/restore scenario.
My first questions: What's the state of the queue *before* the unfreeze? What data structures are likely to be affected? How is this function called, and what is the expected call path? I'll probably need to look at the surrounding code to get the complete picture. The goal, I assume, is to make the queue functional again with minimal overhead, while handling any potential state inconsistencies that might have accumulated during the freeze. I'm going to have to check if any critical data that might be stored in the queue that I missed is being assumed to be safe. Also, any work that gets scheduled as part of the queue unfreezing will be key to understanding the execution path.
|
| 23/2 |
2026/09/16 00:42 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:include/linux/blk-mq.h Name:blk_mq_unfreeze_queue_nomemrestore]
Results: map[SourceCode: 230: void blk_mq_unfreeze_queue_nomemrestore(struct request_queue *q)
231: {
232: if (__blk_mq_unfreeze_queue(q, false))
233: blk_unfreeze_release_lock(q);
234: }
SourceFile:block/blk-mq.c]
|
| 24/2 |
2026/09/16 00:42 |
llm |
expert |
0m
Model:
Tokens:
input: 13024
output: 40
thoughts: 15
Thoughts: Okay, here's my attempt at summarizing that thought process, tailored for an expert audience:
**Diving into `__blk_mq_unfreeze_queue`**
Alright, time to dive into `__blk_mq_unfreeze_queue`. This isn't just a casual glance; I need to understand its role in thawing out a block I/O queue. I know this function is crucial for restoring functionality after a freeze event, so I'm expecting to see things like resetting per-queue state, possibly re-enabling dispatch, and likely some sort of mechanism to restart I/O submission. I'm hoping it's well-synchronized. I'm particularly interested in seeing how it handles potential races with other operations on the queue, and how it reintegrates the queue back into the scheduler's flow. The specific details of how this re-integration happens will dictate the performance hit or delay. Let's see how it achieves that. This is where the core of performance and responsiveness is managed when these block devices are involved.
|
| 25/2 |
2026/09/16 00:42 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:block/blk-mq.c Name:__blk_mq_unfreeze_queue]
Results: map[SourceCode: 211: bool __blk_mq_unfreeze_queue(struct request_queue *q, bool force_atomic)
212: {
213: bool unfreeze;
214:
215: mutex_lock(&q->mq_freeze_lock);
216: if (force_atomic)
217: q->q_usage_counter.data->force_atomic = true;
218: q->mq_freeze_depth--;
219: WARN_ON_ONCE(q->mq_freeze_depth < 0);
220: if (!q->mq_freeze_depth) {
221: percpu_ref_resurrect(&q->q_usage_counter);
222: wake_up_all(&q->mq_freeze_wq);
223: }
224: unfreeze = blk_unfreeze_check_owner(q);
225: mutex_unlock(&q->mq_freeze_lock);
226:
227: return unfreeze;
228: }
SourceFile:block/blk-mq.c]
|
| 26/2 |
2026/09/16 00:42 |
llm |
expert |
0m
Model:
Tokens:
input: 13617
output: 39
thoughts: 14
Thoughts: Here's my attempt at summarizing the thought process, tailored for an expert audience and written in the first person:
**Diving into `blk_unfreeze_release_lock`**
Okay, let's drill down into `blk_unfreeze_release_lock`. This function is critical for proper block device management, especially during unfreeze operations. I need to refresh my understanding of how it interacts with the underlying locking mechanisms β I suspect we're dealing with spinlocks, mutexes, or even RCU potentially, depending on the kernel version and specific block layer implementation. I should check how the lock is acquired, held, and then *released* within this function, as any subtle error there can lead to serious concurrency problems, deadlocks, or data corruption β especially under high I/O load. I'll need to pay close attention to the context in which this function is called: What threads are involved? Are there any interrupt handlers competing for the same resources? Does this function need to deal with any specific request queue aspects? And I'll need to make sure that any ordering requirements are adhered to. I need to verify that we're properly synchronizing with `blk_freeze_dev` and `blk_unfreeze_dev` or any other related locking scheme for that matter. Let's see how well it's been handled in the current kernel version. Let me start inspecting the code.
|
| 27/2 |
2026/09/16 00:42 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:block/blk-mq.c Name:blk_unfreeze_release_lock]
Results: map[SourceCode: 769: static inline void blk_unfreeze_release_lock(struct request_queue *q)
770: {
771: if (!q->mq_freeze_queue_dying)
772: rwsem_release(&q->q_lockdep_map, _RET_IP_);
773: if (!q->mq_freeze_disk_dead)
774: rwsem_release(&q->io_lockdep_map, _RET_IP_);
775: }
SourceFile:block/blk.h]
|
| 28/2 |
2026/09/16 00:42 |
llm |
expert |
0m
Model:
Tokens:
input: 14125
output: 38
thoughts: 139
Thoughts: **Investigating a Kernel Lock Release Issue**
Okay, so I'm staring at this kernel warning: "kworker/u8:28/9220 is trying to release lock (&q->q_usage_counter(io)) at: blk_mq_unfreeze_queue but there are no more locks to release!" Right, so a worker thread is attempting to drop a lock it doesn't actually hold, which is a classic race condition or logic error. My immediate thought is, "How in the *world* did that happen?"
The message tells me `blk_unfreeze_release_lock` is being called without a corresponding acquisition. That suggests a mismatch. Let's trace it back. The function `__blk_mq_unfreeze_queue` seemingly returned true (meaning it *thought* it needed to release something), but the critical function `__blk_freeze_queue_start` returned false (meaning it *didn't* actually freeze, and by extension didn't acquire the lock). Hmm. That's the crux of the problem. Something is preventing the expected lock acquisition. Now, my mind is jumping to potential culprit functions. It seems it has to do with how the system tracks the queue state, so I'll check `blk_freeze_set_owner` and `blk_unfreeze_check_owner`. These are the functions responsible for managing freeze/unfreeze state, and likely the source of our inconsistent lock tracking. I'll need to scrutinize how they interact to determine why the lock isn't being properly acquired before the release is attempted. Time to dive into the code...
|
| 29/2 |
2026/09/16 00:42 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:block/blk-mq.c Name:blk_freeze_set_owner]
Results: map[SourceCode: 116: static bool blk_freeze_set_owner(struct request_queue *q,
117: struct task_struct *owner)
118: {
119: if (!owner)
120: return false;
121:
122: if (!q->mq_freeze_depth) {
123: q->mq_freeze_owner = owner;
124: q->mq_freeze_owner_depth = 1;
125: q->mq_freeze_disk_dead = !q->disk ||
126: test_bit(GD_DEAD, &q->disk->state) ||
127: !blk_queue_registered(q);
128: q->mq_freeze_queue_dying = blk_queue_dying(q);
129: return true;
130: }
131:
132: if (owner == q->mq_freeze_owner)
133: q->mq_freeze_owner_depth += 1;
134: return false;
135: }
SourceFile:block/blk-mq.c]
|
| 30/2 |
2026/09/16 00:42 |
llm |
expert |
0m
Model:
Tokens:
input: 14978
output: 39
thoughts: 11
Thoughts: Okay, here's my attempt at summarizing that thought process, tailored for an expert audience, and written in the first person:
**Deep Dive into `blk_unfreeze_check_owner`**
Right, so I'm thinking about `blk_unfreeze_check_owner`. This functionβ¦ itβs a critical piece, isn't it? My mind immediately jumps to the implications for block device freezing and unfreezing, especially in the context of I/O scheduling and data integrity. I'm focusing on the *check_owner* aspect specifically, given the name. What's it doing here? Is it purely for access control? Ensuring only the freezing process can unfreeze it? Or is there more going on? Does it interact with resource accounting somehow?
Iβm immediately considering possible race conditions, too. What happens if multiple threads are attempting to unfreeze the device concurrently? Is there a mutex or atomic operation involved? How is the "owner" defined and checked? Is it based on a process ID, a task pointer, or something else entirely? The more I think about it, the more questions arise about potential deadlock scenarios, and how the design handles them. Are we relying on `blk_freeze_dev` holding some related locks before it sets a flag? I have to consider the impact of interrupts, as well.
Iβm trying to trace the logic mentally. Itβs important to see how the system ensures that the unfrozen state is consistent and safe. Ultimately, I'm trying to gain a more complete understanding of its role in the system.
|
| 31/2 |
2026/09/16 00:42 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:block/blk-mq.c Name:blk_unfreeze_check_owner]
Results: map[SourceCode: 137: /* verify the last unfreeze in owner context */
138: static bool blk_unfreeze_check_owner(struct request_queue *q)
139: {
140: if (q->mq_freeze_owner != current)
141: return false;
142: if (--q->mq_freeze_owner_depth == 0) {
143: q->mq_freeze_owner = NULL;
144: return true;
145: }
146: return false;
147: }
SourceFile:block/blk-mq.c]
|
| 32/2 |
2026/09/16 00:42 |
llm |
expert |
0m
Model:
Tokens:
input: 15546
output: 30
thoughts: 3512
Thoughts: **Analyzing a Potential Race Condition in blk-mq Freezing/Unfreezing**
Okay, so I'm digging into this `blk_mq_freeze_queue` and `blk_mq_unfreeze_queue` logic. The core of my concern revolves around what happens if two tasks, let's call them Task A and Task B, are operating on the same queue, and specifically, how the locking and freeze-depth management behaves. The code in `nvme_update_ns_info` caught my attention because it calls freeze.
My initial thought was the simplest: Task A freezes, then Task A *also* unfreezes immediately, which is fine, as `nvme_update_ns_info` handles that case. However, what if a different task is involved? I went down a rabbit hole trying to understand the possible execution flows, and started tracing what happens when a call to `blk_mq_freeze_queue` fails to acquire the inner `q->mq_freeze_lock`. This led me to consider the behavior of `blk_freeze_set_owner` and how it handles the `mq_freeze_depth` and `mq_freeze_owner` fields.
The initial tracing exercise made me think that the depth counters seemed to balance out, but there was a subtle case that I had missed. Then I dug deeper into `blk_freeze_acquire_lock` and `blk_unfreeze_release_lock`, focusing on `q->mq_freeze_disk_dead` and `q->mq_freeze_queue_dying`. I then realized that these flags, while seemingly consistent, are read outside the protection of the inner `mq_freeze_lock`. The fact that `__blk_mq_unfreeze_queue` decrements `q->mq_freeze_depth` to 0, which can then be immediately grabbed and modified by another thread, is critical.
A race condition has emerged. Specifically, I realized that if `q->mq_freeze_depth` becomes 0 in Task A, but another Task B can *immediately* modify `q->mq_freeze_disk_dead` inside its own call to `blk_mq_freeze_queue`, we have a problem. The old state of `q->mq_freeze_disk_dead` is potentially read and used to release a lock that it did *not* acquire. Or, vice-versa, to *not* release a lock that it did.
This leads to a "bad unlock balance detected!" scenario, and I finally honed in on the fact that `blk_queue_registered` can change from false to true, and subsequently cause the `q->mq_freeze_disk_dead` flag to be set to the wrong value between the calls to the lock/unlock methods. This perfectly matches the bug: a queue might be frozen *before* it's registered, then be unfrozen *after* it *is* registered.
Now I need to search for commits that address this...
|
| 33/2 |
2026/09/16 00:42 |
tool |
git-log |
0m
Args: map[CodeRegexp:blk_unfreeze_release_lock Count:10]
Results: map[Output:704340f1cd0d Merge tag 'x86_urgent_for_7.3-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
]
|
| 34/2 |
2026/09/16 00:43 |
llm |
expert |
0m
Model:
Tokens:
input: 19786
output: 29
thoughts: 49
Thoughts: **Investigating the Missing Lock Modification**
Okay, hold on a second. I'm reviewing the recent changes, and I'm drawing a blank. I'm *sure* I should have seen something, but I can't find any commits that directly modify `blk_unfreeze_release_lock`. That's strange. Time to widen the net. Let's broaden the search parameters. I need to look for any changes that might touch on related locking mechanisms. I'll search for commits that modify *either* `blk_freeze_acquire_lock` or `blk_unfreeze_release_lock`. Hopefully, this will uncover what I'm looking for - or at least point me in the right direction to understanding why I can't find the specific change I was expecting.
|
| 35/2 |
2026/09/16 00:43 |
tool |
git-log |
0m
Args: map[CodeRegexp:mq_freeze_disk_dead Count:10]
Results: map[Output:704340f1cd0d Merge tag 'x86_urgent_for_7.3-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
]
|
| 36/2 |
2026/09/16 00:43 |
llm |
expert |
0m
Model:
Tokens:
input: 20096
output: 21
thoughts: 34
Thoughts: Okay, here's my interpretation of those thoughts, tailored for an expert audience:
**Troubleshooting a Git History Query**
Hmm, I think that `git log` query I was running with `CodeRegexp` might be giving me faulty results, possibly merging commits when I don't want them. That's a classic pitfall with `git log` and complex regular expressions. The alternative solutions here is to try querying the `SymbolName` instead, which is usually a cleaner approach to locate the commit that contains a change to the symbol. That should give me a more accurate result and is less susceptible to unintended matches in the merge messages. Or, in the worst case, I'll go with a simple grep; it might be slower but will be more reliable.
|
| 37/2 |
2026/09/16 00:43 |
tool |
grepper |
0m
Args: map[Expression:mq_freeze_disk_dead]
Results: map[Output:block/blk-mq.c=116=static bool blk_freeze_set_owner(struct request_queue *q,
--
block/blk-mq.c-124- q->mq_freeze_owner_depth = 1;
block/blk-mq.c:125: q->mq_freeze_disk_dead = !q->disk ||
block/blk-mq.c-126- test_bit(GD_DEAD, &q->disk->state) ||
--
block/blk.h=761=static inline void blk_freeze_acquire_lock(struct request_queue *q)
block/blk.h-762-{
block/blk.h:763: if (!q->mq_freeze_disk_dead)
block/blk.h-764- rwsem_acquire(&q->io_lockdep_map, 0, 1, _RET_IP_);
--
block/blk.h=769=static inline void blk_unfreeze_release_lock(struct request_queue *q)
--
block/blk.h-772- rwsem_release(&q->q_lockdep_map, _RET_IP_);
block/blk.h:773: if (!q->mq_freeze_disk_dead)
block/blk.h-774- rwsem_release(&q->io_lockdep_map, _RET_IP_);
--
include/linux/blkdev.h=488=struct request_queue {
--
include/linux/blkdev.h-639- */
include/linux/blkdev.h:640: bool mq_freeze_disk_dead;
include/linux/blkdev.h-641- bool mq_freeze_queue_dying;
]
|
| 38/2 |
2026/09/16 00:43 |
llm |
expert |
0m
Model:
Tokens:
input: 20758
output: 26
thoughts: 29
Thoughts: Okay, here's my interpretation of that thought process, delivered in the first person, as if these are my own thoughts:
**Analyzing Potential Block Layer Regression**
Right, let's get down to brass tacks. I'm suspecting a recent regression, likely related to the block layer in the Linux kernel. To pinpoint the source, my first port of call will be the git log. Specifically, I'm going to focus my search on `block/blk-mq.c` and `block/blk.h`. These files are crucial, especially around the lines of code I'm considering. The commit history for those files should offer the best clues. I need to quickly identify any recent changes, especially those touching the areas I'm concerned about. This approach is the most efficient starting point to establish if this is a known issue, a new one or if the source is elsewhere. Knowing the history will allow me to track potential regressions and their causes much faster than diving directly into debugging.
|
| 39/2 |
2026/09/16 00:43 |
tool |
git-log |
0m
Args: map[Count:10 PathPrefix:block/blk.h]
Results: map[Output:704340f1cd0d Merge tag 'x86_urgent_for_7.3-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
]
|
| 40/2 |
2026/09/16 00:43 |
llm |
expert |
0m
Model:
Tokens:
input: 21086
output: 39
thoughts: 47
Thoughts: Okay, here's my interpretation of those thoughts, tailored for an expert audience:
**Debugging a Misbehaving `git-log`**
Right, so `git-log` is acting up, and for whatever reason it's just showing me the HEAD commit. That's not what I expected at all. I was hoping for something specific, clearly. Let's dig in and try a more targeted query. Perhaps the issue lies in my initial parameters, or lack thereof. I'll attempt a more precise filter. Let me refine this using `SymbolName="blk_freeze_acquire_lock" SourcePath="block/blk.h"`. Hopefully, with these more specific filters, I can pinpoint the commit history related to `blk_freeze_acquire_lock` within `block/blk.h`. Time to see if it delivers.
|
| 41/2 |
2026/09/16 00:43 |
tool |
git-log |
0m
Args: map[Count:10 SourcePath:block/blk.h SymbolName:blk_freeze_acquire_lock]
Results: map[Output:704340f1cd0d Merge tag 'x86_urgent_for_7.3-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
]
|
| 42/2 |
2026/09/16 00:43 |
llm |
expert |
0m
Model:
Tokens:
input: 21415
output: 14
thoughts: 41
Thoughts: **Investigating a Singular Git Log Output**
Hmm, that's odd. The `git log` command is only showing me a single commit. That's not right; there should be more history in this repository. My immediate thought is that either I'm dealing with a shallow repository, which would explain the truncated history, or, far more likely, I'm misusing the tool in some subtle way. The command itself is fairly straightforward, but it's always possible I've overlooked a flag or some other detail affecting the output.
Okay, let's pivot. If `git log` isn't giving me the full picture, I'll bypass it for now. I'll use `git show` on the `HEAD` commit. That should show me the details of the most recent commit, regardless of the underlying repository depth. Hopefully, that will give me enough context to understand what's going on and debug this further.
|
| 43/2 |
2026/09/16 00:43 |
tool |
git-show |
0m
Args:
Results: map[Output:commit 704340f1cd0dcef829eb62f5b48ae95a2ce17bdf
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Sun Sep 13 17:50:28 2026 -0700
Merge tag 'x86_urgent_for_7.3-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 fixes from Dave Hansen:
"The most notable fix is THP not silently losing user data and having
been around for a couple of years. The main explanation I'd have for
its longevity is that it requires a few different things to align at
the same time: MADV_FREE, THP and heavy reclaim.
- Fix user-space data loss with THP
- Fix set_memory oopses
- Fix addition of large constants in mul_u64_add_u64_div_u64()
- Fix FineIBT hash offset in cfi_get_func_hash()
- Fix PCI device reference counting in amd_smn_init()"
* tag 'x86_urgent_for_7.3-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/amd_node: Fix PCI device reference counting in amd_smn_init()
x86/div64: Fix addition of large constants in mul_u64_add_u64_div_u64()
x86/cfi: Fix FineIBT hash offset in cfi_get_func_hash()
x86/mm: Fix user-space data loss with MADV_FREE and THP
x86/mm/pat: Allocate split page tables as kernel page tables
x86/alternatives: Exclude text poking against change_page_attr()
x86/mm/pat: Acquire init_mm read lock on attribute changes to avoid UAF
x86/mm/pat: Acquire init_mm write lock on collapse to avoid UAF
.clang-format | 808 +
.clippy.toml | 21 +
.cocciconfig | 3 +
.editorconfig | 27 +
.get_maintainer.ignore | 9 +
.gitattributes | 5 +
.gitignore | 196 +
.mailmap | 996 +
.pylintrc | 2 +
.rustfmt.toml | 12 +
COPYING | 20 +
CREDITS | 4651 +
Documentation/.gitignore | 3 +
Documentation/.renames.txt | 1185 +
Documentation/ABI/README | 98 +
.../ABI/obsolete/automount-tracefs-debugfs | 20 +
Documentation/ABI/obsolete/o2cb | 11 +
Documentation/ABI/obsolete/procfs-i8k | 10 +
Documentation/ABI/obsolete/sysfs-bus-iio | 174 +
Documentation/ABI/obsolete/sysfs-bus-usb | 31 +
Documentation/ABI/obsolete/sysfs-class-typec | 48 +
Documentation/ABI/obsolete/sysfs-cpuidle | 9 +
.../ABI/obsolete/sysfs-driver-hid-roccat-arvo | 53 +
.../ABI/obsolete/sysfs-driver-hid-roccat-isku | 153 +
.../ABI/obsolete/sysfs-driver-hid-roccat-koneplus | 145 +
.../ABI/obsolete/sysfs-driver-hid-roccat-konepure | 105 +
.../ABI/obsolete/sysfs-driver-hid-roccat-kovaplus | 116 +
.../ABI/obsolete/sysfs-driver-hid-roccat-lua | 7 +
.../ABI/obsolete/sysfs-driver-hid-roccat-pyra | 126 +
.../ABI/obsolete/sysfs-driver-hid-roccat-ryos | 178 +
.../ABI/obsolete/sysfs-driver-hid-roccat-savu | 77 +
.../ABI/obsolete/sysfs-driver-intel_pmc_bxt | 22 +
Documentation/ABI/obsolete/sysfs-driver-ivpu | 30 +
.../ABI/obsolete/sysfs-driver-samsung-laptop | 10 +
Documentation/ABI/obsolete/sysfs-firmware-acpi | 8 +
Documentation/ABI/obsolete/sysfs-gpio | 40 +
.../ABI/obsolete/sysfs-kernel-fadump_enabled | 9 +
.../ABI/obsolete/sysfs-kernel-fadump_registered | 10 +
.../ABI/obsolete/sysfs-kernel-fadump_release_mem | 10 +
.../ABI/obsolete/sysfs-kernel-kexec-kdump | 71 +
.../ABI/obsolete/sysfs-platform-ideapad-laptop | 8 +
Documentation/ABI/removed/devfs | 13 +
Documentation/ABI/removed/dv1394 | 14 +
Documentation/ABI/removed/ip_queue | 9 +
Documentation/ABI/removed/net_dma | 8 +
Documentation/ABI/removed/o2cb | 10 +
Documentation/ABI/removed/raw1394 | 16 +
Documentation/ABI/removed/sysfs-bus-nfit | 17 +
Documentation/ABI/removed/sysfs-class-cxl | 272 +
Documentation/ABI/removed/sysfs-class-rfkill | 13 +
Documentation/ABI/removed/sysfs-firmware-efi-vars | 12 +
.../removed/sysfs-kernel-fadump_release_opalcore | 9 +
Documentation/ABI/removed/sysfs-kernel-uids | 14 +
Documentation/ABI/removed/sysfs-mce | 37 +
.../ABI/removed/sysfs-selinux-checkreqprot | 26 +
Documentation/ABI/removed/sysfs-selinux-disable | 29 +
Documentation/ABI/removed/sysfs-selinux-user | 12 +
Documentation/ABI/removed/video1394 | 17 +
Documentation/ABI/stable/configfs-nvmet | 352 +
Documentation/ABI/stable/firewire-cdev | 111 +
Documentation/ABI/stable/o2cb | 10 +
Documentation/ABI/stable/procfs-audit_loginuid | 27 +
Documentation/ABI/stable/syscalls | 10 +
Documentation/ABI/stable/sysfs-acpi-pmprofile | 28 +
Documentation/ABI/stable/sysfs-block | 941 +
Documentation/ABI/stable/sysfs-bus-firewire | 136 +
Documentation/ABI/stable/sysfs-bus-fsl-mc | 19 +
Documentation/ABI/stable/sysfs-bus-mhi | 44 +
Documentation/ABI/stable/sysfs-bus-nvmem | 50 +
Documentation/ABI/stable/sysfs-bus-usb | 142 +
Documentation/ABI/stable/sysfs-bus-vmbus | 187 +
Documentation/ABI/stable/sysfs-bus-w1 | 12 +
Documentation/ABI/stable/sysfs-bus-xen-backend | 84 +
Documentation/ABI/stable/sysfs-class-backlight | 63 +
Documentation/ABI/stable/sysfs-class-bluetooth | 9 +
Documentation/ABI/stable/sysfs-class-infiniband | 784 +
Documentation/ABI/stable/sysfs-class-rfkill | 93 +
Documentation/ABI/stable/sysfs-class-tpm | 210 +
Documentation/ABI/stable/sysfs-class-ubi | 221 +
Documentation/ABI/stable/sysfs-class-udc | 93 +
Documentation/ABI/stable/sysfs-devices | 32 +
Documentation/ABI/stable/sysfs-devices-node | 238 +
Documentation/ABI/stable/sysfs-devices-system-cpu | 117 +
.../ABI/stable/sysfs-devices-system-xen_memory | 86 +
Documentation/ABI/stable/sysfs-driver-aspeed-vuart | 24 +
Documentation/ABI/stable/sysfs-driver-dma-idxd | 376 +
Documentation/ABI/stable/sysfs-driver-dma-ioatdma | 30 +
.../ABI/stable/sysfs-driver-firmware-zynqmp | 256 +
Documentation/ABI/stable/sysfs-driver-ib_srp | 192 +
Documentation/ABI/stable/sysfs-driver-misc-cp500 | 25 +
Documentation/ABI/stable/sysfs-driver-mlxreg-io | 815 +
Documentation/ABI/stable/sysfs-driver-qaic | 19 +
Documentation/ABI/stable/sysfs-driver-qla2xxx | 8 +
Documentation/ABI/stable/sysfs-driver-speakup | 394 +
Documentation/ABI/stable/sysfs-driver-usb-usbtmc | 27 +
Documentation/ABI/stable/sysfs-driver-w1_ds2438 | 13 +
Documentation/ABI/stable/sysfs-driver-w1_ds28e04 | 15 +
Documentation/ABI/stable/sysfs-driver-w1_ds28ea00 | 6 +
Documentation/ABI/stable/sysfs-firmware-opal-dump | 46 +
Documentation/ABI/stable/sysfs-firmware-opal-elog | 62 +
Documentation/ABI/stable/sysfs-fs-orangefs | 87 +
Documentation/ABI/stable/sysfs-hypervisor-xen | 135 +
Documentation/ABI/stable/sysfs-kernel-notes | 5 +
.../ABI/stable/sysfs-kernel-time-aux-clocks | 5 +
Documentation/ABI/stable/sysfs-module | 47 +
Documentation/ABI/stable/sysfs-nvme | 453 +
Documentation/ABI/stable/sysfs-platform-wmi-bmof | 7 +
Documentation/ABI/stable/sysfs-transport-srp | 58 +
Documentation/ABI/stable/thermal-notification | 4 +
Documentation/ABI/stable/vdso | 37 +
Documentation/ABI/testing/amdpmf-interface | 73 +
Documentation/ABI/testing/configfs-acpi | 52 +
Documentation/ABI/testing/configfs-iio | 34 +
Documentation/ABI/testing/configfs-most | 241 +
Documentation/ABI/testing/configfs-rdma_cm | 34 +
.../ABI/testing/configfs-spear-pcie-gadget | 33 +
Documentation/ABI/testing/configfs-stp-policy | 48 +
.../ABI/testing/configfs-stp-policy-p_sys-t | 41 +
.../ABI/testing/configfs-thunderbolt_stream | 98 +
Documentation/ABI/testing/configfs-tsm-report | 161 +
Documentation/ABI/testing/configfs-usb-gadget | 158 +
Documentation/ABI/testing/configfs-usb-gadget-acm | 15 +
Documentation/ABI/testing/configfs-usb-gadget-ecm | 20 +
Documentation/ABI/testing/configfs-usb-gadget-eem | 16 +
Documentation/ABI/testing/configfs-usb-gadget-ffs | 17 +
Documentation/ABI/testing/configfs-usb-gadget-hid | 13 +
.../ABI/testing/configfs-usb-gadget-loopback | 10 +
.../ABI/testing/configfs-usb-gadget-mass-storage | 41 +
Documentation/ABI/testing/configfs-usb-gadget-midi | 15 +
.../ABI/testing/configfs-usb-gadget-midi2 | 54 +
Documentation/ABI/testing/configfs-usb-gadget-ncm | 15 +
Documentation/ABI/testing/configfs-usb-gadget-obex | 9 +
.../ABI/testing/configfs-usb-gadget-phonet | 8 +
.../ABI/testing/configfs-usb-gadget-printer | 11 +
.../ABI/testing/configfs-usb-gadget-rndis | 19 +
.../ABI/testing/configfs-usb-gadget-serial | 9 +
.../ABI/testing/configfs-usb-gadget-sourcesink | 16 +
.../ABI/testing/configfs-usb-gadget-subset | 16 +
Documentation/ABI/testing/configfs-usb-gadget-tcm | 6 +
Documentation/ABI/testing/configfs-usb-gadget-uac1 | 41 +
.../ABI/testing/configfs-usb-gadget-uac1_legacy | 9 +
Documentation/ABI/testing/configfs-usb-gadget-uac2 | 51 +
Documentation/ABI/testing/configfs-usb-gadget-uvc | 438 +
Documentation/ABI/testing/debugfs-alienware-wmi | 64 +
Documentation/ABI/testing/debugfs-amd-iommu | 131 +
Documentation/ABI/testing/debugfs-cdns-pcie | 5 +
Documentation/ABI/testing/debugfs-cec-error-inj | 40 +
Documentation/ABI/testing/debugfs-cros-ec | 78 +
Documentation/ABI/testing/debugfs-cxl | 157 +
Documentation/ABI/testing/debugfs-dell-wmi-ddv | 34 +
Documentation/ABI/testing/debugfs-driver-dcc | 127 +
Documentation/ABI/testing/debugfs-driver-genwqe | 91 +
.../ABI/testing/debugfs-driver-habanalabs | 323 +
Documentation/ABI/testing/debugfs-driver-qat | 109 +
.../ABI/testing/debugfs-driver-qat_telemetry | 259 +
Documentation/ABI/testing/debugfs-dwc-pcie | 157 +
Documentation/ABI/testing/debugfs-ec | 21 +
Documentation/ABI/testing/debugfs-hisi-hpre | 200 +
Documentation/ABI/testing/debugfs-hisi-migration | 25 +
Documentation/ABI/testing/debugfs-hisi-sec | 173 +
Documentation/ABI/testing/debugfs-hisi-zip | 174 +
Documentation/ABI/testing/debugfs-hyperv | 23 +
Documentation/ABI/testing/debugfs-ideapad | 19 +
Documentation/ABI/testing/debugfs-iio-ad9467 | 39 +
Documentation/ABI/testing/debugfs-iio-backend | 20 +
Documentation/ABI/testing/debugfs-intel-iommu | 276 +
Documentation/ABI/testing/debugfs-moxtet | 35 +
Documentation/ABI/testing/debugfs-msi-wmi-platform | 14 +
Documentation/ABI/testing/debugfs-olpc | 16 +
Documentation/ABI/testing/debugfs-pcie-ptm | 70 +
Documentation/ABI/testing/debugfs-pfo-nx-crypto | 45 +
Documentation/ABI/testing/debugfs-scmi | 70 +
Documentation/ABI/testing/debugfs-scmi-raw | 208 +
Documentation/ABI/testing/debugfs-tpmi | 40 +
Documentation/ABI/testing/debugfs-vfio | 57 +
Documentation/ABI/testing/debugfs-wilco-ec | 45 +
Documentation/ABI/testing/dell-smbios-wmi | 41 +
Documentation/ABI/testing/dev-kmsg | 127 +
Documentation/ABI/testing/devlink-resource-mlxsw | 33 +
Documentation/ABI/testing/evm | 109 +
Documentation/ABI/testing/gpio-cdev | 28 +
Documentation/ABI/testing/ima_policy | 196 +
Documentation/ABI/testing/ppc-memtrace | 46 +
Documentation/ABI/testing/procfs-attr-current | 20 +
Documentation/ABI/testing/procfs-attr-exec | 20 +
Documentation/ABI/testing/procfs-attr-prev | 19 +
Documentation/ABI/testing/procfs-diskstats | 43 +
.../ABI/testing/procfs-nfsd-reply_cache_stats | 38 +
Documentation/ABI/testing/procfs-smaps_rollup | 42 +
Documentation/ABI/testing/pstore | 47 +
Documentation/ABI/testing/rtc-cdev | 50 +
Documentation/ABI/testing/securityfs-secrets-coco | 51 +
Documentation/ABI/testing/sysfs-amd-pmc | 13 +
Documentation/ABI/testing/sysfs-amd-pmf | 13 +
Documentation/ABI/testing/sysfs-ata | 140 +
.../ABI/testing/sysfs-auxdisplay-linedisp | 90 +
Documentation/ABI/testing/sysfs-block-aoe | 45 +
Documentation/ABI/testing/sysfs-block-bcache | 149 +
Documentation/ABI/testing/sysfs-block-device | 119 +
Documentation/ABI/testing/sysfs-block-dm | 47 +
Documentation/ABI/testing/sysfs-block-loop | 50 +
Documentation/ABI/testing/sysfs-block-rnbd | 64 +
Documentation/ABI/testing/sysfs-block-rssd | 5 +
Documentation/ABI/testing/sysfs-block-zram | 166 +
Documentation/ABI/testing/sysfs-bus-acpi | 98 +
Documentation/ABI/testing/sysfs-bus-amba | 20 +
Documentation/ABI/testing/sysfs-bus-auxiliary | 9 +
Documentation/ABI/testing/sysfs-bus-bcma | 31 +
Documentation/ABI/testing/sysfs-bus-cdx | 121 +
Documentation/ABI/testing/sysfs-bus-coreboot | 45 +
.../ABI/testing/sysfs-bus-coresight-devices-cti | 247 +
.../sysfs-bus-coresight-devices-dummy-source | 21 +
.../ABI/testing/sysfs-bus-coresight-devices-etb10 | 88 +
.../ABI/testing/sysfs-bus-coresight-devices-etm3x | 328 +
.../ABI/testing/sysfs-bus-coresight-devices-etm4x | 532 +
.../ABI/testing/sysfs-bus-coresight-devices-funnel | 18 +
.../ABI/testing/sysfs-bus-coresight-devices-stm | 59 +
.../ABI/testing/sysfs-bus-coresight-devices-tmc | 115 +
.../ABI/testing/sysfs-bus-coresight-devices-tpda | 69 +
.../ABI/testing/sysfs-bus-coresight-devices-tpdm | 290 +
.../ABI/testing/sysfs-bus-coresight-devices-trbe | 20 +
.../testing/sysfs-bus-coresight-devices-ultra_smb | 31 +
Documentation/ABI/testing/sysfs-bus-counter | 477 +
Documentation/ABI/testing/sysfs-bus-css | 56 +
Documentation/ABI/testing/sysfs-bus-cxl | 646 +
Documentation/ABI/testing/sysfs-bus-dax | 177 +
Documentation/ABI/testing/sysfs-bus-dfl | 17 +
.../ABI/testing/sysfs-bus-dfl-devices-emif | 25 +
.../ABI/testing/sysfs-bus-dfl-devices-n3000-nios | 47 +
.../ABI/testing/sysfs-bus-event_source-devices | 24 +
.../testing/sysfs-bus-event_source-devices-caps | 24 +
.../testing/sysfs-bus-event_source-devices-dfl_fme | 104 +
.../ABI/testing/sysfs-bus-event_source-devices-dsa | 30 +
.../testing/sysfs-bus-event_source-devices-events | 102 +
.../testing/sysfs-bus-event_source-devices-format | 21 +
.../sysfs-bus-event_source-devices-hisi_ptt | 113 +
.../testing/sysfs-bus-event_source-devices-hv_24x7 | 98 +
.../testing/sysfs-bus-event_source-devices-hv_gpci | 242 +
.../testing/sysfs-bus-event_source-devices-iommu | 37 +
.../testing/sysfs-bus-event_source-devices-rdpmc | 44 +
.../testing/sysfs-bus-event_source-devices-uncore | 13 +
.../testing/sysfs-bus-event_source-devices-vpa-dtl | 25 +
.../testing/sysfs-bus-event_source-devices-vpa-pmu | 25 +
Documentation/ABI/testing/sysfs-bus-fcoe | 138 +
Documentation/ABI/testing/sysfs-bus-fsi | 46 +
.../ABI/testing/sysfs-bus-fsi-devices-sbefifo | 10 +
Documentation/ABI/testing/sysfs-bus-fsl-mc | 25 +
Documentation/ABI/testing/sysfs-bus-hsi | 19 +
.../ABI/testing/sysfs-bus-i2c-devices-bq32k | 7 +
.../ABI/testing/sysfs-bus-i2c-devices-fsa9480 | 27 +
.../ABI/testing/sysfs-bus-i2c-devices-hm6352 | 21 +
.../ABI/testing/sysfs-bus-i2c-devices-lm3533 | 15 +
.../ABI/testing/sysfs-bus-i2c-devices-m24lr | 100 +
.../ABI/testing/sysfs-bus-i2c-devices-pca954x | 23 +
.../testing/sysfs-bus-i2c-devices-turris-omnia-mcu | 113 +
Documentation/ABI/testing/sysfs-bus-i3c | 194 +
Documentation/ABI/testing/sysfs-bus-iio | 2511 +
.../ABI/testing/sysfs-bus-iio-accel-adxl372 | 7 +
.../ABI/testing/sysfs-bus-iio-accel-bmc150 | 7 +
Documentation/ABI/testing/sysfs-bus-iio-ad9739a | 19 +
.../ABI/testing/sysfs-bus-iio-adc-ad-sigma-delta | 23 +
Documentation/ABI/testing/sysfs-bus-iio-adc-ad4130 | 20 +
Documentation/ABI/testing/sysfs-bus-iio-adc-ad7192 | 27 +
.../ABI/testing/sysfs-bus-iio-adc-ad7280a | 13 +
.../testing/sysfs-bus-iio-adc-envelope-detector | 39 +
Documentation/ABI/testing/sysfs-bus-iio-adc-hi8435 | 48 +
.../ABI/testing/sysfs-bus-iio-adc-max11410 | 13 +
.../ABI/testing/sysfs-bus-iio-adc-mcp3564 | 53 +
Documentation/ABI/testing/sysfs-bus-iio-adc-mt6360 | 78 +
.../ABI/testing/sysfs-bus-iio-adc-pac1934 | 9 +
Documentation/ABI/testing/sysfs-bus-iio-adc-stm32 | 21 +
Documentation/ABI/testing/sysfs-bus-iio-bno055 | 81 +
Documentation/ABI/testing/sysfs-bus-iio-cdc-ad7746 | 11 +
.../ABI/testing/sysfs-bus-iio-chemical-sgp40 | 17 +
.../ABI/testing/sysfs-bus-iio-chemical-sunrise-co2 | 38 +
.../ABI/testing/sysfs-bus-iio-chemical-vz89x | 7 +
Documentation/ABI/testing/sysfs-bus-iio-cros-ec | 21 +
Documentation/ABI/testing/sysfs-bus-iio-dac | 61 +
Documentation/ABI/testing/sysfs-bus-iio-dac-ad5766 | 31 +
.../ABI/testing/sysfs-bus-iio-dac-dpot-dac | 8 +
.../ABI/testing/sysfs-bus-iio-dac-ltc2688 | 55 +
.../ABI/testing/sysfs-bus-iio-dfsdm-adc-stm32 | 22 +
.../ABI/testing/sysfs-bus-iio-distance-srf08 | 17 +
Documentation/ABI/testing/sysfs-bus-iio-dma-buffer | 19 +
.../ABI/testing/sysfs-bus-iio-filter-admv8818 | 18 +
Documentation/ABI/testing/sysfs-bus-iio-flow | 21 +
Documentation/ABI/testing/sysfs-bus-iio-frequency | 11 +
.../ABI/testing/sysfs-bus-iio-frequency-ad9523 | 31 +
.../ABI/testing/sysfs-bus-iio-frequency-adf4350 | 11 +
.../ABI/testing/sysfs-bus-iio-frequency-adf4371 | 11 +
.../ABI/testing/sysfs-bus-iio-frequency-admv1013 | 38 +
.../ABI/testing/sysfs-bus-iio-frequency-admv1014 | 23 +
.../ABI/testing/sysfs-bus-iio-gyro-bmg160 | 7 +
.../ABI/testing/sysfs-bus-iio-health-afe440x | 39 +
Documentation/ABI/testing/sysfs-bus-iio-humidity | 10 +
.../sysfs-bus-iio-impedance-analyzer-ad5933 | 35 +
Documentation/ABI/testing/sysfs-bus-iio-ina2xx-adc | 15 +
.../ABI/testing/sysfs-bus-iio-inv_icm42600 | 18 +
Documentation/ABI/testing/sysfs-bus-iio-isl29501 | 47 +
.../ABI/testing/sysfs-bus-iio-light-isl29018 | 21 +
.../ABI/testing/sysfs-bus-iio-light-lm3533-als | 56 +
.../ABI/testing/sysfs-bus-iio-light-si1133 | 22 +
.../ABI/testing/sysfs-bus-iio-light-tsl2583 | 20 +
.../ABI/testing/sysfs-bus-iio-light-tsl2772 | 13 +
.../ABI/testing/sysfs-bus-iio-magnetometer-hmc5843 | 20 +
Documentation/ABI/testing/sysfs-bus-iio-meas-spec | 7 +
Documentation/ABI/testing/sysfs-bus-iio-mpu6050 | 13 +
.../testing/sysfs-bus-iio-potentiometer-mcp4531 | 8 +
Documentation/ABI/testing/sysfs-bus-iio-proximity | 24 +
.../ABI/testing/sysfs-bus-iio-proximity-as3935 | 15 +
.../ABI/testing/sysfs-bus-iio-resolver-ad2s1210 | 27 +
Documentation/ABI/testing/sysfs-bus-iio-sps30 | 28 +
Documentation/ABI/testing/sysfs-bus-iio-sx9310 | 10 +
Documentation/ABI/testing/sysfs-bus-iio-sx9324 | 29 +
.../ABI/testing/sysfs-bus-iio-thermocouple | 18 +
.../ABI/testing/sysfs-bus-iio-timer-stm32 | 143 +
.../ABI/testing/sysfs-bus-iio-trigger-sysfs | 42 +
Documentation/ABI/testing/sysfs-bus-iio-vf610 | 16 +
.../ABI/testing/sysfs-bus-intel_th-devices-gth | 52 +
.../ABI/testing/sysfs-bus-intel_th-devices-msc | 54 +
.../ABI/testing/sysfs-bus-intel_th-devices-pti | 24 +
.../ABI/testing/sysfs-bus-intel_th-output-devices | 15 +
Documentation/ABI/testing/sysfs-bus-mcb | 29 +
Documentation/ABI/testing/sysfs-bus-mdio | 72 +
Documentation/ABI/testing/sysfs-bus-media | 6 +
Documentation/ABI/testing/sysfs-bus-mei | 56 +
Documentation/ABI/testing/sysfs-bus-mmc | 4 +
Documentation/ABI/testing/sysfs-bus-most | 299 +
Documentation/ABI/testing/sysfs-bus-moxtet-devices | 17 +
Documentation/ABI/testing/sysfs-bus-nfit | 233 +
Documentation/ABI/testing/sysfs-bus-nvdimm | 60 +
Documentation/ABI/testing/sysfs-bus-optee-devices | 17 +
Documentation/ABI/testing/sysfs-bus-papr-pmem | 75 +
Documentation/ABI/testing/sysfs-bus-pci | 704 +
.../ABI/testing/sysfs-bus-pci-devices-aer | 163 +
.../ABI/testing/sysfs-bus-pci-devices-avs | 8 +
.../ABI/testing/sysfs-bus-pci-devices-catpt | 17 +
.../ABI/testing/sysfs-bus-pci-devices-cciss | 80 +
.../ABI/testing/sysfs-bus-pci-devices-pvpanic | 26 +
.../ABI/testing/sysfs-bus-pci-drivers-btintel_pcie | 15 +
.../ABI/testing/sysfs-bus-pci-drivers-ehci_hcd | 46 +
.../ABI/testing/sysfs-bus-pci-drivers-janz-cmodio | 8 +
.../ABI/testing/sysfs-bus-pci-drivers-xhci_hcd | 129 +
Documentation/ABI/testing/sysfs-bus-peci | 16 +
Documentation/ABI/testing/sysfs-bus-platform | 56 +
.../sysfs-bus-platform-devices-ampere-smpro | 325 +
.../testing/sysfs-bus-platform-devices-occ-hwmon | 13 +
.../sysfs-bus-platform-drivers-amd_x3d_vcache | 12 +
.../ABI/testing/sysfs-bus-platform-onboard-usb-dev | 9 +
Documentation/ABI/testing/sysfs-bus-rapidio | 201 +
Documentation/ABI/testing/sysfs-bus-rbd | 173 +
Documentation/ABI/testing/sysfs-bus-rpmsg | 95 +
Documentation/ABI/testing/sysfs-bus-siox | 90 +
.../ABI/testing/sysfs-bus-soundwire-master | 23 +
.../ABI/testing/sysfs-bus-soundwire-slave | 109 +
.../ABI/testing/sysfs-bus-spi-devices-spi-nor | 40 +
.../testing/sysfs-bus-surface_aggregator-tabletsw | 57 +
Documentation/ABI/testing/sysfs-bus-thunderbolt | 370 +
Documentation/ABI/testing/sysfs-bus-typec | 51 +
Documentation/ABI/testing/sysfs-bus-usb | 607 +
.../ABI/testing/sysfs-bus-usb-devices-usbsevseg | 46 +
Documentation/ABI/testing/sysfs-bus-usb-lvstest | 60 +
Documentation/ABI/testing/sysfs-bus-vdpa | 57 +
Documentation/ABI/testing/sysfs-bus-vfio-mdev | 113 +
Documentation/ABI/testing/sysfs-bus-vmbus | 21 +
Documentation/ABI/testing/sysfs-bus-wmi | 81 +
Documentation/ABI/testing/sysfs-c2port | 81 +
Documentation/ABI/testing/sysfs-cfq-target-latency | 8 +
Documentation/ABI/testing/sysfs-class | 16 +
Documentation/ABI/testing/sysfs-class-backlight | 186 +
.../testing/sysfs-class-backlight-driver-lm3533 | 54 +
.../ABI/testing/sysfs-class-backlight-lm3639 | 11 +
Documentation/ABI/testing/sysfs-class-bdi | 134 +
Documentation/ABI/testing/sysfs-class-bsr | 25 +
Documentation/ABI/testing/sysfs-class-chromeos | 53 +
.../sysfs-class-chromeos-driver-cros-ec-lightbar | 74 +
.../sysfs-class-chromeos-driver-cros-ec-vbc | 6 +
Documentation/ABI/testing/sysfs-class-devfreq | 143 +
.../ABI/testing/sysfs-class-devfreq-event | 25 +
Documentation/ABI/testing/sysfs-class-devlink | 130 +
Documentation/ABI/testing/sysfs-class-drm | 8 +
Documentation/ABI/testing/sysfs-class-extcon | 101 +
Documentation/ABI/testing/sysfs-class-fc | 27 +
Documentation/ABI/testing/sysfs-class-fc_host | 23 +
.../ABI/testing/sysfs-class-fc_remote_ports | 23 +
Documentation/ABI/testing/sysfs-class-firmware | 77 +
.../ABI/testing/sysfs-class-firmware-attributes | 494 +
Documentation/ABI/testing/sysfs-class-fpga-bridge | 11 +
Documentation/ABI/testing/sysfs-class-fpga-manager | 60 +
Documentation/ABI/testing/sysfs-class-fpga-region | 9 +
Documentation/ABI/testing/sysfs-class-gnss | 17 +
Documentation/ABI/testing/sysfs-class-hwmon | 1089 +
.../ABI/testing/sysfs-class-ieee80211-rtw89 | 24 +
Documentation/ABI/testing/sysfs-class-intel_pmt | 119 +
.../ABI/testing/sysfs-class-intel_pmt-features | 134 +
Documentation/ABI/testing/sysfs-class-iommu | 17 +
.../ABI/testing/sysfs-class-iommu-amd-iommu | 14 +
.../ABI/testing/sysfs-class-iommu-intel-iommu | 32 +
Documentation/ABI/testing/sysfs-class-issei | 73 +
Documentation/ABI/testing/sysfs-class-lcd | 23 +
Documentation/ABI/testing/sysfs-class-led | 89 +
.../ABI/testing/sysfs-class-led-driver-aw200xx | 5 +
.../ABI/testing/sysfs-class-led-driver-lm3533 | 73 +
.../testing/sysfs-class-led-driver-turris-omnia | 28 +
Documentation/ABI/testing/sysfs-class-led-flash | 89 +
.../ABI/testing/sysfs-class-led-multicolor | 37 +
.../ABI/testing/sysfs-class-led-trigger-netdev | 192 +
.../ABI/testing/sysfs-class-led-trigger-oneshot | 36 +
.../ABI/testing/sysfs-class-led-trigger-pattern | 50 +
.../ABI/testing/sysfs-class-led-trigger-tty | 62 +
.../ABI/testing/sysfs-class-led-trigger-usbport | 13 +
Documentation/ABI/testing/sysfs-class-leds-gt683r | 18 +
Documentation/ABI/testing/sysfs-class-mei | 105 +
Documentation/ABI/testing/sysfs-class-mic | 178 +
Documentation/ABI/testing/sysfs-class-mtd | 242 +
Documentation/ABI/testing/sysfs-class-mux | 16 +
Documentation/ABI/testing/sysfs-class-net | 354 +
Documentation/ABI/testing/sysfs-class-net-cdc_ncm | 168 +
Documentation/ABI/testing/sysfs-class-net-dsa | 14 +
Documentation/ABI/testing/sysfs-class-net-grcan | 35 +
.../ABI/testing/sysfs-class-net-janz-ican3 | 19 +
Documentation/ABI/testing/sysfs-class-net-peak_usb | 19 +
Documentation/ABI/testing/sysfs-class-net-phydev | 75 +
Documentation/ABI/testing/sysfs-class-net-qmi | 76 +
Documentation/ABI/testing/sysfs-class-net-queues | 121 +
.../ABI/testing/sysfs-class-net-statistics | 217 +
Documentation/ABI/testing/sysfs-class-ocxl | 51 +
.../ABI/testing/sysfs-class-platform-profile | 50 +
Documentation/ABI/testing/sysfs-class-power | 906 +
.../ABI/testing/sysfs-class-power-bd71828 | 13 +
Documentation/ABI/testing/sysfs-class-power-gaokun | 27 +
.../ABI/testing/sysfs-class-power-ltc4162l | 82 +
.../ABI/testing/sysfs-class-power-max1720x | 32 +
Documentation/ABI/testing/sysfs-class-power-mp2629 | 9 +
Documentation/ABI/testing/sysfs-class-power-rt9467 | 19 +
Documentation/ABI/testing/sysfs-class-power-rt9471 | 32 +
Documentation/ABI/testing/sysfs-class-power-rt9756 | 30 +
.../ABI/testing/sysfs-class-power-surface | 15 +
.../ABI/testing/sysfs-class-power-twl4030 | 33 +
Documentation/ABI/testing/sysfs-class-power-wilco | 40 +
Documentation/ABI/testing/sysfs-class-powercap | 152 +
Documentation/ABI/testing/sysfs-class-pwm | 88 +
Documentation/ABI/testing/sysfs-class-rapidio | 59 +
Documentation/ABI/testing/sysfs-class-rc | 137 +
Documentation/ABI/testing/sysfs-class-rc-nuvoton | 15 +
.../testing/sysfs-class-reboot-mode-reboot_modes | 39 +
Documentation/ABI/testing/sysfs-class-regulator | 453 +
Documentation/ABI/testing/sysfs-class-remoteproc | 104 +
Documentation/ABI/testing/sysfs-class-rnbd-client | 133 +
Documentation/ABI/testing/sysfs-class-rnbd-server | 58 +
Documentation/ABI/testing/sysfs-class-rtc | 91 +
.../sysfs-class-rtc-rtc0-device-rtc_calibration | 14 +
Documentation/ABI/testing/sysfs-class-rtrs-client | 146 +
Documentation/ABI/testing/sysfs-class-rtrs-server | 53 +
Documentation/ABI/testing/sysfs-class-scsi_host | 119 +
Documentation/ABI/testing/sysfs-class-scsi_tape | 109 +
Documentation/ABI/testing/sysfs-class-spi-eeprom | 30 +
Documentation/ABI/testing/sysfs-class-spi-master | 34 +
Documentation/ABI/testing/sysfs-class-stm | 24 +
Documentation/ABI/testing/sysfs-class-stm_source | 11 +
Documentation/ABI/testing/sysfs-class-switchtec | 96 +
Documentation/ABI/testing/sysfs-class-tee | 25 +
Documentation/ABI/testing/sysfs-class-thermal | 259 +
Documentation/ABI/testing/sysfs-class-tsm | 9 +
Documentation/ABI/testing/sysfs-class-typec | 386 +
.../ABI/testing/sysfs-class-usb_power_delivery | 284 +
Documentation/ABI/testing/sysfs-class-usb_role | 27 +
Documentation/ABI/testing/sysfs-class-vduse | 33 +
Documentation/ABI/testing/sysfs-class-wakeup | 76 +
Documentation/ABI/testing/sysfs-class-watchdog | 129 +
Documentation/ABI/testing/sysfs-class-zram | 24 +
Documentation/ABI/testing/sysfs-dev | 21 +
Documentation/ABI/testing/sysfs-devices | 25 +
Documentation/ABI/testing/sysfs-devices-consumer | 9 +
Documentation/ABI/testing/sysfs-devices-coredump | 10 +
Documentation/ABI/testing/sysfs-devices-edac | 157 +
.../ABI/testing/sysfs-devices-faux-tdx-host | 26 +
.../ABI/testing/sysfs-devices-firmware_node | 17 +
Documentation/ABI/testing/sysfs-devices-lpss_ltr | 44 +
Documentation/ABI/testing/sysfs-devices-mapping | 62 +
Documentation/ABI/testing/sysfs-devices-memory | 120 +
Documentation/ABI/testing/sysfs-devices-mmc | 21 +
Documentation/ABI/testing/sysfs-devices-online | 20 +
.../ABI/testing/sysfs-devices-pci-host-bridge | 45 +
.../ABI/testing/sysfs-devices-physical_location | 42 +
.../ABI/testing/sysfs-devices-platform-ACPI-TAD | 117 +
.../testing/sysfs-devices-platform-_UDC_-gadget | 23 +
.../ABI/testing/sysfs-devices-platform-docg3 | 40 +
.../ABI/testing/sysfs-devices-platform-dock | 39 +
.../ABI/testing/sysfs-devices-platform-ipmi | 242 +
.../testing/sysfs-devices-platform-kunpeng_hccs | 126 +
.../sysfs-devices-platform-sh_mobile_lcdc_fb | 44 +
.../ABI/testing/sysfs-devices-platform-soc-ipa | 114 +
.../testing/sysfs-devices-platform-stratix10-rsu | 232 +
.../ABI/testing/sysfs-devices-platform-trackpoint | 115 +
Documentation/ABI/testing/sysfs-devices-power | 307 +
.../ABI/testing/sysfs-devices-power_resources_D0 | 13 +
.../ABI/testing/sysfs-devices-power_resources_D1 | 14 +
.../ABI/testing/sysfs-devices-power_resources_D2 | 14 +
.../testing/sysfs-devices-power_resources_D3hot | 14 +
.../testing/sysfs-devices-power_resources_wakeup | 13 +
.../ABI/testing/sysfs-devices-power_state | 20 +
.../ABI/testing/sysfs-devices-real_power_state | 23 +
Documentation/ABI/testing/sysfs-devices-removable | 20 +
.../ABI/testing/sysfs-devices-resource_in_use | 12 +
Documentation/ABI/testing/sysfs-devices-soc | 95 +
.../ABI/testing/sysfs-devices-software_node | 10 +
.../ABI/testing/sysfs-devices-state_synced | 29 +
Documentation/ABI/testing/sysfs-devices-sun | 14 +
Documentation/ABI/testing/sysfs-devices-supplier | 9 +
Documentation/ABI/testing/sysfs-devices-system-cpu | 808 +
.../ABI/testing/sysfs-devices-system-ibm-rtl | 24 +
.../ABI/testing/sysfs-devices-system-xen_cpu | 20 +
Documentation/ABI/testing/sysfs-devices-vfio-dev | 8 +
.../testing/sysfs-devices-virtual-misc-tdx_guest | 63 +
.../ABI/testing/sysfs-devices-waiting_for_supplier | 17 +
Documentation/ABI/testing/sysfs-devices-xenbus | 41 +
Documentation/ABI/testing/sysfs-driver-altera-cvp | 8 +
Documentation/ABI/testing/sysfs-driver-amd-sfh | 13 +
.../ABI/testing/sysfs-driver-aspeed-uart-routing | 27 +
.../ABI/testing/sysfs-driver-bd9571mwv-regulator | 31 +
Documentation/ABI/testing/sysfs-driver-ccp | 120 +
.../ABI/testing/sysfs-driver-chromeos-acpi | 152 +
.../ABI/testing/sysfs-driver-dell-dw5826e-reset | 9 +
Documentation/ABI/testing/sysfs-driver-eud | 9 +
.../ABI/testing/sysfs-driver-framer-pef2256 | 8 +
.../ABI/testing/sysfs-driver-fsi-master-gpio | 10 +
Documentation/ABI/testing/sysfs-driver-ge-achc | 15 +
Documentation/ABI/testing/sysfs-driver-genwqe | 78 +
Documentation/ABI/testing/sysfs-driver-habanalabs | 265 +
Documentation/ABI/testing/sysfs-driver-hid | 20 +
.../ABI/testing/sysfs-driver-hid-appletb-kbd | 13 +
Documentation/ABI/testing/sysfs-driver-hid-corsair | 15 +
.../ABI/testing/sysfs-driver-hid-corsair-void | 38 +
Documentation/ABI/testing/sysfs-driver-hid-lenovo | 60 +
.../ABI/testing/sysfs-driver-hid-lenovo-go | 724 +
.../ABI/testing/sysfs-driver-hid-lenovo-go-s | 304 +
.../ABI/testing/sysfs-driver-hid-logitech-hidpp | 19 +
.../ABI/testing/sysfs-driver-hid-logitech-lg4ff | 75 +
.../ABI/testing/sysfs-driver-hid-multitouch | 9 +
Documentation/ABI/testing/sysfs-driver-hid-ntrig | 73 +
Documentation/ABI/testing/sysfs-driver-hid-picolcd | 43 +
.../ABI/testing/sysfs-driver-hid-prodikeys | 29 +
.../ABI/testing/sysfs-driver-hid-roccat-kone | 125 +
Documentation/ABI/testing/sysfs-driver-hid-srws1 | 21 +
Documentation/ABI/testing/sysfs-driver-hid-wiimote | 85 +
.../ABI/testing/sysfs-driver-input-axp-pek | 11 +
.../ABI/testing/sysfs-driver-input-cros-ec-keyb | 6 +
.../ABI/testing/sysfs-driver-input-exc3000 | 26 +
Documentation/ABI/testing/sysfs-driver-intc_sar | 54 +
.../ABI/testing/sysfs-driver-intel-i915-hwmon | 93 +
.../ABI/testing/sysfs-driver-intel-m10-bmc | 36 +
.../testing/sysfs-driver-intel-m10-bmc-sec-update | 61 +
.../ABI/testing/sysfs-driver-intel-rapid-start | 21 +
.../ABI/testing/sysfs-driver-intel-xe-hwmon | 315 +
.../ABI/testing/sysfs-driver-intel-xe-ras | 30 +
.../ABI/testing/sysfs-driver-intel-xe-sriov | 190 +
Documentation/ABI/testing/sysfs-driver-intel_sdsi | 90 +
Documentation/ABI/testing/sysfs-driver-ivpu | 65 +
.../ABI/testing/sysfs-driver-jz4780-efuse | 20 +
.../ABI/testing/sysfs-driver-lenovo-yb9-kbdock | 19 +
.../ABI/testing/sysfs-driver-panfrost-profiling | 10 +
.../ABI/testing/sysfs-driver-panthor-profiling | 10 +
Documentation/ABI/testing/sysfs-driver-pciback | 28 +
Documentation/ABI/testing/sysfs-driver-ppi | 75 +
Documentation/ABI/testing/sysfs-driver-qaic | 18 +
Documentation/ABI/testing/sysfs-driver-qat | 167 +
Documentation/ABI/testing/sysfs-driver-qat_kpt | 97 +
Documentation/ABI/testing/sysfs-driver-qat_ras | 41 +
Documentation/ABI/testing/sysfs-driver-qat_rl | 226 +
Documentation/ABI/testing/sysfs-driver-qat_svn | 114 +
.../ABI/testing/sysfs-driver-samsung-laptop | 37 +
Documentation/ABI/testing/sysfs-driver-spi-intel | 20 +
Documentation/ABI/testing/sysfs-driver-st | 12 +
Documentation/ABI/testing/sysfs-driver-tegra-fuse | 11 +
.../ABI/testing/sysfs-driver-toshiba_acpi | 223 +
.../ABI/testing/sysfs-driver-toshiba_haps | 22 +
.../ABI/testing/sysfs-driver-typec-displayport | 74 +
Documentation/ABI/testing/sysfs-driver-uacce | 57 +
Documentation/ABI/testing/sysfs-driver-ucsi-ccg | 6 +
Documentation/ABI/testing/sysfs-driver-ufs | 1793 +
.../ABI/testing/sysfs-driver-uio_pci_sva-pasid | 29 +
.../ABI/testing/sysfs-driver-uniwill-laptop | 105 +
Documentation/ABI/testing/sysfs-driver-w1_ds28e17 | 24 +
Documentation/ABI/testing/sysfs-driver-w1_therm | 190 +
Documentation/ABI/testing/sysfs-driver-wacom | 105 +
Documentation/ABI/testing/sysfs-driver-xdata | 49 +
Documentation/ABI/testing/sysfs-driver-xen-blkback | 46 +
.../ABI/testing/sysfs-driver-xen-blkfront | 19 +
.../ABI/testing/sysfs-driver-xilinx-tmr-manager | 16 +
Documentation/ABI/testing/sysfs-driver-zynqmp-fpga | 73 +
Documentation/ABI/testing/sysfs-edac-ecs | 74 +
Documentation/ABI/testing/sysfs-edac-memory-repair | 206 +
Documentation/ABI/testing/sysfs-edac-scrub | 85 +
Documentation/ABI/testing/sysfs-firmware-acpi | 277 +
.../ABI/testing/sysfs-firmware-dmi-entries | 114 +
.../ABI/testing/sysfs-firmware-dmi-tables | 22 +
Documentation/ABI/testing/sysfs-firmware-efi | 45 +
Documentation/ABI/testing/sysfs-firmware-efi-esrt | 87 +
.../ABI/testing/sysfs-firmware-efi-runtime-map | 36 +
Documentation/ABI/testing/sysfs-firmware-gsmi | 58 +
Documentation/ABI/testing/sysfs-firmware-initrd | 8 +
.../ABI/testing/sysfs-firmware-lefi-boardinfo | 35 +
Documentation/ABI/testing/sysfs-firmware-log | 7 +
Documentation/ABI/testing/sysfs-firmware-memmap | 75 +
Documentation/ABI/testing/sysfs-firmware-ofw | 52 +
.../ABI/testing/sysfs-firmware-opal-powercap | 31 +
Documentation/ABI/testing/sysfs-firmware-opal-psr | 18 +
.../ABI/testing/sysfs-firmware-opal-sensor-groups | 21 +
.../testing/sysfs-firmware-papr-energy-scale-info | 29 +
Documentation/ABI/testing/sysfs-firmware-plpks | 58 +
.../ABI/testing/sysfs-firmware-qemu_fw_cfg | 103 +
.../ABI/testing/sysfs-firmware-sev-vulnerabilities | 19 +
Documentation/ABI/testing/sysfs-firmware-sgi_uv | 159 +
.../ABI/testing/sysfs-firmware-turris-mox-rwtm | 28 +
Documentation/ABI/testing/sysfs-fs-erofs | 49 +
Documentation/ABI/testing/sysfs-fs-ext4 | 118 +
Documentation/ABI/testing/sysfs-fs-f2fs | 1022 +
Documentation/ABI/testing/sysfs-fs-nilfs2 | 269 +
Documentation/ABI/testing/sysfs-fs-ubifs | 35 +
Documentation/ABI/testing/sysfs-fs-virtiofs | 11 +
Documentation/ABI/testing/sysfs-fs-xfs | 37 +
Documentation/ABI/testing/sysfs-hypervisor-xen | 46 +
Documentation/ABI/testing/sysfs-ibft | 33 +
.../ABI/testing/sysfs-kernel-address_bits | 10 +
Documentation/ABI/testing/sysfs-kernel-boot_params | 39 +
Documentation/ABI/testing/sysfs-kernel-btf | 25 +
.../ABI/testing/sysfs-kernel-cpu_byteorder | 12 +
Documentation/ABI/testing/sysfs-kernel-fadump | 59 +
Documentation/ABI/testing/sysfs-kernel-fscaps | 8 +
.../ABI/testing/sysfs-kernel-hardlockup_count | 7 +
.../ABI/testing/sysfs-kernel-iommu_groups | 64 +
Documentation/ABI/testing/sysfs-kernel-irq | 60 +
Documentation/ABI/testing/sysfs-kernel-kexec-kdump | 61 +
Documentation/ABI/testing/sysfs-kernel-livepatch | 95 +
Documentation/ABI/testing/sysfs-kernel-mm | 6 +
Documentation/ABI/testing/sysfs-kernel-mm-cma | 44 +
Documentation/ABI/testing/sysfs-kernel-mm-damon | 664 +
.../ABI/testing/sysfs-kernel-mm-hugepages | 17 +
Documentation/ABI/testing/sysfs-kernel-mm-ksm | 61 +
.../ABI/testing/sysfs-kernel-mm-memory-tiers | 25 +
.../ABI/testing/sysfs-kernel-mm-mempolicy | 4 +
.../sysfs-kernel-mm-mempolicy-weighted-interleave | 54 +
Documentation/ABI/testing/sysfs-kernel-mm-numa | 28 +
Documentation/ABI/testing/sysfs-kernel-mm-swap | 16 +
.../testing/sysfs-kernel-mm-transparent-hugepage | 18 +
Documentation/ABI/testing/sysfs-kernel-oops_count | 6 +
.../ABI/testing/sysfs-kernel-rcu_stall_count | 6 +
Documentation/ABI/testing/sysfs-kernel-reboot | 40 +
Documentation/ABI/testing/sysfs-kernel-slab | 526 +
.../ABI/testing/sysfs-kernel-softlockup_count | 7 +
Documentation/ABI/testing/sysfs-kernel-vmcoreinfo | 14 +
Documentation/ABI/testing/sysfs-kernel-warn_count | 6 +
Documentation/ABI/testing/sysfs-mce | 97 +
.../ABI/testing/sysfs-memory-page-offline | 44 +
Documentation/ABI/testing/sysfs-module | 84 +
Documentation/ABI/testing/sysfs-nvmem-cells | 21 +
Documentation/ABI/testing/sysfs-ocfs2 | 89 +
.../ABI/testing/sysfs-platform-alienware-wmi | 14 +
.../ABI/testing/sysfs-platform-asus-laptop | 71 +
Documentation/ABI/testing/sysfs-platform-asus-wmi | 240 +
Documentation/ABI/testing/sysfs-platform-at91 | 27 +
Documentation/ABI/testing/sysfs-platform-ayaneo-ec | 19 +
.../ABI/testing/sysfs-platform-brcmstb-gisb-arb | 8 +
.../ABI/testing/sysfs-platform-brcmstb-memc | 15 +
.../ABI/testing/sysfs-platform-chipidea-usb-otg | 56 +
.../ABI/testing/sysfs-platform-chipidea-usb2 | 9 +
.../ABI/testing/sysfs-platform-dell-laptop | 73 +
.../ABI/testing/sysfs-platform-dell-privacy-wmi | 71 +
.../ABI/testing/sysfs-platform-dell-smbios | 21 +
.../ABI/testing/sysfs-platform-dell-wmi-ddv | 9 +
Documentation/ABI/testing/sysfs-platform-dfl-fme | 246 +
Documentation/ABI/testing/sysfs-platform-dfl-port | 101 +
Documentation/ABI/testing/sysfs-platform-dptf | 157 +
.../ABI/testing/sysfs-platform-eeepc-laptop | 56 +
Documentation/ABI/testing/sysfs-platform-hidma | 9 +
.../ABI/testing/sysfs-platform-hidma-mgmt | 97 +
.../ABI/testing/sysfs-platform-i2c-demux-pinctrl | 18 +
.../ABI/testing/sysfs-platform-ideapad-laptop | 52 +
Documentation/ABI/testing/sysfs-platform-intel-ifs | 52 +
Documentation/ABI/testing/sysfs-platform-intel-pmc | 22 +
.../testing/sysfs-platform-intel-wmi-sbl-fw-update | 13 +
.../testing/sysfs-platform-intel-wmi-thunderbolt | 12 +
Documentation/ABI/testing/sysfs-platform-kim | 49 +
Documentation/ABI/testing/sysfs-platform-lg-laptop | 36 +
.../ABI/testing/sysfs-platform-mellanox-bootctl | 162 +
.../ABI/testing/sysfs-platform-mellanox-pmc | 64 +
.../ABI/testing/sysfs-platform-msi-laptop | 83 +
Documentation/ABI/testing/sysfs-platform-oxp | 25 +
.../ABI/testing/sysfs-platform-phy-rcar-gen3-usb2 | 17 +
.../ABI/testing/sysfs-platform-power-on-reason | 12 +
.../ABI/testing/sysfs-platform-renesas_usb3 | 17 +
Documentation/ABI/testing/sysfs-platform-silicom | 30 +
Documentation/ABI/testing/sysfs-platform-sst-atom | 26 +
Documentation/ABI/testing/sysfs-platform-tahvo-usb | 16 +
Documentation/ABI/testing/sysfs-platform-ts5500 | 54 +
.../ABI/testing/sysfs-platform-twl4030-usb | 8 +
.../ABI/testing/sysfs-platform-usbip-vudc | 38 +
Documentation/ABI/testing/sysfs-platform-wilco-ec | 58 +
Documentation/ABI/testing/sysfs-platform_profile | 40 +
Documentation/ABI/testing/sysfs-power | 472 +
Documentation/ABI/testing/sysfs-pps | 73 +
Documentation/ABI/testing/sysfs-pps-gen | 43 +
Documentation/ABI/testing/sysfs-pps-gen-tio | 6 +
Documentation/ABI/testing/sysfs-profiling | 13 +
Documentation/ABI/testing/sysfs-ptp | 142 +
Documentation/ABI/testing/sysfs-secvar | 65 +
Documentation/ABI/testing/sysfs-timecard | 293 +
Documentation/ABI/testing/sysfs-tty | 166 +
Documentation/ABI/testing/sysfs-uevent | 51 +
Documentation/ABI/testing/usb-charger-uevent | 54 +
Documentation/ABI/testing/usb-uevent | 27 +
Documentation/Changes | 1 +
Documentation/CodingStyle | 1 +
Documentation/Kconfig | 28 +
Documentation/Makefile | 115 +
Documentation/PCI/acpi-info.rst | 192 +
Documentation/PCI/boot-interrupts.rst | 159 +
Documentation/PCI/controller/index.rst | 11 +
.../PCI/controller/pci-controller-drivers.rst | 402 +
.../PCI/controller/rcar-pcie-firmware.rst | 32 +
.../PCI/endpoint/function/binding/pci-ntb.rst | 38 +
.../PCI/endpoint/function/binding/pci-test.rst | 26 +
Documentation/PCI/endpoint/index.rst | 21 +
Documentation/PCI/endpoint/pci-endpoint-cfs.rst | 138 +
Documentation/PCI/endpoint/pci-endpoint.rst | 283 +
Documentation/PCI/endpoint/pci-ntb-function.rst | 348 +
Documentation/PCI/endpoint/pci-ntb-howto.rst | 158 +
Documentation/PCI/endpoint/pci-nvme-function.rst | 13 +
Documentation/PCI/endpoint/pci-test-function.rst | 103 +
Documentation/PCI/endpoint/pci-test-howto.rst | 239 +
Documentation/PCI/endpoint/pci-vntb-function.rst | 129 +
Documentation/PCI/endpoint/pci-vntb-howto.rst | 169 +
Documentation/PCI/index.rst | 22 +
Documentation/PCI/msi-howto.rst | 300 +
Documentation/PCI/pci-error-recovery.rst | 471 +
Documentation/PCI/pci-iov-howto.rst | 171 +
Documentation/PCI/pci.rst | 578 +
Documentation/PCI/pcieaer-howto.rst | 267 +
Documentation/PCI/pciebus-howto.rst | 228 +
Documentation/PCI/sysfs-pci.rst | 138 +
Documentation/PCI/tph.rst | 132 +
.../Design/Data-Structures/BigTreeClassicRCU.svg | 474 +
.../BigTreePreemptRCUBHdyntickCB.svg | 662 +
.../RCU/Design/Data-Structures/Data-Structures.rst | 1196 +
.../Design/Data-Structures/HugeTreeClassicRCU.svg | 939 +
.../RCU/Design/Data-Structures/TreeLevel.svg | 828 +
.../RCU/Design/Data-Structures/TreeMapping.svg | 305 +
.../Design/Data-Structures/TreeMappingLevel.svg | 380 +
.../RCU/Design/Data-Structures/blkd_task.svg | 631 +
.../RCU/Design/Data-Structures/nxtlist.svg | 386 +
.../Design/Expedited-Grace-Periods/ExpRCUFlow.svg | 830 +
.../Expedited-Grace-Periods/ExpSchedFlow.svg | 830 +
.../Expedited-Grace-Periods.rst | 521 +
.../RCU/Design/Expedited-Grace-Periods/Funnel0.svg | 275 +
.../RCU/Design/Expedited-Grace-Periods/Funnel1.svg | 275 +
.../RCU/Design/Expedited-Grace-Periods/Funnel2.svg | 287 +
.../RCU/Design/Expedited-Grace-Periods/Funnel3.svg | 323 +
.../RCU/Design/Expedited-Grace-Periods/Funnel4.svg | 323 +
.../RCU/Design/Expedited-Grace-Periods/Funnel5.svg | 335 +
.../RCU/Design/Expedited-Grace-Periods/Funnel6.svg | 335 +
.../RCU/Design/Expedited-Grace-Periods/Funnel7.svg | 347 +
.../RCU/Design/Expedited-Grace-Periods/Funnel8.svg | 311 +
.../Memory-Ordering/Tree-RCU-Memory-Ordering.rst | 648 +
.../TreeRCU-callback-invocation.svg | 486 +
.../Memory-Ordering/TreeRCU-callback-registry.svg | 646 +
.../RCU/Design/Memory-Ordering/TreeRCU-dyntick.svg | 700 +
.../Design/Memory-Ordering/TreeRCU-gp-cleanup.svg | 1133 +
.../RCU/Design/Memory-Ordering/TreeRCU-gp-fqs.svg | 1309 +
.../Design/Memory-Ordering/TreeRCU-gp-init-1.svg | 658 +
.../Design/Memory-Ordering/TreeRCU-gp-init-2.svg | 656 +
.../Design/Memory-Ordering/TreeRCU-gp-init-3.svg | 636 +
.../RCU/Design/Memory-Ordering/TreeRCU-gp.svg | 5135 +
.../RCU/Design/Memory-Ordering/TreeRCU-hotplug.svg | 775 +
.../RCU/Design/Memory-Ordering/TreeRCU-qs.svg | 1095 +
.../RCU/Design/Memory-Ordering/rcu_node-lock.svg | 229 +
.../Design/Requirements/GPpartitionReaders1.svg | 374 +
.../Design/Requirements/ReadersPartitionGP1.svg | 639 +
.../RCU/Design/Requirements/Requirements.rst | 2873 +
Documentation/RCU/NMI-RCU.rst | 123 +
Documentation/RCU/RTFP.txt | 2812 +
Documentation/RCU/UP.rst | 152 +
Documentation/RCU/checklist.rst | 556 +
Documentation/RCU/index.rst | 30 +
Documentation/RCU/listRCU.rst | 511 +
Documentation/RCU/lockdep-splat.rst | 115 +
Documentation/RCU/lockdep.rst | 119 +
Documentation/RCU/rcu.rst | 93 +
Documentation/RCU/rcu_dereference.rst | 502 +
Documentation/RCU/rcubarrier.rst | 377 +
Documentation/RCU/rculist_nulls.rst | 215 +
Documentation/RCU/rcuref.rst | 158 +
Documentation/RCU/stallwarn.rst | 491 +
Documentation/RCU/torture.rst | 374 +
Documentation/RCU/whatisRCU.rst | 1415 +
Documentation/SubmittingPatches | 1 +
Documentation/accel/amdxdna/amdnpu.rst | 306 +
Documentation/accel/amdxdna/index.rst | 11 +
Documentation/accel/index.rst | 13 +
Documentation/accel/introduction.rst | 110 +
Documentation/accel/qaic/aic080.rst | 14 +
Documentation/accel/qaic/aic100.rst | 538 +
Documentation/accel/qaic/index.rst | 14 +
Documentation/accel/qaic/qaic.rst | 209 +
Documentation/accel/rocket/index.rst | 19 +
Documentation/accounting/cgroupstats.rst | 31 +
Documentation/accounting/delay-accounting.rst | 214 +
Documentation/accounting/index.rst | 14 +
Documentation/accounting/psi.rst | 188 +
Documentation/accounting/taskstats-struct.rst | 199 +
Documentation/accounting/taskstats.rst | 182 +
Documentation/admin-guide/LSM/LoadPin.rst | 31 +
Documentation/admin-guide/LSM/SELinux.rst | 44 +
Documentation/admin-guide/LSM/SafeSetID.rst | 118 +
Documentation/admin-guide/LSM/Smack.rst | 871 +
Documentation/admin-guide/LSM/Yama.rst | 75 +
Documentation/admin-guide/LSM/apparmor.rst | 54 +
Documentation/admin-guide/LSM/index.rst | 51 +
Documentation/admin-guide/LSM/ipe.rst | 835 +
Documentation/admin-guide/LSM/landlock.rst | 298 +
Documentation/admin-guide/LSM/tomoyo.rst | 52 +
.../admin-guide/RAS/address-translation.rst | 24 +
Documentation/admin-guide/RAS/error-decoding.rst | 21 +
Documentation/admin-guide/RAS/index.rst | 7 +
Documentation/admin-guide/RAS/main.rst | 1087 +
Documentation/admin-guide/README.rst | 360 +
Documentation/admin-guide/abi-obsolete-files.rst | 7 +
Documentation/admin-guide/abi-obsolete.rst | 13 +
Documentation/admin-guide/abi-removed-files.rst | 7 +
Documentation/admin-guide/abi-removed.rst | 7 +
Documentation/admin-guide/abi-stable-files.rst | 7 +
Documentation/admin-guide/abi-stable.rst | 16 +
Documentation/admin-guide/abi-testing-files.rst | 7 +
Documentation/admin-guide/abi-testing.rst | 22 +
Documentation/admin-guide/abi.rst | 29 +
Documentation/admin-guide/acpi/cppc_sysfs.rst | 78 +
.../admin-guide/acpi/fan_performance_states.rst | 90 +
Documentation/admin-guide/acpi/index.rst | 14 +
.../admin-guide/acpi/initrd_table_override.rst | 115 +
Documentation/admin-guide/acpi/ssdt-overlays.rst | 181 +
Documentation/admin-guide/aoe/aoe.rst | 150 +
Documentation/admin-guide/aoe/autoload.sh | 17 +
Documentation/admin-guide/aoe/examples.rst | 23 +
Documentation/admin-guide/aoe/index.rst | 10 +
Documentation/admin-guide/aoe/status.sh | 30 +
Documentation/admin-guide/aoe/todo.rst | 17 +
Documentation/admin-guide/aoe/udev-install.sh | 33 +
Documentation/admin-guide/aoe/udev.txt | 26 +
.../admin-guide/auxdisplay/cfag12864b.rst | 98 +
Documentation/admin-guide/auxdisplay/index.rst | 9 +
Documentation/admin-guide/auxdisplay/ks0108.rst | 50 +
Documentation/admin-guide/bcache.rst | 644 +
Documentation/admin-guide/binderfs.rst | 87 +
Documentation/admin-guide/binfmt-misc.rst | 391 +
.../blockdev/drbd/DRBD-8.3-data-packets.svg | 588 +
.../blockdev/drbd/DRBD-data-packets.svg | 459 +
.../admin-guide/blockdev/drbd/conn-states-8.dot | 18 +
.../blockdev/drbd/data-structure-v9.rst | 42 +
.../admin-guide/blockdev/drbd/disk-states-8.dot | 16 +
.../drbd/drbd-connection-state-overview.dot | 85 +
.../admin-guide/blockdev/drbd/figures.rst | 30 +
Documentation/admin-guide/blockdev/drbd/index.rst | 19 +
.../admin-guide/blockdev/drbd/peer-states-8.dot | 8 +
Documentation/admin-guide/blockdev/floppy.rst | 255 +
Documentation/admin-guide/blockdev/index.rst | 17 +
Documentation/admin-guide/blockdev/nbd.rst | 31 +
Documentation/admin-guide/blockdev/paride.rst | 207 +
Documentation/admin-guide/blockdev/ramdisk.rst | 153 +
Documentation/admin-guide/blockdev/zoned_loop.rst | 191 +
Documentation/admin-guide/blockdev/zram.rst | 610 +
Documentation/admin-guide/bootconfig.rst | 416 +
Documentation/admin-guide/braille-console.rst | 38 +
Documentation/admin-guide/btmrvl.rst | 124 +
Documentation/admin-guide/bug-bisect.rst | 165 +
Documentation/admin-guide/bug-hunting.rst | 370 +
.../admin-guide/cgroup-v1/blkio-controller.rst | 301 +
Documentation/admin-guide/cgroup-v1/cgroups.rst | 697 +
Documentation/admin-guide/cgroup-v1/cpuacct.rst | 50 +
Documentation/admin-guide/cgroup-v1/cpusets.rst | 874 +
Documentation/admin-guide/cgroup-v1/devices.rst | 132 +
.../admin-guide/cgroup-v1/freezer-subsystem.rst | 131 +
Documentation/admin-guide/cgroup-v1/hugetlb.rst | 139 +
Documentation/admin-guide/cgroup-v1/index.rst | 24 +
Documentation/admin-guide/cgroup-v1/memcg_test.rst | 342 +
Documentation/admin-guide/cgroup-v1/memory.rst | 926 +
Documentation/admin-guide/cgroup-v1/misc.rst | 4 +
Documentation/admin-guide/cgroup-v1/net_cls.rst | 44 +
Documentation/admin-guide/cgroup-v1/net_prio.rst | 57 +
Documentation/admin-guide/cgroup-v1/pids.rst | 93 +
Documentation/admin-guide/cgroup-v1/rdma.rst | 191 +
Documentation/admin-guide/cgroup-v2.rst | 3581 +
Documentation/admin-guide/cifs/authors.rst | 69 +
Documentation/admin-guide/cifs/changes.rst | 9 +
Documentation/admin-guide/cifs/index.rst | 14 +
Documentation/admin-guide/cifs/introduction.rst | 53 +
Documentation/admin-guide/cifs/todo.rst | 133 +
Documentation/admin-guide/cifs/usage.rst | 864 +
Documentation/admin-guide/cifs/winucase_convert.pl | 62 +
Documentation/admin-guide/clearing-warn-once.rst | 9 +
Documentation/admin-guide/cpu-isolation.rst | 357 +
Documentation/admin-guide/cpu-load.rst | 117 +
Documentation/admin-guide/cputopology.rst | 101 +
Documentation/admin-guide/dell_rbu.rst | 128 +
.../admin-guide/device-mapper/cache-policies.rst | 131 +
Documentation/admin-guide/device-mapper/cache.rst | 337 +
Documentation/admin-guide/device-mapper/delay.rst | 54 +
.../admin-guide/device-mapper/dm-clone.rst | 333 +
.../admin-guide/device-mapper/dm-crypt.rst | 212 +
.../admin-guide/device-mapper/dm-dust.rst | 305 +
Documentation/admin-guide/device-mapper/dm-ebs.rst | 51 +
.../admin-guide/device-mapper/dm-flakey.rst | 88 +
Documentation/admin-guide/device-mapper/dm-ima.rst | 718 +
.../admin-guide/device-mapper/dm-init.rst | 133 +
.../admin-guide/device-mapper/dm-inlinecrypt.rst | 129 +
.../admin-guide/device-mapper/dm-integrity.rst | 321 +
Documentation/admin-guide/device-mapper/dm-io.rst | 75 +
Documentation/admin-guide/device-mapper/dm-log.rst | 57 +
.../admin-guide/device-mapper/dm-pcache.rst | 202 +
.../admin-guide/device-mapper/dm-queue-length.rst | 48 +
.../admin-guide/device-mapper/dm-raid.rst | 489 +
.../admin-guide/device-mapper/dm-service-time.rst | 101 +
.../admin-guide/device-mapper/dm-uevent.rst | 110 +
.../admin-guide/device-mapper/dm-zoned.rst | 194 +
Documentation/admin-guide/device-mapper/era.rst | 116 +
Documentation/admin-guide/device-mapper/index.rst | 43 +
Documentation/admin-guide/device-mapper/kcopyd.rst | 47 +
Documentation/admin-guide/device-mapper/linear.rst | 63 +
.../admin-guide/device-mapper/log-writes.rst | 145 +
.../admin-guide/device-mapper/persistent-data.rst | 88 +
.../admin-guide/device-mapper/snapshot.rst | 196 +
.../admin-guide/device-mapper/statistics.rst | 225 +
.../admin-guide/device-mapper/striped.rst | 61 +
Documentation/admin-guide/device-mapper/switch.rst | 141 +
.../device-mapper/thin-provisioning.rst | 427 +
.../admin-guide/device-mapper/unstriped.rst | 135 +
.../admin-guide/device-mapper/vdo-design.rst | 633 +
Documentation/admin-guide/device-mapper/vdo.rst | 413 +
Documentation/admin-guide/device-mapper/verity.rst | 349 +
.../admin-guide/device-mapper/writecache.rst | 114 +
Documentation/admin-guide/device-mapper/zero.rst | 37 +
Documentation/admin-guide/devices.rst | 270 +
Documentation/admin-guide/devices.txt | 3081 +
Documentation/admin-guide/dynamic-debug-howto.rst | 392 +
Documentation/admin-guide/edid.rst | 27 +
Documentation/admin-guide/efi-stub.rst | 103 +
Documentation/admin-guide/ext4.rst | 611 +
Documentation/admin-guide/features.rst | 3 +
.../admin-guide/filesystem-monitoring.rst | 78 +
Documentation/admin-guide/gpio/gpio-aggregator.rst | 218 +
Documentation/admin-guide/gpio/gpio-mockup.rst | 59 +
Documentation/admin-guide/gpio/gpio-sim.rst | 137 +
Documentation/admin-guide/gpio/gpio-virtuser.rst | 177 +
Documentation/admin-guide/gpio/index.rst | 14 +
Documentation/admin-guide/gpio/obsolete.rst | 13 +
.../admin-guide/hw-vuln/attack_vector_controls.rst | 236 +
.../admin-guide/hw-vuln/core-scheduling.rst | 226 +
.../admin-guide/hw-vuln/cross-thread-rsb.rst | 91 +
.../admin-guide/hw-vuln/gather_data_sampling.rst | 109 +
Documentation/admin-guide/hw-vuln/index.rst | 29 +
.../hw-vuln/indirect-target-selection.rst | 168 +
Documentation/admin-guide/hw-vuln/l1d_flush.rst | 69 +
Documentation/admin-guide/hw-vuln/l1tf.rst | 615 +
Documentation/admin-guide/hw-vuln/mds.rst | 303 +
Documentation/admin-guide/hw-vuln/multihit.rst | 167 +
.../admin-guide/hw-vuln/old_microcode.rst | 21 +
.../hw-vuln/processor_mmio_stale_data.rst | 269 +
.../admin-guide/hw-vuln/reg-file-data-sampling.rst | 96 +
Documentation/admin-guide/hw-vuln/rsb.rst | 268 +
[Output truncated: showing 1000 of 96068 lines]]
|
| 44/2 |
2026/09/16 00:44 |
llm |
expert |
0m
Model:
Tokens:
input: 43392
output: 36
thoughts: 180
Thoughts: **Analyzing a Suspect Merge Commit**
Okay, so commit 704340f1cd0dcef829eb62f5b48ae95a2ce17bdf is a merge. My immediate instinct is to dive deep, but before I get bogged down in details, I should probably prioritize. Is this bug actually exploitable? Let's get to the root of the problem.
The error message is a lockdep warning: "bad unlock balance detected!". That screams a classic lock acquisition/release imbalance. Someone released a lock without acquiring it, or they released it more times than it was acquired. We're looking at `q->io_lockdep_map` or `q->q_lockdep_map`. Hmm, those are lockdep maps, not the locks themselves. Right, right! `rwsem_acquire` and `rwsem_release` are just lockdep annotations. I need to trace back from those. The key here will be to examine the interactions with `blk_freeze_acquire_lock` and `blk_unfreeze_release_lock`. That's where the actual lock operations are happening, and where the imbalance is likely occurring. This is going to be the next step to confirm where the problem is.
|
| 45/2 |
2026/09/16 00:44 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:block/blk.h Name:blk_freeze_acquire_lock]
Results: map[SourceCode: 761: static inline void blk_freeze_acquire_lock(struct request_queue *q)
762: {
763: if (!q->mq_freeze_disk_dead)
764: rwsem_acquire(&q->io_lockdep_map, 0, 1, _RET_IP_);
765: if (!q->mq_freeze_queue_dying)
766: rwsem_acquire(&q->q_lockdep_map, 0, 1, _RET_IP_);
767: }
SourceFile:block/blk.h]
|
| 46/2 |
2026/09/16 00:44 |
llm |
expert |
0m
Model:
Tokens:
input: 44052
output: 51
thoughts: 263
Thoughts: **Analyzing the Lockdep Warning**
Okay, so `rwsem_acquire` and `rwsem_release` are definitely lockdep annotations, that much is clear. Hmm, but `q->q_usage_counter` is a `percpu_ref`. Right, the lockdep maps are there to track the "lock" associated with freezing the queue. Now, a lockdep warning itself isn't *fatal* in a production environment because lockdep is disabled there. That's a relief. But... wait, should I be concerned about memory corruption or a denial-of-service condition? That's the critical question here.
If `q->mq_freeze_disk_dead` changes between the freeze and unfreeze operations, it *does* suggest the lockdep annotations are unbalanced. But, does that actually break the freeze process itself? The core freezing logic actually seems to rely on `q->mq_freeze_depth` and `q->q_usage_counter`. And `q->mq_freeze_depth` is protected by the `q->mq_freeze_lock` as it should be, and the `q->q_usage_counter` is a `percpu_ref`.
If it's *just* a lockdep warning, meaning it doesn't manifest as anything else in production (since lockdep is off), then it's *probably* not exploitable and *probably* doesn't trigger denial of service. The warning itself means something is off, but doesn't necessarily mean it is harmful in a production setting.
However, I need to be thorough. I should check if `q->mq_freeze_disk_dead` is actually used for anything else. Is it involved in any other critical path? I need to make sure I haven't missed a more subtle consequence of this imbalance.
|
| 47/2 |
2026/09/16 00:44 |
tool |
codesearch-find-references |
0m
Error:
Args: map[ContextFile:block/blk-mq.c IncludeSnippetLines:0 Name:mq_freeze_disk_dead SourceTreePrefix:]
Results: map[References:<nil> TruncatedOutput:false]
|
| 48/2 |
2026/09/16 00:44 |
llm |
expert |
0m
Model:
Tokens:
input: 44774
output: 55
thoughts: 32
Thoughts: Okay, here's my interpretation of those thoughts, framed as a first-person summary, keeping in mind my expertise:
**Diving into the `request_queue` Structure**
Right, so I'm looking at a field related to `struct request_queue`. My immediate thought is to start digging into the details of the associated functionality. Considering this data structure, I'm thinking about the low-level I/O request management here. And I'm specifically curious about how this structure interacts with mechanisms designed to handle situations where a disk might be considered "dead," as indicated by `mq_freeze_disk_dead`. Let's see how that aspect is implemented.
|
| 49/2 |
2026/09/16 00:44 |
tool |
codesearch-find-references |
0m
Args: map[ContextFile:block/blk-mq.c IncludeSnippetLines:0 Name:request_queue::mq_freeze_disk_dead SourceTreePrefix:]
Results: map[References:[map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:blk_freeze_acquire_lock SourceFile:block/blk.h SourceLine:763] map[ReferenceKind:writes ReferencingEntityKind:function ReferencingEntityName:blk_freeze_set_owner SourceFile:block/blk-mq.c SourceLine:125] map[ReferenceKind:reads ReferencingEntityKind:function ReferencingEntityName:blk_unfreeze_release_lock SourceFile:block/blk.h SourceLine:773]] TruncatedOutput:false]
|
| 50/2 |
2026/09/16 00:44 |
llm |
expert |
0m
Model:
Tokens:
input: 45173
output: 33
thoughts: 125
Thoughts: **Lockdep Warning Analysis**
Okay, so I've traced this issue down. It appears this construct is *only* used within `blk_freeze_acquire_lock`, `blk_freeze_set_owner`, and `blk_unfreeze_release_lock`. That's the first step - narrowing the scope. Now, the interesting bit is how `blk_freeze_acquire_lock` and `blk_unfreeze_release_lock` simply wrap calls to `rwsem_acquire` and `rwsem_release`. And *those* functions, I'm pretty certain, are lockdep annotations! This suggests the bug, if you can even call it that, is *purely* a lockdep warning. It won't manifest in a production kernel, where lockdep is disabled, and therefore has zero impact on actual system behavior. Still, let's just make absolutely sure, and double-check those `rwsem_acquire` and `rwsem_release` implementations. Can't be too careful.
|
| 51/2 |
2026/09/16 00:44 |
tool |
codesearch-definition-source |
0m
Error:
Args: map[ContextFile:block/blk.h Name:rwsem_acquire]
Results: map[SourceCode: SourceFile:]
|
| 52/2 |
2026/09/16 00:44 |
llm |
expert |
0m
Model:
Tokens:
input: 45568
output: 19
thoughts: 11
Thoughts: Here's my attempt at summarizing the thought process, tailored for an expert audience:
**Analyzing `rwsem_acquire`**
Okay, so I need to dig into `rwsem_acquire`. That's where the read-write semaphore acquisition logic lives, obviously. I'm probably after the finer details of how this is implemented within the kernel. I'll use `grep` as my entry point. It's the most efficient way to quickly locate all instances of the function within the kernel source. I expect I will want to understand all the points where `rwsem_acquire` may be invoked to understand the behavior of the calling processes. From there, I'll dive into the surrounding code for each callsite to understand the larger context β specifically, the acquisition path, any contention handling, and the release mechanism. I anticipate this will quickly illuminate the synchronization patterns utilizing read-write semaphores in my target module or subsystem. I'm hoping to quickly grasp any potential performance bottlenecks or subtle locking issues related to this particular primitive.
|
| 53/2 |
2026/09/16 00:44 |
tool |
grepper |
0m
Args: map[Expression:define rwsem_acquire]
Results: map[Output:include/linux/lockdep.h=522=do { \
--
include/linux/lockdep.h-538-
include/linux/lockdep.h:539:#define rwsem_acquire(l, s, t, i) lock_acquire_exclusive(l, s, t, NULL, i)
include/linux/lockdep.h:540:#define rwsem_acquire_nest(l, s, t, n, i) lock_acquire_exclusive(l, s, t, n, i)
include/linux/lockdep.h:541:#define rwsem_acquire_read(l, s, t, i) lock_acquire_shared(l, s, t, NULL, i)
include/linux/lockdep.h-542-#define rwsem_release(l, i) lock_release(l, i)
]
|
| 54/2 |
2026/09/16 00:44 |
llm |
expert |
0m
Model:
Tokens:
input: 46034
output: 53
thoughts: 178
Thoughts: **Analyzing the Potential Bug**
Okay, so I've looked at this. Essentially, these reported issues are just macros that wrap `lock_acquire_exclusive` and `lock_release` β functions used by lockdep. The critical point is that in any production environment, lockdep is completely disabled. Those macros? They're either empty or effectively do nothing. This means the report is either a false positive or just an internal lockdep state mismatch. No security impact whatsoever. This is good news, obviously.
Now, just to be thorough (because that's what we do!), I need to confirm that this can't be triggered by an unprivileged user. Let's look at the stack trace. Aha, itβs originating from `nvme_scan_ns`, which makes sense. That function is part of the NVMe device initialization/scanning process. Can an unprivileged user initiate NVMe scanning? Typically, that kind of thing is triggered either by physically hot-plugging an NVMe device (a peripheral trigger) or through specific sysfs entries or ioctl commands. So, the question is, *can* an unprivileged user get in there and manually trigger that scan? I need to check how `nvme_scan_ns` works in detail to be certain. Let's dig in.
|
| 55/2 |
2026/09/16 00:44 |
tool |
codesearch-find-references |
0m
Args: map[ContextFile:drivers/nvme/host/core.c IncludeSnippetLines:0 Name:nvme_scan_ns SourceTreePrefix:]
Results: map[References:[map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nvme_scan_ns_async SourceFile:drivers/nvme/host/core.c SourceLine:4513] map[ReferenceKind:calls ReferencingEntityKind:function ReferencingEntityName:nvme_scan_ns_sequential SourceFile:drivers/nvme/host/core.c SourceLine:4600]] TruncatedOutput:false]
|
| 56/2 |
2026/09/16 00:44 |
llm |
expert |
0m
Model:
Tokens:
input: 46672
output: 53
thoughts: 32
Thoughts: Okay, here's my interpretation of those thoughts, summarized from my perspective as someone deeply familiar with NVMe device scanning:
**My Perspective on the NVMe Namespace Scanning Process**
Alright, so the core of how we're finding NVMe namespaces is pretty clear in this context. The workhorse, `nvme_scan_work`, is the central routine. Itβs the orchestrator. And within that, we have two distinct methods to handle the namespace discovery itself: `nvme_scan_ns_async` and `nvme_scan_ns_sequential`. It seems we've got both asynchronous and sequential scanning capabilities. Presumably, the choice between them depends on the specific circumstances, the host controller setup, or perhaps some configured policy. I'd be interested to know when we use each one β whether it's for performance considerations, the capability to discover namespaces more efficiently, or perhaps even error handling strategy if one approach fails. I'd need more context to say. But the fact that both are called from the same place tells me that the overall flow is managed by `nvme_scan_work`. It's a nice, clean separation of concerns, which is critical in something as complex as NVMe initialization and discovery.
|
| 57/2 |
2026/09/16 00:44 |
tool |
codesearch-find-references |
0m
Args: map[ContextFile:drivers/nvme/host/core.c IncludeSnippetLines:0 Name:nvme_scan_work SourceTreePrefix:]
Results: map[References:[map[ReferenceKind:takes-address-of ReferencingEntityKind:function ReferencingEntityName:nvme_init_ctrl SourceFile:drivers/nvme/host/core.c SourceLine:5234]] TruncatedOutput:false]
|
| 58/2 |
2026/09/16 00:44 |
llm |
expert |
0m
Model:
Tokens:
input: 47094
output: 21
thoughts: 79
Thoughts: **My Initial Thoughts on NVMe Controller Resets**
Okay, so `nvme_scan_work` is this workqueue function β it's key, I know I've seen it a bunch of times in the past. It's set up in `nvme_init_ctrl`, which makes sense. I see it gets queued when the controller initially comes online, or when it resets. A flag has just been raised by looking at the code, specifically: could an unprivileged user actually *trigger* a controller reset through some clever (or accidental) action? Thatβs my immediate question. Typically, NVMe controller resets are heavily protected, usually requiring root privileges via the sysfs interface or through specific ioctls. I need to refresh my memory, so I'm going to start digging into the NVMe ioctls to confirm my assumptions and identify any potential vulnerabilities. Let's see what's what.
|
| 59/2 |
2026/09/16 00:44 |
tool |
grepper |
0m
Args: map[Expression:NVME_IOCTL_RESET]
Results: map[Output:drivers/nvme/host/ioctl.c=880=long nvme_dev_ioctl(struct file *file, unsigned int cmd,
--
drivers/nvme/host/ioctl.c-893- return nvme_dev_user_cmd(ctrl, argp, open_for_write);
drivers/nvme/host/ioctl.c:894: case NVME_IOCTL_RESET:
drivers/nvme/host/ioctl.c-895- if (!capable(CAP_SYS_ADMIN))
--
include/uapi/linux/nvme_ioctl.h=74=struct nvme_uring_cmd {
--
include/uapi/linux/nvme_ioctl.h-100-#define NVME_IOCTL_IO_CMD _IOWR('N', 0x43, struct nvme_passthru_cmd)
include/uapi/linux/nvme_ioctl.h:101:#define NVME_IOCTL_RESET _IO('N', 0x44)
include/uapi/linux/nvme_ioctl.h-102-#define NVME_IOCTL_SUBSYS_RESET _IO('N', 0x45)
]
|
| 60/2 |
2026/09/16 00:44 |
llm |
expert |
0m
Model:
Tokens:
input: 47690
output: 19
thoughts: 23
Thoughts: Here's my thinking:
**Examining Reset Capabilities and Alternatives**
Okay, so `NVME_IOCTL_RESET` needs `CAP_SYS_ADMIN`. That's the established rule. But I need to consider all the angles, and specifically, I need to think about alternatives. Is there a way around this? Given my level of expertise, I know the `CAP_SYS_ADMIN` requirement is a pretty strong one, but perhaps, just *perhaps*, there's a different path. My mind immediately jumps to sysfs. Could I leverage sysfs for the reset operation instead? It's a key avenue to explore, particularly when dealing with low-level device control. It's often the 'back door' into these kinds of operations. Time to check the documentation again and see if sysfs provides a viable control mechanism for NVMe reset that doesn't trigger the same permission barriers. I need to figure out if sysfs offers a safe path, or if it will be just as locked down.
|
| 61/2 |
2026/09/16 00:44 |
tool |
grepper |
0m
Error:
Args: map[Expression:reset_controller_store]
Results:
|
| 62/2 |
2026/09/16 00:44 |
llm |
expert |
0m
Model:
Tokens:
input: 47959
output: 17
thoughts: 24
Thoughts: Here's my thought process, summarized as you requested:
**Navigating the NVMe Driver for Controller Reset**
Okay, so I need to track down how the "reset_controller" functionality is implemented within the NVMe driver, specifically within the kernel. My initial instinct is to go straight to the core driver code. I'll start with the assumption that this functionality would be handled within the host-side components, so I'm going to focus my search there. Given that, the `drivers/nvme/host` directory is the logical place to start looking. Now, the `sysfs.c` file is often where we find sysfs attributes and the interfaces to interact with the device from userspace. Given the nature of a reset operation, it makes sense that `reset_controller` functionality would be exposed through sysfs. So, I'll begin by searching for that exact string, "reset_controller," within `drivers/nvme/host/sysfs.c`. Let's see what we find. I'm expecting to either find the actual function definition or at least the declaration or linkage to it. That should give me a solid entry point to explore the rest of the implementation.
|
| 63/2 |
2026/09/16 00:44 |
tool |
grepper |
0m
Args: map[Expression:reset_controller]
Results: map[Output:
Full output is too long, showing 500 out of 4013 lines.
Use more precise expression if possible.
Documentation/ABI/stable/sysfs-nvme=25=Description:
--
Documentation/ABI/stable/sysfs-nvme-31-
Documentation/ABI/stable/sysfs-nvme:32:What: /sys/class/nvme/nvmeX/reset_controller
Documentation/ABI/stable/sysfs-nvme-33-Date: November 2015
--
Documentation/driver-api/driver-model/devres.rst=442=RESET
Documentation/driver-api/driver-model/devres.rst-443- devm_reset_control_get()
Documentation/driver-api/driver-model/devres.rst:444: devm_reset_controller_register()
Documentation/driver-api/driver-model/devres.rst-445-
--
Documentation/driver-api/reset.rst=163=Initialization
--
Documentation/driver-api/reset.rst-165-
Documentation/driver-api/reset.rst:166:Drivers fill a struct :c:type:`reset_controller_dev` and register it with
Documentation/driver-api/reset.rst:167:reset_controller_register() in their probe function.
Documentation/driver-api/reset.rst-168-The actual functionality is implemented in callback functions via a struct
--
Documentation/driver-api/reset.rst=208=a static constant structure :c:type:`reset_control_ops`, allocate and fill out
Documentation/driver-api/reset.rst:209:a struct :c:type:`reset_controller_dev`, and register it using
Documentation/driver-api/reset.rst:210:devm_reset_controller_register().
Documentation/driver-api/reset.rst-211-
--
Documentation/driver-api/reset.rst-216- :functions: of_reset_simple_xlate
Documentation/driver-api/reset.rst:217: reset_controller_register
Documentation/driver-api/reset.rst:218: reset_controller_unregister
Documentation/driver-api/reset.rst:219: devm_reset_controller_register
--
arch/arm/boot/dts/microchip/at91-wb45n.dtsi=24= atheros {
--
arch/arm/boot/dts/microchip/at91-wb45n.dtsi-29-
arch/arm/boot/dts/microchip/at91-wb45n.dtsi:30:&reset_controller {
arch/arm/boot/dts/microchip/at91-wb45n.dtsi-31- compatible = "atmel,sama5d3-rstc";
--
arch/arm/boot/dts/microchip/at91sam9x5.dtsi=129= pmc: clock-controller@fffffc00 {
--
arch/arm/boot/dts/microchip/at91sam9x5.dtsi-137-
arch/arm/boot/dts/microchip/at91sam9x5.dtsi:138: reset_controller: reset-controller@fffffe00 {
arch/arm/boot/dts/microchip/at91sam9x5.dtsi-139- compatible = "atmel,at91sam9g45-rstc";
--
arch/arm/boot/dts/microchip/sam9x60.dtsi=1333= pmc: clock-controller@fffffc00 {
--
arch/arm/boot/dts/microchip/sam9x60.dtsi-1341-
arch/arm/boot/dts/microchip/sam9x60.dtsi:1342: reset_controller: reset-controller@fffffe00 {
arch/arm/boot/dts/microchip/sam9x60.dtsi-1343- compatible = "microchip,sam9x60-rstc";
--
arch/arm/boot/dts/microchip/sam9x7.dtsi=1257= pmc: clock-controller@fffffc00 {
--
arch/arm/boot/dts/microchip/sam9x7.dtsi-1265-
arch/arm/boot/dts/microchip/sam9x7.dtsi:1266: reset_controller: reset-controller@fffffe00 {
arch/arm/boot/dts/microchip/sam9x7.dtsi-1267- compatible = "microchip,sam9x7-rstc", "microchip,sam9x60-rstc";
--
arch/arm/boot/dts/microchip/sama5d2.dtsi=670= securam: sram@f8044000 {
--
arch/arm/boot/dts/microchip/sama5d2.dtsi-679-
arch/arm/boot/dts/microchip/sama5d2.dtsi:680: reset_controller: reset-controller@f8048000 {
arch/arm/boot/dts/microchip/sama5d2.dtsi-681- compatible = "atmel,sama5d3-rstc";
--
arch/arm/boot/dts/microchip/sama5d3.dtsi=1006= pmc: clock-controller@fffffc00 {
--
arch/arm/boot/dts/microchip/sama5d3.dtsi-1014-
arch/arm/boot/dts/microchip/sama5d3.dtsi:1015: reset_controller: reset-controller@fffffe00 {
arch/arm/boot/dts/microchip/sama5d3.dtsi-1016- compatible = "atmel,sama5d3-rstc", "atmel,at91sam9g45-rstc";
--
arch/arm/boot/dts/microchip/sama5d4.dtsi=733= pmecc: ecc-engine@ffffc070 {
--
arch/arm/boot/dts/microchip/sama5d4.dtsi-739-
arch/arm/boot/dts/microchip/sama5d4.dtsi:740: reset_controller: reset-controller@fc068600 {
arch/arm/boot/dts/microchip/sama5d4.dtsi-741- compatible = "atmel,sama5d3-rstc", "atmel,at91sam9g45-rstc";
--
arch/arm/boot/dts/microchip/sama7d65.dtsi=127= ps_wdt: watchdog@e001d000 {
--
arch/arm/boot/dts/microchip/sama7d65.dtsi-133-
arch/arm/boot/dts/microchip/sama7d65.dtsi:134: reset_controller: reset-controller@e001d100 {
arch/arm/boot/dts/microchip/sama7d65.dtsi-135- compatible = "microchip,sama7d65-rstc", "microchip,sama7g5-rstc";
--
arch/arm/boot/dts/microchip/sama7g5.dtsi=257= pmc: clock-controller@e0018000 {
--
arch/arm/boot/dts/microchip/sama7g5.dtsi-265-
arch/arm/boot/dts/microchip/sama7g5.dtsi:266: reset_controller: reset-controller@e001d000 {
arch/arm/boot/dts/microchip/sama7g5.dtsi-267- compatible = "microchip,sama7g5-rstc";
--
arch/arm/mach-imx/src.c=44=static const int sw_reset_bits[5] = {
--
arch/arm/mach-imx/src.c-51-
arch/arm/mach-imx/src.c:52:static int imx_src_reset_module(struct reset_controller_dev *rcdev,
arch/arm/mach-imx/src.c-53- unsigned long sw_reset_idx)
--
arch/arm/mach-imx/src.c=218=static int imx_src_probe(struct platform_device *pdev)
arch/arm/mach-imx/src.c-219-{
arch/arm/mach-imx/src.c:220: struct reset_controller_dev *rcdev;
arch/arm/mach-imx/src.c-221-
--
arch/arm/mach-imx/src.c-230-
arch/arm/mach-imx/src.c:231: return devm_reset_controller_register(&pdev->dev, rcdev);
arch/arm/mach-imx/src.c-232-}
--
drivers/ata/acard-ahci.c=142=static int acard_ahci_pci_device_resume(struct pci_dev *pdev)
--
drivers/ata/acard-ahci.c-151- if (pdev->dev.power.power_state.event == PM_EVENT_SUSPEND) {
drivers/ata/acard-ahci.c:152: rc = ahci_reset_controller(host);
drivers/ata/acard-ahci.c-153- if (rc)
--
drivers/ata/acard-ahci.c=353=static int acard_ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
--
drivers/ata/acard-ahci.c-447-
drivers/ata/acard-ahci.c:448: rc = ahci_reset_controller(host);
drivers/ata/acard-ahci.c-449- if (rc)
--
drivers/ata/ahci.c=1716=static void ahci_pci_save_initial_config(struct pci_dev *pdev,
--
drivers/ata/ahci.c-1746-
drivers/ata/ahci.c:1747:static int ahci_pci_reset_controller(struct ata_host *host)
drivers/ata/ahci.c-1748-{
--
drivers/ata/ahci.c-1752-
drivers/ata/ahci.c:1753: rc = ahci_reset_controller(host);
drivers/ata/ahci.c-1754- if (rc)
--
drivers/ata/ahci.c=1954=static int ahci_pci_device_runtime_resume(struct device *dev)
--
drivers/ata/ahci.c-1959-
drivers/ata/ahci.c:1960: rc = ahci_pci_reset_controller(host);
drivers/ata/ahci.c-1961- if (rc)
--
drivers/ata/ahci.c=1985=static int ahci_pci_device_resume(struct device *dev)
--
drivers/ata/ahci.c-1995- if (pdev->dev.power.power_state.event == PM_EVENT_SUSPEND) {
drivers/ata/ahci.c:1996: rc = ahci_pci_reset_controller(host);
drivers/ata/ahci.c-1997- if (rc)
--
drivers/ata/ahci.c=2882=static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
--
drivers/ata/ahci.c-3129-
drivers/ata/ahci.c:3130: rc = ahci_pci_reset_controller(host);
drivers/ata/ahci.c-3131- if (rc)
--
drivers/ata/ahci.h=429=void ahci_init_controller(struct ata_host *host);
drivers/ata/ahci.h:430:int ahci_reset_controller(struct ata_host *host);
drivers/ata/ahci.h-431-
--
drivers/ata/libahci.c=948=static int ahci_deinit_port(struct ata_port *ap, const char **emsg)
--
drivers/ata/libahci.c-969-
drivers/ata/libahci.c:970:int ahci_reset_controller(struct ata_host *host)
drivers/ata/libahci.c-971-{
--
drivers/ata/libahci.c-1015-}
drivers/ata/libahci.c:1016:EXPORT_SYMBOL_GPL(ahci_reset_controller);
drivers/ata/libahci.c-1017-
--
drivers/ata/libahci_platform.c=695=int ahci_platform_init_host(struct platform_device *pdev,
--
drivers/ata/libahci_platform.c-771-
drivers/ata/libahci_platform.c:772: rc = ahci_reset_controller(host);
drivers/ata/libahci_platform.c-773- if (rc)
--
drivers/ata/libahci_platform.c=877=int ahci_platform_resume_host(struct device *dev)
--
drivers/ata/libahci_platform.c-883- if (dev->power.power_state.event == PM_EVENT_SUSPEND) {
drivers/ata/libahci_platform.c:884: rc = ahci_reset_controller(host);
drivers/ata/libahci_platform.c-885- if (rc)
--
drivers/ata/sata_highbank.c=452=static int ahci_highbank_probe(struct platform_device *pdev)
--
drivers/ata/sata_highbank.c-543-
drivers/ata/sata_highbank.c:544: rc = ahci_reset_controller(host);
drivers/ata/sata_highbank.c-545- if (rc)
--
drivers/ata/sata_highbank.c=587=static int ahci_highbank_resume(struct device *dev)
--
drivers/ata/sata_highbank.c-592- if (dev->power.power_state.event == PM_EVENT_SUSPEND) {
drivers/ata/sata_highbank.c:593: rc = ahci_reset_controller(host);
drivers/ata/sata_highbank.c-594- if (rc)
--
drivers/clk/actions/owl-reset.c-13-
drivers/clk/actions/owl-reset.c:14:static int owl_reset_assert(struct reset_controller_dev *rcdev,
drivers/clk/actions/owl-reset.c-15- unsigned long id)
--
drivers/clk/actions/owl-reset.c-22-
drivers/clk/actions/owl-reset.c:23:static int owl_reset_deassert(struct reset_controller_dev *rcdev,
drivers/clk/actions/owl-reset.c-24- unsigned long id)
--
drivers/clk/actions/owl-reset.c-31-
drivers/clk/actions/owl-reset.c:32:static int owl_reset_reset(struct reset_controller_dev *rcdev,
drivers/clk/actions/owl-reset.c-33- unsigned long id)
--
drivers/clk/actions/owl-reset.c-41-
drivers/clk/actions/owl-reset.c:42:static int owl_reset_status(struct reset_controller_dev *rcdev,
drivers/clk/actions/owl-reset.c-43- unsigned long id)
--
drivers/clk/actions/owl-reset.h=18=struct owl_reset {
drivers/clk/actions/owl-reset.h:19: struct reset_controller_dev rcdev;
drivers/clk/actions/owl-reset.h-20- const struct owl_reset_map *reset_map;
--
drivers/clk/actions/owl-reset.h-23-
drivers/clk/actions/owl-reset.h:24:static inline struct owl_reset *to_owl_reset(struct reset_controller_dev *rcdev)
drivers/clk/actions/owl-reset.h-25-{
--
drivers/clk/actions/owl-s500.c=599=static int s500_clk_probe(struct platform_device *pdev)
--
drivers/clk/actions/owl-s500.c-617-
drivers/clk/actions/owl-s500.c:618: ret = devm_reset_controller_register(&pdev->dev, &reset->rcdev);
drivers/clk/actions/owl-s500.c-619- if (ret)
--
drivers/clk/actions/owl-s700.c=613=static int s700_clk_probe(struct platform_device *pdev)
--
drivers/clk/actions/owl-s700.c-635-
drivers/clk/actions/owl-s700.c:636: ret = devm_reset_controller_register(&pdev->dev, &reset->rcdev);
drivers/clk/actions/owl-s700.c-637- if (ret)
--
drivers/clk/actions/owl-s900.c=756=static int s900_clk_probe(struct platform_device *pdev)
--
drivers/clk/actions/owl-s900.c-778-
drivers/clk/actions/owl-s900.c:779: ret = devm_reset_controller_register(&pdev->dev, &reset->rcdev);
drivers/clk/actions/owl-s900.c-780- if (ret)
--
drivers/clk/aspeed/clk-aspeed.c=270=static const u8 aspeed_resets[] = {
--
drivers/clk/aspeed/clk-aspeed.c-290-
drivers/clk/aspeed/clk-aspeed.c:291:static int aspeed_reset_deassert(struct reset_controller_dev *rcdev,
drivers/clk/aspeed/clk-aspeed.c-292- unsigned long id)
--
drivers/clk/aspeed/clk-aspeed.c-305-
drivers/clk/aspeed/clk-aspeed.c:306:static int aspeed_reset_assert(struct reset_controller_dev *rcdev,
drivers/clk/aspeed/clk-aspeed.c-307- unsigned long id)
--
drivers/clk/aspeed/clk-aspeed.c-320-
drivers/clk/aspeed/clk-aspeed.c:321:static int aspeed_reset_status(struct reset_controller_dev *rcdev,
drivers/clk/aspeed/clk-aspeed.c-322- unsigned long id)
--
drivers/clk/aspeed/clk-aspeed.c=384=static int aspeed_clk_probe(struct platform_device *pdev)
--
drivers/clk/aspeed/clk-aspeed.c-409-
drivers/clk/aspeed/clk-aspeed.c:410: ret = devm_reset_controller_register(dev, &ar->rcdev);
drivers/clk/aspeed/clk-aspeed.c-411- if (ret) {
--
drivers/clk/aspeed/clk-aspeed.h=63=struct aspeed_reset {
drivers/clk/aspeed/clk-aspeed.h-64- struct regmap *map;
drivers/clk/aspeed/clk-aspeed.h:65: struct reset_controller_dev rcdev;
drivers/clk/aspeed/clk-aspeed.h-66-};
--
drivers/clk/aspeed/clk-ast2600.c=374=static const struct clk_ops aspeed_g6_clk_gate_ops = {
--
drivers/clk/aspeed/clk-ast2600.c-379-
drivers/clk/aspeed/clk-ast2600.c:380:static int aspeed_g6_reset_deassert(struct reset_controller_dev *rcdev,
drivers/clk/aspeed/clk-ast2600.c-381- unsigned long id)
--
drivers/clk/aspeed/clk-ast2600.c-390-
drivers/clk/aspeed/clk-ast2600.c:391:static int aspeed_g6_reset_assert(struct reset_controller_dev *rcdev,
drivers/clk/aspeed/clk-ast2600.c-392- unsigned long id)
--
drivers/clk/aspeed/clk-ast2600.c-400-
drivers/clk/aspeed/clk-ast2600.c:401:static int aspeed_g6_reset_status(struct reset_controller_dev *rcdev,
drivers/clk/aspeed/clk-ast2600.c-402- unsigned long id)
--
drivers/clk/aspeed/clk-ast2600.c=480=static int aspeed_g6_clk_probe(struct platform_device *pdev)
--
drivers/clk/aspeed/clk-ast2600.c-505-
drivers/clk/aspeed/clk-ast2600.c:506: ret = devm_reset_controller_register(dev, &ar->rcdev);
drivers/clk/aspeed/clk-ast2600.c-507- if (ret) {
--
drivers/clk/bcm/clk-bcm2711-dvp.c=25=static int clk_dvp_probe(struct platform_device *pdev)
--
drivers/clk/bcm/clk-bcm2711-dvp.c-54-
drivers/clk/bcm/clk-bcm2711-dvp.c:55: ret = devm_reset_controller_register(&pdev->dev, &dvp->reset.rcdev);
drivers/clk/bcm/clk-bcm2711-dvp.c-56- if (ret)
--
drivers/clk/bcm/clk-bcm63268-timer.c=22=struct bcm63268_tclkrst_hw {
--
drivers/clk/bcm/clk-bcm63268-timer.c-25-
drivers/clk/bcm/clk-bcm63268-timer.c:26: struct reset_controller_dev rcdev;
drivers/clk/bcm/clk-bcm63268-timer.c-27- struct clk_hw_onecell_data data;
--
drivers/clk/bcm/clk-bcm63268-timer.c=77=static inline struct bcm63268_tclkrst_hw *
drivers/clk/bcm/clk-bcm63268-timer.c:78:to_bcm63268_timer_reset(struct reset_controller_dev *rcdev)
drivers/clk/bcm/clk-bcm63268-timer.c-79-{
--
drivers/clk/bcm/clk-bcm63268-timer.c-82-
drivers/clk/bcm/clk-bcm63268-timer.c:83:static int bcm63268_timer_reset_update(struct reset_controller_dev *rcdev,
drivers/clk/bcm/clk-bcm63268-timer.c-84- unsigned long id, bool assert)
--
drivers/clk/bcm/clk-bcm63268-timer.c-101-
drivers/clk/bcm/clk-bcm63268-timer.c:102:static int bcm63268_timer_reset_assert(struct reset_controller_dev *rcdev,
drivers/clk/bcm/clk-bcm63268-timer.c-103- unsigned long id)
--
drivers/clk/bcm/clk-bcm63268-timer.c-107-
drivers/clk/bcm/clk-bcm63268-timer.c:108:static int bcm63268_timer_reset_deassert(struct reset_controller_dev *rcdev,
drivers/clk/bcm/clk-bcm63268-timer.c-109- unsigned long id)
--
drivers/clk/bcm/clk-bcm63268-timer.c-113-
drivers/clk/bcm/clk-bcm63268-timer.c:114:static int bcm63268_timer_reset_reset(struct reset_controller_dev *rcdev,
drivers/clk/bcm/clk-bcm63268-timer.c-115- unsigned long id)
--
drivers/clk/bcm/clk-bcm63268-timer.c-132-
drivers/clk/bcm/clk-bcm63268-timer.c:133:static int bcm63268_timer_reset_status(struct reset_controller_dev *rcdev,
drivers/clk/bcm/clk-bcm63268-timer.c-134- unsigned long id)
--
drivers/clk/bcm/clk-bcm63268-timer.c=148=static int bcm63268_tclk_probe(struct platform_device *pdev)
--
drivers/clk/bcm/clk-bcm63268-timer.c-196-
drivers/clk/bcm/clk-bcm63268-timer.c:197: ret = devm_reset_controller_register(dev, &hw->rcdev);
drivers/clk/bcm/clk-bcm63268-timer.c-198- if (ret)
--
drivers/clk/cix/clk-sky1-audss.c=524=struct sky1_audss_clks_priv {
--
drivers/clk/cix/clk-sky1-audss.c-535-
drivers/clk/cix/clk-sky1-audss.c:536:static int sky1_audss_reset_controller_register(struct device *dev)
drivers/clk/cix/clk-sky1-audss.c-537-{
--
drivers/clk/cix/clk-sky1-audss.c-551-
drivers/clk/cix/clk-sky1-audss.c:552:static int sky1_audss_reset_controller_register(struct device *dev)
drivers/clk/cix/clk-sky1-audss.c-553-{
--
drivers/clk/cix/clk-sky1-audss.c=963=static int sky1_audss_clk_probe(struct platform_device *pdev)
--
drivers/clk/cix/clk-sky1-audss.c-1106-
drivers/clk/cix/clk-sky1-audss.c:1107: ret = sky1_audss_reset_controller_register(dev);
drivers/clk/cix/clk-sky1-audss.c-1108- if (ret) {
--
drivers/clk/clk-en7523.c=110=struct en_rst_data {
--
drivers/clk/clk-en7523.c-113- void __iomem *base;
drivers/clk/clk-en7523.c:114: struct reset_controller_dev rcdev;
drivers/clk/clk-en7523.c-115-};
--
drivers/clk/clk-en7523.c=714=static void en7581_register_clocks(struct device *dev, struct clk_hw_onecell_data *clk_data,
--
drivers/clk/clk-en7523.c-755-
drivers/clk/clk-en7523.c:756:static int en7523_reset_update(struct reset_controller_dev *rcdev,
drivers/clk/clk-en7523.c-757- unsigned long id, bool assert)
--
drivers/clk/clk-en7523.c-778-
drivers/clk/clk-en7523.c:779:static int en7523_reset_assert(struct reset_controller_dev *rcdev,
drivers/clk/clk-en7523.c-780- unsigned long id)
--
drivers/clk/clk-en7523.c-784-
drivers/clk/clk-en7523.c:785:static int en7523_reset_deassert(struct reset_controller_dev *rcdev,
drivers/clk/clk-en7523.c-786- unsigned long id)
--
drivers/clk/clk-en7523.c-790-
drivers/clk/clk-en7523.c:791:static int en7523_reset_status(struct reset_controller_dev *rcdev,
drivers/clk/clk-en7523.c-792- unsigned long id)
--
drivers/clk/clk-en7523.c-807-
drivers/clk/clk-en7523.c:808:static int en7523_reset_xlate(struct reset_controller_dev *rcdev,
drivers/clk/clk-en7523.c-809- const struct of_phandle_args *reset_spec)
--
drivers/clk/clk-en7523.c=825=static int en7581_reset_register(struct device *dev, void __iomem *base,
--
drivers/clk/clk-en7523.c-846-
drivers/clk/clk-en7523.c:847: return devm_reset_controller_register(dev, &rst_data->rcdev);
drivers/clk/clk-en7523.c-848-}
--
drivers/clk/clk-gemini.c=81=struct gemini_reset {
drivers/clk/clk-gemini.c-82- struct regmap *map;
drivers/clk/clk-gemini.c:83: struct reset_controller_dev rcdev;
drivers/clk/clk-gemini.c-84-};
--
drivers/clk/clk-gemini.c=192=static struct clk_hw *gemini_pci_clk_setup(const char *name,
--
drivers/clk/clk-gemini.c-223- */
drivers/clk/clk-gemini.c:224:static int gemini_reset(struct reset_controller_dev *rcdev,
drivers/clk/clk-gemini.c-225- unsigned long id)
--
drivers/clk/clk-gemini.c-234-
drivers/clk/clk-gemini.c:235:static int gemini_reset_assert(struct reset_controller_dev *rcdev,
drivers/clk/clk-gemini.c-236- unsigned long id)
--
drivers/clk/clk-gemini.c-240-
drivers/clk/clk-gemini.c:241:static int gemini_reset_deassert(struct reset_controller_dev *rcdev,
drivers/clk/clk-gemini.c-242- unsigned long id)
--
drivers/clk/clk-gemini.c-246-
drivers/clk/clk-gemini.c:247:static int gemini_reset_status(struct reset_controller_dev *rcdev,
drivers/clk/clk-gemini.c-248- unsigned long id)
--
drivers/clk/clk-gemini.c=268=static int gemini_clk_probe(struct platform_device *pdev)
--
drivers/clk/clk-gemini.c-304-
drivers/clk/clk-gemini.c:305: ret = devm_reset_controller_register(dev, &gr->rcdev);
drivers/clk/clk-gemini.c-306- if (ret) {
--
drivers/clk/davinci/psc.c=58=struct davinci_psc_data {
--
drivers/clk/davinci/psc.c-60- struct genpd_onecell_data pm_data;
drivers/clk/davinci/psc.c:61: struct reset_controller_dev rcdev;
drivers/clk/davinci/psc.c-62-};
--
drivers/clk/davinci/psc.c=295=static int davinci_lpsc_clk_reset(struct clk *clk, bool reset)
--
drivers/clk/davinci/psc.c-309-
drivers/clk/davinci/psc.c:310:static int davinci_psc_reset_assert(struct reset_controller_dev *rcdev,
drivers/clk/davinci/psc.c-311- unsigned long id)
--
drivers/clk/davinci/psc.c-318-
drivers/clk/davinci/psc.c:319:static int davinci_psc_reset_deassert(struct reset_controller_dev *rcdev,
drivers/clk/davinci/psc.c-320- unsigned long id)
--
drivers/clk/davinci/psc.c=328=static const struct reset_control_ops davinci_psc_reset_ops = {
--
drivers/clk/davinci/psc.c-332-
drivers/clk/davinci/psc.c:333:static int davinci_psc_reset_of_xlate(struct reset_controller_dev *rcdev,
drivers/clk/davinci/psc.c-334- const struct of_phandle_args *reset_spec)
--
drivers/clk/davinci/psc.c=364=__davinci_psc_register_clocks(struct device *dev,
--
drivers/clk/davinci/psc.c-440-
drivers/clk/davinci/psc.c:441: ret = devm_reset_controller_register(dev, &psc->rcdev);
drivers/clk/davinci/psc.c-442- if (ret < 0)
--
drivers/clk/hisilicon/clk-hi3519.c=29=struct hi3519_crg_data {
drivers/clk/hisilicon/clk-hi3519.c-30- struct hisi_clock_data *clk_data;
drivers/clk/hisilicon/clk-hi3519.c:31: struct hisi_reset_controller *rstc;
drivers/clk/hisilicon/clk-hi3519.c-32-};
--
drivers/clk/hisilicon/crg.h=11=struct hisi_clock_data;
drivers/clk/hisilicon/crg.h:12:struct hisi_reset_controller;
drivers/clk/hisilicon/crg.h-13-
--
drivers/clk/hisilicon/crg.h=19=struct hisi_crg_dev {
drivers/clk/hisilicon/crg.h-20- struct hisi_clock_data *clk_data;
drivers/clk/hisilicon/crg.h:21: struct hisi_reset_controller *rstc;
drivers/clk/hisilicon/crg.h-22- const struct hisi_crg_funcs *funcs;
--
drivers/clk/hisilicon/reset.c-19-
drivers/clk/hisilicon/reset.c:20:struct hisi_reset_controller {
drivers/clk/hisilicon/reset.c-21- spinlock_t lock;
drivers/clk/hisilicon/reset.c-22- void __iomem *membase;
drivers/clk/hisilicon/reset.c:23: struct reset_controller_dev rcdev;
drivers/clk/hisilicon/reset.c-24-};
--
drivers/clk/hisilicon/reset.c-26-
drivers/clk/hisilicon/reset.c:27:#define to_hisi_reset_controller(rcdev) \
drivers/clk/hisilicon/reset.c:28: container_of(rcdev, struct hisi_reset_controller, rcdev)
drivers/clk/hisilicon/reset.c-29-
drivers/clk/hisilicon/reset.c:30:static int hisi_reset_of_xlate(struct reset_controller_dev *rcdev,
drivers/clk/hisilicon/reset.c-31- const struct of_phandle_args *reset_spec)
--
drivers/clk/hisilicon/reset.c-42-
drivers/clk/hisilicon/reset.c:43:static int hisi_reset_assert(struct reset_controller_dev *rcdev,
drivers/clk/hisilicon/reset.c-44- unsigned long id)
drivers/clk/hisilicon/reset.c-45-{
drivers/clk/hisilicon/reset.c:46: struct hisi_reset_controller *rstc = to_hisi_reset_controller(rcdev);
drivers/clk/hisilicon/reset.c-47- unsigned long flags;
--
drivers/clk/hisilicon/reset.c-63-
drivers/clk/hisilicon/reset.c:64:static int hisi_reset_deassert(struct reset_controller_dev *rcdev,
drivers/clk/hisilicon/reset.c-65- unsigned long id)
drivers/clk/hisilicon/reset.c-66-{
drivers/clk/hisilicon/reset.c:67: struct hisi_reset_controller *rstc = to_hisi_reset_controller(rcdev);
drivers/clk/hisilicon/reset.c-68- unsigned long flags;
--
drivers/clk/hisilicon/reset.c=85=static const struct reset_control_ops hisi_reset_ops = {
--
drivers/clk/hisilicon/reset.c-89-
drivers/clk/hisilicon/reset.c:90:struct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev)
drivers/clk/hisilicon/reset.c-91-{
drivers/clk/hisilicon/reset.c:92: struct hisi_reset_controller *rstc;
drivers/clk/hisilicon/reset.c-93-
--
drivers/clk/hisilicon/reset.c-107- rstc->rcdev.of_xlate = hisi_reset_of_xlate;
drivers/clk/hisilicon/reset.c:108: reset_controller_register(&rstc->rcdev);
drivers/clk/hisilicon/reset.c-109-
--
drivers/clk/hisilicon/reset.c=112=EXPORT_SYMBOL_GPL(hisi_reset_init);
drivers/clk/hisilicon/reset.c-113-
drivers/clk/hisilicon/reset.c:114:void hisi_reset_exit(struct hisi_reset_controller *rstc)
drivers/clk/hisilicon/reset.c-115-{
drivers/clk/hisilicon/reset.c:116: reset_controller_unregister(&rstc->rcdev);
drivers/clk/hisilicon/reset.c-117-}
--
drivers/clk/hisilicon/reset.h=9=struct device_node;
drivers/clk/hisilicon/reset.h:10:struct hisi_reset_controller;
drivers/clk/hisilicon/reset.h-11-
drivers/clk/hisilicon/reset.h-12-#ifdef CONFIG_RESET_CONTROLLER
drivers/clk/hisilicon/reset.h:13:struct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev);
drivers/clk/hisilicon/reset.h:14:void hisi_reset_exit(struct hisi_reset_controller *rstc);
drivers/clk/hisilicon/reset.h-15-#else
drivers/clk/hisilicon/reset.h=16=static inline
drivers/clk/hisilicon/reset.h:17:struct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev)
drivers/clk/hisilicon/reset.h-18-{
--
drivers/clk/hisilicon/reset.h-20-}
drivers/clk/hisilicon/reset.h:21:static inline void hisi_reset_exit(struct hisi_reset_controller *rstc)
drivers/clk/hisilicon/reset.h-22-{}
--
drivers/clk/imx/clk-imx8mp-audiomix.c=222=struct clk_imx8mp_audiomix_priv {
--
drivers/clk/imx/clk-imx8mp-audiomix.c-231-
drivers/clk/imx/clk-imx8mp-audiomix.c:232:static int clk_imx8mp_audiomix_reset_controller_register(struct device *dev,
drivers/clk/imx/clk-imx8mp-audiomix.c-233- struct clk_imx8mp_audiomix_priv *priv)
--
drivers/clk/imx/clk-imx8mp-audiomix.c-248-
drivers/clk/imx/clk-imx8mp-audiomix.c:249:static int clk_imx8mp_audiomix_reset_controller_register(struct device *dev,
drivers/clk/imx/clk-imx8mp-audiomix.c-250- struct clk_imx8mp_audiomix_priv *priv)
--
drivers/clk/imx/clk-imx8mp-audiomix.c=272=static int clk_imx8mp_audiomix_probe(struct platform_device *pdev)
--
drivers/clk/imx/clk-imx8mp-audiomix.c-378-
]
|
| 64/2 |
2026/09/16 00:44 |
llm |
expert |
0m
Model:
Tokens:
input: 59102
output: 35
thoughts: 1760
Thoughts: **Bug Analysis: NVMe Block Layer Lockdep Warning**
Okay, first things first, I need to confirm something: can an unprivileged user even *trigger* the relevant code paths here? I'm thinking about `nvme_scan_ns`, the function that ultimately gets called when a new namespace is found. I recall that `nvme_scan_ns` is triggered through the scanning mechanism initiated by `nvme_scan_work`, which is queued by `nvme_queue_scan`. Alright, let's trace this back. `nvme_queue_scan` is called from: `nvme_reset_work`, `nvme_probe`, `nvme_dev_add`, `nvme_sysfs_rescan`, `nvme_mpath_set_live`, `nvme_fc_create_association`, `nvme_tcp_setup_ctrl`, and `nvme_rdma_setup_ctrl`.
Now, can an unprivileged user access any of these triggering functions? Writing to the `rescan_controller` sysfs attribute? Nope, that requires root (0200 permissions). What about probing or adding devices? That requires physical access, or root to load modules or bind drivers. TCP and RDMA setup? Root, again, as `nvme-cli` uses netlink or sysfs, both of which require root. So, I'm confident an unprivileged user *cannot* directly trigger the NVMe scanning process. This is good news, eliminating a whole class of potential attack vectors.
Alright, back to the core of the bug. It looks like it's a lockdep warning, which, I recall, is essentially a lock state mismatch. The warning message is about `kworker/u8:28/9220` trying to release a lock that isn't held: `&q->q_usage_counter(io)` at `blk_mq_unfreeze_queue`, but there are no more locks to release!
Specifically, the `rwsem_release(&q->io_lockdep_map, _RET_IP_)` call is happening without the corresponding lockdep map acquisition. Remember, in production builds, lockdep is disabled, so there's no actual lock involved here. The real queue freezing logic relies on `q->mq_freeze_depth` and `q->q_usage_counter`. `q->mq_freeze_depth` is protected by a mutex, `q->mq_freeze_lock`, and `q->q_usage_counter` is a `percpu_ref`.
Now let's examine the code.
Task A calls `blk_mq_unfreeze_queue`. Inside, we have:
```c
mutex_lock(&q->mq_freeze_lock);
q->mq_freeze_depth--;
if (!q->mq_freeze_depth) {
percpu_ref_resurrect(&q->q_usage_counter);
wake_up_all(&q->mq_freeze_wq);
}
unfreeze = blk_unfreeze_check_owner(q);
mutex_unlock(&q->mq_freeze_lock);
```
Task B calls `blk_mq_freeze_queue`. Inside, we have:
```c
mutex_lock(&q->mq_freeze_lock);
freeze = blk_freeze_set_owner(q, owner);
if (++q->mq_freeze_depth == 1) {
percpu_ref_kill(&q->q_usage_counter);
mutex_unlock(&q->mq_freeze_lock);
if (queue_is_mq(q))
blk_mq_run_hw_queues(q, false);
} else {
mutex_unlock(&q->mq_freeze_lock);
}
```
The logic appears safe; if Task A decrements `mq_freeze_depth` to 0, it resurrects `q_usage_counter`, and Task B then increments to 1, killing it, this seems okay, as the mutex protects both `mq_freeze_depth` and the `q_usage_counter`.
The potential issue is that `q->mq_freeze_disk_dead` might be modified between Task A's `mutex_unlock` and `blk_unfreeze_release_lock`.
```c
if (__blk_mq_unfreeze_queue(q, false))
blk_unfreeze_release_lock(q);
```
If `__blk_mq_unfreeze_queue` returns true, then `blk_unfreeze_release_lock` is called.
```c
static inline void blk
|
| 65/2 |
2026/09/16 00:45 |
tool |
codesearch-definition-source |
0m
Args: map[ContextFile:include/linux/blkdev.h Name:request_queue]
Results: map[SourceCode: 488: struct request_queue {
489: /*
490: * The queue owner gets to use this for whatever they like.
491: * ll_rw_blk doesn't touch it.
492: */
493: void *queuedata;
494:
495: struct elevator_queue *elevator;
496:
497: const struct blk_mq_ops *mq_ops;
498:
499: /* sw queues */
500: struct blk_mq_ctx __percpu *queue_ctx;
501:
502: /*
503: * various queue flags, see QUEUE_* below
504: */
505: unsigned long queue_flags;
506:
507: unsigned int __data_racy rq_timeout;
508:
509: unsigned int queue_depth;
510:
511: refcount_t refs;
512:
513: /* hw dispatch queues */
514: unsigned int nr_hw_queues;
515: struct blk_mq_hw_ctx * __rcu *queue_hw_ctx __counted_by_ptr(nr_hw_queues);
516:
517: struct percpu_ref q_usage_counter;
518: struct lock_class_key io_lock_cls_key;
519: struct lockdep_map io_lockdep_map;
520:
521: struct lock_class_key q_lock_cls_key;
522: struct lockdep_map q_lockdep_map;
523:
524: struct request *last_merge;
525:
526: spinlock_t queue_lock;
527:
528: int quiesce_depth;
529:
530: struct gendisk *disk;
531:
532: /*
533: * mq queue kobject
534: */
535: struct kobject *mq_kobj;
536:
537: struct queue_limits limits;
538:
539: #ifdef CONFIG_PM
540: struct device *dev;
541: enum rpm_status rpm_status;
542: #endif
543:
544: /*
545: * Number of contexts that have called blk_set_pm_only(). If this
546: * counter is above zero then only RQF_PM requests are processed.
547: */
548: atomic_t pm_only;
549:
550: struct blk_queue_stats *stats;
551: struct rq_qos *rq_qos;
552: struct mutex rq_qos_mutex;
553:
554: /*
555: * ida allocated id for this queue. Used to index queues from
556: * ioctx.
557: */
558: int id;
559:
560: /*
561: * queue settings
562: */
563: unsigned int nr_requests; /* Max # of requests */
564: unsigned int async_depth; /* Max # of async requests */
565:
566: #ifdef CONFIG_BLK_INLINE_ENCRYPTION
567: struct blk_crypto_profile *crypto_profile;
568: struct kobject *crypto_kobject;
569: #endif
570:
571: struct timer_list timeout;
572: struct work_struct timeout_work;
573:
574: atomic_t nr_active_requests_shared_tags;
575:
576: struct blk_mq_tags *sched_shared_tags;
577:
578: struct list_head icq_list;
579: #ifdef CONFIG_BLK_CGROUP
580: DECLARE_BITMAP (blkcg_pols, BLKCG_MAX_POLS);
581: struct blkcg_gq *root_blkg;
582: struct list_head blkg_list;
583: struct mutex blkcg_mutex;
584: #endif
585:
586: int node;
587:
588: spinlock_t requeue_lock;
589: struct list_head requeue_list;
590: struct delayed_work requeue_work;
591:
592: #ifdef CONFIG_BLK_DEV_IO_TRACE
593: struct blk_trace __rcu *blk_trace;
594: #endif
595: /*
596: * for flush operations
597: */
598: struct blk_flush_queue *fq;
599: struct list_head flush_list;
600:
601: /*
602: * Protects against I/O scheduler switching, particularly when updating
603: * q->elevator. Since the elevator update code path may also modify q->
604: * nr_requests and wbt latency, this lock also protects the sysfs attrs
605: * nr_requests and wbt_lat_usec. Additionally the nr_hw_queues update
606: * may modify hctx tags, reserved-tags and cpumask, so this lock also
607: * helps protect the hctx sysfs/debugfs attrs. To ensure proper locking
608: * order during an elevator or nr_hw_queue update, first freeze the
609: * queue, then acquire ->elevator_lock.
610: */
611: struct mutex elevator_lock;
612:
613: struct mutex sysfs_lock;
614: /*
615: * Protects queue limits and also sysfs attribute read_ahead_kb.
616: */
617: struct mutex limits_lock;
618:
619: /*
620: * for reusing dead hctx instance in case of updating
621: * nr_hw_queues
622: */
623: struct list_head unused_hctx_list;
624: spinlock_t unused_hctx_lock;
625:
626: int mq_freeze_depth;
627:
628: #ifdef CONFIG_BLK_DEV_THROTTLING
629: /* Throttle data */
630: struct throtl_data *td;
631: #endif
632: struct rcu_head rcu_head;
633: #ifdef CONFIG_LOCKDEP
634: struct task_struct *mq_freeze_owner;
635: int mq_freeze_owner_depth;
636: /*
637: * Records disk & queue state in current context, used in unfreeze
638: * queue
639: */
640: bool mq_freeze_disk_dead;
641: bool mq_freeze_queue_dying;
642: #endif
643: wait_queue_head_t mq_freeze_wq;
644: /*
645: * Protect concurrent access to q_usage_counter by
646: * percpu_ref_kill() and percpu_ref_reinit().
647: */
648: struct mutex mq_freeze_lock;
649:
650: struct blk_mq_tag_set *tag_set;
651: struct list_head tag_set_list;
652:
653: struct dentry *debugfs_dir;
654: struct dentry *sched_debugfs_dir;
655: struct dentry *rqos_debugfs_dir;
656: /*
657: * Serializes all debugfs metadata operations using the above dentries.
658: */
659: struct mutex debugfs_mutex;
660: };
SourceFile:include/linux/blkdev.h]
|
| 66/2 |
2026/09/16 00:45 |
llm |
expert |
0m
Model:
Tokens:
input: 64319
output: 66
thoughts: 449
Thoughts: **Lockdep Bug Analysis: A Deep Dive**
Okay, so I've pinpointed it. The presence of `mq_freeze_disk_dead` and `mq_freeze_queue_dying` nestled within the `#ifdef CONFIG_LOCKDEP` block is the smoking gun! It's crystal clear: this bug is *entirely* a Lockdep issue. It's a non-issue for production environments where `CONFIG_LOCKDEP` is disabled, and that's the crucial takeaway.
Let's break down the implications: we're dealing with a lockdep warning, "bad unlock balance detected!". The root cause is that race condition lurking between `blk_mq_unfreeze_queue` and `blk_mq_freeze_queue` where `q->mq_freeze_disk_dead` or `q->mq_freeze_queue_dying` can be modified by a competing task between when we start the unfreeze and when lockdep's `rwsem_release` is called.
The key is that those problematic fields (`mq_freeze_disk_dead`, `mq_freeze_queue_dying`, `mq_freeze_owner`, `mq_freeze_owner_depth`) are *only* defined and used under `CONFIG_LOCKDEP`. In production, without lockdep, they simply don't exist. The lockdep macros do nothing, and the race condition, and the warning, disappears. No memory corruption, no potential for a denial of service, *absolutely* no security implications. It's a development-time annoyance, nothing more.
The trigger appears to be NVMe scanning which, as we know, requires root privileges or physical access to initiate it. This is a Peripheral Trigger, and it cannot be exploited by unprivileged processes or within user namespaces. This is a very targeted issue. Now I can move on to my final thoughts and results. Time to call `set-results`.
|
| 67/2 |
2026/09/16 00:45 |
tool |
set-results |
0m
Args: map[DenialOfService:false Exploitable:false FilesystemTrigger:false NetworkTrigger:false PeripheralTrigger:true RemoteTrigger:false Unprivileged:false UserNamespace:false VMGuestTrigger:false VMHostTrigger:false]
Results: map[DenialOfService:false Exploitable:false FilesystemTrigger:false NetworkTrigger:false PeripheralTrigger:true RemoteTrigger:false Unprivileged:false UserNamespace:false VMGuestTrigger:false VMHostTrigger:false]
|
| 68/2 |
2026/09/16 00:45 |
llm |
expert |
0m
Model:
Tokens:
input: 65305
output: 511
thoughts: 416
Thoughts: **My Analysis of the Lockdep Warning**
Okay, the results are in. Time to synthesize a final, concise response. What we're looking at is a `lockdep` warning, specifically a `WARNING: bad unlock balance detected!` within `blk_mq_unfreeze_queue`. The core issue stems from an imbalance in the `lockdep` annotations β the `rwsem_acquire` and `rwsem_release` calls β associated with the queue freeze lock, specifically related to the `q->io_lockdep_map` and `q->q_lockdep_map` fields.
Essentially, a race condition is to blame. Another task is modifying `q->mq_freeze_disk_dead` or `q->mq_freeze_queue_dying` via a call to `blk_mq_freeze_queue` just after my task decrements `q->mq_freeze_depth` to zero, but before it gets around to calling `blk_unfreeze_release_lock`.
Crucially, though, these fields (`mq_freeze_disk_dead`, `mq_freeze_queue_dying`, `mq_freeze_owner`, `mq_freeze_owner_depth`) within the `struct request_queue` are only guarded by `#ifdef CONFIG_LOCKDEP`. And as we know, `rwsem_acquire` and `rwsem_release` are really just lockdep macros that get compiled to practically nothing when `CONFIG_LOCKDEP` is disabled.
Therefore, in any production kernel build β where `CONFIG_LOCKDEP` is almost always disabled β this warning is completely benign. It has zero impact on the queue freezing logic itself. It doesn't affect memory safety, control flow, or anything that would allow an attacker to trigger a denial of service or exploit it.
This bug is triggered by the NVMe namespace scanning (`nvme_scan_ns`) process, which kicks off when an NVMe device is probed or reset. Triggering this requires either physical access to the machine to hotplug an NVMe device (peripheral trigger) or, more likely, root privileges (think `CAP_SYS_ADMIN`) to run something like `NVME_IOCTL_RESET` or write to sysfs. It can't be triggered by unprivileged users, or even from within a user namespace.
|
| 69/1 |
2026/09/16 00:45 |
action |
format-explanation |
0m
Results: map[Explanation:Based on the analysis of the kernel source code, here is the assessment of the
bug:
**Bug Mechanism:**
The bug is a lockdep warning: `WARNING: bad unlock balance detected!` triggered
in `blk_mq_unfreeze_queue`.
It occurs because the lockdep annotations for the queue freeze lock
(`rwsem_acquire` and `rwsem_release` on `q->io_lockdep_map` and
`q->q_lockdep_map`) become unbalanced. This unbalance is caused by a race
condition: when Task A calls `blk_mq_unfreeze_queue`, it decrements
`q->mq_freeze_depth` to 0 and releases the `mq_freeze_lock`. Before Task A can
call `blk_unfreeze_release_lock`, Task B can call `blk_mq_freeze_queue`, acquire
the lock, and modify `q->mq_freeze_disk_dead` or `q->mq_freeze_queue_dying`.
Task A then reads the modified state and incorrectly skips or executes
`rwsem_release`, leading to the lockdep warning.
**Security Impact:**
Crucially, the fields `mq_freeze_disk_dead`, `mq_freeze_queue_dying`,
`mq_freeze_owner`, and `mq_freeze_owner_depth` in `struct request_queue` are
strictly guarded by `#ifdef CONFIG_LOCKDEP`. Furthermore, the functions
`rwsem_acquire` and `rwsem_release` are lockdep macros that compile to empty
statements when `CONFIG_LOCKDEP` is disabled.
In production kernel builds, `CONFIG_LOCKDEP` is disabled. Therefore, this bug
is purely a lockdep state tracking mismatch and has absolutely no effect on the
actual queue freezing logic, memory safety, or control flow. It **cannot** cause
a denial of service, memory corruption, or be exploited in any way.
**Triggerability:**
The bug is triggered during NVMe namespace scanning (`nvme_scan_ns`), which
happens when an NVMe device is probed, added, or reset. This requires either
physical access to plug in an NVMe device (Peripheral Trigger) or root
privileges (e.g., `CAP_SYS_ADMIN` to issue `NVME_IOCTL_RESET` or write to the
`rescan_controller` sysfs attribute). It cannot be triggered by unprivileged
users or from within user namespaces.]
|