Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp346264rwd; Thu, 1 Jun 2023 00:41:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6kHPt7q/nzS02o9b32fYxuu+1VBy2ZIf+hPEszvVprN74QVWbn6Ikisd7olAVk0tq+pjcA X-Received: by 2002:a05:6808:17a3:b0:397:f9f2:76b with SMTP id bg35-20020a05680817a300b00397f9f2076bmr8091964oib.30.1685605309019; Thu, 01 Jun 2023 00:41:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685605308; cv=none; d=google.com; s=arc-20160816; b=CVNNAffF4ZLlmotgtqURnxeGq+X3Nj1Ymhsp3QAKrrfyZxGOFrYUWbslJcOGzPMq7y cWTC8fBgy1shRhyRG/Aq8UI7uN8Qb/81ShnswQeeP6c1JbfyZfqM8aQ8L3dm7P0U7n7L N4sh7JgISR4NSePZ60yfuMGkhCO8c8AWxaIPNcSgiD/SUBMhK87ZppVI10sbqYELVVcM vZegDygbkYOHreI7qYPmh5Xal7J4jO0avr4F6NRlwabfyNFHaMeJksAqydgn7rZohx3G elfUc91+liR39wNRlOMKUAZXYDjdQrrH4XU/fWwvbgXi/yKpm2YN/Qt4fRjnubTNu54z FcFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=b2g1ofEXB91j5w+TmBR/NpzxVxTA77l1U/bYNGicMTA=; b=egPt3oDa2jwWuMrP+7gn4Iny/nVKhnLRTTr0ikK0wT/kTWMCew+DKx6wsS6AcGs6HI p1d5PtrAK65qMWZpTsoJuhJrvF6NpFVIAMP0nzbwX4kiRkIk83oU+195TuSYylvpdtTj 84ACiW5TTGkc41UCY8p7/epRMmE+pQYA9w61Qen67aesC49tfAu71y9Rxs7TgroNwIHr bfF70VLwtufVSsKHgVouipns5xBmLMkDH26HRrWnaf0d553naPcGArvn7bMJGU2yxfAa a8J1QUNhhUNwc5JbGejHho6svgOwwE3KmA16AY9FSCkZ1Gg8Rsv0XXLtLySdd6c4Zq6H vBWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=BxglkISk; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 t186-20020a6381c3000000b0053f262d3e32si2430681pgd.654.2023.06.01.00.41.36; Thu, 01 Jun 2023 00:41:48 -0700 (PDT) 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=@suse.cz header.s=susede2_rsa header.b=BxglkISk; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 S231565AbjFAHSw (ORCPT + 99 others); Thu, 1 Jun 2023 03:18:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230213AbjFAHSv (ORCPT ); Thu, 1 Jun 2023 03:18:51 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92B70129 for ; Thu, 1 Jun 2023 00:18:49 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 46B7221993; Thu, 1 Jun 2023 07:18:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1685603928; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=b2g1ofEXB91j5w+TmBR/NpzxVxTA77l1U/bYNGicMTA=; b=BxglkISk9kFiV+b267g1AAOJkB0qFQsNYCZlPlM4gIj0R+vjYUimICThshulmeaNLbW/66 v8+1lkVAyyPYjaoiPUWD8Tn0TMcY0aA83/FA5n2CW5JQio9ufA8agrlG3DmQC5mRb0Wd4D caoGItmMc0EOphm7Iv94mbidcBRuQu0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1685603928; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=b2g1ofEXB91j5w+TmBR/NpzxVxTA77l1U/bYNGicMTA=; b=zaVg/KIi2m+Ya5ff6DCpwpJeUa88ST6uycVFZwjmjfAtz7pJUXwWCqYWggviOaWzxd0S3Y CxqPbFF/+YNc5mBA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 0763613441; Thu, 1 Jun 2023 07:18:48 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id lBkTAVhGeGQ/XwAAMHmgww (envelope-from ); Thu, 01 Jun 2023 07:18:48 +0000 Message-ID: <38f847ed-69dc-d5da-5822-bd9da753fc30@suse.cz> Date: Thu, 1 Jun 2023 09:18:47 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: Fwd: Started to get "memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL" To: Bagas Sanjaya , Linux Kernel Mailing List , Linux Regressions , Linux Memory Management List Cc: Jeff Xu , Daniel Verkamp , Kees Cook , David Herrmann , Dmitry Torokhov , Hugh Dickins , Jann Horn , Jorge Lucangeli Obes , Shuah Khan , Andrew Morton , Stuart Foster References: <69dad53e-9363-c551-111a-d0051bb0265f@gmail.com> Content-Language: en-US From: Vlastimil Babka In-Reply-To: <69dad53e-9363-c551-111a-d0051bb0265f@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 6/1/23 04:07, Bagas Sanjaya wrote: > Hi, > > I notice a regression report on Bugzilla [1]. Quoting from it: > >> Recent kernels seem to generate this: >> >> "memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=3976 'Xorg'" >> >> Is this a kernel problem or something to do with Xorg ? >> >> Seen in Kernels 6.3.4 and 6.4.0-rc4. >> >> Thanks > > See Bugzilla for the full thread and attached logs (dmesg, xorg, bisection > log). > > Anyway, I'm adding it to regzbot: > > #regzbot introduced: 105ff5339f498a https://bugzilla.kernel.org/show_bug.cgi?id=217508 > #regzbot title: memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL on Xorg Hm indeed it seems to have introduced 2 new flags and immediately warn if any process doesn't use them. Maybe it would make sense for some of the non-default values of vm.memfd_noexec, but it's too early to warn unconditionally everywhere, no? > Thanks. > > [1]: https://bugzilla.kernel.org/show_bug.cgi?id=217508 >