Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp391055rdb; Thu, 15 Feb 2024 03:32:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXgPJmWxfQaJdvihdJSJ/RVFEl911QoTWKoUb0uwav1mv1kYxO6XfQekhYgnfY+rPJ3ybalc4VKCx+qSInfNKAMEpUvIv0sUhQ84JarGw== X-Google-Smtp-Source: AGHT+IGq2RUjPBPErLAIYZBT5jD77HlELEyY/bHyT6PfP5yWxJsGl+n6Oj8K9KoZbmamweE3Iclm X-Received: by 2002:a05:6a00:124b:b0:6e1:18d2:db15 with SMTP id u11-20020a056a00124b00b006e118d2db15mr2060746pfi.2.1707996772511; Thu, 15 Feb 2024 03:32:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707996772; cv=pass; d=google.com; s=arc-20160816; b=yxCBMJLH3plqDevgA61CUdcBOgpXQNSyCWCKDXCmMbJ4mcAG6E5EfcHL8BmsLVRcbc FfMrsi77+RPgw0qMgnTfllpM9Hgc9gCX3BZkuCTW9Gf4TJ4oEzIdtswhwJAtznpT2bVp 5JsymrHVBla+gJoss1E7iiwvGh1faDHKV4SJOROKS2popC0c/mnm0m+GJ8uAwXdXroAK 5XDyC7b09HEeZEFJ34Zya5EikPOjOz/D2WNwdhUPELq9fprAl1XGpwplzYcY/qQRcLJG 99ywRpNaY24dVyrdNvDRf01hZjn1e7NHjR7eDGqcrAtkicvVxXiFBJKoAF5/TBzZ9FZE l+Ow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=wrH086cxryhvyGq4VLH7w3q0kaPWmYXaAkLrmX5E290=; fh=ivYgId+cE39CL7qdz2Ywwp5YPlNH8h/7CU+iL8o/P8Y=; b=C7QQT61HbHtHX4hk2x/BXiKOVrR5Nfs0ID7yarWKXo10VtlV7HCbenWoyjCeM0D1/+ 3ePlBj6FkxkPiJTIF0nYW5RWqDkNht1rLlB4Eqahwp5hKT1u0Gnq2KqO8PydNZ+Ahxp5 8JjubAxcn/SSFSWioDFI67/wnz0aAk2/EpM6PMwZQradbxrwKdqGOtaR6wKGWMW0GylZ WRqTFv+I/KkNAgMIIGOOEtT5XfAi8Nml/qquqctF3o6X/qBH4ZdgnEcJuD3zYdAT3unw qikKtunEidi8h4NV4Qd/Uc0RbuASuEPJEMg/XNnIdPz36kI5yctH2J9Z+BSqAIg3As6X MucQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=bZg993Fl; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=dfYx62Wq; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-66776-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66776-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id w15-20020a056a0014cf00b006e102e26ea8si1046677pfu.49.2024.02.15.03.32.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 03:32:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66776-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=bZg993Fl; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=dfYx62Wq; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-66776-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66776-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 6D6F128773B for ; Thu, 15 Feb 2024 11:23:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 27BA1129A8B; Thu, 15 Feb 2024 11:23:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="bZg993Fl"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="dfYx62Wq" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4EF68433B1; Thu, 15 Feb 2024 11:23:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707996198; cv=none; b=hxaNhdoHlmzdlJWJnsaP8eQJjSUODVO5elUvEz5kuiuZbMOchlMvGLmAxy/Lrr3Ys6PqeWsjIX42H/DprEAjBPmIFSmvSmPIHcx+3qj5271vwUjsHVG+7SPpoSCZWU+mAADYq9O0OMrQJZ33haTX2DrlTyasUsrv/bLjA2hXq1w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707996198; c=relaxed/simple; bh=wrH086cxryhvyGq4VLH7w3q0kaPWmYXaAkLrmX5E290=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=qtubsAwVLpRdkipco45BFI8jucP18a6FYl8lTZ1V/NhBjQdz6Ry079KS5hBDes+avNcwZUgJlWqMburl5q0Pa0eauM8GULXlEL8Jhm6Wv1EyfLBlj0sPmckJGQFzOwISrjDEfqQreU3S7mvbxX++EhL56YMeTQVTXf7yAlowi0U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=bZg993Fl; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=dfYx62Wq; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1707996187; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wrH086cxryhvyGq4VLH7w3q0kaPWmYXaAkLrmX5E290=; b=bZg993FlO2IroH51kj5bEF2hKzukwOy29jF/xYbewzkdYx2pDO798Vo06eFPI7wIG9vHPu cl/x4Gj1EE531PxUuNIu/NGyovFDuC9m92BFsYGEf8J7k4safKw158jBiYlOpNxN9wiS0I F2CvkJsoBFRo0RRlNbimj85Rc7PVqOPlF5thmhqMSgJIaKyJMxJWbBORuCuf7NVykoj/tb rMHdrVMbqZwgGu4j580qVyzSM7xh7QQBw0yA4jcYeygBywuNk3w5mK7LGbNo+BMP2aGZC6 toH2fRobgmWo4h6T/72IYfbJnQNENwa1/jjtfHcAvksmPhhMQ2CtTLvz3XI9uw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1707996187; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wrH086cxryhvyGq4VLH7w3q0kaPWmYXaAkLrmX5E290=; b=dfYx62Wq9iH+RrIA+K3w/cYvFVtbir63FhLXN0ySNjolbzoer0jhDJKqOZkquHSUK/H5xT yw3VOtFMtYPX0XDA== To: Hou Tao , x86@kernel.org, bpf@vger.kernel.org Cc: Dave Hansen , Andy Lutomirski , Peter Zijlstra , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , linux-kernel@vger.kernel.org, xingwei lee , Jann Horn , Sohil Mehta , Yonghong Song , houtao1@huawei.com Subject: Re: [PATCH bpf v3 2/3] x86/mm: Disallow vsyscall page read for copy_from_kernel_nofault() In-Reply-To: <20240202103935.3154011-3-houtao@huaweicloud.com> References: <20240202103935.3154011-1-houtao@huaweicloud.com> <20240202103935.3154011-3-houtao@huaweicloud.com> Date: Thu, 15 Feb 2024 12:13:37 +0100 Message-ID: <87o7cidlpa.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Fri, Feb 02 2024 at 18:39, Hou Tao wrote: > > Originally-by: Thomas Gleixner > Reported-by: syzbot+72aa0161922eba61b50e@syzkaller.appspotmail.com > Closes: https://lore.kernel.org/bpf/CAG48ez06TZft=ATH1qh2c5mpS5BT8UakwNkzi6nvK5_djC-4Nw@mail.gmail.com > Reported-by: xingwei lee > Closes: https://lore.kernel.org/bpf/CABOYnLynjBoFZOf3Z4BhaZkc5hx_kHfsjiW+UWLoB=w33LvScw@mail.gmail.com > Signed-off-by: Hou Tao Acked-by: Thomas Gleixner