use DISK_IDENT_SIZE from disk.h so that this doesn't happen again.
g_handleattr: md1 bio_length 24 strlen 31 -> EFAULT
Differential D14962
geom: squash g_attribute kernel message by using correctly sized buffers sbruno on Apr 4 2018, 5:02 PM. Authored by Tags None Referenced Files
Details use DISK_IDENT_SIZE from disk.h so that this doesn't happen again. g_handleattr: md1 bio_length 24 strlen 31 -> EFAULT
Diff Detail
Event TimelineComment Actions So it's OK as it is, but maybe including attribute name will help short-circuit trouble in the future.
Comment Actions While you are here, could you please fix g_label_disk_ident_taste as well? Comment Actions Add g_label_disk_ident_taste() to our list of fixes. Add display of attribute passed into g_handleattr(). |