From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757255AbcDGUdR (ORCPT ); Thu, 7 Apr 2016 16:33:17 -0400 Received: from mx2.suse.de ([195.135.220.15]:58752 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753180AbcDGUdQ (ORCPT ); Thu, 7 Apr 2016 16:33:16 -0400 Date: Thu, 7 Apr 2016 22:33:13 +0200 (CEST) From: Jiri Kosina X-X-Sender: jkosina@pobox.suse.cz To: Dan Carpenter cc: jeyu@redhat.com, Josh Poimboeuf , Miroslav Benes , Petr Mladek , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] livepatch: robustify klp_register_patch() API error checking In-Reply-To: Message-ID: References: <20160404203426.GA8200@mwanda> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 7 Apr 2016, Jiri Kosina wrote: > From: Jiri Kosina > > Commit 425595a7fc20 ("livepatch: reuse module loader code to write > relocations") adds a possibility of dereferncing pointers supplied by the > consumer of the livepatch API before sanity (NULL) checking them (patch > and patch->mod). > > Spotted by smatch tool. > > Reported-by: Dan Carpenter Acked-by: Josh Poimboeuf Acked-by: Jessica Yu Pushed out. Thanks, -- Jiri Kosina SUSE Labs