Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1240476lqb; Thu, 30 May 2024 04:58:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXPvRmK7jC3XlKXR/TK53PmlBfcsEBLW653n4S/cEcF6m3+S0v6olBOHMjk4istZi8NR7U6rPHVtxSOdAAdOfObQj8SHLb7MiK0rDcCfg== X-Google-Smtp-Source: AGHT+IHNghPUBLK6RaHA3bnmzQ03retV9SLWuuTnUi//Y9kM36A8pV8MWJI7dOf8hUPWEMrP7l0N X-Received: by 2002:a05:620a:190d:b0:78e:dcc4:339e with SMTP id af79cd13be357-794e9d90055mr245817085a.11.1717070283384; Thu, 30 May 2024 04:58:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717070283; cv=pass; d=google.com; s=arc-20160816; b=k74C1dxPkbtNNHcSPa4y/+q1bMuoviuTTuwenIhcA0TdkSJaHmzJz+ifpF2KM5k4ta 0V3TS7r3vpum/2UXHJPtamHQ4W8ZjCCvPGIDi7SnTmzsaEWh/DlsXM8UmDY2cH31x8it ILb7a4wCWAQwYiZJKIg7DgQn5llR2wAxsylLxLU0LG4BEMUgUyjTwJ2nPHkSUs/ihgXm xVh/KtE2DUrkwm0Pih2yMB1PQ8lW/h6Vo+py5TpLA1MB+JLvU/MlLSWwqpxd3LMZxrJk VD62fTBRZL+yZGhC87Em8bY9u2tufp6M9LX+W8tYq74DY3DBIHrC8+lNNUSC0xSFrlK2 3sjQ== 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=L4D+3jln9kjLzNGpuMwiLJ5QrM7npw4a9un5AxQB30g=; fh=Hm/W2Z2HCmWkuBvz9eABV9z7HKVt1j3L+YEOekD0VXQ=; b=p/3w82Ofya89DCT1ENIomtzPyfcuZHgXbU1+ZPHuMaMS7rmgys1TfClrZqKmhMz1yZ JlvgaaGI0Y4c6sr36nWcfnP3wbXJIZDprFKBZT0y7rqcT7vevYwPLIz8bz2YsWhuc/hN HoWt4yqh6lh8VJugIkodz5WrY6LkxUhVh4Z4aTh0Wo6OExWXuGo3sFN+XEEqinCNuEnG Lnc5wxgNumaNbDyyawKxDSSYkY2yxsTP/G0/+PftokwgPXFOG3s1LKJSLZ6Iulo7CvYk xV+0w1WlgvI+iu7rb+zbFzimZ4txWrCqZP9uduZilOw8M+O5yVFOR5PS/KM3cY+pTj03 oQbg==; 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-195331-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195331-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-794abd5f931si155176485a.704.2024.05.30.04.58.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 04:58:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195331-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-195331-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195331-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1F25F1C22793 for ; Thu, 30 May 2024 11:58:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4459417FAD3; Thu, 30 May 2024 11:57:58 +0000 (UTC) Received: from smtp134-33.sina.com.cn (smtp134-33.sina.com.cn [180.149.134.33]) (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 323B217FACC for ; Thu, 30 May 2024 11:57:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=180.149.134.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717070277; cv=none; b=BjWuAh5GLxlIZfbI6aFj/6Q1wAmcYNvERQKwuJHJJxyGgBEywVP8Sf5MuXk5ywEkqvGl575L60M+f+FlOhbDuCjC/3UaCMf9yZ1AZmkK/dV871Pe0pljduZcOeNUmBjpiFuD/obTuW0MVebXAKGS210PrFw4qZyxCpWxtVy3Yqo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717070277; c=relaxed/simple; bh=qM8jmV9rQExnfzLYmOc5G2jyjto1w9Z/eyBvilTd+aQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=pppTcCPzXeWIEsvWJJmxC01Fu+mvMhZg1Vtv48HIY5J1BKWAI6A+vfWS37LNJX8l8op7E6z9x4k6qo4wwQMimtxOOLzI6KxQsJLrixHkuqmX/PL6rag5UOEwywPg8RQyNy/P6NLPs19fxKQA2HORgmH1zQMTONJbyFFaWuUtm6g= 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=180.149.134.33 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)([116.24.9.5]) by sina.com (10.185.250.21) with ESMTP id 665869AF00005C02; Thu, 30 May 2024 19:57:37 +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: 8080313408455 X-SMAIL-UIID: 008BA0A009C64C32BE6D3B37009A59D9-20240530-195737-1 From: Hillf Danton To: Vladimir Oltean Cc: syzbot , edumazet@google.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, radoslaw.zielonek@gmail.com, syzkaller-bugs@googlegroups.com, vinicius.gomes@intel.com Subject: Re: [syzbot] [net?] INFO: rcu detected stall in packet_release Date: Thu, 30 May 2024 19:57:26 +0800 Message-Id: <20240530115726.3151-1-hdanton@sina.com> In-Reply-To: <20240530003325.h35jkwdm7mifcnc2@skbuf> 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 Thu, 30 May 2024 03:33:25 +0300 Vladimir Oltean > > What is the fact that you submitted only my patch 1/2 for syzbot testing > supposed to prove? It is the second patch (2/2) that addresses what has > been reported here; #syz test https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git main --- x/net/sched/sch_taprio.c +++ y/net/sched/sch_taprio.c @@ -1151,11 +1151,6 @@ static int parse_taprio_schedule(struct list_for_each_entry(entry, &new->entries, list) cycle = ktime_add_ns(cycle, entry->interval); - if (!cycle) { - NL_SET_ERR_MSG(extack, "'cycle_time' can never be 0"); - return -EINVAL; - } - if (cycle < 0 || cycle > INT_MAX) { NL_SET_ERR_MSG(extack, "'cycle_time' is too big"); return -EINVAL; @@ -1164,6 +1159,11 @@ static int parse_taprio_schedule(struct new->cycle_time = cycle; } + if (new->cycle_time < new->num_entries * length_to_duration(q, ETH_ZLEN)) { + NL_SET_ERR_MSG(extack, "'cycle_time' is too small"); + return -EINVAL; + } + taprio_calculate_gate_durations(q, new); return 0; @@ -1848,6 +1848,9 @@ static int taprio_change(struct Qdisc *s } q->flags = taprio_flags; + /* Needed for length_to_duration() during netlink attribute parsing */ + taprio_set_picos_per_byte(dev, q); + err = taprio_parse_mqprio_opt(dev, mqprio, extack, q->flags); if (err < 0) return err; @@ -1907,7 +1910,6 @@ static int taprio_change(struct Qdisc *s if (err < 0) goto free_sched; - taprio_set_picos_per_byte(dev, q); taprio_update_queue_max_sdu(q, new_admin, stab); if (FULL_OFFLOAD_IS_ENABLED(q->flags)) --