From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f41.google.com (mail-ot1-f41.google.com [209.85.210.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5D6C53C1F37 for ; Tue, 12 May 2026 15:34:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778600083; cv=none; b=olSbsAqOTcD5w1rFKWejdBrsU32DlIf4+DHSoIS1vTT7/3GHlKy0Ke7vUZ+Z183iMJ11mmy7bxUwWji2JCNyFOOoLPauTeOXyfrQkmt8Q1TSNaDQf9w1LTK3T3+hKoJ5dJc6UxfR8/uLeS9lKNDWDjnYPTMVPWdY7+vCKvwpOBE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778600083; c=relaxed/simple; bh=QIZ+VGeXVpAkpC4tmiWW4M33ME6DjwQIZMRpO36FIxs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=nFO663HFi9kMlSACxfGqmFvQocJBzapPRvJdCBQmRhrTsYBuYAozLeHZEZchp4iFpiUA0pVVw/BPBTM4CRNd9ya+Rj0Io6hqMOq64j/H3Q+VGSMrDmb0E5cxu7TnuLANRZwhybMbqf51YyuXLoQri8gkvZw1UddCUV+m9rr9L5Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk; spf=pass smtp.mailfrom=kernel.dk; dkim=pass (2048-bit key) header.d=kernel-dk.20251104.gappssmtp.com header.i=@kernel-dk.20251104.gappssmtp.com header.b=gzPQroTT; arc=none smtp.client-ip=209.85.210.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.dk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20251104.gappssmtp.com header.i=@kernel-dk.20251104.gappssmtp.com header.b="gzPQroTT" Received: by mail-ot1-f41.google.com with SMTP id 46e09a7af769-7dcc9b506d9so4627999a34.1 for ; Tue, 12 May 2026 08:34:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20251104.gappssmtp.com; s=20251104; t=1778600081; x=1779204881; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=6QXvd1Ks37rkL3H8X8RLMBYJecvq7AKSZyf6QRiWnUI=; b=gzPQroTTaRhn5RKzGkvAjFe535iCfAJrrXuWzBDjrPF/iXa6GqbvjGER7JOoftK0Wi NKzZgxOP5TshqZ0Jd6OhrFMBlo9fjvPudw+yFs2nogukJyIvnNO0hWtb1lvCAZlfnsTg LhIaXK6nzajYDs0a+t71Pcfni0tfQyRFL2/NgAR4016WNbMnd5jU4egggcCDpbc+P5Ty lLLNxkLacvQvSsGD736E/i+W9z+rcz9tcx4yXOWeEwwPHV8DAJes6Dh0gqwwjTpBsp+I PIRRxF5pco1/0BU8U/kjFxBPlMf7dVhHZFKcVstYf4H3swhRiaWH5OSu9cKGYM0U+4AM njcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778600081; x=1779204881; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6QXvd1Ks37rkL3H8X8RLMBYJecvq7AKSZyf6QRiWnUI=; b=Z7tP/FSgKMEwH+YT4cC/eDeG8PL9wCZRMByz6br6gKDpCuz5am124Q5H9cJdbycOB/ oIiMEbXtqcHhOjVkTkuxPZhWwV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:fb8c:3c29 with SMTP id 46e09a7af769-7e1df0f9574mr17794084a34.14.1778600081272; Tue, 12 May 2026 08:34:41 -0700 (PDT) Received: from [192.168.1.102] ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7e367be21f6sm9049277a34.2.2026.05.12.08.34.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 May 2026 08:34:40 -0700 (PDT) Message-ID: Date: Tue, 12 May 2026 09:34:39 -0600 Precedence: bulk X-Mailing-List: io-uring@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] io_uring/net: allow filtering on IORING_OP_CONNECT To: Shouvik Kar , io-uring@vger.kernel.org Cc: Pavel Begunkov , Kees Cook , Christian Brauner References: <20260512110242.26219-1-auxcorelabs@gmail.com> Content-Language: en-US From: Jens Axboe In-Reply-To: <20260512110242.26219-1-auxcorelabs@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 5/12/26 5:02 AM, Shouvik Kar wrote: > This adds custom filtering for IORING_OP_CONNECT, where the target > family is always exposed, and (for AF_INET / AF_INET6) port and > address are exposed. port and v4_addr are in network byte order so > filter authors can compare against on-wire constants. > > Skip population unless addr_len covers the populated fields, to > avoid leaking stale io_async_msghdr data on short connects. Looks pretty straight forward to me. Do you have a liburing test case for this too? -- Jens Axboe