[BUG] mm/vmalloc: ___might_sleep is called under a spinlock in __purge_vmap_area_lazy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The ___might_sleep is called under a spinlock, and the function call graph is:
__purge_vmap_area_lazy (acquire the spinlock)
  cond_resched_lock
    ___might_sleep

In this situation, ___might_sleep may prints error log message because a spinlock is held.
A possible fix is to remove ___might_sleep in cond_resched_lock.

This bug is found by my static analysis tool and my code review.


Thanks,
Jia-Ju Bai

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]
  Powered by Linux