Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp6079914rdb; Mon, 18 Sep 2023 03:41:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IExQK3MS5/1tAYYHCzUzkm+9/AkBjSPgeJOjowCr9o4M0fCfd9HIhF+rGcME/1fJSa+OdHB X-Received: by 2002:a05:6830:617:b0:6b8:90cd:47b5 with SMTP id w23-20020a056830061700b006b890cd47b5mr10295489oti.7.1695033693884; Mon, 18 Sep 2023 03:41:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695033693; cv=none; d=google.com; s=arc-20160816; b=C8QKuFiAidDxVGUem4m68JIbCRw3Pmh/XTe9OQeA1rR4TdDTPM3BKiw2QOxZEMb/hX uim7eE3WDY+JHWTkj0pp0ADONeGK/TtsoWwDJkJ1MajJI/yo44t3OfhKu8RAt71XvV/F kaHoooZ4ZrJG/E1TVHu9GcKENX99iWRzI/gXIvvsVP+o/sU/5wjfK1cgICEgWkFHFbDJ x5gMgxYvX/Z9iLjY1GhCWPnUMVCN8PKkYIqb55f9cqwNzIC3wxTPQ1mzwr0jzlU5P1j/ t6EElDN+uEDAwJVNMyPd8W/DavRtKdFkRZaiuRJFvPG60Nlqb7yytxWQKOTTwJIJSEYt pU7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:in-reply-to:date :mime-version; bh=TGRLeptGZvLp1hUYEMjYiRhp/wDfnF1GLg92JMr4Fig=; fh=eYVlExbtjocxxmhXCSdVHvN2bs/sE32Omx79l/TOSmw=; b=o+52q+jb4pfEQRU/wz+PlNx3Nof+dxA+CGr1u2Sl1L43zT3aloE8Yoq+we/mha13FU LS/XeOpI5OP9m71cXLYZH/uEguJkUbe6ulloRFkWjn5T7VdI8YgL2FhIHyNmN+wxpgM9 oZyCC/A778wUOS38CTrF9OTdWEuBsGVmF/X1QGcPeRCnzaJx64URDhji+NHeodSEQUBP zvoKi/j4gdPhf0aCmb7LiFW12ZhqOpTfUWffzaRqa8/qep6Gt2Z2yFK8sZWrHLKME/nI h0t8DxrU3f/3tIhH02MixeYMynKjIRTntAQZt2c3zxMpsOy37d9G0I23RrDaXiVufQIB Cwlg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id l65-20020a633e44000000b0056959099f35si7740564pga.146.2023.09.18.03.41.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 03:41:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 055FD80D2E47; Mon, 18 Sep 2023 03:34:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234107AbjIRKeD (ORCPT + 99 others); Mon, 18 Sep 2023 06:34:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241358AbjIRKdn (ORCPT ); Mon, 18 Sep 2023 06:33:43 -0400 Received: from mail-oi1-f200.google.com (mail-oi1-f200.google.com [209.85.167.200]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99AEF12C for ; Mon, 18 Sep 2023 03:33:33 -0700 (PDT) Received: by mail-oi1-f200.google.com with SMTP id 5614622812f47-3ab7fb1173cso7145397b6e.3 for ; Mon, 18 Sep 2023 03:33:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695033213; x=1695638013; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TGRLeptGZvLp1hUYEMjYiRhp/wDfnF1GLg92JMr4Fig=; b=IvY+GU0CxffylbrcIuSYoC8yGc4EWxmkQ2tGrKag/MwTYINEvLCukWWeBOj7esf3KK uWXt58I0OAzQX4roDTstrM4wxINtOFKiIlw3V8OlKVfk7QMwWz38Vkqsfo8PDxhuu8+N rfzHYATrLglfag4XjwEUHkAz86fg+5mtNZb+KrznJU4MAacASIZx7KZBrAITnnxGlp6+ Px6UdJTmSqjlV34Bo6BPrV9ajqxR2cGp+7sFWAKfD2Oa4j7bmDnz8rnApxkmQS6g3ReW w1SVpYnp/a34wc4Jru7ue8wgLBChWP4wXmxCYDNjwc0CkFNwkmgo9ddJ3N94urY9tp6r oIqQ== X-Gm-Message-State: AOJu0YyU3JySJmH76hRww2h2/atW8HDg3HFCwj70HvrlM8evWJK9lZwG xBPV+2kfSNGAt2U6eVXoyS4FTSEwqzIGdDBSOijybHb6ahL8 MIME-Version: 1.0 X-Received: by 2002:a05:6808:1a1f:b0:3ac:ab4f:ef3 with SMTP id bk31-20020a0568081a1f00b003acab4f0ef3mr3979852oib.6.1695033212795; Mon, 18 Sep 2023 03:33:32 -0700 (PDT) Date: Mon, 18 Sep 2023 03:33:32 -0700 In-Reply-To: <3905313.1695031861@warthog.procyon.org.uk> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000088066006059fac87@google.com> Subject: Re: [syzbot] [net?] WARNING in __ip6_append_data From: syzbot To: bpf@vger.kernel.org, davem@davemloft.net, dhowells@redhat.com, dsahern@kernel.org, edumazet@google.com, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, pabeni@redhat.com, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=2.1 required=5.0 tests=FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SORTED_RECIPS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Mon, 18 Sep 2023 03:34:47 -0700 (PDT) X-Spam-Level: ** Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: WARNING in __ip6_append_data l2tp_ip6_sendmsg() MAXPLEN check 0 4100 65575 40, 4 65536 l2tp_ip6_sendmsg() MAXPLEN check 4100 4100 65575 40, 0 65536 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5455 at net/ipv6/ip6_output.c:1812 __ip6_append_data.isra.0+0x1c6d/0x4900 net/ipv6/ip6_output.c:1812 Modules linked in: CPU: 0 PID: 5455 Comm: syz-executor.0 Not tainted 6.5.0-syzkaller-11938-g65d6e954e378-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 RIP: 0010:__ip6_append_data.isra.0+0x1c6d/0x4900 net/ipv6/ip6_output.c:1812 Code: c4 f6 ff ff e8 84 d4 97 f8 49 8d 44 24 ff 48 89 44 24 68 49 8d 6c 24 07 e9 ab f6 ff ff 4c 8b b4 24 90 01 00 00 e8 63 d4 97 f8 <0f> 0b 48 8b 44 24 10 45 89 f4 48 8d 98 74 02 00 00 e8 4d d4 97 f8 RSP: 0018:ffffc90004f373b8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000001004 RCX: 0000000000000000 RDX: ffff888019e8bb80 RSI: ffffffff88efcf9d RDI: 0000000000000006 RBP: 0000000000001000 R08: 0000000000000006 R09: 0000000000001004 R10: 0000000000001000 R11: 0000000000000001 R12: 0000000000000001 R13: dffffc0000000000 R14: 0000000000001004 R15: ffff888027b1d640 FS: 00007feae40ff6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0f01e4e378 CR3: 000000007d467000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ip6_append_data+0x1e6/0x510 net/ipv6/ip6_output.c:1909 l2tp_ip6_sendmsg+0xe0c/0x1ce0 net/l2tp/l2tp_ip6.c:633 inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:840 sock_sendmsg_nosec net/socket.c:730 [inline] sock_sendmsg+0xd9/0x180 net/socket.c:753 splice_to_socket+0xade/0x1010 fs/splice.c:881 do_splice_from fs/splice.c:933 [inline] direct_splice_actor+0x118/0x180 fs/splice.c:1142 splice_direct_to_actor+0x347/0xa30 fs/splice.c:1088 do_splice_direct+0x1af/0x280 fs/splice.c:1194 do_sendfile+0xb88/0x1390 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64 fs/read_write.c:1308 [inline] __x64_sys_sendfile64+0x1d6/0x220 fs/read_write.c:1308 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7feae347cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007feae40ff0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007feae359bf80 RCX: 00007feae347cae9 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000005 RBP: 00007feae34c847a R08: 0000000000000000 R09: 0000000000000000 R10: 000000010000a006 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007feae359bf80 R15: 00007ffc444d03c8 Tested on: commit: 65d6e954 Merge tag 'gfs2-v6.5-rc5-fixes' of git://git... git tree: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git console output: https://syzkaller.appspot.com/x/log.txt?x=12133ac4680000 kernel config: https://syzkaller.appspot.com/x/.config?x=b273cdfbc13e9a4b dashboard link: https://syzkaller.appspot.com/bug?extid=62cbf263225ae13ff153 compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 patch: https://syzkaller.appspot.com/x/patch.diff?x=139cae54680000