OSDN Git Service

smackfs: use __GFP_NOFAIL for smk_cipso_doi()
authorTetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Tue, 19 Oct 2021 11:54:31 +0000 (20:54 +0900)
committerCasey Schaufler <casey@schaufler-ca.com>
Fri, 22 Oct 2021 15:46:44 +0000 (08:46 -0700)
commitf91488ee15bd3cac467e2d6a361fc2d34d1052ae
tree7264fbc8c247a06cbb987c4bc5f50ec45cb7c604
parentb57d02091b8f5eae1fce5652bb2b53857cd3c720
smackfs: use __GFP_NOFAIL for smk_cipso_doi()

syzbot is reporting kernel panic at smk_cipso_doi() due to memory
allocation fault injection [1]. The reason for need to use panic() was
not explained. But since no fix was proposed for 18 months, for now
let's use __GFP_NOFAIL for utilizing syzbot resource on other bugs.

Link: https://syzkaller.appspot.com/bug?extid=89731ccb6fec15ce1c22
Reported-by: syzbot <syzbot+89731ccb6fec15ce1c22@syzkaller.appspotmail.com>
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
security/smack/smackfs.c