From: Enzo Matsumiya <ematsumiya@suse.de>
To: CGEL <cgel.zte@gmail.com>
Cc: rth@twiddle.net, ink@jurassic.park.msu.ru, mattst88@gmail.com,
paul@paul-moore.com, kbuild-all@lists.01.org,
Zeal Robot <zealci@zte.com.cn>,
linux-kernel@vger.kernel.org, eparis@redhat.com,
Yang Yang <yang.yang29@zte.com.cn>,
linux-audit@redhat.com
Subject: Re: [PATCH] audit: do a quick exit when syscall number is invalid
Date: Mon, 28 Mar 2022 23:19:41 -0300 [thread overview]
Message-ID: <20220329021941.ai3d6fgrkyd5ylto@cyberdelia> (raw)
In-Reply-To: <62426553.1c69fb81.bb808.345c@mx.google.com>
On 03/29, CGEL wrote:
>> In file included from include/linux/init.h:5,
>> from kernel/auditsc.c:34:
>> kernel/auditsc.c: In function '__audit_syscall_exit':
>> >> kernel/auditsc.c:2081:61: error: 'NR_syscalls' undeclared (first use in this function); did you mean 'si_syscall'?
>> 2081 | unlikely(context->major < 0 || context->major > NR_syscalls))
>> | ^~~~~~~~~~~
>
>Sorry could anybody give a hand to solve this? It works well on x86_64 and arm64.
>I have no alpha environment and not familiar to this arch, much thanks!
Sorry, no experience either, but from a quick look at arch/alpha/include/asm/unistd.h
shows that it's called NR_SYSCALLS for alpha arch, for whatever reason.
HTH
Enzo
WARNING: multiple messages have this Message-ID (diff)
From: Enzo Matsumiya <ematsumiya@suse.de>
To: CGEL <cgel.zte@gmail.com>
Cc: kbuild-all@lists.01.org, Zeal Robot <zealci@zte.com.cn>,
linux-kernel@vger.kernel.org, eparis@redhat.com,
Yang Yang <yang.yang29@zte.com.cn>,
linux-audit@redhat.com, ink@jurassic.park.msu.ru,
mattst88@gmail.com, rth@twiddle.net
Subject: Re: [PATCH] audit: do a quick exit when syscall number is invalid
Date: Mon, 28 Mar 2022 23:19:41 -0300 [thread overview]
Message-ID: <20220329021941.ai3d6fgrkyd5ylto@cyberdelia> (raw)
In-Reply-To: <62426553.1c69fb81.bb808.345c@mx.google.com>
On 03/29, CGEL wrote:
>> In file included from include/linux/init.h:5,
>> from kernel/auditsc.c:34:
>> kernel/auditsc.c: In function '__audit_syscall_exit':
>> >> kernel/auditsc.c:2081:61: error: 'NR_syscalls' undeclared (first use in this function); did you mean 'si_syscall'?
>> 2081 | unlikely(context->major < 0 || context->major > NR_syscalls))
>> | ^~~~~~~~~~~
>
>Sorry could anybody give a hand to solve this? It works well on x86_64 and arm64.
>I have no alpha environment and not familiar to this arch, much thanks!
Sorry, no experience either, but from a quick look at arch/alpha/include/asm/unistd.h
shows that it's called NR_SYSCALLS for alpha arch, for whatever reason.
HTH
Enzo
--
Linux-audit mailing list
Linux-audit@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-audit
WARNING: multiple messages have this Message-ID (diff)
From: Enzo Matsumiya <ematsumiya@suse.de>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH] audit: do a quick exit when syscall number is invalid
Date: Mon, 28 Mar 2022 23:19:41 -0300 [thread overview]
Message-ID: <20220329021941.ai3d6fgrkyd5ylto@cyberdelia> (raw)
In-Reply-To: <62426553.1c69fb81.bb808.345c@mx.google.com>
[-- Attachment #1: Type: text/plain, Size: 823 bytes --]
On 03/29, CGEL wrote:
>> In file included from include/linux/init.h:5,
>> from kernel/auditsc.c:34:
>> kernel/auditsc.c: In function '__audit_syscall_exit':
>> >> kernel/auditsc.c:2081:61: error: 'NR_syscalls' undeclared (first use in this function); did you mean 'si_syscall'?
>> 2081 | unlikely(context->major < 0 || context->major > NR_syscalls))
>> | ^~~~~~~~~~~
>
>Sorry could anybody give a hand to solve this? It works well on x86_64 and arm64.
>I have no alpha environment and not familiar to this arch, much thanks!
Sorry, no experience either, but from a quick look at arch/alpha/include/asm/unistd.h
shows that it's called NR_SYSCALLS for alpha arch, for whatever reason.
HTH
Enzo
next prev parent reply other threads:[~2022-03-29 2:19 UTC|newest]
Thread overview: 58+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-26 9:46 [PATCH] audit: do a quick exit when syscall number is invalid cgel.zte
2022-03-26 9:46 ` cgel.zte
2022-03-26 20:55 ` kernel test robot
2022-03-26 20:55 ` kernel test robot
2022-03-29 1:48 ` CGEL
2022-03-29 1:48 ` CGEL
2022-03-29 1:48 ` CGEL
2022-03-29 2:19 ` Enzo Matsumiya [this message]
2022-03-29 2:19 ` Enzo Matsumiya
2022-03-29 2:19 ` Enzo Matsumiya
2022-03-29 3:06 ` Paul Moore
2022-03-29 3:06 ` Paul Moore
2022-03-29 3:06 ` Paul Moore
2022-03-29 3:22 ` CGEL
2022-03-29 3:22 ` CGEL
2022-03-29 3:22 ` CGEL
2022-03-29 13:11 ` Paul Moore
2022-03-29 13:11 ` Paul Moore
2022-03-29 13:11 ` Paul Moore
2022-03-30 5:59 ` CGEL
2022-03-30 5:59 ` CGEL
2022-03-30 5:59 ` CGEL
2022-03-30 14:48 ` Paul Moore
2022-03-30 14:48 ` Paul Moore
2022-03-30 14:48 ` Paul Moore
2022-03-31 2:29 ` CGEL
2022-03-31 2:29 ` CGEL
2022-03-31 2:29 ` CGEL
2022-03-31 14:16 ` Paul Moore
2022-03-31 14:16 ` Paul Moore
2022-03-31 14:16 ` Paul Moore
2022-04-01 1:57 ` CGEL
2022-04-01 1:57 ` CGEL
2022-04-01 1:57 ` CGEL
2022-04-01 13:39 ` Steve Grubb
2022-04-01 13:39 ` Steve Grubb
2022-04-01 13:39 ` Steve Grubb
2022-04-01 14:16 ` Paul Moore
2022-04-01 14:16 ` Paul Moore
2022-04-01 14:16 ` Paul Moore
2022-04-02 8:06 ` CGEL
2022-04-02 8:06 ` CGEL
2022-04-02 8:06 ` CGEL
2022-04-02 15:07 ` Paul Moore
2022-04-02 15:07 ` Paul Moore
2022-04-02 15:07 ` Paul Moore
2022-04-04 15:58 ` Richard Guy Briggs
2022-04-04 15:58 ` Richard Guy Briggs
2022-04-04 15:58 ` Richard Guy Briggs
2022-04-06 1:19 ` CGEL
2022-04-06 1:19 ` CGEL
2022-04-06 1:19 ` CGEL
2022-04-06 16:49 ` Richard Guy Briggs
2022-04-06 16:49 ` Richard Guy Briggs
2022-04-06 16:49 ` Richard Guy Briggs
2022-04-07 2:36 ` CGEL
2022-04-07 2:36 ` CGEL
2022-04-07 2:36 ` CGEL
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=20220329021941.ai3d6fgrkyd5ylto@cyberdelia \
--to=ematsumiya@suse.de \
--cc=cgel.zte@gmail.com \
--cc=eparis@redhat.com \
--cc=ink@jurassic.park.msu.ru \
--cc=kbuild-all@lists.01.org \
--cc=linux-audit@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mattst88@gmail.com \
--cc=paul@paul-moore.com \
--cc=rth@twiddle.net \
--cc=yang.yang29@zte.com.cn \
--cc=zealci@zte.com.cn \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.