Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp5028290rdb; Fri, 15 Sep 2023 23:12:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEGWJxWuVfz8SuVF4w8ofwtXdcGX4ERi1q4pLYhmTv9mnqMNAgGPT504U10owJhdJJQn91p X-Received: by 2002:a17:902:b710:b0:1bb:94ed:20a with SMTP id d16-20020a170902b71000b001bb94ed020amr2876588pls.24.1694844773445; Fri, 15 Sep 2023 23:12:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694844773; cv=none; d=google.com; s=arc-20160816; b=fXEbhr+fZNTTlU8cw8P35DYiOvih+zgVpgiXZT9l15Uv1wCTN+vLncdu5RtUXXW1li Sc5WIHjfxeQNKQS25ieHBUJhwVXs5iV5ZA1CkU8zsnw00GBtmFfizMZQLMeTzvaFwYNc qP8cFR9fkK6OSCjZwAqLhYcCa3QYECiIJD7zY/L5v+ZY9SxuewMPTqV4ybrm0y5Atl5O xJ50QVtLEqj38qI+Hu6xdRm6IB4Hf7MHNowE4vOaWSwKUTY5roNyLCLazXmdgwVjpIJE tcm4HamISgXqSxlHOctZI9aam9Ky4Up4SOhcEyg9NhhXenGP6qI3Mw10QugqRK15uYeF SGSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-transfer-encoding :content-id:mime-version:subject:cc:to:references:in-reply-to:from :organization:dkim-signature; bh=7RVB1hOIPfQpHaOi4Yk7qJuVpzOQ7elLy/nnGKg1a4U=; fh=ynSMyPFtcDCsrqY8ZT9n/XHAtieBbZi8AMcHpdQ+ZYQ=; b=BJey3Kx4I9z2bVRR90cF64tRwXWWXKx6zlO83iN4Ggid+pwWQa1wkm9ABksFsag8Pb ahbEnRIPRwDmC/aa4grmgZCmurEZTUC/Phqk0m/zigZshLs/D5hpMzEkJBwlTszqekmz XvT+TvviVTR41Y+GAHs2Q9D7sEWitI5NKAJWPXJxaB5S+1rsN9gdSrMVIq460C5OHDrN gEknLcQ1/bvDsM6Azj+pyar/WB+BcpYXlBD1dQIlhOd1ZW0wIEWfWD+T4wMKmEAclICp ztvSzXWp+JO0rr80yG7Ulhx2KlOokwQppjooFC+3Yk2j/xwaUZSdPmG8XwwuprYfwmby aerQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=asIn1nS9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id j5-20020a170903024500b001bbd785e1d2si4734896plh.201.2023.09.15.23.12.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 23:12:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=asIn1nS9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 5451683BDCE1; Fri, 15 Sep 2023 08:33:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236122AbjIOPda (ORCPT + 99 others); Fri, 15 Sep 2023 11:33:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235867AbjIOPdW (ORCPT ); Fri, 15 Sep 2023 11:33:22 -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 ESMTP id 249C9E50 for ; Fri, 15 Sep 2023 08:32:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694791950; 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=7RVB1hOIPfQpHaOi4Yk7qJuVpzOQ7elLy/nnGKg1a4U=; b=asIn1nS9/YqQeRzfllqq7EGfSjuEg+EGAVmDGCFVl+qxkbMnjzqATAy60t5mM8hZFa55re LoNo+c4lJLmYIXymwd1UNWlvfmKGMPzu/92n9NcLzbvWODRGQtyf+EnB6dba7yzHcvljaa 9RwNjR9/sMvnl3NB0P16dmaAR70e//Q= 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-91-G74hyFSSMxyKHRVlRWqTQA-1; Fri, 15 Sep 2023 11:32:23 -0400 X-MC-Unique: G74hyFSSMxyKHRVlRWqTQA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B2CEC94593E; Fri, 15 Sep 2023 15:32:22 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.216]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6F91C40C6EA8; Fri, 15 Sep 2023 15:32:21 +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: References: <0000000000001c12b30605378ce8@google.com> To: Eric Dumazet Cc: dhowells@redhat.com, syzbot , bpf@vger.kernel.org, davem@davemloft.net, dsahern@kernel.org, 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 __ip6_append_data MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3792061.1694791940.1@warthog.procyon.org.uk> Content-Transfer-Encoding: quoted-printable Date: Fri, 15 Sep 2023 16:32:20 +0100 Message-ID: <3792062.1694791940@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 15 Sep 2023 08:33:59 -0700 (PDT) Hi Eric, > > WARNING: CPU: 1 PID: 5042 at net/ipv6/ip6_output.c:1800 __ip6_append_d= ata.isra.0+0x1be8/0x47f0 net/ipv6/ip6_output.c:1800 That would appear to be this: if (WARN_ON_ONCE(copy > msg->msg_iter.count)) goto error; However, I have a problem that the repro program errors out at this point before it gets that far: if (cork->length + length > maxnonfragsize - headersize) { emsgsize: pmtu =3D max_t(int, mtu - headersize + sizeof(struct ipv6hdr), 0); ipv6_local_error(sk, EMSGSIZE, fl6, pmtu); return -EMSGSIZE; } Are you able to reproduce the issue? The values in and around that point are: cork->length 0 length 65540 maxnonfragsize 65575 headersize 40 transhdrlen 4 mtu 65536 ip6_sk_ignore_df(sk) true with maxnonfragsize coming from 'sizeof(struct ipv6hdr) + IPV6_MAXPLEN'. = Is that even viable for the size of a packet? David