Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2624504rwd; Wed, 17 May 2023 12:07:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7scJBc5Z4zWo1agVOtjm+Npg31zBNw3NKS4njtQTMlG6QMu29lKFQiNMpfIreiMeCnt97N X-Received: by 2002:a05:6a20:1455:b0:104:3c82:38c0 with SMTP id a21-20020a056a20145500b001043c8238c0mr28878058pzi.41.1684350454025; Wed, 17 May 2023 12:07:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684350454; cv=none; d=google.com; s=arc-20160816; b=i64IXVj/hq6XR/TSuY1o1eLJcpY0CRAlJGlFLWq3/4HE45A10Va79u+vxKYS7SMS+F 3IzM8ImsUIMZzA7KPTPY5W4ElJMcIx5tHOJOVV34bmtpNyzCuxknnqHwCmCBM28CX5js 36m9n9NDcJdyZyv+cHE6guaHUtmuie5Gzp1pRXWltgQvbCzhHYzwOjHZyHrMHQzJXUGH KwGWTSjx4ZICzQevxpojHaFjzT6+ZuXzTzhirvhVToCJdt+68JFwrc/XGY5slMkNkbNY irVVmFGzMCqtDL6AMeaJMntrfRWxDQpHNOEDX9GWSidK6pX5+9VR9L+XeETnqy7ifa+A mkOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3Foj4fb82zG/bYBqANgJwBXrXANMC6U7inLZ4E4KgMU=; b=JToEYwC3CDdE3mPy6GUoViyjzCsFXOXJ+Rn14KNMkex+sJrbeB2nSMLjdtbssEK94z l/57+6bObsIDetbmIRS4VT2OPgMPYcI9R8esaNj2A6YFIXCCAecOY2vpQ5h5UKMdhT+s DjdUr57aQayPXtmzCAyqXYMhHjOXZSyQwzxl9iaYrkMPZEj7B5/9C6YeNL5OkqAl/nR9 LJgD7ZKJXrHVjUa85kj+m3Qk9UqRzS3b8joeke4dLVD2TzqYm3RZUnZfIy9p3VjZR1iA AciUOGhjWVn6BZPgtoPsUUhhMxtS2Y4CENBGSMl17q5pCVlNmX9TRQ2x4wu5T2kdYCFn hfRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="iOCD/WrU"; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r4-20020aa79884000000b0063b5e9c3c28si11014496pfl.35.2023.05.17.12.07.17; Wed, 17 May 2023 12:07:34 -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=@chromium.org header.s=google header.b="iOCD/WrU"; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229785AbjEQS44 (ORCPT + 99 others); Wed, 17 May 2023 14:56:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229615AbjEQS4z (ORCPT ); Wed, 17 May 2023 14:56:55 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF482FE for ; Wed, 17 May 2023 11:56:54 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-1ae4e49727eso12751435ad.1 for ; Wed, 17 May 2023 11:56:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1684349814; x=1686941814; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=3Foj4fb82zG/bYBqANgJwBXrXANMC6U7inLZ4E4KgMU=; b=iOCD/WrUpOU4uwvpO5V+3F7ZkEOjT/WN64f9NAzD2urz3GLD/JuJAxgTLQG97peGK7 yrPCCtFIbru/XgaK6AtKEUimK5Nj6D8P9YzuE86qo3BHb4OV+EnApoBRT5vIHGe5s10x jQMChyAVwtfMncW91E4P9FRdE5wgUCR5A8oQM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684349814; x=1686941814; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=3Foj4fb82zG/bYBqANgJwBXrXANMC6U7inLZ4E4KgMU=; b=ip03DQUSNTkC71r30ut42hS8vIcc378u2gRU8ZKihTaJEkk/Yi0mDH5EdSHd+fuOli Dgp3992gu1ENNUP5l26ByWhgttQ3u0//EdnUOcAa6twFRDyi846efamnTbLRu3kiwL23 vulYJzr8a1lvGramJ0VjokRyJKx3lzVaqAIy+fuC5oQd9rU9cTd7X55NX8m12m9jyzWA QKFfZj7Op9mFjfT8ZlQauRAEl9OBXhw9t17la/Fj7vpSdSsYh3Zn9vwG56OBEuHFlGBe 45bJo/R9bIdm4HdRQEFm/2Xm7en9EzOifhI++X2IAe1ZsL8Gg/FEEuBvtl87k963WuRN BZ4w== X-Gm-Message-State: AC+VfDzGq7wJ+oFIkqdXwdTOnH5WpcSE0uhulDYkmn51UqqLEm5xplOi RNB+m3HTt6+EquAYmEcKkYKt7Q== X-Received: by 2002:a17:902:ab89:b0:1ad:1c22:1b53 with SMTP id f9-20020a170902ab8900b001ad1c221b53mr24650997plr.40.1684349814193; Wed, 17 May 2023 11:56:54 -0700 (PDT) Received: from www.outflux.net (198-0-35-241-static.hfc.comcastbusiness.net. [198.0.35.241]) by smtp.gmail.com with ESMTPSA id u17-20020a170903125100b001a64851087bsm8129700plh.272.2023.05.17.11.56.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 May 2023 11:56:53 -0700 (PDT) Date: Wed, 17 May 2023 11:56:53 -0700 From: Kees Cook To: Arnd Bergmann Cc: Jason Wessel , Daniel Thompson , kgdb-bugreport@lists.sourceforge.net, Douglas Anderson , Arnd Bergmann , Peter Zijlstra , Dmitry Vyukov , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] kdb: include header in signal handling code Message-ID: <202305171156.1D26B2025E@keescook> References: <20230517125423.930967-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230517125423.930967-1-arnd@kernel.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,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 Wed, May 17, 2023 at 02:54:09PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > kdb_send_sig() is defined in the signal code and called from kdb, > but the declaration is part of the kdb internal code. > Include this from signal.c as well to avoid the warning: > > kernel/signal.c:4789:6: error: no previous prototype for 'kdb_send_sig' [-Werror=missing-prototypes] > > Signed-off-by: Arnd Bergmann Reviewed-by: Kees Cook -- Kees Cook