Re: [PATCH v3 4/8] null_blk: Suppress an UBSAN complaint triggered when setting 'memory_backed'

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

 



On 2/24/20 3:28 AM, Chaitanya Kulkarni wrote:
On 2/20/20 7:23 PM, Bart Van Assche wrote:
Although it is not clear to me why UBSAN complains when 'memory_backed'
is set, this patch suppresses the UBSAN complaint that is triggered when
setting that configfs attribute.

Is it due to "An uninitialized bool will have indeterminate value and using
an indeterminate value is undefined behavior." ?

But where is the code that reads that boolean before it is set? I haven't found it. Hence the comment in the patch description.

Bart.



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux