Re: [PATCH UPDATE] deflate stack usage in lib/inflate.c

Chuck Ebbert
2007-04-12T23:06:35Z

Jeremy Fitzhardinge wrote:
> Andi Kleen wrote:
>>> (This was under Xen, but there's no reason it couldn't happen on bare
>>> hardware.)
>>>
>> Hmm, does Xen perhaps not use interrupt stacks?
>
> Looks like that's all done in do_IRQ, so it should be independent of
> whether its Xen or not. And the stack overflow check is performed on
> the main stack, before switching to the interrupt stack.
>

Yeah, the do_IRQ thing is misleading because it makes you think the
interrupt caused an overflow when all it did was detect a
near-overflow condition. (The number printed is the amount of space
left.)