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


Groups > linux.debian.kernel > #57974 > unrolled thread

Bug#864453: fanotify07 LTP testcase hangs process

Started byHelge Deller <deller@gmx.de>
First post2017-06-08 21:30 +0200
Last post2017-06-12 17:10 +0200
Articles 6 — 3 participants

Back to article view | Back to linux.debian.kernel


Contents

  Bug#864453: fanotify07 LTP testcase hangs process Helge Deller <deller@gmx.de> - 2017-06-08 21:30 +0200
    Processed: Re: Bug#864453: fanotify07 LTP testcase hangs process owner@bugs.debian.org (Debian Bug Tracking System) - 2017-06-12 17:10 +0200
    Bug#864453: fanotify07 LTP testcase hangs process Ben Hutchings <ben@decadent.org.uk> - 2017-06-12 17:10 +0200
      Bug#864453: fanotify07 LTP testcase hangs process Helge Deller <deller@gmx.de> - 2017-06-18 10:50 +0200
        Bug#864453: fanotify07 LTP testcase hangs process Ben Hutchings <ben@decadent.org.uk> - 2017-06-18 18:20 +0200
    Processed: Re: Bug#864453: fanotify07 LTP testcase hangs process owner@bugs.debian.org (Debian Bug Tracking System) - 2017-06-12 17:10 +0200

#57974 — Bug#864453: fanotify07 LTP testcase hangs process

FromHelge Deller <deller@gmx.de>
Date2017-06-08 21:30 +0200
SubjectBug#864453: fanotify07 LTP testcase hangs process
Message-ID<tQbi2-8li-17@gated-at.bofh.it>
Package: linux
Version: 4.9.30

The LTP testcase fanotify07 creates hanging processes
with debian kernel 4.9.30 on the hppa platform.

In the source code of LTP's fanotify07.c testcase one can read:
 * Kernel crashes should be fixed by:
 *  96d41019e3ac "fanotify: fix list corruption in fanotify_get_response()"
 *
 * Kernel hangs should be fixed by:
 *  05f0e38724e8 "fanotify: Release SRCU lock when waiting for userspace response"

It seems upstream commit 
05f0e38724e8 "fanotify: Release SRCU lock when waiting for userspace response"
is missing in stable kernel 4.9.30 (and debian kernel), which explains why the
testcase hangs.
I didn't checked if the kernel crash fix is in 4.9.30.

Can you backport at least the commit 05f0e38724e8 ?

Thanks,
Helge

[toc] | [next] | [standalone]


#58008 — Processed: Re: Bug#864453: fanotify07 LTP testcase hangs process

Fromowner@bugs.debian.org (Debian Bug Tracking System)
Date2017-06-12 17:10 +0200
SubjectProcessed: Re: Bug#864453: fanotify07 LTP testcase hangs process
Message-ID<tRz8B-3G2-1@gated-at.bofh.it>
In reply to#57974
Processing control commands:

> found -1 4.9.30-1
Bug #864453 [src:linux] fanotify07 LTP testcase hangs process
Ignoring request to alter found versions of bug #864453 to the same values previously set
> notfound -1 4.9.30
Bug #864453 [src:linux] fanotify07 LTP testcase hangs process
The source 'linux' and version '4.9.30' do not appear to match any binary packages
Ignoring request to alter found versions of bug #864453 to the same values previously set
> severity -1 important
Bug #864453 [src:linux] fanotify07 LTP testcase hangs process
Ignoring request to change severity of Bug 864453 to the same value.
> tag -1 upstream fixed-upstream
Bug #864453 [src:linux] fanotify07 LTP testcase hangs process
Ignoring request to alter tags of bug #864453 to the same tags previously set

-- 
864453: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864453
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

[toc] | [prev] | [next] | [standalone]


#58009

FromBen Hutchings <ben@decadent.org.uk>
Date2017-06-12 17:10 +0200
Message-ID<tRz8B-3G2-3@gated-at.bofh.it>
In reply to#57974

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

Control: found -1 4.9.30-1
Control: notfound -1 4.9.30
Control: severity -1 important
Control: tag -1 upstream fixed-upstream

