From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 61E9A17FE6 for ; Tue, 13 Jun 2023 19:24:15 +0000 (UTC) Received: from mail-il1-f206.google.com (mail-il1-f206.google.com [209.85.166.206]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F17191FE5 for ; Tue, 13 Jun 2023 12:24:10 -0700 (PDT) Received: by mail-il1-f206.google.com with SMTP id e9e14a558f8ab-33bbffccf69so67110805ab.3 for ; Tue, 13 Jun 2023 12:24:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686684250; x=1689276250; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=SgHMOF8OeFwcQdJEJjLCGMA6VWATpWbNVoe8L+fE+wo=; b=AJOcnqCn8r57zJZglMMkWBd+UVHDYTnom5x+sG9cq90V1qdXZ6Vps1J7aXi/KkpP9/ 6+xH4AbcFsx0kPJtZw4Q1AVLtsA7RkNvdJ4UC9LSiyv3o0YjBhTW2221mNceuD5pRY4Q 7rORHe7/OQ/1dTvYCIiz4vcZKWE9GaBhaIkT5kNAUjbWwapAP+KhlGcf77kOrNosIYoF GMREiWNQBHk3p8BkRyq4F9T6CwZwlK7TY8lqq4aG7KXu7oQ0exYOAJv8sVjfscuY5360 Wt0U5YII8eCBYLwy16P8T2MLFg5F04Px+5Dzi6WqHMUmDZwqQ1pBd/4RAmEsOR0HFGGw Hjqg== X-Gm-Message-State: AC+VfDwGyhJ3TGoXJLspkDMKqnv7uuGpyWNBvQjN9AHUyiYuumydjOL/ C37V8F4I9lAzjpy//1IBl4joLbKPVhNdClKxpz5II02m9oYZ X-Google-Smtp-Source: ACHHUZ47f/tkHD73IJ2U64Up5h0iDVztKjFpwg4JcF+ze0rI49jXUJvSqYEyO+DPQoKt/oH5Mwkq5wKSoJB1tYC5rhBjRahxTCZn Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a92:d3c2:0:b0:33e:6549:1fa3 with SMTP id c2-20020a92d3c2000000b0033e65491fa3mr6170175ilh.0.1686684250278; Tue, 13 Jun 2023 12:24:10 -0700 (PDT) Date: Tue, 13 Jun 2023 12:24:10 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000009612bc05fe07c73f@google.com> Subject: [syzbot] [hams?] memory leak in nr_create (3) From: syzbot To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, linux-hams@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, pabeni@redhat.com, ralf@linux-mips.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, 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 Hello, syzbot found the following issue on: HEAD commit: 33f2b5785a2b Merge tag 'drm-fixes-2023-06-09' of git://ano.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=127f61b3280000 kernel config: https://syzkaller.appspot.com/x/.config?x=ee975febba574924 dashboard link: https://syzkaller.appspot.com/bug?extid=d327a1f3b12e1e206c16 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=110a6ef1280000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/33eb581c818f/disk-33f2b578.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/0bcbec3a83cf/vmlinux-33f2b578.xz kernel image: https://storage.googleapis.com/syzbot-assets/0e577c2e8783/bzImage-33f2b578.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+d327a1f3b12e1e206c16@syzkaller.appspotmail.com 2023/06/09 19:03:53 executed programs: 18 BUG: memory leak unreferenced object 0xffff888114e76800 (size 2048): comm "syz-executor.3", pid 5156, jiffies 4294942146 (age 20.470s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 06 00 07 40 00 00 00 00 00 00 00 00 00 00 00 00 ...@............ backtrace: [] __do_kmalloc_node mm/slab_common.c:965 [inline] [] __kmalloc+0x4a/0x120 mm/slab_common.c:979 [] kmalloc include/linux/slab.h:563 [inline] [] sk_prot_alloc+0xcd/0x1b0 net/core/sock.c:2035 [] sk_alloc+0x36/0x300 net/core/sock.c:2088 [] nr_create+0x84/0x1c0 net/netrom/af_netrom.c:438 [] __sock_create+0x1de/0x300 net/socket.c:1547 [] sock_create net/socket.c:1598 [inline] [] __sys_socket_create net/socket.c:1635 [inline] [] __sys_socket_create net/socket.c:1620 [inline] [] __sys_socket+0xa2/0x190 net/socket.c:1663 [] __do_sys_socket net/socket.c:1676 [inline] [] __se_sys_socket net/socket.c:1674 [inline] [] __x64_sys_socket+0x1e/0x30 net/socket.c:1674 [] 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 BUG: memory leak unreferenced object 0xffff8881185accc0 (size 32): comm "syz-executor.3", pid 5156, jiffies 4294942146 (age 20.470s) hex dump (first 32 bytes): a8 d1 a3 00 81 88 ff ff 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [] kmalloc_trace+0x24/0x90 mm/slab_common.c:1057 [] kmalloc include/linux/slab.h:559 [inline] [] kzalloc include/linux/slab.h:680 [inline] [] apparmor_sk_alloc_security+0x52/0xd0 security/apparmor/lsm.c:828 [] security_sk_alloc+0x35/0x70 security/security.c:4372 [] sk_prot_alloc+0xfe/0x1b0 net/core/sock.c:2038 [] sk_alloc+0x36/0x300 net/core/sock.c:2088 [] nr_create+0x84/0x1c0 net/netrom/af_netrom.c:438 [] __sock_create+0x1de/0x300 net/socket.c:1547 [] sock_create net/socket.c:1598 [inline] [] __sys_socket_create net/socket.c:1635 [inline] [] __sys_socket_create net/socket.c:1620 [inline] [] __sys_socket+0xa2/0x190 net/socket.c:1663 [] __do_sys_socket net/socket.c:1676 [inline] [] __se_sys_socket net/socket.c:1674 [inline] [] __x64_sys_socket+0x1e/0x30 net/socket.c:1674 [] 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 BUG: memory leak unreferenced object 0xffff888115867800 (size 2048): comm "syz-executor.0", pid 5159, jiffies 4294942269 (age 19.240s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 06 00 07 40 00 00 00 00 00 00 00 00 00 00 00 00 ...@............ backtrace: [] __do_kmalloc_node mm/slab_common.c:965 [inline] [] __kmalloc+0x4a/0x120 mm/slab_common.c:979 [] kmalloc include/linux/slab.h:563 [inline] [] sk_prot_alloc+0xcd/0x1b0 net/core/sock.c:2035 [] sk_alloc+0x36/0x300 net/core/sock.c:2088 [] nr_create+0x84/0x1c0 net/netrom/af_netrom.c:438 [] __sock_create+0x1de/0x300 net/socket.c:1547 [] sock_create net/socket.c:1598 [inline] [] __sys_socket_create net/socket.c:1635 [inline] [] __sys_socket_create net/socket.c:1620 [inline] [] __sys_socket+0xa2/0x190 net/socket.c:1663 [] __do_sys_socket net/socket.c:1676 [inline] [] __se_sys_socket net/socket.c:1674 [inline] [] __x64_sys_socket+0x1e/0x30 net/socket.c:1674 [] 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 BUG: memory leak unreferenced object 0xffff88811896cae0 (size 32): comm "syz-executor.0", pid 5159, jiffies 4294942269 (age 19.240s) hex dump (first 32 bytes): a8 d1 a3 00 81 88 ff ff 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [] kmalloc_trace+0x24/0x90 mm/slab_common.c:1057 [] kmalloc include/linux/slab.h:559 [inline] [] kzalloc include/linux/slab.h:680 [inline] [] apparmor_sk_alloc_security+0x52/0xd0 security/apparmor/lsm.c:828 [] security_sk_alloc+0x35/0x70 security/security.c:4372 [] sk_prot_alloc+0xfe/0x1b0 net/core/sock.c:2038 [] sk_alloc+0x36/0x300 net/core/sock.c:2088 [] nr_create+0x84/0x1c0 net/netrom/af_netrom.c:438 [] __sock_create+0x1de/0x300 net/socket.c:1547 [] sock_create net/socket.c:1598 [inline] [] __sys_socket_create net/socket.c:1635 [inline] [] __sys_socket_create net/socket.c:1620 [inline] [] __sys_socket+0xa2/0x190 net/socket.c:1663 [] __do_sys_socket net/socket.c:1676 [inline] [] __se_sys_socket net/socket.c:1674 [inline] [] __x64_sys_socket+0x1e/0x30 net/socket.c:1674 [] 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 --- 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 syzbot to run the reproducer, reply with: #syz test: git://repo/address.git branch-or-commit-hash If you attach or paste a git patch, syzbot will apply it before testing. 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