From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by sourceware.org (Postfix) with ESMTPS id 1FEC1385703A for ; Wed, 25 Oct 2023 22:32:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1FEC1385703A Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=chromium.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1FEC1385703A Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::636 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698273149; cv=none; b=MkBGKYdnV9F11oBg4zHCdXPvdx+L2htlYcF9GeY8uLmfOC8PD9lF6GR1etkL1cLaYp4ypTlgCkOzgtgOOeItQ6yH854Ueoi0XwAa1lO1lFxBAxorZs8gV5as3M1mb5BM9gmRfoqT4dQcuWMW9TmKfgcY0P4xejgM+ZOVXLPOmUc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698273149; c=relaxed/simple; bh=0IvTuw+rE7pqpy98LCoEgALXCVUBrpjHUWAKdORKYn4=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=qI1CmVdDN9Uo0fGgv3dvqu9xYg3/CpYk6bfyNUkgU8FfdivnTK/Uy4ikN9saL6bRGPpEqi9Jkz+ql751cTLro3VvQzoKBFwvIG+ufJ9G1YYTJtQVHKGXWk8DtKqZB7eWDLuSsTnkmgV/rZTJGsbNIu4yDzDLkHKV1FsB62UKihA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1cace3e142eso1622735ad.3 for ; Wed, 25 Oct 2023 15:32:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1698273147; x=1698877947; darn=gcc.gnu.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=HTzbqvMZZ4c0hHQFr01T8v/+jJPK1R2uv1/5FqDY2AM=; b=fzB2G7iBZifEz/nBFkxr2M6TVmSiSnX/gQBiFn0Nldgx7Ix51XogRaoiuyoO13Sirf geRYQq6ka/LLa/7HG/PUTO43/ItQhLMN2Dd7ujLSQfAdHeB9p4PKs5B37uvvMVTwTYC2 EEC4pLS+dC41O9GkOa9B6WOE0YzW443TVDmqY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698273147; x=1698877947; h=in-reply-to:content-transfer-encoding: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=HTzbqvMZZ4c0hHQFr01T8v/+jJPK1R2uv1/5FqDY2AM=; b=ltVX9wzziC/3isZYlFJjmAQq3Sw6u5VDxVK0C2kFb2YygXO3h8hTb6cNt8Jevql+9Z 4f0/sVCNKJg/aPp10zfsCurtn7F/FkbXj7eDpC+i+8jIKio5jtb+yxW/neFC8sP/+9UO hok2LGCgyzlM/28JCfSONcOXJ7BDcf6lT6UhJMVex5FFl4tB3dfrYyyowoPpwKvNVkwt n+5P7QYHWm5OOSWd9kXlW3sd7xZwMdyxFOjQ41/Vb+qQIXGua7A8yPK7jrmAsRMxntYe wIjBLP/5oc1aA4kxa+902m6++AccD4t8vISeJAi4xROQaS3yBShe8/HzMXw8ES+veEIG aNLA== X-Gm-Message-State: AOJu0YzQrfyyPpTauhibWUMWBtzyt3hBnOdGBh0btBqxkAzAVwtqkyQd JFfvYIchUgzc3OcQvW1ZNGFfxiF0Wdy9o9IoBgA= X-Google-Smtp-Source: AGHT+IGJZpEXk9cFa+lNmQu+M4sLSgGvZmy1zUdrgmyKpdRP7yyX0/r+GAFGG38iaMj0XBHabKKMlw== X-Received: by 2002:a17:902:ea09:b0:1c5:de06:9e5a with SMTP id s9-20020a170902ea0900b001c5de069e5amr14181430plg.21.1698273147066; Wed, 25 Oct 2023 15:32:27 -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 h7-20020a170902f7c700b001b8a3e2c241sm9750314plw.14.2023.10.25.15.32.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 15:32:26 -0700 (PDT) Date: Wed, 25 Oct 2023 15:32:26 -0700 From: Kees Cook To: Qing Zhao Cc: Siddhesh Poyarekar , Martin Uecker , Richard Biener , Joseph Myers , Jakub Jelinek , gcc Patches , "isanbard@gmail.com" Subject: Re: HELP: Will the reordering happen? Re: [V3][PATCH 0/3] New attribute "counted_by" to annotate bounds for C99 FAM(PR108896) Message-ID: <202310251529.296AB019@keescook> References: <168fea24-844e-4d1a-9361-afb6332b4f11@gotplt.org> <8C548B97-BD81-4EBB-A59C-F7E6E0A3C4F7@oracle.com> <92426898-afa7-47f7-9aab-5f2114eb826a@gotplt.org> <05d65224067ff72124d94b6b5274f14d013b64af.camel@tugraz.at> <2A78AF07-4E87-43DD-9C1B-23A15C43A8E4@oracle.com> <202310251504.6DE743979@keescook> <947881C6-7040-4C73-8A81-0F364D0DF469@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <947881C6-7040-4C73-8A81-0F364D0DF469@oracle.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,JMQ_SPF_NEUTRAL,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Wed, Oct 25, 2023 at 10:27:41PM +0000, Qing Zhao wrote: > > > > On Oct 25, 2023, at 6:06 PM, Kees Cook wrote: > > > > On Wed, Oct 25, 2023 at 01:27:29PM +0000, Qing Zhao wrote: > >> A. Add an additional argument, the size parameter, to __bdos, > >> A.1, during FE; > >> A.2, during gimplification phase; > > > > I just wanted to clarify that this is all just an "internal" detail, > > yes? > > YES! Okay, I thought so, but I just wanted to double-check. :) > > For example, the Linux kernel can still use __bdos() without knowing > > the count member ahead of time (otherwise it kind of defeats the purpose). > Don’t quite understand this, could you clarify? I was just trying to explain why a chance would be a problem. But it doesn't matter, so nevermind. :) > (Anyway, the bottom line is no change to the user interface, we just discuss the internal implementation inside GCC) -:) Great! I'll go back to lurking. :) Thanks! -- Kees Cook