On Thu, 2017-06-08 at 21:23 +0200, Helge Deller wrote:
> Package: linux
> Version: 4.9.30
> 
> The LTP testcase fanotify07 creates hanging processes
> with debian kernel 4.9.30 on the hppa platform.
> 
> In the source code of LTP's fanotify07.c testcase one can read:
>  * Kernel crashes should be fixed by:
>  *  96d41019e3ac "fanotify: fix list corruption in fanotify_get_response()"
>  *
>  * Kernel hangs should be fixed by:
>  *  05f0e38724e8 "fanotify: Release SRCU lock when waiting for userspace response"
> 
> It seems upstream commit 
> 05f0e38724e8 "fanotify: Release SRCU lock when waiting for userspace response"
> is missing in stable kernel 4.9.30 (and debian kernel), which explains why the
> testcase hangs.
> I didn't checked if the kernel crash fix is in 4.9.30.
> 
> Can you backport at least the commit 05f0e38724e8 ?

This appears to depend on commit 9385a84d7e1f which looks hard to
backport.

Ben.

-- 
Ben Hutchings
Unix is many things to many people,
but it's never been everything to anybody.

[toc] | [prev] | [next] | [standalone]


#58055

FromHelge Deller <deller@gmx.de>
Date2017-06-18 10:50 +0200
Message-ID<tTE49-2Q6-3@gated-at.bofh.it>
In reply to#58009
On 12.06.2017 16:58, Ben Hutchings wrote:
> On Thu, 2017-06-08 at 21:23 +0200, Helge Deller wrote:
>> Can you backport at least the commit 05f0e38724e8 ?
> 
> This appears to depend on commit 9385a84d7e1f which looks hard to backport.

Ben, if it's too much work, maybe just don't do it.
I think the upstream maintainer wrote something in his commit
message that fixing this issue in backports might be hard/impossible.

When running the testsuite, the kernel additionally reported that processes
may hang, and tainted itself accordingly. Sadly I don't have the
exact kernel message at hand right now.

Helge

[toc] | [prev] | [next] | [standalone]


#58056

FromBen Hutchings <ben@decadent.org.uk>
Date2017-06-18 18:20 +0200
Message-ID<tTL5D-7nl-1@gated-at.bofh.it>
In reply to#58055

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

On Sun, 2017-06-18 at 10:40 +0200, Helge Deller wrote:
> On 12.06.2017 16:58, Ben Hutchings wrote:
> > On Thu, 2017-06-08 at 21:23 +0200, Helge Deller wrote:
> > > Can you backport at least the commit 05f0e38724e8 ?
> > 
> > This appears to depend on commit 9385a84d7e1f which looks hard to backport.
> 
> Ben, if it's too much work, maybe just don't do it.
> I think the upstream maintainer wrote something in his commit
> message that fixing this issue in backports might be hard/impossible.
> 
> When running the testsuite, the kernel additionally reported that processes
> may hang, and tainted itself accordingly. Sadly I don't have the
> exact kernel message at hand right now.

That's a Debian-specific warning for use of fanotify permission
checking, which I suspect this test would always trigger.

Ben.

-- 
Ben Hutchings
Design a system any fool can use, and only a fool will want to use it.

[toc] | [prev] | [next] | [standalone]


#58012 — Processed: Re: Bug#864453: fanotify07 LTP testcase hangs process

Fromowner@bugs.debian.org (Debian Bug Tracking System)
Date2017-06-12 17:10 +0200
SubjectProcessed: Re: Bug#864453: fanotify07 LTP testcase hangs process
Message-ID<tRz8C-3G2-19@gated-at.bofh.it>
In reply to#57974
Processing control commands:

> found -1 4.9.30-1
Bug #864453 [src:linux] fanotify07 LTP testcase hangs process
Ignoring request to alter found versions of bug #864453 to the same values previously set
> notfound -1 4.9.30
Bug #864453 [src:linux] fanotify07 LTP testcase hangs process
The source 'linux' and version '4.9.30' do not appear to match any binary packages
Ignoring request to alter found versions of bug #864453 to the same values previously set
> severity -1 important
Bug #864453 [src:linux] fanotify07 LTP testcase hangs process
Ignoring request to change severity of Bug 864453 to the same value.
> tag -1 upstream fixed-upstream
Bug #864453 [src:linux] fanotify07 LTP testcase hangs process
Ignoring request to alter tags of bug #864453 to the same tags previously set

-- 
864453: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864453
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.kernel


csiph-web