Re: Maximum size of mfs in i386

2022-05-03 Thread Yoshihiro Kawamata
So the implementation of W^X in i386 has an impact. Thank you for showing me the cause, it became clear.

Re: Maximum size of mfs in i386

2022-05-03 Thread Theo de Raadt
> What could be the cause? Is there any way to increase the MAXDSIZ to > nearly 3GB? No. Our i386 architecture is a bit special. Since older machines don't have a NX bit, we invented a "line-in-the-sand" scheme using segment limits. In a userland process, this places code below 512MB, and data

Maximum size of mfs in i386

2022-05-03 Thread Yoshihiro Kawamata
I would like some hints regarding the maximum size of mfs. mount_mfs(8) says: Note however that for mount_mfs the practical limit is based on datasize in login.conf(5), and ultimately depends on the per- arch MAXDSIZ limit. So, I searched for the MAXDSIZ value in the source code.