[no subject]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> And indeed the subject states that this is a cpumasks-related warninig.
> Cpumask is a global subsystem. If you believe that this warning is
> false-positive, it may show up for any other random victim. Please
> suppress it globally.
> 
Yes you were correct, this warning might appear for any other random victims. But as 
I mentioned earlier, so far I've only encountered it with kernel/padata.c file. 
So, if we want to reduce the blast radius then wouldn't it be sufficient to just silence 
it only while compiling kernel/padata.c file? Or do you still suggest disabling it at
global level would be more helpful? I'm OK with either way moving forward. Please let 
me know.

> Thanks,
> Yury
> 
Thanks,
--Nilay

>>
>> Link: https://lore.kernel.org/all/7cbbd751-8332-4ab2-afa7-8c353834772a@xxxxxxxxxxxxx/
>> Cc: briannorris@xxxxxxxxxxxx
>> Cc: kees@xxxxxxxxxx
>> Cc: nathan@xxxxxxxxxx
>> Cc: yury.norov@xxxxxxxxx
>> Cc: steffen.klassert@xxxxxxxxxxx
>> Cc: daniel.m.jordan@xxxxxxxxxx
>> Cc: linux-crypto@xxxxxxxxxxxxxxx
>> Cc: linux@xxxxxxxxxxxxxx
>> Cc: gjoyce@xxxxxxx
>> Reviewed-by: Brian Norris <briannorris@xxxxxxxxxxxx>
>> Signed-off-by: Nilay Shroff <nilay@xxxxxxxxxxxxx>
>> ---
>> Changes from v1:
>>     - Fix spell error in the commit message (Brian Norris)
>>     - Add commentary around change to note that changes are needed to
>>       avoid false positive on gcc 13+ (Brian Norris)
>>     - Add the kerenl/padata.c file maintainers (Brian Norris)     
>> ---
>>
>>  kernel/Makefile | 4 ++++
>>  1 file changed, 4 insertions(+)
>>
>> diff --git a/kernel/Makefile b/kernel/Makefile
>> index 87866b037fbe..03242d8870c7 100644
>> --- a/kernel/Makefile
>> +++ b/kernel/Makefile
>> @@ -120,6 +120,10 @@ obj-$(CONFIG_CFI_CLANG) += cfi.o
>>  obj-$(CONFIG_PERF_EVENTS) += events/
>>  
>>  obj-$(CONFIG_USER_RETURN_NOTIFIER) += user-return-notifier.o
>> +
>> +# Silence the false positive stringop-overread errors on GCC 13+
>> +CFLAGS_padata.o += $(call cc-disable-warning, stringop-overread)
>> +
>>  obj-$(CONFIG_PADATA) += padata.o
>>  obj-$(CONFIG_JUMP_LABEL) += jump_label.o
>>  obj-$(CONFIG_CONTEXT_TRACKING) += context_tracking.o
>> -- 
>> 2.45.2




[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]
  Powered by Linux