Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1429952lqe; Mon, 8 Apr 2024 08:40:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVHTs1LO6NoAYPKxlVLA2SR/MAgDBLSG/KuBAj90falCC/fHqwXPJT1rBj0iwjQ4GZj/g5isWTUv89a4tcB7/lOk3i9nfJrI92j2XAeKQ== X-Google-Smtp-Source: AGHT+IHK5vEcAlb0zhSM/l7y3GUQNpj3XIgpmaY89K6QZzFkZkDzwEULR8ncwjELxzOCjUNHKPPf X-Received: by 2002:ae9:f44a:0:b0:78d:619a:b1fa with SMTP id z10-20020ae9f44a000000b0078d619ab1famr80020qkl.2.1712590836000; Mon, 08 Apr 2024 08:40:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712590835; cv=pass; d=google.com; s=arc-20160816; b=K1Xn73i4C+Nc8PHm8uU+G6rvByw2CHnGhRX4IFXwIGvsGLfop16nlz7jmvDA4j8VsJ 0+H6ayuGIRjHFmbpEiGOpxgxYYiUAfqGFH03TUQGj9LFyEbeqv+E516ePUNdG2f0indL myt/h3oBLDp/uK6JhbamLnWlsLJ5oMUwKmz37BAduMm3jwxBrScd/5QTJYdLwIdrvmFq /x3VsqY7rrWPqhJg9SQ9w3sEpnKQS4L2mNgMLl2Lptl7Y0MvyNTlG8GDDZX13ddrCwUx Dq89iCZTHqhO8/TvfHTNJ4UUW4NIeAkJ+3QeOEv82m4UgOKF4BQiWiknqSTD8j42Q+Ww YINQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=4b7eyQN9HOChGRRr+wy4bhQDC5OUM60ycDFfyzLImB0=; fh=6FyEGz5bCuvop07qjN5qj6aU5JwFObfFB6n87VWh/Es=; b=QPRstHVrWzY8J7hY655WGamaeRXfncG0tAVskSDcQr0edMrt5g/ApL+Ii5HPwMNiUp f6GfNLU3ioVdEJM/Ayu5nJ/8b9GnRHoVBh2ViVNbP9OJmfsOXNU4XqRdzTeqJ0Rhj+3c FGFSgUbm59gLLtIGXh7bQthL81e0xkvzQefd8Fn2Lrzq5wK14bZjG/j3gJitsKN76ymO n/K1FpCtLByH34u1OVk9uuhORS/RWn9hblkqVOb40l0RT07sJiuovAoj+UBsupIdtIaZ POeCuaTvICLbuYIvm3Oi+ga1S331axQ8FPkqkUqXqb75/BX4yQJt875bDcaS5m/8YarA o9Ow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DHb3MfgP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-135614-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135614-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bs7-20020a05620a470700b0078d54355829si4350347qkb.525.2024.04.08.08.40.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 08:40:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135614-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DHb3MfgP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-135614-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135614-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B551E1C23CA1 for ; Mon, 8 Apr 2024 15:40:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B20391411E5; Mon, 8 Apr 2024 15:40:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DHb3MfgP" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D9B5B2561F for ; Mon, 8 Apr 2024 15:40:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712590829; cv=none; b=YcURRPKC1i0U/MUs0aI420k9Coi0E68xtHnTQQ8sPO+4hY6mu/kW2oclNb654n654b6lOYGUf1Xcuz1vJvGdQzxiGKf1/HECABJ8bkKJM/13PniRKswDStYQPQmlydUkXnl2pbMMN4hFVXsZshDbVxS0l+YOKtz2nkF2qrMsFxg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712590829; c=relaxed/simple; bh=PwZ0U9sZzNkD0KaVqwgkszl5WrTAUE7/ASJNm1Q6o/Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=PhlPg++QyAS9VVCegTFNlzVk6/dQoTk1YRCaqJ9OaMl8V/cSLq6laXIP4OEBUXJwAubfTiZAggz7DAH//+FoSpF61gdjf5SMrj4PImCh9E2Um7vv6AhBgIjmhIwYfncDUChLLnek2OiW/aqdnoh4RmeU4h8+riLMBPQAzf9UpuE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DHb3MfgP; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF580C433F1; Mon, 8 Apr 2024 15:40:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712590829; bh=PwZ0U9sZzNkD0KaVqwgkszl5WrTAUE7/ASJNm1Q6o/Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DHb3MfgPvwrWQm3k7uMR+X/ZVuy6AsSrHO2oEzZBvIGK3Ara/PXVFf5vvF1Is6oOF IviCPuF7Fl70MR4XKy5vMNLgdAImIvgD+re95FXhRWfRC7jwlicPlh+BlNhAib991h 4+lyX/oNPd8QLHoKraUPbcFzJOqk/aldsxrxpifWkatQXWZAhxgXnSgq8iu0UzuoSY YS7Js+fcGyeWmQRQzu+ZAiayDH5soEmiuQHPV0UuWSQMgnb2x8iIjvWjj1C4flJ+R2 /DY/IifpBVlR4/nKvJ6PR5sUukdxrRiZ5b4dDG3GHIxUPRGGdrEdKksdIswxUVm8kM nNSLAa/MIlSDg== From: Robert Foss To: Aleksandr Mishin , Swapnil Jakhade Cc: Robert Foss , Thomas Zimmermann , lvc-project@linuxtesting.org, =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Quentin Schulz , Maarten Lankhorst , dri-devel@lists.freedesktop.org, Laurent Pinchart , Zhu Wang , linux-kernel@vger.kernel.org, Neil Armstrong , Tomi Valkeinen , Rob Herring , David Airlie , Jernej Skrabec , Maxime Ripard , Jyri Sarha , Yuti Amonkar , Nikhil Devshatwar , Jonas Karlman , Andrzej Hajda , Aradhya Bhatia , Daniel Vetter , Jani Nikula Subject: Re: [PATCH] drm: bridge: cdns-mhdp8546: Fix possible null pointer dereference Date: Mon, 8 Apr 2024 17:40:20 +0200 Message-ID: <171259081156.2558005.10286796627234601438.b4-ty@kernel.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20240408125810.21899-1-amishin@t-argos.ru> References: <20240408125810.21899-1-amishin@t-argos.ru> 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="utf-8" Content-Transfer-Encoding: 8bit On Mon, 8 Apr 2024 15:58:10 +0300, Aleksandr Mishin wrote: > In cdns_mhdp_atomic_enable(), the return value of drm_mode_duplicate() is > assigned to mhdp_state->current_mode, and there is a dereference of it in > drm_mode_set_name(), which will lead to a NULL pointer dereference on > failure of drm_mode_duplicate(). > > Fix this bug add a check of mhdp_state->current_mode. > > [...] Applied, thanks! [1/1] drm: bridge: cdns-mhdp8546: Fix possible null pointer dereference https://cgit.freedesktop.org/drm/drm-misc/commit/?id=935a92a1c400 Rob