Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5367700rdb; Wed, 13 Dec 2023 06:54:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IF/06MwpqTaN/Q1YxM1IAHESmIPVG57YF5/FcTVJwsLDbsXoFKadnC3ut17E+fjNzI+rvKu X-Received: by 2002:a17:902:7e82:b0:1d0:9416:efb7 with SMTP id z2-20020a1709027e8200b001d09416efb7mr7906228pla.108.1702479270336; Wed, 13 Dec 2023 06:54:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702479270; cv=none; d=google.com; s=arc-20160816; b=PlLP/0bl0RCPYkcIHUS6CrVwdlRv+MR9zccvg/0qBlix7gLvuMLbRChenmq/4X2iQX 8jU4lB9iKhO7GhAQIaO5GY+mOHBdGh/Qn1MU+9CEEPACesXf8uU9+xMHjRds5/t1L2Ne rX/qgIGgl05DVgcitsCLFZF7WxxXJVa0SWtKlaPxMdRaVufN0YOjF1l2xpEx3S1svuiI BX9IJeebLVPWFLDHYfF93/l/J7JdTKf0H9oqhs5joRn8ioXIKIQaon/mPk70XvlFEjyD tcPEAmtdVc+UvUw5iOVlElNPVpc+UJPXnkZFFaPAOj+oX33QZPelq3v3NGdHu99VrB2N 5AfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:date:from:dkim-signature; bh=sYhZKTO+n/Hy770LjqTnEQ/mbZOGO/ntqNbsrj+NvGk=; fh=HQ3dm2nFFCGTW02WOQRDvTmcJlUZnpYDIU0Cs/VTPuk=; b=pQX6j+0TdiP6FpbSN7qvumuGusvmqizgRe0+0g+GBQk+ACLpq6fDeEgsbC2I0vyrFQ kzbdUrl8EQnAdKX6dZ9RHP4wCh/32AahLgkmgVNHOr1WLYIYUN+VuF7AlrazZY47wu3T +YHzVfwD/G2xykha4VKHa0VKyrdMzBrF2BkeWWTMYrfk1zi2Nfr3x5sccOXrXkdCko43 9KUnPtT9KCAuo4gf8g2p2SniGN+MgccoLa2MkhLoJLKJrJ5/Ff6J4BzU+Kt7JtI7DsSu NOKNFWG/rK43Ub+pK8PBRG/oFq9kH5uIjsnDu3kQp9LaBlWCVi3/N46qp5dxvzI7jDyx UfjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maine.edu header.s=google header.b="SzZPap/1"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=maine.edu Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id az4-20020a170902a58400b001d05ec3be0bsi9649182plb.130.2023.12.13.06.54.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 06:54:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@maine.edu header.s=google header.b="SzZPap/1"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=maine.edu Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 1144580403A2; Wed, 13 Dec 2023 06:54:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1441802AbjLMOyN (ORCPT + 99 others); Wed, 13 Dec 2023 09:54:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233502AbjLMOyK (ORCPT ); Wed, 13 Dec 2023 09:54:10 -0500 Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A6C7E3 for ; Wed, 13 Dec 2023 06:54:16 -0800 (PST) Received: by mail-qk1-x72b.google.com with SMTP id af79cd13be357-77f380d8f6aso408357285a.2 for ; Wed, 13 Dec 2023 06:54:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maine.edu; s=google; t=1702479255; x=1703084055; darn=vger.kernel.org; h=mime-version:references:message-id:in-reply-to:subject:cc:to:date :from:from:to:cc:subject:date:message-id:reply-to; bh=sYhZKTO+n/Hy770LjqTnEQ/mbZOGO/ntqNbsrj+NvGk=; b=SzZPap/1VBkTdxomNGlMOzALXK62v3vANuZSl5XzIoYOLak5aJbE3cdTSmiHYjcE+Q JFd8eIHTrXRzO2OY7HHeqP1XL8zjNegG7RWAFah/+bECQlpUVfv9cksKW6yIAz54KWc5 yB/zo9usXOvw0CKeHlpaBSaMIJcYtaS+p3XqU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702479255; x=1703084055; h=mime-version:references:message-id:in-reply-to:subject:cc:to:date :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=sYhZKTO+n/Hy770LjqTnEQ/mbZOGO/ntqNbsrj+NvGk=; b=ry0rN3rJyiOoA2V5HGCp9ercx6e8/Mjc/h5aNMzJZEKhCmWndxlR4p2x/JfUiNOgyE gGqTcmExO8KNFby78OBPG2DKJQRaCE+4/u1DLbHcjtMcmXecmwayMS/2K7SAkO8Bn+si uYCYX3E2/8XeZlYJgudxbV2XkczMEuYpEZq7Hdffe5W8mt2ZU+WN6pkhkd9ed461XK3E Hps0N3LH7xR0vXJBs+TodXkDg9A0/yPKLe6S4baCc1aJbYcFe9Qf+OaTagC6Ft1GgJ/k BPugsgdmb8ViYgvJbhZExfAoCjIR3hFOS2Qdsq89khzGxluYTpG50XNtrft+T/FSCr5/ /APg== X-Gm-Message-State: AOJu0Yzfi7NQFLUpJd64LFeeCheGl+7G2OjHnuDoIO7BXnhPwjFsohJq TbLiThQauLwo+PcxWJuMhSNw6w== X-Received: by 2002:a05:620a:4496:b0:77f:8c7a:8a94 with SMTP id x22-20020a05620a449600b0077f8c7a8a94mr3011201qkp.72.1702479255429; Wed, 13 Dec 2023 06:54:15 -0800 (PST) Received: from macbook-air.local (weaver.eece.maine.edu. [130.111.218.23]) by smtp.gmail.com with ESMTPSA id re19-20020a05620a8e1300b0077f13650cb7sm4556860qkn.2.2023.12.13.06.54.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 06:54:15 -0800 (PST) From: Vince Weaver X-Google-Original-From: Vince Weaver Date: Wed, 13 Dec 2023 09:54:09 -0500 (EST) To: xingwei lee cc: peterz@infradead.org, mingo@redhat.com, acme@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, namhyung@kernel.org, irogers@google.com, adrian.hunter@intel.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: possible deadlock in down_trylock/perf_event_open In-Reply-To: Message-ID: <227eb61b-8068-001e-47fa-b65104b3b226@maine.edu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Wed, 13 Dec 2023 06:54:28 -0800 (PST) On Mon, 11 Dec 2023, xingwei lee wrote: > Hello I found a bug in kernel/perf in the lastest upstream linux 6.7.rc5 > possible deadlock in down_trylock/perf_event_open > > If you fix this issue, please add the following tag to the commit: > Reported-by: xingwei Lee > > > syzkaller login: root > Linux syzkaller 6.7.0-rc5 #3 SMP PREEMPT_DYNAMIC Mon Dec 11 17:02:24 > HKT 2023 x86_64 > root@syzkaller:~# ./572 > [ 113.795108][ T8266] ------------[ cut here ]------------ > [ 113.795707][ T8266] WARNING: CPU: 1 PID: 8266 at > kernel/events/core.c:1950 __do_sys_perf_event_open0 Just wanted to add that the perf_fuzzer will trigger this warning more or less immediately as well. Vince