From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA9BAC072A2 for ; Thu, 16 Nov 2023 03:14:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344461AbjKPDOI (ORCPT ); Wed, 15 Nov 2023 22:14:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229692AbjKPDOH (ORCPT ); Wed, 15 Nov 2023 22:14:07 -0500 Received: from out-178.mta1.migadu.com (out-178.mta1.migadu.com [IPv6:2001:41d0:203:375::b2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D6B998 for ; Wed, 15 Nov 2023 19:14:04 -0800 (PST) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1700104441; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LVTbIWjaYj/Zzkxn6Ukw8lgVfPfXoOn5/TENdtMr4GY=; b=btCmsGt0X6sFafJDU5gd7nnPc2QMLVpFrf6LWdb3nrmMtMuOSwWpcruiVM5Jy1nXiU7ZwM nZtGRfjQ6PE3QXk/UOC/NKm6GGwEq/IsL5w6mIimemiQ3+1FwRl9tA8wuc1rTDoOE28kEw YvELle5WYIK2ZVjQhlheSAuVK71UnP8= Date: Wed, 15 Nov 2023 22:13:52 -0500 MIME-Version: 1.0 Subject: Re: [PATCH 0/3] bpf: kernel/bpf/task_iter.c: don't abuse next_thread() To: Oleg Nesterov , Alexei Starovoitov Cc: Chuyi Zhou , Daniel Borkmann , Kui-Feng Lee , linux-kernel@vger.kernel.org, bpf@vger.kernel.org References: <20231114163211.GA874@redhat.com> Content-Language: en-GB X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Yonghong Song In-Reply-To: <20231114163211.GA874@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/14/23 11:32 AM, Oleg Nesterov wrote: > Compile tested. > > Every lockless usage of next_thread() was wrong, bpf/task_iter.c is > the last user and is no exception. It would be great if you can give more information in the commit message about why the usage of next_thread() is wrong in bpf/task_iter.c. IIUC, some information is presented in : https://lore.kernel.org/all/20230824143112.GA31208@redhat.com/ Also, please add 'bpf' in the subject tag ([PATCH bpf 0/3]) to make it clear the patch should be applied to bpf tree. > > Oleg. > --- > > kernel/bpf/task_iter.c | 29 +++++++++++------------------ > 1 file changed, 11 insertions(+), 18 deletions(-) >