Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1567221imm; Fri, 8 Jun 2018 19:56:30 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKrbZEwETcYJCLeBaEh9ldtkXvXLZQyfREIkpKGJOvCh3rxaftLlWmHvzsP4tbhAOlDYC4t X-Received: by 2002:a17:902:6686:: with SMTP id e6-v6mr9053764plk.35.1528512990076; Fri, 08 Jun 2018 19:56:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528512990; cv=none; d=google.com; s=arc-20160816; b=h/pwkkNXckM9bXyvcL+OhJJcMeKfZDAc433gpciIIR0/5rSoIauVk9aQZ73V6JNzpN DqCzbLRqs7SnIUd5ticHVJ6UlnGKCy06GCpWp6o3lZmOfATn6GVmLwDj+anpgljfzjtS uuCSQZf0jcj4uqyDhCparvnpx9AVFTxw5VfTC7Zw29awcOcjgX+0ASrc2gsyg47y8eHK nTXXOcPc1fy95Sqs4JL0t3vUcrVquVn3iDmqN1Ke5T/ErtY4L0GcdRXXbgpVCMH/iLJr LSVZ/uqFP/MXQpb0fS6EXNEmCF4ZJK2DTwwPwLIw4OxLvDMHtp/rDyX6xwZbdv0MByFy ojCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=0fhOtGKan7zV36gUw8AcXJrOgq3Yy2SXEIzE6eqFigg=; b=df+jZzH/1+jyFmaQmSmVPIvpjQZgzu5FR1h5ICFVrdvgJ7GxxadKq0dTJ8PbSDaZH2 jC5GXprvVGk+aGcFl/F5HC2guUV35wrih5kYWXiOnsEqavVlWGUkywz1tmW9OVhO2GiO OdLpmd+iGeNGgJHHx9vAiSJEhOnQ5d3JAb7csEJdbfF/hNka1NB/wmFDbQ86z3PN3vXZ FoyoP53EaNk+cfyvMeAZTjsSAr+JsOOcuPJohvzZfCc6eaSVbGlGvHKC5frJ9ZDms7Zd 2LuJvyPqpnH832X9HY9DrYqpfzOENyAt44mgbHy6iIchi72D8myDfhXAHlbA/wJCny6b EamQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=I+jK1yK4; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g7-v6si2196766pgs.568.2018.06.08.19.55.33; Fri, 08 Jun 2018 19:56:30 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=I+jK1yK4; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753173AbeFICyd (ORCPT + 99 others); Fri, 8 Jun 2018 22:54:33 -0400 Received: from mail-pl0-f54.google.com ([209.85.160.54]:38161 "EHLO mail-pl0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751905AbeFICyb (ORCPT ); Fri, 8 Jun 2018 22:54:31 -0400 Received: by mail-pl0-f54.google.com with SMTP id b14-v6so9284720pls.5; Fri, 08 Jun 2018 19:54:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=0fhOtGKan7zV36gUw8AcXJrOgq3Yy2SXEIzE6eqFigg=; b=I+jK1yK42pPbe8HMnb28QXln5mcbYtXXRy847/ZX7Odzv9mXzdb4coRwtIziwNRJpv dYgkbzmv8iXqq/9ToRiFqkJmQh2DS9FALC5RrtFKslnPB6oJ34joq05rF42+XR9/sMdq BETk9vmwvDNL+8MGHaoh3CWlTaYvZpNQUW4KYogyPwpl/fYkYHt8WAXlLcUXp4Ph5SZn pljroMpAwUY30gDyWWIOZqX/1S+6uOkNIc70gjLLpQRA5UuzlU9/YljXrOeUq0dUJwIf O8beZNrkPM/fXmJ0ZxuTNvsuvE6Rn4ZXxb7RnY+XMGOXImQ5Aq4X1C7lOEYgD9n95oIy mA+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=0fhOtGKan7zV36gUw8AcXJrOgq3Yy2SXEIzE6eqFigg=; b=JnrpMM4Ts147qumBIOBOdnvp1b6W5RmDktSXrdzv5+qslRXK+9movXJaU/r7vyXgUI eI7lZiyiVyKMC3J/STg2jyw4D0z8Y2mv4IfZHi9A1nMuZOTlidk8jYa9RCywtzQWZPqW XJW0zoFvunbtQjmNaRXZEDEbWPZ4zsIh+dswKxLhS8+R6qEUv4y5wifIxx0c88FmaYEY uh3dPJu4qE+Cimvo8fwP5DrdX+9yg96uYJbZOb2V3UpBnO/4rLZkNULpX2gdzn6Gh4zk BkJrEmSoBYOl3KkF8WW+LTFxnYD1OdZvgnjJ5MYvER726LCSUR6C4JNGljmgAEd1hGTI NSMw== X-Gm-Message-State: APt69E2SUieQF+eLFVeCpLpJfQdFRwbZb8m4S/i+4r4cRUAU1JCRe4Uy Bc5mz6jaZkQwUg7mPgophevTtrB7+Xi6S/pCErI= X-Received: by 2002:a17:902:1a8:: with SMTP id b37-v6mr9177091plb.326.1528512871362; Fri, 08 Jun 2018 19:54:31 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a17:90a:5c81:0:0:0:0 with HTTP; Fri, 8 Jun 2018 19:54:30 -0700 (PDT) In-Reply-To: <6471e14e-2872-3ba4-7336-7c5840d28c12@gmail.com> References: <15599.1528402643@turing-police.cc.vt.edu> <10902.1528416198@turing-police.cc.vt.edu> <6471e14e-2872-3ba4-7336-7c5840d28c12@gmail.com> From: Dexuan-Linux Cui Date: Fri, 8 Jun 2018 19:54:30 -0700 Message-ID: Subject: Re: next-20180605 - BUG in ipv6_add_addr To: David Ahern Cc: valdis.kletnieks@vt.edu, netdev@vger.kernel.org, Linux Kernel Mailing List , Dexuan Cui Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 7, 2018 at 5:51 PM, David Ahern wrote: > > ... > I know you don't have a reliable reproducer, but I did find one spot > where I was too clever and did not initialize a new cfg variable: > > diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c > index 89019bf59f46..59c22a25e654 100644 > --- a/net/ipv6/addrconf.c > +++ b/net/ipv6/addrconf.c > @@ -1324,6 +1324,7 @@ static int ipv6_create_tempaddr(struct > inet6_ifaddr *ifp, > } > } > > + memset(&cfg, 0, sizeof(cfg)); > cfg.valid_lft = min_t(__u32, ifp->valid_lft, > idev->cnf.temp_valid_lft + age); > cfg.preferred_lft = cnf_temp_preferred_lft + age - > idev->desync_factor; This works for me. Great! Thanks, -- Dexuan