Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6894387rwl; Mon, 9 Jan 2023 14:41:50 -0800 (PST) X-Google-Smtp-Source: AMrXdXvGLTOa0yJ7dIKiJCm3KtQ8MeNa4Dfhn4vpHiTyNujZOjqvZxYpr4WejXUKdfRxY2duIM2c X-Received: by 2002:a17:906:434f:b0:7fc:4242:fa1d with SMTP id z15-20020a170906434f00b007fc4242fa1dmr67362328ejm.54.1673304110674; Mon, 09 Jan 2023 14:41:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673304110; cv=none; d=google.com; s=arc-20160816; b=j0BOKNRIu2+idmThOuNk6Oh4vhq4djTjZDrn8Nz9qeksfUpu5aaTkPOtGYtwDZYPDi GNqTm5wy5XawmI6jl9+cPY0Dd1+YrhbBXfJXHriw6aa2scL+2PcmLcA4snNkRMfvUMh0 /hLvjAiZByjl2UpXKDaTD/yvh/cLetCGM4menzD8CnEVTWX8LHr/FF4d6N9rtfDz/kur Dg3qoaTiLHp8xs5etlRuhA1FlXHIZiL9NId0UeUmzabWS27X3NQmizPmPyTKlI0Td9rS 4ewx6kDMmoi/P/bQrwwQx0CRc1Qh9hkYrHkfFdLVX+KiGgan5jqYNuqO0sZihSAXzcBK OlMQ== 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=pl029Q32XTUa9+DoXm3FckvdLWahmSbCwZf90c1dI14=; b=H62lMEremtAMd9iobnnryPvyaBPjRVtRGDALPcinIBST8BLqie6hYlOGy//bWBDgHd WKCjVv+uzV+968g4wb3k2HJcbf4qqG2vCwdGYsifODdoioXtv8FjupSGVzJXdDU7MTs0 WBpXyVlteGXifuHep2L7h1rBL+eRZya5bgbgA38r28WsPjecjKs51FIPdRPVAHg0quKs piSqpBs18gw1Wv1U1mJ6pZnrIHyr3ZyL1o1dg+pybLtRaC6b96Mqd+fcnmyWW/fwyr4R Mr5kBsMvsvhtyGRqsb6bsgo1zKkw+CvbHV4jvwm95IFgx3hGhHhN3Y/dtx/zQhew2R0A WHBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=frDcINOM; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho18-20020a1709070e9200b0084d4707b4c8si3819120ejc.687.2023.01.09.14.41.37; Mon, 09 Jan 2023 14:41:50 -0800 (PST) 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=@linux-foundation.org header.s=google header.b=frDcINOM; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237833AbjAIWSk (ORCPT + 55 others); Mon, 9 Jan 2023 17:18:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237747AbjAIWSV (ORCPT ); Mon, 9 Jan 2023 17:18:21 -0500 Received: from mail-vs1-xe35.google.com (mail-vs1-xe35.google.com [IPv6:2607:f8b0:4864:20::e35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A59801117A for ; Mon, 9 Jan 2023 14:18:19 -0800 (PST) Received: by mail-vs1-xe35.google.com with SMTP id s127so10357496vsb.5 for ; Mon, 09 Jan 2023 14:18:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=pl029Q32XTUa9+DoXm3FckvdLWahmSbCwZf90c1dI14=; b=frDcINOM35hsJgGEOr7ShnaDpJs1KgkQRualr+R2IFX+ETnqBwX15zai7mm5jjMLce F1KktQPM/lYflu8TlaI/z2+S42adI4zJUgIcrTROoIynlIMBk0O1opv5VOhqfB4uBMat c3ZIicP92BmJqGelC4INeyy7UlrG/yqdCP0gY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=pl029Q32XTUa9+DoXm3FckvdLWahmSbCwZf90c1dI14=; b=OxUCRWPffE1xEkn6ZHZ9O99mCjmE7iXmfU5M5/A/C/inCkjhww2zqBJzEd3Z86Gy/3 Ggl17CqoGP28diVeq8x0uxKi9OURJtmU9HF5cI6D3GJ//C7Kd3uMqnvjsxFTcTOYZv1O vYOKyrl7uydsiOoFhLdujkebFkW7I3dSYhnr064r1GZu9SFqKpORqm3Utzcwwh830oI9 ebWu1Sk6NkrGPolmu00bQzRC7z8Qs+dks6+YQtWwxcSsL9qOZKXfFtE+B97V6MVQpbAu OD9LmKASDX5z/+uZdOeTepmJOpgH+yQIpxDgZ268H1bo+NaVR4Sb+hU8EvWxJRaVavai /2Hw== X-Gm-Message-State: AFqh2kppdnGg3TomTPsmRMHQdMQYq0Rto0TAJ09D9GDJkK6ovMGV30ws /EEkkVW0lsubYfXNuSyUYBIrqaUibmNJx06sK80= X-Received: by 2002:a05:6102:5128:b0:3b0:cf9c:caa with SMTP id bm40-20020a056102512800b003b0cf9c0caamr40676102vsb.35.1673302698409; Mon, 09 Jan 2023 14:18:18 -0800 (PST) Received: from mail-qv1-f47.google.com (mail-qv1-f47.google.com. [209.85.219.47]) by smtp.gmail.com with ESMTPSA id bm16-20020a05620a199000b006e16dcf99c8sm6070415qkb.71.2023.01.09.14.18.18 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 Jan 2023 14:18:18 -0800 (PST) Received: by mail-qv1-f47.google.com with SMTP id j9so7354868qvt.0 for ; Mon, 09 Jan 2023 14:18:18 -0800 (PST) X-Received: by 2002:ad4:4150:0:b0:531:7593:f551 with SMTP id z16-20020ad44150000000b005317593f551mr1343053qvp.89.1673302697892; Mon, 09 Jan 2023 14:18:17 -0800 (PST) MIME-Version: 1.0 References: <20230109174742.GA1191249@roeck-us.net> In-Reply-To: <20230109174742.GA1191249@roeck-us.net> From: Linus Torvalds Date: Mon, 9 Jan 2023 16:18:02 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Linux 6.2-rc3 To: Guenter Roeck , Marco Elver , "Paul E. McKenney" , Peter Zijlstra , Kees Cook , Jaegeuk Kim , Vlastimil Babka Cc: Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Mon, Jan 9, 2023 at 11:47 AM Guenter Roeck wrote: > > fs/f2fs/inline.c: In function 'f2fs_move_inline_dirents': > include/linux/fortify-string.h:59:33: error: '__builtin_memset' pointer overflow between offset [28, 898293814] and size [-898293787, -1] [-Werror=array-bounds] Ok, I guess we'll have to disable this gcc warning for this version again. I don't think anybody figured out why it happens. We had several people look at it (Kees, Vlastimil, Jaegeuk) and I think everybody ended up going "tis looks like a compiler thing". Does anybody remember - what was the compiler version again and what do we need to disable? > kernel/kcsan/kcsan_test.c: In function '__report_matches': > kernel/kcsan/kcsan_test.c:257:1: error: the frame size of 1680 bytes is larger than 1536 bytes > > Context: CONFIG_SLUB_TINY is enabled with allmodconfig builds. > This enables some previously disabled configurations and disables > some previously enabled configurations. I do think that the test code should be a lot more careful about random things on stack. We've had this before with the EXPECT() macros generating *much* too much stack space, and it's not ok for test code to violate kernel coding standards even if it might be a "odd config that isn't realistic". That function does some odd things, including typeof(observed.lines) expect; WHAT IS THAT TYPE? It turns out that we have static struct { spinlock_t lock; int nlines; char lines[3][512]; } observed = { so it's basically a 1.5kB byte array. And then des char tmp[2][64]; to add some more pressure. So yeah, can't blame the compiler being stupid, this is just bad code. This is all very much a "this needs to be fixed, or the test just needs to be removed, because that's not acceptable". None of this is new, but clearly it was hidden by config issues before. Added the guilty parties. > In file included from : > In function 'follow_pmd_mask', > inlined from 'follow_pud_mask' at mm/gup.c:735:9, > inlined from 'follow_p4d_mask' at mm/gup.c:752:9, > inlined from 'follow_page_mask' at mm/gup.c:809:9: > include/linux/compiler_types.h:358:45: error: call to '__compiletime_assert_263' declared with attribute error: Unsupported access size for {READ,WRITE}_ONCE(). > 358 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) > > Bisect points to commit 0862ff059c9e ("sh/mm: Make pmd_t similar to pte_t"). > This commit introduces > > -typedef struct { unsigned long long pmd; } pmd_t; > +typedef struct { > + struct { > + unsigned long pmd_low; > + unsigned long pmd_high; > + }; > + unsigned long long pmd; > +} pmd_t; > > That should probably be "typedef union", not "typedef struct". Ok, PeterZ has been off due to the holidays, but seems back. I agree, that outer 'struct' should obviously be 'union', but let's make the guilty party (ie Peter) fix it up. Linus