Commit cd9aed6
nvme: catch errors from nvme_configure_metadata()
nvme_configure_metadata() is issuing I/O, so we might incur an I/O
error which will cause the connection to be reset.
But in that case any further probing will race with reset and
cause UAF errors.
So return a status from nvme_configure_metadata() and abort
probing if there was an I/O error.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>1 parent 2344153 commit cd9aed6
1 file changed
+13
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1814 | 1814 | | |
1815 | 1815 | | |
1816 | 1816 | | |
1817 | | - | |
| 1817 | + | |
1818 | 1818 | | |
1819 | 1819 | | |
| 1820 | + | |
1820 | 1821 | | |
1821 | | - | |
1822 | | - | |
| 1822 | + | |
| 1823 | + | |
| 1824 | + | |
1823 | 1825 | | |
1824 | 1826 | | |
1825 | 1827 | | |
1826 | | - | |
| 1828 | + | |
1827 | 1829 | | |
1828 | 1830 | | |
1829 | 1831 | | |
| |||
1832 | 1834 | | |
1833 | 1835 | | |
1834 | 1836 | | |
1835 | | - | |
| 1837 | + | |
1836 | 1838 | | |
1837 | 1839 | | |
1838 | 1840 | | |
| |||
1859 | 1861 | | |
1860 | 1862 | | |
1861 | 1863 | | |
| 1864 | + | |
1862 | 1865 | | |
1863 | 1866 | | |
1864 | 1867 | | |
| |||
2032 | 2035 | | |
2033 | 2036 | | |
2034 | 2037 | | |
2035 | | - | |
| 2038 | + | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
2036 | 2043 | | |
2037 | 2044 | | |
2038 | 2045 | | |
| |||
0 commit comments