]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 13 Jan 2022 17:42:13 +0000 (18:42 +0100)
commitc47d34ab52f55bd4862707fe106ab508126256da
tree8ba3b6565bbd1ea154db23b46007eabe8d8e48b4
parent94584b2713901fcfe6fbe42ab332c363b4d1eba2
smackfs: use __GFP_NOFAIL for smk_cipso_doi()

BugLink: https://bugs.launchpad.net/bugs/1953387
[ Upstream commit f91488ee15bd3cac467e2d6a361fc2d34d1052ae ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
security/smack/smackfs.c