Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1598344lqt; Wed, 20 Mar 2024 08:33:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVIDy/HK/ElOmoUUqmWJy4Ql5q39cvnrEkhfLwtAC7ILINyg/42pQ0UPD2iwxf881zMLibzWiPBag0nDIsmti/iqUSU6872wsS2carJjg== X-Google-Smtp-Source: AGHT+IHJRewkgybLZKVO7eFA00/pjKyvYAIlLIH7gxAYKIsVs9v4PW4F60fAkOemrAPzNcE/OMnR X-Received: by 2002:a05:6a00:4605:b0:6e7:355a:2f62 with SMTP id ko5-20020a056a00460500b006e7355a2f62mr2261418pfb.6.1710948813557; Wed, 20 Mar 2024 08:33:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710948813; cv=pass; d=google.com; s=arc-20160816; b=NvWDm7Mhb9hvc0qlO31HPoFErBaufzaViNX4KpjyeAkIDS4THt3aiP5xwJ/HBeIKv2 J+WBS9DwJvAJryWRlV6ygOLH+uhEOhrQ/W+KcBYHqD9O2cpW3qvIiL6r2/e9JWK8TEPz RsCnRODwOQKy6EM2SCx6O+4KtWnLyXdfMfVXVlpjqwAfTVrZQcnEBmPQDL+saogs0xtV D8EC1TOqzmCJwBKuGTiKQLWVqiwePcalcGrGQ082FEfQnGqYrotcKJgUBtRTde7S2nkx eWiV0HQf91utENEalQSKMbYh3DwibF2HXZOFJkb8g+vEip9TXSliUx34dLTWVQPE2aWD HAQw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=fcgA/LAaTzB6OivxiOGHwrjOxlKpwBP2Iv+D1ySwstg=; fh=TmpoMpnrUTGlr8pksCY3ACupObBDy+dkaVY4dE3hIdg=; b=eK5TOfsfJbPZb4jtThNL/xDgAJ7SYZr+STd2yuMlbcjOoKDsEOQNzgull/nTgZyYBV o9EPZHxuaGy4uo859q3BLobGOiTh3GTOH2qFsQd8emjKUlb92oRbiya4e3fM7uHID+ii uAZvh4Pdzqt+KNCXgwyn3AtkUJuS+0k9YDBD5QscM4BxIqIlaLN6nbGJD9BG/muDPL6C 1xh/jxA04ijo/BriydiY8V7gSpTIqkxYrGWegAw8j6eufzm4qZMjdEX7c6hhH5U2Yqsb 42UdWYlH2Sb69ObtDdqo9J3++Z+l1ByosmTd4wf9Sd1x3rzU3Osl7z6UrBt4agaQRgz3 0ZAw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="Y69+HU/K"; dkim=pass header.i=@suse.com header.s=susede1 header.b=jIIRKzYB; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-109105-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109105-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y125-20020a62ce83000000b006e6b5034cf8si13435786pfg.254.2024.03.20.08.33.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 08:33:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109105-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=@suse.com header.s=susede1 header.b="Y69+HU/K"; dkim=pass header.i=@suse.com header.s=susede1 header.b=jIIRKzYB; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-109105-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109105-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com 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 AA8BC28547E for ; Wed, 20 Mar 2024 15:33:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 75FF953392; Wed, 20 Mar 2024 15:33:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="Y69+HU/K"; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="jIIRKzYB" Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ED9AB52F72 for ; Wed, 20 Mar 2024 15:32:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710948780; cv=none; b=Un78vpKER1I7rZeFiqi3KXdZcE5+A8gX1CQoe9fwXzxRlavMmKNzI985FGrcdQa3l0XU5gCYUBwBO9q9KlrwsiXpZ6NKLaSCtmQjWQfFe7p5H+plB2bndTH6zP1ATPCEx700hP7OLL/O2XTK+5y1nnKK+tOGeQcNCyvpRP4A4hU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710948780; c=relaxed/simple; bh=9DKwmJA6NEyAQK3sV5H39Vsofb3sShz1AX12hxALOoc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nNyY7Fus0QCqn69DHFdMOGPysbP0WlEhSiCNvfD14xgEbcUgT4YDuo6S195+YrfvNCF03rnrblXAJ2NXJVb1QgmZcQ6mpCTTER2yNevZ6+DHICWErMWYApd3p5wV6vCKDk7OaPeEZpPQ5R3VMujONjlvB1IqtOx16pjLr53g1vc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=Y69+HU/K; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=jIIRKzYB; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id D8B075BE3C; Wed, 20 Mar 2024 15:32:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1710948774; h=from:from:reply-to: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=fcgA/LAaTzB6OivxiOGHwrjOxlKpwBP2Iv+D1ySwstg=; b=Y69+HU/KVa9uliJeKs9vRcxXmL26v+L1H+2L46QjXankBLqUBDex1nX4V1FBi1X5sR4L0/ KZpMR2xrHRdxXGUy/HjB32bmV5I/aEi+1pWab5ZYR8/eq9jDhf9oYjP3BkP78EbjgKbXgx wEK3Uqf9HA+RKtKIsBw2/HK/O6LPG8g= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1710948773; h=from:from:reply-to: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=fcgA/LAaTzB6OivxiOGHwrjOxlKpwBP2Iv+D1ySwstg=; b=jIIRKzYBzefja39B8cCIVsTnWgoC0lg953Oet6vBEgq5oDkL9TGw/YAhNWL24oeqUucCMR j7nk8xCyQbWWfhE+rk4vqvPYyvl6YAYp2Hg1Og145zlWuKWLkixeHA4Luhdr9f6ky/3khZ j2z+SBz3Ds2q/oLJ5rS84VI5iEabK1E= Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id BFF6E136CD; Wed, 20 Mar 2024 15:32:53 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id QlPhK6UB+2W2VQAAD6G6ig (envelope-from ); Wed, 20 Mar 2024 15:32:53 +0000 Date: Wed, 20 Mar 2024 16:32:53 +0100 From: Michal Hocko To: Lee Jones Cc: cve@kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Felix Kuehling Subject: Re: CVE-2024-26628: drm/amdkfd: Fix lock dependency warning Message-ID: References: <2024030649-CVE-2024-26628-f6ce@gregkh> <20240314110938.GM1522089@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240314110938.GM1522089@google.com> X-Spam-Level: Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.com header.s=susede1 header.b=jIIRKzYB X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [-2.57 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.com:s=susede1]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DNSWL_BLOCKED(0.00)[2a07:de40:b281:106:10:150:64:167:received]; RCPT_COUNT_FIVE(0.00)[5]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; DKIM_TRACE(0.00)[suse.com:+]; MX_GOOD(-0.01)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.com:dkim]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-1.56)[92.15%] X-Spam-Score: -2.57 X-Rspamd-Queue-Id: D8B075BE3C X-Spam-Flag: NO On Thu 14-03-24 11:09:38, Lee Jones wrote: > On Fri, 08 Mar 2024, Michal Hocko wrote: > > > On Wed 06-03-24 06:46:11, Greg KH wrote: > > [...] > > > Possible unsafe locking scenario: > > > > > > CPU0 CPU1 > > > ---- ---- > > > lock(&svms->lock); > > > lock(&mm->mmap_lock); > > > lock(&svms->lock); > > > lock((work_completion)(&svm_bo->eviction_work)); > > > > > > I believe this cannot really lead to a deadlock in practice, because > > > svm_range_evict_svm_bo_worker only takes the mmap_read_lock if the BO > > > refcount is non-0. That means it's impossible that svm_range_bo_release > > > is running concurrently. However, there is no good way to annotate this. > > > > OK, so is this even a bug (not to mention a security/weakness)? > > Looks like the patch fixes a warning which can crash some kernels. So > the CVE appears to be fixing that, rather than the impossible deadlock. Are you talking about lockdep warning or anything else? -- Michal Hocko SUSE Labs