Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3128445pxb; Mon, 18 Oct 2021 08:44:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlDU9R+gU4rejkU4H7juMBRs6Uk7/gkUOJVFJFi+fls2nzlI/nuMRY25EULI5Ny/HBovdm X-Received: by 2002:a17:907:6e8c:: with SMTP id sh12mr5087584ejc.439.1634571861360; Mon, 18 Oct 2021 08:44:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634571861; cv=none; d=google.com; s=arc-20160816; b=VMYM5WZIXVo9K5o8WH1Uoa9ZNeyc/udAXWCKss558X51S1RAeaD8dCGO1lWFZ0yEVV kLVZkZIjAdN87pVJwEamhlP97cPBv7J/zQa1oP72Jd2KyvYgzE3WT1U4dC5ogN23CWhd FILJZ6v/+8Pkgmd9/+r5zQh86DmKXFlmFP+9uapXVirhNOMKGY55d6ssLbdlkBo+m1kx RW/fog8oeWSygTiRH3b5WMyy9YOyDyf3fvheUXEmBC14h187BL7tnhSPeP8+s/8x/M1f eDcIVKniou0W88prYvfKHfzLVgg0c3IxWzbgLu+iuxLU5yMEnF6W/YoDJkGT58Jn9Mff 8QMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=2qYE2OeV1SOenenGTD6fmItcqMNDKQ7Bm8Ukp/6kkDE=; b=H+vvcI/EogWNOECQliTX6fNPLNO4hwELA/sSPjIeSYg97m4Tq1a9pFlVd9VgSzxATj 1phGn8qHQWZ/YfQAG3AeSuaoxfFRvlezu4Qklj4aS4V1SHcSp5pPwoUJwXnRHKlFoOnc yKcsVhptc/gk9K8YqSyOST18k0tE71vtl+OBCCKJNnRUMzDYMyXre/dAIZ8o5zJjsPrr 6fWHY/G/5h2erq2aVqaX8OnFRhxIGl0n0/RyjPEUboh6uAyke9B6zxq7PZLhI8ajm3qA 6M7R9egwLiTg5E4jl/dX08HTQI1FTm52sj0CgdfKZaW8XEp65HELiQ+CAqZqXDHxt7qx xzBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WM3Hf3LH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q11si26966972edd.253.2021.10.18.08.43.56; Mon, 18 Oct 2021 08:44:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WM3Hf3LH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233070AbhJRPoP (ORCPT + 99 others); Mon, 18 Oct 2021 11:44:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:51756 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232417AbhJRPoO (ORCPT ); Mon, 18 Oct 2021 11:44:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B6BC260F44; Mon, 18 Oct 2021 15:42:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634571723; bh=plY9CKiofGs0QkpzTRLAqZRAXAqM+ZcTVwgNz5Yezcw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=WM3Hf3LHiusCJPBU/HQJNTjhrs191xBECi1QayARE6FS7QAendKd3BPH+JOE0xiOj 5hJMbAiw2M6wNO9tKuoP1ul/15KKA1rYRlbxGz9E7RhsIxW1zGlBGp71nwkQSZi/tj tSeSTQEL+Q189zUNWZY8CXXsP9ScklRYgYxHOpwP5YMq+OAMXkVQxbcp54RHXHvQ3f irnk+DTuRfLod6y7HpMS4iZ2XC8R7dwCTgebwIdxjmKY6mE05d4b9Dwen0WgfD5MTm Xxp9pEfgO1OP23jJ/ta83mUiottAJF7VPN6f9vPNKlkmwpuksmNDgg4MFBZ8ErJMkC qf4rP9wltmw4A== Date: Mon, 18 Oct 2021 08:42:01 -0700 From: Jakub Kicinski To: Vlad Buslov Cc: Paolo Abeni , Daniel Borkmann , syzbot , , , , , , , , , , , , , , , , Saeed Mahameed , Maxim Mikityanskiy Subject: Re: [syzbot] BUG: corrupted list in netif_napi_add Message-ID: <20211018084201.4c7e5be1@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: References: <0000000000005639cd05ce3a6d4d@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 18 Oct 2021 17:04:19 +0300 Vlad Buslov wrote: > We got a use-after-free with very similar trace [0] during nightly > regression. The issue happens when ip link up/down state is flipped > several times in loop and doesn't reproduce for me manually. The fact > that it didn't reproduce for me after running test ten times suggests > that it is either very hard to reproduce or that it is a result of some > interaction between several tests in our suite. > > [0]: > > [ 3187.779569] mlx5_core 0000:08:00.0 enp8s0f0: Link up > [ 3187.890694] ================================================================== > [ 3187.892518] BUG: KASAN: use-after-free in __list_add_valid+0xc3/0xf0 > [ 3187.894132] Read of size 8 at addr ffff8881150b3fb8 by task ip/119618 Hm, not sure how similar it is. This one looks like channel was freed without deleting NAPI. Do you have list debug enabled?