syzbot


WARNING in dma_map_sgtable (2)

Status: auto-obsoleted due to no activity on 2023/04/13 12:39
Subsystems: iommu
[Documentation on labels]
Reported-by: syzbot+3ba551855046ba3b3806@syzkaller.appspotmail.com
First crash: 918d, last: 832d
Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: WARNING in dma_map_sg_attrs (log)
Repro: C syz .config
  
Fix bisection: failed (error log, bisect log)
  
Discussions (3)
Title Replies (including bot) Last reply
Re: [syzbot] WARNING in dma_map_sgtable (2) 1 (1) 2022/06/01 07:04
Re: [syzbot] WARNING in dma_map_sgtable (2) 2 (2) 2022/05/31 05:45
[syzbot] WARNING in dma_map_sgtable (2) 0 (1) 2022/05/30 12:48
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in dma_map_sgtable iommu 1 1046d 1044d 0/28 auto-closed as invalid on 2022/05/18 15:55
Last patch testing requests (3)
Created Duration User Patch Repo Result
2023/04/13 12:11 25m retest repro upstream OK log
2022/11/28 11:30 17m retest repro upstream OK log
2022/05/30 14:45 16m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 7e062cda7d90 OK
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2022/10/12 17:50 8h00m (2) bisect fix upstream error job log
2022/07/24 20:11 22m bisect fix upstream OK (0) job log log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3611 at kernel/dma/mapping.c:188 dma_map_sgtable+0x203/0x260 kernel/dma/mapping.c:264
Modules linked in:
CPU: 0 PID: 3611 Comm: syz-executor162 Not tainted 5.19.0-rc3-syzkaller-00146-g92f20ff72066 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__dma_map_sg_attrs kernel/dma/mapping.c:188 [inline]
RIP: 0010:dma_map_sgtable+0x203/0x260 kernel/dma/mapping.c:264
Code: 75 15 e8 80 c1 14 00 eb cb e8 79 c1 14 00 eb c4 e8 72 c1 14 00 eb bd e8 6b c1 14 00 0f 0b bd fb ff ff ff eb af e8 5d c1 14 00 <0f> 0b 31 ed 48 bb 00 00 00 00 00 fc ff df e9 7b ff ff ff 89 e9 80
RSP: 0018:ffffc9000309fd40 EFLAGS: 00010293
RAX: ffffffff8172e693 RBX: dffffc0000000000 RCX: ffff888025708000
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000002
RBP: ffff88801ee77378 R08: ffffffff8172e563 R09: ffffed1002e76242
R10: ffffed1002e76242 R11: 1ffff11002e76240 R12: ffff88801ee77000
R13: ffff8880173b1200 R14: 0000000000000000 R15: 0000000000000002
FS:  00005555564e8300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000005d84c8 CR3: 0000000079b83000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 get_sg_table+0xf9/0x150 drivers/dma-buf/udmabuf.c:75
 begin_cpu_udmabuf+0xf5/0x160 drivers/dma-buf/udmabuf.c:129
 dma_buf_begin_cpu_access+0xd8/0x170 drivers/dma-buf/dma-buf.c:1186
 dma_buf_ioctl+0x2a0/0x2f0 drivers/dma-buf/dma-buf.c:364
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0
RIP: 0033:0x7fa38d087c29
Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 00 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe2dbf0c08 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fa38d087c29
RDX: 0000000020000200 RSI: 0000000040086200 RDI: 0000000000000006
RBP: 00007fa38d04bdd0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fa38d04be60
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/06/24 20:11 upstream 92f20ff72066 a5dbd430 .config strace log report syz C ci-upstream-kasan-gce-smack-root WARNING in dma_map_sgtable
2022/05/26 12:50 upstream 7e062cda7d90 3037caa9 .config strace log report syz C ci-upstream-kasan-gce-smack-root WARNING in dma_map_sgtable
2022/08/08 12:27 upstream 200e340f2196 88e3a122 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in dma_map_sgtable
2022/08/08 12:27 upstream 200e340f2196 88e3a122 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in dma_map_sgtable
2022/08/07 05:02 upstream 200e340f2196 88e3a122 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in dma_map_sgtable
2022/08/07 04:51 upstream 200e340f2196 88e3a122 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in dma_map_sgtable
2022/06/21 16:18 upstream 78ca55889a54 0fc5c330 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in dma_map_sgtable
2022/06/19 15:10 upstream 354c6e071be9 8f633d84 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in dma_map_sgtable
2022/06/05 14:12 upstream 952923ddc011 c8857892 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in dma_map_sgtable
2022/05/27 12:57 upstream 7e284070abe5 116e7a7b .config console log report info ci-upstream-kasan-gce-smack-root WARNING in dma_map_sgtable
2022/05/26 12:35 upstream 7e062cda7d90 3037caa9 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in dma_map_sgtable
2022/08/20 10:39 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 680fb5b009e8 26a13b38 .config console log report info ci-upstream-gce-arm64 WARNING in dma_map_sgtable
* Struck through repros no longer work on HEAD.