Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2524166pxb; Mon, 11 Jan 2021 11:54:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJxqDopgyEWOAtz7AAEDTNIAK0xGBiAAo+vYRYk0LgtoXS3HiTchVWd1vk3guV0s3oOYW6yp X-Received: by 2002:aa7:d354:: with SMTP id m20mr696591edr.195.1610394853757; Mon, 11 Jan 2021 11:54:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610394853; cv=none; d=google.com; s=arc-20160816; b=W4scHoSmQbNC+hdTbWeaGvbBTY8PKAQ5r0b2YQR3Xjm0N/H3YkhH58IxEH/VPziMpl n5Q+kmpbkZkjzsyPPxukIw3So/kB69OQ7LYlFdh31tJLefRgeVVY+tMZImCKqKf1/pE8 5KgmiCKY/yVni/caPo0zpML01BDf31Z3YeDKpJACyTyLy32wl9MnptWaNv9J4UTuLIGc 7BunNaNN0ql2V9zxnPcBfg4RpX0aILmSsLn0hkv5cEULSbc1rupJTsJJoM69Eo2nGt89 d+m79HiNgN23vkH4aiTCy7EE5BSoKvNVNB41kMp9sBdJqjuqVhQFLIjIg+V0sjVPA+b9 ObWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=SBH8vdEZw4wobGGWgNS/lc2kPCRJEwAz0dTT6ck4Rmg=; b=gzfhiSaxUoOoTci4N5ztvwNpBhPZANTCzmUZDMAAfvwRJ64Bfb8CUDxYVKho5U+gv8 CeQ77nIbGU8yKVtu+LLqR7j8aBTWtJCrLHgmL12AhkBnRLRR/HwT2SijyZw0yfYtWxyv ughPlr65Z/RMJTFap6YrCBVPMJw9YSlQH2oNwAclmFIt+ZXoIjR6KP/CkxD4ceadvVh4 qlQqOoxzYPEkw6sKbKLipY+9Q8JbUu+APByiFbKVggTnk1DQ2qXPfXnlWjNmytjs7sZy MT22mwkW3JCl2+jnPT1LcGMfaK35tskEzyOuhY9RaQ87bb3h9I/C/IhTJ6v3zblDCf/k M+Ig== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s4si296893edr.197.2021.01.11.11.53.49; Mon, 11 Jan 2021 11:54:13 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391165AbhAKTvg (ORCPT + 99 others); Mon, 11 Jan 2021 14:51:36 -0500 Received: from mail-oi1-f169.google.com ([209.85.167.169]:41280 "EHLO mail-oi1-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730166AbhAKTvg (ORCPT ); Mon, 11 Jan 2021 14:51:36 -0500 Received: by mail-oi1-f169.google.com with SMTP id 15so569434oix.8; Mon, 11 Jan 2021 11:51:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SBH8vdEZw4wobGGWgNS/lc2kPCRJEwAz0dTT6ck4Rmg=; b=GmS5TveI6di1Tsnky1gLf1UAnbzi0f+ZPyQn8ZC6bH32hIA+def6Hhqkf4Z0ZEGswg bf4l6WVb0fWqh4ycixalx2cSM3oA4nC7Vo81HaQL9ypxcrtnVH05ifC5j8eAyBWtsPDz s0baId64P8pjRlqJ2PkvYMhs+IlSrzAHvLoc2RbIkpsd2NKcXwkRO81hvVwbfIXJWRVv KyCqPTNvfXHK8jMZhSwYZt8ZrsBckWnTwhY0sCTAqXHpjp9Wmc1o5Y0EKHoFKNUvypUT HJgRAEg0hWggBrVgCQkS7zhS9Ix5FzHw199MxXbePQ0tZVHWTe21FLdIswFZEe0r2pwb RAzA== X-Gm-Message-State: AOAM533oN78ziaeXRu/vJN6SQcOrSiUP+1xqrvB8Ijm9qlV8187CEQwH YswkRULxbJHSlOjtHxcCi7CY/4D6LDbVV0GsEQc= X-Received: by 2002:aca:4c1:: with SMTP id 184mr276436oie.157.1610394655441; Mon, 11 Jan 2021 11:50:55 -0800 (PST) MIME-Version: 1.0 References: <20210108072348.34091-1-decui@microsoft.com> <5464224.fTvfEN5hHQ@kreacher> In-Reply-To: <5464224.fTvfEN5hHQ@kreacher> From: "Rafael J. Wysocki" Date: Mon, 11 Jan 2021 20:50:44 +0100 Message-ID: Subject: Re: [PATCH] ACPI: scan: Fix a Hyper-V Linux VM panic caused by buffer overflow 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" , "Rafael J. Wysocki" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 9, 2021 at 6:08 PM Rafael J. Wysocki wrote: > > 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. Applied now with a new subject ("ACPI: scan: Harden acpi_device_add() against device ID overflows") and slightly adjusted white space, thanks!