From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by sourceware.org (Postfix) with ESMTPS id B10013858C31 for ; Wed, 25 Oct 2023 22:07:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B10013858C31 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 B10013858C31 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::630 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698271622; cv=none; b=VHfWQmylMoqF86uIXj16U/GZbwPAVOLesQ/l1l5IchzDs+ncO+py1g/y51almhMSnv+ls+dI9rhnn1PmbEm+bY9xHwpVu4FHME2+tsrx8VNPzgf1qZibn0jarXy8BmEP1J9y3twLjIrpCsE627SBSxAj1dxPQDfRX0Xnulai7is= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698271622; c=relaxed/simple; bh=Oen1EpZ9xIjVIgd39wSZ8896F/2yPocvbOgNrzndr9A=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=YAgxjwHUkBsj2I1f1MOtCXS+nHqKmAdc7qJSeTB6IoSTGWeGVT/IeBC1F2NqwWViBJuEeEOiPKIpVRnfGvzc5PuuczlQMYE8xdqHougCqcYpml4IVqRJpoWSFTFN+jPAF78CA4NnyfYWkVq613erP2q6/ngkb+pCcn/7LbCcx+E= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1c9d922c039so1445505ad.3 for ; Wed, 25 Oct 2023 15:07:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1698271620; x=1698876420; darn=gcc.gnu.org; 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=0zzyWMb9WBPlxXxfX+zQau1QOanV1u3yIsoLmKISdQU=; b=fmS+JiFxjvtqOzqo9dNReYdiAe30I/oyo0GJ4AdFuKZEZPZtN2blIkPvwz1pJDtIs6 LxlL+1sk8Uem4HgWkPt4nHtyDfITfWCgJSEISXx9Q9S3XP+qsZAlb/P03bWJ3ygLUaqO mqUdM6yBRHdufT6zC2ufooBycqFGO3U5F43PA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698271620; x=1698876420; 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=0zzyWMb9WBPlxXxfX+zQau1QOanV1u3yIsoLmKISdQU=; b=kybWJ4rUx5JNEqriQqVcsRle1rtjg8PBZy6LfHkrl8DFez9MgENMVJXg5KXC6cLgLq sO/3yxZwUXVYBQK4EpYj8EdtEPkwVHagzrmMUJ2OZg3Uiw8QXCT7BaJrC918Obcavncn cp1tsM2mfzXUWrUYtHdvjZinsanu7Y1aZ1ov05xxjr71UnBkL9nhJFn0e/wP2NtAipyR y/QngqmFM0R3R94BQFqEKvrloZscQYRbLX5zqokR1Mbl/CyX1G4Ghqs0MG0PA6ykReHb MK9cxU+FKyH2Zy8gPZCCxFpM2gkwZZsgZhZO0vxw4AzbHwt7hpiglXS8x1doTIsyJRxN /JrQ== X-Gm-Message-State: AOJu0Yx2mveYxgvuAMPxuFwrHy37KqXIq6Y1MHx1OGYtkgb4Lw+IVuLx eYZOCdkrQjsj+taOz+JWdYG7hw== X-Google-Smtp-Source: AGHT+IEmwWrK2/GgXi5deZ8MS5p62L09bMcruq8OZe0WOVyThkE7hETjt6aOLRfexB1aWPzZtfRpJQ== X-Received: by 2002:a17:903:2301:b0:1c9:d940:78ea with SMTP id d1-20020a170903230100b001c9d94078eamr20205665plh.22.1698271619692; Wed, 25 Oct 2023 15:06:59 -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 iz22-20020a170902ef9600b001c771740da4sm9678939plb.195.2023.10.25.15.06.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 15:06:59 -0700 (PDT) Date: Wed, 25 Oct 2023 15:06:58 -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: <202310251504.6DE743979@keescook> References: <283B5497-52BD-47D4-BC08-0982AB6740CA@oracle.com> <53e8ed5778d0e908d224d940ddc3d99575b83dd3.camel@tugraz.at> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 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? i.e. the __bdos() used by in C code is unchanged? For example, the Linux kernel can still use __bdos() without knowing the count member ahead of time (otherwise it kind of defeats the purpose). -- Kees Cook