[lkml]   [2019]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [GIT PULL] compiler-attributes for v5.3-rc8
On Thu, Sep 5, 2019 at 9:20 AM Linus Torvalds
<> wrote:
> On Wed, Sep 4, 2019 at 11:18 AM Miguel Ojeda
> <> wrote:
> >
> > I was going to send this for 5.4 since it is not that trivial, but since
> > you are doing an -rc8, and it fixes an oops, please consider pulling it.
> I looked at this, and while it seems safe, I end up worrying.
> Macro stringification isn't entirely obvious, and an unquoted string
> could become corrupted if the stringification ends up not happening
> immediately.
> It does seem safe just because we do
> #define __section(S) __attribute__((__section__(#S)))
> but I had to go _check_ that we do, because it wouldn't have been safe
> if there had been another level of macro expansion, because then the
> argument in turn could have been expanded before it was stringified.
> So sometimes you actually _want_ to pass in a string to be
> stringified, because it's safer. I realize it then gets string-quoted,
> but this has worked for gcc. Even if I suspect nobody really _thought_
> about it.
> So I'm not unhappy about the patch, but it's the kind of thing I'd
> really prefer not to do at this stage.
> Particularly since it seems to do other things too than just fix
> double quoting. As far as I can tell, it doesn't just fix double
> string quoting, it changes a lot of singly-quoted strings to use the
> macro and unquotes them, ie
> - __attribute__((__section__(""))) = { \
> + __section( = { \
> doesn't actually "fix" anything that I can see, it just uses the simpler form.

Please consider picking up just:
That lone patch is the one that fixes the particularly observed Oops.
The rest are just cleanup; if I made that change in the more important
patch, why not clean up the rest of the instances in the kernel?
~Nick Desaulniers

 \ /
  Last update: 2019-09-05 19:19    [W:0.130 / U:15.796 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site