Commit b982df7
committed
Merge tag 'edac_urgent_for_5.6' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras
Pull EDAC fixes from Borislav Petkov:
"Two fixes for use-after-free and memory leaking in the EDAC core, by
Robert Richter.
Debug options like DEBUG_TEST_DRIVER_REMOVE, KASAN and DEBUG_KMEMLEAK
unearthed issues with the lifespan of memory allocated by the EDAC
memory controller descriptor due to misdesigned memory freeing, done
partially by the EDAC core *and* the driver core, which is problematic
to say the least.
These two are minimal fixes to take care of stable - a proper rework
is following which cleans up that mess properly"
* tag 'edac_urgent_for_5.6' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras:
EDAC/sysfs: Remove csrow objects on errors
EDAC/mc: Fix use-after-free and memleaks during device removal2 files changed
Lines changed: 7 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
505 | 505 | | |
506 | 506 | | |
507 | 507 | | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
| 508 | + | |
| 509 | + | |
515 | 510 | | |
516 | | - | |
517 | | - | |
| 511 | + | |
518 | 512 | | |
519 | 513 | | |
520 | 514 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
| 279 | + | |
283 | 280 | | |
284 | 281 | | |
285 | 282 | | |
| |||
447 | 444 | | |
448 | 445 | | |
449 | 446 | | |
450 | | - | |
451 | | - | |
| 447 | + | |
452 | 448 | | |
453 | 449 | | |
454 | 450 | | |
| |||
608 | 604 | | |
609 | 605 | | |
610 | 606 | | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
| 607 | + | |
615 | 608 | | |
616 | 609 | | |
617 | 610 | | |
| |||
893 | 886 | | |
894 | 887 | | |
895 | 888 | | |
896 | | - | |
897 | | - | |
898 | | - | |
899 | | - | |
| 889 | + | |
900 | 890 | | |
901 | 891 | | |
902 | 892 | | |
| |||
0 commit comments