Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1326204
| From | Jiri Kosina <jikos@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: mm: uninterruptable tasks hanged on mmap_sem |
| Date | 2016-02-04 00:40 +0100 |
| Message-ID | <qYfbH-uu-1@gated-at.bofh.it> (permalink) |
| References | <qXQdk-cA-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, 2 Feb 2016, Dmitry Vyukov wrote:
> If the following program run in a parallel loop, eventually it leaves
> hanged uninterruptable tasks on mmap_sem.
I am now able to reproduce the issue and will be looking into it.
[ .. snip .. ]
> // autogenerated by syzkaller (http://github.com/google/syzkaller)
> #include <pthread.h>
> #include <stdint.h>
> #include <string.h>
> #include <sys/syscall.h>
> #include <unistd.h>
>
> #ifndef SYS_mlock2
> #define SYS_mlock2 325
> #endif
>
> long r[7];
>
> void* thr(void* arg)
> {
> switch ((long)arg) {
> case 0:
> r[0] = syscall(SYS_mmap, 0x20000000ul, 0x1000ul, 0x3ul, 0x32ul,
> 0xfffffffffffffffful, 0x0ul);
> break;
> case 1:
> memcpy((void*)0x20000000, "\x2f\x64\x65\x76\x2f\x66\x64\x23", 8);
The memcpy() can be removed and the problem still triggers reliably for
me.
> case 3:
> r[4] = syscall(SYS_mmap, 0x20002000ul, 0x1000ul, 0x3ul, 0x812ul,
> r[2], 0x0ul);
0x812 made me wonder (it's not really meaningful flags value), but the bug
triggers also with 0x12.
--
Jiri Kosina
SUSE Labs
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
mm: uninterruptable tasks hanged on mmap_sem Dmitry Vyukov <dvyukov@google.com> - 2016-02-02 22:00 +0100
Re: mm: uninterruptable tasks hanged on mmap_sem Jiri Kosina <jikos@kernel.org> - 2016-02-02 22:10 +0100
Re: mm: uninterruptable tasks hanged on mmap_sem Dmitry Vyukov <dvyukov@google.com> - 2016-02-02 22:20 +0100
Re: mm: uninterruptable tasks hanged on mmap_sem Jiri Kosina <jikos@kernel.org> - 2016-02-02 22:30 +0100
Re: mm: uninterruptable tasks hanged on mmap_sem Dmitry Vyukov <dvyukov@google.com> - 2016-02-02 22:40 +0100
Re: mm: uninterruptable tasks hanged on mmap_sem Dmitry Vyukov <dvyukov@google.com> - 2016-02-02 22:30 +0100
Re: mm: uninterruptable tasks hanged on mmap_sem Dmitry Vyukov <dvyukov@google.com> - 2016-02-03 14:20 +0100
Re: mm: uninterruptable tasks hanged on mmap_sem Jiri Kosina <jikos@kernel.org> - 2016-02-03 14:20 +0100
Re: mm: uninterruptable tasks hanged on mmap_sem Jiri Kosina <jikos@kernel.org> - 2016-02-04 00:40 +0100
[PATCH] floppy: refactor open() flags handling (was Re: mm: uninterruptable tasks hanged on mmap_sem) Jiri Kosina <jikos@kernel.org> - 2016-02-04 22:30 +0100
Re: [PATCH] floppy: refactor open() flags handling (was Re: mm: uninterruptable tasks hanged on mmap_sem) Dmitry Vyukov <dvyukov@google.com> - 2016-02-05 14:50 +0100
[PATCH v2] floppy: refactor open() flags handling (was Re: mm: uninterruptable tasks hanged on mmap_sem) Jiri Kosina <jikos@kernel.org> - 2016-02-05 15:00 +0100
Re: [PATCH v2] floppy: refactor open() flags handling (was Re: mm: uninterruptable tasks hanged on mmap_sem) Dmitry Vyukov <dvyukov@google.com> - 2016-02-05 15:30 +0100
Re: [PATCH v2] floppy: refactor open() flags handling (was Re: mm: uninterruptable tasks hanged on mmap_sem) Jiri Kosina <jikos@kernel.org> - 2016-02-05 17:50 +0100
Re: [PATCH v2] floppy: refactor open() flags handling (was Re: mm: uninterruptable tasks hanged on mmap_sem) Dmitry Vyukov <dvyukov@google.com> - 2016-02-05 22:20 +0100
csiph-web