Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F98844211
D27731.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
532 B
Referenced Files
None
Subscribers
None
D27731.diff
View Options
Index: sys/ufs/ffs/ffs_snapshot.c
===================================================================
--- sys/ufs/ffs/ffs_snapshot.c
+++ sys/ufs/ffs/ffs_snapshot.c
@@ -385,8 +385,8 @@
* touch up the few cylinder groups that changed during
* the suspension period.
*/
- len = howmany(fs->fs_ncg, NBBY);
- space = malloc(len, M_DEVBUF, M_WAITOK|M_ZERO);
+ len = roundup2(howmany(fs->fs_ncg, NBBY), sizeof(int));
+ space = malloc(len, M_DEVBUF, M_WAITOK | M_ZERO);
UFS_LOCK(ump);
fs->fs_active = space;
UFS_UNLOCK(ump);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 5, 11:16 PM (21 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13686124
Default Alt Text
D27731.diff (532 B)
Attached To
Mode
D27731: ffs: Avoid out-of-bounds accesses in the fs_active bitmap
Attached
Detach File
Event Timeline
Log In to Comment