]> git.baikalelectronics.ru Git - kernel.git/commit
random: fix possible sleeping allocation from irq context
authorTheodore Ts'o <tytso@mit.edu>
Mon, 23 Apr 2018 22:51:28 +0000 (18:51 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 24 Apr 2018 16:00:08 +0000 (12:00 -0400)
commit3636b7aee93f271985c32913243428e0986b35a0
tree0762f3b03339b0ab30f3163ab0ac314b75f05d02
parent97ee58ae85c73ef87585ddae567fc7b7476cae4f
random: fix possible sleeping allocation from irq context

We can do a sleeping allocation from an irq context when CONFIG_NUMA
is enabled.  Fix this by initializing the NUMA crng instances in a
workqueue.

Reported-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Reported-by: syzbot+9de458f6a5e713ee8c1a@syzkaller.appspotmail.com
Fixes: 5aa9a7b8c20692f4 ("random: set up the NUMA crng instances...")
Cc: stable@vger.kernel.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
drivers/char/random.c