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


Groups > linux.kernel > #1407420

Re: can't boot with reiserfs on linux-4.6.0+

From Jeff Chua <jeff.chua.linux@gmail.com>
Newsgroups linux.kernel
Subject Re: can't boot with reiserfs on linux-4.6.0+
Date 2016-05-26 09:30 +0200
Message-ID <rCXTY-3sg-17@gated-at.bofh.it> (permalink)
References <rCllE-4jI-11@gated-at.bofh.it> <rCmUp-5cU-13@gated-at.bofh.it> <rCppf-6R7-5@gated-at.bofh.it> <rCDsd-7KY-17@gated-at.bofh.it> <rCJnY-2Kq-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, May 25, 2016 at 11:51 PM, Al Viro <viro@zeniv.linux.org.uk> wrote:
> On Wed, May 25, 2016 at 05:30:22PM +0800, Jeff Chua wrote:
>> On Wed, May 25, 2016 at 2:37 AM, Al Viro <viro@zeniv.linux.org.uk> wrote:
>> > On Tue, May 24, 2016 at 04:59:02PM +0100, Al Viro wrote:
>> >
>> >> Umm...  Any chance of getting the function names to go with the addresses?
>> >> I'll try to reproduce it here, but the things would be easier with that
>> >> information...
>> >
>> > See if this fixes your reproducer.
>> >
>> > diff --git a/fs/xattr.c b/fs/xattr.c
>> > index b11945e..49b8eab 100644
>> > --- a/fs/xattr.c
>> > +++ b/fs/xattr.c
>> > @@ -667,6 +667,9 @@ xattr_resolve_name(const struct xattr_handler **handlers, const char **name)
>> >  {
>> >         const struct xattr_handler *handler;
>> >
>> > +       if (!handlers)
>> > +               return NULL;
>> > +
>> >         if (!*name)
>> >                 return NULL;
>> >
>>
>> Tried, but doesn't work.
>
> D'oh...  Since "vfs: Distinguish between full xattr names and proper prefixes"
> we really need to return ERR_PTR() there (and I even have a patch from Andreas
> fixing that if (!*name) return NULL; in my queue).  Combined delta to test
> (that'll go as two commits, one mine, one his):
>

Al, Linus,

Great that worked! And I see the patch is already in Linus's tree.

Thanks for the quick response and fixes.

Jeff.


> diff --git a/fs/xattr.c b/fs/xattr.c
> index b11945e..fc81e77 100644
> --- a/fs/xattr.c
> +++ b/fs/xattr.c
> @@ -655,6 +655,7 @@ strcmp_prefix(const char *a, const char *a_prefix)
>   * operations to the correct xattr_handler.
>   */
>  #define for_each_xattr_handler(handlers, handler)              \
> +       if (handlers)                                           \
>                 for ((handler) = *(handlers)++;                 \
>                         (handler) != NULL;                      \
>                         (handler) = *(handlers)++)
> @@ -668,7 +669,7 @@ xattr_resolve_name(const struct xattr_handler **handlers, const char **name)
>         const struct xattr_handler *handler;
>
>         if (!*name)
> -               return NULL;
> +               return ERR_PTR(-EINVAL);
>
>         for_each_xattr_handler(handlers, handler) {
>                 const char *n;

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

can't boot with reiserfs on linux-4.6.0+ Jeff Chua <jeff.chua.linux@gmail.com> - 2016-05-24 16:20 +0200
  Re: can't boot with reiserfs on linux-4.6.0+ Al Viro <viro@ZenIV.linux.org.uk> - 2016-05-24 18:00 +0200
    Re: can't boot with reiserfs on linux-4.6.0+ Linus Torvalds <torvalds@linux-foundation.org> - 2016-05-24 18:20 +0200
      Re: can't boot with reiserfs on linux-4.6.0+ Jeff Chua <jeff.chua.linux@gmail.com> - 2016-05-25 10:40 +0200
    Re: can't boot with reiserfs on linux-4.6.0+ Al Viro <viro@ZenIV.linux.org.uk> - 2016-05-24 20:40 +0200
      Re: can't boot with reiserfs on linux-4.6.0+ Jeff Chua <jeff.chua.linux@gmail.com> - 2016-05-25 11:40 +0200
        Re: can't boot with reiserfs on linux-4.6.0+ Al Viro <viro@ZenIV.linux.org.uk> - 2016-05-25 18:00 +0200
          Re: can't boot with reiserfs on linux-4.6.0+ Jeff Chua <jeff.chua.linux@gmail.com> - 2016-05-26 09:30 +0200
        Re: can't boot with reiserfs on linux-4.6.0+ Linus Torvalds <torvalds@linux-foundation.org> - 2016-05-25 18:00 +0200

csiph-web