Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1323192 > unrolled thread

Re: [PATCH v4.4-rc8] jffs2: xattr: Silence frame size warning

Started byDavid Woodhouse <dwmw2@infradead.org>
First post2016-02-01 15:50 +0100
Last post2016-02-01 15:50 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v4.4-rc8] jffs2: xattr: Silence frame size warning David Woodhouse <dwmw2@infradead.org> - 2016-02-01 15:50 +0100

#1323192 — Re: [PATCH v4.4-rc8] jffs2: xattr: Silence frame size warning

FromDavid Woodhouse <dwmw2@infradead.org>
Date2016-02-01 15:50 +0100
SubjectRe: [PATCH v4.4-rc8] jffs2: xattr: Silence frame size warning
Message-ID<qXnXL-4fD-101@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

On Thu, 2016-01-07 at 12:11 -0700, tim.gardner@canonical.com wrote:
> From: Tim Gardner <tim.gardner@canonical.com>
> 
> fs/jffs2/xattr.c: In function 'jffs2_build_xattr_subsystem':
> fs/jffs2/xattr.c:887:1: warning: the frame size of 1128 bytes is
> larger than 1024 bytes [-Wframe-larger-than=]
>  }

At first glance, that looks like it's just bypassing the entire
contents of that function if the allocation fails, leaving the various
data structures in an inconsistent state and raw node refs unchecked,
which will lead to lots of issues later once the mount has completed
and GC can never get unstuck.

So at the very least, your commit message is lacking the explanation of
what the implications are, and *why* you have satisfied yourself that
it's actually OK.

At worst, the patch is entirely broken.

-- 
David Woodhouse                            Open Source Technology Centre
David.Woodhouse@intel.com                              Intel Corporation

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web