Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp332150lqp; Mon, 10 Jun 2024 05:47:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXPNT7Bm+54rD1MIT0FxRw6u4GEKhoqMawNJ/enaMp6lGb8/MAA110Q92tPnSfShq9Am6zNhdMZuu9Z8EIIbYZiFiq0hFeVe7Cau84DdA== X-Google-Smtp-Source: AGHT+IHh8n7uULGyIaAagp0RSqbFtmUptukl5IQxnaHrW5MIxOjzPeJRsfx4JBhWMAk643yB2Zty X-Received: by 2002:a05:6358:8416:b0:19c:56af:d8b2 with SMTP id e5c5f4694b2df-19f1fe2937amr1302083555d.14.1718023669208; Mon, 10 Jun 2024 05:47:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718023669; cv=pass; d=google.com; s=arc-20160816; b=fDXMVqllLo6b4hKWfrZ7nobaac+bUNprw8Q+DVsArV4SLRvaCv+I5+Fdg0Jh/OUmxO yli8BVzNy3vKTgNyW6AHBoWP8C3fQjSMaNd9rRHf5NPo3eJb50WiiOhcShVsgA2c0bg5 KTnzRx2WTvPHTsSeUQNIGO/kyH8CUtkJnSpXQ8WUEr+ki63Hu7bGAR2gRQlDbu+GaSZK QYkhc0aNQ6UPy/WQGpZ+bo4Hld3kzf4uSJAqpzyp0qIdxstyd8WgvDtIpZ1DdxpHyVnz tEDEkG6nKvcvGp73+B1Qh7NpWSpDGZeOodfQthPw740giyC1CEyy/FAujEc+vVbXdvzm pYFw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:date:subject :references:cc:to:from:dkim-signature:dkim-signature:message-id; bh=FsQNfIfCZdpRIUYvcxVTP8HeQd6Yn4tO5uFSTgix0J0=; fh=SJ221ozUQKE1gMXz18gHJLS2vw73dxI/wEW1L5tRolE=; b=Lv6uYnK3o+iPKnFR6l/2J9hhOzs57esD2EqA253Wdt7kNEROdZAfti4I2d8tsZjkur Lm89+YW5RLuapnq1srELpjIdohbWStQlGQpYLn69VUVQjBS0ZkkvoyPfpJStvv7j3If3 uRRrFq7KvnylG7QICUMN5nUeltV7s9jjt4gf00ZP5N7g0PUFTk4m+QUhwoyqy0Urmzh2 u7wpxuwsUPcG9+uTTAJhDHJujisHCCdkT/vdmjVq9Sy1sSAiUUqDEvPrCNzymEaMhirY c+JeDzib78kZXixUV+wOVXA3mJ+xVLldZvS2v1AVWytGat2FZZKumNqKJW/rf/eH3gD6 s5Sg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=MO0KJjuY; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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-208171-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208171-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de2073d0c7si7795902a12.66.2024.06.10.05.47.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 05:47:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208171-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=MO0KJjuY; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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-208171-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208171-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 516FD283199 for ; Mon, 10 Jun 2024 12:46:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 47C1E80C07; Mon, 10 Jun 2024 12:46:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="MO0KJjuY"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="UxyEC6a3" 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 C9F067FBA1 for ; Mon, 10 Jun 2024 12:46:36 +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=1718023598; cv=none; b=BirR6r4AYpoJApkwAZaXOLa+iByqOS6hcu18tVJWUbsQ99X7dSD/FiJp4WUWtb1mEg71ik+Hk0F+d7WqKYkysfLBqH09bFcikeQhT4ETz53hmucTLaqDgMEFl5zj7BooTxGRFeRaknM157nCyx1M+YnLRqfFGZwVZuOaWkcPSXI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718023598; c=relaxed/simple; bh=/TsoKlPKgUwADkaNAkW362K82F2Nen4EV7XUBkZ1CHc=; h=Message-ID:From:To:Cc:References:Subject:Date; b=ktlbt/JiXrE8tUJZ9+vU/DcDTc0Gq2Yo4k/awDtueOzMC7DuHul/3HxpOmfUyf97BGy974QtlzEJaiah6UNWzq3Trf2Ou1G5yBT4zjlFR+OSuJr2mQRcj5LohacwT+wkr25XWoO7tHaifYCUCsCkrxTFXgz9SJ+tr0TMBqwogtI= 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=MO0KJjuY; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=UxyEC6a3; 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 Message-ID: <20240610124258.109097511@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1718023594; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:references:references; bh=FsQNfIfCZdpRIUYvcxVTP8HeQd6Yn4tO5uFSTgix0J0=; b=MO0KJjuYdNlTHf3FHMWGoHd94zfX+T6d04MNFHGXcLyqaul1fMLiLjLxbY5H3i9H4zICKz OGUJJ+WBuc1UCkC8ecPJvTQAf2978QYS4SWD4STLNfEMkLUsr57lAgwD115ZRgK4KmuPJE qEsYZ6REdg4bIbhRoMj3hpeO2pRk5wpGF1hypTmEP42g5xhXREPB2I2NjKigjRSyT5+laq LYo/Ty9SyLmU3DswnMAMUELqS5OFguhCGb1NYx1Fi+yogWSCa5haOHwoSCNE8Bc07lFwGW fe+Mq3DKDMXbmN+bV9rUUC3QY6JQsR0U0nzAyXLWlVbtryd76u37bzZTRcyFeg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1718023594; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:references:references; bh=FsQNfIfCZdpRIUYvcxVTP8HeQd6Yn4tO5uFSTgix0J0=; b=UxyEC6a3kfMYPZzVcCiaGPW+0lI81F54Pj3sk1PYLYVjHW5PE8aVCITziQQPLc46B8ZEEc +mhVExej2M8Z6GDQ== From: Thomas Gleixner To: LKML Cc: Steven Rostedt , Sam Sun , x86@kernel.org, syzkaller-bugs@googlegroups.com, xrivendell7@gmail.com References: <87bk49xf15.ffs@tglx> Subject: [patch 0/4] perf/x86, jump_label: Cure serialization issues Date: Mon, 10 Jun 2024 14:46:34 +0200 (CEST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Yue and Xingwei reported a syzkaller crash related to the rdpmc attribute file and jump labels. It turns out to be lack of serialization in the attribute write path and non-robustness on the jump label side. The following series addresses these issues. Thanks, tglx --- arch/x86/events/core.c | 3 ++ kernel/jump_label.c | 67 ++++++++++++++++++++++++++++--------------------- 2 files changed, 42 insertions(+), 28 deletions(-)