Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2064973pxb; Fri, 29 Jan 2021 12:08:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJyk+9tVHPeDRioni5SEaATZ6ELhXLOYzPIU7RgC7FbkqDC3gg2egSG7QWA1JrskK5M+H+zL X-Received: by 2002:a17:906:4b44:: with SMTP id j4mr6147665ejv.23.1611950880459; Fri, 29 Jan 2021 12:08:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611950880; cv=none; d=google.com; s=arc-20160816; b=oF3UdIAhBmnbzDT02YIDkk2zRRF4vX8YnTPflIh8O2pc4IxyLCIdihx/4N4ifFJ8U/ yRttp2C1AofbMLhUDdpCHMXNvr2DTUStk5gaTI9QfvzcEJ9Uy0YyUpTebIRCZBu6vE7s Aq3WJBVdIfquBM0DIlTrPQ+kyTzdQRULSMMORfHSe2iBYnmhwllveIbo2jSu+TyjnfQA KbLS5CDPCf2XQdJ/q62xJepbm3QlaPhby3TzFL3p6F6PUOHFn0tGnhFMcCCsxoOpoAya nLC6AIL8TrpC3TAPTjwy3beJUbtS8eBGJR0o67nsgZYJho0IB3GWs1/libWQJjnV9rwo +crQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Ny01BWoNY32zWu8iNoMzSK36krs/W6FMqMHZxkTToFA=; b=KQaK80jdZD0GdxWEfdMKk/eBWj2pp+IEtbF7okMkQ08SFE3TAZNRh6vxPrkRE6c6e6 1nPS0qA6clo93P43u56GcX4ZxQiRCJR7DgDn+olAsMO6g8ex86sf4VUakEyifqgW+xjQ du1Tk1NQYjjV8SR2bYRysiY5S664BwuHDNPGZEx7Ye/gN5asJNrOu5oMAU9fTc8IOOPL ts8OQfiEuQgslItx3IhrFUO26hEWsk5NrFyzLxXf+JQUBzFK6OBSfFNi2aLKaAAmwvDP uODjU5yTltqlKrOC66SsDOikTbXFuIkUfg8cNIEhJ2XnpOcqW9RXeRUhtIbwljMHB68E nL7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JSOVj0Ss; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dg6si5743059edb.485.2021.01.29.12.07.36; Fri, 29 Jan 2021 12:08:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JSOVj0Ss; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233235AbhA2UEf (ORCPT + 99 others); Fri, 29 Jan 2021 15:04:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:33106 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233143AbhA2UDj (ORCPT ); Fri, 29 Jan 2021 15:03:39 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 47E8464DFB; Fri, 29 Jan 2021 20:02:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611950571; bh=KwihAEFWKDSpf6SM8XAVBapoSBLr9FWQfLGmRKqnbiA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=JSOVj0SsRgnedf1jkzBO01LO2S7xQKWkb/P8SFyWRIJGpXF0BgNA5UnCekNDys5oD +JnTd1BPojGcCAG2ZjBR1uebqryDDrN45SUNMMhVsmTXOaDyCq4GXCNKqN7TcLMfg3 aumrBKY7WytJ+6yVKhqasO3XQVoWeJASnim4+grpZfmaSpj/q/BfwtM2z0m8C3obeL XdsbSwp3gs/uKehBZ8pwyV0P2CChYujkqhrwORTI8NW6SMfsyRFyvc9h/yX6G5Ortg 9e4LtzPazqunQcdwtsi8mAVsDbZd15J9maPYFXZUnBQGzNjEPVrOlAOukUAlx+Ehiy CzZAvARM0qljA== Date: Fri, 29 Jan 2021 12:02:50 -0800 From: Jakub Kicinski To: Shoaib Rao Cc: "Matthew Wilcox (Oracle)" , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, netdev@vger.kernel.org, "David S. Miller" , andy.rudoff@intel.com Subject: Re: [PATCH] af_unix: Allow Unix sockets to raise SIGURG Message-ID: <20210129120250.269c366d@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: References: <20210122150638.210444-1-willy@infradead.org> <20210125153650.18c84b1a@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <23fc3de2-7541-04c9-a56f-4006a7dc773f@oracle.com> <20210129110605.54df8409@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 29 Jan 2021 11:48:15 -0800 Shoaib Rao wrote: > >> SO_OOBINLINE does not control the delivery of signal, It controls how > >> OOB Byte is delivered. It may not be obvious but this change does not > >> deliver any Byte, just a signal. So, as long as sendmsg flag contains > >> MSG_OOB, signal will be delivered just like it happens for TCP. > > Not as far as I can read this code. If MSG_OOB is set the data from the > > message used to be discarded, and EOPNOTSUPP returned. Now the data gets > > queued to the socket, and will be read inline. > > Data was discarded because the flag was not supported, this patch > changes that but does not support any urgent data. When you say it does not support any urgent data do you mean the message len must be == 0 because something is checking it, or that the code does not support its handling? I'm perfectly fine with the former, just point me at the check, please. > OOB data has some semantics that would have to be followed and if we > support SO_OOBINLINE we would have to support NOT SO_OOBINLINE. > > One can argue that we add a socket option to allow this OR just do what > TCP does.