Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp1151622pxb; Sat, 9 Jan 2021 09:11:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3fpCTc09HktSleptdogwajW0efZpvMgz2z/zkstDSWDgO6tRK8CGG9ZsP8UcLHWOqActP X-Received: by 2002:a05:6402:1a52:: with SMTP id bf18mr8854865edb.143.1610212293076; Sat, 09 Jan 2021 09:11:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610212293; cv=none; d=google.com; s=arc-20160816; b=jlGgog+UqpjPsEilUng1zhhyAHjX2aGrS8n/HHoQED5czOvMIQj3DzHRAXaKNOzDLZ Fp/k2Qxqt453BKiGbWsafKqESTybqdVQDMa3U4eSPE8iNEq+uafh6dSCDkJpXt10K14+ oqyg7qVHHHu2v+E0B0qv23362o+93N9r9huhqj14vccIzOknRrOQnDUEz9aO19sHfsBj W2vRWwk9kgetmbEvhKcUsQwEiF8bfp0Fh+ZKu4cFHWoR8m05IexZ5OWeNo/jbTiF2t8d XFt++WPLlsCmoSnaFvbZaOpftYVGiMIkSBagBUaWfa7p2EaR82QozgP5VriCUZa2z3Lh MOOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=NYIkKN4tdVLOmrsq3CfczxlhNjQf2JngvyH1ARjbOJE=; b=h3DPOHUX3V+tHH3L3NyiaGOSPvshlq2OYSNYORi9da/NIwTZ/NO4+31o7XdL0Wa+Bq A0rYzv6G2Pz7nrtsTiSHXMjKLhsH3D3gRMA8MqcjuUPq/OEJ7fHq7CVlnGU0R/hG1xS6 mwgh5X6POTMjnO02uULlYB+G2vP5u6Sf4Yp7bNCxpryfNmpvIY+MRNwUZ+TVXXbFkOAA XZNpf7x9HK1tN4cRA6B7PbegbDJG37Hh1ADp+7WdszbJOeT/k5l1QsRZIHHN0ipXy+1H DO/eWOMimc5ebJzXwFjRw2sJg2K1YfWwSC0jHcnUFzYwwxkwgwKozAP7+D5QF5Vfbiwk ZxGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e5si4900362edc.19.2021.01.09.09.11.09; Sat, 09 Jan 2021 09:11:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726788AbhAIRJI (ORCPT + 99 others); Sat, 9 Jan 2021 12:09:08 -0500 Received: from cloudserver094114.home.pl ([79.96.170.134]:49092 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726251AbhAIRJI (ORCPT ); Sat, 9 Jan 2021 12:09:08 -0500 Received: from 89-77-60-66.dynamic.chello.pl (89.77.60.66) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.537) id 0d85ad585c7e0c50; Sat, 9 Jan 2021 18:08:25 +0100 From: "Rafael J. Wysocki" To: Dexuan Cui Cc: Andy Shevchenko , "rafael@kernel.org" , "linux-acpi@vger.kernel.org" , "len.brown@intel.com" , Michael Kelley , "rui.zhang@intel.com" , "linux-kernel@vger.kernel.org" , "wei.liu@kernel.org" , Stephen Hemminger , Haiyang Zhang , KY Srinivasan , "dwaipayanray1@gmail.com" Subject: Re: [PATCH] ACPI: scan: Fix a Hyper-V Linux VM panic caused by buffer overflow Date: Sat, 09 Jan 2021 18:08:24 +0100 Message-ID: <5464224.fTvfEN5hHQ@kreacher> In-Reply-To: References: <20210108072348.34091-1-decui@microsoft.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Saturday, January 9, 2021 10:37:41 AM CET Dexuan Cui wrote: > > From: Andy Shevchenko > > Sent: Saturday, January 9, 2021 12:52 AM > >> > >> Hi Rafael, Len, and all, > >> Can you please take a look at the v2 patch? > >> > >> The Linux mainline has been broken for several weeks when it > >> runs as a guest on Hyper-V, so we'd like this to be fixed ASAP, > >> as more people are being affected > > > > I would like to see a warning printed when the dupped > > string violates the spec. > > Hi Andy, > Do you want a simple strlen() check like the below, or a full > check of the AAA#### or NNNN#### format? It would be good to check the format too while at it. > Can we have the v2 (https://lkml.org/lkml/2021/1/8/53) merged > first, and then we can add another patch for the format checking? Yes, we can. I'm going to apply the v2 early next week. Thanks!