Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144389295
D12272.id32811.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
703 B
Referenced Files
None
Subscribers
None
D12272.id32811.diff
View Options
Index: sys/geom/eli/g_eli_integrity.c
===================================================================
--- sys/geom/eli/g_eli_integrity.c
+++ 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
Mon, Feb 9, 4:45 AM (2 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28539232
Default Alt Text
D12272.id32811.diff (703 B)
Attached To
Mode
D12272: Fix information leak in geli(8) integrity mode
Attached
Detach File
Event Timeline
Log In to Comment