From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f77.google.com (mail-io1-f77.google.com [209.85.166.77]) (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 856CE142645 for ; Tue, 4 Jun 2024 19:56:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.77 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717530993; cv=none; b=qW0gWK3GPqVH4WbKLeB3sjEIql/L+ZvybOE71Na9kzP7pQ8u4ekE0Np1UdBA8FNVZd7NR2PV4FY1ISp8O4RPx6ywm29Krop1vGfibyod1xIzLhXTzlLK6KX+fvZ2wFTTOA32/NsGqaxeq+yR3TYcS9LM6Zelo3pP6ISCP9w5PvY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717530993; c=relaxed/simple; bh=YyYMJycG6NI6SoENpYVniOrsA2QupZ0Q368+W2n9HK4=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=sCJZYAZHe39SFnJdjbB3ecisW2klGUSdHX/NdZPheEXIRAgl9VgNvdv5UgJCb1mqb07mewRB9+4coSrS2FOCRGh37Xk6+I+rJz/urvC2BDNUupf0tR2jnxOjte/MaPu3LSmCMoWfN/7bwrUhNP8vHShSneR4FuOFxNRnxYdnkAM= 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.77 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-f77.google.com with SMTP id ca18e2360f4ac-7e91ad684e4so165013939f.2 for ; Tue, 04 Jun 2024 12:56:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717530990; x=1718135790; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=pIolj0LpEhW/WcCjBKxCJow6wzyZoKm2DMw6PlTaauw=; b=TX+QJnMDCx/bqKXqCYrWTUwU2OreF7Kib9A6rAAOhyeLfImfM4q8OgD45A+KJfWk2W ZFfVXHMX55RnG/ccAwSNniR6njYQ0LOeu1Rmmvdb84ILu/9J1aD4L5/EAmWrCVa7g98M fiY5/kM0RgW5ip61Yx/RmCtzdJZ4E2ws06DmXaUJE7hApHW/UGnEz+kFm3Zcl1aIO4FW SkPNHAYtfDEz84ZsY/EQf9ztcIEn5gFo3SARZ2IHoSdWJz4IusqhNaekUSEGZdKtpahU 1nBq6jZNfSK4Zk7WUglYc6R7h5C6KA//Xi1ybTwcehhjz0T1ZhLxzjA3P2llN7vUfBlr Xmtg== X-Forwarded-Encrypted: i=1; AJvYcCXQ1ImenjzeLDQEVrU/RijMou6AjEz95mjCt+cXDQf+mb7BLS+n9rmEiJ+hcu7Svki4j56CHKbSJYIynJ6mluLKodlwH77naM7TBwcK X-Gm-Message-State: AOJu0YyRe7+n8Ldv73i0V8LAVBjJPohr/7jMYBE4v3OUxhKQ1Clp7eLo k6ksnCAQfzo8sdG8Z8h35glvO9VoycKieXk8myAyk8vnxEau0PwsQYIMOWVmxVw77WiK6Z+Newm uMhSaEEbvmQQnfe4U/RFzXJrUcqWA/tntgcKs/8cdH6I7zXAXmWpiVQI= X-Google-Smtp-Source: AGHT+IHWFeJxM3i341hjN4LF5TdAFLLfKolxzY9xMIE2j0U52oFs8A2iF/r6yIhVOsQknFpaG5ss6BD50/cbhpMUXhu2H5S+PWlR 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:6e02:1fe3:b0:36d:b5df:f478 with SMTP id e9e14a558f8ab-374b1f6586amr100415ab.4.1717530989806; Tue, 04 Jun 2024 12:56:29 -0700 (PDT) Date: Tue, 04 Jun 2024 12:56:29 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000089d850061a15d886@google.com> Subject: [syzbot] [wireguard?] WARNING: locking bug in wg_packet_decrypt_worker From: syzbot To: Jason@zx2c4.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, pabeni@redhat.com, syzkaller-bugs@googlegroups.com, wireguard@lists.zx2c4.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: 83814698cf48 Merge tag 'powerpc-6.10-2' of git://git.kerne.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16746d3a980000 kernel config: https://syzkaller.appspot.com/x/.config?x=733cc7a95171d8e7 dashboard link: https://syzkaller.appspot.com/bug?extid=9f1d21c20c7306ca9417 compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 userspace arch: i386 Unfortunately, I don't have any reproducer for this issue yet. Downloadable assets: disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/7bc7510fe41f/non_bootable_disk-83814698.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/7042fdcb685d/vmlinux-83814698.xz kernel image: https://storage.googleapis.com/syzbot-assets/9f795e13834f/bzImage-83814698.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+9f1d21c20c7306ca9417@syzkaller.appspotmail.com ------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(1) WARNING: CPU: 0 PID: 10 at kernel/locking/lockdep.c:232 hlock_class kernel/locking/lockdep.c:232 [inline] WARNING: CPU: 0 PID: 10 at kernel/locking/lockdep.c:232 hlock_class+0xfa/0x130 kernel/locking/lockdep.c:221 Modules linked in: CPU: 0 PID: 10 Comm: kworker/0:1 Not tainted 6.10.0-rc1-syzkaller-00304-g83814698cf48 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 Workqueue: wg-crypt-wg0 wg_packet_decrypt_worker RIP: 0010:hlock_class kernel/locking/lockdep.c:232 [inline] RIP: 0010:hlock_class+0xfa/0x130 kernel/locking/lockdep.c:221 Code: b6 14 11 38 d0 7c 04 84 d2 75 43 8b 05 b3 39 77 0e 85 c0 75 19 90 48 c7 c6 00 bd 2c 8b 48 c7 c7 a0 b7 2c 8b e8 97 47 e5 ff 90 <0f> 0b 90 90 90 31 c0 eb 9e e8 88 f7 7f 00 e9 1c ff ff ff 48 c7 c7 RSP: 0018:ffffc900003c7a00 EFLAGS: 00010082 RAX: 0000000000000000 RBX: 0000000000000f2b RCX: ffffffff81510229 RDX: ffff888015f38000 RSI: ffffffff81510236 RDI: 0000000000000001 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 000000002d2d2d2d R12: 0000000000000000 R13: 0000000000000000 R14: ffff888015f38b30 R15: 0000000000000f2b FS: 0000000000000000(0000) GS:ffff88802c000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000f743fb94 CR3: 000000005ff86000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: check_wait_context kernel/locking/lockdep.c:4773 [inline] __lock_acquire+0x3f2/0x3b30 kernel/locking/lockdep.c:5087 lock_acquire kernel/locking/lockdep.c:5754 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5719 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x33/0x40 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:356 [inline] ptr_ring_consume_bh include/linux/ptr_ring.h:365 [inline] wg_packet_decrypt_worker+0x2aa/0x530 drivers/net/wireguard/receive.c:499 process_one_work+0x958/0x1ad0 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf70 kernel/workqueue.c:3393 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 --- 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