--- super1.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- mdadm-3.2.2.orig/super1.c +++ mdadm-3.2.2/super1.c @@ -843,7 +843,7 @@ static int init_super1(struct supertype char defname[10]; int sbsize; - if (posix_memalign((void**)&sb, 512, (MAX_SB_SIZE + BM_SUPER_SIZE + + if (posix_memalign((void**)&sb, 4096, (MAX_SB_SIZE + BM_SUPER_SIZE + sizeof(struct misc_dev_info))) != 0) { fprintf(stderr, Name ": %s could not allocate superblock\n", __func__); @@ -1226,7 +1226,7 @@ static int compare_super1(struct superty return 1; if (!first) { - if (posix_memalign((void**)&first, 512, + if (posix_memalign((void**)&first, 4096, MAX_SB_SIZE + BM_SUPER_SIZE + sizeof(struct misc_dev_info)) != 0) { fprintf(stderr, Name @@ -1341,7 +1341,7 @@ static int load_super1(struct supertype return 1; } - if (posix_memalign((void**)&super, 512, + if (posix_memalign((void**)&super, 4096, MAX_SB_SIZE + BM_SUPER_SIZE + sizeof(struct misc_dev_info)) != 0) { fprintf(stderr, Name ": %s could not allocate superblock\n",