Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1971294rdb; Tue, 3 Oct 2023 06:48:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFLq8QDyxdLhzWacLhT9vvhwXORAHEutWVQe5WBksTUP8shBDoftAM0lMAm17HCpFe6TfXg X-Received: by 2002:a17:903:1c3:b0:1c7:65e3:e610 with SMTP id e3-20020a17090301c300b001c765e3e610mr5950597plh.49.1696340929999; Tue, 03 Oct 2023 06:48:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696340929; cv=none; d=google.com; s=arc-20160816; b=GXJfQqKwJgbGoytdAQiT2BcilfL+Pa8Kc+RyNTllODpKXa8Tk9xGG2Hq6hsePpI4rO PInIMEFE0iyeOxomm3WU9AUbJURQeU623UNhknXNhaOrdloEr8TOzCbwY6Y2TO60OW+1 t2kC5C/wj0jznaNM7vrqK9SSw83OWOctleVSKzDzAl8u2F0wf9ZYKJE/0PC85nRO8jIn Yd0oMcGbFC09LQBwm9ci5D3I19Q3UpIZ5KOVswdq1fYzoEugVeNwzpjY8rTNmUeyoD3B T0v07kx6ttPyuMz0JUB+NcPSeY6zLjfQ6DaqWFofNcbZ/phDoOIu2NJOmt7V4dgxxWg9 VDkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=FTL7t9w9ALMJLgtOyBmqJM7HLzstsLdcFcnthxBVdFE=; fh=mh4ETl41Al6X9OdJylRnO5KGIHOMS5HrkGjQx/dUwGo=; b=w0Fp1dCyvKzLOs/v2qQUj+1DkUtYYk5Tpw1SyIyNfWtIw+PDboseBYFIRyzA/9DupJ dKjtj12YYbcaWkGJDUZ83wwoGj0Owig2P3K7/GoSsu01zfZ5C+q2ABroJ5heVzdFKpkT kECJbthNZVkhkJ8fAeCT50S6OV+cEZGDgQ4Pm1qsrcdV22XpcYDZWOT2qKb5DvsARDn4 kF9phJdyuJFoEGkdIP+EHAOFsmzvKelYBI2sZLaCEmxSjslYyn9Mv75b9vY+blMsm7Su t5lVtgt8gJcJDjA03h37zueuKH974gxRBINGjoM/PSmtXKeGFRB8i87PVto+rXdsi/i/ vP4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bAn4CxUM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id y10-20020a17090322ca00b001b9c3498526si1517499plg.433.2023.10.03.06.48.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 06:48:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bAn4CxUM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 94B9081489FF; Tue, 3 Oct 2023 06:48:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236921AbjJCNs3 (ORCPT + 99 others); Tue, 3 Oct 2023 09:48:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232260AbjJCNs2 (ORCPT ); Tue, 3 Oct 2023 09:48:28 -0400 Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A4CDAF; Tue, 3 Oct 2023 06:48:25 -0700 (PDT) Received: by mail-yb1-xb29.google.com with SMTP id 3f1490d57ef6-d865854ef96so971475276.2; Tue, 03 Oct 2023 06:48:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696340904; x=1696945704; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=FTL7t9w9ALMJLgtOyBmqJM7HLzstsLdcFcnthxBVdFE=; b=bAn4CxUMUbprdEghgaA5GBeV1+ZB2iIKMnzCAQk7bVsMwX81jpFS2oz7AiFWk7G2ny GDS5LQZHlep0e5zUNOSfTyjpZpAfMV7G+Zl7SFmTu+dVkuFT3IQMKvfeA0wPZmFBwH5/ IpMwxucq5janyNIcCeCp8JZ2sbJBk555X/ie8Mr3uhVYyF1P0veIOzjRQsh0Wc/9cZaF eIuUa7mh9EamzQs1jYWMIzDJ6ngq1dSnbVZg2SCVUzEwyrv3u7x7FgymUyaQnCfVSCwm pruO22s1DZ4gZODfw27LLHuBHmcmyU2FZhm6seXjzm4YFZNm1Yy76I4L6oumaqxWGcRW OdNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696340904; x=1696945704; h=content-transfer-encoding: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=FTL7t9w9ALMJLgtOyBmqJM7HLzstsLdcFcnthxBVdFE=; b=SBjwnzv8g8AN2OBP5EeQ/E4pEhG9qRxfpuwA4H+oyMVwr85gGlhVCniDQNhon4FM3o +B5rRXIqsw9GJWji5wRxcFd0+0PIO4t/1wSnq4CEnJ5T+IGpBP1dYRQ6UBVi4Qr7pIcR RgnhOqYgg5mE9GroYgwPTFLEo294MHLhtx65ckWdcrIvPcnH7MaUqHs99/5mk1Rul6kI AY+JSSpcW5TLyIcp6oeDBoaKrj+fiKRcMZgPgiawYs5EOAVpVN9NUOeMtWHv/YIZgTUT 1sZX2040+OAIF4Y+hxZP8U/Uz4cFjJh3bfv1wvNwnoRpcZPx1Dnep6S7OYFjRpwxwI5W jxnQ== X-Gm-Message-State: AOJu0YysWh+ZnGqNJbUeNvpgBUw1AgzGGS1Ijn4zgCu290GzNtWkiJet jLl6I9WsOgdQb5ea6kddR+oicO1L/dKbEJroA0U= X-Received: by 2002:a5b:a:0:b0:d85:af36:4b6f with SMTP id a10-20020a5b000a000000b00d85af364b6fmr12897775ybp.21.1696340904293; Tue, 03 Oct 2023 06:48:24 -0700 (PDT) MIME-Version: 1.0 References: <20230930050033.41174-1-wedsonaf@gmail.com> <20230930050033.41174-6-wedsonaf@gmail.com> <20231002112858.GK13697@twin.jikos.cz> <20231002113752.GL13697@twin.jikos.cz> In-Reply-To: <20231002113752.GL13697@twin.jikos.cz> From: Wedson Almeida Filho Date: Tue, 3 Oct 2023 10:48:14 -0300 Message-ID: Subject: Re: [PATCH 05/29] btrfs: move btrfs_xattr_handlers to .rodata To: dsterba@suse.cz Cc: Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Wedson Almeida Filho , Chris Mason , Josef Bacik , David Sterba , linux-btrfs@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 03 Oct 2023 06:48:43 -0700 (PDT) On Mon, 2 Oct 2023 at 08:44, David Sterba wrote: > > On Mon, Oct 02, 2023 at 01:28:58PM +0200, David Sterba wrote: > > On Sat, Sep 30, 2023 at 02:00:09AM -0300, Wedson Almeida Filho wrote: > > > From: Wedson Almeida Filho > > > > > > This makes it harder for accidental or malicious changes to > > > btrfs_xattr_handlers at runtime. > > > > > > Cc: Chris Mason > > > Cc: Josef Bacik > > > Cc: David Sterba > > > Cc: linux-btrfs@vger.kernel.org > > > Signed-off-by: Wedson Almeida Filho > > > > With slightly updated changelog added to misc-next, thanks. > > Removed again. I did not notice first that this is part of a larger > series, please also CC the [PATCH 0/N] patch. Sorry for the confusion, I will CC you there too. > There's a warning: > > fs/btrfs/super.c: In function =E2=80=98btrfs_fill_super=E2=80=99: > fs/btrfs/super.c:1107:21: warning: assignment discards =E2=80=98const=E2= =80=99 qualifier from pointer target type [-Wdiscarded-qualifiers] > 1107 | sb->s_xattr =3D btrfs_xattr_handlers; > | ^ > > but the patch changing the type is present in the series. > > Please update the changelog of btrfs patch with: > > Add const specifier also to the pointed array members of > btrfs_xattr_handlers. This moves the whole structure to the .rodata > section which makes it harder for accidental or malicious changes to > btrfs_xattr_handlers at runtime. Will do. Thanks! > or use it for others patches too.