Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6639080rwd; Mon, 5 Jun 2023 23:05:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4hppCZJilAJjGW6gSAiWYS2i5zcwYlsZ5JF5nGIKEEQkJwyF2IRtr7Yjffsft8JbsonEZc X-Received: by 2002:a05:6a20:1441:b0:117:4cb3:157c with SMTP id a1-20020a056a20144100b001174cb3157cmr758447pzi.21.1686031508738; Mon, 05 Jun 2023 23:05:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686031508; cv=none; d=google.com; s=arc-20160816; b=H/SRydEjYxULGkIu7zzsNqYu8TqS3oj3Q1UKb0l9b2Vc6WYbzqNt5czdw2889TOC9I 3qVfuBT+YOSyQ26LCtmu9CmCAvg5ZgGFIfUdFAtWUnS9lNyC0qGNfJWrCnshBkXoWLm3 7Gw8snUrGUiOAbOFvYowVMlE6QEXa2Q63ue8djmnIoI8Fd4NvpI4HMRVcZaJblf8pvIT AJVkqRdsl7dTq9ZXS7OqE8rx0E96K4r9wPbYqypxJ0hTVdq/PVrg0JftFaWnpFhoIXdE nS7i47Hrfxxy3k1U3ozGRxLUa14K0Arbv6s9x87R8Q4zUvf2Shq1ii65g0xXyiNBgGkn aVKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=acKrjpGuW9mBeUp7+rqt8HSG+d+opgBHhmN99dwkPOk=; b=JETJFH1X2Mi0kIwjAKgWHgd4m9GrPt+xO2J+fGm3sGJhQWbneRc7lnGS2H7OUfNu2I XbAunuc+ehQIo5xRwjyegym3/R7aamv+Lq3qE83W/AhPlEarhJOkq3iepBblBQsR/KSP Gu9uVt+BcUwt624VlnOpgOV7ZMQAQgqxTl21BUJaFRrWaGli4Vxt8CLdKx/jjVT4ezy8 9y7j8Zkr2bPHvNu6wz2kXpvj6004FNTwVD1ZqBia3r4FDb5DD+oQP+b1Z/7/lSXuB9iV RrrjRPPzc+ChqM2+QGxcdc1XD+BDOkBxmbpMJi1KblvoLhp1/vYSfMfalPG0RVuZg+RS lr5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=5xdrdej2; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q16-20020a170902dad000b001b23b6a7a01si116856plx.407.2023.06.05.23.04.56; Mon, 05 Jun 2023 23:05:08 -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=@google.com header.s=20221208 header.b=5xdrdej2; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231599AbjFFFlg (ORCPT + 99 others); Tue, 6 Jun 2023 01:41:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229880AbjFFFle (ORCPT ); Tue, 6 Jun 2023 01:41:34 -0400 Received: from mail-il1-x135.google.com (mail-il1-x135.google.com [IPv6:2607:f8b0:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27B981B5 for ; Mon, 5 Jun 2023 22:41:32 -0700 (PDT) Received: by mail-il1-x135.google.com with SMTP id e9e14a558f8ab-33bf12b5fb5so60985ab.1 for ; Mon, 05 Jun 2023 22:41:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1686030091; x=1688622091; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=acKrjpGuW9mBeUp7+rqt8HSG+d+opgBHhmN99dwkPOk=; b=5xdrdej2tNvFoQGXCxF1J5T2TRthj1cgYfR9Uubd82+03/gp90GhkMZFU1hSe15BJ/ oeygdJy5udXXTx/D4rj0xeU+4cqG1WCjkOQvuvKdnYVvqD2iTYjf7yc2bxp7v8wD/oFv CHrF8vfzsKldYZWuaY7JIo1m2gw1IHhJG8eOnxgNg5y8PzHhiM85v0C9i64HVOlZxset fRdyYoj96Jopw3aK1l/UueSU+0Wsma24Jc2IfFZdEqqxSAsu1zpDyMa7ls794OgFDP6t jo2tFcBIEi8WZO/A6hJoboK8SU07wZXWsPEZdHGIF4qb/9lUwA+fcF8PYcV8tRJIWehv hyvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686030091; x=1688622091; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=acKrjpGuW9mBeUp7+rqt8HSG+d+opgBHhmN99dwkPOk=; b=iidmBQcvWXfeVSyzZTu5nXBth7MuR0C+TaA9YeCZ+UF8YwKRy32hv7KJUO9dEa8GfK f/cWsl3XRsy+t5VtblYmnq15bjB8hxEUuzJZLbktssW/oO9zRSuAVZ2jf3htFRZIdNjO w/svJyjALiBLnLWadPnTnNnjTEpZc5+zdqlN56ATTE+AJfjzz4uEGhvuRV3rmxu3CyL7 iXi/ibwljlWhi0JtdNas3iyVV9yBrVOBwyfKCs0EIijuMpzPXtnc1dwqsh9EjXVg3t5o GXGQPIwDLPlljj9b1sx8f07+YenfFEVkQtaO1pmHt/3D97tEPDSi8/o3trxWtWgHEqWc r4LA== X-Gm-Message-State: AC+VfDzCmKGtUZ3T/to7iUKKGYdi294G6ApOyMy8T0PLkxQ8TwtdNF4d z55r0fkUhHvn52qGPCkqW4mo7Sqv4mzRmMo88bwnG22cIc59IwF0nxU= X-Received: by 2002:a05:6e02:20c1:b0:325:d0d8:2ddb with SMTP id 1-20020a056e0220c100b00325d0d82ddbmr67682ilq.15.1686030091133; Mon, 05 Jun 2023 22:41:31 -0700 (PDT) MIME-Version: 1.0 References: <20230602131229.3589f3bf@canb.auug.org.au> <20230602175453.swsn3ehyochtwkhy@treble> In-Reply-To: <20230602175453.swsn3ehyochtwkhy@treble> From: David Gow Date: Tue, 6 Jun 2023 13:41:18 +0800 Message-ID: Subject: Re: [PATCH] objtool: Add __kunit_abort() to noreturns To: Josh Poimboeuf Cc: Stephen Rothwell , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Peter Zijlstra , Linux Kernel Mailing List , Linux Next Mailing List , Shuah Khan Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000af3e1105fd6f7809" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 --000000000000af3e1105fd6f7809 Content-Type: text/plain; charset="UTF-8" On Sat, 3 Jun 2023 at 01:54, Josh Poimboeuf wrote: > > Fixes a bunch of warnings like: > > drivers/input/tests/input_test.o: warning: objtool: input_test_init+0x1cb: stack state mismatch: cfa1=4+64 cfa2=4+56 > lib/kunit/kunit-test.o: warning: objtool: kunit_log_newline_test+0xfb: return with modified stack frame > ... > > Fixes: 260755184cbd ("kunit: Move kunit_abort() call out of kunit_do_failed_assertion()") > Reported-by: Stephen Rothwell > Signed-off-by: Josh Poimboeuf > --- Thanks for fixing this. Let me know if we need to find a way to put it in the kselftest/kunit branch as well, but I suspect it's better off staying with the objtool one. Reviewed-by: David Gow Cheers, -- David > tools/objtool/noreturns.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tools/objtool/noreturns.h b/tools/objtool/noreturns.h > index cede6068ddf6..1514e84d5cc4 100644 > --- a/tools/objtool/noreturns.h > +++ b/tools/objtool/noreturns.h > @@ -7,6 +7,7 @@ > * Yes, this is unfortunate. A better solution is in the works. > */ > NORETURN(__invalid_creds) > +NORETURN(__kunit_abort) > NORETURN(__module_put_and_kthread_exit) > NORETURN(__reiserfs_panic) > NORETURN(__stack_chk_fail) > -- > 2.40.1 > --000000000000af3e1105fd6f7809 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIPnwYJKoZIhvcNAQcCoIIPkDCCD4wCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg ggz5MIIEtjCCA56gAwIBAgIQeAMYYHb81ngUVR0WyMTzqzANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA3MjgwMDAwMDBaFw0yOTAzMTgwMDAwMDBaMFQxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMSowKAYDVQQDEyFHbG9iYWxTaWduIEF0bGFz IFIzIFNNSU1FIENBIDIwMjAwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCvLe9xPU9W dpiHLAvX7kFnaFZPuJL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