Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5059606pxu; Tue, 13 Oct 2020 13:51:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8O74WX9xZdmypziaRV7sBksyrXCt1R15KpBYLLvZrDCLr5Il/4CrBY8DnQp9g03K6ByNA X-Received: by 2002:a50:9ea6:: with SMTP id a35mr1657969edf.52.1602622271920; Tue, 13 Oct 2020 13:51:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602622271; cv=none; d=google.com; s=arc-20160816; b=s3aWSRJiCG+zyNdTHrTfxJYzJaSJl6A+QmW3nsoOuX92ehQPAUSFA9qbnhms8L1GQs J14gZ3HqMRI/P6hvd6sQUvCLcPI9UMmqhZUfO8qmAGMf4QmdzZUz4U501tGbH6xZ5HFd SIxkk08dYbsCV/VGoqVxg/UncyldjjAnR3JjjDG83h3F/46nYpBxw30Ii4zAbUg7yayQ V5O7Ook6sRaorY8b65+8/TqKE/qHImaF/DzlQRaepOzw1qbYi6AXoVhNYUe9tqqZVIDv hTFvo2nnQjmsH6jIxja6kLyR3Zm14mACzwPZEH+iy7eg7FnfqWSXF9zgkYPQYuyKRH5D 6CRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=xiPxoG74Sv3PZCFT0jMfs/MU0CDcAERPQ3ZZUCQPVFw=; b=TRbPd+cSSMnLrMJZO3C9PPDq31pptI0ViF7emAhBMYIr7k7NnGwfrRNyuqan9vIatW fFz2dZnE/ylK95qlo8mKv7et3kBBUYyvQ941YzOBVSOiEujIwsN1vHWSs2+BS5D/Xewq BDdhYBr7EgE7xcc3gSKrYKieusp+TQ4GNN19hgLlJhj+EJJYoeu7JtghuspnuKVqKgw2 j5cAbZWBmw1NwIDGJxYXxzF49MquC3Xo5OcG5IQG5bkT6L901fpJiXX5MmoAuW0vEqRQ KKXXoCshnKorf34oQ+NQC7dd84dbZfLt7A71GKAucAhDalWZFfklBHmAJuWWDXDAL2cN 6ckQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=AQJ+iYBF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dd2si587356ejb.347.2020.10.13.13.50.49; Tue, 13 Oct 2020 13:51:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=AQJ+iYBF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727027AbgJMUtF (ORCPT + 99 others); Tue, 13 Oct 2020 16:49:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726186AbgJMUtF (ORCPT ); Tue, 13 Oct 2020 16:49:05 -0400 Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AEBCC0613D2 for ; Tue, 13 Oct 2020 13:49:03 -0700 (PDT) Received: by mail-ej1-x644.google.com with SMTP id a3so1655898ejy.11 for ; Tue, 13 Oct 2020 13:49:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=xiPxoG74Sv3PZCFT0jMfs/MU0CDcAERPQ3ZZUCQPVFw=; b=AQJ+iYBFWmaDPfkuvMpGEDiHwe4J5C9g9MkmAciYVZp1+jlc0gogF6m/OKFE0fcrLQ JZ/ky+phX9BqEZX+OqLJS2FXlfCqSge819tHHqc6CbuCdq3rqV1MLTsremWd8Zv9LZMt RVu1Wljjty2feuGUMZAMQLU8NsXTZIiT8b7po= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=xiPxoG74Sv3PZCFT0jMfs/MU0CDcAERPQ3ZZUCQPVFw=; b=BXHuB3TPCAA8bRJ0SBW8Rl0jBy23jgP1Yh7GlK8X2ZmUohktr+t7F13k9hbn/Badb2 4rxhlYnF9HmYNlS8eBAQw5e9oXzSl0kaHGs+OvTk4ptAV7PQGPPe00JaXd6iHtcS70hq r0714Cvnf6q0um+JsFbH7YCqOqbRT6GSWj7ZMzWvXnEpPCMi4i+swks6HTbg1WuZhiM7 F1RFHUl6aRQhzIkPyBG0jHnIt7GblMatsDti84IpEttDw/mwQQlgJrorcxApIhUVfFC7 ETQxs759tkvGxEw5xdaY6Iqf53eKyC5ZXVhLNoRUwktKo5uF900Yr2P3QzEU9JCYypWu q9jw== X-Gm-Message-State: AOAM530sStb1Zu6wTcmsefJ10mgBxKu8uNDocMArKG8zR6B8scGZNrUO +qh8Jw9LKyXiMDsfww0f7Itmb34vgnbg93yA+ag= X-Received: by 2002:a17:906:3092:: with SMTP id 18mr1664984ejv.43.1602622141915; Tue, 13 Oct 2020 13:49:01 -0700 (PDT) Received: from [192.168.1.149] (5.186.115.188.cgn.fibianet.dk. [5.186.115.188]) by smtp.gmail.com with ESMTPSA id u18sm497827ejn.122.2020.10.13.13.49.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Oct 2020 13:49:01 -0700 (PDT) Subject: Re: [GIT PULL] io_uring updates for 5.10-rc1 To: Jens Axboe , Linus Torvalds Cc: io-uring , "linux-kernel@vger.kernel.org" References: <36a6706d-73e1-64e7-f1f8-8f5ef246d3ea@kernel.dk> From: Rasmus Villemoes Message-ID: <3e37f236-c0ce-abb0-fa89-2118dd18d042@rasmusvillemoes.dk> Date: Tue, 13 Oct 2020 22:49:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/10/2020 21.49, Jens Axboe wrote: > On 10/13/20 1:46 PM, Linus Torvalds wrote: >> On Mon, Oct 12, 2020 at 6:46 AM Jens Axboe wrote: >>> >>> Here are the io_uring updates for 5.10. >> >> Very strange. My clang build gives a warning I've never seen before: >> >> /tmp/io_uring-dd40c4.s:26476: Warning: ignoring changed section >> attributes for .data..read_mostly >> >> and looking at what clang generates for the *.s file, it seems to be >> the "section" line in: >> >> .type io_op_defs,@object # @io_op_defs >> .section .data..read_mostly,"a",@progbits >> .p2align 4 >> >> I think it's the combination of "const" and "__read_mostly". >> >> I think the warning is sensible: how can a piece of data be both >> "const" and "__read_mostly"? If it's "const", then it's not "mostly" >> read - it had better be _always_ read. >> >> I'm letting it go, and I've pulled this (gcc doesn't complain), but >> please have a look. > > Huh weird, I'll take a look. FWIW, the construct isn't unique across > the kernel. Citation needed. There's lots of "pointer to const foo" stuff declared as __read_mostly, but I can't find any objects that are themselves both const and __read_mostly. Other than that io_op_defs and io_uring_fops now. But... there's something a little weird: $ grep read_most -- fs/io_uring.s .section .data..read_mostly,"a",@progbits $ readelf --wide -S fs/io_uring.o | grep read_most [32] .data..read_mostly PROGBITS 0000000000000000 01b4e0 000188 00 WA 0 0 32 (this is with gcc/gas). So despite that .section directive not saying "aw", the section got the W flag anyway. There are lots of .section "__tracepoints_ptrs", "a" .pushsection .smp_locks,"a" in the .s file, and those sections do end up with just the A bit in the .o file. Does gas maybe somehow special-case a section name starting with .data? Rasmus