[PATCH] lsm: add reserved flag in lsm_prop struct
15074444048
15074444048 at 163.com
Mon Dec 9 01:52:01 UTC 2024
At 2024-12-07 01:31:11, "Casey Schaufler" <casey at schaufler-ca.com> wrote:
>
>Can you cite where this warning occurs?
>
In file included from ./include/linux/string.h:389,
from ./include/linux/bitmap.h:13,
from ./include/linux/cpumask.h:12,
from ./include/linux/smp.h:13,
from ./include/linux/lockdep.h:14,
from ./include/linux/spinlock.h:63,
from ./include/linux/wait.h:9,
from ./include/linux/wait_bit.h:8,
from ./include/linux/fs.h:6,
from kernel/auditsc.c:37:
In function ‘sized_strscpy’,
inlined from ‘__audit_ptrace’ at kernel/auditsc.c:2732:2:
./include/linux/fortify-string.h:293:3: error: call to ‘__write_overflow’ declared with attribute error: detected write beyond size of object (1st parameter)
293 | __write_overflow();
| ^~~~~~~~~~~~~~~~~~
In function ‘sized_strscpy’,
inlined from ‘audit_signal_info_syscall’ at kernel/auditsc.c:2759:3:
./include/linux/fortify-string.h:293:3: error: call to ‘__write_overflow’ declared with attribute error: detected write beyond size of object (1st parameter)
293 | __write_overflow();
>
>I don't care much for this approach. Increasing the size of the structure
>to avoid a warning in the case where it isn't used seems problematic.
>
do you have any good sugestion?
More information about the Linux-security-module-archive
mailing list