Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp10946216rwr; Fri, 12 May 2023 15:59:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ64dSxss63L0PpKnvzX1kab+RmX49yQq6TPVO+PKkTLv3pwe+U22YW2AxDrro0eRlOURnC/ X-Received: by 2002:a17:903:280b:b0:1ab:15c2:e2e9 with SMTP id kp11-20020a170903280b00b001ab15c2e2e9mr23308493plb.7.1683932398338; Fri, 12 May 2023 15:59:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683932398; cv=none; d=google.com; s=arc-20160816; b=qaRW2Ekz+GcFlG3KUcyj1tM2TrVHXw98R1bJTHnsUk116J8JLcJsQ+VEeY1cS/v/8r IxNx6lJSUz7UzrIKpfs3v+R8WVSzOHqSJ/ILe5tsGlozRy9fhV5emoVZM7/uyEyi8Mwz TEJooOJFHY633QZa7Qixik1A8j5MLNrS0bRfgOzJBjKdUv5IiKF+0dI7SuenxIBu2eP0 5Eq6NFGjr+qKGa8cG7IaLXZ6rkbYDydrv0ltGf73LM0EjcFaL1/fjjWGU4X32uop5+LW w6ar6WVtJQdADndOYH1FVkAQWCkAEglivDmMkB6mt4d9PHc1HuKYAt4rpkPlWztdQtmS X8sA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=pH40wXurUVnu7MQpnwPBdQbAmzOJtjZ3j3TWBWL1rU0=; b=Jx+BNSGNMUkprevIsDD9S0gM0gZCLe4pXS2SNsa8NBHK6JB2O/IKg58aIz6ODI27f6 L9P1xpJSVRjuOlawrf2LG+mp2lrgovT4eOadOFA5BgBQg8Z/UJ7bVNxXBytJhdTW4VN/ R6Nsfitzk5CZu40DskCewvPM9USqpCoS4xHwSQbaWW0Fqm2v70AcZWGEHelF/xAc1SxW 4pN20DI639rO5sBBTW11ZU5ral/brFI10vW/g3IW84vsTM9tkjo0OPeX/MetRDsGrAM4 EvvRHu+NZHg9jqLf8f+ZnLcLOiNQoV6PivDAsGVxzlDsYL+0Sa8Zd6oX3TvjzZ+nh/TO hzgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=WeEBCHkW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jb21-20020a170903259500b001ac307c4ef4si9753270plb.301.2023.05.12.15.59.41; Fri, 12 May 2023 15:59:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=WeEBCHkW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239441AbjELWg3 (ORCPT + 99 others); Fri, 12 May 2023 18:36:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232109AbjELWg2 (ORCPT ); Fri, 12 May 2023 18:36:28 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06D4E2719; Fri, 12 May 2023 15:36:26 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-4f2676d62a2so3684948e87.0; Fri, 12 May 2023 15:36:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683930984; x=1686522984; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=pH40wXurUVnu7MQpnwPBdQbAmzOJtjZ3j3TWBWL1rU0=; b=WeEBCHkWNaf4CTmgPjjmHo7w3uNe/AbhW60h9tsYGQMBOKQ78cp3dSxaEe69PSXOJw 9AroH8tRRngJ4n8n97rqC/cKZjJCWYnCvez1uEHMUnvYU+TyhPbfHv+dwrlkarBlAcNZ 9iJL479zUXiMBVEP9W0FUsc81vDfTB+RXSx6dshAMUUN2mJOcSbBxjrf7FDopV4R/tU0 eGvUsr9KMBpxmbd/SkhLfVE+htVT+EYVre7B4beMdUDKhmhunAy638BnNO9y8CnqkHOa qSfCzk2j54TsMesKWae902bBolJocS2AjPwxODXGCPDIqdNkY5mdSEC1ASTxnEIRQVr4 D+WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683930984; x=1686522984; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pH40wXurUVnu7MQpnwPBdQbAmzOJtjZ3j3TWBWL1rU0=; b=S9LnJAWEAXWbda+LkghT9IcD//ZMp5ahTOyo3G0PJmZlUBDO5y6c0+fDJsFBiEyt2g Br8IZeZxPS28CWLJmiqEwVdxAhBWlLaZFlAcRg/yYqAqOY7RD8BWYLxx6GBQwiPzXYo2 40GHGsHtJXROd8piwnBWfSXD73Esozo/YkKIpp1gE50zqF69wlQoEtFN3o0FnEyx3oMW z1T3Z5J9lrctdTrHcQr8r/Z1ruCE76VTN7/nd1/mNg6fHxkWXXWi7Pjs/B3WH5EdruIn 9ien/OgsErsSOX9hURQ0V+cqEWHDnjuFsx05erYXy/6kieiLnuXvlIS1iX93IRwPgdVr 7qzQ== X-Gm-Message-State: AC+VfDxcmOy8fyqDqbWcTG4O9z8xJAiYZUYLgpa3edqIDiyecOtzSQ7s YWsE5yCI+BhW+FdOkiMHbWvhJqJ6V7YrEexBaX0= X-Received: by 2002:ac2:4566:0:b0:4eb:79:fa5 with SMTP id k6-20020ac24566000000b004eb00790fa5mr3759530lfm.25.1683930983774; Fri, 12 May 2023 15:36:23 -0700 (PDT) MIME-Version: 1.0 References: <00000000000048abb105fb5604c1@google.com> In-Reply-To: <00000000000048abb105fb5604c1@google.com> From: Alexei Starovoitov Date: Fri, 12 May 2023 15:36:12 -0700 Message-ID: Subject: Re: [syzbot] [bpf?] [net?] kernel BUG in pskb_expand_head (2) To: syzbot Cc: Andrii Nakryiko , Alexei Starovoitov , bpf , Daniel Borkmann , "David S. Miller" , Eric Dumazet , Hao Luo , Jesper Dangaard Brouer , John Fastabend , Jiri Olsa , KP Singh , Jakub Kicinski , LKML , Martin KaFai Lau , Network Development , Paolo Abeni , Stanislav Fomichev , Song Liu , syzkaller-bugs , Yonghong Song Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SORTED_RECIPS,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org John, could you please check whether your pending sockmap patches address this issue as well or it's a new one? On Wed, May 10, 2023 at 5:29=E2=80=AFAM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit: ed23734c23d2 Merge tag 'net-6.4-rc1' of git://git.kernel.= o.. > git tree: net > console output: https://syzkaller.appspot.com/x/log.txt?x=3D10ecc3b028000= 0 > kernel config: https://syzkaller.appspot.com/x/.config?x=3D87f9126139666= d37 > dashboard link: https://syzkaller.appspot.com/bug?extid=3D78bac731178aabd= b6307 > compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binuti= ls for Debian) 2.35.2 > > Unfortunately, I don't have any reproducer for this issue yet. > > Downloadable assets: > disk image: https://storage.googleapis.com/syzbot-assets/d103acfdbd1d/dis= k-ed23734c.raw.xz > vmlinux: https://storage.googleapis.com/syzbot-assets/4448a632b1df/vmlinu= x-ed23734c.xz > kernel image: https://storage.googleapis.com/syzbot-assets/758a66ebff4f/b= zImage-ed23734c.xz > > IMPORTANT: if you fix the issue, please add the following tag to the comm= it: > Reported-by: syzbot+78bac731178aabdb6307@syzkaller.appspotmail.com > > ------------[ cut here ]------------ > kernel BUG at net/core/skbuff.c:2047! > invalid opcode: 0000 [#1] PREEMPT SMP KASAN > CPU: 0 PID: 16973 Comm: syz-executor.5 Not tainted 6.3.0-syzkaller-13379-= ged23734c23d2 #0 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS G= oogle 04/14/2023 > RIP: 0010:pskb_expand_head+0xc4a/0x1170 net/core/skbuff.c:2047 > Code: 8d 75 ff e9 0f fe ff ff e8 b3 20 7c f9 48 c7 c6 40 cb 5d 8b 4c 89 f= 7 e8 14 a4 b7 f9 0f 0b e8 9d 20 7c f9 0f 0b e8 96 20 7c f9 <0f> 0b e8 8f 20= 7c f9 48 89 df e8 87 50 ff ff e9 75 f5 ff ff e8 7d > RSP: 0018:ffffc90003797818 EFLAGS: 00010216 > RAX: 0000000000001b49 RBX: ffff888015b06870 RCX: ffffc900056ba000 > RDX: 0000000000040000 RSI: ffffffff8808244a RDI: 0000000000000005 > RBP: 0000000000000002 R08: 0000000000000005 R09: 0000000000000001 > R10: 0000000000000002 R11: 1ffff110040ad08a R12: 0000000000000820 > R13: dffffc0000000000 R14: ffff888015b06940 R15: 0000000000000000 > FS: 00007f4a686bb700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000= 000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 0000001b2e124000 CR3: 000000007314b000 CR4: 00000000003506f0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > Call Trace: > > skb_ensure_writable net/core/skbuff.c:6001 [inline] > skb_ensure_writable+0x2cb/0x450 net/core/skbuff.c:5993 > __bpf_try_make_writable net/core/filter.c:1658 [inline] > sk_skb_try_make_writable net/core/filter.c:1881 [inline] > ____sk_skb_pull_data net/core/filter.c:1895 [inline] > sk_skb_pull_data+0x8b/0xa0 net/core/filter.c:1884 > bpf_prog_53daab6e9cefb4fc+0x1a/0x1c > bpf_dispatcher_nop_func include/linux/bpf.h:1168 [inline] > __bpf_prog_run include/linux/filter.h:600 [inline] > bpf_prog_run include/linux/filter.h:607 [inline] > bpf_prog_run_pin_on_cpu include/linux/filter.h:624 [inline] > sk_psock_verdict_recv+0x36d/0x7a0 net/core/skmsg.c:1201 > tcp_read_skb+0x177/0x670 net/ipv4/tcp.c:1773 > sk_psock_verdict_data_ready+0xad/0xd0 net/core/skmsg.c:1220 > tcp_data_ready+0x10a/0x520 net/ipv4/tcp_input.c:5006 > tcp_rcv_established+0x194f/0x1f90 net/ipv4/tcp_input.c:5986 > tcp_v4_do_rcv+0x65a/0x9c0 net/ipv4/tcp_ipv4.c:1721 > sk_backlog_rcv include/net/sock.h:1113 [inline] > __release_sock+0x133/0x3b0 net/core/sock.c:2917 > release_sock+0x58/0x1b0 net/core/sock.c:3484 > tcp_sendmsg+0x3a/0x50 net/ipv4/tcp.c:1486 > inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:825 > sock_sendmsg_nosec net/socket.c:724 [inline] > sock_sendmsg+0xde/0x190 net/socket.c:747 > __sys_sendto+0x23a/0x340 net/socket.c:2144 > __do_sys_sendto net/socket.c:2156 [inline] > __se_sys_sendto net/socket.c:2152 [inline] > __x64_sys_sendto+0xe1/0x1b0 net/socket.c:2152 > do_syscall_x64 arch/x86/entry/common.c:50 [inline] > do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 > entry_SYSCALL_64_after_hwframe+0x63/0xcd > RIP: 0033:0x7f4a6788c169 > Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 48 89 f8 48 89 f= 7 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 b8 ff ff ff f7 d8 64 89 01 48 > RSP: 002b:00007f4a686bb168 EFLAGS: 00000246 ORIG_RAX: 000000000000002c > RAX: ffffffffffffffda RBX: 00007f4a679abf80 RCX: 00007f4a6788c169 > RDX: 0000000000000001 RSI: 00000000200000c0 RDI: 0000000000000003 > RBP: 00007f4a678e7ca1 R08: 0000000000000000 R09: 0000000000000000 > R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 > R13: 00007fff06f0778f R14: 00007f4a686bb300 R15: 0000000000022000 > > Modules linked in: > ---[ end trace 0000000000000000 ]--- > RIP: 0010:pskb_expand_head+0xc4a/0x1170 net/core/skbuff.c:2047 > Code: 8d 75 ff e9 0f fe ff ff e8 b3 20 7c f9 48 c7 c6 40 cb 5d 8b 4c 89 f= 7 e8 14 a4 b7 f9 0f 0b e8 9d 20 7c f9 0f 0b e8 96 20 7c f9 <0f> 0b e8 8f 20= 7c f9 48 89 df e8 87 50 ff ff e9 75 f5 ff ff e8 7d > RSP: 0018:ffffc90003797818 EFLAGS: 00010216 > RAX: 0000000000001b49 RBX: ffff888015b06870 RCX: ffffc900056ba000 > RDX: 0000000000040000 RSI: ffffffff8808244a RDI: 0000000000000005 > RBP: 0000000000000002 R08: 0000000000000005 R09: 0000000000000001 > R10: 0000000000000002 R11: 1ffff110040ad08a R12: 0000000000000820 > R13: dffffc0000000000 R14: ffff888015b06940 R15: 0000000000000000 > FS: 00007f4a686bb700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000= 000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 00007feddbf47100 CR3: 000000007314b000 CR4: 00000000003506f0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > > > --- > This report is generated by a bot. It may contain errors. > See https://goo.gl/tpsmEJ for more information about syzbot. > syzbot engineers can be reached at syzkaller@googlegroups.com. > > syzbot will keep track of this issue. See: > https://goo.gl/tpsmEJ#status for how to communicate with syzbot. > > If the bug is already fixed, let syzbot know by replying with: > #syz fix: exact-commit-title > > If you want to change bug's subsystems, reply with: > #syz set subsystems: new-subsystem > (See the list of subsystem names on the web dashboard) > > If the bug is a duplicate of another bug, reply with: > #syz dup: exact-subject-of-another-report > > If you want to undo deduplication, reply with: > #syz undup >