Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2783669rwb; Mon, 19 Sep 2022 09:52:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6cFbbwCpqw1Db51ePdoC2kSc4bmv5ekt/fDsBjgcvcZXBimeFlHkr/PkR+IqEJ+X+vvmc7 X-Received: by 2002:a50:9e8f:0:b0:453:d22d:f1d1 with SMTP id a15-20020a509e8f000000b00453d22df1d1mr7536454edf.31.1663606359560; Mon, 19 Sep 2022 09:52:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1663606359; cv=pass; d=google.com; s=arc-20160816; b=XO/xaB3G+rSvVa210DpVVoF1aoOc3cHdguBI9OKUvc2rip7d6UxFsPA6SSy03eABPn jsqmiBb7P6YfZLMuyj6dLScdb5Ae9xhcByvfnXc3ygPiDpJKTj6Np5H15coAePLbMsfo gvbdLWf9uoZL8FlmCb+WMPSUZ05EnUH6lBw9vyV/1rVfM9Mo8xeA3wc4SUhPJwOCyHUB LuMVRnMOryiN6IBCE8FjAhkwmnOJIbChlUROGjXoNEo50+xaHLknr0YD5EWqmkYcf3Yk tQwgpHT/blJroKITD5VPJBCkJoY+uRdhmX04no8mPQnWMBijCy8b+SR367SEjJEnqUGo m1PA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:content-language:references:cc:to:subject:from :user-agent:date:message-id:dkim-signature:dkim-signature; bh=q7nsF7Y6j8Adg3zUlyVE7tP8c6rDlijvNUspRrEjF30=; b=tB2PR5VONVf7EPduzXO4XR9dAV6Hd7nA7S7n559FePxcbBsJS/rDjmi+KD+6Fh2E3l eDPKNWB8OCBNTMyeQOMmdi4zZ8J/t0LFhSFGzHsfZwEZc+VNp5xU/odwhfs8ZG6lgi4d A41VRhWWuS4xWJnen2jggjUOQE+TJjfBGSDxxk8mozmVjvVPzSm2MteW5U2lnqaWzwnY NfrHEM8fVUAm4QNHHC7TXU8YZbBPqLjZmlRprZtZyXIVvECq/0y+bGGp69lXoXCH9GPL ns9Mz3b5P5Lp3zrbEhbgPGFibhD4tjK0JFd8wIv8fA2kcdI5VhbuIULE/0Jgb+/QmYcx CGNg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b=0vmdIaIg; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=OltWXIQr; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xa8-20020a170906fd8800b006ff49b183e9si26893772ejb.971.2022.09.19.09.52.13; Mon, 19 Sep 2022 09:52:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@oracle.com header.s=corp-2022-7-12 header.b=0vmdIaIg; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=OltWXIQr; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230016AbiISQtC (ORCPT + 99 others); Mon, 19 Sep 2022 12:49:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229954AbiISQs6 (ORCPT ); Mon, 19 Sep 2022 12:48:58 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D052E25E84; Mon, 19 Sep 2022 09:48:57 -0700 (PDT) Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28JGO4gS002811; Mon, 19 Sep 2022 16:48:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : from : subject : to : cc : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=q7nsF7Y6j8Adg3zUlyVE7tP8c6rDlijvNUspRrEjF30=; b=0vmdIaIg1j3viVxyX1jmE9Cpjso5i6kClwSjDsL6hxiENLpMYv4VyeCTO+SvpnPV9x3G /MmEa1b5mzDFj6Bg3kbHF3WKtf/o8HlYL7g1bnPZNfpBZUx7wGB3FE2lyaWKLEJ4xU6O QweJM0CVyRg9rkLC6BF8lJyVWo7w9DclsxzYOVcgD3SO7u+7Xzfd0Kz8q/xCM2+okvI4 zIRnL8p4hlUrFQL+r4ONBXUZ6Lgs+bbne8YMJtd0PccR8N3N1jsxnraYXFcRHCnvvaRX c3d1KzB6+BON/Cr5zGaeg7KuhLOKNsTJUb5nTdlgVEEvRvCaqTTWB1YYqbinMzfmLeIM +w== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3jn688c9w2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 19 Sep 2022 16:48:56 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 28JEdA6A009197; Mon, 19 Sep 2022 16:48:55 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2171.outbound.protection.outlook.com [104.47.55.171]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3jp3c7yea1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 19 Sep 2022 16:48:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L83Dg80SCGoAcijkLYJ82EMi1p8I7Auoyw/7q9+jclNqMfT6Dgm4FGMxo9u2BRz4P2PjSdodlG6TtLXEY/4NDBBDxLo/QUy1Aq5qcCbX++MZcstiLWZ9uYYh1Ao+D3YBGKwEA755wp3GgPNTC8indvzyN8+oVqQH6uyrDmlD5/JsqK6FKJb4hTT6nAyFGKcBhWThXOve+VWJ8iQJ8HSjscXfxxLCMO2L5wA+p+8zn+TJMvsq5s11n6eqDQgrOB2sFH+8vWE2Rr/h98Qxc4KEsto766Qkuwq1t0a1p0tbic7z3ujt3haKug8FHdeCx/cMqd+DyC0rYBCqd/hiOhKjiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=q7nsF7Y6j8Adg3zUlyVE7tP8c6rDlijvNUspRrEjF30=; b=jvYivlRpTLV1shpQY+KBpxe0xr2lrUB7eDjwNkun7iau3rcCtpgfVZ0FxF0dwTDViOLFtIHVeq27BsY0lyy5CcgJaBFpIH6oMglhHKY16FmcJpvVqITt2r9MbzyqWX3Oofu80NBT1XkUJTR+Lru9RTJqEDDUJ/3G+a7cXLqHLXYYu+vNOcXfT6PJ74/DTVwTFrWXeGSZsxCL2zg//byrXKFjkxawrqABW9gjheWgvYlJUGLOsHleylonZB6y/pPUlQAWFKCua4Ar2prUoWwzKwTQS2Th0mwadjxyzTEUe7cod0kif2HWTF6/CdCh4y6Heq74LPQnkNVfejBNNRA3jg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=q7nsF7Y6j8Adg3zUlyVE7tP8c6rDlijvNUspRrEjF30=; b=OltWXIQr2/CU2czA9e4mK8J3qErXWwq4G16VFzdcTLWEgqh0NLT/J77e3ndIG+rlkUOq9qUNTCZGJrdjALN2UlNWtNdeSaCW/rhFw8XMMiOooJAgicVPzBZqQQLzZ2iB7Fcd7isbPwtdiew+kPgdFGd6JxNpEBigqOnAfOYftg4= Received: from CH2PR10MB4166.namprd10.prod.outlook.com (2603:10b6:610:78::20) by DS0PR10MB6845.namprd10.prod.outlook.com (2603:10b6:8:13e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5632.19; Mon, 19 Sep 2022 16:48:52 +0000 Received: from CH2PR10MB4166.namprd10.prod.outlook.com ([fe80::90bb:12d:954a:c129]) by CH2PR10MB4166.namprd10.prod.outlook.com ([fe80::90bb:12d:954a:c129%7]) with mapi id 15.20.5632.021; Mon, 19 Sep 2022 16:48:50 +0000 Message-ID: Date: Mon, 19 Sep 2022 09:48:48 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 From: Stephen Brennan Subject: Re: debugging rmmod failures To: Steve French , LKML Cc: linux-fsdevel References: X-Mozilla-News-Host: news://nntp.lore.kernel.org Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SA9PR13CA0101.namprd13.prod.outlook.com (2603:10b6:806:24::16) To CH2PR10MB4166.namprd10.prod.outlook.com (2603:10b6:610:78::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR10MB4166:EE_|DS0PR10MB6845:EE_ X-MS-Office365-Filtering-Correlation-Id: b0e52222-bd29-43f0-94f0-08da9a5ed44f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: q4UuTk1ve1cR2/+5BptjFMNSnqr/X+BI43LZiv0yqAMbJ0MV59wLZ7ZBrCBrNW4xxhYhhdFH07aDQWx02O+WXdEtxo6/zwObFd9mf1pxDZxHqREIwviPdaLzSs0fSvKuqDa115/Mq+cIQ5Iz0zLuAIJDLyXl3cDI2QGnJFuNTqMyC6T02s+OLNrBta9wU3xjR2y7dCAzIb8q05iGD6vLV5LaL5JzLzu+k6Hvd+Fv8Gm64vIY6/gYJgGBiIqGDgalmn+rpCKf0ZJfDTFQq2dMXoCs/+R2zSbgu/52VpGH4uxUOjBBNs6pIA7mrfIHx9iWG2zj/zkyGVKLYQbGykViTQzY3+1COLRwkZf9THMncbPvNsxlJX5LRl+GxySdHnLMFxiLWW9G7Qv+qWO/1pO5pSaa64IhGPFX8qhaVaap+hF3ruRCEr+rQgVd/866PRGn8p7gJW2KNpFWWIQkil7httvWHaHtUJHM/8iUf6IhsW8KsBQYaPbUKWCJoUHqqlM3+d6VjgtbSfr1spNgYfKy+G+Hmenif+YRbGQvYenUXriJFbIBR6RgPd5q/m9QnIqnu+nxzXlGOAcIekePJ1cgXbDFl7ImZHeFK/a15ZvPUXjps2SBTL4DTVsfPO06ozBRM+ImmDi4k7cypSNIzM4lAEUZENiDofyY8vr+Mj5CVujMh1G2YWtrwvz2lKUmSVO6xXyU44anSIX+NxPBBykBiYc1szod9VItXxm2/+ZsTtxz5VNECkvRK+HJapjm8cajqpTQY00F/dr5HaHWzD8DK6LUe2C8lyxPIjq9gj3NbNA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH2PR10MB4166.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(396003)(376002)(366004)(136003)(39860400002)(346002)(451199015)(2906002)(8676002)(38100700002)(6506007)(6512007)(26005)(478600001)(110136005)(6486002)(316002)(5660300002)(186003)(83380400001)(53546011)(3480700007)(7116003)(66946007)(41300700001)(4326008)(66476007)(66556008)(2616005)(8936002)(31696002)(36756003)(31686004)(86362001)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ck5oZWNkOGpneWN0NjBVTWk2ck8yejJiR0g5SnFBUGhxaXk4UVRvaEJzdHFS?= =?utf-8?B?NWtGOWIwbnRMaCtDRGFsN3BrTCtRUlB4NzBlaExVbnlCZDFraFQ1V1htdlJn?= =?utf-8?B?bTNadFpXaHlqTGVxNFRUTmZXeDFFeHplN2wrMTF0K0tkQXlWVDJTZjNWNG5Y?= =?utf-8?B?d3lTQlhWUUY1bi9DZThTa0dnR3IxREg1dnBSY2N6VUVmODNFL2ppb21EZnJL?= =?utf-8?B?Unh6eTFLQ2NMZERybWxSVHQ1b2FwQSs4bGRGRDMxK2E4ZTVlQ2xOSWcrVjdH?= =?utf-8?B?djR0K1Iwa2lJaFg4NlRzeTZoL0NvTy9ZK1FQOS9ZWVE4QzVvSEp0Y0h0SStB?= =?utf-8?B?RXArcGIyUk1TaVQwdUdLTzFVOXFYMDRnV2ttb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-8?B?VFE9PQ==?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: b0e52222-bd29-43f0-94f0-08da9a5ed44f X-MS-Exchange-CrossTenant-AuthSource: CH2PR10MB4166.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2022 16:48:50.7653 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: LeNQHwW8HnfUBWyqoUVUU1ebuItEel8di6mCXWPIs7e2ca6C9qCXkzBibSPJVRoekowGeCXMtMWdjl4jdyORjoHRC5qimOZ1wfooBbWQ+MQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR10MB6845 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-19_05,2022-09-16_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 phishscore=0 mlxlogscore=999 bulkscore=0 suspectscore=0 adultscore=0 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2209190113 X-Proofpoint-GUID: vqnPhXBV4z2V1W6lQ60Qfp5db4B4DBR2 X-Proofpoint-ORIG-GUID: vqnPhXBV4z2V1W6lQ60Qfp5db4B4DBR2 X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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-kernel@vger.kernel.org On 9/16/22 13:13, Steve French wrote: > Any suggestions on how to debug why rmmod fails with EBUSY? > > I was trying to debug a problem where rmmod fails during an xfstest > run but couldn't find useful information on how to get ideas 'why' > rmmod is failing (in this case with EBUSY) and I could only find two > places where EBUSY would plausibly be returned but don't see the > pr_debug message in the log (e.g. "already dying") that I would expect > to get in those cases. > > It also fails in this test scenario (which takes a while to reproduce > so isn't trivial to repro) with EBUSY when doing "rmmod --verbose > --force" and the --verbose didn't display any additional info. > > I also tried "trace-cmd record -e *module*" which showed it (one call) > returning 0xFFFFFFF0 but nothing useful that I could see. In situations like this I sometimes find it useful to use the ftrace function_graph tracer. It can show you every single function call, starting from some root function. Of course it's a bit of a footgun, so be careful with it :) I used it to trace the delete_module system call like so: # trace-cmd record -p function_graph -g __x64_sys_delete_module \ -F rmmod $MODULE_TO_REMOVE ... # trace-cmd report rmmod-41656 [007] 5506.963846: funcgraph_entry: | __x64_sys_delete_module() { rmmod-41656 [007] 5506.963846: funcgraph_entry: | capable() { rmmod-41656 [007] 5506.963846: funcgraph_entry: | security_capable() { ... ... rmmod-41656 [007] 5506.965521: funcgraph_entry: | free_module() { rmmod-41656 [007] 5506.965521: funcgraph_entry: | mod_sysfs_teardown() { rmmod-41656 [007] 5506.965522: funcgraph_entry: | mutex_lock() { Of course, my module teardown succeeded, but you should be able to cross reference your function calls with the source code to see where an error may have occurred. Regards, Stephen > > Any ideas on how to debug *why* an rmmod fails?