Commit e00c3f7
committed
libceph: replace overzealous BUG_ON in osdmap_apply_incremental()
If the osdmap is (maliciously) corrupted such that the incremental
osdmap epoch is different from what is expected, there is no need to
BUG. Instead, just declare the incremental osdmap to be invalid.
Cc: stable@vger.kernel.org
Reported-by: ziming zhang <ezrakiez@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>1 parent 818156c commit e00c3f7
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1979 | 1979 | | |
1980 | 1980 | | |
1981 | 1981 | | |
1982 | | - | |
1983 | 1982 | | |
1984 | 1983 | | |
1985 | 1984 | | |
1986 | 1985 | | |
| 1986 | + | |
| 1987 | + | |
| 1988 | + | |
1987 | 1989 | | |
1988 | 1990 | | |
1989 | 1991 | | |
| |||
0 commit comments