tools: bpf_jit_disasm: increase image buffer size
authorAlexei Starovoitov <ast@plumgrid.com>
Thu, 15 May 2014 22:56:39 +0000 (15:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 May 2014 20:44:08 +0000 (16:44 -0400)
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>
tools/net/bpf_jit_disasm.c

index d9730c3319b9c62b60e2449f1154b9f9a15b3546..c5baf9c591b7bb5a2c280e173f4e0a2b561285fa 100644 (file)
@@ -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)) {