]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit - fs/seq_file.c
UBUNTU: SAUCE: seq_file: Disallow extremely large seq buffer allocations
authorEric Sandeen <sandeen@redhat.com>
Wed, 7 Jul 2021 11:32:08 +0000 (13:32 +0200)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Fri, 9 Jul 2021 15:46:21 +0000 (12:46 -0300)
commit11bb6fcb12bd2a9e62dc0f75f1da1e25f0714fd9
tree473a857e5bec250e080f4585525555caaf187dea
parent63cdb27ebefa9724245dd71d61c856b09574a7ab
UBUNTU: SAUCE: seq_file: Disallow extremely large seq buffer allocations

There is no reasonable need for a buffer larger than this,
and it avoids int overflow pitfalls.

Suggested-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
CVE-2021-33909
Fixes: 058504edd026 ("fs/seq_file: fallback to vmalloc allocation")
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Acked-by: Juerg Haefliger <juergh@canonical.com>
Acked-by: Benjamin M Romer <benjamin.romer@canonical.com>
fs/seq_file.c