[dm-devel] limits->max_sectors is getting set to 0, why/where? [was: Re: dm: kernel oops by divide error on v4.16+]

Linus Torvalds torvalds at linux-foundation.org
Mon Apr 9 23:54:02 UTC 2018


On Mon, Apr 9, 2018 at 3:32 PM, Jens Axboe <axboe at kernel.dk> wrote:
>
> The resulting min/max and friends would have been trivial to test, but
> clearly they weren't.

Well, the min/max macros themselves actually were tested in user space by me.

It was the interaction with the unrelated "min_not_zero()" that wasn't ;)

It's easy in hind-sight to say "that's not at all unrelated", but
within the context of doing min/max, it was.

              Linus




More information about the dm-devel mailing list