From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A8B37C4332F for ; Tue, 25 Jan 2022 17:54:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355593AbiAYRxz (ORCPT ); Tue, 25 Jan 2022 12:53:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239596AbiAYRxP (ORCPT ); Tue, 25 Jan 2022 12:53:15 -0500 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F04C2C06173D for ; Tue, 25 Jan 2022 09:53:14 -0800 (PST) Received: by mail-pl1-x62f.google.com with SMTP id y17so9707880plg.7 for ; Tue, 25 Jan 2022 09:53:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=TdEpPt26Kd5ANAoShc8sbb2YgnlITBWoslxb5vWIwEY=; b=YzgYg9UDALgHKyWstuZhVyuAwx51TXB1k3kl+r9JbhLEv9o5u0Znx7TJiFssZ5VvSH qa+/jjs1oRx5XNbHLM5RkVGqX3YfJ2qwlh6Cs+H+WP+GpCRVf2bI7P5k5g0xjwHPJ3U+ tWtTDd8//8grF1A1PYoLrjaRlfST5DAEPJlmo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=TdEpPt26Kd5ANAoShc8sbb2YgnlITBWoslxb5vWIwEY=; b=OcBo5mbzIaorkkuOfPoB4kvahQv+/Zfyeuog4Lc4tB/fcfWL1vzT2XnMxVxxBqUIIa Em+C0Sh29mOgxsmoupJM/lnKbdAYMoNtti2Av6tmAoQ61obEkeFmW2joxz61NSH+Pmkw ydOXUbDRmm2/o9iR72KUV36tScst9FElt8Az4wVnOcxA8uACM+V7B2nQ2XlXCHifAPDT n5cst7HknaXGUSjKfzrQRi5s+d2os+GcsCmFrQ3BzD6y7XmMBFxc5lxwTiVst16Ch3QM C9X33JEwjNuUPloaMWGWVyY2VhSO1Tx/iCBLcurk/aAw4RzFLPlMhT1gLQflXQQG+b40 BLwQ== X-Gm-Message-State: AOAM532+Ndikds7lJ9RiW4lCTDWawuzar00D/aXRD36m+ES0dbpxwMrZ CnIkcTw9qWWE4SHddkWTd+Cbyg== X-Google-Smtp-Source: ABdhPJwNGoJh0Y7zhQk0/VKPgKclIQQBKnQecn44cSa8KoSPv8nXiehDcI7fK/eKC+dpURSfjOIW/A== X-Received: by 2002:a17:902:7143:b0:14a:62ed:c2a7 with SMTP id u3-20020a170902714300b0014a62edc2a7mr19990530plm.80.1643133194479; Tue, 25 Jan 2022 09:53:14 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id p38sm14430104pgb.36.2022.01.25.09.53.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jan 2022 09:53:14 -0800 (PST) Date: Tue, 25 Jan 2022 09:53:13 -0800 From: Kees Cook To: Steven Rostedt Cc: Masami Hiramatsu , Stephen Rothwell , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build failure after merge of the kspp tree Message-ID: <202201250952.2C89D08@keescook> References: <20220125145006.677e3709@canb.auug.org.au> <202201242230.C54A6BCDFE@keescook> <20220125222732.98ce2e445726e773f40e122e@kernel.org> <20220125090152.0c457aae@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220125090152.0c457aae@gandalf.local.home> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 25, 2022 at 09:01:52AM -0500, Steven Rostedt wrote: > On Tue, 25 Jan 2022 22:27:32 +0900 > Masami Hiramatsu wrote: > > > > But if this is true, I would imagine there would be plenty of other > > > warnings? I'm currently stumped. > > > > That is because __rel_loc is used only in the sample code in the kernel > > for testing. Other use-cases comes from user-space. > > Hmm, can we skip this boundary check for this example? > > Is this only checked when __CHECKER__ is defined? If so, would this work? __CHECKER__ is only for sparse. This is from re-enabling -Warray-bounds for gcc. -- Kees Cook