From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753292AbbKWL43 (ORCPT ); Mon, 23 Nov 2015 06:56:29 -0500 Received: from mx2.suse.de ([195.135.220.15]:50529 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752112AbbKWL42 (ORCPT ); Mon, 23 Nov 2015 06:56:28 -0500 Date: Mon, 23 Nov 2015 12:56:24 +0100 From: Jan Kara To: Dmitry Vyukov Cc: Jan Kara , Al Viro , "linux-fsdevel@vger.kernel.org" , LKML , Andrew Morton , syzkaller , Kostya Serebryany , Alexander Potapenko , Sasha Levin , Eric Dumazet Subject: Re: another uninterruptable hang in sendfile Message-ID: <20151123115624.GG23418@quack.suse.cz> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 20-11-15 17:16:06, Dmitry Vyukov wrote: > Hello, > > On commit 8005c49d9aea74d382f474ce11afbbc7d7130bec (Nov 15). > > The program is: > > // autogenerated by syzkaller (http://github.com/google/syzkaller) > #define _GNU_SOURCE > #include > #include > #include > #include > #include > > #define SYS_memfd_create 319 > > int main() > { > int r1 = eventfd(0, 0); > int r2 = syscall(SYS_memfd_create, "", 0); > unsigned long n = 1<<30; > fallocate(r2, 0, 0, n); > sendfile(r1, r2, 0, n); > return 0; > } > > It can be executed under non-privileged user and creates an unkillable > process. It probably will terminate eventually, but it can take > days/weeks. Note that "mm: make sendfile(2) killable" > 296291cdd1629c308114504b850dc343eabc2782 is merged, so it is something > different. Though, probably similar. Thanks for the report. Yes, the nature of the problem is similar but here we don't hit standard filesystem write path where a signal test is. I'll send a fix which fixes the issue for me shortly. BTW, this test actually doesn't hang for me but rather burns CPU all the time and thus causes also softlockups / RCU stalls. I'll send a fix for that as well. Honza -- Jan Kara SUSE Labs, CR