Feature #2717

102: Check that skb doesn't allocated in pm_runtime context

Added by Evgeny Novikov over 5 years ago. Updated about 5 years ago.

Status:OpenStart date:04/05/2012
Priority:NormalDue date:
Assignee:Evgeny Novikov% Done:

0%

Category:-
Target version:-
Published in build:

Description

When netdev_alloc_skb (that calls __netdev_alloc_skb with GFP_ATOMIC flag) is called with obtained pm_runtime (device run-time power management) it leads to sleep in atomic context. We should avoid this.
Model 102_1a will try to fix this.

History

#1 Updated by Evgeny Novikov over 5 years ago

Commit b2f601b of the master branch add a new model, 102_1a, that finds an error from our classifier (commit 431e8d4 of linux-stable branch). Unfortunately CPAchecker doesn't catch this error because of problems like described in #2706.

#2 Updated by Evgeny Novikov over 5 years ago

The problem class is specific:context:sleep:pm_runtime:alloc_flag.

#3 Updated by Alexey Khoroshilov over 5 years ago

  • Subject changed from Check that skb doesn't allocated in pm_runtime context to 102: Check that skb doesn't allocated in pm_runtime context

#4 Updated by Evgeny Novikov over 5 years ago

  • Priority changed from High to Normal

Reduce priority until we'll decide that it's high actually.

#5 Updated by Vadim Mutilin about 5 years ago

This rule is similar to 43

Also available in: Atom PDF