artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a0b8a7
)
Move ccb access before ccb_done to avoid a potential use-after-free
author
jsg
<jsg@openbsd.org>
Tue, 28 May 2024 01:37:53 +0000
(
01:37
+0000)
committer
jsg
<jsg@openbsd.org>
Tue, 28 May 2024 01:37:53 +0000
(
01:37
+0000)
if pages can be freed from interrupt context. ok dlg@
sys/dev/ic/ahci.c
patch
|
blob
|
history
diff --git
a/sys/dev/ic/ahci.c
b/sys/dev/ic/ahci.c
index
225b57e
..
0f7ac5d
100644
(file)
--- a/
sys/dev/ic/ahci.c
+++ b/
sys/dev/ic/ahci.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: ahci.c,v 1.4
0 2024/04/23 13:09:21
jsg Exp $ */
+/* $OpenBSD: ahci.c,v 1.4
1 2024/05/28 01:37:53
jsg Exp $ */
/*
* Copyright (c) 2006 David Gwynne <dlg@openbsd.org>
@@
-2350,9
+2350,9
@@
failall:
sizeof(struct ata_fis_d2h));
}
- ccb->ccb_done(ccb);
-
processed |= 1 << ccb->ccb_slot;
+
+ ccb->ccb_done(ccb);
}
if (need_restart) {