Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools: bpf_jit_disasm: increase image buffer size

JITed seccomp filters can be quite large if they check a lot of syscalls
Simply increase buffer size

Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Acked-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Alexei Starovoitov and committed by
David S. Miller
9bb1a208 ed4afd45

+1 -1
+1 -1
tools/net/bpf_jit_disasm.c
··· 171 171 { 172 172 int len, klen, opcodes = 0; 173 173 char *kbuff; 174 - uint8_t image[4096]; 174 + static uint8_t image[32768]; 175 175 176 176 if (argc > 1) { 177 177 if (!strncmp("-o", argv[argc - 1], 2)) {