Received: by 2002:a05:6512:2355:0:0:0:0 with SMTP id p21csp206477lfu; Wed, 30 Mar 2022 20:57:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaecjt0mV0o3X7HQIofD85unlYTEXj3vK0h3L/qU4WqNHr7D9a95cRtlz/hUx0aQwu7HGs X-Received: by 2002:a17:90b:4a41:b0:1c7:a0d7:718c with SMTP id lb1-20020a17090b4a4100b001c7a0d7718cmr3716314pjb.57.1648699041657; Wed, 30 Mar 2022 20:57:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648699041; cv=none; d=google.com; s=arc-20160816; b=cMDtV9rAM+IxxHqjoNYoPSPPC7+oZV2hh7DquHyIgLXgJFCAHedomagd8guYBGlkkt dVwrEYUx9s1XMNOM+rB/FxuxyHcUbNjeJzXVW7i93WUAl9gDVMmUHMXRHHpdnDu8w6oH eKDRns/Il4ywr+7ZE37aWmIrTf2DaxrM3Z+j+2mM9XTLTOT651zM91TMiMP0jNITpdhM ZfLyHm3Z6tr7FVmw5zFM9FxtQswB30b4ogVEJ0KLHUvIsu84KWGbIEZLSRpqofsCcfQ2 etrywPjqQjqU5lkC+ovsQW0PucfN1TS9MYZ9eUH1tZsVM2klzEJ1i5qj6L7O9VXubxy1 z2pg== 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:date:mime-version; bh=gi3ojXdxy2ba1RP724OiUC9jw2tdOrjJ64eJr4rNY58=; b=miD8hXLR9dMJQ/2+CeBXu15Xhy8cxPitcgnQzfDmccmZVlmiDv0elbfM4rhCmEaSjL 0pL/Y20xinSjCa0UonGiMIIOocK5tMPumrR4vgU2YOKQKO+QZNstBtnocL6lZzOOMCYb eL/JVkfaY/hwxR9CKqEjj7hCJsyQFnf0/ByQ4KdFuAq0QiYmCPYWLMsJU1OYL4OH9Psk je1CBWoyS+sF34KYo4ZcnILVWSGKKwhCc8OQfyS/UewnWnptHqajo8G2EyZyOSh7HsXn SJhD111ssciOOv5h4GTW0CQiQViTLaYlgLaq4DervecyLt9/zfzKmBSNZfep6CRKVrof NlSw== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id h69-20020a628348000000b004fa3a8dffecsi21947765pfe.163.2022.03.30.20.57.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 20:57:21 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B35F8173F5D; Wed, 30 Mar 2022 20:09:18 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352131AbiCaAuK (ORCPT + 99 others); Wed, 30 Mar 2022 20:50:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233530AbiCaAuJ (ORCPT ); Wed, 30 Mar 2022 20:50:09 -0400 Received: from mail-io1-f69.google.com (mail-io1-f69.google.com [209.85.166.69]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAF9563F5 for ; Wed, 30 Mar 2022 17:48:21 -0700 (PDT) Received: by mail-io1-f69.google.com with SMTP id h14-20020a05660208ce00b00645c339411bso15487440ioz.8 for ; Wed, 30 Mar 2022 17:48:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=gi3ojXdxy2ba1RP724OiUC9jw2tdOrjJ64eJr4rNY58=; b=QKnYz5Rbhd7jHwJtKJfZa66B5YrSVEAgzgGiwlLp9oa5U4Gk9pwlx3yTS3h2sMx9SB cLTiFSTCUAOptDsBGmJWXmZ4RIwVIxqfOdjzIPD9WkED9aDiQcQGitpyXBh6osIJviFn 6LjV9G+GbTZdyCJj0R5cB7FJiPEYwA795FuHJ9dNDK9a6CmUlhF7XusLJbcNnyt4kR65 WGcJ6nyMhBrY1/I9zsQOR2OrmvHjym+UaqtflbJaMYiF6QNOxDXtqk8eFdQ1JGFe9dNY K+U+Ptab2EDu+zKqybV6ZJ88ySijE5MOemPf2nfMfuQ/49sa7VIsFhrIyvG634OyaeaJ PhYw== X-Gm-Message-State: AOAM5315ibklkplkbrcZOIWYHDAqwnr8gzITYp/2gvl/sCM9CF4Q7gI0 i0c9hzxqp/MNBD1Lkw7YEC1auQqZgW0JitalcjnA/C0QpfYE MIME-Version: 1.0 X-Received: by 2002:a5d:8486:0:b0:64c:6c6b:4660 with SMTP id t6-20020a5d8486000000b0064c6c6b4660mr10712482iom.21.1648687701162; Wed, 30 Mar 2022 17:48:21 -0700 (PDT) Date: Wed, 30 Mar 2022 17:48:21 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000c6056605db790400@google.com> Subject: [syzbot] general protection fault in smc_pnet_add (2) From: syzbot To: davem@davemloft.net, kgraul@linux.ibm.com, kuba@kernel.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SORTED_RECIPS,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 Hello, syzbot found the following issue on: HEAD commit: d82a6c5ef9dc net: prestera: acl: make read-only array clie.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=13862081700000 kernel config: https://syzkaller.appspot.com/x/.config?x=cce8a73d5200f3c0 dashboard link: https://syzkaller.appspot.com/bug?extid=03e3e228510223dabd34 compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=167da879700000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12bb0fe1700000 Bisection is inconclusive: the issue happens on the oldest tested release. bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=11116ca1700000 final oops: https://syzkaller.appspot.com/x/report.txt?x=13116ca1700000 console output: https://syzkaller.appspot.com/x/log.txt?x=15116ca1700000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+03e3e228510223dabd34@syzkaller.appspotmail.com infiniband syz: set active infiniband syz: added veth0_vlan RDS/IB: syz: added smc: adding ib device syz with port count 1 smc: ib device syz port 1 has pnetid general protection fault, probably for non-canonical address 0xdffffc000000000a: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000050-0x0000000000000057] CPU: 1 PID: 3592 Comm: syz-executor235 Not tainted 5.17.0-rc6-syzkaller-01979-gd82a6c5ef9dc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:dev_name include/linux/device.h:636 [inline] RIP: 0010:smc_pnet_find_ib net/smc/smc_pnet.c:314 [inline] RIP: 0010:smc_pnet_add_ib net/smc/smc_pnet.c:416 [inline] RIP: 0010:smc_pnet_enter net/smc/smc_pnet.c:515 [inline] RIP: 0010:smc_pnet_add+0xc4b/0x17a0 net/smc/smc_pnet.c:558 Code: 8d be 58 07 00 00 48 89 f8 48 c1 e8 03 80 3c 28 00 0f 85 40 09 00 00 4d 8b a6 58 07 00 00 49 8d 7c 24 50 48 89 f8 48 c1 e8 03 <80> 3c 28 00 0f 85 19 09 00 00 4d 8b 74 24 50 4d 85 f6 0f 85 21 ff RSP: 0018:ffffc9000399f540 EFLAGS: 00010206 RAX: 000000000000000a RBX: ffff888076902800 RCX: 0000000000000000 RDX: ffff8880226f0000 RSI: ffffffff88cadba0 RDI: 0000000000000050 RBP: dffffc0000000000 R08: 0000000000000000 R09: ffffc9000399f47f R10: ffffffff88cadb92 R11: 1ffffffff1eb5307 R12: 0000000000000000 R13: ffff88807066cc18 R14: ffff88801abc4000 R15: ffff888076902810 FS: 0000555555e61300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056492c9e2ff8 CR3: 0000000018900000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: genl_family_rcv_msg_doit+0x228/0x320 net/netlink/genetlink.c:731 genl_family_rcv_msg net/netlink/genetlink.c:775 [inline] genl_rcv_msg+0x328/0x580 net/netlink/genetlink.c:792 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2494 genl_rcv+0x24/0x40 net/netlink/genetlink.c:803 netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline] netlink_unicast+0x539/0x7e0 net/netlink/af_netlink.c:1343 netlink_sendmsg+0x904/0xe00 net/netlink/af_netlink.c:1919 sock_sendmsg_nosec net/socket.c:705 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:725 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2413 ___sys_sendmsg+0xf3/0x170 net/socket.c:2467 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2496 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f02fa3ae5d9 Code: 28 c3 e8 7a 15 00 00 66 2e 0f 1f 84 00 00 00 00 00 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffd0d649788 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f02fa3ae5d9 RDX: 0000000000000000 RSI: 0000000020000280 RDI: 0000000000000005 RBP: 0000000000000004 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000555555e612c0 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dev_name include/linux/device.h:636 [inline] RIP: 0010:smc_pnet_find_ib net/smc/smc_pnet.c:314 [inline] RIP: 0010:smc_pnet_add_ib net/smc/smc_pnet.c:416 [inline] RIP: 0010:smc_pnet_enter net/smc/smc_pnet.c:515 [inline] RIP: 0010:smc_pnet_add+0xc4b/0x17a0 net/smc/smc_pnet.c:558 Code: 8d be 58 07 00 00 48 89 f8 48 c1 e8 03 80 3c 28 00 0f 85 40 09 00 00 4d 8b a6 58 07 00 00 49 8d 7c 24 50 48 89 f8 48 c1 e8 03 <80> 3c 28 00 0f 85 19 09 00 00 4d 8b 74 24 50 4d 85 f6 0f 85 21 ff RSP: 0018:ffffc9000399f540 EFLAGS: 00010206 RAX: 000000000000000a RBX: ffff888076902800 RCX: 0000000000000000 RDX: ffff8880226f0000 RSI: ffffffff88cadba0 RDI: 0000000000000050 RBP: dffffc0000000000 R08: 0000000000000000 R09: ffffc9000399f47f R10: ffffffff88cadb92 R11: 1ffffffff1eb5307 R12: 0000000000000000 R13: ffff88807066cc18 R14: ffff88801abc4000 R15: ffff888076902810 FS: 0000555555e61300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056492c9f13a8 CR3: 0000000018900000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 8d be 58 07 00 00 lea 0x758(%rsi),%edi 6: 48 89 f8 mov %rdi,%rax 9: 48 c1 e8 03 shr $0x3,%rax d: 80 3c 28 00 cmpb $0x0,(%rax,%rbp,1) 11: 0f 85 40 09 00 00 jne 0x957 17: 4d 8b a6 58 07 00 00 mov 0x758(%r14),%r12 1e: 49 8d 7c 24 50 lea 0x50(%r12),%rdi 23: 48 89 f8 mov %rdi,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 80 3c 28 00 cmpb $0x0,(%rax,%rbp,1) <-- trapping instruction 2e: 0f 85 19 09 00 00 jne 0x94d 34: 4d 8b 74 24 50 mov 0x50(%r12),%r14 39: 4d 85 f6 test %r14,%r14 3c: 0f .byte 0xf 3d: 85 21 test %esp,(%rcx) 3f: ff .byte 0xff --- 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. For information about bisection process see: https://goo.gl/tpsmEJ#bisection syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches