Received: by 10.223.176.5 with SMTP id f5csp3753939wra; Mon, 29 Jan 2018 19:05:41 -0800 (PST) X-Google-Smtp-Source: AH8x227WZjZk2EId+4ROaPXjoLytOT7J9yaAGF8y3l4OwYc2OuasZmVrmyE/+bKV57zFtBCms5Sr X-Received: by 2002:a17:902:7844:: with SMTP id e4-v6mr3824591pln.83.1517281541814; Mon, 29 Jan 2018 19:05:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517281541; cv=none; d=google.com; s=arc-20160816; b=E+FlbjxFlhiJBMZNE0bW+/QWujQP67syYEEq9veUita/OcX/u21IrL9OMxm4SBWJ/E qo//lgul2xUD2V4HIEyNCjYaKuG0P4FY/FEIEBK7T11yVmWCfimfYbhw2ioq1Q7O6DIU 893qUPbye5AB0Bnh7F/+S+W8LlcVGYc24lQr3IdWL0i7XAsJHuVqSNbYRo+0hnHz150R qdni8gHNeCFaTlwQUhV+GLUhtP+D6FFA+3zAolBaMNzfWhpaDQiq4u1YYQWQy2SErXMC x66VCil5PLAo85gIhLSvlh2CtkUPNTLGsrxrDvbT3iWM2ik47NARehsAuFBgsSIwVhtk Ypkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=XSCmLUYPMNtns+zTjUTUIbCQDR7ekWie4TjN1ehNL5s=; b=y4vguhYxNXADzKHUgUKnql2Up8wzT9TU/itOlA/DOqxIwHwIdL+guxmw3GzM+LKptb lujymVOIXr5txbfs8+ilhxqvXA2PziQWEcphmOJabUFBMdImOyzoh3l7Ae0wabuHFbqs SKMmWJ+WBJVQkfWEGSAloi2kUOfpmGkjAcjHfr8oVI6ClTjLb1+8YtOweIBeqW5JyuO9 HiFr+NbUeqL9lFT0yf0OeeIiHIOqYkkgJafIEfDED/GP0+U+sHvX/83CUeUJUIgF9OPP 8FrL5Uug7x2q8ahTs8HLrYxdXWQoSVjMrQZvvrXEzQa7Gf294LZFP6i95sBnLoastsK/ AFnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=N80LDWrE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r63-v6si2466719plb.788.2018.01.29.19.05.26; Mon, 29 Jan 2018 19:05:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=N80LDWrE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752544AbeA3DFD (ORCPT + 99 others); Mon, 29 Jan 2018 22:05:03 -0500 Received: from mail-it0-f66.google.com ([209.85.214.66]:54416 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752076AbeA3DFC (ORCPT ); Mon, 29 Jan 2018 22:05:02 -0500 Received: by mail-it0-f66.google.com with SMTP id k131so10805188ith.4 for ; Mon, 29 Jan 2018 19:05:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=XSCmLUYPMNtns+zTjUTUIbCQDR7ekWie4TjN1ehNL5s=; b=N80LDWrEU1pXUCW++XFBnZ4L6+cuBfvqlG/DCljHLeeG48x2O4utYwjnYUSzdHwxpL KmZHb4CDKgyU2vCLvDUSWv+zVn47ix1kEAEW64XRbu/lVtg9n6EtjBjfLyzW1RztCAYC 48NhVSj3BHx1cKCzr8uicG8Xkzd66o46mjgckOT7RtNbqbh/IzXA9f3kiRg08RX0Hpm3 2dxJqfbwBF+1SWSauekSWhR3t/QO1xs/Mwd8en/pVse85F9lTNVzPBn/u79L0t3FjjkF IPdvFOirB9cun6XyWwFtl828fe3cZQwi8VsYqY26aoYoDElTBYMk56qZRAoQ4bzqYuk8 0XyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=XSCmLUYPMNtns+zTjUTUIbCQDR7ekWie4TjN1ehNL5s=; b=g2RPMWY1DdRUZagZ9kREfUNVYTAyurdKKFUGfUaQHMEKinGGji8VFNKcQWFvixwNHh DDCP/ka/SK6AImn/wJnfCR2ix3KIMnI9bYcBHgJY7br9iS5V9WlJalGIbHkKrmFw1DPO 6LJIJBsrCJ237IowGiLHzh4xW2yj2E03+25TRxjJ+mzdWtGmlaL1yW8SG0KGimMxhl8N AMGaxf/aXY2PmD/EzKBn6Hu9SSAz0+jCc7CGdI9iIYvI3z4CyI5UoLUFCJ5YlNp3GBi0 PWjOO70IbRxXRuDP1C6rTP9E2kww6sS5PeKpiYijlLYAjKP+m1WEioABSzsHRWaNDB0t qVyw== X-Gm-Message-State: AKwxyteMrUV2FNgo9HvnBR+ZsH44bVCFT3KdKWePsLTFD/va/e7Q1OGR 83unJqtW8D9Wpny++Uguly4b/sfJAJoS9dk+JAyPTw== X-Received: by 10.36.218.196 with SMTP id z187mr10600333itg.122.1517281500929; Mon, 29 Jan 2018 19:05:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.172.135 with HTTP; Mon, 29 Jan 2018 19:05:00 -0800 (PST) In-Reply-To: References: <001a1144d6e854b3c90562668d74@google.com> <20180124174723.25289-1-joelaf@google.com> From: Joel Fernandes Date: Mon, 29 Jan 2018 19:05:00 -0800 Message-ID: Subject: Re: possible deadlock in shmem_file_llseek To: Dmitry Vyukov Cc: LKML , syzbot , Hugh Dickins , Linux-MM , syzkaller-bugs@googlegroups.com Content-Type: multipart/mixed; boundary="94eb2c0af81ae4641f0563f5a026" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --94eb2c0af81ae4641f0563f5a026 Content-Type: text/plain; charset="UTF-8" On Wed, Jan 24, 2018 at 10:40 AM, Dmitry Vyukov wrote: > On Wed, Jan 24, 2018 at 6:47 PM, Joel Fernandes wrote: >> >> #syz test: https://github.com/joelagnel/linux.git test-ashmem Here's an updated patch. Just wanted to test it once more. thanks, - Joel --94eb2c0af81ae4641f0563f5a026 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-ashmem-Fix-lockdep-issue-during-llseek.patch" Content-Disposition: attachment; filename="0001-ashmem-Fix-lockdep-issue-during-llseek.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_jd127f2q1 RnJvbSBlN2Q3MzM2MmVkMzc4NDk5Nzk1ZjI3ZTJkYTYxODRkMGIyNDJiODljIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBKb2VsIEZlcm5hbmRlcyA8am9lbGFmQGdvb2dsZS5jb20+CkRh dGU6IFdlZCwgMjQgSmFuIDIwMTggMDk6NDc6MjMgLTA4MDAKU3ViamVjdDogW1BBVENIXSBhc2ht ZW06IEZpeCBsb2NrZGVwIGlzc3VlIGR1cmluZyBsbHNlZWsKCmFzaG1lbV9tdXRleCBjcmVhdGUg YSBjaGFpbiBvZiBkZXBlbmRlbmNpZXMgbGlrZSBzbzoKCigxKQptbWFwIHN5c2NhbGwgLT4KICBt bWFwX3NlbSAtPiAgKGFjcXVpcmVkKQogIGFzaG1lbV9tbWFwCiAgYXNobWVtX211dGV4ICh0cnkg dG8gYWNxdWlyZSkKICAoYmxvY2spCgooMik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