From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out187-18.us.a.mail.aliyun.com (out187-18.us.a.mail.aliyun.com [47.90.187.18]) (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 CA0BA18BC20 for ; Sun, 22 Dec 2024 15:59:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=47.90.187.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734883167; cv=none; b=VmOwHTY5lJHHMSp8T96/Ee3WXaW/MAX0mc92W3h0FmLEIvNKxVHm2ZrJeE9e9SAaLNeqfdwLJe5TB7WmsqNfBnEhZ91T5w6A9UgM2UG6der+OoZQCYJsg4T8sens0mI6jufinkh3PTUJlOz1QVdbiZm4FaOsvbUsoZ1zpAL3D4I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734883167; c=relaxed/simple; bh=vyqGDA+8eh0z7w2BXOle9/P7vCnwLvlc7Ud8/v30jUA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CmdxNosP3qGuUyUBf70zEt6sFO/Sa6AI6jITPihBralvzL8aBCnLUnL7AvtbMtb3QRWFR8cfwMNEXZzc8DY7Rh/Xn8WprEbV+c6v3HobeBASPXIgnSdn7+MEc8n/6tytdn6vfgB7JulMVKwiMxM0DamZFnOiJxg0Pg46IWLlvYA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com; spf=pass smtp.mailfrom=antgroup.com; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b=NHzwKKYI; arc=none smtp.client-ip=47.90.187.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=antgroup.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b="NHzwKKYI" DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1734883151; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=Z6ts9h3srd+5r5poN0O6/iBj790DVLB1Oyv/fsiTKvA=; b=NHzwKKYI22VzLvBFz5EVFkwAHMHMCGeXv032b01fCW/Ark0JtGWLW1YPfc3xrRV/9hljkhGOvMIz6mwY0LsfHzrpQ21RGIYY2zaIkii9FXhsA6t//6f8EGc/2o+DryHaPCutrr2MT5ixmJyWDuh+uCE+QDATAEcNZUFQMArWkuY= Received: from localhost(mailfrom:henry.hj@antgroup.com fp:SMTPD_---.ak7Ny7G_1734882216 cluster:ay29) by smtp.aliyun-inc.com; Sun, 22 Dec 2024 23:43:37 +0800 From: "Henry Huang" To: tj@kernel.org, void@manifault.com Cc: "=?UTF-8?B?6LCI6Ym06ZSL?=" , "=?UTF-8?B?WWFuIFlhbihjYWlsaW5nKQ==?=" , , "Henry Huang" Subject: [PATCH v1] sched_ext: initialize kit->cursor.flags Date: Sun, 22 Dec 2024 23:43:15 +0800 Message-ID: <20241222154316.67077-1-henry.hj@antgroup.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit struct bpf_iter_scx_dsq *it maybe not initialized. If we didn't call scx_bpf_dsq_move_set_vtime and scx_bpf_dsq_move_set_slice before scx_bpf_dsq_move, it would cause unexpected behaviors: 1. Assign a huge slice into p->scx.slice 2. Assign a invalid vtime into p->scx.dsq_vtime Henry Huang (1): sched_ext: initialize kit->cursor.flags kernel/sched/ext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.8.3.1