Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151265044
D12272.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
718 B
Referenced Files
None
Subscribers
None
D12272.diff
View Options
Index: head/sys/geom/eli/g_eli_integrity.c
===================================================================
--- head/sys/geom/eli/g_eli_integrity.c
+++ head/sys/geom/eli/g_eli_integrity.c
@@ -463,8 +463,16 @@
authkey = (u_char *)p; p += G_ELI_AUTH_SECKEYLEN;
data_secsize = sc->sc_data_per_sector;
- if ((i % lsec) == 0)
+ if ((i % lsec) == 0) {
data_secsize = decr_secsize % data_secsize;
+ /*
+ * Last encrypted sector of each decrypted sector is
+ * only partially filled.
+ */
+ if (bp->bio_cmd == BIO_WRITE)
+ memset(data + sc->sc_alen + data_secsize, 0,
+ encr_secsize - sc->sc_alen - data_secsize);
+ }
if (bp->bio_cmd == BIO_READ) {
/* Remember read HMAC. */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 8, 5:01 AM (6 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31078096
Default Alt Text
D12272.diff (718 B)
Attached To
Mode
D12272: Fix information leak in geli(8) integrity mode
Attached
Detach File
Event Timeline
Log In to Comment