Commit beab78f
fix[DFS][littlefs]: validate directory seek and cross-mount rename
reject cross-mount dentry rename with -EXDEV before using the old mount context
validate directory lseek offsets before converting them to littlefs directory positions
return -EINVAL for negative or non-dirent-aligned directory offsets1 parent f314ef9 commit beab78f
1 file changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1134 | 1134 | | |
1135 | 1135 | | |
1136 | 1136 | | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
1137 | 1147 | | |
1138 | | - | |
1139 | | - | |
| 1148 | + | |
| 1149 | + | |
1140 | 1150 | | |
1141 | 1151 | | |
1142 | 1152 | | |
| |||
1251 | 1261 | | |
1252 | 1262 | | |
1253 | 1263 | | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
1254 | 1270 | | |
1255 | 1271 | | |
1256 | 1272 | | |
| |||
0 commit comments