Skip to content

Commit

Permalink
tools: bpf_jit_disasm: increase image buffer size
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexei Starovoitov authored and davem330 committed May 16, 2014
1 parent ed4afd4 commit 9bb1a20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/net/bpf_jit_disasm.c
Expand Up @@ -171,7 +171,7 @@ int main(int argc, char **argv)
{ {
int len, klen, opcodes = 0; int len, klen, opcodes = 0;
char *kbuff; char *kbuff;
uint8_t image[4096]; static uint8_t image[32768];


if (argc > 1) { if (argc > 1) {
if (!strncmp("-o", argv[argc - 1], 2)) { if (!strncmp("-o", argv[argc - 1], 2)) {
Expand Down

0 comments on commit 9bb1a20

Please sign in to comment.