Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1529510iol; Fri, 10 Jun 2022 09:15:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5PkdBtzbPRDQQhPDQw1/fKndOfn8gH/c/RVKLOQaRQL0hdWK4DpFlpl3o9i9DPJrABhds X-Received: by 2002:a17:902:e0d1:b0:168:bedf:7146 with SMTP id e17-20020a170902e0d100b00168bedf7146mr3126239pla.107.1654877732044; Fri, 10 Jun 2022 09:15:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654877732; cv=none; d=google.com; s=arc-20160816; b=0MK7Pb8eUPaRksX2hblpCXnDf8OxHRzIX0gksUZFinUk0hD5oAqIRqKf3CUAHzmq/Z qnDFcwb6feE7t6VPMJ9V38pYIyPjr3JFEvdoMM/DJHRYnVp9Y8T7E+4KlbFuz3fGl4q5 Bhqq/RZZqDX8uR9s8NM4UIOEANBOZelkBI8OW1XiF+j09MXDeHUh/0kZnaGOXqrEoUDB 7fTfS8m16ILjSsuVJmSl+jrtmxxVeVoQqtkfg6rFhdwQ8DyENHlN6iQL32sx4FyKIwRt gLo+r/Vr+XGrxHSpZjoL01T/NT5JagEnjyjoTqKw/7y/AVqajQZ8RvJiPbtFmSEOUgmC FEHw== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=bSQ+sIz8zcajCK1UfAvvK/UqwylTlJURCq9fnVzR47Y=; b=THbl4UDqtOlf+Jq5VBTJbmOG+uh6JDlezYk59gQ0VaI7SmTBwbV4iQwg/QRv87uoCj kSBp41m2VdgTBgx0fOV+cUhZzwODBJgFXWTGg3QxBymz5anht6UKuB+D6chYOjfSDumq LK+ZihFFSQm5PoVFLDi9F22zJ+Au8GtPhNadFik1EflBrcykKIXpfOGrl25xoUgTHyh6 nbVVgYIX6jLqv6hn/r8Yp7Hel/2w5xfJGUsmOsVGnFioX//3eim6ffZOhPXHP+tCgsHk PFZbJJh8Xp1oNxHUQ01Qh58JVdBbEBngFyYZz77DvFKMZlPUNQXS5jHPHDKxOCYfpSL5 FKcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=MQwrrzF3; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h2-20020a056a00230200b0051bee43d2e1si25945241pfh.70.2022.06.10.09.15.07; Fri, 10 Jun 2022 09:15:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=MQwrrzF3; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-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 S243891AbiFJPxO (ORCPT + 99 others); Fri, 10 Jun 2022 11:53:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243788AbiFJPxN (ORCPT ); Fri, 10 Jun 2022 11:53:13 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 172E660EA; Fri, 10 Jun 2022 08:53:12 -0700 (PDT) Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 25AFjJNd032262; Fri, 10 Jun 2022 15:52:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=bSQ+sIz8zcajCK1UfAvvK/UqwylTlJURCq9fnVzR47Y=; b=MQwrrzF3bP3vo/h1XqCmKSGgf0E4rXpXkovKys9LUB9VO+gB9iefL84hIUL6LRo2nRmJ DRrJuFf+ECQfNZqn9Wt6Mo/uiLK0jQ2h7dDREu/ipMR+uMlYihu1IXGmbd1kFpwazTsP kJRZ5kOb9rJqgA0wklYm91kaCNn8ibJzQuvCQYxL9naRKFhGyFtA5Cguf2E8I+GGN9nm 4/4aYK64kDNI+LQYWLMGQcEYlfy7kSa5eca79a/vqV7PiVdi5PFwXE9xJQ1wYLWHFJ5s hPDUEqIvuGpIwXz4yF8YfGbpsrs+vY8oEUW/OylN/TxfiliDdGS07kNt/BRMA+lc2RGx ng== Received: from ppma01fra.de.ibm.com (46.49.7a9f.ip4.static.sl-reverse.com [159.122.73.70]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3gm6na379a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 10 Jun 2022 15:52:49 +0000 Received: from pps.filterd (ppma01fra.de.ibm.com [127.0.0.1]) by ppma01fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 25AFo9e9016261; Fri, 10 Jun 2022 15:52:47 GMT Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by ppma01fra.de.ibm.com with ESMTP id 3gfy19enwh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 10 Jun 2022 15:52:47 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 25AFqhx318415962 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Jun 2022 15:52:43 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CB7454C046; Fri, 10 Jun 2022 15:52:43 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 797EF4C044; Fri, 10 Jun 2022 15:52:43 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 10 Jun 2022 15:52:43 +0000 (GMT) From: Sumanth Korikkar To: willy@infradead.org Cc: linux-ext4@vger.kernel.org, gerald.schaefer@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, linux-f2fs-devel@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-nilfs@vger.kernel.org, Sumanth Korikkar Subject: Re: [PATCH 06/10] hugetlbfs: Convert remove_inode_hugepages() to use filemap_get_folios() Date: Fri, 10 Jun 2022 17:52:05 +0200 Message-Id: <20220610155205.3111213-1-sumanthk@linux.ibm.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220605193854.2371230-7-willy@infradead.org> References: <20220605193854.2371230-7-willy@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: wQqqksoe1OrZQuDk_A2piaIbic5IpPOh X-Proofpoint-ORIG-GUID: wQqqksoe1OrZQuDk_A2piaIbic5IpPOh X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.517,FMLib:17.11.64.514 definitions=2022-06-10_06,2022-06-09_02,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 priorityscore=1501 impostorscore=0 mlxlogscore=825 clxscore=1011 adultscore=0 suspectscore=0 lowpriorityscore=0 spamscore=0 mlxscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2204290000 definitions=main-2206100061 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Hi, The kernel crashes with the following backtrace on linux-next: [ 203.304451] kernel BUG at fs/inode.c:612! [ 203.304466] invalid opcode: 0000 [#1] PREEMPT SMP PTI [ 203.305215] CPU: 0 PID: 868 Comm: alloc-instantia Not tainted 5.19.0-rc1-next-20220609 #256 [ 203.305563] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-6.fc35 04/01/2014 [ 203.305922] RIP: 0010:clear_inode+0x6e/0x80 [ 203.306139] Code: 00 a8 20 74 29 a8 40 75 27 48 8b 93 18 01 00 00 48 8d 83 18 01 00 00 48 39 c2 75 16 48 c7 83 98 00 00 00 60 00 00 00 5b 5d c3 <0f> 0b 0f 0b 0f 0b 0f 0b 0f 0b 0f 1f 84 00 00 00 00 00 0f 1f 44 00 [ 203.306827] RSP: 0018:ffffa49dc07cbde8 EFLAGS: 00010002 [ 203.307074] RAX: 0000000000000000 RBX: ffff8bf4cecc4010 RCX: 0000000000069600 [ 203.307380] RDX: 0000000000000001 RSI: ffffffff929b5b2b RDI: 0000000000000000 [ 203.307715] RBP: ffff8bf4cecc4180 R08: 000003fffffffffe R09: ffffffffffffffc0 [ 203.307988] R10: ffff8bf4ca515ec8 R11: ffffa49dc07cbc68 R12: ffff8bf4cecc4118 [ 203.308256] R13: ffff8bf4cf029a80 R14: ffff8bf4cb2ce900 R15: ffff8bf4c79b8848 [ 203.308591] FS: 0000000000000000(0000) GS:ffff8bf533000000(0000) knlGS:0000000000000000 [ 203.309033] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 203.309327] CR2: 00007fadbf5d3838 CR3: 000000016520c000 CR4: 00000000000006f0 [ 203.309661] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 203.309997] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 203.310330] Call Trace: [ 203.310534] [ 203.310733] evict+0xc3/0x1c0 [ 203.310956] __dentry_kill+0xd6/0x170 [ 203.311196] dput+0x144/0x2e0 [ 203.311416] __fput+0xdb/0x240 [ 203.311634] task_work_run+0x5c/0x90 [ 203.311876] do_exit+0x317/0xa80 [ 203.312104] do_group_exit+0x2d/0x90 [ 203.312337] __x64_sys_exit_group+0x14/0x20 [ 203.312599] do_syscall_64+0x3b/0x90 [ 203.312816] entry_SYSCALL_64_after_hwframe+0x46/0xb0 [ 203.313064] RIP: 0033:0x7fadbf4f2711 [ 203.313275] Code: Unable to access opcode bytes at RIP 0x7fadbf4f26e7. [ 203.313559] RSP: 002b:00007fff6b0e0458 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 203.313932] RAX: ffffffffffffffda RBX: 00007fadbf5cf9e0 RCX: 00007fadbf4f2711 [ 203.314228] RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000 [ 203.314523] RBP: 0000000000000000 R08: ffffffffffffff80 R09: 0000000000000000 [ 203.314821] R10: 00007fadbf3dffa8 R11: 0000000000000246 R12: 00007fadbf5cf9e0 [ 203.315120] R13: 0000000000000000 R14: 00007fadbf5d4ee8 R15: 00007fadbf5d4f00 [ 203.315431] [ 203.315606] Modules linked in: zram zsmalloc xfs libcrc32c [ 203.315875] ---[ end trace 0000000000000000 ]--- [ 203.315876] RIP: 0010:clear_inode+0x6e/0x80 [ 203.315878] Code: 00 a8 20 74 29 a8 40 75 27 48 8b 93 18 01 00 00 48 8d 83 18 01 00 00 48 39 c2 75 16 48 c7 83 98 00 00 00 60 00 00 00 5b 5d c3 <0f> 0b 0f 0b 0f 0b 0f 0b 0f 0b 0f 1f 84 00 00 00 00 00 0f 1f 44 00 [ 203.315879] RSP: 0018:ffffa49dc07cbde8 EFLAGS: 00010002 [ 203.315880] RAX: 0000000000000000 RBX: ffff8bf4cecc4010 RCX: 0000000000069600 [ 203.315881] RDX: 0000000000000001 RSI: ffffffff929b5b2b RDI: 0000000000000000 [ 203.315881] RBP: ffff8bf4cecc4180 R08: 000003fffffffffe R09: ffffffffffffffc0 [ 203.315882] R10: ffff8bf4ca515ec8 R11: ffffa49dc07cbc68 R12: ffff8bf4cecc4118 [ 203.315883] R13: ffff8bf4cf029a80 R14: ffff8bf4cb2ce900 R15: ffff8bf4c79b8848 [ 203.315884] FS: 0000000000000000(0000) GS:ffff8bf533000000(0000) knlGS:0000000000000000 [ 203.315886] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 203.315887] CR2: 00007fadbf5d3838 CR3: 000000016520c000 CR4: 00000000000006f0 [ 203.315887] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 203.315888] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 203.315889] note: alloc-instantia[868] exited with preempt_count 1 [ 203.315890] Fixing recursive fault but reboot is needed! [ 203.315892] BUG: scheduling while atomic: alloc-instantia/868/0x00000000 [ 203.315893] Modules linked in: zram zsmalloc xfs libcrc32c [ 203.315894] Preemption disabled at: [ 203.315895] [<0000000000000000>] 0x0 [ 203.315896] CPU: 0 PID: 868 Comm: alloc-instantia Tainted: G D 5.19.0-rc1-next-20220609 #256 [ 203.315898] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-6.fc35 04/01/2014 [ 203.315898] Call Trace: [ 203.315900] [ 203.315901] dump_stack_lvl+0x34/0x44 [ 203.315905] __schedule_bug.cold+0x7d/0x8b [ 203.315907] __schedule+0x624/0x700 [ 203.315908] ? _printk+0x58/0x6f [ 203.315911] do_task_dead+0x3f/0x50 [ 203.315913] make_task_dead.cold+0x51/0xab [ 203.315914] rewind_stack_and_make_dead+0x17/0x17 [ 203.315917] RIP: 0033:0x7fadbf4f2711 [ 203.315918] Code: Unable to access opcode bytes at RIP 0x7fadbf4f26e7. [ 203.315918] RSP: 002b:00007fff6b0e0458 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 203.315919] RAX: ffffffffffffffda RBX: 00007fadbf5cf9e0 RCX: 00007fadbf4f2711 [ 203.315920] RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000 [ 203.315921] RBP: 0000000000000000 R08: ffffffffffffff80 R09: 0000000000000000 [ 203.315921] R10: 00007fadbf3dffa8 R11: 0000000000000246 R12: 00007fadbf5cf9e0 [ 203.315922] R13: 0000000000000000 R14: 00007fadbf5d4ee8 R15: 00007fadbf5d4f00 [ 203.315924] * Bisected the crash to this commit. To reproduce: * clone libhugetlbfs: * Execute, PATH=$PATH:"obj64/" LD_LIBRARY_PATH=../obj64/ alloc-instantiate-race shared Crashes on both s390 and x86. Thanks -- Sumanth