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.