Received: by 2002:ab2:68c1:0:b0:1fd:9a81:d0e4 with SMTP id e1csp6029lqp; Sat, 8 Jun 2024 04:04:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWmgomaZ2E6APCyyHMSK59UG6nuz3kHo/wcmas/PoK91ZlzRdzNWqzXbjXnNLWRz2pz0qxtYyfuuPX7f6+f9xeq1+JARKorqO6EVJfEqw== X-Google-Smtp-Source: AGHT+IF19bgztsblqO/suAJbhuc+mFQBze2icQiI/n+3ISbgYEH+45W9rxHSh7tB3f9EMh4a4bn+ X-Received: by 2002:a17:902:c085:b0:1f6:828e:869b with SMTP id d9443c01a7336-1f6d036a7dcmr46514815ad.53.1717844656854; Sat, 08 Jun 2024 04:04:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717844656; cv=pass; d=google.com; s=arc-20160816; b=JybuIR7FeXu4obKB6pUqvtPF6aOk0Ri8ky9RxXEknwNN7qfQP2zS0PAmeOwMv1yYqY 3jP1SG7bhm1bjlG5Fhxr0/SLsIDJp4qFQJeCT1bZSkpUwODpp4JvKNkVo3kzXBR1U7NM qU3qsDNS9OGwZSjGuAcy681UFhqLs3quSn8SphAXL4HwJmC3hTxYpnm7yV9QqzdMpv74 2PBDF0jZWrlsdcmPSmjP6XO+wb2fzyC6WwRYy7J/kCBQYwd1uFbkegpE+NEo5LpRGvKt 9ELj3n0PIP7eAm38l/pprmZHIkKqoESvj5p356/2lDzy8TK8bKkbBHr9IXErRGzttB90 vHjw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=5exGikjs8DIbXI8cgQAcXY+fnTsCzxFb5kxexRYEJhs=; fh=EjOGNKyCaKb+3LkcG9180yDRk4lqr7g++KnZsOYb5VY=; b=pfDvCdKBUXVL6+oowJiugUqjczTEnD4NTrieDM0VwTKJ8enqtNlXFt3c4IKPE3WlBv ckciR1CVl8c/Y8N+ED78JRDppqkLwgmLO2fbxdPUHT7UfG/E1xrOqqnFYFMVGMhEVXZ+ /81KfMCLUwv2qRTWnPptAT8JNE5PFEJ670sIF2K/hVwAXQuXIkD7WhkzNlhOoBKqPg7P uIcQ7uQRIGyaI/qS5ARt62MO2h/gxUvFR1L2TqXoIeftLyNXaDfAYYJCpTpb/lZd6XSn 9IrbSau6VESatW3iKOXH/d2KIroUn4E1VfxuxMTL9NWSq+FYDzesLezMTgQZzY6JTvoS eppA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=i-love.sakura.ne.jp); spf=pass (google.com: domain of linux-kernel+bounces-207013-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207013-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f6ef53397fsi2922305ad.632.2024.06.08.04.04.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Jun 2024 04:04:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207013-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=i-love.sakura.ne.jp); spf=pass (google.com: domain of linux-kernel+bounces-207013-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207013-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 6D70EB21829 for ; Sat, 8 Jun 2024 11:04:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1D232178368; Sat, 8 Jun 2024 11:04:07 +0000 (UTC) Received: from www262.sakura.ne.jp (www262.sakura.ne.jp [202.181.97.72]) (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 BB96613F450 for ; Sat, 8 Jun 2024 11:04:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.181.97.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717844646; cv=none; b=CAVWcdi5EBbNT5ORx2iuGEgwPWSQaPHEFca110vifAcgUpCCLqAmZf/4nTCyGW0DBWG5n9/xyvpO8RmH+gUR3TpGPK2YUX+UGwAEz16QZalSNNCymH1qQGexDU/Yhg8pnn7nhQxWehWuIH1qKG+fYLlsCS5SFoT+dj1GafZdbuo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717844646; c=relaxed/simple; bh=YTe2IFB0Vmhzw6LM+slaeAIcM2Fi+L9y0iGHzkNtQUU=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=Pv0m6xk7TYYah0ZNoW2UxSFDBxilT0w55LmvEt93DanA5TgmDIa9s3BhisAUYyn/tDC5rLbewIDcN4oL0/c6hDXGo7F1YNWiYt9Mw1LpLLmiVV8OqR5+xjWGEuR/JzgRjoc1fO2fbJA+7oDslbg1tJvqJ9+evlcaWuLpg7CWZ4E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=I-love.SAKURA.ne.jp; spf=pass smtp.mailfrom=I-love.SAKURA.ne.jp; arc=none smtp.client-ip=202.181.97.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=I-love.SAKURA.ne.jp Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=I-love.SAKURA.ne.jp Received: from fsav415.sakura.ne.jp (fsav415.sakura.ne.jp [133.242.250.114]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 458B426T029104; Sat, 8 Jun 2024 20:04:02 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav415.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav415.sakura.ne.jp); Sat, 08 Jun 2024 20:04:02 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav415.sakura.ne.jp) Received: from [192.168.1.6] (M106072142033.v4.enabler.ne.jp [106.72.142.33]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 458B41vZ029085 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Sat, 8 Jun 2024 20:04:01 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Message-ID: <3e9b2a54-73d4-48cb-a510-d17984c97a45@I-love.SAKURA.ne.jp> Date: Sat, 8 Jun 2024 20:04:03 +0900 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] bpf: don't call mmap_read_trylock() from IRQ context From: Tetsuo Handa To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa Cc: bpf , LKML References: <4b875158-1aa7-402e-8861-860a493c49cd@I-love.SAKURA.ne.jp> Content-Language: en-US In-Reply-To: <4b875158-1aa7-402e-8861-860a493c49cd@I-love.SAKURA.ne.jp> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2024/06/08 19:53, Tetsuo Handa wrote: > inconsistent {HARDIRQ-ON-W} -> {IN-HARDIRQ-W} usage. Oops, "inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage." example was found at https://syzkaller.appspot.com/text?tag=CrashReport&x=14f0179a980000 . Then, do we want to - if (in_hardirq()) { + if (!in_task()) { instead?