From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f78.google.com (mail-io1-f78.google.com [209.85.166.78]) (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 76EB8224B0C for ; Thu, 3 Apr 2025 10:30:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.78 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743676223; cv=none; b=C/eyzPC3nbasovigOZYF8cShDuRSVF5qfKXnc8RKhf4v4F8LT/6Ifv7PA7usoduhenAQQVykAo6Gca7hgqh/NET6QzOP5cW7D3fDsbDplvfJMLZdxxJdXsuy9kXn2+OOHAZgTzNj2MNmkvkAUbB4Q3wbM6PqL94e99B3aHaww8w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743676223; c=relaxed/simple; bh=37M2rtxTJbXQJ2B0Gql/IcfbdrVx1TbGQ/36ZH/uwlc=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=ldb5HasWKuRs2VDM1hZrXQPCbT3JI3/P9ZK0t9Qgp5QTlKXWttY7rV9PGSS7hDK6BkU8u+jWryn9byn1ySFH9EITEbRHuRqMNeJCeX/m8u1yAXgzkA71e+3XHhT28vMTWImOPyvU5Q46gwqS6Rv9nji46L6ORGvmPiE0BOQj0mg= 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.78 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-f78.google.com with SMTP id ca18e2360f4ac-85e7e0413c2so70101139f.3 for ; Thu, 03 Apr 2025 03:30:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743676220; x=1744281020; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bRpi09zYZnS9uCZV++cTM/cY/TkS5sKFguLqV0olHPA=; b=sniaSvSEHqE3sZkgAv1wztHtfDH0CgGH9Fy0p4SfTODuNQppHd6KNqyV9zN8Wudf7K TVs1kEtHcZC19DhpHyw7idht0rVRhCivSRx6fAAaNBF9a1wmUXNdRD8WShmp9/caZIzO i8KiZNeTlKeWHukGEbW9gR428XATNxN1Rt57SaS4srw/YfsHA2qirQ93jdsD/nNFUqbO bqL74CTBlyy411UiJZu10M3FafEHZOj6ejazV5wmYce/ktJ6nswr1SQrX5FmvbLlNudk 540Q6q/sXXZRIFHKk1c+0lk9JjpLrcaZsV2brmHwtiiTMlSZlYSfYxoSR0aycP6GnBmA GYeg== X-Forwarded-Encrypted: i=1; AJvYcCWM19ArSX9JTbJi5KrX5nEIIQq0YUn/KYSnKi1MJYz20FwySdgk1RUJtuBxcQ+R3twGsctZJWOHRCMXBAtbWKs=@vger.kernel.org X-Gm-Message-State: AOJu0YzrIx3OVNT89DSI1LL906n2dCE+Y//Hdy/hqJKyxNXOkqi5f7DH HOIlQ1/5QkcYj3lxuMJLa5+mJYlX9TZ46SgkEnZy7hpew2OCbIm+Oy9cvT0wt8doo+WTXArL6Cb 3s1fNSJ7aw+RoMS9mJrcYB/Jff6QU9TlNp8H8VbUf5ZSSNmPQNKSv+o0= X-Google-Smtp-Source: AGHT+IGRAaPPeq9C0XWc+HHe3N/4vwB2yQpoJvQs3Lf1Larfk1oiZXmMsWt3a43q2mE5JKLefQK97UKC6SFb44uoCX1sg4l+vmIw Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:152d:b0:3d3:f64a:38b9 with SMTP id e9e14a558f8ab-3d5e09e4828mr219022275ab.15.1743676220563; Thu, 03 Apr 2025 03:30:20 -0700 (PDT) Date: Thu, 03 Apr 2025 03:30:20 -0700 In-Reply-To: <67eaa688.050a0220.1547ec.014a.GAE@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <67ee633c.050a0220.9040b.0187.GAE@google.com> Subject: Re: [syzbot] [bluetooth?] KASAN: vmalloc-out-of-bounds Read in hci_devcd_dump From: syzbot To: johan.hedberg@gmail.com, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, luiz.dentz@gmail.com, marcel@holtmann.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" syzbot has found a reproducer for the following issue on: HEAD commit: a1b5bd45d4ee Merge tag 'usb-6.15-rc1' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1709494c580000 kernel config: https://syzkaller.appspot.com/x/.config?x=44bfe55da7676adc dashboard link: https://syzkaller.appspot.com/bug?extid=ac3c79181f6aecc5120c compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13e60be4580000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10c5cfb0580000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/9096ac93f836/disk-a1b5bd45.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/83a88633dd9d/vmlinux-a1b5bd45.xz kernel image: https://storage.googleapis.com/syzbot-assets/7353859863a8/bzImage-a1b5bd45.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+ac3c79181f6aecc5120c@syzkaller.appspotmail.com ================================================================== BUG: KASAN: vmalloc-out-of-bounds in skb_put_data include/linux/skbuff.h:2752 [inline] BUG: KASAN: vmalloc-out-of-bounds in hci_devcd_dump+0x142/0x240 net/bluetooth/coredump.c:258 Read of size 140 at addr ffffc90000ace000 by task kworker/u9:1/5151 CPU: 0 UID: 0 PID: 5151 Comm: kworker/u9:1 Not tainted 6.14.0-syzkaller-12886-ga1b5bd45d4ee #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Workqueue: hci0 hci_devcd_timeout Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:408 [inline] print_report+0xc3/0x670 mm/kasan/report.c:521 kasan_report+0xe0/0x110 mm/kasan/report.c:634 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0xef/0x1a0 mm/kasan/generic.c:189 __asan_memcpy+0x23/0x60 mm/kasan/shadow.c:105 skb_put_data include/linux/skbuff.h:2752 [inline] hci_devcd_dump+0x142/0x240 net/bluetooth/coredump.c:258 hci_devcd_timeout+0xb5/0x2e0 net/bluetooth/coredump.c:413 process_one_work+0x9cc/0x1b70 kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3400 kthread+0x3c2/0x780 kernel/kthread.c:464 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address ffffc90000ace000 belongs to a vmalloc virtual mapping Memory state around the buggy address: ffffc90000acdf00: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffc90000acdf80: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 >ffffc90000ace000: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ^ ffffc90000ace080: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffc90000ace100: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ================================================================== --- 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.