Return-Path: Received: from relay.sw.ru ([185.231.240.75]:55596 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728578AbeJaMfi (ORCPT ); Wed, 31 Oct 2018 08:35:38 -0400 Subject: Re: [PATCH v2 11/11] ext4: access to uninitialized bh fields in ext4_xattr_set_handle() To: Andreas Dilger Cc: linux-ext4@vger.kernel.org, Theodore Ts'o , Andreas Dilger , linux-kernel@vger.kernel.org References: <48BA929C-9BF7-4092-BDD3-BECB64AF0599@dilger.ca> From: Vasily Averin Message-ID: <0db97e14-c87d-9507-4c87-875835b64212@virtuozzo.com> Date: Wed, 31 Oct 2018 06:39:20 +0300 MIME-Version: 1.0 In-Reply-To: <48BA929C-9BF7-4092-BDD3-BECB64AF0599@dilger.ca> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-ext4-owner@vger.kernel.org List-ID: On 10/31/2018 04:30 AM, Andreas Dilger wrote: > Could you please explain your statement below that on-stack > initialization does not zero unspecified fields?  According  > to documents I found, for example: > > https://gcc.gnu.org/onlinedocs/gcc/Designated-Inits.html > > they *are* initialized to zero.  I did not know it, I re-checked it in generated assembler code and found that you are right and I was wrong. Please drop this patch, should I resend of rest of this patch set once again? Thank you, Vasily Averin