Skip to content
Commit 0be58e49 authored by Tetsuo Handa's avatar Tetsuo Handa Committed by Paul Gortmaker
Browse files

tomoyo: Use atomic_t for statistics counter

commit a8772fad upstream.

syzbot is reporting that there is a race at tomoyo_stat_update() [1].
Although it is acceptable to fail to track exact number of times policy
was updated, convert to atomic_t because this is not a hot path.

[1] https://syzkaller.appspot.com/bug?id=a4d7b973972eeed410596e6604580e0133b0fc04



Reported-by: default avatarsyzbot <syzbot+efea72d4a0a1d03596cd@syzkaller.appspotmail.com>
Signed-off-by: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent 56fed77e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment