Commit 82aa37c
committed
acpi, nfit: validate ars_status output buffer size
If an ARS Status command returns truncated output, do not process
partial records or otherwise consume non-status fields.
Cc: <stable@vger.kernel.org>
Fixes: 0caeef6 ("libnvdimm: Add a poison list and export badblocks")
Signed-off-by: Dan Williams <dan.j.williams@intel.com>1 parent efda1b5 commit 82aa37c
1 file changed
Lines changed: 17 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
| 150 | + | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
| |||
2002 | 2003 | | |
2003 | 2004 | | |
2004 | 2005 | | |
2005 | | - | |
| 2006 | + | |
2006 | 2007 | | |
2007 | 2008 | | |
| 2009 | + | |
2008 | 2010 | | |
2009 | 2011 | | |
2010 | 2012 | | |
| 2013 | + | |
| 2014 | + | |
| 2015 | + | |
| 2016 | + | |
| 2017 | + | |
| 2018 | + | |
2011 | 2019 | | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
| 2023 | + | |
2012 | 2024 | | |
2013 | 2025 | | |
2014 | 2026 | | |
2015 | 2027 | | |
2016 | 2028 | | |
2017 | 2029 | | |
| 2030 | + | |
| 2031 | + | |
2018 | 2032 | | |
2019 | 2033 | | |
2020 | 2034 | | |
| |||
2267 | 2281 | | |
2268 | 2282 | | |
2269 | 2283 | | |
2270 | | - | |
2271 | | - | |
| 2284 | + | |
2272 | 2285 | | |
2273 | 2286 | | |
2274 | 2287 | | |
| |||
0 commit comments