Commit 86af6b9
drm/i915/fb: Fix the set_tiling vs. addfb race, again
intel_frontbuffer_get() is what locks out subsequent set_tiling
changes to the bo. Thus the fence vs. modifier check must be done
after intel_frontbuffer_get(), or else a concurrent set_tiling ioctl
might sneak in and change the fence after the check has been done.
Close the race again. See commit dd68928 ("drm/i915: Prevent
concurrent tiling/framebuffer modifications") for the previous
instance.
v2: Reorder intel_user_framebuffer_destroy() to match the unwind (Jani)
Cc: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Fixes: 10690b8 ("drm/i915/display: Add intel_fb_bo_framebuffer_fini")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20251003145734.7634-3-ville.syrjala@linux.intel.com
(cherry picked from commit 1d1e4ded216017f8febd91332ee337f0e0e79285)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>1 parent 760039c commit 86af6b9
1 file changed
+20
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2113 | 2113 | | |
2114 | 2114 | | |
2115 | 2115 | | |
2116 | | - | |
2117 | | - | |
2118 | 2116 | | |
2119 | 2117 | | |
| 2118 | + | |
| 2119 | + | |
2120 | 2120 | | |
2121 | 2121 | | |
2122 | 2122 | | |
| |||
2218 | 2218 | | |
2219 | 2219 | | |
2220 | 2220 | | |
| 2221 | + | |
| 2222 | + | |
| 2223 | + | |
| 2224 | + | |
| 2225 | + | |
| 2226 | + | |
| 2227 | + | |
| 2228 | + | |
2221 | 2229 | | |
2222 | 2230 | | |
2223 | | - | |
2224 | | - | |
2225 | | - | |
2226 | | - | |
2227 | | - | |
2228 | | - | |
2229 | | - | |
| 2231 | + | |
2230 | 2232 | | |
2231 | 2233 | | |
2232 | 2234 | | |
| |||
2235 | 2237 | | |
2236 | 2238 | | |
2237 | 2239 | | |
2238 | | - | |
| 2240 | + | |
2239 | 2241 | | |
2240 | 2242 | | |
2241 | 2243 | | |
| |||
2246 | 2248 | | |
2247 | 2249 | | |
2248 | 2250 | | |
2249 | | - | |
| 2251 | + | |
2250 | 2252 | | |
2251 | 2253 | | |
2252 | 2254 | | |
2253 | 2255 | | |
2254 | 2256 | | |
2255 | 2257 | | |
2256 | 2258 | | |
2257 | | - | |
| 2259 | + | |
2258 | 2260 | | |
2259 | 2261 | | |
2260 | 2262 | | |
| |||
2264 | 2266 | | |
2265 | 2267 | | |
2266 | 2268 | | |
2267 | | - | |
| 2269 | + | |
2268 | 2270 | | |
2269 | 2271 | | |
2270 | 2272 | | |
2271 | 2273 | | |
2272 | 2274 | | |
2273 | 2275 | | |
2274 | 2276 | | |
2275 | | - | |
| 2277 | + | |
2276 | 2278 | | |
2277 | 2279 | | |
2278 | 2280 | | |
| |||
2282 | 2284 | | |
2283 | 2285 | | |
2284 | 2286 | | |
2285 | | - | |
| 2287 | + | |
2286 | 2288 | | |
2287 | 2289 | | |
2288 | 2290 | | |
| |||
2291 | 2293 | | |
2292 | 2294 | | |
2293 | 2295 | | |
2294 | | - | |
| 2296 | + | |
2295 | 2297 | | |
2296 | 2298 | | |
2297 | 2299 | | |
| |||
2317 | 2319 | | |
2318 | 2320 | | |
2319 | 2321 | | |
| 2322 | + | |
| 2323 | + | |
2320 | 2324 | | |
2321 | 2325 | | |
2322 | | - | |
2323 | | - | |
2324 | 2326 | | |
2325 | 2327 | | |
2326 | 2328 | | |
| |||
0 commit comments