Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp367809lqh; Fri, 31 May 2024 04:03:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXWGP5SNyh+WSea1uY2j2P7A2AJmd2uHs8pAJhXv/IlnUoZc51WYHqAnMiNkrvkM57y/1YYj7iBTld14RadKK0B2sT7ZCyb7mziS1rtdA== X-Google-Smtp-Source: AGHT+IFC5ebD+NPeV7eFbTSKEGR/GWK+0QyHx+H9ZQNYVDZ1iAumT0lZ0Msoc4CFnFtJhPWvSsR7 X-Received: by 2002:a17:902:e84f:b0:1f4:8a14:f4df with SMTP id d9443c01a7336-1f6370cd8a5mr18850045ad.67.1717153404795; Fri, 31 May 2024 04:03:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717153404; cv=pass; d=google.com; s=arc-20160816; b=nQT2D548Vcgyp2uN4Iie6UW0/lnModwz51P9Du1zOPDcBWi7kyEjSME2cAd2yclqlN xAfni8Cjgr+jEklcaeynYiy2nxgw7nKA0JYfY9bTLM11+uqD7Gp0wMSAAI1mRmnFcBNU vmAJejbGbiCmmUjnXoSO/p803muaJ1reqqHwq2j7vdQbu28C0UG3ocvs+ycXBVdTBnpk czyNyIUCYhlabymA0JDOb79cW4LGbojXrmKABrNWA63GUlv5BPH1nyrUW8LOSnyOcITJ O2rWznIU2sZHbr1Jt7zVc81EYBr4URyskW2OurJ5MUDWjJYtOZV4WGabgjQB2lyH1z+E Zztg== 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=Y9eQjMqbtXADpc3GgKTHjYXCp316eZUw8KMWJOse//4=; fh=wgcfTlOVhpDP1Nd1MlRUE9bvxN7xyqnkP1A3JYgT9H0=; b=d8PoZM3sVQ21LGpo/y/cHkL6BcxRsv59OWoOtHhtfnzSrC1guyhL7YT8zB2uY9pxa6 +Z7hejj86Ct61CryY+LVGc3//vU9ZVXNGljGw4+2hjIOF6ROhVb46VulCD1QwgcZDrbg mmi42xEMzMJYNz8EybSzy5RHYFAHefiAzog+ePXp7lRbGxsH+yKb2KPaUh/SVbcAub6/ zzeno1UXzPLBOY+bX/a8BJOh+uCoqW1kVruQdzL0QjlFAkuYYlqrn9B6inuDabMpI+u0 /vGBlcV7UWPPeWijjhsuXoP6G/e/5DXk1xVUggPLBWjcGWTqptYNuuYtco2/CNVo7awQ HV9w==; 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-196707-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196707-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f63de9f67asi6685915ad.277.2024.05.31.04.03.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 04:03:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196707-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-196707-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196707-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 36295283F5F for ; Fri, 31 May 2024 11:03:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BCCC9156C7C; Fri, 31 May 2024 11:03:19 +0000 (UTC) Received: from mail114-240.sinamail.sina.com.cn (mail114-240.sinamail.sina.com.cn [218.30.114.240]) (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 CEF821386B4 for ; Fri, 31 May 2024 11:03:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=218.30.114.240 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717153399; cv=none; b=PVIh/4lslzA9nmwQVVVGlNOVznwKANJclptPkGfIib3nue7VB/3wPhWAznU1WlK0Qa8O/C8eeMlZyK4ZcMGSWR1J995/4GhmWsHOx14hhLjXBLb8kcymxP3FcNfjCGs2Oph0Bldfvn3Y//2/T+SABts6j4wcDv+RT/lt3zLZ1Lw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717153399; c=relaxed/simple; bh=9QsDpjp3XZJ9SDKeVxkaUb+EuBoHnOO1JqN2vIeJk5s=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=UzA3PjRxqpuZvImvE54/1RvPZI9lUR7NJILVKYdGqGZGhgbzapp7jKYVx/qpLTKf1M/Rb+Ih+9zCmB5hJ8YTuRLCPFoZKVbFLi2KbAlRX7uuIRfJ+H0yMfQBq4EDD/o83WgtGFckM9PPfpeAbLWfxGYdTSShxQjtgAism1knulQ= 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.240 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.118.65.235]) by sina.com (172.16.235.24) with ESMTP id 6659AE6200004D80; Fri, 31 May 2024 19:03:01 +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: 21153545089563 X-SMAIL-UIID: BF36D2333AD1401597E3C103EF7CA842-20240531-190301-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [kasan?] [mm?] INFO: rcu detected stall in __run_timer_base Date: Fri, 31 May 2024 19:02:50 +0800 Message-Id: <20240531110250.3333-1-hdanton@sina.com> In-Reply-To: <00000000000022a23c061604edb3@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 Sat, 13 Apr 2024 19:04:34 -0700 > syzbot found the following issue on: > > HEAD commit: fe46a7dd189e Merge tag 'sound-6.9-rc1' of git://git.kernel.. > git tree: upstream > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=111600cb180000 #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git fe46a7dd189e --- x/net/sched/sch_taprio.c +++ y/net/sched/sch_taprio.c @@ -1150,11 +1150,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; @@ -1163,6 +1158,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; @@ -1850,6 +1850,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; @@ -1909,7 +1912,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)) --