From patchwork Wed Sep 22 17:32:34 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Lacombe X-Patchwork-Id: 199992 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o8MHWa7Y029282 for ; Wed, 22 Sep 2010 17:32:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753707Ab0IVRcg (ORCPT ); Wed, 22 Sep 2010 13:32:36 -0400 Received: from mail-ww0-f44.google.com ([74.125.82.44]:57730 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753352Ab0IVRcg (ORCPT ); Wed, 22 Sep 2010 13:32:36 -0400 Received: by wwi17 with SMTP id 17so129876wwi.1 for ; Wed, 22 Sep 2010 10:32:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=pUPPz/zFv1WILzqN06l5Xx/PClLkbpSpL0tt7B3ar6k=; b=xukanFsMuXDHRWmrJR3a0FYAH3fhWZz6307xTt1m2ncfLwgIxSXBlLZlJUTVTvLlr+ lpbABWEWThQqjheylXlEIJBMIIXmtZBRecMTGiJuNN3MHNSurztkZXxCKY339yzHQ1rA LCbnizdD8nyl4OQ/7ga6LlEltRRtVI1s5WCok= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=SVuX0KutTzhCAcx2Yjvf7qPZZb+lQ/1QkhQ0JHX5nye7zH3WabBB2OeRWLnBogdYVx Z3Csn4kN9weC3CMSqQ1HGrX4QzY4WB50HQUHVylAiTBTuspOs+U+hWPd49Q7YQ2jpQOC 6La/L2XKHHSa3VynjirX55LZHo7CxRVLNS+6U= MIME-Version: 1.0 Received: by 10.216.50.73 with SMTP id y51mr413940web.85.1285176754670; Wed, 22 Sep 2010 10:32:34 -0700 (PDT) Received: by 10.216.220.141 with HTTP; Wed, 22 Sep 2010 10:32:34 -0700 (PDT) In-Reply-To: <1285153693.10456.11.camel@e102109-lin.cambridge.arm.com> References: <1285072379.15732.70.camel@e102109-lin.cambridge.arm.com> <1285088619.12653.22.camel@e102109-lin.cambridge.arm.com> <1285153693.10456.11.camel@e102109-lin.cambridge.arm.com> Date: Wed, 22 Sep 2010 13:32:34 -0400 Message-ID: Subject: Re: Stale expression reference causing use-after-free From: Arnaud Lacombe To: Catalin Marinas Cc: mmarek@suse.cz, linux-kbuild@vger.kernel.org Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 22 Sep 2010 17:32:37 +0000 (UTC) diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c index 4fb5902..176618a 100644 --- a/scripts/kconfig/menu.c +++ b/scripts/kconfig/menu.c @@ -107,7 +107,6 @@ static struct expr *menu_check_dep(struct expr *e) void menu_add_dep(struct expr *dep) { current_entry->dep = expr_alloc_and(current_entry->dep, menu_check_dep(dep)); - current_entry->dir_dep = current_entry->dep; }