Re: [PATCH] habanalabs: fix debugfs code

2019-05-06 Thread Oded Gabbay
On Mon, May 6, 2019 at 1:15 PM Oded Gabbay wrote: > > On Sat, May 4, 2019 at 4:56 PM Jann Horn wrote: > > > > This fixes multiple things in the habanalabs debugfs code, in particular: > > > > - mmu_write() was unnecessarily verbose, copying around between multiple > >buffers > > -

Re: [PATCH] habanalabs: fix debugfs code

2019-05-06 Thread Oded Gabbay
On Sat, May 4, 2019 at 4:56 PM Jann Horn wrote: > > This fixes multiple things in the habanalabs debugfs code, in particular: > > - mmu_write() was unnecessarily verbose, copying around between multiple >buffers > - mmu_write() could write a user-specified, unbounded amount of userspace >

[PATCH] habanalabs: fix debugfs code

2019-05-04 Thread Jann Horn
This fixes multiple things in the habanalabs debugfs code, in particular: - mmu_write() was unnecessarily verbose, copying around between multiple buffers - mmu_write() could write a user-specified, unbounded amount of userspace memory into a kernel buffer (out-of-bounds write) -