Commit 9e10b51
scsi: libiscsi: Fix use-after-free race during iscsi_session_teardown
Session attributes exposed through sysfs were freed before the device
was destroyed, resulting in a potential use-after-free. Free these
attributes after removing the device.
Signed-off-by: Khazhismel Kumykov <khazhy@google.com>
Acked-by: Chris Leech <cleech@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent 77082ca commit 9e10b51
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2851 | 2851 | | |
2852 | 2852 | | |
2853 | 2853 | | |
2854 | | - | |
2855 | | - | |
2856 | | - | |
2857 | 2854 | | |
2858 | 2855 | | |
2859 | 2856 | | |
| |||
2863 | 2860 | | |
2864 | 2861 | | |
2865 | 2862 | | |
| 2863 | + | |
| 2864 | + | |
2866 | 2865 | | |
2867 | 2866 | | |
2868 | 2867 | | |
| |||
2877 | 2876 | | |
2878 | 2877 | | |
2879 | 2878 | | |
2880 | | - | |
| 2879 | + | |
| 2880 | + | |
2881 | 2881 | | |
2882 | 2882 | | |
2883 | 2883 | | |
| |||
0 commit comments