Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4628555pxj; Tue, 22 Jun 2021 04:44:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhEA041WaM8qbscZAEtW22rEt0MMCPStRLFmFyVe/lDnPT7Fb1EtIEh4h9+Ol47i04nPtI X-Received: by 2002:a17:906:34cf:: with SMTP id h15mr3537982ejb.526.1624362277082; Tue, 22 Jun 2021 04:44:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624362277; cv=none; d=google.com; s=arc-20160816; b=LzkW9sBcw9aSVSxYyWY/uIUrjUs7299xWAJ6hycMrtc3brhfEMOJ5tyaKOaHrj0l9g VzbyMWdZxu8mCNnxVpTAcX358eLsFtf5dG3lU3u+Prvfq2wd8GEKmiS/7zeL1aONJasw zPTujB9pJ+quSwWyIraIfRvgvZ+gRToe/pRBDdrFwTWQR1PIJRfX14NDSKJf7BnEy8PT KCzd3SraNscyaOEUa5iOW7Vvq844CfFNTRz5xUie8k08GEVm1Bp8eGtDi3hbNLtrYaSj igqkhncrlBd+L0mz2YylgvKjSJnfenp4xCZc/u7rr1IBK4MbmVz1hTUpzglaX72wVScC MkDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=w9YFt1TV0R+YHglCKyHGhELI4DE/9Y1DZN4tzptcFxw=; b=vQ2JcKBEUpQj4DDbDdY41UzrD9kKvPfPyGYFUexTQuylXxV1AkX6oAm6DugCCEcyzy VpfiKf2q2sV2lUi0Nv061ImqEmir4CVtYqzqupXrNr/UJMNu34yjpZM/hT0jGbKtmGgb mu8mJpqV6hA9meWcCCydyyIwcSm4TRKegwBpNuLUc3fhqBoP5Sf/ncrbppIa22QFWKDU V4vWdlvzdw6H7JGOc/QdoWkFOWj5kHAxjtx1F6jDStIDi5Zm3QKiTBpSLi2b6Bv89rqe TxBMuDNT3RnTnFZ7oUjgLcd4t5H9MjHCjzGK/miKKswaJzpT9RFhu55kVKlNIDHj36Rm HcYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=AlLSjN2w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n12si9066553ejl.585.2021.06.22.04.44.14; Tue, 22 Jun 2021 04:44:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=AlLSjN2w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230388AbhFVLnR (ORCPT + 99 others); Tue, 22 Jun 2021 07:43:17 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:54012 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230330AbhFVLnR (ORCPT ); Tue, 22 Jun 2021 07:43:17 -0400 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 15MBdqu2082037; Tue, 22 Jun 2021 07:40:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : subject : from : to : cc : date : in-reply-to : references : content-type : mime-version : content-transfer-encoding; s=pp1; bh=w9YFt1TV0R+YHglCKyHGhELI4DE/9Y1DZN4tzptcFxw=; b=AlLSjN2w7jdiERff7QJvfYLJsX9fiTWWAfC+QX+MkG0aU7hp4WZ1dzvhyXh57J7XPDxt Uqypa0a1fXbDyWDCDh0xhJ2HOh72mqEWivvg8tzFnAoFGNXbVhoJL4X7Kv6PgVrQs/tD UVuqPcV2eXqjgnpTdsetj7wEra1+iKqlcPSEQeJhjGa9lg4LfC52gPwX/J5Jp7aO7CXD TlEKLzXGohUjWq5kDYtk4rNJKNusn4HNBD+uXd5CatXP6vyK0NTlOVSvbnkNuOx3vHKq Aw7BemvkFMO4jFbe2CTH+l0zmXG1dATNIhE/JbVgAZQ8aiuhRZ3Rk6TXFPFlYV0liD+M 4A== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 39bcm3513q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 22 Jun 2021 07:40:59 -0400 Received: from m0098396.ppops.net (m0098396.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 15MBe3k0082846; Tue, 22 Jun 2021 07:40:59 -0400 Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0a-001b2d01.pphosted.com with ESMTP id 39bcm35131-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 22 Jun 2021 07:40:59 -0400 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 15MBXvnD019176; Tue, 22 Jun 2021 11:40:57 GMT Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by ppma06ams.nl.ibm.com with ESMTP id 3997uh9dt8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 22 Jun 2021 11:40:56 +0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 15MBes8531654366 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 22 Jun 2021 11:40:54 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A4673A4055; Tue, 22 Jun 2021 11:40:54 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BD5C7A404D; Tue, 22 Jun 2021 11:40:53 +0000 (GMT) Received: from li-f45666cc-3089-11b2-a85c-c57d1a57929f.ibm.com (unknown [9.160.23.17]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 22 Jun 2021 11:40:53 +0000 (GMT) Message-ID: Subject: Re: [syzbot] possible deadlock in ovl_maybe_copy_up From: Mimi Zohar To: Amir Goldstein Cc: Hillf Danton , syzbot , linux-kernel , syzkaller-bugs Date: Tue, 22 Jun 2021 07:40:53 -0400 In-Reply-To: References: <000000000000c5b77105b4c3546e@google.com> <000000000000df47be05bf165394@google.com> <20210618040135.950-1-hdanton@sina.com> <23ba225593be391c384109af527bd0f3cb122a0d.camel@linux.ibm.com> Content-Type: text/plain; charset="ISO-8859-15" X-Mailer: Evolution 3.28.5 (3.28.5-16.el8) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: _tXHvbzhpUTDBZoW8qlSvgBxGotnSMQX X-Proofpoint-GUID: Lbl2dTPsK2-W5IZZjoM6OWbM4cYjk_zE X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-06-22_06:2021-06-21,2021-06-22 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 clxscore=1015 adultscore=0 bulkscore=0 spamscore=0 mlxlogscore=999 mlxscore=0 impostorscore=0 malwarescore=0 lowpriorityscore=0 priorityscore=1501 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2106220073 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > Should annotating the iint be limited to files on overlay filesystems? > > > > Not to overlay files specifically but to files on stacked fs, > i.e. (inode->i_sb->s_stack_depth > 0) > Assuming that this patch is tested(?), how come it did not hit the > WARN_ON_ONCE(depth < 0... above? Thanks, Amir! As per the overlayfs comment, the depth can never be 0. It sounds like in this case we only want to annotate the iint mutex for regular files, if the stacking depth is greater than 0, but less than the max depth. (I'm still trying to reproduce the lockdep.) Mimi