Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1858969rwb; Thu, 17 Nov 2022 03:09:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf7yQj2YO5rbE7MjmgY4a9BfcKE4BZRz+vfFZcDMOpRFiyuVTPqD/vWTCFKqU+WG/+F6J6ys X-Received: by 2002:a17:902:cf0e:b0:186:6723:9217 with SMTP id i14-20020a170902cf0e00b0018667239217mr2170008plg.160.1668683390662; Thu, 17 Nov 2022 03:09:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668683390; cv=none; d=google.com; s=arc-20160816; b=c5BK1Ng8MiYTyd0z594ey2icdSkdI1v++qLM/MxM3EKiMl9QyRfI6VHQblwcTeIqLu tWzUHMcrgZMMlXCsYcyvdPdcg1fOlgeyjfykCOpIK5fucaQASrR+n7QRkZJAAbGf05a/ 0Hx0WkqLMKZpfe+IPkpxVzy5DFGt+Bi/pVs7W4ofFULEcnPJYyhhy8Pg0E5g/K1Qrxh9 znCeknK659pGGQza5zoHVXXQNM6K2Eda0hjSxmsJ5xuOBsUmQ/7MZw3UrKfdv+/fp3LT 13E6E9+HIkqj2DwlGnPQ6pHHExXEqQXZ7S14jMRO05RndslNlK8EIU+kEb8UXskzFCR6 QvSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:in-reply-to:date :mime-version; bh=w6CLodQKWDUJPKbdKwqg+PIfc9tIm/vugNt67SeEXWc=; b=trNDHi0WVSgh5ARhjiAe4ngzP0ioqw8zs1lJ9ZgXYqEvPJ5LTWOVylJsh/6UmDbrJ+ Kv6m3SKwT9usVnX9kZFvzUdGdv3WINhWnWr68JD9RXpmrqtVlqcHxV7vtpdLZlPb0U+J f+jGNhs7z/42/MYKnwy+sZuYzA4KIGtfvfwu1GK/L6HMClPUfY1vR6gwzq9P4JNBN4xV jABhwj08Q9MGHqd9bI5/xkhiX46w9tsqpcDanLwXJ1a6+474DOGUb44+TzRcHaTFLOeq gJm4UQgV4hZG2TnZ2+VW/EKjaw+gb505g9HLdYYJFQsbXu68qDAHqHBD8XA9sJ14T7/u W3uA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h8-20020a170902b94800b0018701f083b1si626492pls.619.2022.11.17.03.09.39; Thu, 17 Nov 2022 03:09:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239702AbiKQKy2 (ORCPT + 91 others); Thu, 17 Nov 2022 05:54:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239410AbiKQKxV (ORCPT ); Thu, 17 Nov 2022 05:53:21 -0500 Received: from mail-il1-f199.google.com (mail-il1-f199.google.com [209.85.166.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 824865B85A for ; Thu, 17 Nov 2022 02:53:17 -0800 (PST) Received: by mail-il1-f199.google.com with SMTP id a15-20020a056e0208af00b00300806a52b6so971802ilt.22 for ; Thu, 17 Nov 2022 02:53:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=w6CLodQKWDUJPKbdKwqg+PIfc9tIm/vugNt67SeEXWc=; b=HSoYddTvKhZVOUEdWf0BMLjO+sezjeZAB2xsE/KHPj8XIR0uDCiDb9CjRwZCbuRmxQ dGZup3Jh8pptQEcltJVbkTuetXsVO11psANmRPF67c89OraqrDppoM3MEGOgTHb9TVqW yl3xmDPtXJk/GRjXtCYds1FKuu7T5m4gmdD9T1MJZZNEPexQ2SMSjc0SnIMmM2IwBD7B qPrrDxLVijjjFMecCFJGvOIAuJufMj1+FuSOhvaer/nveUzJwBvAGQzhfj8C/i2qXHnz //dWUOpNEAEHSLevqiZLNxbdcarLkAG/sBn0dwULmbDt+ylFwJV6Aq5cCpumy3LujAw/ UZYg== X-Gm-Message-State: ANoB5plMWtYER/Ju02Y7XQC4km6NLqOmBTkb7uSQ2JUE//UJPC7Faa5X d41mU2vQX1im/Nx91KcfkW7Gs2epHHObIO4NImiNxNTwReFz MIME-Version: 1.0 X-Received: by 2002:a6b:f414:0:b0:6d1:88ee:a64f with SMTP id i20-20020a6bf414000000b006d188eea64fmr1019803iog.61.1668682396847; Thu, 17 Nov 2022 02:53:16 -0800 (PST) Date: Thu, 17 Nov 2022 02:53:16 -0800 In-Reply-To: <20221117095316.3682-1-hdanton@sina.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000081d4bc05eda8651b@google.com> Subject: Re: [syzbot] KASAN: use-after-free Read in netdev_core_pick_tx From: syzbot To: hdanton@sina.com, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: WARNING in default_device_exit_batch device veth1_macvtap left promiscuous mode device veth0_macvtap left promiscuous mode device veth1_vlan left promiscuous mode device veth0_vlan left promiscuous mode bond6 (unregistering): Released all slaves ------------[ cut here ]------------ WARNING: CPU: 0 PID: 45 at net/core/dev.c:10770 unregister_netdevice_many+0x1421/0x1950 Modules linked in: CPU: 1 PID: 45 Comm: kworker/u4:2 Not tainted 5.18.0-rc7-syzkaller-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Workqueue: netns cleanup_net RIP: 0010:unregister_netdevice_many+0x1421/0x1950 net/core/dev.c:10770 Code: 74 08 48 89 df e8 7f 68 ae f9 48 8b 1b 48 89 5c 24 40 4c 39 fb 0f 84 0c 01 00 00 e8 a9 80 5d f9 e9 64 f6 ff ff e8 9f 80 5d f9 <0f> 0b e9 2a ff ff ff e8 93 80 5d f9 0f 0b e9 7a ff ff ff e8 87 80 RSP: 0018:ffffc90000b678e0 EFLAGS: 00010293 RAX: ffffffff88289461 RBX: ffff888016ea00a0 RCX: ffff888017138000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc90000b67a50 R08: ffffffff88289345 R09: fffffbfff1b74a89 R10: fffffbfff1b74a89 R11: 1ffffffff1b74a88 R12: ffff888023fb8e80 R13: 0000000000000002 R14: dffffc0000000000 R15: ffffc90000b67ae0 FS: 0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc044717a70 CR3: 0000000074978000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: default_device_exit_batch+0x660/0x6d0 net/core/dev.c:11241 ops_exit_list net/core/net_namespace.c:167 [inline] cleanup_net+0x80c/0xc50 net/core/net_namespace.c:594 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 Tested on: commit: 42226c98 Linux 5.18-rc7 git tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git console output: https://syzkaller.appspot.com/x/log.txt?x=16c9e702880000 kernel config: https://syzkaller.appspot.com/x/.config?x=d84df8e1a4c4d5a4 dashboard link: https://syzkaller.appspot.com/bug?extid=10a7a8ca6e94600110ec compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 patch: https://syzkaller.appspot.com/x/patch.diff?x=134b9a95880000