Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1969783lqb; Mon, 27 May 2024 03:52:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWSt86my+dYMZPEXojbSfPLilCDPJbCmLPgkSZLTDgK4+zuCBxS+GGJTi53PLKUj+7uYVvm2db9sh2UGp/+JKEw943xod1uUL+dyODixA== X-Google-Smtp-Source: AGHT+IFY0xCK3z2BSMvKOCXeiiPO2XbirIWWsMV85okI7cu7jP5iENxfUjl6RFXW7eEsLI2EUTXf X-Received: by 2002:a05:6a00:4405:b0:6ed:60a4:777b with SMTP id d2e1a72fcca58-6f8f2e7889dmr10557863b3a.8.1716807136069; Mon, 27 May 2024 03:52:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716807136; cv=pass; d=google.com; s=arc-20160816; b=yVBLwGQw4Bn7/Gcd2pAqrhf9nD73GvtZa7w10q1vwWntXeH1zwZXlEaRukGwJQ+hXQ FpTNLfD78JCzG63H/CHp0vVOrMDj76gKGEQO7BeLO4U5bhyerEMB5Kq3PnL7UrCviJRE esP077LRgu4YGUxjpsaAMDjqXOFe73wxhozSSQ6Gai43z7KxwfI0cdDGrcL9v3rDW42r QX29oasPVgLLlLhLDqaWOoQF+lZECxfoCRnpOl1N2KYU1QKdtKtc+LSi5LS+G0CHCMt/ l8kuM+a0E0+qvTVXiPuW+7dUoCz1G5lqADO1CkNpXxqSc7Y6hnoGMHjy/y7mHBl+ncQI myGA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=UJrMet/8azf2Z2OiMZoMP1WYzy3zIiweWe0TjMpDKIU=; fh=okPlSJOecO8TNUxViaFAq1bff33eLPCkTVAjTu5welo=; b=JWvBBEedVn4xzU6kmFZ+Vr8e+ZCNgwtpEb/kmRBHWSAmCakXleIUij0YNOZHe0bFxH VUQgcvqf5RsWxIZFio270jr1cPsD/MUtsfgYcdI0r+WElLewEK1CAE7QWb6SyxDV6bfH Hlfasd3u2wqscjGVVvi9OSfNHtstG37rTRDwBLC6Uqd2AX0kh6/Hb7AbSIb+LmPRiPsT fbBNzqLU24jRsFePHIVmWbXpHg3J2BSnFgvylLunEz/OPdC9kUV3xy0eTC9FoE3tb4H5 9DSArZqwwwKAnwfk4YhrWhGeNydlm929VIZGr09HVBMkDIrqIAhEjRN0to7ddFbV1oNz FDXw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-190446-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190446-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 d2e1a72fcca58-6f8fd4d45ccsi5874355b3a.274.2024.05.27.03.52.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 03:52:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190446-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=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-190446-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190446-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 E9D90B20BA4 for ; Mon, 27 May 2024 10:51:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E269613B780; Mon, 27 May 2024 10:50:58 +0000 (UTC) Received: from mail115-100.sinamail.sina.com.cn (mail115-100.sinamail.sina.com.cn [218.30.115.100]) (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 D68E013AA31 for ; Mon, 27 May 2024 10:50:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=218.30.115.100 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716807058; cv=none; b=NbDXqy0XT67s2QhAwHYuTPBjWuWaoZt9xQGJzEmdApZjwSb2BW+eAWJ7B5ZzJ+iVnUo7GJxo0cIGACKh1UiTs2j9WzKfgsMyau9TLnUtqBowi1yMRNaIhsiQt923muESCmNTkEHoQnYsZqR9LUEVgoSh/dUAGiR3oCJYef+qnjU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716807058; c=relaxed/simple; bh=M+5oJJBFymwz7yytBUNL9Ovt9zv5azHe+2mI94Y5ekw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=oD1JNRy5yOLAK3lTr937DfE4G1UL1FQ2THpeFONLFtFou1G1b06792Q/psNW/LmCphKtExThY5kqIlIurBhNpxjC59oxK3MpOMTZK8Yi14SetQ3ueN/JqtKDdwEuzWbpNpmN0F6UNyRk83UyR2rEy/WKGTZH1Ef4NXfI3YTg16E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com; spf=pass smtp.mailfrom=sina.com; arc=none smtp.client-ip=218.30.115.100 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sina.com X-SMAIL-HELO: localhost.localdomain Received: from unknown (HELO localhost.localdomain)([113.88.50.196]) by sina.com (172.16.235.24) with ESMTP id 6654644300000507; Mon, 27 May 2024 18:45:25 +0800 (CST) X-Sender: hdanton@sina.com X-Auth-ID: hdanton@sina.com Authentication-Results: sina.com; spf=none smtp.mailfrom=hdanton@sina.com; dkim=none header.i=none; dmarc=none action=none header.from=hdanton@sina.com X-SMAIL-MID: 39220745089343 X-SMAIL-UIID: 5D1534DC5E0A47D2A6A59D59E8846220-20240527-184525-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [net?] WARNING in inet_csk_get_port (3) Date: Mon, 27 May 2024 18:45:12 +0800 Message-Id: <20240527104512.2559-1-hdanton@sina.com> In-Reply-To: <0000000000005736990617c4fa63@google.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Mon, 06 May 2024 01:37:21 -0700 > syzbot found the following issue on: > > HEAD commit: 977b1ef51866 Merge tag 'block-6.9-20240420' of git://git.k.. > git tree: upstream > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11135520980000 #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 977b1ef51866 --- x/net/ipv4/inet_connection_sock.c +++ y/net/ipv4/inet_connection_sock.c @@ -589,7 +589,7 @@ int inet_csk_get_port(struct sock *sk, u success: inet_csk_update_fastreuse(tb, sk); - if (!inet_csk(sk)->icsk_bind_hash) + if (tb != inet_csk(sk)->icsk_bind_hash || inet_csk(sk)->icsk_bind2_hash != tb2) inet_bind_hash(sk, tb, tb2, port); WARN_ON(inet_csk(sk)->icsk_bind_hash != tb); WARN_ON(inet_csk(sk)->icsk_bind2_hash != tb2); --