Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp83515lqd; Tue, 23 Apr 2024 15:47:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUx4WYF6kx59VutP6/ljl0Xtd52LS1uy2rO3RPiBetgtOZ6nxCiUhKqmYoJRb3TJzS+TwoiwKhXqLfo/TUaHmf/Oiq6xWSzYrBJ1ZPntg== X-Google-Smtp-Source: AGHT+IEa+JuA1Xh+UMJFK8AKwFfqHVK/hyKsWOCn3T9xN+3PXdWl0QX0+pGpyHdz3S5TLG+VBNBy X-Received: by 2002:a5d:5488:0:b0:349:c40c:393 with SMTP id h8-20020a5d5488000000b00349c40c0393mr310915wrv.3.1713912427497; Tue, 23 Apr 2024 15:47:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713912427; cv=pass; d=google.com; s=arc-20160816; b=jxK032FdOsLA/v81Zp6t5B3MnmAqvlQI66ZVV0Xu6maxSVp38HW7XgM1RlUZXAOYS5 izl3Oznk353UAhk7zwxoYNyUhVrRSv/Ij+Ri2MqiNcvVdOL5AKy+cdsoWBi3QCh3LHv5 xEadSBnK1SSswPfjXulISdtHtIRb4p5tN7A4+XaMqBgFo29F4SLB1mhp0iztSCcig43O JFQY1kP3O3TKmggg85t0rU80KIDYT6FffSY4e7gtiRJTbQTeLPYPPk1NlChkajA2cZYq IjYlp1jywoCOPwWMXd/c4/ll1ld2YASGHu/1Ikxi91qWmEc8/0Xo5/hpCCsbuwl6GCXx XKoA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=04wFljUGJT77mhhm7eWcY7c7mfXW6VDh8u2HylQO0+s=; fh=H8PTyj0RRnXOIcBj6H7N11RlkOxCKYprrwCfykg95yE=; b=0Lwg1XdX76Isqsco1E7obeP5zItDDjfQZ9p0f5DApRcB+3SNckFez660IwivinioIu O82FN5cKoux4NuNXbzw1kckgASWPcd6MqGT0GxDbC9GDv9WqKp0u4VEJemTYufid8nX9 /S00VszAfP0VDi33aWgQwULini++BnTdwmbVHASCJbb18XFErVouW4EYM742bmswujGp ihyvQmbfX1VO3dCoO9jSnO6gC9fijgO+1bbwASAzFUzOEBzSxrIU9XF/KZT+lrncBj29 a+Ztah9HxfXZGrpU8ZQoA0OI1U+IzYEEKDg3fE1Fgrh9ycelETEFihzMLSrXdkRjW02u iqBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-155971-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155971-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id oz7-20020a1709077d8700b00a5883ad95f8si1036189ejc.837.2024.04.23.15.47.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 15:47:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155971-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-155971-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155971-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 0ECE51F240BD for ; Tue, 23 Apr 2024 22:47:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4478D2D045; Tue, 23 Apr 2024 22:47:00 +0000 (UTC) Received: from mail114-241.sinamail.sina.com.cn (mail114-241.sinamail.sina.com.cn [218.30.114.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C8BFD1C6BE for ; Tue, 23 Apr 2024 22:46:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=218.30.114.241 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713912419; cv=none; b=QdLficdO78KG9cNYta1+BSZltylMSODssbEZCwFea4HzbftlcMiuvEzdpFE6npBhA2mOvSF8GBi3/DXgHs1X/DkMi2cUi7tDU4i4mUs7fA29o5pfVqXyTN5BJ16m8kYGNwHfbk/vJ/9iH1Qh0Z9Pepd0rGefKAcSiKe2JcJ4H98= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713912419; c=relaxed/simple; bh=BwoJIuLDivt7puSYM+qJM1mK6bHhySm2Lc3Tjd/cnrQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=n+A2O3qjpSKhHqJ5MPEs7oh6dX7M/Uvk8kKlBOpdqT1bML7yqmm+VARl7v85ca+396D9oCUk0ZlRev2+v+PKGGQvNFO8wztpNUNDhpIcfwb9NCdXwSKCOtD8+1znzpSMte5vrMzMfnAbjbNUqjikkPd3PGqbtNdS8DwLZSI4h9k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com; spf=pass smtp.mailfrom=sina.com; arc=none smtp.client-ip=218.30.114.241 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sina.com X-SMAIL-HELO: localhost.localdomain Received: from unknown (HELO localhost.localdomain)([113.88.49.188]) by sina.com (172.16.235.24) with ESMTP id 66283A2E00006439; Tue, 24 Apr 2024 06:46:09 +0800 (CST) X-Sender: hdanton@sina.com X-Auth-ID: hdanton@sina.com Authentication-Results: sina.com; spf=none smtp.mailfrom=hdanton@sina.com; dkim=none header.i=none; dmarc=none action=none header.from=hdanton@sina.com X-SMAIL-MID: 8475345089566 X-SMAIL-UIID: E2EC3C000C4F4225B05096877135F0A5-20240424-064609-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [fs?] WARNING in netdev_queue_update_kobjects (2) Date: Wed, 24 Apr 2024 06:46:08 +0800 Message-Id: <20240423224608.3180-1-hdanton@sina.com> In-Reply-To: <0000000000000d3cfa0616b1576a@google.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Mon, 22 Apr 2024 08:46:25 -0700 > syzbot found the following issue on: > > HEAD commit: f99c5f563c17 Merge tag 'nf-24-03-21' of git://git.kernel.o.. > git tree: net > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=141dd66f180000 #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 3cdb45594619 --- x/net/bluetooth/bnep/core.c +++ y/net/bluetooth/bnep/core.c @@ -540,16 +540,6 @@ static int bnep_session(void *arg) return 0; } -static struct device *bnep_get_device(struct bnep_session *session) -{ - struct l2cap_conn *conn = l2cap_pi(session->sock->sk)->chan->conn; - - if (!conn || !conn->hcon) - return NULL; - - return &conn->hcon->dev; -} - static const struct device_type bnep_type = { .name = "bluetooth", }; @@ -618,7 +608,6 @@ int bnep_add_connection(struct bnep_conn bnep_set_default_proto_filter(s); #endif - SET_NETDEV_DEV(dev, bnep_get_device(s)); SET_NETDEV_DEVTYPE(dev, &bnep_type); err = register_netdev(dev); --