Commit 3e00974
scsi: sg: fixup infoleak when using SG_GET_REQUEST_TABLE
When calling SG_GET_REQUEST_TABLE ioctl only a half-filled table is
returned; the remaining part will then contain stale kernel memory
information. This patch zeroes out the entire table to avoid this
issue.
Signed-off-by: Hannes Reinecke <[email protected]>
Reviewed-by: Bart Van Assche <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>1 parent 4759df9 commit 3e00974
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
839 | 839 | | |
840 | 840 | | |
841 | 841 | | |
842 | | - | |
843 | 842 | | |
844 | 843 | | |
845 | 844 | | |
| |||
1047 | 1046 | | |
1048 | 1047 | | |
1049 | 1048 | | |
1050 | | - | |
1051 | | - | |
| 1049 | + | |
| 1050 | + | |
1052 | 1051 | | |
1053 | 1052 | | |
1054 | 1053 | | |
| |||
0 commit comments