From: Tycho Andersen <tycho@tycho•ws>
To: Christian Brauner <christian.brauner@ubuntu•com>
Cc: keescook@chromium•org, luto@amacapital•net, jannh@google•com,
wad@chromium•org, shuah@kernel•org, ast@kernel•org,
daniel@iogearbox•net, kafai@fb•com, songliubraving@fb•com,
yhs@fb•com, linux-kernel@vger•kernel.org,
linux-kselftest@vger•kernel.org, netdev@vger•kernel.org,
bpf@vger•kernel.org, Tyler Hicks <tyhicks@canonical•com>,
stable@vger•kernel.org
Subject: Re: [PATCH v2 2/3] seccomp: avoid overflow in implicit constant conversion
Date: Fri, 20 Sep 2019 10:47:53 +0200 [thread overview]
Message-ID: <20190920084753.GA16893@cisco> (raw)
In-Reply-To: <20190920083007.11475-3-christian.brauner@ubuntu.com>
On Fri, Sep 20, 2019 at 10:30:06AM +0200, Christian Brauner wrote:
> USER_NOTIF_MAGIC is assigned to int variables in this test so set it to INT_MAX
> to avoid warnings:
>
> seccomp_bpf.c: In function ‘user_notification_continue’:
> seccomp_bpf.c:3088:26: warning: overflow in implicit constant conversion [-Woverflow]
> #define USER_NOTIF_MAGIC 116983961184613L
> ^
> seccomp_bpf.c:3572:15: note: in expansion of macro ‘USER_NOTIF_MAGIC’
> resp.error = USER_NOTIF_MAGIC;
> ^~~~~~~~~~~~~~~~
>
> Fixes: 6a21cc50f0c7 ("seccomp: add a return code to trap to userspace")
> Signed-off-by: Christian Brauner <christian.brauner@ubuntu•com>
> Reviewed-by: Tyler Hicks <tyhicks@canonical•com>
> Cc: Kees Cook <keescook@chromium•org>
> Cc: Andy Lutomirski <luto@amacapital•net>
> Cc: Will Drewry <wad@chromium•org>
> Cc: Shuah Khan <shuah@kernel•org>
> Cc: Alexei Starovoitov <ast@kernel•org>
> Cc: Daniel Borkmann <daniel@iogearbox•net>
> Cc: Martin KaFai Lau <kafai@fb•com>
> Cc: Song Liu <songliubraving@fb•com>
> Cc: Yonghong Song <yhs@fb•com>
> Cc: Tycho Andersen <tycho@tycho•ws>
You can also add,
Reviewed-by: Tycho Andersen <tycho@tycho•ws>
for this one.
Tycho
next prev parent reply other threads:[~2019-09-20 8:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-20 8:30 [PATCH v2 0/3] seccomp: continue syscall from notifier Christian Brauner
2019-09-20 8:30 ` [PATCH v2 1/3] seccomp: add SECCOMP_USER_NOTIF_FLAG_CONTINUE Christian Brauner
2019-10-10 21:45 ` Kees Cook
2019-10-11 9:46 ` Christian Brauner
2019-09-20 8:30 ` [PATCH v2 2/3] seccomp: avoid overflow in implicit constant conversion Christian Brauner
2019-09-20 8:47 ` Tycho Andersen [this message]
2019-09-20 8:30 ` [PATCH v2 3/3] seccomp: test SECCOMP_USER_NOTIF_FLAG_CONTINUE Christian Brauner
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=20190920084753.GA16893@cisco \
--to=tycho@tycho$(echo .)ws \
--cc=ast@kernel$(echo .)org \
--cc=bpf@vger$(echo .)kernel.org \
--cc=christian.brauner@ubuntu$(echo .)com \
--cc=daniel@iogearbox$(echo .)net \
--cc=jannh@google$(echo .)com \
--cc=kafai@fb$(echo .)com \
--cc=keescook@chromium$(echo .)org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-kselftest@vger$(echo .)kernel.org \
--cc=luto@amacapital$(echo .)net \
--cc=netdev@vger$(echo .)kernel.org \
--cc=shuah@kernel$(echo .)org \
--cc=songliubraving@fb$(echo .)com \
--cc=stable@vger$(echo .)kernel.org \
--cc=tyhicks@canonical$(echo .)com \
--cc=wad@chromium$(echo .)org \
--cc=yhs@fb$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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