Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp8846727rwi; Tue, 25 Oct 2022 11:33:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6JJMxuIS2Dt4vC8J4psgPz3acqrgozWLfKW4ReGA6FaPymnyvJQPCuK9WsVfTGoDylpNEK X-Received: by 2002:aa7:c504:0:b0:461:122b:882b with SMTP id o4-20020aa7c504000000b00461122b882bmr26041979edq.14.1666722826439; Tue, 25 Oct 2022 11:33:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666722826; cv=none; d=google.com; s=arc-20160816; b=oXb3nDZ/8XbHRPRmXpp4tG3++nls/zfFfL0VJKjNRdt5F9EVWEJO0cX7h+yPuPUdgp sIOlYYv1FO6ghw6JBSgRMPJgE62PHUxz5FisbY5cdtAh6zpKVqz+ZZOSiSJ5unikD18b 18CwadH1B1JdscR5hwEr/Biwk6UuEFIxVqaP3eZfhohUDailr4N3aQu6VgG1l9SOD0wm TX6QAzjNq1tUToZRhQeDO+ngaRrpfAuDg1yvgPIavydMHtuJ8PqHIPf9qKZ+qpaxQ0K4 TXR6aaATa/evR2g6xQIDIRJZbGTkfwpkHRIkJupBp8PS6PXUFdrU3tVuyRWUYX7HnSAW 1tSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=5N1wutp/qlXBYy2QP7C/3+5yhBOHXBrYT/91aOtTBAU=; b=qUdSTr0PuR9YGr3y5YkoeA60saqnOwSj6yF8D3HmaL7GGxmO/BEp2gTD3R3IWOvnjt rU1A+YM1f8WxbSPlQRYFtw9bHXu6dHImwWLxfulhvzOx05vh1l5Z+JxI/AsWujYd6aZP X7ecORu0FywDbk2zrC9ASliSgGX0ZrPMC6/mk1+Ikfll5pfizAOjyBHhlUL20b0QOM31 Eh9DslWCVXlJdxRe+0yUf6VSbapiPgnRsXhCETDl5ro2HIutIOsmShPPwQBRdtUbygA0 AbX8/JhUmMkls3V49I7K4pSDV1XWIkbPReLiIH05Yit4FgynmkakkuI/Jo+SfhDXu+W0 m3wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=QuXa0ioU; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id va11-20020a17090711cb00b0078cffe5dcdesi2940235ejb.451.2022.10.25.11.33.20; Tue, 25 Oct 2022 11:33:46 -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=@infradead.org header.s=bombadil.20210309 header.b=QuXa0ioU; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231811AbiJYRvW (ORCPT + 99 others); Tue, 25 Oct 2022 13:51:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231889AbiJYRvT (ORCPT ); Tue, 25 Oct 2022 13:51:19 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6D1F1900A; Tue, 25 Oct 2022 10:51:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=5N1wutp/qlXBYy2QP7C/3+5yhBOHXBrYT/91aOtTBAU=; b=QuXa0ioU3lLXiJ3+Vjs8Dn2cxi 8tMU2Rfj6xaIQAk0vicqGHCxB5kNEn4wZN0kmgGoy2jnGvcLu9WqNKkGBf9u53m97Fe4/t0elf2o4 ZYG3sHFienIpVx4jnraCmtXmDLvLcr6Oqs8UNEbCRbNtziOeHqCF40ixz3aEppokHXbpoNE2hPWWy itEUCJbnFHWTnPBY3YkeREHpder8a1/Bbv1yFaddphXYLmapwe3G4FnbgHTF7G8kCobLQcB9z25cF FBH+G6hsvd6KuhwXZMm/GYXeq4uPfCvef4eyw+mX9VvczqJ+2IJEJ35NTYIjKo+Vzpl/RBCHflrPw CKf/H6DQ==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1onO54-006YCt-FJ; Tue, 25 Oct 2022 17:51:14 +0000 Date: Tue, 25 Oct 2022 10:51:14 -0700 From: Luis Chamberlain To: Petr Pavlu , Prarit Bhargava , David Hildenbrand Cc: pmladek@suse.com, david@redhat.com, linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 4/4] selftests: kmod: Add tests for merging same-name module load requests Message-ID: References: <20221016123031.3963-1-petr.pavlu@suse.com> <20221016123031.3963-5-petr.pavlu@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221016123031.3963-5-petr.pavlu@suse.com> Sender: Luis Chamberlain X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED 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 Sun, Oct 16, 2022 at 02:30:31PM +0200, Petr Pavlu wrote: > diff --git a/tools/testing/selftests/kmod/init_module.c b/tools/testing/selftests/kmod/init_module.c > @@ -525,6 +662,8 @@ list_tests() > echo "0011 x $(get_test_count 0011) - test completely disabling module autoloading" > echo "0012 x $(get_test_count 0012) - test /proc/modules address visibility under CAP_SYSLOG" > echo "0013 x $(get_test_count 0013) - test /sys/module/*/sections/* visibility under CAP_SYSLOG" > + echo "0014 x $(get_test_count 0014) - test handling of parallel loads, success case" > + echo "0015 x $(get_test_count 0015) - test handling of parallel loads, init returning error" Good stuff! So test 0015 mimics the error reported by Prarit Bhargava through commit 6e6de3dee51a ("kernel/module.c: Only return -EEXIST for modules that have finished loading")? If so it would be good to document that here. Also, this patch should go first, with the ALL_TESTS variable set to disable the tests which are known to fail, so to demonstrate the *new* issues as they are failing and then your fix first and then you enable that test afterwards. If 6e6de3dee51a introduced another regression which is not covered by the tests we'd add it, and fix on top of it as a stepping stone to prove / send to stable. Luis