From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5D962EB64D8 for ; Wed, 14 Jun 2023 16:11:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231388AbjFNQLC (ORCPT ); Wed, 14 Jun 2023 12:11:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231209AbjFNQK7 (ORCPT ); Wed, 14 Jun 2023 12:10:59 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC3D61FC8 for ; Wed, 14 Jun 2023 09:10:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686759011; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rl6mgiOo+Ag+ttIGbzoAy2FCy5AX0T0I/OwvxTFasvA=; b=JbclCWLGvgReZhTq2E3LwA+lKwffDJ+QPAzBCXivTkSgXfYyyc2ARQJx1dPwO4QBb8Jx4R V9fEEYQxxXaQFyxCuklHHiMkZnk2VmNLSnDBBHAaEspPJdPeN876mYe+u4UnE9nq5QUWJh 9xCVYgwwGq737G1EKs0fVzAK8hBfg4w= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-85-hf3k22h9MguxekwrDDaUNQ-1; Wed, 14 Jun 2023 12:10:08 -0400 X-MC-Unique: hf3k22h9MguxekwrDDaUNQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9FD6980879D; Wed, 14 Jun 2023 16:10:07 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.67]) by smtp.corp.redhat.com (Postfix) with ESMTP id 39902C1603B; Wed, 14 Jun 2023 16:10:04 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <000000000000a61ffe05fe0c3d08@google.com> References: <000000000000a61ffe05fe0c3d08@google.com> To: syzbot Cc: dhowells@redhat.com, bpf@vger.kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, pabeni@redhat.com, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [net?] WARNING in unreserve_psock MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1661017.1686759001.1@warthog.procyon.org.uk> Content-Transfer-Encoding: quoted-printable Date: Wed, 14 Jun 2023 17:10:01 +0100 Message-ID: <1661018.1686759001@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Here's a reduced testcase. David --- // https://syzkaller.appspot.com/bug?id=3D6ffe7d1ebf1efaddb7ddd04784b9b22a= 8562b8d0 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #define OSERROR(R, S) do { if ((long)(R) =3D=3D -1L) { perror((S)); exit(1= ); } } while(0) int main(void) { struct msghdr msg; int kcmfd, res; kcmfd =3D socket(AF_KCM, SOCK_DGRAM, KCMPROTO_CONNECTED); OSERROR(kcmfd, "socket"); memset(&msg, 0, sizeof(msg)); res =3D sendmsg(kcmfd, &msg, 0); OSERROR(res, "sendmsg"); return 0; }