diff options
author | Pavel Skripkin <paskripkin@gmail.com> | 2021-07-27 19:35:30 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-27 20:58:30 +0100 |
commit | 8ca34a13f7f9b3fa2c464160ffe8cc1a72088204 (patch) | |
tree | 910fea2d2e63460ec1301fd4b5058d6c354b5901 /fs/dlm | |
parent | 2f21be447bf0eed63a5c8999a6c449b37e2c6180 (diff) | |
download | linux-8ca34a13f7f9b3fa2c464160ffe8cc1a72088204.tar.gz linux-8ca34a13f7f9b3fa2c464160ffe8cc1a72088204.tar.bz2 linux-8ca34a13f7f9b3fa2c464160ffe8cc1a72088204.zip |
net: cipso: fix warnings in netlbl_cipsov4_add_std
Syzbot reported warning in netlbl_cipsov4_add(). The
problem was in too big doi_def->map.std->lvl.local_size
passed to kcalloc(). Since this value comes from userpace there is
no need to warn if value is not correct.
The same problem may occur with other kcalloc() calls in
this function, so, I've added __GFP_NOWARN flag to all
kcalloc() calls there.
Reported-and-tested-by: syzbot+cdd51ee2e6b0b2e18c0d@syzkaller.appspotmail.com
Fixes: 96cb8e3313c7 ("[NetLabel]: CIPSOv4 and Unlabeled packet integration")
Acked-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Pavel Skripkin <paskripkin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/dlm')
0 files changed, 0 insertions, 0 deletions