Re: [GIT] More security subsystem fixes

From: James Morris
Date: Sun Jan 22 2012 - 22:29:03 EST


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@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/