총 16,407건
CVE-2026-68192
2026년 8월 10일리눅스 커널에서 아래 취약점이 해결되었습니다: wifi: brcmfmac: release_scratchbuffers를 아이덴트로 유지하도록 만들기 brcmf_pcie_release_scratchbuffers()는 shared.scratch 및 shared.ringupd DMA 버퍼를 dma_free_coherent()로 해제하지만, release_ringbuffers()와 달리 포인터를 이후에 지우지 않습니다. release_ringbuffers()는 해제 시 commonrings/flowrings/idxbuf를 NULL로 설정합니다. 버스 리셋 .reset 콜백(brcmf_pcie_reset)과 brcmf_pcie_remove()는 release_scratchbuffers를 호출합니다. 제거(remove)이 해제 해제가 진행되기 전에 리셋 teardown이 실행되면, remove의 자체 teardown은 이미 해제된 DMA 할당에 대해 dma_free_coherent()를 두 번째로 호출하게 됩니다. 해제 후 포인터를 NULL로 설정하여, release_ringbuffers()와 일치시키면 이후의 해제가 이미 해제되었는지 관찰할 수 있습니다. 이 패치는 반복적인 연속 해제를 안전하게 만듭니다. reset 작업의 수명은 아래 패치에서 처리됩니다. 이 문제는 내부 정적 분석 도구에 의해 발견되었습니다.
CVE-2026-68191
2026년 8월 10일In the Linux kernel, the following vulnerability has been resolved: wifi: ath12k: fix NULL pointer dereference in rhash table destroy When unbinding the ath12k driver, kernel NULL pointer dereferences occur in irq_work_sync() called from rhashtable_destroy(). Two hash tables are affected: 1. ath12k_link_sta hash table in ath12k_base 2. ath12k_dp_link_peer hash table in ath12k_dp The issue happens because the destroy functions are called unconditionally in cleanup paths, but the hash tables are only initialized late in their respective init functions. If the device was never fully started or if the init functions failed before initializing the hash tables, the pointers will be NULL. The issues are always reproducible from a VM because the MSI addressing initialization is failing. Call trace for ath12k_link_sta_rhash_tbl_destroy: RIP: irq_work_sync+0x1e/0x70 rhashtable_destroy+0x12/0x60 ath12k_link_sta_rhash_tbl_destroy+0x19/0x40 [ath12k] ath12k_core_stop+0xe/0x80 [ath12k] ath12k_core_hw_group_cleanup+0x6b/0xb0 [ath12k] ath12k_pci_remove+0x60/0x110 [ath12k] Call trace for ath12k_dp_link_peer_rhash_tbl_destroy: RIP: irq_work_sync+0x1e/0x70 rhashtable_destroy+0x12/0x60 ath12k_dp_link_peer_rhash_tbl_destroy+0x29/0x50 [ath12k] ath12k_dp_cmn_device_deinit+0x21/0x140 [ath12k] ath12k_core_hw_group_cleanup+0x6b/0xb0 [ath12k] ath12k_pci_remove+0x60/0x110 [ath12k] Fix this by adding NULL checks before calling rhashtable_destroy() in both destroy functions. The NULL check approach was chosen because the rhashtable pointer serves as the initialization state indicator. The init can fail at various points, leaving some components uninitialized. Checking the pointer directly is simpler than adding separate state flags that would need synchronization.
CVE-2026-68190
2026년 8월 10일In the Linux kernel, the following vulnerability has been resolved: staging: rtl8723bs: fix OOB reads in rtw_get_wps_ie() rtw_get_wps_ie() iterates over IE data from network frames without validating that the IE header and payload fit within the remaining buffer before reading them. Specifically: - in_ie[cnt + 1] is read without checking cnt + 1 < in_len - memcmp(&in_ie[cnt + 2], ...) accesses cnt + 2 without bounds check - in_ie[cnt + 1] is used as length without verifying payload fits Add bounds checks at the top of the loop body to break early if fewer than 2 bytes remain for the IE header, or if the declared payload extends past the end of the buffer. Also require at least 4 bytes of payload before comparing the WPS OUI.
CVE-2026-68189
2026년 8월 10일리눅스 커널에서 다음 취약점이 해결되었습니다: Bluetooth: hci_sync: UUID 목록 순회를 보호 hci_sync 변환은 HCI 요청(hdev->lock 아래에서 구성된)을 비동기 명령 동기 작업으로 이동했습니다. 작업자는 hdev->req_lock를 가지고 있지만, 이 잠금은 add_uuid()와 remove_uuid()가 hdev->lock 아래에서 리스트를 갱신하는 동안 UUID 목록에 대한 접근을 직렬화하지 않습니다. 따라서 다음과 같은 교차 실행(interleaving)이 발생할 수 있습니다: CPU0(명령 동기 작업) CPU1(관리 소켓) 목록에서 UUID를 가져옴 list_del(&uuid->list) kfree(uuid) UUID->size를 읽음 KASAN은 사용 후 해제(use-after-free)로 인한 결과를 보고합니다: BUG: KASAN: slab-use-after-free in eir_create+0xb8f/0xee0 Read of size 1 at addr ffff88810dbd8620 by task kworker/u17:0/87 Workqueue: hci0 hci_cmd_sync_work Call Trace: eir_create+0xb8f/0xee0 hci_update_eir_sync+0x1c0/0x330 hci_cmd_sync_work+0x13c/0x290 process_one_work+0x63a/0x1070 worker_thread+0x45b/0xd10 Allocated by task 86: __kasan_kmalloc+0x8f/0xa0 add_uuid+0x18a/0x4b0 hci_sock_sendmsg+0x1033/0x1ea0 Freed by task 92: __kasan_slab_free+0x43/0x70 kfree+0x131/0x3c0 remove_uuid+0x25e/0x560 hci_sock_sendmsg+0x1033/0x1ea0 호출 중인 HCI 명령을 보내기 전에 hdev->lock를 유지하고, 생성 및 커밋된 class-of-device와 EIR 스냅샷을 보호합니다. 컨트롤러 대기(wait)로 인해 장치 잠금 하에서 발생하는 지연을 방지합니다. 이는 이러한 경로의 모든 UUID 목록 순회에 대한 직렬화를 복구합니다.
CVE-2026-68188
2026년 8월 10일Linux 커널에서 다음 취약점이 해결되었습니다: Bluetooth: RFCOMM: set_termios에서 세션 UAF 수정 rfcomm_tty_set_termios()는 rfcomm_mutex 없이 dlc->session을 테스트한 후 포인터를 rfcomm_send_rpn()에 전달합니다. 후자는 session->initiator와 session->sock을 역참조합니다. 한편, krfcommd는 rfcomm_mutex를 보유한 채 세션을 해제하고 DLC를 해제할 수 있습니다. 레이스는 다음과 같이 진행될 수 있습니다: TTY ioctl 작업 krfcommd -------------- -------- load dlc->session enter rfcomm_send_rpn() rfcomm_mutex 잠금 dlc->session 제거 세션 해제 rfcomm_mutex 해제 session->initiator 읽기 KASAN 보고: 버그: KASAN: slab-use-after-free in rfcomm_send_rpn+0x297/0x2a0 주소 ffff88810012a850에서 4바이트 읽기 by 작업 poc/92 호출 추적: rfcomm_send_rpn+0x297/0x2a0 rfcomm_tty_set_termios+0x50d/0x850 tty_set_termios+0x596/0x950 set_termios+0x46a/0x6e0 tty_mode_ioctl+0x152/0xbd0 tty_ioctl+0x915/0x1240 __x64_sys_ioctl+0x134/0x1c0 할당된 작업 92: rfcomm_session_add+0x9e/0x2e0 rfcomm_dlc_open+0x8b1/0xe00 rfcomm_dev_activate+0x85/0x1a0 rfcomm_tty_open+0x90/0x280 해제된 작업 68: kfree+0x131/0x3c0 rfcomm_session_del+0x119/0x180 rfcomm_run+0x737/0x4710 rfcomm_dlc_send_rpn()를 추가했습니다. 이 함수는 프레임 구성과 소켓 전송 사이를 통해 DLC가 아직 붙어 있는지 확인하면서 rfcomm_mutex를 보유합니다. TTY 경로는 도우미를 사용하고 unlocked 세션 검사 부분을 제거합니다. 이로써 프레임 구성과 소켓 전송 사이에 세션이 유효하게 유지됩니다.
CVE-2026-68187
2026년 8월 10일In the Linux kernel, the following vulnerability has been resolved: exec: fix unsigned loop counter wrap in transfer_args_to_stack() The stop value is derived from bprm->p >> PAGE_SHIFT. The index variable is an unsigned long. If bprm->p drops below PAGE_SIZE and stop becomes zero the loop condition index >= stop is always true. After the index == 0 iteration the decrement wraps to ULONG_MAX and bprm->page[ULONG_MAX] reads sizeof(void *) bytes in front of the array. The pointer has wrapped to -1. That garbage pointer is then passed to kmap_local_page() and PAGE_SIZE bytes are copied from wherever that lands into the stack of the process being created. And the loop doesn't terminate either... Getting there only requires bprm->p < PAGE_SIZE. On !MMU bprm_set_stack_limit() and bprm_hit_stack_limit() are empty. So the only constraint on how far bprm->p is pushed down is valid_arg_len(), i.e. that each individual string still fits in what is left. bprm->p starts at PAGE_SIZE * MAX_ARG_PAGES - sizeof(void *) so a single argument or environment string of a little over 31 pages leaves it in the first page: Oops - load access fault [#1] CPU: 0 UID: 0 PID: 1 Comm: victim Not tainted 7.2.0-rc4 #1 epc : __memcpy+0xd4/0xf8 ra : transfer_args_to_stack+0xaa/0xae s4 : ffffffffffffffff s2 : 0000000000000000 a1 : ffffffdc98000000 a2 : 0000000000001000 status: 0000000a00001880 badaddr: ffffffdc98000000 cause: 0000000000000005 [<801a5324>] __memcpy+0xd4/0xf8 [<800d5f6a>] load_flat_binary+0x43a/0x65e [<800a2de4>] bprm_execve+0x1d4/0x316 [<800a351a>] do_execveat_common+0x12e/0x138 [<800a3d44>] __riscv_sys_execve+0x38/0x4e Kernel panic - not syncing: Fatal exception in interrupt This is an arcane bug but we should still fix it. Count down from MAX_ARG_PAGES so the loop ends when index reaches stop, stop == 0 included. The iterations performed are unchanged for every other value of stop. Only CONFIG_MMU=n builds are affected, transfer_args_to_stack() is used by binfmt_flat and binfmt_elf_fdpic on nommu only. The loop predates git history. commit 7e7ec6a93434 ("elf_fdpic_transfer_args_to_stack(): make it generic") only moved it from binfmt_elf_fdpic.c into fs/exec.c and narrowed the copy to the used part of the first page. The condition and the decrement are unchanged from 2.6.12-rc2.
CVE-2026-68186
2026년 8월 10일In the Linux kernel, the following vulnerability has been resolved: binfmt_misc: set have_execfd only once the interpreter is opened load_misc_binary() raises bprm->have_execfd as soon as it sees the 'O' (or 'C') flag. This happens well before it opens the interpreter. If that open fails the flag stays set on the bprm. binfmt_misc is at the head of the format list so an interpreter open failure that returns -ENOEXEC lets the search fall through to a later format. This means it runs the matched binary directly having never staged an interpreter. So bprm->executable is NULL while have_execfd falsely claims a descriptor is present. Consequently, begin_new_exec() dereferences the missing executable: would_dump(bprm, bprm->executable); and NULL derefs. Had it not, the hand-off later in the same function would have failed anyway. FD_ADD(0, bprm->executable) rejects a NULL file with -ENOMEM. Both sites are past the point of no return so the exec cannot be unwound either way. This can be reached by unprivileged users as binfmt_misc can be mounted in user namespaces. So a user can register an 'O' entry whose interpreter lives on a FUSE mount, have the FUSE server fail the open with -ENOEXEC and execute a native ELF file that matches the entry. have_execfd only means anything alongside the executable it describes which is not set until the interpreter has been opened and staged. So lets raise it there, next to execfd_creds, which is already set at that point. An open failure now leaves it clear, so the fallback format derives credentials from the binary and emits no AT_EXECFD, as it would for any native exec. The argv rewrite load_misc_binary() performs before the open is still not undone. This means the binary sees the interpreter path in argv[0] and its own path in argv[1] but that predates this change and only became observable once the exec stopped faulting.
CVE-2026-68185
2026년 8월 10일In the Linux kernel, the following vulnerability has been resolved: LoongArch: Move jump_label_init() before parse_early_param() When enabling both CONFIG_MEM_ALLOC_PROFILING=y and CONFIG_MEM_ALLOC_PROFILING_ENABLED_BY_DEFAULT=y, then diabling memory profiling by adding the boot parameter 'sysctl.vm.mem_profiling=0' will cause the kernel failed to boot. After analysis, this is because jump_label_init() must be called before parse_early_param(), the early param handlers may modify static keys by static_branch_enable/disable(). Fix this by moving jump_label_init() to before parse_early_param(). The solution is similar to other architectures.
CVE-2026-68184
2026년 8월 10일In the Linux kernel, the following vulnerability has been resolved: cdrom: fix stack out-of-bounds read in CDROMVOLCTRL mmc_ioctl_cdrom_volume() first reads the audio control mode page into a 32-byte stack buffer with cgc->buflen set to 24. If the device reports a block descriptor, the function increases cgc->buflen to include that descriptor and reads the page again. For CDROMVOLCTRL, the function then builds a MODE SELECT parameter list by moving cgc->buffer forward by offset - 8 bytes. This drops the block descriptor from the outgoing payload and leaves a new 8-byte mode parameter header in front of the audio control page. However, cgc->buflen is left unchanged. With a standard 8-byte block descriptor, cgc->buffer points at buffer + 8 but cgc->buflen remains 32. cdrom_mode_select() therefore asks the low level packet path to write 32 bytes from that adjusted pointer, reading 8 bytes past the end of the 32-byte stack buffer. This is not hit by CDROMVOLREAD, and CDROMVOLCTRL only triggers it on drives that return a non-zero block descriptor length, which helps explain why it has gone unnoticed. The overread is also sent to the device as extra MODE SELECT payload, so it may not produce an obvious local failure. Reduce cgc->buflen by the same amount as the buffer pointer adjustment so the MODE SELECT transfer covers only the intended parameter list.
CVE-2026-68183
2026년 8월 10일In the Linux kernel, the following vulnerability has been resolved: firmware: stratix10-svc: fix memory leaks and list corruption bugs Fix a memory leak when gen_pool_alloc() fails by freeing pmem on the error path. Switch pmem allocation from devm_kzalloc() to kzalloc() with explicit kfree() in the free path to match its list-managed lifetime. Remove the erroneous list_del(&svc_data_mem) which corrupted the list head on failed lookups.
CVE-2026-68182
2026년 8월 10일In the Linux kernel, the following vulnerability has been resolved: comedi: comedi_parport: deal with premature interrupt Syzbot reported a general protection fault in `comedi_get_is_subdevice_running()`, which was called from the interrupt handler `parport_interrupt()` in the "comedi_parport" driver, but it does not currently have a C reproducer for the problem. It's probably due to a premature interrupt for one of two reasons: 1. The driver sets up the interrupt handler before the comedi subdevices used by the interrupt handler have been allocated, but does not disable the interrupt in the parallel port's CTRL register first. 2. The driver uses a user-supplied I/O port base address which Syzbot would have supplied, but it might not be backed by real parallel port hardware. Change the initialization order in the driver's comedi "attach" handler (`parport_attach()`) so that the hardware registers are initialized before the interrupt handler is requested. This should prevent premature interrupts occurring for real hardware. Also add a test to the interrupt handler to ensure the comedi device is fully attached and return early if it isn't.
CVE-2026-68181
2026년 8월 10일In the Linux kernel, the following vulnerability has been resolved: mei: bus: access mei_device under device_lock on cleanup Fix couple of problems in mei_cl_bus_dev_release(): mei_cl_flush_queues() is running without lock. bus->file_list access after mei_dev_bus_put(bus) can become a use-after-free if this was the last reference to bus. Protect queues cleanup and WARN traversal by device lock there to avoid the concurrent access problems. Move WARN traversal before mei_dev_bus_put(bus). This file uses bus variable name for mei_device, adjust code of mei_cl_bus_dev_release() to use bus variable too.
CVE-2026-68180
2026년 8월 10일In the Linux kernel, the following vulnerability has been resolved: intel_th: fix MSC output device reference leak intel_th_output_open() looks up the output device with bus_find_device_by_devt(), which returns the device with a reference that must be dropped after use. commit 95fc36a234da ("intel_th: fix device leak on output open()") attempted to drop the reference from intel_th_output_release(). However, a successful open replaces file->f_op with the output driver file operations before returning, so close runs the output driver release callback instead. For MSC outputs, close runs intel_th_msc_release(), which only removes the per-file iterator and does not drop the device reference taken by intel_th_output_open(). Consequently, every successful MSC output open leaks one device reference. Drop the device reference from intel_th_msc_release(), which is the release path actually used for MSC output files. Remove the now-unused intel_th_output_release() callback from intel_th_output_fops.
CVE-2026-68179
2026년 8월 10일리눅스 커널에서 다음 취약점이 해결되었다: misc: nsm: post-lock 오류 경로에서만 nsm_dev의 잠금을 해제 nsm_dev_ioctl()가 초기 copy_from_user()가 nsm->lock을 획득하기 전에 실패해도 공통 out 레이블로 점프한다. 그 오류 경로는 획득되지 않은 뮤텍스를 맹목적으로 해제한다. 이 문제는 정적 분석 도구에 의해 발견되었고 현재 트리와 대조하여 수동으로 검토되었다. 그 근거가 된 PoC는 miscdevice ioctl 엔트리를 유지하고 pre-lock copy_from_user(&raw, argp, _IOC_SIZE(cmd)) 실패 경로를, 잘못된 사용자 포인터를 이용해 NSM_IOCTL_RAW를 발행함으로써 유지했다. 그 실패는 뮤텍스 락(lock)을 얻기 전 공유 out 레이블에 도달한다. Lockdep는 다음과 같이 보고했다: WARNING: bad unlock balance detected! exploit/193가 nsm_dev_ioctl+0x5f/0xcf [vuln_msv]에서 global_nsm.lock을 해제하려고 하지만 해제할 다른 잠금이 없다! exploit/193에는 잠금이 걸려 있지 않다. pre-lock copy_from_user() 실패 시에는 즉시 반환하고, post-lock 경로에 대해서만 공통 해제 레이블을 유지한다.
CVE-2026-68178
2026년 8월 10일Linux 커널의 다음 취약점이 해결되었습니다: misc: nsm: 디바이스가 열려 있는 동안 모듈을 고정합니다 misc_open()는 misc 드라이버의 파일 연산을 설치하고 fops_get()을 사용하여 파일의 f_op를 대체하기 전에 file_operations::owner를 고정합니다. NSM misc 디바이스는 nsm_dev_fops.owner를 unset 상태로 두므로 /dev/nsm을 열면 nsm 드라이버에 대한 모듈 참조가 유지되지 않습니다. 드라이버가 모듈로 빌드된 경우, 열려 있는 파일 디스크립터는 해당 ioctl 콜백을 제공하는 모듈을 삭제한 후에도 남아 있을 수 있습니다. 그 디스크립터를 통해 나중에 ioctl이 호출되면 언로드된 모듈 텍스트로의 접근이 가능해질 수 있습니다. nsm_dev_fops.owner를 THIS_MODULE로 설정하여 misc 코어가 /dev/nsm 파일 디스크립터가 열려 있는 동안 모듈을 보유하게 하고, 설치된 파일 연산의 수명 주기 기대치와 일치시킵니다.
CVE-2026-68177
2026년 8월 10일리눅스 커널에서 다음 취약점이 해결되었습니다: tracing: 재 지연 모듈 참조 카운트(“enable_event” 트리거) 트리거는 해제에서 지연되지만, RCU 대기 기간이 끝난 후까지도 트리거될 수 있습니다. enable_event 데이터의 해제는 private_data_free() 콜백으로 옮겨지지만, 모듈의 참조 카운트는 즉시 해제됩니다. 일부 이벤트를 활성화(또는 비활성화)하는 모듈이 제거된 경우 여전히 활성 상태일 수 있으며, 제거된 후에도 모듈의 데이터를 읽을 수 있어 use-after-free 버그가 발생할 수 있습니다. 모듈의 이벤트에 대한 모든 참조가 종료될 때까지 모듈이 제거되지 않도록, 모듈을 해제하는 trace_event_put_ref()를 지연된 콜백으로 옮겼습니다.
CVE-2026-68176
2026년 8월 10일In the Linux kernel, the following vulnerability has been resolved: tracing: Fix mmiotrace possible NULL dereferencing of hiter->dev If the mmio_pipe_open() fails to find a PCI device, the hiter->dev will be assigned to NULL. The mmiotrace read() function dereferences the hiter->dev if hiter exists. Change the test of the read to not only check hiter being NULL, but also the hiter->dev before dereferencing it.
CVE-2026-68175
2026년 8월 10일In the Linux kernel, the following vulnerability has been resolved: tracing: Fix resource leak on mmiotrace trace_pipe close The mmiotrace tracer was added May 12th 2008. At that time, resources created in pipe_open() could not be freed because there was not pipe_close function pointer of the tracer. The pipe_close function pointer was added in December 7th, 2009, but the mmiotrace tracer was not updated. mmio_pipe_open() allocates a header_iter and takes a pci_dev reference when trace_pipe is opened. mmio_close() frees them, but it was only wired to the tracer's .close callback. tracing_release_pipe() invokes .pipe_close, not .close, when the trace_pipe file is released. As a result, closing trace_pipe with the mmiotrace tracer active leaked the header_iter allocation and left a stale pci_dev reference. Set .pipe_close to mmio_close, matching how function_graph wires both callbacks to the same handler. Note, if the trace_pipe is read to completion, it will clean up the resources, but if one were to run: # head -n 1 /sys/kernel/tracing/trace_pipe VERSION 20070824 Over and over again, it would trigger a massive leak.
CVE-2026-68174
2026년 8월 10일In the Linux kernel, the following vulnerability has been resolved: tracing: Fix union collision of module and refcnt for dynamic events In 'struct trace_event_call', the 'module' pointer and the 'refcnt' atomic variable share the same memory space in a union. For dynamic events, the union member is 'refcnt', which acts as an active reference counter. When a dynamic event (such as kprobe, uprobe, fprobe, eprobe, or wprobe) has a non-zero reference count (e.g. due to active event triggers or perf attachments), its 'call->module' evaluates to a small non-zero integer instead of NULL. When filtering or setting events for a specific module (e.g., writing ':mod:<module>' to 'set_event'), the code in '__ftrace_set_clr_event_nolock()' and 'update_event_fields()' reads 'call->module' directly without checking whether the event is dynamic. This causes the kernel to treat the small integer (refcnt) as a 'struct module' pointer, leading to a NULL/invalid pointer dereference (Oops) when dereferencing the module name. Fix this by ensuring that the 'TRACE_EVENT_FL_DYNAMIC' flag is checked before treating 'call->module' as a valid pointer in these code paths.
CVE-2026-68173
번역 확인 필요2026년 8월 10일리눅스 커널에서 다음 취약점이 해결되었습니다: ublk: ub->completion 대신 ublk_dev_ready()에서 대기 ub->completion은 START_USER_RECOVERY가 성공적으로 수행될 때만 재활성화됩니다. ublk 서버가 END_USER_RECOVERY를 한 번이라도 보낼 때 -EBUSY로 시작이 실패하고 그 오류가 무시되면, 대기는 이전 회복 주기의 남은 completion으로 만족되어 장치가 LIVE로 표시되고 FETCH 스트림이 여전히 실행 중이며 ubq->canceling이 여전히 설정된 상태에서 재큐 목록이 킥됩니다. 이 킥은 이전에 재큐된 요청을 다시 전송하고, __ublk_queue_rq_common()은 ->canceling을 보고 다시 __ublk_abort_rq()를 통해 주차하며, 마지막 FETCH가 ->canceling을 지우고 나서도 재큐 목록이 다시 킥되지 않아서 요청이 그 태그를 들고 반환됩니다. 만약 이것이 플러시 기계의 flush_rq라면, 이후의 모든 fsync가 인터럽트 불가 상태로 쌓이고 태그 배출에서 제거되며 종료 절차가 지연됩니다. 이는 daemon 크래시 복구 후 ext4 상의 ublk에서 PREFLUSH 누락 보고와 일치합니다. ub->completion은 모든 큐가 모든 I/O 명령을 가져왔다는 레벨 조건의 프록시로 사용되는 엣지 트리거 latch이며, 재활성화가 건너뛸 수 있어 문제가 될 수 있습니다(F_BATCH의 UNPREP, 데몬死亡). 이를 제거하고 실제 조건에서 대기하도록 바꿔야 합니다: 새로운 도우미 함수 ublk_wait_dev_ready_and_lock()은 wait_var_event_interruptible()를 통해 ublk_dev_ready()에서 대기하고, ublk_mark_io_ready()에서 깨워진 후 ub->mutex 하에 재확인하고 회귀를 다시 기다린 뒤 뮤텍스를 보유한 채 준비 상태를 보장합니다. 준비 상태는 마지막 큐의 ->canceling을 해제하는 동일한 ub->mutex 임계 구역에서 true가 되므로 END_USER_RECOVERY는 ->canceling이 해제된 직후에만 장치를 LIVE로 표시하고 재큐 목록을 strictly하게 킥합니다. 대기는 인터럽트 가능 상태로 유지되어 서버의 데몬이 죽더라도 여전히 신호를 받을 수 있습니다. ublk_ctrl_start_dev()에 대해 이는 F_BATCH ready->UNPREP 회귀에 대한 빠른 실패 -EINVAL를 대기 상태로 바꿔 장치가 다시 준비될 때까지 기다리게 만듭니다.