Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F175195804
D60475.id189066.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
461 B
Referenced Files
None
Subscribers
None
D60475.id189066.diff
View Options
diff --git a/sys/dev/nvmf/controller/nvmft_controller.c b/sys/dev/nvmf/controller/nvmft_controller.c
--- a/sys/dev/nvmf/controller/nvmft_controller.c
+++ b/sys/dev/nvmf/controller/nvmft_controller.c
@@ -563,7 +563,7 @@
numd = le32toh(cmd->cdw10) >> 16 | le32toh(cmd->cdw11) << 16;
offset = le32toh(cmd->cdw12) | (uint64_t)le32toh(cmd->cdw13) << 32;
- if (offset % 3 != 0) {
+ if ((offset & 3) != 0) {
status = NVME_SC_INVALID_FIELD;
goto done;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 10, 12:41 AM (6 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40491361
Default Alt Text
D60475.id189066.diff (461 B)
Attached To
Mode
D60475: nvmft: Correctly validate that the lower 2 bits of a log page offset are 0
Attached
Detach File
Event Timeline
Log In to Comment