Commit 4bdabd5
cramfs: Verify inode mode when loading from disk
[ Upstream commit 7f9d34b ]
The inode mode loaded from corrupted disk can be invalid. Do like what
commit 0a9e740 ("isofs: Verify inode mode when loading from disk")
does.
Reported-by: syzbot <[email protected]>
Closes: https://syzkaller.appspot.com/bug?extid=895c23f6917da440ed0d
Signed-off-by: Tetsuo Handa <[email protected]>
Link: https://lore.kernel.org/[email protected]
Acked-by: Nicolas Pitre <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>1 parent a058553 commit 4bdabd5
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
121 | 124 | | |
122 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
123 | 132 | | |
124 | 133 | | |
125 | 134 | | |
| |||
0 commit comments