Herbert Valerio Riedel wrote:
> well, I've put one patch together (it still needs (constructive)
> auditing though! jari?) here it is (it's against 2.4.16's loop.[ch])
I have attached my version of loop.c bug fixes. These are extracted from
loop-AES and are well tested.
- IV computed in 512 byte units.
- Make device backed loop work with swap by pre-allocating pages.
- External encryption module locking bug fixed (from Ingo Rohloff).
- Get rid of the loop_get_bs() crap.
- grab_cache_page() return value handled properly, avoids Oops.
- No more illegal messing with BH_Dirty flag.
- No more illegal sleeping in generic_make_request().
- Loops can be set-up properly when root partition is still mounted ro.
- Default soft block size is set properly for file backed loops.
- kmalloc() error case handled properly.
Regards,
Jari Ruusu <jari.ruusu@pp.inet.fi>
--------------B7E7A619D6A837592C47DE5F
Content-Type: application/x-gzip;
name="loop-fixes-2.4.17-pre2.diff.gz"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="loop-fixes-2.4.17-pre2.diff.gz"
H4sICKuACzwCA2xvb3AtZml4ZXMtMi40LjE3LXByZTIuZGlmZgC8XHl32za2/1v+FEh76moh
LVG2EztO/OIkTurWS8ZZZt7k5fFQEmRxJJEyF0tq4+8+dwFJkCJlO2mbnloiAVwA91787gJA
A3c4FGYcnIuJ68ULs7u1s2U9MWeB7LYHgXsjg7Ddm/j9cXvi+7OtPlcrLdowTfOeVGpvAlec
+zeiuy2s3aednafbO6Lb6VgbrVZrTRe1M98Tr2VfCGq3vf90Z5/bvXghzJ1947FowV9rV7x4
sSFEUwgxC/zeRE6F0/Nv5JY49vrBcha5QGfqD+KJDEU0ciIRh3IgIl8EcrIUUBiNpPAnAxH2
R3IqFa1w5Mfw7j9xGIm+M5kI89C1p85s5npX5mEPvtUbSATK+vHEiSSRmY2WoQuvBM1EkfLi
aU8GWxst0cT/xckn4YbC8+di5oQ4FicU9V2rK3rLSDZEKPuRH+itxK8O8PAyjsNYPPsPfN8K
8PuL2WzL9WS0NXQPDXHmLIW1pzirejpeRDLwYDiyyAqB44OpiF58JYbuQg64pxPvyheX/mji
g648C/jLC9fbiuLp1k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lgSOA1eOcZXezm
dJFSOBgOWd8ISlWxglqXNlIyJoGNcvgtXremJQTRmk53j9h0keP0QbM35zUVEETniSLR82j2
VbiecJxD4HpeI4gu/FxCEO3KQ7eeIoiGteIlOCPkZ1w8TsP7O8gpL78cxSESrr0VBsIENa7l
EkDici5tXGmsdqEAbEM3Ccgj1tbi4Mwo4FsC9uZhEc0sckBFTbETMxROCbBngg50jEZDoIOy
TWq6pQIxEwo/B20WM5eYMck4zYY+lCJxvBdDjjW3J+4ZKjsJhB8yh+GqmlsyQ3WVt09Tm4Jk
BGb7/KrANKNBF5tKFloypy3eFFnuVm2tlcu5LaTC2NsRSADeXyA5OCfTSM1v0QyKhIl5+HuU
QAaXBN2YzqOZsuAPJCsn9++6yHnsvrPJ9Ru3bw2vzs7DTjto4nFTPaexPe71rqCxkdM4Ou2c
fWq2TtWmJ8WfS61NtRfBL1nPacWfg+ZZR0g/zRPCIpbrECM3kuiGmvIyDLd+ARM5am2RXgAA
--------------B7E7A619D6A837592C47DE5F--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/