Explorar el Código

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>
Alexei Starovoitov hace 11 años
padre
commit
9bb1a208fd
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      tools/net/bpf_jit_disasm.c

+ 1 - 1
tools/net/bpf_jit_disasm.c

@@ -171,7 +171,7 @@ int main(int argc, char **argv)
 {
 	int len, klen, opcodes = 0;
 	char *kbuff;
-	uint8_t image[4096];
+	static uint8_t image[32768];
 
 	if (argc > 1) {
 		if (!strncmp("-o", argv[argc - 1], 2)) {