From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by kanga.kvack.org (Postfix) with ESMTP id 83FA382963 for ; Wed, 3 Feb 2016 18:34:46 -0500 (EST) Received: by mail-wm0-f51.google.com with SMTP id 128so2951160wmz.1 for ; Wed, 03 Feb 2016 15:34:46 -0800 (PST) Received: from mx2.suse.de (mx2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id b6si34101454wma.49.2016.02.03.15.34.45 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Feb 2016 15:34:45 -0800 (PST) Date: Thu, 4 Feb 2016 00:34:43 +0100 (CET) From: Jiri Kosina Subject: Re: mm: uninterruptable tasks hanged on mmap_sem In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Dmitry Vyukov Cc: Andrew Morton , "Kirill A. Shutemov" , Oleg Nesterov , Konstantin Khlebnikov , "linux-mm@kvack.org" , LKML , Takashi Iwai , syzkaller , Kostya Serebryany , Alexander Potapenko , Sasha Levin 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 > #include > #include > #include > #include > > #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 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org