Repository navigation
Commit 9db441e
tomoyo: Use atomic_t for statistics counter
commit a8772fa 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: syzbot <syzbot+efea72d4a0a1d03596cd@syzkaller.appspotmail.com>
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent a5491f3 commit 9db441e
1 file changed
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2322 | 2322 | | |
2323 | 2323 | | |
2324 | 2324 | | |
2325 | | - | |
2326 | | - | |
2327 | 2325 | | |
| 2326 | + | |
| 2327 | + | |
2328 | 2328 | | |
2329 | 2329 | | |
2330 | 2330 | | |
| |||
2336 | 2336 | | |
2337 | 2337 | | |
2338 | 2338 | | |
2339 | | - | |
2340 | | - | |
2341 | | - | |
2342 | | - | |
| 2339 | + | |
2343 | 2340 | | |
2344 | 2341 | | |
2345 | 2342 | | |
| |||
2360 | 2357 | | |
2361 | 2358 | | |
2362 | 2359 | | |
2363 | | - | |
| 2360 | + | |
2364 | 2361 | | |
2365 | 2362 | | |
2366 | 2363 | | |
| |||
0 commit comments