Messages in this thread | | | Date | Mon, 23 Jan 2012 14:28:50 +1100 (EST) | From | James Morris <> | Subject | Re: [GIT] More security subsystem fixes |
| |
On Thu, 19 Jan 2012, Tetsuo Handa wrote:
> mpi_limb_t > mpihelp_divrem(mpi_ptr_t qp, mpi_size_t qextra_limbs, > mpi_ptr_t np, mpi_size_t nsize, mpi_ptr_t dp, mpi_size_t dsize) > { > mpi_limb_t most_significant_q_limb = 0; > > switch (dsize) { > case 0: > /* We are asked to divide by zero, so go ahead and do it! (To make > the compiler not remove this statement, return the value.) */ > return 1 / dsize; > > What's this? Division by 0 in the kernel is no good.
David,
Do you know if this is triggerable from userland?
- James -- James Morris <jmorris@namei.org>
| |