From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f197.google.com (mail-il1-f197.google.com [209.85.166.197]) (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 783F21F80A0 for ; Tue, 15 Oct 2024 19:09:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729019368; cv=none; b=OErTNlR+wkQqNOyquQAHuHU31pgwpNFqnv0HRke5uAuawGf/cMD0mxn2PYLuSeOW4LHRZNdmJpMsK48+h9zMtxHLY5dCvHYDl6SrK4t7B6yAWAzVZFJdcWG6+Pwypwvly8VHYOuOSclvn/FvF6Ru+eZb49VFLi2RizfKy4DzDaM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729019368; c=relaxed/simple; bh=u1uAwktf6kk8nVT1WwQn5qWjduf1jXs8aWE0d1BVCG4=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=Y/3oMSNPzTryaEAdGT5ZiuMfu+PBytZca4LafakMThxD2jOm6TGm/hF7HUs+Z2ch7cHzNGYqABX2ATrdJU0SC006G+ji31SSvViwDHreUmRv+cvvoyJr8nM6cPOZq8+h0OhA8AOrCkaEmRLy8YDwrHHiUet9G3uC/Uhl+P7G+j8= 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.197 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-il1-f197.google.com with SMTP id e9e14a558f8ab-3a3466d220dso54553795ab.3 for ; Tue, 15 Oct 2024 12:09:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729019365; x=1729624165; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ITeBmiKPxke1DH9sYqgNIlVHlUNkQ0WHvvDjCpx3+Bc=; b=TjDbaO3tAxFQmtkuPWmHvHPN4VC6Tpbj6wi7IWTnYYZhNB+/Uzsa00qI110ICD8qFT Uw/JQaI630W4pwgH700hB/NjiS6gJHKesWrjWS1Cf65cgp+L8CUSmRWDJWQpG7KL5nB1 RsJTghXru4DmTQwOdE5SyOwBmq40dFv+zsGMVej1dZ38PKj+xq6ULofBD7+RJBZfrfql fvkq1bVC3IxQOfxby19zNTi1efRkKvuCffhiOOb0hMpTvQIkaUJpuzjMb524Bbf435ud J1dpDMO6yFwFhWkYcgILHBG17afh6IBdRLzwbjP9S3lQgc5w4OmS7h9TvX6+i3YSXdAo C5+w== X-Forwarded-Encrypted: i=1; AJvYcCUKbujciPCHo2HMU08Y5PpvrihqSRpapVLEIy1ewp769l61YsTmOibSH34HE5Vl/zBDjSIcjKfNb2Gogbo=@vger.kernel.org X-Gm-Message-State: AOJu0YyNUdcQnUDYhtk5F3gzZ0qVhk7WDiLqWPHc3wh3HNHWNAaz3g/6 fvxV3eOqE41NKmHWaj57ypNvYRKSxWapePvmeJgupwFKM+UU7BvIUOD3/c8Wqx690HF/OwSMKaT /+nkOwfwfVVAY7ZR4VQvCoPml9d6D80S/vkj5O1fe4xAZcmEbzP1d5sc= X-Google-Smtp-Source: AGHT+IGpa/p4mxM4VBJEqmkiVGZ8cJWslOWsSMrxRUbbSmaJdDs5orv+v+JB1Enu97wMr+0RJBPRjJkwpL520np+r35DT4O/0bZ6 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:188e:b0:3a3:afa3:5155 with SMTP id e9e14a558f8ab-3a3b6050e70mr145590025ab.25.1729019365547; Tue, 15 Oct 2024 12:09:25 -0700 (PDT) Date: Tue, 15 Oct 2024 12:09:25 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <670ebde5.050a0220.d9b66.0154.GAE@google.com> Subject: [syzbot] [iommu?] kernel BUG in dma_alloc_attrs From: syzbot To: hch@lst.de, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, m.szyprowski@samsung.com, robin.murphy@arm.com, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: 1d227fcc7222 Merge tag 'net-6.12-rc3' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=12c56f07980000 kernel config: https://syzkaller.appspot.com/x/.config?x=7cd9e7e4a8a0a15b dashboard link: https://syzkaller.appspot.com/bug?extid=b4bfacdec173efaa8567 compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14572840580000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12572840580000 Downloadable assets: disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/7feb34a89c2a/non_bootable_disk-1d227fcc.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/ea82465646ea/vmlinux-1d227fcc.xz kernel image: https://storage.googleapis.com/syzbot-assets/f764dd6d008a/bzImage-1d227fcc.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+b4bfacdec173efaa8567@syzkaller.appspotmail.com ------------[ cut here ]------------ kernel BUG at arch/x86/mm/physaddr.c:28! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5114 Comm: syz-executor411 Not tainted 6.12.0-rc2-syzkaller-00205-g1d227fcc7222 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:__phys_addr+0x162/0x170 arch/x86/mm/physaddr.c:28 Code: e8 23 e8 51 00 48 c7 c7 c0 86 7a 8e 4c 89 f6 4c 89 fa e8 f1 98 b1 03 e9 45 ff ff ff e8 07 e8 51 00 90 0f 0b e8 ff e7 51 00 90 <0f> 0b e8 f7 e7 51 00 90 0f 0b 0f 1f 40 00 90 90 90 90 90 90 90 90 RSP: 0018:ffffc90002d4f4c0 EFLAGS: 00010293 RAX: ffffffff8142ff51 RBX: 0000000000000001 RCX: ffff88800023a440 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc90002d4f5e8 R08: ffffffff8142fe9c R09: 312e64313a30303a R10: dffffc0000000000 R11: fffff91ffff86755 R12: ffffe8ffffc33a60 R13: dffffc0000000000 R14: 000040800b111000 R15: 000000000000002e FS: 0000555576947380(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffabc3020f0 CR3: 000000004020a000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: virt_to_phys arch/x86/include/asm/io.h:131 [inline] perf_trace_dma_alloc+0x3dd/0x620 include/trace/events/dma.h:117 trace_dma_alloc include/trace/events/dma.h:117 [inline] dma_alloc_attrs+0x46c/0x4e0 kernel/dma/mapping.c:622 usbdev_mmap+0x247/0x900 drivers/usb/core/devio.c:251 call_mmap include/linux/fs.h:2172 [inline] mmap_region+0x1add/0x2990 mm/mmap.c:1440 do_mmap+0x8f0/0x1000 mm/mmap.c:496 vm_mmap_pgoff+0x1dd/0x3d0 mm/util.c:588 ksys_mmap_pgoff+0x4eb/0x720 mm/mmap.c:542 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ffabc28b979 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 c1 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffd4658b118 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007ffabc28b979 RDX: 0000000001000002 RSI: 0000000000400000 RDI: 0000000020000000 RBP: 00007ffabc2fe5f0 R08: 0000000000000004 R09: 0000000000000000 R10: 0000000000011012 R11: 0000000000000246 R12: 0000000000000001 R13: 431bde82d7b634db R14: 0000000000000001 R15: 0000000000000001 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__phys_addr+0x162/0x170 arch/x86/mm/physaddr.c:28 Code: e8 23 e8 51 00 48 c7 c7 c0 86 7a 8e 4c 89 f6 4c 89 fa e8 f1 98 b1 03 e9 45 ff ff ff e8 07 e8 51 00 90 0f 0b e8 ff e7 51 00 90 <0f> 0b e8 f7 e7 51 00 90 0f 0b 0f 1f 40 00 90 90 90 90 90 90 90 90 RSP: 0018:ffffc90002d4f4c0 EFLAGS: 00010293 RAX: ffffffff8142ff51 RBX: 0000000000000001 RCX: ffff88800023a440 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc90002d4f5e8 R08: ffffffff8142fe9c R09: 312e64313a30303a R10: dffffc0000000000 R11: fffff91ffff86755 R12: ffffe8ffffc33a60 R13: dffffc0000000000 R14: 000040800b111000 R15: 000000000000002e FS: 0000555576947380(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffabc3020f0 CR3: 000000004020a000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 --- 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 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 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