Commit 9a5d769
committed
Merge tag 'ffa-fixes-6.16' of https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux into arm/fixes
Arm FF-A fixes for v6.16
Couple of fixes to address:
1. The safety and memory issues in the FF-A notification callback handler:
The fixes replaces a mutex with an rwlock to prevent sleeping in atomic
context, resolving kernel warnings. Memory allocation is moved outside
the lock to support this transition safely. Additionally, a memory leak
in the notifier unregistration path is fixed by properly freeing the
callback node.
2. The missing entry in struct ffa_indirect_msg_hdr:
The fix adds the missing 32 bit reserved entry in the structure as
required by the FF-A specification.
* tag 'ffa-fixes-6.16' of https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux:
firmware: arm_ffa: Fix the missing entry in struct ffa_indirect_msg_hdr
firmware: arm_ffa: Replace mutex with rwlock to avoid sleep in atomic context
firmware: arm_ffa: Move memory allocation outside the mutex locking
firmware: arm_ffa: Fix memory leak by freeing notifier callback node
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnd Bergmann <[email protected]>2 files changed
+37
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
1250 | 1250 | | |
1251 | 1251 | | |
1252 | 1252 | | |
1253 | | - | |
1254 | | - | |
1255 | | - | |
| 1253 | + | |
| 1254 | + | |
1256 | 1255 | | |
1257 | 1256 | | |
1258 | 1257 | | |
1259 | | - | |
| 1258 | + | |
1260 | 1259 | | |
1261 | 1260 | | |
1262 | 1261 | | |
| |||
1270 | 1269 | | |
1271 | 1270 | | |
1272 | 1271 | | |
1273 | | - | |
1274 | | - | |
1275 | | - | |
1276 | | - | |
1277 | | - | |
1278 | | - | |
1279 | | - | |
1280 | | - | |
1281 | | - | |
1282 | | - | |
1283 | | - | |
1284 | | - | |
| 1272 | + | |
1285 | 1273 | | |
1286 | 1274 | | |
| 1275 | + | |
1287 | 1276 | | |
1288 | 1277 | | |
1289 | 1278 | | |
| |||
1300 | 1289 | | |
1301 | 1290 | | |
1302 | 1291 | | |
1303 | | - | |
| 1292 | + | |
1304 | 1293 | | |
1305 | | - | |
1306 | | - | |
| 1294 | + | |
1307 | 1295 | | |
1308 | 1296 | | |
1309 | | - | |
| 1297 | + | |
1310 | 1298 | | |
1311 | 1299 | | |
1312 | 1300 | | |
1313 | 1301 | | |
1314 | 1302 | | |
1315 | 1303 | | |
1316 | | - | |
| 1304 | + | |
1317 | 1305 | | |
1318 | 1306 | | |
1319 | 1307 | | |
| |||
1334 | 1322 | | |
1335 | 1323 | | |
1336 | 1324 | | |
| 1325 | + | |
1337 | 1326 | | |
1338 | 1327 | | |
1339 | 1328 | | |
1340 | 1329 | | |
1341 | 1330 | | |
1342 | 1331 | | |
1343 | 1332 | | |
1344 | | - | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
1345 | 1345 | | |
1346 | 1346 | | |
1347 | 1347 | | |
1348 | 1348 | | |
1349 | 1349 | | |
1350 | 1350 | | |
1351 | | - | |
1352 | | - | |
1353 | | - | |
1354 | | - | |
| 1351 | + | |
| 1352 | + | |
1355 | 1353 | | |
1356 | 1354 | | |
1357 | | - | |
1358 | | - | |
| 1355 | + | |
1359 | 1356 | | |
1360 | 1357 | | |
1361 | 1358 | | |
1362 | 1359 | | |
1363 | 1360 | | |
1364 | 1361 | | |
1365 | | - | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
1366 | 1367 | | |
1367 | 1368 | | |
1368 | 1369 | | |
| |||
1406 | 1407 | | |
1407 | 1408 | | |
1408 | 1409 | | |
1409 | | - | |
| 1410 | + | |
1410 | 1411 | | |
1411 | | - | |
| 1412 | + | |
1412 | 1413 | | |
1413 | 1414 | | |
1414 | 1415 | | |
| |||
1446 | 1447 | | |
1447 | 1448 | | |
1448 | 1449 | | |
1449 | | - | |
| 1450 | + | |
1450 | 1451 | | |
1451 | | - | |
| 1452 | + | |
1452 | 1453 | | |
1453 | 1454 | | |
1454 | 1455 | | |
| |||
1973 | 1974 | | |
1974 | 1975 | | |
1975 | 1976 | | |
1976 | | - | |
| 1977 | + | |
1977 | 1978 | | |
1978 | 1979 | | |
1979 | 1980 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| 286 | + | |
286 | 287 | | |
287 | 288 | | |
288 | 289 | | |
| |||
0 commit comments