From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756671AbcIGHve (ORCPT ); Wed, 7 Sep 2016 03:51:34 -0400 Received: from mout.web.de ([212.227.15.4]:58275 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752822AbcIGHvb (ORCPT ); Wed, 7 Sep 2016 03:51:31 -0400 Subject: Re: x86-ksysfs: Use kmalloc_array() in create_setup_data_nodes() To: Kees Cook References: <3b21b2d7-9856-009c-9bd1-3a76a83bc7fc@users.sourceforge.net> Cc: Ingo Molnar , "x86@kernel.org" , Dave Young , "H. Peter Anvin" , Matt Fleming , Thomas Gleixner , LKML , kernel-janitors@vger.kernel.org, Julia Lawall , Paolo Bonzini From: SF Markus Elfring Message-ID: Date: Wed, 7 Sep 2016 09:49:20 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:yHG+YwllqJfTMuUbWxGCs1kGdA0dJcunCLMYJI7wxRR+cQDsDns +CspEfrGRTZsDMmh0R9uM33UJfXZ2Mt8VleWsG8X49F8CbRRds8/tZMRhidj8NGpS49kOAX T2F8ReCJq6irWffhNdsN1owxDef+l5NZiMO6L81roBqiwbmMljuhdWpE7cyz4dx7sZwxE74 Rb2Kd++VWqeqjOg/dgBCw== X-UI-Out-Filterresults: notjunk:1;V01:K0:na3ZbtuRvCI=:qpf6lU+grdtNblKlHloufq uQEYVqu7Gp4RQcqp8W21uO2q3DxE0SReONPmii8lZFpOWyOs4z5U6Z3KZ0ZxmYbzC3FaSHksw uGb8FPUT/naZBIZNbzMkYYARBtrWxSOwdwuPlxLuxdhRGImUYjMdB/yrSYooE42+oXhdZL7an lfr4qeYgHl2zM9Id1Cvl+yb/ncPOXWMs/Oa7nY4ibGA0MdNVr4eLM2CDWuHhnhcKxSbA0VUwk FWF5x2RmkKsFgLFqqd7i5Pwr5FIVMswKmRegIyYRzmMxMHdUgcLK5jLyEJKeYD42JI1vDDAve Fa0sADORrPuJoWc3LpW1o9B0v/D8zn+Faa/FZwsUb2GPnGxGelnG3TblCKG0+14c8wXJpTpdv pYiFFsyFShiydicbVFofDcvNESthRhWuoiywIWBv69SOsBOYKqtJW7gYvM0s8Pfp9XZukFhbg /1Vq1wcLSHQdU5MeXr+ZCSsMtVkLI28bWL+jyTVidPcRdTOO4SyJu4blZOgB8Ratk6JwXkYI4 nNnpISgE3iRoxt56hc97JbCguILJTGZAT7NypgdWzefu+kPfAZAUqOiPQYN2covEpF9lqyNQ8 FeJfW69yU7rxBUNKd3+F6Tbz0uZsh6bRoddc4prTUXULcC0AQxjCo4KDUl+Uyd60X7fggRsFd dbcDEvQIuZ2csB4eTMZr+1J0a4qdujW5oqmv2Io2rKRee19tcS9Ui58rHXB+BXXIstCMxix31 ZwBF1jPDMi7KV44wAhGi4W6nkqEn7vhRwntIsgeku9nBm5OKDs6EL9bRXCljCycMdaUGV2Rih GbUp5QM Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> A multiplication for the size determination of a memory allocation >> indicated that an array data structure should be processed. >> Thus use the corresponding function "kmalloc_array". >> >> This issue was detected by using the Coccinelle software. > > Which rule-set was used? Do you get an useful impression from one of my bug reports (or feature requests) like "Fix usage of white-space characters at two places for Linux coding style" which evolved together with the proposed software refactoring? https://github.com/coccinelle/coccinelle/issues/76 I am curious if the time is ready now for the development of another script for the semantic patch language which can be executed by the make interface "coccicheck" after Julia Lawall improved also software components a bit more recently. https://github.com/coccinelle/coccinelle/commits/ Are you looking for further possibilities to improve the involved source code search patterns? Regards, Markus