Received: by 10.223.185.116 with SMTP id b49csp396065wrg; Wed, 14 Feb 2018 00:22:13 -0800 (PST) X-Google-Smtp-Source: AH8x224iNqPErbJOvh7Sq2zxOV8Xr1/5lpHme/dcsh1wbE07RXCa+Dsa1NkpmCqwyy1scZvXh7Ay X-Received: by 2002:a17:902:aa85:: with SMTP id d5-v6mr3840432plr.239.1518596533156; Wed, 14 Feb 2018 00:22:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518596533; cv=none; d=google.com; s=arc-20160816; b=JJBdQngTINbwCZZFoCd3MLF8nE2z81ipHwZUnX4KeQQYwNK7PRmNhxriCAYQ+GiYS6 DvT1w0g9fO2wuCO5gmKE/ao83ZU198A11/zJ0+ZOureLHuuJcWwI/bFvjfjcS4IQeWVj fw+doc9vU/2Dw9x2TWHANJiM42OMYgdJdnXktacbjgLOrf8gtyvxORp/4XwkEzgMvE3b oQ1c8XHUsyvFf8Fk9NUuMG84spDBw0AplTWpk7Nlsav9lrQeIa57wZCvUrdevc0rZBff ZOU3SdD2fgeKIirGv3kMzftAclCftswPZJU3udw+zikDzbugEz4L8xGQw3KmR6r57Z3o 1jaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=PBo7/aKNRF7U31KeK48GVCFnIhQb83oHWPlqZQI+C/o=; b=IdXup54wbGV9nqDj88AgBFYsRPPwfC0dyneKhBrW6mCcR4BLWtZQMOf1C5kxbXfWGT DfejvKluU0+QImQlPcgxNtO1ipUlNPvOPAA+qh5+dJ7HR73uuwOefSCM/iqc9EJc0Dyz Dkf7SLb1Aq1uRoV0hh1t3F90lIQyz5WjZ/I+rmnBhe3jRtfz3dElBWJVqm47qjcGA/Zz o2oBi3GfsqjDZV9RfjTcimb/xcENzNAb45UqwbBsQukAR+FtUtQbXeLxHs1+joagHruZ fKxkqlFkHJSOgRkCjGGIy3YtH8PkxhUXs5sLJBjfAfYAhUMpclglomY5xbVe1VjhOP/n Eh3g== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d10-v6si2466599plm.539.2018.02.14.00.21.58; Wed, 14 Feb 2018 00:22:13 -0800 (PST) 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; 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=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966919AbeBNIVT (ORCPT + 99 others); Wed, 14 Feb 2018 03:21:19 -0500 Received: from mout.web.de ([212.227.17.12]:60417 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754556AbeBNIVR (ORCPT ); Wed, 14 Feb 2018 03:21:17 -0500 Received: from [192.168.1.2] ([78.48.82.239]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MNtLj-1erdru0Bat-007RNc; Wed, 14 Feb 2018 09:21:13 +0100 Subject: Re: efi/apple-properties: Checking error handling in unmarshal_devices() To: Lukas Wunner , linux-efi@vger.kernel.org Cc: Ard Biesheuvel , LKML , kernel-janitors@vger.kernel.org References: <145f8fac-9297-b362-d89f-886632e2507f@users.sourceforge.net> <20180213184033.GA24299@wunner.de> From: SF Markus Elfring Message-ID: Date: Wed, 14 Feb 2018 09:21:00 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180213184033.GA24299@wunner.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:CTh4LtVfJErdJ2fZa4SLYfZj88er1ub4g+ETkHjiN8aAdezfZYJ biK2+YofDaM9p3ibu/0FNVOXwRfcxdd3zKylN8t6/JfAr1VsQ7fNoKiV2smjSyD3/eRjELl 3hAxMjsMSzGQsFNgsb7hI1zUjsQShgEmxlJ2CPp3FmMhAoQbGFDg4icRutVNPQy7pxyLBDP l3kXopvag9+dqgKbsl3gA== X-UI-Out-Filterresults: notjunk:1;V01:K0:HqZ+bzO2Mz0=:gH0fUEfeN5oEqgBLiGAdlp fkw1UpGAh3C5Y0shPgldpGL8lz26OzyLdQHahdRQ0TJvk3o7QLmhkw6NARNY52x0Uxy3XElrT gI3dC7hxM5ReG5SSMWUgYiVGACPZN5CIFV2wo7A/Zy35AjUwqrqKyinVg7QMTLkfLv5FluoYA TxHnDG90lHD2yfhSN5mJnTWikpNXKtmxh44KrUnCxakeOP/rLKfrZSu64mtk26rR9s2ZgpYpi yPpTHjGKQE8PbbZiKZGGAFVcoiLPMKP2BwXDtI6qusPCzVWNIfls8VNtgiazENTfE2nKsOD2J twsTysP94yRp4aW0mEBdZYII2sb/yqgnVmleLdXvO/0+rvjaO7fjVXKLAchP+JLN3VWS/7e+L oNs/mkMa1q1wrFKcDgbw7y8gx86IdajcIvqUV2jbVPKnMf6Jdu+7BPnl2RFheIVb4EvUn3v+v kwyNfCQPFTd0CyYOMNW8Q9SLIcnFxZYyCHwkuBj62X1WCX5Q90bJpQgGuTghGz1dyhomL4ESN zwBTJSMvCIOyatP+yP4mVVgTsyZ6akQOrBVapX8SSfTKS4/KzTe6R6J+1a5rXQASCLPZohyAX GgpxrH1piYjnXncXTZTiXn1pHAx6uZzGg3jLRqCFSs4ABxEgwExBPVXTZyYqlLJtvrQ/1hMkl dV1B5LeVkMQTaDwrXZjGyTbdXwTq28OZtopoOatCqcs4pCspI2Niqtk6WWPjhSgxLVsAz216S bRR6V/4wr+/1qJVZb3z1g/LFIWwqMfgvOiiipiJ4UTYkeor03N05mX0a1ILx7Wnj3ccjmIDvl ShXmQ1xunjGjfshx8UkvEzd6CzCWE/UDYCGm6N+BvHr6GveJgE= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > While the allocator does print an error when allocations fail, > it may not be immediately apparent to the user what the > *consequences* are. In this case, the consequence is that the > device properties will not be available for consumption by > drivers and they may fail to probe or behave in entirely > unexpected ways. Would it make sense to indicate such a questionable software situation be any return code? > Hence I deliberately printed an error message here so that the user > can make the connection between erratic behavior of drivers later on > and the memory allocation error here. Do you find this terse message really sufficient? Can the mentioned properties be required for the desired system configuration? Regards, Markus