Commit 060ac36
committed
collect: capture the iSCSI transport class for replay
/sys/class/iscsi_transport/<name>/handle is the address of the
registering driver's static struct iscsi_transport (CVE-2021-27363), and
sysfs_iscsi_transport_handle reads it by enumerating the class. Nothing
captured it, so no fixture could reach that leak and the component was
exercised only by its unit test.
grab_tree cannot capture it: /sys/class/<class>/<name> is a symlink into
/sys/devices, and the walk does not follow links — pointed at
/sys/class/net it finds no files at all where a link-following walk finds
389. Add grab_class_attr, which resolves each class member and
materialises the named attributes as plain files, the shape the replay
layer opens. Teaching grab_tree to follow links instead would change what
the device-tree and firmware-memmap captures pull in, where a link-
following walk risks large or cyclic expansions.
The class directory is recorded even when it holds no members: a
registered transport class with nothing in it is a different state from
an absent one, and the component distinguishes them.
Bump version to 2.1 parent d177fee commit 060ac36
1 file changed
Lines changed: 35 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
177 | 205 | | |
178 | 206 | | |
179 | 207 | | |
| |||
242 | 270 | | |
243 | 271 | | |
244 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
245 | 279 | | |
246 | 280 | | |
247 | 281 | | |
| |||
0 commit comments