Commit d94d1a5
Fix potential use-after-frees in FreeBSD getpages and setattr VOPs
The objset object is reallocated during certain dataset operations, such
as rollbacks, so the objset pointer must be loaded after acquiring the
teardown lock.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@ixsystems.com>
Signed-off-by: Mark Johnston <markj@FreeBSD.org>
Closes openzfs#127041 parent 4bbffa2 commit d94d1a5
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2222 | 2222 | | |
2223 | 2223 | | |
2224 | 2224 | | |
2225 | | - | |
| 2225 | + | |
2226 | 2226 | | |
2227 | 2227 | | |
2228 | 2228 | | |
| |||
2257 | 2257 | | |
2258 | 2258 | | |
2259 | 2259 | | |
| 2260 | + | |
2260 | 2261 | | |
2261 | 2262 | | |
2262 | 2263 | | |
| |||
4058 | 4059 | | |
4059 | 4060 | | |
4060 | 4061 | | |
4061 | | - | |
4062 | 4062 | | |
4063 | 4063 | | |
4064 | 4064 | | |
| |||
4128 | 4128 | | |
4129 | 4129 | | |
4130 | 4130 | | |
4131 | | - | |
4132 | | - | |
| 4131 | + | |
| 4132 | + | |
4133 | 4133 | | |
4134 | 4134 | | |
4135 | 4135 | | |
| |||
0 commit comments