2024-06-13 13:08:31

by Naresh Kamboju

[permalink] [raw]
Subject: security: ima_policy.c:427:17: error: too many arguments to function 'ima_filter_rule_init'

The arm and arm64 kselftests builds started failing on Linux next-20240613 tag.
Please find the build log and related links below.

Reported-by: Linux Kernel Functional Testing <[email protected]>

Build error:
--------
security/integrity/ima/ima_policy.c: In function 'ima_lsm_copy_rule':
security/integrity/ima/ima_policy.c:427:17: error: too many arguments
to function 'ima_filter_rule_init'
427 | ima_filter_rule_init(nentry->lsm[i].type, Audit_equal,
| ^~~~~~~~~~~~~~~~~~~~

metadata:
------
git_describe: next-20240613
git_ref: master
git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next
git_sha: 6906a84c482f098d31486df8dc98cead21cce2d0
git_short_log: 6906a84c482f ("Add linux-next specific files for 20240613")
arch: arm and arm64
config: kselftest merge
build_name: gcc-13-lkftconfig-kselftest
config: https://storage.tuxsuite.com/public/linaro/lkft/builds/2hoLwDXEx5rCFxECYqQmkKEEurs/config
toolchain: gcc-13

Build log:
---------
- https://storage.tuxsuite.com/public/linaro/lkft/builds/2hoLwDXEx5rCFxECYqQmkKEEurs/
- https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20240613/testrun/24303459/suite/build/test/gcc-13-lkftconfig-kselftest/details/

--
Linaro LKFT
https://lkft.linaro.org


2024-06-13 17:36:31

by Paul Moore

[permalink] [raw]
Subject: Re: security: ima_policy.c:427:17: error: too many arguments to function 'ima_filter_rule_init'

On Thu, Jun 13, 2024 at 8:43 AM Naresh Kamboju
<[email protected]> wrote:
>
> The arm and arm64 kselftests builds started failing on Linux next-20240613 tag.
> Please find the build log and related links below.
>
> Reported-by: Linux Kernel Functional Testing <[email protected]>

Thank you, the same error was reported by the kernel test robot
overnight. I'm going to look at it today, I suspect it is a conflict
between the LSM and IMA/EVM branches. FWIW, I compiled and booted a
kernel using the LSM changes yesterday without problem.

> Build error:
> --------
> security/integrity/ima/ima_policy.c: In function 'ima_lsm_copy_rule':
> security/integrity/ima/ima_policy.c:427:17: error: too many arguments
> to function 'ima_filter_rule_init'
> 427 | ima_filter_rule_init(nentry->lsm[i].type, Audit_equal,
> | ^~~~~~~~~~~~~~~~~~~~

--
paul-moore.com

2024-06-13 18:23:51

by Paul Moore

[permalink] [raw]
Subject: Re: security: ima_policy.c:427:17: error: too many arguments to function 'ima_filter_rule_init'

On Thu, Jun 13, 2024 at 1:36 PM Paul Moore <[email protected]> wrote:
> On Thu, Jun 13, 2024 at 8:43 AM Naresh Kamboju
> <[email protected]> wrote:
> >
> > The arm and arm64 kselftests builds started failing on Linux next-20240613 tag.
> > Please find the build log and related links below.
> >
> > Reported-by: Linux Kernel Functional Testing <[email protected]>
>
> Thank you, the same error was reported by the kernel test robot
> overnight. I'm going to look at it today, I suspect it is a conflict
> between the LSM and IMA/EVM branches. FWIW, I compiled and booted a
> kernel using the LSM changes yesterday without problem.

Nevermind, it turns out the patch is bad :( ... more on the LSM list shortly.

> > Build error:
> > --------
> > security/integrity/ima/ima_policy.c: In function 'ima_lsm_copy_rule':
> > security/integrity/ima/ima_policy.c:427:17: error: too many arguments
> > to function 'ima_filter_rule_init'
> > 427 | ima_filter_rule_init(nentry->lsm[i].type, Audit_equal,
> > | ^~~~~~~~~~~~~~~~~~~~

--
paul-moore.com