Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3243419pxb; Wed, 14 Apr 2021 00:11:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzn45ZyvrP3plveGMIhVZspmj8bg1UuG8vqQ9Mnlc8d23Opg1KKoHJ+9rKbgfzgsBiBLCs X-Received: by 2002:a17:906:fcc4:: with SMTP id qx4mr26802461ejb.42.1618384283154; Wed, 14 Apr 2021 00:11:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618384283; cv=none; d=google.com; s=arc-20160816; b=rFhiFWmkVOndxGOafO8M8/P6GXtInUpQVPZLPKA+NcmjINzVWjfWziwnbjkvbzma1J yMd68Us/IOlwjZrKYtfQ/GIvxHovNfs1fEyDN4Hf3iMFeAqAr7tUVYBfPezMqgWzwU6d 2ApkAd64o5Q0NXVTxHgGVHuefvNuyk7CjIssgwdIv2XEbAHL54KBW9bfawSKA/4Yxlcs 4Lbz5mP7PJSZAX4SveFsfSh5NS/KxI91KiaklfzEDaEr7CztryZgY6dveoYeXPi3IYhK H7HRQZ0y7yEmOGHFP9VXiK9dcJrLvTU7kVoi/GuWW+7mITduNxIYMil4RTcuiBGR6Uv1 EMJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=hXUHKDv9Rbx7mHTRRaLKCkrH6OO1Ef5ryV6t8WADkm8=; b=JHKqVgtCJkuNswRZ4hZnc/DAD0wdTlil7bylyRIl6J3TAnLTlKewXFjVN1MWRkLB+S lYFYyPHoiHWNnyTD/0XZukjhspLOqaV8iq4k0yRbsbZT904KD4Erj9K/RAk16DAXknJx hyfO2dCaQYEJ8+bB86T0UTcNOJ3a0xSgW0DXbmAtKknbFx4/ZAXGjoL7rKF7wvCXs5my DrStfCgpE2iTU/5TjPmWCI4PeiqvXWhk5VolGqwHI5f627rl4TTfK+4ctbl2CYuNUbgX ZmtOjjgQ/QlZBUbzMMuNVe0scyWS0A8f890tHMRiLqS+gZ218dq/H6cikQ7R7JAHtoJ+ fBXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="i2RQ28x/"; 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 lh5si2282426ejb.363.2021.04.14.00.11.00; Wed, 14 Apr 2021 00:11:23 -0700 (PDT) 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="i2RQ28x/"; 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 S232540AbhDMWK3 (ORCPT + 99 others); Tue, 13 Apr 2021 18:10:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:55244 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231648AbhDMWK2 (ORCPT ); Tue, 13 Apr 2021 18:10:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPS id 9AD5C61164; Tue, 13 Apr 2021 22:10:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1618351808; bh=TJzecSdtqpqxQ3J+Jndv3DhFj2ALtOqMzU4mFfYuoac=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=i2RQ28x/lgUGyLHGUAjzoYoo3ISfwuvhoiuEXhlXQTCfPPR+O9ENSlq2YzoZR7/+m /UQpEbV4I3c7Cm0JPHoH8xK3rjzMyRM4Qi9XFaqW+JA6gqtCzKizyXja/kWTtOAxs3 RGk8kZ1u3bU1GciexnCXF+5sxHGW8y3lAixL5I+XEQQmx9ITS3RG+m/olaXkaIyccr PT4/HiA64HJuIhMBQSsR+KXGzlM4ATvwvocO2m7xXmv/5v/gJgZXWBqxWsok/9KIP2 yiViXjbJQCmWmcujLIiGE4IUERPAn8+VyFhGZlBHfSUSGGb5QLfZE6KDzhJ3seUdJ6 joO+gn3xP3Rfw== Received: from pdx-korg-docbuild-2.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by pdx-korg-docbuild-2.ci.codeaurora.org (Postfix) with ESMTP id 8C7F960BD8; Tue, 13 Apr 2021 22:10:08 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH v2] net/sctp: fix race condition in sctp_destroy_sock From: patchwork-bot+netdevbpf@kernel.org Message-Id: <161835180857.31494.15153605709607960746.git-patchwork-notify@kernel.org> Date: Tue, 13 Apr 2021 22:10:08 +0000 References: <20210413181031.27557-1-orcohen@paloaltonetworks.com> In-Reply-To: <20210413181031.27557-1-orcohen@paloaltonetworks.com> To: Or Cohen Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, vyasevich@gmail.com, nhorman@tuxdriver.com, marcelo.leitner@gmail.com, davem@davemloft.net, kuba@kernel.org, linux-sctp@vger.kernel.org, lucien.xin@gmail.com, nmarkus@paloaltonetworks.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello: This patch was applied to netdev/net.git (refs/heads/master): On Tue, 13 Apr 2021 21:10:31 +0300 you wrote: > If sctp_destroy_sock is called without sock_net(sk)->sctp.addr_wq_lock > held and sp->do_auto_asconf is true, then an element is removed > from the auto_asconf_splist without any proper locking. > > This can happen in the following functions: > 1. In sctp_accept, if sctp_sock_migrate fails. > 2. In inet_create or inet6_create, if there is a bpf program > attached to BPF_CGROUP_INET_SOCK_CREATE which denies > creation of the sctp socket. > > [...] Here is the summary with links: - [v2] net/sctp: fix race condition in sctp_destroy_sock https://git.kernel.org/netdev/net/c/b166a20b0738 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html