public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH v3 4/4] bpf: Check truncation on 32bit div/mod by zero
Date: Wed, 5 May 2021 16:57:32 +0200	[thread overview]
Message-ID: <YJKyXC6y3xzwcDql@yuki> (raw)
In-Reply-To: <20210505091623.29121-5-rpalethorpe@suse.com>

Hi!
> +	map_fd = bpf_map_array_create(4);
> +	prog_fd = load_prog();
> +	bpf_run_prog(prog_fd, msg, sizeof(MSG));
> +	SAFE_CLOSE(prog_fd);

I've added *key = 0; here so that the test does not break on invalid map
index on subsequent iterations (-i 2).

And also fixed some spaces mixed between tabs used for indentation and
pushed, thanks.

-- 
Cyril Hrubis
chrubis@suse.cz

      reply	other threads:[~2021-05-05 14:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-05  9:16 [LTP] [PATCH v3 0/4] BPF refactor and add bpf_prog05 Richard Palethorpe
2021-05-05  9:16 ` [LTP] [PATCH v3 1/4] lapi/bpf: Add /= and %= Richard Palethorpe
2021-05-05  9:16 ` [LTP] [PATCH v3 2/4] bpf: Add map_array helper functions/macro and constify Richard Palethorpe
2021-05-05 14:59   ` Cyril Hrubis
2021-05-05  9:16 ` [LTP] [PATCH v3 3/4] bpf: Add helper to run socket programs Richard Palethorpe
2021-05-05  9:16 ` [LTP] [PATCH v3 4/4] bpf: Check truncation on 32bit div/mod by zero Richard Palethorpe
2021-05-05 14:57   ` Cyril Hrubis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YJKyXC6y3xzwcDql@yuki \
    --to=chrubis@suse.cz \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox