sg driver

About this tag
The sg driver tag on WindowsForum.com covers discussions about the Linux SCSI generic (sg) driver, including kernel patches and security vulnerabilities. A recent thread highlights a fix for CVE-2025-40259, a bug where the sg_finish_rem_req function could cause a kernel oops by calling blk_rq_unmap_user in an atomic context. The patch resolves this by ensuring the call is made with interrupts enabled. This tag is relevant for Linux system administrators, kernel developers, and IT professionals interested in storage driver stability and security updates.
  1. Linux SG Driver Patch Fixes Atomic Context Sleep Bug CVE-2025-40259

    A short, targeted kernel fix landed this week that closes a subtle but real correctness bug in the SCSI generic driver (sg): the function responsible for finishing a removed request, sg_finish_rem_req, was calling blk_rq_unmap_user while interrupts were disabled — and blk_rq_unmap_user can...