Re: KASSERT in exec_elf.c for DYN executable when p_align==0

2018-03-17 Thread Christos Zoulas
In article <20180317225722.GA1538@neva>, Alexander Nasonov wrote: >Coverity (CID 1427746) complains about a division by zero when >align is 0 in all PT_LOAD headers. > >I tried reproducing the problem but the code in question is inside >'if (offset < epp->ep_vm_minaddr)' and it

Re: KASSERT in exec_elf.c for DYN executable when p_align==0

2018-03-17 Thread Alexander Nasonov
Alexander Nasonov wrote: > Steps to reproduce (on amd64 compiled with MKPIE=yes): > > bvi -s 0x0e2 /bin/echo # change 20 to 00 > bvi -s 0x11a /bin/echo # change 20 to 00 > > /bin/echo # boom! > > I would be nice to perform sanity checks of tainted executable > instead of panicing. Attached is

KASSERT in exec_elf.c for DYN executable when p_align==0

2018-03-17 Thread Alexander Nasonov
Coverity (CID 1427746) complains about a division by zero when align is 0 in all PT_LOAD headers. I tried reproducing the problem but the code in question is inside 'if (offset < epp->ep_vm_minaddr)' and it isn't easily reproducable. However, I hit KASSERT panic: "(offset & (align - 1)) == 0"

Re: fallocate for FFS anyone working on this ?

2018-03-17 Thread David Holland
On Sat, Mar 17, 2018 at 01:16:38PM +0530, Manas Mangaonkar wrote: > I am a computer Engineering Sophomore year student and want to work on > this(not as a part of GSOC or anything else) Is anyone else working on > this,If no can you point to some resources that will help me get started.I >

fallocate for FFS anyone working on this ?

2018-03-17 Thread Manas Mangaonkar
Hey, I am a computer Engineering Sophomore year student and want to work on this(not as a part of GSOC or anything else) Is anyone else working on this,If no can you point to some resources that will help me get started.I want to begin coding asap. Familiar with Unix