Commit 0ec5b3b
Kent Overstreet
bcachefs: Fix shift-by-64 in bformat_needs_redo()
Ancient versions of bcachefs produced packed formats that could
represent keys that our in memory format cannot represent;
bformat_needs_redo() has some tricky shifts to check for this sort of
overflow.
Reported-by: [email protected]
Signed-off-by: Kent Overstreet <[email protected]>1 parent 2bb9600 commit 0ec5b3b
1 file changed
+14
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
968 | 968 | | |
969 | 969 | | |
970 | 970 | | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
971 | 976 | | |
972 | 977 | | |
973 | | - | |
974 | | - | |
975 | | - | |
| 978 | + | |
| 979 | + | |
976 | 980 | | |
977 | 981 | | |
978 | 982 | | |
979 | 983 | | |
980 | | - | |
| 984 | + | |
981 | 985 | | |
982 | 986 | | |
983 | | - | |
| 987 | + | |
984 | 988 | | |
985 | 989 | | |
986 | | - | |
987 | | - | |
988 | | - | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
989 | 995 | | |
990 | 996 | | |
991 | 997 | | |
| |||
0 commit comments