X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/f427ee49d309d8fc33ebf3042c3a775f2f530ded..c3c9b80d004dbbfdf763edeb97968c6997e3b45b:/osfmk/x86_64/copyio.c diff --git a/osfmk/x86_64/copyio.c b/osfmk/x86_64/copyio.c index 9569ed36c..c262c4067 100644 --- a/osfmk/x86_64/copyio.c +++ b/osfmk/x86_64/copyio.c @@ -206,7 +206,7 @@ copyio(int copy_type, user_addr_t user_addr, char *kernel_addr, * Size of elements in the permanent zone is not saved as a part of the * zone's info */ - if (__improbable(src_zone && !src_zone->permanent && + if (__improbable(src_zone && !src_zone->z_permanent && kernel_buf_size < nbytes)) { panic("copyio: kernel buffer %p has size %lu < nbytes %lu", kernel_addr, kernel_buf_size, nbytes); }