Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934487AbeAORl2 (ORCPT + 1 other); Mon, 15 Jan 2018 12:41:28 -0500 Received: from eddie.linux-mips.org ([148.251.95.138]:59284 "EHLO cvs.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755425AbeAORl0 (ORCPT ); Mon, 15 Jan 2018 12:41:26 -0500 Date: Mon, 15 Jan 2018 18:41:22 +0100 From: Ladislav Michl To: SF Markus Elfring Cc: linux-omap@vger.kernel.org, Lee Jones , Tony Lindgren , LKML , kernel-janitors@vger.kernel.org Subject: Re: [1/3] mfd/omap-usb-tll: Delete two error messages for a failed memory allocation in usbtll_omap_probe() Message-ID: <20180115174122.GA20745@lenoch> References: <7719b4e7-1081-6fa4-6f14-f45cf062482d@users.sourceforge.net> <20180115134101.GA6711@lenoch> <1ebb5ac5-aa4d-7c19-94db-210b518d562f@users.sourceforge.net> <20180115160522.GA2672@lenoch> <11eaf92d-3928-531f-35e8-fb5a60ff03e3@users.sourceforge.net> <20180115163543.GA10657@lenoch> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Mon, Jan 15, 2018 at 06:06:20PM +0100, SF Markus Elfring wrote: > >>> Now, if probe function calls devm_kzalloc two times and one of them fails, > >>> you cannot easily say which one without looking at assembly listing. > >> > >> Will this situation change with any other implementation for such backtraces? > > > > How much that situation changes depends mainly on that very person who is > > sending bugreport and his/her ability and willigness to eventually change > > said implementation. > > Have you got any more influence on the selection? ? > Which variant was applied for your example? ARM_UNWIND > > In the other words your question (presumably) expects a world of > > ideal backtraces, which is (so far) rarely the case. > > I assume that further software evolution will matter. > > Does an article like “The ORCs are coming” (by Jonathan Corbet from 2017-07-20) > point information out which is also useful for this issue here? > > https://lwn.net/Articles/728339/ I'm aware of this article. Please bear in mind which driver you are modifying. Not everything is desktop or server machine with almost unlimited resources and embedded people are rarely using latest stuff with all that bells and whistles. That said, you might end having only fragment of log in only one of thousands machines in field. And saying technician he needs to use another kernel (upgrade all machines) and wait another several weeks for bug to trigger is no way. So until evolution reaches ARM land, my point stands unchanged: Make it single allocation or leave one of those two messages in place. In practice it probably does not matter if we know which allocation failed. We simply run out of memmory. > > Anyway, if we agree to change the way we allocate driver data here, > > the issue this debate is about will no longer exist. > > Does your update suggestion contain still any additional error messages for > memory allocation failures? Of course not as there will be only one memory allocation in the probe function. Best regards, ladis