Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1035762lqz; Sun, 31 Mar 2024 10:25:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVi6FCEC20z9gWTEm94+ZVU9bBVzcD0DqpQ4TftG4L/Aw6i1TCx0IjTfdNTpp7583xeZXlY4P5re02msrBS+PWnI6BlCA4F1/BrFBse8A== X-Google-Smtp-Source: AGHT+IEbQHKroherb4fv2Lcb4isIJ1MYiJEGzjbRK2SrwLSTh1OeUMOe3O4auvPl4a/KxkbGbgYp X-Received: by 2002:a50:cd49:0:b0:566:be15:9a88 with SMTP id d9-20020a50cd49000000b00566be159a88mr5520342edj.20.1711905928610; Sun, 31 Mar 2024 10:25:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711905928; cv=pass; d=google.com; s=arc-20160816; b=Mov6yl7+hIwvfa0hUUMsTifxMmSLS9fnrOKtNnXuPDMG88asKRnlwOLqXZu4jpWfDv 1yAZfeILQaMa6W81JLreViKoX829IId3lz//bIBgXrStFMz4jMtHeCbQGHJSl+7HqrlW H5QWED1W0S5mUvc2oqqflaykiJ3gvqZUy9MHH1++KTB3oMGqrU/RGcIvpcqYpcX8aE2+ HfIfvd467SOMYFB3g0muChX5og+8b4HB+3/UK7eot3dUseucxXP5K4E7LlWsdml0Nl67 elacrhBGnNvavKHafdG0hZgt8tcfTU92wVvT2zmkUaJ3cjwRqiJUEx+N8CwhKRtaIpcy oEfA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:date:mime-version:list-unsubscribe :list-subscribe:list-id:precedence; bh=3VLP77yhWLNdHFDTSvdHbcntLwXacrsbWIlftNeJvw4=; fh=T/pYy2Snd7Ki3JgkaAuuRXSGHo87VHjuPewulXuQqnA=; b=on7kxdSxgbMoZQa8I9dBtu84YVy/L/1geEOaqA5U+2uj623qbMeIrn1jwLbnROsOW9 xTJFMgf+IpBM768WTYNnkwAUbxWO0VI43MGfHN4vSjtDzF96TLQOTlee7ofjDrRrVHKC QuTUznQUkKhTD5DjZbbtqRrUWaJJbmPChiwMO1A698TXDXsXJVjfRyq+KuFWpYQvuNsV pIQsYOP9bf76v+3iE8HeTcOQqD2D2qhu0h3YbYbjH1d43k0vl12lep8FkHxeh2LYh6ha BsZQLAz7J1UgUDrsAy/G+ycIywjQhhindsRvCLb2lHwJiTQIvHr4s79wKUAfVyoEZ8WO SZAw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-126322-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126322-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id e12-20020a50d4cc000000b0056c25c52559si3982886edj.77.2024.03.31.10.25.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Mar 2024 10:25:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-126322-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-126322-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-126322-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id EC7D91F225D7 for ; Sun, 31 Mar 2024 17:25:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AABA61474C9; Sun, 31 Mar 2024 17:09:31 +0000 (UTC) Received: from mail-io1-f69.google.com (mail-io1-f69.google.com [209.85.166.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 47C3D145347 for ; Sun, 31 Mar 2024 17:09:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.69 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711904970; cv=none; b=AvmpAEvXbWE2cF8LTD0W50DdmjcxbwIkTEuOf8pmvZyIn9iVMNL8VFWdsm549Mdgt/ObDeRGrb6Ffzv2R/AOAscV0d2HWUTZGmQKYw5J0ffCZZQjZFeMUlYjVglAt6JEcNJQN5q7M8UK7uZ3nTu1cqI89+HhW4k1vjxR9pGm6fg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711904970; c=relaxed/simple; bh=eKJ02jXtS4JiUYKcYtDW+jICo+xSo6QU77BUBOoFrZA=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=T4BqVjE85wJ4whqk+HU0Cd69G6nXpawzxSBGG85eShjF15+fIqn1+limBx9yhI/h2TYuvEA1jObAqVfMWpuhiPHmv5tny3VvFFx9VWabt1bJHEpMP+T3it7YbkWsQwHuPrIVv56Ph46cJuaf1JtCqyO3cjzgsFpYrSMkq1DtIcY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.166.69 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-io1-f69.google.com with SMTP id ca18e2360f4ac-7cbfd4781fcso376262939f.3 for ; Sun, 31 Mar 2024 10:09:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711904968; x=1712509768; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=3VLP77yhWLNdHFDTSvdHbcntLwXacrsbWIlftNeJvw4=; b=xQCioP0EGC4mdWdH/DWK+iMrali4FofyrcXh2TJn/VwegqTC4TrEVxBa1dMYBH2qwy knTnu9JS62hZQyX6K37Pi5RwdMRd7AHtb2OauXRLYRwwHCpcyD+dCJlrQ8MpiMkXsSTe RCa1GPvMCr0ny9ThPhuxt9hW5rNCO4A3tnmSubp7E3eYpjRaLF2WAHVgEibWUybq9vA7 PaxnqNvqcO2Bq8JskzcsNI+7VyFGu2EOn6PpyJ3FToL7+lTDMRx/u9yROvxZSlX15KGb QkmVLeKi2iJMr3zI/sU9AyoYdncYkZBM7NT6kvlvGqhr9Eq2NP6ThszzikxZcd98Odzm k4Qg== X-Forwarded-Encrypted: i=1; AJvYcCUAJ1Nt3RkXwrOFkofF4VYAEfeUTFZuqiUK4FVkk4BBFRxFU3zyaxzxMH2k+s62Krn4AF+uys9+VZPxCX69nOhh235w5FauCyixf1pd X-Gm-Message-State: AOJu0Yy5ImSiZ1a9DAQO3A2Sje5YBNmW1fXm9p/wOLs9qGNWCtsCLW52 XIA3e1TTLdt467C9S69OWp+PxPeuyWJQCHSpN1nGB3QHsjPXg2nh6cl3z8qS+1Zj+wyKEQ7YaL+ TGPNCDBWRGjE390Mk1ex2p/tfheVmSxWL/8h6UEHwbtNDcAFay7Q8KuU= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6638:140c:b0:47e:b7a7:f4fe with SMTP id k12-20020a056638140c00b0047eb7a7f4femr293369jad.1.1711904968372; Sun, 31 Mar 2024 10:09:28 -0700 (PDT) Date: Sun, 31 Mar 2024 10:09:28 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000877f3c0614f7efa4@google.com> Subject: [syzbot] [virtualization?] bpf-next boot error: WARNING: refcount bug in __free_pages_ok From: syzbot To: ast@kernel.org, daniel@iogearbox.net, jasowang@redhat.com, linux-kernel@vger.kernel.org, mst@redhat.com, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com, virtualization@lists.linux.dev, xuanzhuo@linux.alibaba.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: 623bdd58be37 selftests/bpf: make multi-uprobe tests work i.. git tree: bpf-next console output: https://syzkaller.appspot.com/x/log.txt?x=1224bd41180000 kernel config: https://syzkaller.appspot.com/x/.config?x=7b667bc37450fdcd dashboard link: https://syzkaller.appspot.com/bug?extid=1f345d82b7f611cbcc66 compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/26db68ddb08d/disk-623bdd58.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/53a312cd3825/vmlinux-623bdd58.xz kernel image: https://storage.googleapis.com/syzbot-assets/65571cb0c1db/bzImage-623bdd58.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+1f345d82b7f611cbcc66@syzkaller.appspotmail.com Key type pkcs7_test registered Block layer SCSI generic (bsg) driver version 0.4 loaded (major 239) io scheduler mq-deadline registered io scheduler kyber registered io scheduler bfq registered input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0 ACPI: button: Power Button [PWRF] input: Sleep Button as /devices/LNXSYSTM:00/LNXSLPBN:00/input/input1 ACPI: button: Sleep Button [SLPF] ioatdma: Intel(R) QuickData Technology Driver 5.00 ACPI: \_SB_.LNKC: Enabled at IRQ 11 virtio-pci 0000:00:03.0: virtio_pci: leaving for legacy driver ACPI: \_SB_.LNKD: Enabled at IRQ 10 virtio-pci 0000:00:04.0: virtio_pci: leaving for legacy driver ACPI: \_SB_.LNKB: Enabled at IRQ 10 virtio-pci 0000:00:06.0: virtio_pci: leaving for legacy driver virtio-pci 0000:00:07.0: virtio_pci: leaving for legacy driver N_HDLC line discipline registered with maxframe=4096 Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled 00:03: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A 00:04: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A 00:05: ttyS2 at I/O 0x3e8 (irq = 6, base_baud = 115200) is a 16550A 00:06: ttyS3 at I/O 0x2e8 (irq = 7, base_baud = 115200) is a 16550A Non-volatile memory driver v1.3 Linux agpgart interface v0.103 ACPI: bus type drm_connector registered [drm] Initialized vgem 1.0.0 20120112 for vgem on minor 0 [drm] Initialized vkms 1.0.0 20180514 for vkms on minor 1 Console: switching to colour frame buffer device 128x48 platform vkms: [drm] fb0: vkmsdrmfb frame buffer device usbcore: registered new interface driver udl brd: module loaded loop: module loaded zram: Added device: zram0 null_blk: disk nullb0 created null_blk: module loaded Guest personality initialized and is inactive VMCI host device registered (name=vmci, major=10, minor=118) Initialized host personality usbcore: registered new interface driver rtsx_usb usbcore: registered new interface driver viperboard usbcore: registered new interface driver dln2 usbcore: registered new interface driver pn533_usb nfcsim 0.2 initialized usbcore: registered new interface driver port100 usbcore: registered new interface driver nfcmrvl Loading iSCSI transport class v2.0-870. virtio_scsi virtio0: 1/0/0 default/read/poll queues ------------[ cut here ]------------ refcount_t: decrement hit 0; leaking memory. WARNING: CPU: 0 PID: 1 at lib/refcount.c:31 refcount_warn_saturate+0xfa/0x1d0 lib/refcount.c:31 Modules linked in: CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.9.0-rc1-syzkaller-00263-g623bdd58be37 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:refcount_warn_saturate+0xfa/0x1d0 lib/refcount.c:31 Code: b2 00 00 00 e8 97 bb e9 fc 5b 5d c3 cc cc cc cc e8 8b bb e9 fc c6 05 ae 64 e8 0a 01 90 48 c7 c7 e0 33 1f 8c e8 c7 57 ac fc 90 <0f> 0b 90 90 eb d9 e8 6b bb e9 fc c6 05 8b 64 e8 0a 01 90 48 c7 c7 RSP: 0000:ffffc90000066e18 EFLAGS: 00010246 RAX: ff83834d70b85b00 RBX: ffff888140b3571c RCX: ffff8880166d0000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000004 R08: ffffffff815800a2 R09: fffffbfff1c396e0 R10: dffffc0000000000 R11: fffffbfff1c396e0 R12: ffffea000084bdc0 R13: ffffea000084bdc8 R14: 1ffffd40001097b9 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffff88823ffff000 CR3: 000000000e132000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1141 [inline] __free_pages_ok+0xc60/0xd90 mm/page_alloc.c:1270 make_alloc_exact+0xa3/0xf0 mm/page_alloc.c:4829 vring_alloc_queue drivers/virtio/virtio_ring.c:319 [inline] vring_alloc_queue_split+0x20a/0x600 drivers/virtio/virtio_ring.c:1108 vring_create_virtqueue_split+0xc6/0x310 drivers/virtio/virtio_ring.c:1158 vring_create_virtqueue+0xca/0x110 drivers/virtio/virtio_ring.c:2683 setup_vq+0xe9/0x2d0 drivers/virtio/virtio_pci_legacy.c:131 vp_setup_vq+0xbf/0x330 drivers/virtio/virtio_pci_common.c:189 vp_find_vqs_msix+0x8b2/0xc80 drivers/virtio/virtio_pci_common.c:331 vp_find_vqs+0x4c/0x4e0 drivers/virtio/virtio_pci_common.c:408 virtio_find_vqs include/linux/virtio_config.h:233 [inline] virtscsi_init+0x8db/0xd00 drivers/scsi/virtio_scsi.c:887 virtscsi_probe+0x3ea/0xf60 drivers/scsi/virtio_scsi.c:945 virtio_dev_probe+0x991/0xaf0 drivers/virtio/virtio.c:311 really_probe+0x2b8/0xad0 drivers/base/dd.c:656 __driver_probe_device+0x1a2/0x390 drivers/base/dd.c:798 driver_probe_device+0x50/0x430 drivers/base/dd.c:828 __driver_attach+0x45f/0x710 drivers/base/dd.c:1214 bus_for_each_dev+0x239/0x2b0 drivers/base/bus.c:368 bus_add_driver+0x347/0x620 drivers/base/bus.c:673 driver_register+0x23a/0x320 drivers/base/driver.c:246 virtio_scsi_init+0x65/0xe0 drivers/scsi/virtio_scsi.c:1083 do_one_initcall+0x248/0x880 init/main.c:1238 do_initcall_level+0x157/0x210 init/main.c:1300 do_initcalls+0x3f/0x80 init/main.c:1316 kernel_init_freeable+0x435/0x5d0 init/main.c:1548 kernel_init+0x1d/0x2b0 init/main.c:1437 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:243 --- 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 report is already addressed, let syzbot know by replying with: #syz fix: exact-commit-title If you want to overwrite report's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the report is a duplicate of another one, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup