Why is this assertion in __get_vm_area_node?
static struct vm_struct *__get_vm_area_node(...)
{
// ...
BUG_ON(in_interrupt())
// ...
}
Why is this assertion in __get_vm_area_node?
static struct vm_struct *__get_vm_area_node(...)
{
// ...
BUG_ON(in_interrupt())
// ...
}
Copyright © 2021 Jogjafile Inc.
I think the commit that introduced that line explains it pretty well:
In short, the following code in that function could sleep, and sleeping is not allowed in interrupt context. The
BUG_ONis added to prevent this kind of problem.