The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
To: "Christophe Leroy (CS GROUP)" <chleroy@kernel.org>,
	Madhavan Srinivasan <maddy@linux.ibm.com>,
	Paul Moore <paul@paul-moore.com>
Cc: "Harsh Prateek Bora" <harshpb@linux.ibm.com>,
	"Michael Ellerman" <mpe@ellerman.id.au>,
	"Nicholas Piggin" <npiggin@gmail.com>,
	"Eric Paris" <eparis@redhat.com>,
	linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,
	audit@vger.kernel.org,
	"Thomas Weissschuh" <thomas.weissschuh@linutronix.de>,
	"Cédric Le Goater" <clg@kaod.org>,
	ritesh.list@gmail.com
Subject: Re: [PATCH v3] powerpc/audit: Convert powerpc to AUDIT_ARCH_COMPAT_GENERIC
Date: Thu, 2 Jul 2026 18:19:52 +0530	[thread overview]
Message-ID: <203f6e6d-2ce8-4e47-99a6-f4af745e0aaa@linux.ibm.com> (raw)
In-Reply-To: <ba00c7a8-b4d5-4d80-859b-d75e9c91ebdb@kernel.org>


On 01/07/26 2:23 pm, Christophe Leroy (CS GROUP) wrote:
>
>
> Le 01/07/2026 à 10:09, Venkat Rao Bagalkote a écrit :
>>
>> On 01/07/26 10:26 am, Christophe Leroy (CS GROUP) wrote:
>>>
>>>
>>> Le 01/07/2026 à 06:32, Venkat Rao Bagalkote a écrit :
>>>>
>>>> On 01/07/26 7:44 am, Madhavan Srinivasan wrote:
>>>>>
>>>>> On 7/1/26 12:41 AM, Paul Moore wrote:
>>>>>> On Wed, May 13, 2026 at 1:42 AM Madhavan Srinivasan 
>>>>>> <maddy@linux.ibm.com> wrote:
>>>>>>> On 5/13/26 10:05 AM, Harsh Prateek Bora wrote:
>>>>>>>> On 11/03/26 12:49 am, Paul Moore wrote:
>>>>>>>>> On Tue, Mar 10, 2026 at 11:08 AM Christophe Leroy (CS GROUP)
>>>>>>>>> <chleroy@kernel.org> wrote:
>>>>>>>>>> From: Christophe Leroy <christophe.leroy@csgroup.eu>
>>>>>>>>>>
>>>>>>>>>> Commit e65e1fc2d24b ("[PATCH] syscall class hookup for all 
>>>>>>>>>> normal
>>>>>>>>>> targets") added generic support for AUDIT but that didn't 
>>>>>>>>>> include
>>>>>>>>>> support for bi-arch like powerpc.
>>>>>>>>>>
>>>>>>>>>> Commit 4b58841149dc ("audit: Add generic compat syscall 
>>>>>>>>>> support")
>>>>>>>>>> added generic support for bi-arch.
>>>>>>>>>>
>>>>>>>>>> Convert powerpc to that bi-arch generic audit support.
>>>>>>>>>>
>>>>>>>>>> With this change generated text is similar.
>>>>>>>>>>
>>>>>>>>>> Thomas has confirmed that the previously failing 
>>>>>>>>>> filter_exclude/test
>>>>>>>>>> is now successful both without and with this patch, see [1]
>>>>>>>>>>
>>>>>>>>>> [1]
>>>>>>>>>> https://eur01.safelinks.protection.outlook.com/? 
>>>>>>>>>> url=https%3A%2F%2Flore.kernel.org%2Fall%2F20260306115350- 
>>>>>>>>>> ef265661-6d6b-4043-9bd0-8e6b437d0d67%40linutronix.de%2F&data=05%7C02%7Cchristophe.leroy%40csgroup.eu%7C81e1e4e3bae245103d3308ded729bb47%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C639184771399964577%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=%2FtCHXFR5np67gntCnXqv7Eemo5WuwaIEcywxZQzDADA%3D&reserved=0
>>>>>>>>>>
>>>>>>>>>> Link: https://eur01.safelinks.protection.outlook.com/? 
>>>>>>>>>> url=https%3A%2F%2Fgithub.com%2Flinuxppc%2Fissues%2Fissues%2F412&data=05%7C02%7Cchristophe.leroy%40csgroup.eu%7C81e1e4e3bae245103d3308ded729bb47%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C639184771400190794%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=4fPEX7HuGBcxOcXlcJVQvDdP7Y9InhDpbz3z%2BS9lkCQ%3D&reserved=0 
>>>>>>>>>>
>>>>>>>>>> Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
>>>>>>>>>> Reviewed-by: Cédric Le Goater <clg@kaod.org>
>>>>>>>>>> ---
>>>>>>>>>> Venkat, a test result with
>>>>>>>>>> https://eur01.safelinks.protection.outlook.com/? 
>>>>>>>>>> url=https%3A%2F%2Fgithub.com%2Flinux-audit%2Faudit- 
>>>>>>>>>> testsuite&data=05%7C02%7Cchristophe.leroy%40csgroup.eu%7C81e1e4e3bae245103d3308ded729bb47%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C639184771400214912%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=yHp3p5zNx%2BqQg2cKBsKJADWcUcKVtZstzNScBfWzF%2FQ%3D&reserved=0 
>>>>>>>>>> would be appreciated.
>>>>>>>>> Yes, I'd like to see confirmation that the audit test suite 
>>>>>>>>> runs clean
>>>>>>>>> on ppc systems with this patch applied, and unfortunately 
>>>>>>>>> without a
>>>>>>>>> ppc system I have no way to test this myself.
>>>>>>> My bad, this is a miss from my end.
>>>>>>> Venkat is already on this and will update the results here.
>>>>>> Do we have an update on this?  Maybe I missed it, but I don't recall
>>>>>> seeing any test results.
>>>>> Venkat, did run the test but I guess he missed to respond here,
>>>>> Details of his test run that he shared me in the internal chat 
>>>>> from May 13.
>>>>
>>>>
>>>> Sorry, My bad. I missed updating here. Yes, this was tested in May. 
>>>> Please let me know, if a re-run is required?
>>>
>>> It looks like netcat 
>>> (https://eur01.safelinks.protection.outlook.com/? 
>>> url=https%3A%2F%2Flinux.die.net%2Fman%2F1%2Fnc&data=05%7C02%7Cchristophe.leroy%40csgroup.eu%7C97ac234e82884f729d1508ded7480f62%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C639184901648983046%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=18PJTLp9ozMqSkWWvBZmtjzjTI355Oq%2F5aqmU6zCiZE%3D&reserved=0) 
>>> is not installed in you setup. Are you able to install it and rerun 
>>> the test ?
>>
>>
>> I investigated the failure on the RHEL 10 ppc64le test system.
>>
>>
>> The netfilter_pkt failure is due to missing userspace dependencies:
>>
>> Can't exec "nc": No such file or directory
>> Can't exec "iptables": No such file or directory
>> Can't exec "ip6tables": No such file or directory
>>
>> I checked the system and confirmed that nc, ncat, iptables, and 
>> ip6tables are not installed:
>>
>>
>> which nc
>> which ncat
>> which iptables
>> which ip6tables
>>
>>
>> all return "not found".
>>
>> The system has nftables installed (/usr/sbin/nft), but I was unable 
>> to locate packages providing nc/ncat or iptables/ip6tables in the 
>> currently enabled repositories (epel, rh10_base, rh10_app, rh10_crb).
>
> Found:
> - 
> https://dl.fedoraproject.org/pub/epel/10/Everything/ppc64le/Packages/n/netcat-1.238-1.el10_3.ppc64le.rpm
> - 
> https://rpmfind.net/linux/RPM/almalinux-kitten/10/baseos/ppc64le/iptables-nft-1.8.11-6.el10.ppc64le.html
> - 
> https://www.rpmfind.net/linux/RPM/centos-stream/10/appstream/ppc64le/iptables-devel-1.8.11-14.el10.ppc64le.html
>
> Does it help ?
>
> Christophe


Hi Christophe,


Thanks for sharing the RPMs,they were very helpful.

I reran the audit-testsuite after installing the missing userspace 
dependencies that were identified earlier.

I installed:
     - netcat (nc)
     - iptables
     - ip6tables

Following this, the previously failing netfilter_pkt test is now passing:

     netfilter_pkt/test ................... ok


Current remaining issue:

1. amcast_joinpart
------------------
Still fails due to a missing Perl dependency:

     Can't locate Socket/Netlink.pm in @INC

I searched the configured repositories and could not find a package 
providing Socket::Netlink / Socket/Netlink.pm on this EL10 ppc64le system.

Latest run summary:

amcast_joinpart/test ................. Can't locate Socket/Netlink.pm in 
@INC (you may need to install the Socket::Netlink module) (@INC entries 
checked: /usr/local/lib64/perl5/5.40 /usr/local/share/perl5/5.40 
/usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl 
/usr/lib64/perl5 /usr/share/perl5 .) at amcast_joinpart/test line 10.
BEGIN failed--compilation aborted at amcast_joinpart/test line 10.
amcast_joinpart/test ................. Dubious, test returned 2 (wstat 
512, 0x200)
Failed 7/7 subtests
backlog_wait_time_actual_reset/test .. ok
bpf/test ............................. ok
exec_execve/test ..................... ok
exec_name/test ....................... ok
fanotify/test ........................ ok
field_compare/test ................... ok
file_create/test ..................... ok
file_delete/test ..................... ok
file_permission/test ................. ok
file_rename/test ..................... ok
filter_exclude/test .................. ok
filter_exit/test ..................... ok
filter_saddr_fam/test ................ ok
filter_sessionid/test ................ ok
io_uring/test ........................ ok
login_tty/test ....................... ok
lost_reset/test ...................... ok
netfilter_pkt/test ................... ok
signal/test .......................... ok
syscalls_file/test ................... ok
syscall_module/test .................. ok
time_change/test ..................... ok
user_msg/test ........................ ok

All tests now pass except amcast_joinpart, which is blocked by the 
missing Socket::Netlink Perl module.

Please let me know if there is a recommended package source for 
Socket::Netlink on EL10 ppc64le.

Regards,
Venkat.

>
>>
>>
>> At this point, the remaining failure appears to be an environmental 
>> dependency issue rather than a test failure. Please let me know if 
>> there is a recommended package/repository for EL10 ppc64le that 
>> provides netcat and iptables compatibility tools, and I can re-run 
>> the test.
>>
>>
>> Regards,
>>
>> Venkat.
>>
>>>
>>> Thanks
>>> Christophe
>>>
>>>>
>>>> Regards,
>>>>
>>>> Venkat.
>>>>
>>>>>
>>>>> backlog_wait_time_actual_reset/test .. ok
>>>>> bpf/test ............................. ok
>>>>> exec_execve/test ..................... ok
>>>>> exec_name/test ....................... ok
>>>>> fanotify/test ........................ ok
>>>>> field_compare/test ................... ok
>>>>> file_create/test ..................... ok
>>>>> file_delete/test ..................... ok
>>>>> file_permission/test ................. ok
>>>>> file_rename/test ..................... ok
>>>>> filter_exclude/test .................. ok
>>>>> filter_exit/test ..................... ok
>>>>> filter_saddr_fam/test ................ ok
>>>>> filter_sessionid/test ................ ok
>>>>> io_uring/test ........................ ok
>>>>> login_tty/test ....................... ok
>>>>> lost_reset/test ...................... ok
>>>>> netfilter_pkt/test ................... Can't exec "nc": No such 
>>>>> file or directory at netfilter_pkt/test line 83.
>>>>>
>>>>> Venkat, can you please re-run if possible and paste the log here.
>>>>>
>>>>> Thanks
>>>>> Maddy
>>>>>
>>>>>
>>>
>
>

  reply	other threads:[~2026-07-02 12:50 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-10 15:08 [PATCH v3] powerpc/audit: Convert powerpc to AUDIT_ARCH_COMPAT_GENERIC Christophe Leroy (CS GROUP)
2026-03-10 19:19 ` Paul Moore
2026-05-13  4:35   ` Harsh Prateek Bora
2026-05-13  5:41     ` Madhavan Srinivasan
2026-06-30 19:11       ` Paul Moore
2026-07-01  2:14         ` Madhavan Srinivasan
2026-07-01  4:32           ` Venkat Rao Bagalkote
2026-07-01  4:56             ` Christophe Leroy (CS GROUP)
2026-07-01  8:09               ` Venkat Rao Bagalkote
2026-07-01  8:53                 ` Christophe Leroy (CS GROUP)
2026-07-02 12:49                   ` Venkat Rao Bagalkote [this message]
2026-07-02 13:27                     ` Paul Moore
2026-07-02 18:19                       ` Ricardo Robaina
2026-07-02 22:49                         ` Ricardo Robaina
2026-07-06  8:29                           ` Venkat Rao Bagalkote
2026-07-06 14:05                             ` Paul Moore
2026-04-08  4:28 ` Madhavan Srinivasan
2026-05-12 15:58   ` Paul Moore

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=203f6e6d-2ce8-4e47-99a6-f4af745e0aaa@linux.ibm.com \
    --to=venkat88@linux.ibm.com \
    --cc=audit@vger.kernel.org \
    --cc=chleroy@kernel.org \
    --cc=clg@kaod.org \
    --cc=eparis@redhat.com \
    --cc=harshpb@linux.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=maddy@linux.ibm.com \
    --cc=mpe@ellerman.id.au \
    --cc=npiggin@gmail.com \
    --cc=paul@paul-moore.com \
    --cc=ritesh.list@gmail.com \
    --cc=thomas.weissschuh@linutronix.de \
    /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