Download data/train.jsonl from HyperionGrayAI/cybermodels-team: direct link, hf CLI and curl.
- Browser
- Download file 151 kB
-
https://huggingface.co/datasets/HyperionGrayAI/cybermodels-team/resolve/main/data/train.jsonl
- Command line
-
hf download hf://datasets/HyperionGrayAI/cybermodels-team/data/train.jsonl
-
curl -L -o train.jsonl https://huggingface.co/datasets/HyperionGrayAI/cybermodels-team/resolve/main/data/train.jsonl
151 kB
| {"model": "cybermodels-windows", "id": "26727884ca7fc53a", "split": "train", "passage": "context-switches", "condition": "closed", "question": "Why did a thread give up the CPU before its time slice ran out?", "answer": "A running thread that starts waiting gives up the rest of its time slice. A newly ready higher-priority thread can also trigger a switch.", "prompt": "Answer the Windows question concisely.\nQuestion: Why did a thread give up the CPU before its time slice ran out?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "26727884ca7fc53a", "split": "train", "passage": "context-switches", "condition": "rag", "question": "Why did a thread give up the CPU before its time slice ran out?", "answer": "A running thread that starts waiting gives up the rest of its time slice. A newly ready higher-priority thread can also trigger a switch. [Context Switches](https://learn.microsoft.com/en-us/windows/win32/procthread/context-switches)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Context Switches](https://learn.microsoft.com/en-us/windows/win32/procthread/context-switches)\n- The time slice has elapsed. - A thread with a higher priority has become ready to run. - A running thread needs to wait. When a running thread needs to wait, it relinquishes the remainder of its time slice.\n\n[Semaphore Objects](https://learn.microsoft.com/en-us/windows/win32/sync/semaphore-objects)\nA thread can decrement a semaphore's count more than once by repeatedly specifying the same semaphore object in calls to any of the wait functions. However, calling one of the multiple-object wait functions with an array that contains multiple handles of the same semaphore does not result in multiple decrements. When you have finished using the semaphore object, call the CloseHandle function to close the handle. The semaphore object is destroyed when its last handle has been closed. Closing the handle does not affect the semaphore count; therefore, be sure to call ReleaseSemaphore before closing the handle or before the process terminates. Otherwise, pending wait operations will either time out or continue indefinitely, depending on whether a time-out value has been specified.\n\nQuestion: Why did a thread give up the CPU before its time slice ran out?", "retrieved": ["context-switches", "semaphore-objects"]} | |
| {"model": "cybermodels-windows", "id": "135713966a6f127b", "split": "train", "passage": "context-switches", "condition": "closed", "question": "Will raising the priority of a blocked thread give it CPU time right away?", "answer": "The scheduler can run the thread once it becomes ready. Raising its priority alone leaves the wait in place.", "prompt": "Answer the Windows question concisely.\nQuestion: Will raising the priority of a blocked thread give it CPU time right away?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "135713966a6f127b", "split": "train", "passage": "context-switches", "condition": "rag", "question": "Will raising the priority of a blocked thread give it CPU time right away?", "answer": "The retrieved references do not establish that. I need a source on context switches.", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Scheduling Priorities](https://learn.microsoft.com/en-us/windows/win32/procthread/scheduling-priorities)\nProcesses that monitor the system, such as screen savers or applications that periodically update a display, should use IDLE\\_PRIORITY\\_CLASS. This prevents the threads of this process, which do not have high priority, from interfering with higher priority threads. Use HIGH\\_PRIORITY\\_CLASS with care. If a thread runs at the highest priority level for extended periods, other threads in the system will not get processor time. If several threads are set at high priority at the same time, the threads lose their effectiveness. The high-priority class should be reserved for threads that must respond to time-critical events. If your application performs one task that requires the high-priority class while the rest of its tasks are normal priority, use SetPriorityClass to raise the priority class of the application\n\n[Job Objects](https://learn.microsoft.com/en-us/windows/win32/procthread/job-objects)\na notification when they are exceeded but allow the job to continue to run. To set limits for a job, use the SetInformationJobObject function. For a list of possible limits that can be set for a job, see the following topics: - JOBOBJECT\\_BASIC\\_LIMIT\\_INFORMATION - JOBOBJECT\\_BASIC\\_UI\\_RESTRICTIONS - JOBOBJECT\\_CPU\\_RATE\\_CONTROL\\_INFORMATION - JOBOBJECT\\_EXTENDED\\_LIMIT\\_INFORMATION - JOBOBJECT\\_NOTIFICATION\\_LIMIT\\_INFORMATION Security limits must be set individually for each process associated with a job object. For more information, see Process Security and Access Rights.\n\nQuestion: Will raising the priority of a blocked thread give it CPU time right away?", "retrieved": ["scheduling-priorities", "job-objects"]} | |
| {"model": "cybermodels-windows", "id": "a46efb9bef14e278", "split": "train", "passage": "thread-local-storage", "condition": "closed", "question": "Can two threads use the same TLS index and still see different data?", "answer": "Yes. The index selects a separate slot in each thread, so each thread can store its own value.", "prompt": "Answer the Windows question concisely.\nQuestion: Can two threads use the same TLS index and still see different data?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "a46efb9bef14e278", "split": "train", "passage": "thread-local-storage", "condition": "rag", "question": "Can two threads use the same TLS index and still see different data?", "answer": "Yes. The index selects a separate slot in each thread, so each thread can store its own value. [Thread Local Storage](https://learn.microsoft.com/en-us/windows/win32/procthread/thread-local-storage)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Thread Local Storage](https://learn.microsoft.com/en-us/windows/win32/procthread/thread-local-storage)\nto allocate separate storage, consolidate the data, and minimize the number of TLS slots in use. The following diagram illustrates how TLS works. For a code example illustrating the use of thread local storage, see Using Thread Local Storage. The process has two threads, Thread 1 and Thread 2. It allocates two indexes for use with TLS, gdwTlsIndex1 and gdwTlsIndex2. Each thread allocates two memory blocks (one for each index) in which to store the data, and stores the pointers to these memory blocks in the corresponding TLS slots. To access the data associated with an index, the thread retrieves the pointer to the memory block from the TLS slot and stores it in the lpvData local variable.\n\nQuestion: Can two threads use the same TLS index and still see different data?", "retrieved": ["thread-local-storage"]} | |
| {"model": "cybermodels-windows", "id": "ee4857c32a20fd9a", "split": "train", "passage": "thread-local-storage", "condition": "closed", "question": "Do worker threads need a distinct TLS index apiece for the same per-thread field?", "answer": "One allocated index can identify the field across the process. Each thread accesses its own slot at that index.", "prompt": "Answer the Windows question concisely.\nQuestion: Do worker threads need a distinct TLS index apiece for the same per-thread field?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "ee4857c32a20fd9a", "split": "train", "passage": "thread-local-storage", "condition": "rag", "question": "Do worker threads need a distinct TLS index apiece for the same per-thread field?", "answer": "One allocated index can identify the field across the process. Each thread accesses its own slot at that index. [Thread Local Storage](https://learn.microsoft.com/en-us/windows/win32/procthread/thread-local-storage)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Thread Local Storage](https://learn.microsoft.com/en-us/windows/win32/procthread/thread-local-storage)\nThe constant TLS\\_MINIMUM\\_AVAILABLE defines the minimum number of TLS indexes available in each process. This minimum is guaranteed to be at least 64 for all systems. The maximum number of indexes per process is 1,088. When the threads are created, the system allocates an array of LPVOID values for TLS, which are initialized to NULL. Before an index can be used, it must be allocated by one of the threads. Each thread stores its data for a TLS index in a *TLS slot* in the array. If the data associated with an index will fit in an LPVOID value, you can store the data directly in the TLS slot. However, if you are using a large number of indexes in this way, it is better\n\n[Introduction to Kernel Dispatcher Objects](https://learn.microsoft.com/en-us/windows-hardware/drivers/kernel/introduction-to-kernel-dispatcher-objects)\nAs a general guideline, if you expect that your new device driver will often need to stall for longer than 50 microseconds while it waits for device-state changes during I/O operations, consider implementing a driver with a device-dedicated thread. If the device driver is also a highest-level driver, consider using system worker threads and implementing one or more worker-thread callback routines. See PsCreateSystemThread and Managing Interlocked Queues with a Driver-Created Thread.\n\nQuestion: Do worker threads need a distinct TLS index apiece for the same per-thread field?", "retrieved": ["thread-local-storage", "introduction-to-kernel-dispatcher-objects"]} | |
| {"model": "cybermodels-windows", "id": "ac937ed63b06141e", "split": "train", "passage": "job-objects", "condition": "closed", "question": "What Windows object lets a supervisor apply resource limits to a group of processes?", "answer": "A job object groups processes so the supervisor can set limits and collect accounting information for the group.", "prompt": "Answer the Windows question concisely.\nQuestion: What Windows object lets a supervisor apply resource limits to a group of processes?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "ac937ed63b06141e", "split": "train", "passage": "job-objects", "condition": "rag", "question": "What Windows object lets a supervisor apply resource limits to a group of processes?", "answer": "A job object groups processes so the supervisor can set limits and collect accounting information for the group. [Job Objects](https://learn.microsoft.com/en-us/windows/win32/procthread/job-objects)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Job Objects](https://learn.microsoft.com/en-us/windows/win32/procthread/job-objects)\nA *job object* allows groups of processes to be managed as a unit. Job objects are namable, securable, sharable objects that control attributes of the processes associated with them. Operations performed on a job object affect all processes associated with the job object. Examples include enforcing limits such as working set size and process priority or terminating all processes associated with a job. - Creating Jobs - Managing Processes in Jobs - Job Limits and Notifications - Resource Accounting for Jobs - Managing Job Objects - Managing a Process Tree that Uses Job Objects\n\n[Semaphore Objects](https://learn.microsoft.com/en-us/windows/win32/sync/semaphore-objects)\nThe semaphore object is useful in controlling a shared resource that can support a limited number of users. It acts as a gate that limits the number of threads sharing the resource to a specified maximum number. For example, an application might place a limit on the number of windows that it creates. It uses a semaphore with a maximum count equal to the window limit, decrementing the count whenever a window is created and incrementing it whenever a window is closed. The application specifies the semaphore object in call to one of the wait functions before each window is created. When the count is zero—indicating that the window limit has been reached—the wait function blocks execution of the window-creation code.\n\nQuestion: What Windows object lets a supervisor apply resource limits to a group of processes?", "retrieved": ["job-objects", "semaphore-objects"]} | |
| {"model": "cybermodels-windows", "id": "83bf2317b18d0b4b", "split": "train", "passage": "job-objects", "condition": "closed", "question": "How could a supervisor collect accounting for several related processes as a unit?", "answer": "Associate those processes with a job object and query the job's accounting information.", "prompt": "Answer the Windows question concisely.\nQuestion: How could a supervisor collect accounting for several related processes as a unit?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "83bf2317b18d0b4b", "split": "train", "passage": "job-objects", "condition": "rag", "question": "How could a supervisor collect accounting for several related processes as a unit?", "answer": "Associate those processes with a job object and query the job's accounting information. [Job Objects](https://learn.microsoft.com/en-us/windows/win32/procthread/job-objects)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Job Objects](https://learn.microsoft.com/en-us/windows/win32/procthread/job-objects)\nA *job object* allows groups of processes to be managed as a unit. Job objects are namable, securable, sharable objects that control attributes of the processes associated with them. Operations performed on a job object affect all processes associated with the job object. Examples include enforcing limits such as working set size and process priority or terminating all processes associated with a job. - Creating Jobs - Managing Processes in Jobs - Job Limits and Notifications - Resource Accounting for Jobs - Managing Job Objects - Managing a Process Tree that Uses Job Objects\n\n[Synchronous and asynchronous I/O](https://learn.microsoft.com/en-us/windows/win32/fileio/synchronous-and-asynchronous-i-o)\nThe system does not maintain the file pointer on asynchronous handles to files and devices that support file pointers (that is, seeking devices), therefore the file position must be passed to the read and write functions in the related offset data members of the OVERLAPPED structure. For more information, see WriteFile and ReadFile. File pointer position for a synchronous handle is maintained by the system as data is read or written and can also be updated using the SetFilePointer or SetFilePointerEx function.\n\nQuestion: How could a supervisor collect accounting for several related processes as a unit?", "retrieved": ["job-objects", "synchronous-and-asynchronous-i-o"]} | |
| {"model": "cybermodels-windows", "id": "99bc41280df74db4", "split": "train", "passage": "process-handles-and-identifiers", "condition": "closed", "question": "My program knows a PID. What must it obtain to use APIs that take a process handle?", "answer": "Call OpenProcess with the process ID and the access rights needed for the intended operation.", "prompt": "Answer the Windows question concisely.\nQuestion: My program knows a PID. What must it obtain to use APIs that take a process handle?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "99bc41280df74db4", "split": "train", "passage": "process-handles-and-identifiers", "condition": "rag", "question": "My program knows a PID. What must it obtain to use APIs that take a process handle?", "answer": "Call OpenProcess with the process ID and the access rights needed for the intended operation. [Process Handles and Identifiers](https://learn.microsoft.com/en-us/windows/win32/procthread/process-handles-and-identifiers)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Process Handles and Identifiers](https://learn.microsoft.com/en-us/windows/win32/procthread/process-handles-and-identifiers)\nThe CreateProcess function also returns an identifier that uniquely identifies the process throughout the system. A process can use the GetCurrentProcessId function to get its own process identifier (also known as the process ID or PID). The identifier is valid from the time the process is created until the process has been terminated. A process can use the Process32First function to obtain the process identifier of its parent process.\n\n[Working Set](https://learn.microsoft.com/en-us/windows/win32/memory/working-set)\navailable. Each process has a minimum and maximum working set size that affect the virtual memory paging behavior of the process. To obtain the current size of the working set of a specified process, use the GetProcessMemoryInfo function. To obtain or change the minimum and maximum working set sizes, use the GetProcessWorkingSetSizeEx and SetProcessWorkingSetSizeEx functions. The process status application programming interface (PSAPI) provides a number of functions that return detailed information about the working set of a process. For details, see Working Set Information.\n\nQuestion: My program knows a PID. What must it obtain to use APIs that take a process handle?", "retrieved": ["process-handles-and-identifiers", "working-set"]} | |
| {"model": "cybermodels-windows", "id": "6c18488e1da9bdc1", "split": "train", "passage": "process-handles-and-identifiers", "condition": "closed", "question": "Can I treat a PID as a permanent identifier after a process terminates?", "answer": "A process ID is unique during the process lifetime. A later process can receive a reused ID.", "prompt": "Answer the Windows question concisely.\nQuestion: Can I treat a PID as a permanent identifier after a process terminates?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "6c18488e1da9bdc1", "split": "train", "passage": "process-handles-and-identifiers", "condition": "rag", "question": "Can I treat a PID as a permanent identifier after a process terminates?", "answer": "A process ID is unique during the process lifetime. A later process can receive a reused ID. [Process Handles and Identifiers](https://learn.microsoft.com/en-us/windows/win32/procthread/process-handles-and-identifiers)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Process Handles and Identifiers](https://learn.microsoft.com/en-us/windows/win32/procthread/process-handles-and-identifiers)\nThe CreateProcess function also returns an identifier that uniquely identifies the process throughout the system. A process can use the GetCurrentProcessId function to get its own process identifier (also known as the process ID or PID). The identifier is valid from the time the process is created until the process has been terminated. A process can use the Process32First function to obtain the process identifier of its parent process.\n\n[Scheduling Priorities](https://learn.microsoft.com/en-us/windows/win32/procthread/scheduling-priorities)\nThreads are scheduled to run based on their *scheduling priority*. Each thread is assigned a scheduling priority. The priority levels range from zero (lowest priority) to 31 (highest priority). Only the zero-page thread can have a priority of zero. (The zero-page thread is a system thread responsible for zeroing any free pages when there are no other threads that need to run.) The system treats all threads with the same priority as equal. The system assigns time slices in a round-robin fashion to all threads with the highest priority. If none of these threads are ready to run, the system assigns time slices in a round-robin fashion to all threads with the next highest priority. If a higher-priority thread becomes available to run, the system\n\nQuestion: Can I treat a PID as a permanent identifier after a process terminates?", "retrieved": ["process-handles-and-identifiers", "scheduling-priorities"]} | |
| {"model": "cybermodels-windows", "id": "b4cfb7ea53001996", "split": "train", "passage": "scheduling-priorities", "condition": "closed", "question": "What two settings contribute to the Windows base priority of a thread?", "answer": "The process priority class and the thread's priority within that class determine its base priority.", "prompt": "Answer the Windows question concisely.\nQuestion: What two settings contribute to the Windows base priority of a thread?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "b4cfb7ea53001996", "split": "train", "passage": "scheduling-priorities", "condition": "rag", "question": "What two settings contribute to the Windows base priority of a thread?", "answer": "The process priority class and the thread's priority within that class determine its base priority. [Scheduling Priorities](https://learn.microsoft.com/en-us/windows/win32/procthread/scheduling-priorities)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Scheduling Priorities](https://learn.microsoft.com/en-us/windows/win32/procthread/scheduling-priorities)\nThe following table shows the base priority for combinations of process priority class and thread priority value.\n\n[Job Objects](https://learn.microsoft.com/en-us/windows/win32/procthread/job-objects)\nIf the job is nested, the breakaway settings of parent jobs in the hierarchy affect whether child processes are associated with another job in the hierarchy. For more information, see Nested Jobs. To determine if a process is running in a job, use the IsProcessInJob function. To terminate all processes currently associated with a job object, use the TerminateJobObject function. A job can enforce limits such as working set size, process priority, and end-of-job time limit on each process that is associated with the job. If a process associated with a job attempts to increase its working set size or process priority from the limit established by the job, the function calls succeed but are silently ignored. A job can also set limits that trigger\n\nQuestion: What two settings contribute to the Windows base priority of a thread?", "retrieved": ["scheduling-priorities", "job-objects"]} | |
| {"model": "cybermodels-windows", "id": "65f43834d750ddfb", "split": "train", "passage": "scheduling-priorities", "condition": "closed", "question": "If several ready threads share the highest priority, how is their CPU time divided?", "answer": "The scheduler gives ready threads at that priority time slices in round-robin order.", "prompt": "Answer the Windows question concisely.\nQuestion: If several ready threads share the highest priority, how is their CPU time divided?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "65f43834d750ddfb", "split": "train", "passage": "scheduling-priorities", "condition": "rag", "question": "If several ready threads share the highest priority, how is their CPU time divided?", "answer": "The scheduler gives ready threads at that priority time slices in round-robin order. [Scheduling Priorities](https://learn.microsoft.com/en-us/windows/win32/procthread/scheduling-priorities)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Scheduling Priorities](https://learn.microsoft.com/en-us/windows/win32/procthread/scheduling-priorities)\nThreads are scheduled to run based on their *scheduling priority*. Each thread is assigned a scheduling priority. The priority levels range from zero (lowest priority) to 31 (highest priority). Only the zero-page thread can have a priority of zero. (The zero-page thread is a system thread responsible for zeroing any free pages when there are no other threads that need to run.) The system treats all threads with the same priority as equal. The system assigns time slices in a round-robin fashion to all threads with the highest priority. If none of these threads are ready to run, the system assigns time slices in a round-robin fashion to all threads with the next highest priority. If a higher-priority thread becomes available to run, the system\n\n[Context Switches](https://learn.microsoft.com/en-us/windows/win32/procthread/context-switches)\nThe scheduler maintains separate queues of executable threads for each priority level. These threads are known as *ready threads*. When a processor becomes available, the system performs a *context switch*. The steps in a context switch are: 1. Save the context of the thread that was preempted or voluntarily yielded by the processor. 2. If the thread remains in a ready state, place it at the end of the queue for its priority level. 3. Find the highest priority queue that contains ready threads. 4. Remove the thread at the head of the queue, restore its context, and resume execution.\n\nQuestion: If several ready threads share the highest priority, how is their CPU time divided?", "retrieved": ["scheduling-priorities", "context-switches"]} | |
| {"model": "cybermodels-windows", "id": "a3ba187f17e1c64b", "split": "train", "passage": "mutex-objects", "condition": "closed", "question": "The previous owner of a Windows mutex died. What does an abandoned-mutex wait tell me?", "answer": "The waiter acquired the mutex, but the prior owner exited without releasing it. Check the protected data for consistency.", "prompt": "Answer the Windows question concisely.\nQuestion: The previous owner of a Windows mutex died. What does an abandoned-mutex wait tell me?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "a3ba187f17e1c64b", "split": "train", "passage": "mutex-objects", "condition": "rag", "question": "The previous owner of a Windows mutex died. What does an abandoned-mutex wait tell me?", "answer": "The waiter acquired the mutex, but the prior owner exited without releasing it. Check the protected data for consistency. [Mutex Objects](https://learn.microsoft.com/en-us/windows/win32/sync/mutex-objects)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Mutex Objects](https://learn.microsoft.com/en-us/windows/win32/sync/mutex-objects)\nIf a thread terminates without releasing its ownership of a mutex object, the mutex object is considered to be abandoned. A waiting thread can acquire ownership of an abandoned mutex object, but the wait function will return WAIT\\_ABANDONED to indicate that the mutex object is abandoned. An abandoned mutex object indicates that an error has occurred and that any shared resource being protected by the mutex object is in an undefined state. If the thread proceeds as though the mutex object had not been abandoned, it is no longer considered abandoned after the thread releases its ownership. This restores normal behavior if a handle to the mutex object is subsequently specified in a wait function.\n\n[Critical Section Objects](https://learn.microsoft.com/en-us/windows/win32/sync/critical-section-objects)\nA *critical section object* provides synchronization similar to that provided by a mutex object, except that a critical section can be used only by the threads of a single process. Critical section objects cannot be shared across processes. Event, mutex, and semaphore objects can also be used in a single-process application, but critical section objects provide a slightly faster, more efficient mechanism for mutual-exclusion synchronization (a processor-specific test and set instruction). Like a mutex object, a critical section object can be owned by only one thread at a time, which makes it useful for protecting a shared resource from simultaneous access. Unlike a mutex object, there is no way to tell whether a critical section has been abandoned.\n\nQuestion: The previous owner of a Windows mutex died. What does an abandoned-mutex wait tell me?", "retrieved": ["mutex-objects", "critical-section-objects"]} | |
| {"model": "cybermodels-windows", "id": "bc2537f2d6d54575", "split": "train", "passage": "mutex-objects", "condition": "closed", "question": "May a thread acquire the same mutex twice?", "answer": "Yes. The owning thread can acquire it recursively and must release it once per successful acquisition.", "prompt": "Answer the Windows question concisely.\nQuestion: May a thread acquire the same mutex twice?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "bc2537f2d6d54575", "split": "train", "passage": "mutex-objects", "condition": "rag", "question": "May a thread acquire the same mutex twice?", "answer": "Yes. The owning thread can acquire it recursively and must release it once per successful acquisition. [Mutex Objects](https://learn.microsoft.com/en-us/windows/win32/sync/mutex-objects)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Mutex Objects](https://learn.microsoft.com/en-us/windows/win32/sync/mutex-objects)\nIf a thread terminates without releasing its ownership of a mutex object, the mutex object is considered to be abandoned. A waiting thread can acquire ownership of an abandoned mutex object, but the wait function will return WAIT\\_ABANDONED to indicate that the mutex object is abandoned. An abandoned mutex object indicates that an error has occurred and that any shared resource being protected by the mutex object is in an undefined state. If the thread proceeds as though the mutex object had not been abandoned, it is no longer considered abandoned after the thread releases its ownership. This restores normal behavior if a handle to the mutex object is subsequently specified in a wait function.\n\n[Semaphore Objects](https://learn.microsoft.com/en-us/windows/win32/sync/semaphore-objects)\nA thread that owns a mutex object can wait repeatedly for the same mutex object to become signaled without its execution becoming blocked. A thread that waits repeatedly for the same semaphore object, however, decrements the semaphore's count each time a wait operation is completed; the thread is blocked when the count gets to zero. Similarly, only the thread that owns a mutex can successfully call the ReleaseMutex function, though any thread can use ReleaseSemaphore to increase the count of a semaphore object.\n\nQuestion: May a thread acquire the same mutex twice?", "retrieved": ["mutex-objects", "semaphore-objects"]} | |
| {"model": "cybermodels-windows", "id": "adef7ffbc7186548", "split": "train", "passage": "semaphore-objects", "condition": "closed", "question": "Why did the semaphore become nonsignaled after the last available permit was taken?", "answer": "A successful wait decrements the count. At zero the semaphore is nonsignaled until a release increases the count.", "prompt": "Answer the Windows question concisely.\nQuestion: Why did the semaphore become nonsignaled after the last available permit was taken?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "adef7ffbc7186548", "split": "train", "passage": "semaphore-objects", "condition": "rag", "question": "Why did the semaphore become nonsignaled after the last available permit was taken?", "answer": "A successful wait decrements the count. At zero the semaphore is nonsignaled until a release increases the count. [Semaphore Objects](https://learn.microsoft.com/en-us/windows/win32/sync/semaphore-objects)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Semaphore Objects](https://learn.microsoft.com/en-us/windows/win32/sync/semaphore-objects)\nA *semaphore object* is a synchronization object that maintains a count between zero and a specified maximum value. The count is decremented each time a thread completes a wait for the semaphore object and incremented each time a thread releases the semaphore. When the count reaches zero, no more threads can successfully wait for the semaphore object state to become signaled. The state of a semaphore is set to signaled when its count is greater than zero, and nonsignaled when its count is zero.\n\n[Working Set](https://learn.microsoft.com/en-us/windows/win32/memory/working-set)\nIf several processes share a page, removing the page from the working set of one process does not affect other processes. After a page is removed from the working sets of all processes that were using it, the page becomes a *transition page*. Transition pages remain cached in RAM until the page is either referenced again by some process or repurposed (for example, filled with zeros and given to another process). If a transition page has been modified since it was last written to disk (that is, if the page is \"dirty\"), then the page must be written to its backing store before it can be repurposed. The system may start writing dirty transition pages to their backing store as soon as such pages become\n\nQuestion: Why did the semaphore become nonsignaled after the last available permit was taken?", "retrieved": ["semaphore-objects", "working-set"]} | |
| {"model": "cybermodels-windows", "id": "ab0c352f8d26d689", "split": "train", "passage": "semaphore-objects", "condition": "closed", "question": "Can I assume Windows semaphore waiters get permits in arrival order?", "answer": "No. Waiting threads are selected without a guaranteed first-in, first-out order.", "prompt": "Answer the Windows question concisely.\nQuestion: Can I assume Windows semaphore waiters get permits in arrival order?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "ab0c352f8d26d689", "split": "train", "passage": "semaphore-objects", "condition": "rag", "question": "Can I assume Windows semaphore waiters get permits in arrival order?", "answer": "No. Waiting threads are selected without a guaranteed first-in, first-out order. [Semaphore Objects](https://learn.microsoft.com/en-us/windows/win32/sync/semaphore-objects)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Semaphore Objects](https://learn.microsoft.com/en-us/windows/win32/sync/semaphore-objects)\nIf more than one thread is waiting on a semaphore, a waiting thread is selected. Do not assume a first-in, first-out (FIFO) order. External events such as kernel-mode APCs can change the wait order. Each time one of the wait functions returns because the state of a semaphore was set to signaled, the count of the semaphore is decreased by one. The ReleaseSemaphore function increases a semaphore's count by a specified amount. The count can never be less than zero or greater than the maximum value.\n\n[Mutex Objects](https://learn.microsoft.com/en-us/windows/win32/sync/mutex-objects)\nIf more than one thread is waiting on a mutex, a waiting thread is selected. Do not assume a first-in, first-out (FIFO) order. External events such as kernel-mode APCs can change the wait order. After a thread obtains ownership of a mutex, it can specify the same mutex in repeated calls to the wait-functions without blocking its execution. This prevents a thread from deadlocking itself while waiting for a mutex that it already owns. To release its ownership under such circumstances, the thread must call ReleaseMutex once for each time that the mutex satisfied the conditions of a wait function.\n\nQuestion: Can I assume Windows semaphore waiters get permits in arrival order?", "retrieved": ["semaphore-objects", "mutex-objects"]} | |
| {"model": "cybermodels-windows", "id": "07fab401e0635f69", "split": "train", "passage": "critical-section-objects", "condition": "closed", "question": "Can two separate processes share a Windows critical section for mutual exclusion?", "answer": "A critical section coordinates threads within one process. A mutex can coordinate threads in different processes.", "prompt": "Answer the Windows question concisely.\nQuestion: Can two separate processes share a Windows critical section for mutual exclusion?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "07fab401e0635f69", "split": "train", "passage": "critical-section-objects", "condition": "rag", "question": "Can two separate processes share a Windows critical section for mutual exclusion?", "answer": "A critical section coordinates threads within one process. A mutex can coordinate threads in different processes. [Critical Section Objects](https://learn.microsoft.com/en-us/windows/win32/sync/critical-section-objects)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Critical Section Objects](https://learn.microsoft.com/en-us/windows/win32/sync/critical-section-objects)\nA *critical section object* provides synchronization similar to that provided by a mutex object, except that a critical section can be used only by the threads of a single process. Critical section objects cannot be shared across processes. Event, mutex, and semaphore objects can also be used in a single-process application, but critical section objects provide a slightly faster, more efficient mechanism for mutual-exclusion synchronization (a processor-specific test and set instruction). Like a mutex object, a critical section object can be owned by only one thread at a time, which makes it useful for protecting a shared resource from simultaneous access. Unlike a mutex object, there is no way to tell whether a critical section has been abandoned.\n\n[Mutex Objects](https://learn.microsoft.com/en-us/windows/win32/sync/mutex-objects)\nA *mutex object* is a synchronization object whose state is set to signaled when it is not owned by any thread, and nonsignaled when it is owned. Only one thread at a time can own a mutex object, whose name comes from the fact that it is useful in coordinating mutually exclusive access to a shared resource. For example, to prevent two threads from writing to shared memory at the same time, each thread waits for ownership of a mutex object before executing the code that accesses the memory. After writing to the shared memory, the thread releases the mutex object.\n\nQuestion: Can two separate processes share a Windows critical section for mutual exclusion?", "retrieved": ["critical-section-objects", "mutex-objects"]} | |
| {"model": "cybermodels-windows", "id": "a4a125c48a499822", "split": "train", "passage": "critical-section-objects", "condition": "closed", "question": "May a thread reenter a critical section it already owns?", "answer": "Yes. It must leave once for each successful entry before another thread can acquire it.", "prompt": "Answer the Windows question concisely.\nQuestion: May a thread reenter a critical section it already owns?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "a4a125c48a499822", "split": "train", "passage": "critical-section-objects", "condition": "rag", "question": "May a thread reenter a critical section it already owns?", "answer": "Yes. It must leave once for each successful entry before another thread can acquire it. [Critical Section Objects](https://learn.microsoft.com/en-us/windows/win32/sync/critical-section-objects)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Critical Section Objects](https://learn.microsoft.com/en-us/windows/win32/sync/critical-section-objects)\nWhen a thread owns a critical section, it can make additional calls to EnterCriticalSection or TryEnterCriticalSection without blocking its execution. This prevents a thread from deadlocking itself while waiting for a critical section that it already owns. To release its ownership, the thread must call LeaveCriticalSection one time for each time that it entered the critical section. There is no guarantee about the order in which waiting threads will acquire ownership of the critical section.\n\n[Scheduling Priorities](https://learn.microsoft.com/en-us/windows/win32/procthread/scheduling-priorities)\nto block the execution of the waiting high-priority thread. To do this, use a wait function, critical section, or the Sleep function, SleepEx, or SwitchToThread function. This is preferable to having the thread execute a loop. Otherwise, the process may become deadlocked, because the thread with lower priority is never scheduled. To determine the current priority level of a thread, use the GetThreadPriority function. The process priority class and thread priority level are combined to form the base priority of each thread.\n\nQuestion: May a thread reenter a critical section it already owns?", "retrieved": ["critical-section-objects", "scheduling-priorities"]} | |
| {"model": "cybermodels-windows", "id": "73f578a54803cb1f", "split": "train", "passage": "working-set", "condition": "closed", "question": "What does a process working set count?", "answer": "It consists of the pageable virtual-memory pages currently resident in physical memory for the process.", "prompt": "Answer the Windows question concisely.\nQuestion: What does a process working set count?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "73f578a54803cb1f", "split": "train", "passage": "working-set", "condition": "rag", "question": "What does a process working set count?", "answer": "It consists of the pageable virtual-memory pages currently resident in physical memory for the process. [Working Set](https://learn.microsoft.com/en-us/windows/win32/memory/working-set)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Working Set](https://learn.microsoft.com/en-us/windows/win32/memory/working-set)\navailable. Each process has a minimum and maximum working set size that affect the virtual memory paging behavior of the process. To obtain the current size of the working set of a specified process, use the GetProcessMemoryInfo function. To obtain or change the minimum and maximum working set sizes, use the GetProcessWorkingSetSizeEx and SetProcessWorkingSetSizeEx functions. The process status application programming interface (PSAPI) provides a number of functions that return detailed information about the working set of a process. For details, see Working Set Information.\n\n[Semaphore Objects](https://learn.microsoft.com/en-us/windows/win32/sync/semaphore-objects)\nThe initial count of a semaphore is typically set to the maximum value. The count is then decremented from that level as the protected resource is consumed. Alternatively, you can create a semaphore with an initial count of zero to block access to the protected resource while the application is being initialized. After initialization, you can use ReleaseSemaphore to increment the count to the maximum value.\n\nQuestion: What does a process working set count?", "retrieved": ["working-set", "semaphore-objects"]} | |
| {"model": "cybermodels-windows", "id": "5886e023585c0938", "split": "train", "passage": "working-set", "condition": "closed", "question": "Does every fault for a page outside the working set require a disk read?", "answer": "No. A soft fault can be resolved without reading backing storage. A hard fault requires reading the page from backing storage.", "prompt": "Answer the Windows question concisely.\nQuestion: Does every fault for a page outside the working set require a disk read?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "5886e023585c0938", "split": "train", "passage": "working-set", "condition": "rag", "question": "Does every fault for a page outside the working set require a disk read?", "answer": "No. A soft fault can be resolved without reading backing storage. A hard fault requires reading the page from backing storage. [Working Set](https://learn.microsoft.com/en-us/windows/win32/memory/working-set)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Working Set](https://learn.microsoft.com/en-us/windows/win32/memory/working-set)\nA *hard page fault* must be resolved by reading page contents from the page's *backing store*, which is either the system paging file or a memory-mapped file created by the process. A *soft page fault* can be resolved without accessing the backing store. A soft page fault occurs when: - The page is in the working set of some other process, so it is already resident in memory. - The page is in transition, because it either has been removed from the working sets of all processes that were using the page and has not yet been repurposed, or it is already resident as a result of a memory manager prefetch operation. - A process references an allocated virtual page for the first time (sometimes\n\n[Page State](https://learn.microsoft.com/en-us/windows/win32/memory/page-state)\nphysical storage associated with it. It is available to be committed. <br/> A process can use the VirtualAlloc or VirtualAllocEx function to reserve pages of its address space and later to commit the reserved pages. It can use VirtualFree or VirtualFreeEx to decommit committed pages and return them to the reserved state.<br/> | | Committed | Memory charges have been allocated from the overall size of RAM and paging files on disk. The page is accessible and access is controlled by one of the memory protection constants. The system initializes and loads each committed page into physical memory only during the first attempt to read or write to that page. When the process terminates, the system releases the storage for committed pages. <br/> A process\n\nQuestion: Does every fault for a page outside the working set require a disk read?", "retrieved": ["working-set", "page-state"]} | |
| {"model": "cybermodels-windows", "id": "337696dff8cfe026", "split": "train", "passage": "page-state", "condition": "closed", "question": "Can my application write to an address range immediately after reserving it?", "answer": "Reservation sets aside virtual address space. The pages must be committed with suitable protection before they can be used.", "prompt": "Answer the Windows question concisely.\nQuestion: Can my application write to an address range immediately after reserving it?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "337696dff8cfe026", "split": "train", "passage": "page-state", "condition": "rag", "question": "Can my application write to an address range immediately after reserving it?", "answer": "Reservation sets aside virtual address space. The pages must be committed with suitable protection before they can be used. [Page State](https://learn.microsoft.com/en-us/windows/win32/memory/page-state)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Page State](https://learn.microsoft.com/en-us/windows/win32/memory/page-state)\nThe pages of a process's virtual address space can be in one of the following states. | State | Description | |-----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Free | The page is neither committed nor reserved. The page is not accessible to the process. It is available to be reserved, committed, or simultaneously reserved and committed. Attempting to read from or write to a free page results in an access violation exception. <br/> A process can use the VirtualFree or VirtualFreeEx function to release reserved or committed pages of its address space, returning them to the free state.<br/> | | Reserved | The page has been reserved for future use. The range of addresses cannot be used by other allocation functions. The page is not accessible and has no\n\n[Synchronous and asynchronous I/O](https://learn.microsoft.com/en-us/windows/win32/fileio/synchronous-and-asynchronous-i-o)\nHandles to directory objects are obtained by calling the CreateFile function with the FILE\\_FLAG\\_BACKUP\\_SEMANTICS attribute. Directory handles are almost never used—backup applications are one of the few applications that will typically use them. After opening the file object for asynchronous I/O, an OVERLAPPED structure must be properly created, initialized, and passed into each call to functions such as ReadFile and WriteFile. Keep the following in mind when using the OVERLAPPED structure in asynchronous read and write operations:\n\nQuestion: Can my application write to an address range immediately after reserving it?", "retrieved": ["page-state", "synchronous-and-asynchronous-i-o"]} | |
| {"model": "cybermodels-windows", "id": "7cd0368a0d148c67", "split": "train", "passage": "page-state", "condition": "closed", "question": "Does reserving virtual addresses reserve physical RAM for every page?", "answer": "No. Reservation sets aside addresses without allocating physical storage for the range.", "prompt": "Answer the Windows question concisely.\nQuestion: Does reserving virtual addresses reserve physical RAM for every page?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "7cd0368a0d148c67", "split": "train", "passage": "page-state", "condition": "rag", "question": "Does reserving virtual addresses reserve physical RAM for every page?", "answer": "No. Reservation sets aside addresses without allocating physical storage for the range. [Page State](https://learn.microsoft.com/en-us/windows/win32/memory/page-state)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Page State](https://learn.microsoft.com/en-us/windows/win32/memory/page-state)\nphysical storage associated with it. It is available to be committed. <br/> A process can use the VirtualAlloc or VirtualAllocEx function to reserve pages of its address space and later to commit the reserved pages. It can use VirtualFree or VirtualFreeEx to decommit committed pages and return them to the reserved state.<br/> | | Committed | Memory charges have been allocated from the overall size of RAM and paging files on disk. The page is accessible and access is controlled by one of the memory protection constants. The system initializes and loads each committed page into physical memory only during the first attempt to read or write to that page. When the process terminates, the system releases the storage for committed pages. <br/> A process\n\n[Working Set](https://learn.microsoft.com/en-us/windows/win32/memory/working-set)\nThe working set of a process is the set of pages in the virtual address space of the process that are currently resident in physical memory. The working set contains only pageable memory allocations; nonpageable memory allocations such as Address Windowing Extensions (AWE) or large page allocations are not included in the working set. When a process references pageable memory that is not currently in its working set, a *page fault* occurs. The system page fault handler attempts to resolve the page fault and, if it succeeds, the page is added to the working set. (Accessing AWE or large page allocations never causes a page fault, because these allocations are not pageable.)\n\nQuestion: Does reserving virtual addresses reserve physical RAM for every page?", "retrieved": ["page-state", "working-set"]} | |
| {"model": "cybermodels-windows", "id": "0535c31f8d60ce73", "split": "train", "passage": "file-mapping", "condition": "closed", "question": "How does a process access a chosen portion of a file through memory mapping?", "answer": "Create or open a file-mapping object and map a view of the desired portion into the process address space.", "prompt": "Answer the Windows question concisely.\nQuestion: How does a process access a chosen portion of a file through memory mapping?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "0535c31f8d60ce73", "split": "train", "passage": "file-mapping", "condition": "rag", "question": "How does a process access a chosen portion of a file through memory mapping?", "answer": "Create or open a file-mapping object and map a view of the desired portion into the process address space. [File Mapping](https://learn.microsoft.com/en-us/windows/win32/memory/file-mapping)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[File Mapping](https://learn.microsoft.com/en-us/windows/win32/memory/file-mapping)\n*File mapping* is the association of a file's contents with a portion of the virtual address space of a process. The system creates a *file mapping object* (also known as a *section object*) to maintain this association. A *file view* is the portion of virtual address space that a process uses to access the file's contents. File mapping allows the process to use both random input and output (I/O) and sequential I/O. It also allows the process to work efficiently with a large data file, such as a database, without having to map the whole file into memory. Multiple processes can also use memory-mapped files to share data.\n\n[Working Set](https://learn.microsoft.com/en-us/windows/win32/memory/working-set)\nA *hard page fault* must be resolved by reading page contents from the page's *backing store*, which is either the system paging file or a memory-mapped file created by the process. A *soft page fault* can be resolved without accessing the backing store. A soft page fault occurs when: - The page is in the working set of some other process, so it is already resident in memory. - The page is in transition, because it either has been removed from the working sets of all processes that were using the page and has not yet been repurposed, or it is already resident as a result of a memory manager prefetch operation. - A process references an allocated virtual page for the first time (sometimes\n\nQuestion: How does a process access a chosen portion of a file through memory mapping?", "retrieved": ["file-mapping", "working-set"]} | |
| {"model": "cybermodels-windows", "id": "4986e6425377db21", "split": "train", "passage": "file-mapping", "condition": "closed", "question": "Can multiple processes view the same data through one file-mapping object?", "answer": "Yes. Each process maps its own view of the shared mapping into its address space.", "prompt": "Answer the Windows question concisely.\nQuestion: Can multiple processes view the same data through one file-mapping object?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "4986e6425377db21", "split": "train", "passage": "file-mapping", "condition": "rag", "question": "Can multiple processes view the same data through one file-mapping object?", "answer": "Yes. Each process maps its own view of the shared mapping into its address space. [File Mapping](https://learn.microsoft.com/en-us/windows/win32/memory/file-mapping)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[File Mapping](https://learn.microsoft.com/en-us/windows/win32/memory/file-mapping)\nA file view can consist of all or only part of the file mapping object. A process manipulates the file through the file views. A process can create multiple views for a file mapping object. The file views created by each process reside in the virtual address space of that process. When the process needs data from a portion of the file other than what is in the current file view, it can unmap the current file view, then create a new file view.\n\n[Working Set](https://learn.microsoft.com/en-us/windows/win32/memory/working-set)\ncalled a *demand-zero fault*). Pages can be removed from a process working set as a result of the following actions: - The process reduces or empties the working set by calling the SetProcessWorkingSetSize, SetProcessWorkingSetSizeEx or EmptyWorkingSet function. - The process calls the VirtualUnlock function on a memory range that is not locked. - The process unmaps a mapped view of a file using the UnmapViewOfFile function. - The memory manager trims pages from the working set to create more available memory. - The memory manager must remove a page from the working set to make room for a new page (for example, because the working set is at its maximum size).\n\nQuestion: Can multiple processes view the same data through one file-mapping object?", "retrieved": ["file-mapping", "working-set"]} | |
| {"model": "cybermodels-windows", "id": "b8230e8f33f93be2", "split": "train", "passage": "synchronous-and-asynchronous-i-o", "condition": "closed", "question": "What does FILE_FLAG_OVERLAPPED tell Windows about I/O on a file handle?", "answer": "It opens the handle for overlapped I/O. The caller supplies a separate OVERLAPPED structure for each outstanding operation.", "prompt": "Answer the Windows question concisely.\nQuestion: What does FILE_FLAG_OVERLAPPED tell Windows about I/O on a file handle?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "b8230e8f33f93be2", "split": "train", "passage": "synchronous-and-asynchronous-i-o", "condition": "rag", "question": "What does FILE_FLAG_OVERLAPPED tell Windows about I/O on a file handle?", "answer": "It opens the handle for overlapped I/O. The caller supplies a separate OVERLAPPED structure for each outstanding operation. [Synchronous and asynchronous I/O](https://learn.microsoft.com/en-us/windows/win32/fileio/synchronous-and-asynchronous-i-o)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Synchronous and asynchronous I/O](https://learn.microsoft.com/en-us/windows/win32/fileio/synchronous-and-asynchronous-i-o)\nA process opens a file for asynchronous I/O in its call to CreateFile by specifying the FILE\\_FLAG\\_OVERLAPPED flag in the *dwFlagsAndAttributes* parameter. If FILE\\_FLAG\\_OVERLAPPED is not specified, the file is opened for synchronous I/O. When the file has been opened for asynchronous I/O, a pointer to an OVERLAPPED structure is passed into the call to ReadFile and WriteFile. When performing synchronous I/O, this structure is not required in calls to ReadFile and WriteFile.\n\nQuestion: What does FILE_FLAG_OVERLAPPED tell Windows about I/O on a file handle?", "retrieved": ["synchronous-and-asynchronous-i-o"]} | |
| {"model": "cybermodels-windows", "id": "a1e6774ce4d5ae00", "split": "train", "passage": "synchronous-and-asynchronous-i-o", "condition": "closed", "question": "Does an asynchronous file operation always finish after the initiating call returns?", "answer": "No. An overlapped operation can complete immediately or remain pending. The caller must handle either result.", "prompt": "Answer the Windows question concisely.\nQuestion: Does an asynchronous file operation always finish after the initiating call returns?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "a1e6774ce4d5ae00", "split": "train", "passage": "synchronous-and-asynchronous-i-o", "condition": "rag", "question": "Does an asynchronous file operation always finish after the initiating call returns?", "answer": "No. An overlapped operation can complete immediately or remain pending. The caller must handle either result. [Synchronous and asynchronous I/O](https://learn.microsoft.com/en-us/windows/win32/fileio/synchronous-and-asynchronous-i-o)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Synchronous and asynchronous I/O](https://learn.microsoft.com/en-us/windows/win32/fileio/synchronous-and-asynchronous-i-o)\nHandles to directory objects are obtained by calling the CreateFile function with the FILE\\_FLAG\\_BACKUP\\_SEMANTICS attribute. Directory handles are almost never used—backup applications are one of the few applications that will typically use them. After opening the file object for asynchronous I/O, an OVERLAPPED structure must be properly created, initialized, and passed into each call to functions such as ReadFile and WriteFile. Keep the following in mind when using the OVERLAPPED structure in asynchronous read and write operations:\n\n[Introduction to Kernel Dispatcher Objects](https://learn.microsoft.com/en-us/windows-hardware/drivers/kernel/introduction-to-kernel-dispatcher-objects)\n- The driver is performing a completely synchronous I/O request. That is, no driver queues any operations while handling the I/O request, and no driver returns until the driver below it has finished handling the request. Additionally, a driver cannot enter a wait state if it is executing at or above IRQL equal to DISPATCH_LEVEL. Based on these limitations, you must use the following rules:\n\nQuestion: Does an asynchronous file operation always finish after the initiating call returns?", "retrieved": ["synchronous-and-asynchronous-i-o", "introduction-to-kernel-dispatcher-objects"]} | |
| {"model": "cybermodels-windows", "id": "f9ca8e570dc1123e", "split": "train", "passage": "introduction-to-kernel-dispatcher-objects", "condition": "closed", "question": "What do waitable kernel dispatcher objects have in common?", "answer": "They have a signaled or nonsignaled state that the kernel uses when satisfying waits.", "prompt": "Answer the Windows question concisely.\nQuestion: What do waitable kernel dispatcher objects have in common?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "f9ca8e570dc1123e", "split": "train", "passage": "introduction-to-kernel-dispatcher-objects", "condition": "rag", "question": "What do waitable kernel dispatcher objects have in common?", "answer": "They have a signaled or nonsignaled state that the kernel uses when satisfying waits. [Introduction to Kernel Dispatcher Objects](https://learn.microsoft.com/en-us/windows-hardware/drivers/kernel/introduction-to-kernel-dispatcher-objects)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Introduction to Kernel Dispatcher Objects](https://learn.microsoft.com/en-us/windows-hardware/drivers/kernel/introduction-to-kernel-dispatcher-objects)\nThe kernel defines a set of object types called *kernel dispatcher objects*, or just *dispatcher objects*. Dispatcher objects include timer objects, event objects, semaphore objects, mutex objects, and thread objects. Drivers can use dispatcher objects as synchronization mechanisms within a nonarbitrary thread context while executing at IRQL equal to PASSIVE_LEVEL. Every kernel-defined dispatcher object type has a state that is either set to Signaled or set to Not-Signaled.\n\nQuestion: What do waitable kernel dispatcher objects have in common?", "retrieved": ["introduction-to-kernel-dispatcher-objects"]} | |
| {"model": "cybermodels-windows", "id": "a3ebd8f64a063794", "split": "train", "passage": "introduction-to-kernel-dispatcher-objects", "condition": "closed", "question": "Does satisfying a kernel wait guarantee that the thread starts executing immediately?", "answer": "It makes the thread eligible to run. Actual execution depends on scheduling.", "prompt": "Answer the Windows question concisely.\nQuestion: Does satisfying a kernel wait guarantee that the thread starts executing immediately?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "a3ebd8f64a063794", "split": "train", "passage": "introduction-to-kernel-dispatcher-objects", "condition": "rag", "question": "Does satisfying a kernel wait guarantee that the thread starts executing immediately?", "answer": "The retrieved references do not establish that. I need a source on introduction to kernel dispatcher objects.", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Synchronous and asynchronous I/O](https://learn.microsoft.com/en-us/windows/win32/fileio/synchronous-and-asynchronous-i-o)\nAlso see I/O-related sample applications. There are two types of input/output (I/O) synchronization: synchronous I/O and asynchronous I/O. Asynchronous I/O is also referred to as overlapped I/O. In *synchronous file I/O*, a thread starts an I/O operation and immediately enters a wait state until the I/O request has completed. A thread performing *asynchronous file I/O* sends an I/O request to the kernel by calling an appropriate function. If the request is accepted by the kernel, the calling thread continues processing another job until the kernel signals to the thread that the I/O operation is complete. It then interrupts its current job and processes the data from the I/O operation as necessary.\n\nQuestion: Does satisfying a kernel wait guarantee that the thread starts executing immediately?", "retrieved": ["synchronous-and-asynchronous-i-o"]} | |
| {"model": "cybermodels-windows", "id": "6aa2ffae5d1dbd2e", "split": "train", "passage": "semaphore-objects", "condition": "closed", "question": "From the Windows semaphore rules, how many permits does my application's semaphore have right now?", "answer": "The rules explain how the count changes. Determining your live count requires information about that semaphore and its operations.", "prompt": "Answer the Windows question concisely.\nQuestion: From the Windows semaphore rules, how many permits does my application's semaphore have right now?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "6aa2ffae5d1dbd2e", "split": "train", "passage": "semaphore-objects", "condition": "rag", "question": "From the Windows semaphore rules, how many permits does my application's semaphore have right now?", "answer": "The rules explain how the count changes. Determining your live count requires information about that semaphore and its operations. [Semaphore Objects](https://learn.microsoft.com/en-us/windows/win32/sync/semaphore-objects)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Semaphore Objects](https://learn.microsoft.com/en-us/windows/win32/sync/semaphore-objects)\nThe semaphore object is useful in controlling a shared resource that can support a limited number of users. It acts as a gate that limits the number of threads sharing the resource to a specified maximum number. For example, an application might place a limit on the number of windows that it creates. It uses a semaphore with a maximum count equal to the window limit, decrementing the count whenever a window is created and incrementing it whenever a window is closed. The application specifies the semaphore object in call to one of the wait functions before each window is created. When the count is zero—indicating that the window limit has been reached—the wait function blocks execution of the window-creation code.\n\nQuestion: From the Windows semaphore rules, how many permits does my application's semaphore have right now?", "retrieved": ["semaphore-objects"]} | |
| {"model": "cybermodels-windows", "id": "04541a599391cc1c", "split": "train", "passage": "job-objects", "condition": "closed", "question": "What exact memory cap has my service assigned to its job object?", "answer": "The reference describes available job limits. The actual cap depends on the job's configured limits.", "prompt": "Answer the Windows question concisely.\nQuestion: What exact memory cap has my service assigned to its job object?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "04541a599391cc1c", "split": "train", "passage": "job-objects", "condition": "rag", "question": "What exact memory cap has my service assigned to its job object?", "answer": "The reference describes available job limits. The actual cap depends on the job's configured limits. [Job Objects](https://learn.microsoft.com/en-us/windows/win32/procthread/job-objects)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Job Objects](https://learn.microsoft.com/en-us/windows/win32/procthread/job-objects)\nTo close a job object handle, use the CloseHandle function. The job is destroyed when its last handle has been closed and all associated processes have been terminated. However, if the job has the JOB\\_OBJECT\\_LIMIT\\_KILL\\_ON\\_JOB\\_CLOSE flag specified, closing the last job object handle terminates all associated processes and then destroys the job object itself. If a nested job has the JOB\\_OBJECT\\_LIMIT\\_KILL\\_ON\\_JOB\\_CLOSE flag specified, closing the last job object handle terminates all processes associated with the job and its child jobs in the hierarchy.\n\n[Scheduling Priorities](https://learn.microsoft.com/en-us/windows/win32/procthread/scheduling-priorities)\nThreads are scheduled to run based on their *scheduling priority*. Each thread is assigned a scheduling priority. The priority levels range from zero (lowest priority) to 31 (highest priority). Only the zero-page thread can have a priority of zero. (The zero-page thread is a system thread responsible for zeroing any free pages when there are no other threads that need to run.) The system treats all threads with the same priority as equal. The system assigns time slices in a round-robin fashion to all threads with the highest priority. If none of these threads are ready to run, the system assigns time slices in a round-robin fashion to all threads with the next highest priority. If a higher-priority thread becomes available to run, the system\n\nQuestion: What exact memory cap has my service assigned to its job object?", "retrieved": ["job-objects", "scheduling-priorities"]} | |
| {"model": "cybermodels-windows", "id": "14c29e15a357c5ed", "split": "train", "passage": "working-set", "condition": "closed", "question": "How many pages are in my process working set at this moment?", "answer": "The reference defines a working set. Answering for your process requires a current measurement.", "prompt": "Answer the Windows question concisely.\nQuestion: How many pages are in my process working set at this moment?", "retrieved": []} | |
| {"model": "cybermodels-windows", "id": "14c29e15a357c5ed", "split": "train", "passage": "working-set", "condition": "rag", "question": "How many pages are in my process working set at this moment?", "answer": "The reference defines a working set. Answering for your process requires a current measurement. [Working Set](https://learn.microsoft.com/en-us/windows/win32/memory/working-set)", "prompt": "Answer the Windows question concisely. Use the applicable reference and cite its link. If the references do not establish the answer, identify the missing information.\n\n[Working Set](https://learn.microsoft.com/en-us/windows/win32/memory/working-set)\nThe working set of a process is the set of pages in the virtual address space of the process that are currently resident in physical memory. The working set contains only pageable memory allocations; nonpageable memory allocations such as Address Windowing Extensions (AWE) or large page allocations are not included in the working set. When a process references pageable memory that is not currently in its working set, a *page fault* occurs. The system page fault handler attempts to resolve the page fault and, if it succeeds, the page is added to the working set. (Accessing AWE or large page allocations never causes a page fault, because these allocations are not pageable.)\n\n[Page State](https://learn.microsoft.com/en-us/windows/win32/memory/page-state)\ncan use VirtualAlloc or VirtualAllocEx to commit physical pages from a reserved region. They can also simultaneously reserve and commit pages.<br/> The GlobalAlloc and LocalAlloc functions allocate committed pages with read/write access.<br/> |\n\nQuestion: How many pages are in my process working set at this moment?", "retrieved": ["working-set", "page-state"]} | |
| {"model": "cybermodels-linux-drivers", "id": "e46bf54e6efef4fe", "passage": "devres", "condition": "closed", "split": "train", "question": "Why use a managed device allocation during probe?", "answer": "Its lifetime is tied to the device binding. The driver core releases it on failed probe or detach.", "retrieved": [], "prompt": "Answer the Linux driver maintenance question concisely.\nQuestion: Why use a managed device allocation during probe?"} | |
| {"model": "cybermodels-linux-drivers", "id": "e46bf54e6efef4fe", "passage": "devres", "condition": "rag", "split": "train", "question": "Why use a managed device allocation during probe?", "answer": "Its lifetime is tied to the device binding. The driver core releases it on failed probe or detach. [Managed device resources](https://docs.kernel.org/6.12/driver-api/driver-model/devres.html)", "retrieved": ["devres", "binding"], "prompt": "Answer the Linux driver maintenance question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nManaged device resources\nFurther reading: https://docs.kernel.org/6.12/driver-api/driver-model/devres.html\nEditorial summary: A managed allocation belongs to a device and normally lasts until driver detach or failed probe cleanup. Devres groups collect related acquisitions so they can be released together if part of an operation fails. Drivers still have to stop users of a resource before its release.\n\nDriver binding and probe\nFurther reading: https://docs.kernel.org/6.12/driver-api/driver-model/driver.html\nEditorial summary: Bus matching identifies a candidate driver for a device. Its probe callback establishes whether it can support that device and initializes it. A successful probe binds the device. If a required supplier will become available later, a driver can return -EPROBE_DEFER so the core can retry.\n\nQuestion: Why use a managed device allocation during probe?"} | |
| {"model": "cybermodels-linux-drivers", "id": "77a8764dda4af95f", "passage": "devres", "condition": "closed", "split": "train", "question": "How can a driver unwind a set of managed acquisitions together?", "answer": "Use a devres group for the related acquisitions and release the group on failure.", "retrieved": [], "prompt": "Answer the Linux driver maintenance question concisely.\nQuestion: How can a driver unwind a set of managed acquisitions together?"} | |
| {"model": "cybermodels-linux-drivers", "id": "77a8764dda4af95f", "passage": "devres", "condition": "rag", "split": "train", "question": "How can a driver unwind a set of managed acquisitions together?", "answer": "Use a devres group for the related acquisitions and release the group on failure. [Managed device resources](https://docs.kernel.org/6.12/driver-api/driver-model/devres.html)", "retrieved": ["devres", "runtime-pm"], "prompt": "Answer the Linux driver maintenance question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nManaged device resources\nFurther reading: https://docs.kernel.org/6.12/driver-api/driver-model/devres.html\nEditorial summary: A managed allocation belongs to a device and normally lasts until driver detach or failed probe cleanup. Devres groups collect related acquisitions so they can be released together if part of an operation fails. Drivers still have to stop users of a resource before its release.\n\nRuntime power management usage counters\nFurther reading: https://docs.kernel.org/6.12/power/runtime_pm.html\nEditorial summary: A runtime PM usage count tracks users that need a device active. A driver can acquire an active device with pm_runtime_resume_and_get and balance successful acquisitions on its release path. Autosuspend can delay suspension after a device becomes idle to avoid rapid power cycling.\n\nQuestion: How can a driver unwind a set of managed acquisitions together?"} | |
| {"model": "cybermodels-linux-drivers", "id": "5038bc9da8d40bfd", "passage": "devres", "condition": "closed", "split": "train", "question": "Does managed cleanup alone stop asynchronous users of the allocation?", "answer": "The driver must arrange for outstanding users to stop before the resource is released.", "retrieved": [], "prompt": "Answer the Linux driver maintenance question concisely.\nQuestion: Does managed cleanup alone stop asynchronous users of the allocation?"} | |
| {"model": "cybermodels-linux-drivers", "id": "5038bc9da8d40bfd", "passage": "devres", "condition": "rag", "split": "train", "question": "Does managed cleanup alone stop asynchronous users of the allocation?", "answer": "The driver must arrange for outstanding users to stop before the resource is released. [Managed device resources](https://docs.kernel.org/6.12/driver-api/driver-model/devres.html)", "retrieved": ["devres", "runtime-pm"], "prompt": "Answer the Linux driver maintenance question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nManaged device resources\nFurther reading: https://docs.kernel.org/6.12/driver-api/driver-model/devres.html\nEditorial summary: A managed allocation belongs to a device and normally lasts until driver detach or failed probe cleanup. Devres groups collect related acquisitions so they can be released together if part of an operation fails. Drivers still have to stop users of a resource before its release.\n\nRuntime power management usage counters\nFurther reading: https://docs.kernel.org/6.12/power/runtime_pm.html\nEditorial summary: A runtime PM usage count tracks users that need a device active. A driver can acquire an active device with pm_runtime_resume_and_get and balance successful acquisitions on its release path. Autosuspend can delay suspension after a device becomes idle to avoid rapid power cycling.\n\nQuestion: Does managed cleanup alone stop asynchronous users of the allocation?"} | |
| {"model": "cybermodels-linux-drivers", "id": "7df0dd120417c3a3", "passage": "dma", "condition": "closed", "split": "train", "question": "How should a driver check a dma_map_single result before submitting it?", "answer": "Call dma_mapping_error with the device and returned DMA address and handle failure before submission.", "retrieved": [], "prompt": "Answer the Linux driver maintenance question concisely.\nQuestion: How should a driver check a dma_map_single result before submitting it?"} | |
| {"model": "cybermodels-linux-drivers", "id": "7df0dd120417c3a3", "passage": "dma", "condition": "rag", "split": "train", "question": "How should a driver check a dma_map_single result before submitting it?", "answer": "Call dma_mapping_error with the device and returned DMA address and handle failure before submission. [DMA mapping, ownership and synchronization](https://docs.kernel.org/6.12/core-api/dma-api-howto.html)", "retrieved": ["dma", "devres"], "prompt": "Answer the Linux driver maintenance question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nDMA mapping, ownership and synchronization\nFurther reading: https://docs.kernel.org/6.12/core-api/dma-api-howto.html\nEditorial summary: A streaming DMA mapping has a transfer direction and an ownership interval. Check whether dma_map_single succeeded with dma_mapping_error. For a reused mapping, synchronize for the CPU before examining device-written data and synchronize for the device before returning the buffer. Coherent mappings still need appropriate ordering barriers.\n\nManaged device resources\nFurther reading: https://docs.kernel.org/6.12/driver-api/driver-model/devres.html\nEditorial summary: A managed allocation belongs to a device and normally lasts until driver detach or failed probe cleanup. Devres groups collect related acquisitions so they can be released together if part of an operation fails. Drivers still have to stop users of a resource before its release.\n\nQuestion: How should a driver check a dma_map_single result before submitting it?"} | |
| {"model": "cybermodels-linux-drivers", "id": "bf3275d4cb4e5e1b", "passage": "dma", "condition": "closed", "split": "train", "question": "When reusing a streaming DMA buffer, when may the CPU inspect device-written data?", "answer": "After the device has finished and the mapping has been synchronized for CPU access.", "retrieved": [], "prompt": "Answer the Linux driver maintenance question concisely.\nQuestion: When reusing a streaming DMA buffer, when may the CPU inspect device-written data?"} | |
| {"model": "cybermodels-linux-drivers", "id": "bf3275d4cb4e5e1b", "passage": "dma", "condition": "rag", "split": "train", "question": "When reusing a streaming DMA buffer, when may the CPU inspect device-written data?", "answer": "After the device has finished and the mapping has been synchronized for CPU access. [DMA mapping, ownership and synchronization](https://docs.kernel.org/6.12/core-api/dma-api-howto.html)", "retrieved": ["dma", "bus"], "prompt": "Answer the Linux driver maintenance question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nDMA mapping, ownership and synchronization\nFurther reading: https://docs.kernel.org/6.12/core-api/dma-api-howto.html\nEditorial summary: A streaming DMA mapping has a transfer direction and an ownership interval. Check whether dma_map_single succeeded with dma_mapping_error. For a reused mapping, synchronize for the CPU before examining device-written data and synchronize for the device before returning the buffer. Coherent mappings still need appropriate ordering barriers.\n\nLinux bus device and driver registration\nFurther reading: https://docs.kernel.org/6.12/driver-api/driver-model/bus.html\nEditorial summary: The Linux driver model represents a bus as a bus_type. A registered bus maintains collections of devices and drivers. Its match callback compares candidates according to bus-specific rules. Enumeration and matching are distinct from a driver's initialization of a particular device.\n\nQuestion: When reusing a streaming DMA buffer, when may the CPU inspect device-written data?"} | |
| {"model": "cybermodels-linux-drivers", "id": "bd16f5666843c414", "passage": "dma", "condition": "closed", "split": "train", "question": "Can a coherent DMA descriptor ring still need memory barriers?", "answer": "Yes. Coherent visibility alone does not order the writes that publish the descriptor.", "retrieved": [], "prompt": "Answer the Linux driver maintenance question concisely.\nQuestion: Can a coherent DMA descriptor ring still need memory barriers?"} | |
| {"model": "cybermodels-linux-drivers", "id": "bd16f5666843c414", "passage": "dma", "condition": "rag", "split": "train", "question": "Can a coherent DMA descriptor ring still need memory barriers?", "answer": "Yes. Coherent visibility alone does not order the writes that publish the descriptor. [DMA mapping, ownership and synchronization](https://docs.kernel.org/6.12/core-api/dma-api-howto.html)", "retrieved": ["dma", "devres"], "prompt": "Answer the Linux driver maintenance question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nDMA mapping, ownership and synchronization\nFurther reading: https://docs.kernel.org/6.12/core-api/dma-api-howto.html\nEditorial summary: A streaming DMA mapping has a transfer direction and an ownership interval. Check whether dma_map_single succeeded with dma_mapping_error. For a reused mapping, synchronize for the CPU before examining device-written data and synchronize for the device before returning the buffer. Coherent mappings still need appropriate ordering barriers.\n\nManaged device resources\nFurther reading: https://docs.kernel.org/6.12/driver-api/driver-model/devres.html\nEditorial summary: A managed allocation belongs to a device and normally lasts until driver detach or failed probe cleanup. Devres groups collect related acquisitions so they can be released together if part of an operation fails. Drivers still have to stop users of a resource before its release.\n\nQuestion: Can a coherent DMA descriptor ring still need memory barriers?"} | |
| {"model": "cybermodels-linux-drivers", "id": "5e56a28a26878863", "passage": "binding", "condition": "closed", "split": "train", "question": "A driver matches the device ID. Is initialization guaranteed to have succeeded?", "answer": "Matching selects a candidate. The probe callback still has to succeed before the driver is bound.", "retrieved": [], "prompt": "Answer the Linux driver maintenance question concisely.\nQuestion: A driver matches the device ID. Is initialization guaranteed to have succeeded?"} | |
| {"model": "cybermodels-linux-drivers", "id": "5e56a28a26878863", "passage": "binding", "condition": "rag", "split": "train", "question": "A driver matches the device ID. Is initialization guaranteed to have succeeded?", "answer": "The retrieved references do not establish that. I need a source on Driver binding and probe.", "retrieved": ["bus", "devres"], "prompt": "Answer the Linux driver maintenance question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nLinux bus device and driver registration\nFurther reading: https://docs.kernel.org/6.12/driver-api/driver-model/bus.html\nEditorial summary: The Linux driver model represents a bus as a bus_type. A registered bus maintains collections of devices and drivers. Its match callback compares candidates according to bus-specific rules. Enumeration and matching are distinct from a driver's initialization of a particular device.\n\nManaged device resources\nFurther reading: https://docs.kernel.org/6.12/driver-api/driver-model/devres.html\nEditorial summary: A managed allocation belongs to a device and normally lasts until driver detach or failed probe cleanup. Devres groups collect related acquisitions so they can be released together if part of an operation fails. Drivers still have to stop users of a resource before its release.\n\nQuestion: A driver matches the device ID. Is initialization guaranteed to have succeeded?"} | |
| {"model": "cybermodels-linux-drivers", "id": "b19d23070e31bfd4", "passage": "binding", "condition": "closed", "split": "train", "question": "What can probe return if a necessary supplier has not initialized yet?", "answer": "Return -EPROBE_DEFER when retrying later could resolve the missing dependency.", "retrieved": [], "prompt": "Answer the Linux driver maintenance question concisely.\nQuestion: What can probe return if a necessary supplier has not initialized yet?"} | |
| {"model": "cybermodels-linux-drivers", "id": "b19d23070e31bfd4", "passage": "binding", "condition": "rag", "split": "train", "question": "What can probe return if a necessary supplier has not initialized yet?", "answer": "Return -EPROBE_DEFER when retrying later could resolve the missing dependency. [Driver binding and probe](https://docs.kernel.org/6.12/driver-api/driver-model/driver.html)", "retrieved": ["binding", "dma"], "prompt": "Answer the Linux driver maintenance question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nDriver binding and probe\nFurther reading: https://docs.kernel.org/6.12/driver-api/driver-model/driver.html\nEditorial summary: Bus matching identifies a candidate driver for a device. Its probe callback establishes whether it can support that device and initializes it. A successful probe binds the device. If a required supplier will become available later, a driver can return -EPROBE_DEFER so the core can retry.\n\nDMA mapping, ownership and synchronization\nFurther reading: https://docs.kernel.org/6.12/core-api/dma-api-howto.html\nEditorial summary: A streaming DMA mapping has a transfer direction and an ownership interval. Check whether dma_map_single succeeded with dma_mapping_error. For a reused mapping, synchronize for the CPU before examining device-written data and synchronize for the device before returning the buffer. Coherent mappings still need appropriate ordering barriers.\n\nQuestion: What can probe return if a necessary supplier has not initialized yet?"} | |
| {"model": "cybermodels-linux-drivers", "id": "d04f76a8c142c12e", "passage": "binding", "condition": "closed", "split": "train", "question": "Can the reference tell whether my own device's probe completed this morning?", "answer": "Check the actual device binding and relevant kernel logs. The documentation cannot establish the state of your machine.", "retrieved": [], "prompt": "Answer the Linux driver maintenance question concisely.\nQuestion: Can the reference tell whether my own device's probe completed this morning?"} | |
| {"model": "cybermodels-linux-drivers", "id": "d04f76a8c142c12e", "passage": "binding", "condition": "rag", "split": "train", "question": "Can the reference tell whether my own device's probe completed this morning?", "answer": "Check the actual device binding and relevant kernel logs. The documentation cannot establish the state of your machine. [Driver binding and probe](https://docs.kernel.org/6.12/driver-api/driver-model/driver.html)", "retrieved": ["binding", "devres"], "prompt": "Answer the Linux driver maintenance question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nDriver binding and probe\nFurther reading: https://docs.kernel.org/6.12/driver-api/driver-model/driver.html\nEditorial summary: Bus matching identifies a candidate driver for a device. Its probe callback establishes whether it can support that device and initializes it. A successful probe binds the device. If a required supplier will become available later, a driver can return -EPROBE_DEFER so the core can retry.\n\nManaged device resources\nFurther reading: https://docs.kernel.org/6.12/driver-api/driver-model/devres.html\nEditorial summary: A managed allocation belongs to a device and normally lasts until driver detach or failed probe cleanup. Devres groups collect related acquisitions so they can be released together if part of an operation fails. Drivers still have to stop users of a resource before its release.\n\nQuestion: Can the reference tell whether my own device's probe completed this morning?"} | |
| {"model": "cybermodels-linux-drivers", "id": "017682e145d8af46", "passage": "sysfs", "condition": "closed", "split": "train", "question": "Which sysfs operations implement reads and writes of an ordinary device attribute?", "answer": "The show callback supplies read data, and the store callback handles a write.", "retrieved": [], "prompt": "Answer the Linux driver maintenance question concisely.\nQuestion: Which sysfs operations implement reads and writes of an ordinary device attribute?"} | |
| {"model": "cybermodels-linux-drivers", "id": "017682e145d8af46", "passage": "sysfs", "condition": "rag", "split": "train", "question": "Which sysfs operations implement reads and writes of an ordinary device attribute?", "answer": "The show callback supplies read data, and the store callback handles a write. [Sysfs attribute conventions](https://docs.kernel.org/6.12/filesystems/sysfs.html)", "retrieved": ["sysfs", "devres"], "prompt": "Answer the Linux driver maintenance question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nSysfs attribute conventions\nFurther reading: https://docs.kernel.org/6.12/filesystems/sysfs.html\nEditorial summary: Sysfs exposes kernel objects and their attributes as directories and files. An ordinary attribute uses a show callback for reads and a store callback for writes. Text attributes conventionally describe one value; a simple array of values of the same type can also be appropriate.\n\nManaged device resources\nFurther reading: https://docs.kernel.org/6.12/driver-api/driver-model/devres.html\nEditorial summary: A managed allocation belongs to a device and normally lasts until driver detach or failed probe cleanup. Devres groups collect related acquisitions so they can be released together if part of an operation fails. Drivers still have to stop users of a resource before its release.\n\nQuestion: Which sysfs operations implement reads and writes of an ordinary device attribute?"} | |
| {"model": "cybermodels-linux-drivers", "id": "28c3145e87a69ff4", "passage": "sysfs", "condition": "closed", "split": "train", "question": "Should a new driver pack an unrelated table of text fields into one sysfs attribute?", "answer": "Use separate attributes for separate values. A small array of values of the same type is an accepted convention.", "retrieved": [], "prompt": "Answer the Linux driver maintenance question concisely.\nQuestion: Should a new driver pack an unrelated table of text fields into one sysfs attribute?"} | |
| {"model": "cybermodels-linux-drivers", "id": "28c3145e87a69ff4", "passage": "sysfs", "condition": "rag", "split": "train", "question": "Should a new driver pack an unrelated table of text fields into one sysfs attribute?", "answer": "Use separate attributes for separate values. A small array of values of the same type is an accepted convention. [Sysfs attribute conventions](https://docs.kernel.org/6.12/filesystems/sysfs.html)", "retrieved": ["sysfs", "bus"], "prompt": "Answer the Linux driver maintenance question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nSysfs attribute conventions\nFurther reading: https://docs.kernel.org/6.12/filesystems/sysfs.html\nEditorial summary: Sysfs exposes kernel objects and their attributes as directories and files. An ordinary attribute uses a show callback for reads and a store callback for writes. Text attributes conventionally describe one value; a simple array of values of the same type can also be appropriate.\n\nLinux bus device and driver registration\nFurther reading: https://docs.kernel.org/6.12/driver-api/driver-model/bus.html\nEditorial summary: The Linux driver model represents a bus as a bus_type. A registered bus maintains collections of devices and drivers. Its match callback compares candidates according to bus-specific rules. Enumeration and matching are distinct from a driver's initialization of a particular device.\n\nQuestion: Should a new driver pack an unrelated table of text fields into one sysfs attribute?"} | |
| {"model": "cybermodels-linux-drivers", "id": "f555badcda924a37", "passage": "sysfs", "condition": "closed", "split": "train", "question": "Do sysfs directories represent kernel objects or copies of every driver buffer?", "answer": "Directories reflect registered kernel objects. Their attribute files expose selected properties.", "retrieved": [], "prompt": "Answer the Linux driver maintenance question concisely.\nQuestion: Do sysfs directories represent kernel objects or copies of every driver buffer?"} | |
| {"model": "cybermodels-linux-drivers", "id": "f555badcda924a37", "passage": "sysfs", "condition": "rag", "split": "train", "question": "Do sysfs directories represent kernel objects or copies of every driver buffer?", "answer": "Directories reflect registered kernel objects. Their attribute files expose selected properties. [Sysfs attribute conventions](https://docs.kernel.org/6.12/filesystems/sysfs.html)", "retrieved": ["sysfs", "bus"], "prompt": "Answer the Linux driver maintenance question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nSysfs attribute conventions\nFurther reading: https://docs.kernel.org/6.12/filesystems/sysfs.html\nEditorial summary: Sysfs exposes kernel objects and their attributes as directories and files. An ordinary attribute uses a show callback for reads and a store callback for writes. Text attributes conventionally describe one value; a simple array of values of the same type can also be appropriate.\n\nLinux bus device and driver registration\nFurther reading: https://docs.kernel.org/6.12/driver-api/driver-model/bus.html\nEditorial summary: The Linux driver model represents a bus as a bus_type. A registered bus maintains collections of devices and drivers. Its match callback compares candidates according to bus-specific rules. Enumeration and matching are distinct from a driver's initialization of a particular device.\n\nQuestion: Do sysfs directories represent kernel objects or copies of every driver buffer?"} | |
| {"model": "cybermodels-linux-drivers", "id": "bd3922f1f980db4a", "passage": "runtime-pm", "condition": "closed", "split": "train", "question": "How can runtime PM acquire a usage reference only if resuming succeeds?", "answer": "Use pm_runtime_resume_and_get and handle its return value before using the device.", "retrieved": [], "prompt": "Answer the Linux driver maintenance question concisely.\nQuestion: How can runtime PM acquire a usage reference only if resuming succeeds?"} | |
| {"model": "cybermodels-linux-drivers", "id": "bd3922f1f980db4a", "passage": "runtime-pm", "condition": "rag", "split": "train", "question": "How can runtime PM acquire a usage reference only if resuming succeeds?", "answer": "Use pm_runtime_resume_and_get and handle its return value before using the device. [Runtime power management usage counters](https://docs.kernel.org/6.12/power/runtime_pm.html)", "retrieved": ["runtime-pm"], "prompt": "Answer the Linux driver maintenance question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nRuntime power management usage counters\nFurther reading: https://docs.kernel.org/6.12/power/runtime_pm.html\nEditorial summary: A runtime PM usage count tracks users that need a device active. A driver can acquire an active device with pm_runtime_resume_and_get and balance successful acquisitions on its release path. Autosuspend can delay suspension after a device becomes idle to avoid rapid power cycling.\n\nQuestion: How can runtime PM acquire a usage reference only if resuming succeeds?"} | |
| {"model": "cybermodels-linux-drivers", "id": "cbc1e9f6fe9a7f05", "passage": "runtime-pm", "condition": "closed", "split": "train", "question": "Should a successful runtime PM resume-and-get remain unbalanced after the operation?", "answer": "Release the usage reference when the operation finishes, using the put helper appropriate to the driver's policy.", "retrieved": [], "prompt": "Answer the Linux driver maintenance question concisely.\nQuestion: Should a successful runtime PM resume-and-get remain unbalanced after the operation?"} | |
| {"model": "cybermodels-linux-drivers", "id": "cbc1e9f6fe9a7f05", "passage": "runtime-pm", "condition": "rag", "split": "train", "question": "Should a successful runtime PM resume-and-get remain unbalanced after the operation?", "answer": "Release the usage reference when the operation finishes, using the put helper appropriate to the driver's policy. [Runtime power management usage counters](https://docs.kernel.org/6.12/power/runtime_pm.html)", "retrieved": ["runtime-pm", "devres"], "prompt": "Answer the Linux driver maintenance question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nRuntime power management usage counters\nFurther reading: https://docs.kernel.org/6.12/power/runtime_pm.html\nEditorial summary: A runtime PM usage count tracks users that need a device active. A driver can acquire an active device with pm_runtime_resume_and_get and balance successful acquisitions on its release path. Autosuspend can delay suspension after a device becomes idle to avoid rapid power cycling.\n\nManaged device resources\nFurther reading: https://docs.kernel.org/6.12/driver-api/driver-model/devres.html\nEditorial summary: A managed allocation belongs to a device and normally lasts until driver detach or failed probe cleanup. Devres groups collect related acquisitions so they can be released together if part of an operation fails. Drivers still have to stop users of a resource before its release.\n\nQuestion: Should a successful runtime PM resume-and-get remain unbalanced after the operation?"} | |
| {"model": "cybermodels-linux-drivers", "id": "9d1996ad5c56685d", "passage": "runtime-pm", "condition": "closed", "split": "train", "question": "Why delay runtime autosuspend on a device with frequent short idle gaps?", "answer": "The delay can avoid repeated suspend and resume transitions between closely spaced operations.", "retrieved": [], "prompt": "Answer the Linux driver maintenance question concisely.\nQuestion: Why delay runtime autosuspend on a device with frequent short idle gaps?"} | |
| {"model": "cybermodels-linux-drivers", "id": "9d1996ad5c56685d", "passage": "runtime-pm", "condition": "rag", "split": "train", "question": "Why delay runtime autosuspend on a device with frequent short idle gaps?", "answer": "The delay can avoid repeated suspend and resume transitions between closely spaced operations. [Runtime power management usage counters](https://docs.kernel.org/6.12/power/runtime_pm.html)", "retrieved": ["runtime-pm", "bus"], "prompt": "Answer the Linux driver maintenance question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nRuntime power management usage counters\nFurther reading: https://docs.kernel.org/6.12/power/runtime_pm.html\nEditorial summary: A runtime PM usage count tracks users that need a device active. A driver can acquire an active device with pm_runtime_resume_and_get and balance successful acquisitions on its release path. Autosuspend can delay suspension after a device becomes idle to avoid rapid power cycling.\n\nLinux bus device and driver registration\nFurther reading: https://docs.kernel.org/6.12/driver-api/driver-model/bus.html\nEditorial summary: The Linux driver model represents a bus as a bus_type. A registered bus maintains collections of devices and drivers. Its match callback compares candidates according to bus-specific rules. Enumeration and matching are distinct from a driver's initialization of a particular device.\n\nQuestion: Why delay runtime autosuspend on a device with frequent short idle gaps?"} | |
| {"model": "cybermodels-linux-drivers", "id": "8ca972b7a9511ea4", "passage": "bus", "condition": "closed", "split": "train", "question": "What does a bus_type represent in the driver model?", "answer": "It describes a bus and its operations and connects the devices and drivers registered on that bus.", "retrieved": [], "prompt": "Answer the Linux driver maintenance question concisely.\nQuestion: What does a bus_type represent in the driver model?"} | |
| {"model": "cybermodels-linux-drivers", "id": "8ca972b7a9511ea4", "passage": "bus", "condition": "rag", "split": "train", "question": "What does a bus_type represent in the driver model?", "answer": "It describes a bus and its operations and connects the devices and drivers registered on that bus. [Linux bus device and driver registration](https://docs.kernel.org/6.12/driver-api/driver-model/bus.html)", "retrieved": ["bus", "binding"], "prompt": "Answer the Linux driver maintenance question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nLinux bus device and driver registration\nFurther reading: https://docs.kernel.org/6.12/driver-api/driver-model/bus.html\nEditorial summary: The Linux driver model represents a bus as a bus_type. A registered bus maintains collections of devices and drivers. Its match callback compares candidates according to bus-specific rules. Enumeration and matching are distinct from a driver's initialization of a particular device.\n\nDriver binding and probe\nFurther reading: https://docs.kernel.org/6.12/driver-api/driver-model/driver.html\nEditorial summary: Bus matching identifies a candidate driver for a device. Its probe callback establishes whether it can support that device and initializes it. A successful probe binds the device. If a required supplier will become available later, a driver can return -EPROBE_DEFER so the core can retry.\n\nQuestion: What does a bus_type represent in the driver model?"} | |
| {"model": "cybermodels-linux-drivers", "id": "f8c19451e270ded4", "passage": "bus", "condition": "closed", "split": "train", "question": "Who decides the bus-specific rules for matching a device to a candidate driver?", "answer": "The bus supplies the match callback.", "retrieved": [], "prompt": "Answer the Linux driver maintenance question concisely.\nQuestion: Who decides the bus-specific rules for matching a device to a candidate driver?"} | |
| {"model": "cybermodels-linux-drivers", "id": "f8c19451e270ded4", "passage": "bus", "condition": "rag", "split": "train", "question": "Who decides the bus-specific rules for matching a device to a candidate driver?", "answer": "The bus supplies the match callback. [Linux bus device and driver registration](https://docs.kernel.org/6.12/driver-api/driver-model/bus.html)", "retrieved": ["bus", "binding"], "prompt": "Answer the Linux driver maintenance question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nLinux bus device and driver registration\nFurther reading: https://docs.kernel.org/6.12/driver-api/driver-model/bus.html\nEditorial summary: The Linux driver model represents a bus as a bus_type. A registered bus maintains collections of devices and drivers. Its match callback compares candidates according to bus-specific rules. Enumeration and matching are distinct from a driver's initialization of a particular device.\n\nDriver binding and probe\nFurther reading: https://docs.kernel.org/6.12/driver-api/driver-model/driver.html\nEditorial summary: Bus matching identifies a candidate driver for a device. Its probe callback establishes whether it can support that device and initializes it. A successful probe binds the device. If a required supplier will become available later, a driver can return -EPROBE_DEFER so the core can retry.\n\nQuestion: Who decides the bus-specific rules for matching a device to a candidate driver?"} | |
| {"model": "cybermodels-linux-drivers", "id": "2abc5dbccbd01705", "passage": "bus", "condition": "closed", "split": "train", "question": "Does adding a driver to a bus by itself prove a particular device is functioning?", "answer": "Inspect the device's binding and successful initialization. Registration by itself only makes a candidate driver available.", "retrieved": [], "prompt": "Answer the Linux driver maintenance question concisely.\nQuestion: Does adding a driver to a bus by itself prove a particular device is functioning?"} | |
| {"model": "cybermodels-linux-drivers", "id": "2abc5dbccbd01705", "passage": "bus", "condition": "rag", "split": "train", "question": "Does adding a driver to a bus by itself prove a particular device is functioning?", "answer": "Inspect the device's binding and successful initialization. Registration by itself only makes a candidate driver available. [Linux bus device and driver registration](https://docs.kernel.org/6.12/driver-api/driver-model/bus.html)", "retrieved": ["bus", "binding"], "prompt": "Answer the Linux driver maintenance question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nLinux bus device and driver registration\nFurther reading: https://docs.kernel.org/6.12/driver-api/driver-model/bus.html\nEditorial summary: The Linux driver model represents a bus as a bus_type. A registered bus maintains collections of devices and drivers. Its match callback compares candidates according to bus-specific rules. Enumeration and matching are distinct from a driver's initialization of a particular device.\n\nDriver binding and probe\nFurther reading: https://docs.kernel.org/6.12/driver-api/driver-model/driver.html\nEditorial summary: Bus matching identifies a candidate driver for a device. Its probe callback establishes whether it can support that device and initializes it. A successful probe binds the device. If a required supplier will become available later, a driver can return -EPROBE_DEFER so the core can retry.\n\nQuestion: Does adding a driver to a bus by itself prove a particular device is functioning?"} | |
| {"model": "cybermodels-web-defense", "id": "d955dcc192f8c028", "passage": "cache-control", "condition": "closed", "split": "train", "question": "Which Cache-Control directive prevents a sensitive response being stored?", "answer": "Use no-store on that response.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: Which Cache-Control directive prevents a sensitive response being stored?"} | |
| {"model": "cybermodels-web-defense", "id": "d955dcc192f8c028", "passage": "cache-control", "condition": "rag", "split": "train", "question": "Which Cache-Control directive prevents a sensitive response being stored?", "answer": "Use no-store on that response. [Cache-Control storage and revalidation](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control)", "retrieved": ["cache-control", "set-cookie"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nCache-Control storage and revalidation\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control\nEditorial summary: The no-store response directive asks caches to avoid storing the response. With no-cache, storage is allowed but the cache must validate before reuse. The private directive confines storage to private caches. Changing a policy on a new response does not itself purge an earlier response from every cache.\n\nSet-Cookie session cookie attributes\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie\nEditorial summary: Secure restricts cookie transmission to secure channels, with a localhost exception in browsers. HttpOnly prevents script APIs from reading a cookie while the browser can still attach it to eligible requests. SameSite controls cross-site delivery; SameSite=None requires Secure. Omitting Domain makes a cookie host-only.\n\nQuestion: Which Cache-Control directive prevents a sensitive response being stored?"} | |
| {"model": "cybermodels-web-defense", "id": "a34d35f33de3bcc9", "passage": "cache-control", "condition": "closed", "split": "train", "question": "Can a cache store a response marked no-cache?", "answer": "Yes. It must validate it before reusing it.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: Can a cache store a response marked no-cache?"} | |
| {"model": "cybermodels-web-defense", "id": "a34d35f33de3bcc9", "passage": "cache-control", "condition": "rag", "split": "train", "question": "Can a cache store a response marked no-cache?", "answer": "Yes. It must validate it before reusing it. [Cache-Control storage and revalidation](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control)", "retrieved": ["cache-control", "frame-ancestors"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nCache-Control storage and revalidation\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control\nEditorial summary: The no-store response directive asks caches to avoid storing the response. With no-cache, storage is allowed but the cache must validate before reuse. The private directive confines storage to private caches. Changing a policy on a new response does not itself purge an earlier response from every cache.\n\nContent-Security-Policy frame-ancestors\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/frame-ancestors\nEditorial summary: The frame-ancestors directive controls which parents may embed a page. A policy of 'none' excludes all ancestors. The directive is delivered as an HTTP response header, and it has no default-src fallback. frame-src deals with the frames the page itself may load.\n\nQuestion: Can a cache store a response marked no-cache?"} | |
| {"model": "cybermodels-web-defense", "id": "7b1fc6f005bb3a90", "passage": "cache-control", "condition": "closed", "split": "train", "question": "Can I rely on private alone to prevent a browser caching an account page?", "answer": "No. Private permits a private cache to store the response. Use no-store when storage must be prevented.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: Can I rely on private alone to prevent a browser caching an account page?"} | |
| {"model": "cybermodels-web-defense", "id": "7b1fc6f005bb3a90", "passage": "cache-control", "condition": "rag", "split": "train", "question": "Can I rely on private alone to prevent a browser caching an account page?", "answer": "No. Private permits a private cache to store the response. Use no-store when storage must be prevented. [Cache-Control storage and revalidation](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control)", "retrieved": ["cache-control", "frame-ancestors"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nCache-Control storage and revalidation\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control\nEditorial summary: The no-store response directive asks caches to avoid storing the response. With no-cache, storage is allowed but the cache must validate before reuse. The private directive confines storage to private caches. Changing a policy on a new response does not itself purge an earlier response from every cache.\n\nContent-Security-Policy frame-ancestors\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/frame-ancestors\nEditorial summary: The frame-ancestors directive controls which parents may embed a page. A policy of 'none' excludes all ancestors. The directive is delivered as an HTTP response header, and it has no default-src fallback. frame-src deals with the frames the page itself may load.\n\nQuestion: Can I rely on private alone to prevent a browser caching an account page?"} | |
| {"model": "cybermodels-web-defense", "id": "05d9f4fc36806f91", "passage": "set-cookie", "condition": "closed", "split": "train", "question": "Which session cookie attribute blocks document.cookie from reading its value?", "answer": "Set HttpOnly. The browser can still send that cookie on eligible requests.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: Which session cookie attribute blocks document.cookie from reading its value?"} | |
| {"model": "cybermodels-web-defense", "id": "05d9f4fc36806f91", "passage": "set-cookie", "condition": "rag", "split": "train", "question": "Which session cookie attribute blocks document.cookie from reading its value?", "answer": "Set HttpOnly. The browser can still send that cookie on eligible requests. [Set-Cookie session cookie attributes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie)", "retrieved": ["set-cookie"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nSet-Cookie session cookie attributes\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie\nEditorial summary: Secure restricts cookie transmission to secure channels, with a localhost exception in browsers. HttpOnly prevents script APIs from reading a cookie while the browser can still attach it to eligible requests. SameSite controls cross-site delivery; SameSite=None requires Secure. Omitting Domain makes a cookie host-only.\n\nQuestion: Which session cookie attribute blocks document.cookie from reading its value?"} | |
| {"model": "cybermodels-web-defense", "id": "fcc185bc9f8ae01c", "passage": "set-cookie", "condition": "closed", "split": "train", "question": "What other attribute is required on a SameSite=None cookie?", "answer": "Set Secure alongside SameSite=None.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: What other attribute is required on a SameSite=None cookie?"} | |
| {"model": "cybermodels-web-defense", "id": "fcc185bc9f8ae01c", "passage": "set-cookie", "condition": "rag", "split": "train", "question": "What other attribute is required on a SameSite=None cookie?", "answer": "Set Secure alongside SameSite=None. [Set-Cookie session cookie attributes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie)", "retrieved": ["set-cookie", "frame-ancestors"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nSet-Cookie session cookie attributes\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie\nEditorial summary: Secure restricts cookie transmission to secure channels, with a localhost exception in browsers. HttpOnly prevents script APIs from reading a cookie while the browser can still attach it to eligible requests. SameSite controls cross-site delivery; SameSite=None requires Secure. Omitting Domain makes a cookie host-only.\n\nContent-Security-Policy frame-ancestors\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/frame-ancestors\nEditorial summary: The frame-ancestors directive controls which parents may embed a page. A policy of 'none' excludes all ancestors. The directive is delivered as an HTTP response header, and it has no default-src fallback. frame-src deals with the frames the page itself may load.\n\nQuestion: What other attribute is required on a SameSite=None cookie?"} | |
| {"model": "cybermodels-web-defense", "id": "9b190462e516a02d", "passage": "set-cookie", "condition": "closed", "split": "train", "question": "How should I scope a session cookie to the issuing host alone?", "answer": "Omit Domain to create a host-only cookie.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: How should I scope a session cookie to the issuing host alone?"} | |
| {"model": "cybermodels-web-defense", "id": "9b190462e516a02d", "passage": "set-cookie", "condition": "rag", "split": "train", "question": "How should I scope a session cookie to the issuing host alone?", "answer": "Omit Domain to create a host-only cookie. [Set-Cookie session cookie attributes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie)", "retrieved": ["set-cookie"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nSet-Cookie session cookie attributes\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie\nEditorial summary: Secure restricts cookie transmission to secure channels, with a localhost exception in browsers. HttpOnly prevents script APIs from reading a cookie while the browser can still attach it to eligible requests. SameSite controls cross-site delivery; SameSite=None requires Secure. Omitting Domain makes a cookie host-only.\n\nQuestion: How should I scope a session cookie to the issuing host alone?"} | |
| {"model": "cybermodels-web-defense", "id": "45bd52c2f2c6025f", "passage": "hsts", "condition": "closed", "split": "train", "question": "Can my browser learn HSTS from the site's plain HTTP redirect?", "answer": "Send Strict-Transport-Security on the HTTPS response. Browsers ignore it over plain HTTP.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: Can my browser learn HSTS from the site's plain HTTP redirect?"} | |
| {"model": "cybermodels-web-defense", "id": "45bd52c2f2c6025f", "passage": "hsts", "condition": "rag", "split": "train", "question": "Can my browser learn HSTS from the site's plain HTTP redirect?", "answer": "Send Strict-Transport-Security on the HTTPS response. Browsers ignore it over plain HTTP. [Strict-Transport-Security and HTTPS](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Strict-Transport-Security)", "retrieved": ["hsts", "set-cookie"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nStrict-Transport-Security and HTTPS\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Strict-Transport-Security\nEditorial summary: A browser learns HSTS from a response delivered over HTTPS and remembers the policy for the max-age interval. The includeSubDomains directive extends that policy to subdomains. Verify that the affected subdomains can all serve HTTPS before enabling it. Sending this header over HTTP does not establish the policy.\n\nSet-Cookie session cookie attributes\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie\nEditorial summary: Secure restricts cookie transmission to secure channels, with a localhost exception in browsers. HttpOnly prevents script APIs from reading a cookie while the browser can still attach it to eligible requests. SameSite controls cross-site delivery; SameSite=None requires Secure. Omitting Domain makes a cookie host-only.\n\nQuestion: Can my browser learn HSTS from the site's plain HTTP redirect?"} | |
| {"model": "cybermodels-web-defense", "id": "d7360c33c27e539e", "passage": "hsts", "condition": "closed", "split": "train", "question": "What should we confirm before enabling HSTS includeSubDomains?", "answer": "Confirm that all affected subdomains support HTTPS for the duration of the policy.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: What should we confirm before enabling HSTS includeSubDomains?"} | |
| {"model": "cybermodels-web-defense", "id": "d7360c33c27e539e", "passage": "hsts", "condition": "rag", "split": "train", "question": "What should we confirm before enabling HSTS includeSubDomains?", "answer": "Confirm that all affected subdomains support HTTPS for the duration of the policy. [Strict-Transport-Security and HTTPS](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Strict-Transport-Security)", "retrieved": ["hsts", "cache-control"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nStrict-Transport-Security and HTTPS\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Strict-Transport-Security\nEditorial summary: A browser learns HSTS from a response delivered over HTTPS and remembers the policy for the max-age interval. The includeSubDomains directive extends that policy to subdomains. Verify that the affected subdomains can all serve HTTPS before enabling it. Sending this header over HTTP does not establish the policy.\n\nCache-Control storage and revalidation\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control\nEditorial summary: The no-store response directive asks caches to avoid storing the response. With no-cache, storage is allowed but the cache must validate before reuse. The private directive confines storage to private caches. Changing a policy on a new response does not itself purge an earlier response from every cache.\n\nQuestion: What should we confirm before enabling HSTS includeSubDomains?"} | |
| {"model": "cybermodels-web-defense", "id": "84eab7041f0b5643", "passage": "hsts", "condition": "closed", "split": "train", "question": "What determines how long a browser remembers an HSTS policy?", "answer": "The max-age directive sets the policy lifetime in seconds.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: What determines how long a browser remembers an HSTS policy?"} | |
| {"model": "cybermodels-web-defense", "id": "84eab7041f0b5643", "passage": "hsts", "condition": "rag", "split": "train", "question": "What determines how long a browser remembers an HSTS policy?", "answer": "The max-age directive sets the policy lifetime in seconds. [Strict-Transport-Security and HTTPS](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Strict-Transport-Security)", "retrieved": ["hsts", "referrer-policy"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nStrict-Transport-Security and HTTPS\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Strict-Transport-Security\nEditorial summary: A browser learns HSTS from a response delivered over HTTPS and remembers the policy for the max-age interval. The includeSubDomains directive extends that policy to subdomains. Verify that the affected subdomains can all serve HTTPS before enabling it. Sending this header over HTTP does not establish the policy.\n\nReferrer-Policy on outbound requests\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Referrer-Policy\nEditorial summary: A no-referrer policy omits the Referer header. Under strict-origin-when-cross-origin, same-origin requests can carry a fuller referrer, eligible cross-origin requests carry only the origin, and downgrades from HTTPS to HTTP omit it. Referrer policy governs this header and does not remove secrets already embedded in destination URLs.\n\nQuestion: What determines how long a browser remembers an HSTS policy?"} | |
| {"model": "cybermodels-web-defense", "id": "2df3c4cbd672f6d0", "passage": "frame-ancestors", "condition": "closed", "split": "train", "question": "What HTTP policy stops any parent from framing my page?", "answer": "Send Content-Security-Policy with frame-ancestors 'none' on the response.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: What HTTP policy stops any parent from framing my page?"} | |
| {"model": "cybermodels-web-defense", "id": "2df3c4cbd672f6d0", "passage": "frame-ancestors", "condition": "rag", "split": "train", "question": "What HTTP policy stops any parent from framing my page?", "answer": "Send Content-Security-Policy with frame-ancestors 'none' on the response. [Content-Security-Policy frame-ancestors](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/frame-ancestors)", "retrieved": ["frame-ancestors", "hsts"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nContent-Security-Policy frame-ancestors\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/frame-ancestors\nEditorial summary: The frame-ancestors directive controls which parents may embed a page. A policy of 'none' excludes all ancestors. The directive is delivered as an HTTP response header, and it has no default-src fallback. frame-src deals with the frames the page itself may load.\n\nStrict-Transport-Security and HTTPS\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Strict-Transport-Security\nEditorial summary: A browser learns HSTS from a response delivered over HTTPS and remembers the policy for the max-age interval. The includeSubDomains directive extends that policy to subdomains. Verify that the affected subdomains can all serve HTTPS before enabling it. Sending this header over HTTP does not establish the policy.\n\nQuestion: What HTTP policy stops any parent from framing my page?"} | |
| {"model": "cybermodels-web-defense", "id": "6576d7968380d019", "passage": "frame-ancestors", "condition": "closed", "split": "train", "question": "Does default-src 'none' automatically set frame-ancestors?", "answer": "No. Specify frame-ancestors explicitly.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: Does default-src 'none' automatically set frame-ancestors?"} | |
| {"model": "cybermodels-web-defense", "id": "6576d7968380d019", "passage": "frame-ancestors", "condition": "rag", "split": "train", "question": "Does default-src 'none' automatically set frame-ancestors?", "answer": "No. Specify frame-ancestors explicitly. [Content-Security-Policy frame-ancestors](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/frame-ancestors)", "retrieved": ["frame-ancestors", "set-cookie"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nContent-Security-Policy frame-ancestors\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/frame-ancestors\nEditorial summary: The frame-ancestors directive controls which parents may embed a page. A policy of 'none' excludes all ancestors. The directive is delivered as an HTTP response header, and it has no default-src fallback. frame-src deals with the frames the page itself may load.\n\nSet-Cookie session cookie attributes\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie\nEditorial summary: Secure restricts cookie transmission to secure channels, with a localhost exception in browsers. HttpOnly prevents script APIs from reading a cookie while the browser can still attach it to eligible requests. SameSite controls cross-site delivery; SameSite=None requires Secure. Omitting Domain makes a cookie host-only.\n\nQuestion: Does default-src 'none' automatically set frame-ancestors?"} | |
| {"model": "cybermodels-web-defense", "id": "b69192a2803f0aee", "passage": "frame-ancestors", "condition": "closed", "split": "train", "question": "Should the page restrict who can embed it with frame-src or frame-ancestors?", "answer": "Use frame-ancestors for parents that embed the page. frame-src controls frames loaded by the page.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: Should the page restrict who can embed it with frame-src or frame-ancestors?"} | |
| {"model": "cybermodels-web-defense", "id": "b69192a2803f0aee", "passage": "frame-ancestors", "condition": "rag", "split": "train", "question": "Should the page restrict who can embed it with frame-src or frame-ancestors?", "answer": "Use frame-ancestors for parents that embed the page. frame-src controls frames loaded by the page. [Content-Security-Policy frame-ancestors](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/frame-ancestors)", "retrieved": ["frame-ancestors", "set-cookie"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nContent-Security-Policy frame-ancestors\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/frame-ancestors\nEditorial summary: The frame-ancestors directive controls which parents may embed a page. A policy of 'none' excludes all ancestors. The directive is delivered as an HTTP response header, and it has no default-src fallback. frame-src deals with the frames the page itself may load.\n\nSet-Cookie session cookie attributes\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie\nEditorial summary: Secure restricts cookie transmission to secure channels, with a localhost exception in browsers. HttpOnly prevents script APIs from reading a cookie while the browser can still attach it to eligible requests. SameSite controls cross-site delivery; SameSite=None requires Secure. Omitting Domain makes a cookie host-only.\n\nQuestion: Should the page restrict who can embed it with frame-src or frame-ancestors?"} | |
| {"model": "cybermodels-web-defense", "id": "c082f5f794612660", "passage": "referrer-policy", "condition": "closed", "split": "train", "question": "How do I omit the Referer header on outbound requests?", "answer": "Send Referrer-Policy: no-referrer.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: How do I omit the Referer header on outbound requests?"} | |
| {"model": "cybermodels-web-defense", "id": "c082f5f794612660", "passage": "referrer-policy", "condition": "rag", "split": "train", "question": "How do I omit the Referer header on outbound requests?", "answer": "Send Referrer-Policy: no-referrer. [Referrer-Policy on outbound requests](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Referrer-Policy)", "retrieved": ["referrer-policy", "set-cookie"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nReferrer-Policy on outbound requests\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Referrer-Policy\nEditorial summary: A no-referrer policy omits the Referer header. Under strict-origin-when-cross-origin, same-origin requests can carry a fuller referrer, eligible cross-origin requests carry only the origin, and downgrades from HTTPS to HTTP omit it. Referrer policy governs this header and does not remove secrets already embedded in destination URLs.\n\nSet-Cookie session cookie attributes\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie\nEditorial summary: Secure restricts cookie transmission to secure channels, with a localhost exception in browsers. HttpOnly prevents script APIs from reading a cookie while the browser can still attach it to eligible requests. SameSite controls cross-site delivery; SameSite=None requires Secure. Omitting Domain makes a cookie host-only.\n\nQuestion: How do I omit the Referer header on outbound requests?"} | |
| {"model": "cybermodels-web-defense", "id": "b45c2fda4c92bf53", "passage": "referrer-policy", "condition": "closed", "split": "train", "question": "With strict-origin-when-cross-origin, what reaches another HTTPS origin?", "answer": "Only the origin is sent as the referrer.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: With strict-origin-when-cross-origin, what reaches another HTTPS origin?"} | |
| {"model": "cybermodels-web-defense", "id": "b45c2fda4c92bf53", "passage": "referrer-policy", "condition": "rag", "split": "train", "question": "With strict-origin-when-cross-origin, what reaches another HTTPS origin?", "answer": "Only the origin is sent as the referrer. [Referrer-Policy on outbound requests](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Referrer-Policy)", "retrieved": ["referrer-policy", "hsts"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nReferrer-Policy on outbound requests\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Referrer-Policy\nEditorial summary: A no-referrer policy omits the Referer header. Under strict-origin-when-cross-origin, same-origin requests can carry a fuller referrer, eligible cross-origin requests carry only the origin, and downgrades from HTTPS to HTTP omit it. Referrer policy governs this header and does not remove secrets already embedded in destination URLs.\n\nStrict-Transport-Security and HTTPS\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Strict-Transport-Security\nEditorial summary: A browser learns HSTS from a response delivered over HTTPS and remembers the policy for the max-age interval. The includeSubDomains directive extends that policy to subdomains. Verify that the affected subdomains can all serve HTTPS before enabling it. Sending this header over HTTP does not establish the policy.\n\nQuestion: With strict-origin-when-cross-origin, what reaches another HTTPS origin?"} | |
| {"model": "cybermodels-web-defense", "id": "8bcfad68db2cc41e", "passage": "referrer-policy", "condition": "closed", "split": "train", "question": "With strict-origin-when-cross-origin, does an HTTPS page send a referrer on a downgrade to HTTP?", "answer": "No. A downgrade from HTTPS to HTTP omits the referrer.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: With strict-origin-when-cross-origin, does an HTTPS page send a referrer on a downgrade to HTTP?"} | |
| {"model": "cybermodels-web-defense", "id": "8bcfad68db2cc41e", "passage": "referrer-policy", "condition": "rag", "split": "train", "question": "With strict-origin-when-cross-origin, does an HTTPS page send a referrer on a downgrade to HTTP?", "answer": "No. A downgrade from HTTPS to HTTP omits the referrer. [Referrer-Policy on outbound requests](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Referrer-Policy)", "retrieved": ["referrer-policy", "frame-ancestors"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nReferrer-Policy on outbound requests\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Referrer-Policy\nEditorial summary: A no-referrer policy omits the Referer header. Under strict-origin-when-cross-origin, same-origin requests can carry a fuller referrer, eligible cross-origin requests carry only the origin, and downgrades from HTTPS to HTTP omit it. Referrer policy governs this header and does not remove secrets already embedded in destination URLs.\n\nContent-Security-Policy frame-ancestors\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/frame-ancestors\nEditorial summary: The frame-ancestors directive controls which parents may embed a page. A policy of 'none' excludes all ancestors. The directive is delivered as an HTTP response header, and it has no default-src fallback. frame-src deals with the frames the page itself may load.\n\nQuestion: With strict-origin-when-cross-origin, does an HTTPS page send a referrer on a downgrade to HTTP?"} | |
| {"model": "cybermodels-web-defense", "id": "0c3231f5f52ee34f", "passage": "nosniff", "condition": "closed", "split": "train", "question": "A stylesheet stopped loading with nosniff. Which response metadata should we check?", "answer": "Check Content-Type on the actual asset response. A stylesheet must be served as text/css.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: A stylesheet stopped loading with nosniff. Which response metadata should we check?"} | |
| {"model": "cybermodels-web-defense", "id": "0c3231f5f52ee34f", "passage": "nosniff", "condition": "rag", "split": "train", "question": "A stylesheet stopped loading with nosniff. Which response metadata should we check?", "answer": "Check Content-Type on the actual asset response. A stylesheet must be served as text/css. [X-Content-Type-Options nosniff and MIME types](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Content-Type-Options)", "retrieved": ["nosniff", "frame-ancestors"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nX-Content-Type-Options nosniff and MIME types\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Content-Type-Options\nEditorial summary: Send an accurate Content-Type with X-Content-Type-Options: nosniff. Browsers enforce MIME checks for script and style destinations. For example, a stylesheet response must use text/css. Applying nosniff can expose an existing server misconfiguration when an asset has the wrong declared MIME type.\n\nContent-Security-Policy frame-ancestors\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/frame-ancestors\nEditorial summary: The frame-ancestors directive controls which parents may embed a page. A policy of 'none' excludes all ancestors. The directive is delivered as an HTTP response header, and it has no default-src fallback. frame-src deals with the frames the page itself may load.\n\nQuestion: A stylesheet stopped loading with nosniff. Which response metadata should we check?"} | |
| {"model": "cybermodels-web-defense", "id": "573a2bb0dd1e0226", "passage": "nosniff", "condition": "closed", "split": "train", "question": "Can nosniff compensate for omitting the correct MIME type on JavaScript?", "answer": "Provide an appropriate JavaScript MIME type. nosniff enforces the declared type for script requests.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: Can nosniff compensate for omitting the correct MIME type on JavaScript?"} | |
| {"model": "cybermodels-web-defense", "id": "573a2bb0dd1e0226", "passage": "nosniff", "condition": "rag", "split": "train", "question": "Can nosniff compensate for omitting the correct MIME type on JavaScript?", "answer": "Provide an appropriate JavaScript MIME type. nosniff enforces the declared type for script requests. [X-Content-Type-Options nosniff and MIME types](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Content-Type-Options)", "retrieved": ["nosniff", "referrer-policy"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nX-Content-Type-Options nosniff and MIME types\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Content-Type-Options\nEditorial summary: Send an accurate Content-Type with X-Content-Type-Options: nosniff. Browsers enforce MIME checks for script and style destinations. For example, a stylesheet response must use text/css. Applying nosniff can expose an existing server misconfiguration when an asset has the wrong declared MIME type.\n\nReferrer-Policy on outbound requests\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Referrer-Policy\nEditorial summary: A no-referrer policy omits the Referer header. Under strict-origin-when-cross-origin, same-origin requests can carry a fuller referrer, eligible cross-origin requests carry only the origin, and downgrades from HTTPS to HTTP omit it. Referrer policy governs this header and does not remove secrets already embedded in destination URLs.\n\nQuestion: Can nosniff compensate for omitting the correct MIME type on JavaScript?"} | |
| {"model": "cybermodels-web-defense", "id": "e3c1a6010d9bc875", "passage": "nosniff", "condition": "closed", "split": "train", "question": "Can documentation establish the Content-Type our CDN sent yesterday?", "answer": "Check the captured response or CDN records. Documentation alone cannot establish what that deployment served.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: Can documentation establish the Content-Type our CDN sent yesterday?"} | |
| {"model": "cybermodels-web-defense", "id": "e3c1a6010d9bc875", "passage": "nosniff", "condition": "rag", "split": "train", "question": "Can documentation establish the Content-Type our CDN sent yesterday?", "answer": "Check the captured response or CDN records. Documentation alone cannot establish what that deployment served. [X-Content-Type-Options nosniff and MIME types](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Content-Type-Options)", "retrieved": ["nosniff", "hsts"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nX-Content-Type-Options nosniff and MIME types\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Content-Type-Options\nEditorial summary: Send an accurate Content-Type with X-Content-Type-Options: nosniff. Browsers enforce MIME checks for script and style destinations. For example, a stylesheet response must use text/css. Applying nosniff can expose an existing server misconfiguration when an asset has the wrong declared MIME type.\n\nStrict-Transport-Security and HTTPS\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Strict-Transport-Security\nEditorial summary: A browser learns HSTS from a response delivered over HTTPS and remembers the policy for the max-age interval. The includeSubDomains directive extends that policy to subdomains. Verify that the affected subdomains can all serve HTTPS before enabling it. Sending this header over HTTP does not establish the policy.\n\nQuestion: Can documentation establish the Content-Type our CDN sent yesterday?"} | |