We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0d38128 + f0e13f4 commit a9b8853Copy full SHA for a9b8853
1 file changed
fs/seq_file.c
@@ -32,6 +32,9 @@ static void seq_set_overflow(struct seq_file *m)
32
33
static void *seq_buf_alloc(unsigned long size)
34
{
35
+ if (unlikely(size > MAX_RW_COUNT))
36
+ return NULL;
37
+
38
return kvmalloc(size, GFP_KERNEL_ACCOUNT);
39
}
40
0 commit comments