Received: by 10.213.65.68 with SMTP id h4csp2638504imn; Mon, 9 Apr 2018 06:48:36 -0700 (PDT) X-Google-Smtp-Source: AIpwx48kUoEwE059sLhVT5THunaGg+UxN1Ud5WrYxazHMxIu/eoVJBocNynXhPyHMb9eXgA+vZzj X-Received: by 10.99.168.13 with SMTP id o13mr25242843pgf.198.1523281716126; Mon, 09 Apr 2018 06:48:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523281716; cv=none; d=google.com; s=arc-20160816; b=Y/AV89mHA0qAU4SSgxncbYhz4cEJwVyv8mMqnWEp+S3ye6T2M9lypl4AcZ6TthLQRt dr03Pv7ASAvu2Xq/E2XGf1FOXLH8kpKuJWH9Fyc6myP/jl5e7G2zqcG/8mqnLS7CtZeT FpTXjprUXnZXgsJDBFP98Gpnz+ZV74VQ4V8on9mqKm25rI+zzovrnn/fjZmZtQRYlo90 MAj0zj2t18cf3xIGP9h4AGqxDwb03MIRyELcc8viyg8casVp6u1TNbnlrSaoJt7zdWzz zufnBHf53k/HUZAipWz3zYTCXiEjIl/G2Cm95YjAD6gHpeAi1XljZsw8UNqKI+aIuR76 xC3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=/hHYBQpSXsCaqQnfpmO1rOeFhn0qk0uBF++H4vZ7Kpo=; b=ZwjdIN/J2rTCys4SFVnsxLHGVTYuTvyo6heoL1ma1BoB788L2IYprLoiDgGiyYGMWf veXbz3OLCSNFZP4OolHBtR3dyH+C7X0lzDFgigEh/31S7v3eDXKvXSg2TmpRgeJCRxsP k600EBwt72rV/58LjxkSiEw/PUYtotZYDQiZ1cnkVZdG+KpBD7cdDFRb++ZyLrFX9+uN UGBybdaryh2tQQyI1HsSZ5C7dHUyga+2+SPXzAHlMNcLZojZXKt6Yiq/aaurU1LInjux 965xMt+B+iBVnoVQk+pWfa4giDfzJ08AFvMP7TfUmlh6BrfUtexpAkHARBvlfvJrG6P6 PIWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=olnmPblC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r26si267965pgu.422.2018.04.09.06.47.58; Mon, 09 Apr 2018 06:48:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=olnmPblC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751650AbeDINpA (ORCPT + 99 others); Mon, 9 Apr 2018 09:45:00 -0400 Received: from mail-oi0-f47.google.com ([209.85.218.47]:41268 "EHLO mail-oi0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750759AbeDINo7 (ORCPT ); Mon, 9 Apr 2018 09:44:59 -0400 Received: by mail-oi0-f47.google.com with SMTP id 188-v6so7622591oih.8; Mon, 09 Apr 2018 06:44:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=/hHYBQpSXsCaqQnfpmO1rOeFhn0qk0uBF++H4vZ7Kpo=; b=olnmPblCCLpVUZ0d2NVAepT3qGjBCOPVFI11QueQhex/28L3DRdJIcDkSVfjgiSL6V 0VMxCCi/qbLTUlAKaLANgj/L0KschqByr7NlH4ryWbrGXbsy+YSN/E2Jt5HAJUH/fNjQ L6GJ+aY8KPcXrXwwuYFyrHAyJOnHfeMP8/tzYzje/a5Zy1AcK3ynlAkg35GkSnGRjOC1 xS4IGmP7uN9O6YbsRtX/9eobSgAygiZLGeUcOWdhESm7U6+0nzzc4GyHv8f4/7u2AQQy 0xcudL5PbmsqEImzdJAkPsY42A5obnIELNVgwwMMt7YD+O4Cuj69H1iiwlrUDcyJwgDu Tujg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=/hHYBQpSXsCaqQnfpmO1rOeFhn0qk0uBF++H4vZ7Kpo=; b=OgycoRn5LrUeR4+Sbp6bd8WbF7cximwvszaBA04R3Oh/Si7cYQc7DcMOeHruTyJxv3 ZG5/lt3DXiVFYhCe9OD5m5cBwSJ23WM3a2IzhpiY5QAi9FG4c79n2W3RFqLL4EWgR7nY pw847po5C2B0HMuomjBgOt4L8NcTR8dSoXIFr3uHsNCckRW8OvLoY8gshsnpLQfBjs7c 3wVRvZDIZgM/FqdVNcFBfLsdR4d3A3DVRwUUnZZ16sIAl8B4qxzlgalboOSrG/B3p3KO APakOGheflyhCpkdEHwFCByKy9IegUhEeUmsq0XIVfG0qwr+dTkZ2Y8GXEwk9/+qzhud Q8/w== X-Gm-Message-State: ALQs6tA6zcMr5LvVzZ+f3AEH1AEZ8RyVAza1tIDjCYSpdInhTXsh9cks W6BViSBhZBmafsg2e72wOTBGQRp1lU8w691GrrQ= X-Received: by 2002:aca:eb93:: with SMTP id j141-v6mr23118452oih.137.1523281498314; Mon, 09 Apr 2018 06:44:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.138.0.75 with HTTP; Mon, 9 Apr 2018 06:44:28 -0700 (PDT) In-Reply-To: <20180409144803.08293fe4@endymion> References: <20180409001637.162453-1-alexander.levin@microsoft.com> <20180409001637.162453-142-alexander.levin@microsoft.com> <20180409144803.08293fe4@endymion> From: Parag Warudkar Date: Mon, 9 Apr 2018 09:44:28 -0400 Message-ID: Subject: Re: [PATCH AUTOSEL for 4.15 142/189] firmware: dmi_scan: Fix handling of empty DMI strings To: Jean Delvare Cc: Sasha Levin , stable@vger.kernel.org, Linux Kernel Mailing List , Ingo Molnar , Thomas Gleixner Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 9, 2018 at 8:48 AM, Jean Delvare wrote: > As a conclusion, it's doable, but the benefit is very small and limited > to a few broken systems, and it has the downside of not discouraging > low-quality tables, so my position is that it's not worth it and not > desirable. Thanks for the explanation Jean, I just wanted to make sure we are not going back to the original problem of allocating lots of memory for lots of spaces. Given the limited benefit and low likelihood of encountering lots of strings with lots of leading and trailing spaces, I agree, it's best to stick to the spec. And it's also no longer a static 2048 byte array we are allocating from anymore! --Parag