syzbot


WARNING in dma_map_page_attrs

Status: fixed on 2020/11/16 12:12
Subsystems: iommu
[Documentation on labels]
Reported-by: syzbot+34dc2fea3478e659af01@syzkaller.appspotmail.com
Fix commit: 683a9c7ed817 RDMA: Fix software RDMA drivers for dma mapping error
First crash: 1372d, last: 1351d
Cause bisection: introduced by (bisect log) [merge commit]:
commit a1e16bc7d5f7ca3599d8a7f061841c93a563665e
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Sat Oct 17 18:18:18 2020 +0000

  Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma

Crash: WARNING in dma_map_page_attrs (log)
Repro: C syz .config
  
Discussions (2)
Title Replies (including bot) Last reply
WARNING in dma_map_page_attrs 7 (9) 2020/10/30 09:35
Re: [PATCH] RDMA: Fix software RDMA drivers for dma mapping error 1 (1) 2020/10/28 08:03

Sample crash report:
netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0
netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0
netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0
infiniband syz2: set active
infiniband syz2: added macvlan0
------------[ cut here ]------------
WARNING: CPU: 1 PID: 8488 at kernel/dma/mapping.c:149 dma_map_page_attrs+0x493/0x700 kernel/dma/mapping.c:149
Modules linked in:
CPU: 1 PID: 8488 Comm: syz-executor144 Not tainted 5.9.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:dma_map_page_attrs+0x493/0x700 kernel/dma/mapping.c:149
Code: 80 3c 10 00 0f 85 ed 01 00 00 48 8b 1d 86 38 e9 0c e9 2d fc ff ff 48 89 c3 e9 d1 fd ff ff e8 04 11 12 00 0f 0b e8 fd 10 12 00 <0f> 0b 49 c7 c4 ff ff ff ff e9 d5 fd ff ff e8 ea 10 12 00 48 8d 7b
RSP: 0018:ffffc90000fdec68 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffffffff894d1060 RCX: ffffffff815df1e3
RDX: ffff8880208c1a40 RSI: ffffffff815df5b3 RDI: ffff8880196f8b00
RBP: ffff88801412d800 R08: 0000000000000002 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000000 R12: ffffea0000504b40
R13: ffff8880196f86e8 R14: 00000000000008b8 R15: 0000000000000002
FS:  0000000001b26880(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200002c0 CR3: 0000000022446000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 dma_map_single_attrs include/linux/dma-mapping.h:279 [inline]
 ib_dma_map_single include/rdma/ib_verbs.h:3967 [inline]
 ib_mad_post_receive_mads+0x23f/0xd60 drivers/infiniband/core/mad.c:2715
 ib_mad_port_start drivers/infiniband/core/mad.c:2862 [inline]
 ib_mad_port_open drivers/infiniband/core/mad.c:3016 [inline]
 ib_mad_init_device+0x72b/0x1400 drivers/infiniband/core/mad.c:3092
 add_client_context+0x405/0x5e0 drivers/infiniband/core/device.c:680
 enable_device_and_get+0x1d5/0x3c0 drivers/infiniband/core/device.c:1301
 ib_register_device drivers/infiniband/core/device.c:1376 [inline]
 ib_register_device+0x7a7/0xa40 drivers/infiniband/core/device.c:1335
 rxe_register_device+0x46d/0x570 drivers/infiniband/sw/rxe/rxe_verbs.c:1182
 rxe_add+0x12fe/0x16d0 drivers/infiniband/sw/rxe/rxe.c:247
 rxe_net_add+0x8c/0xe0 drivers/infiniband/sw/rxe/rxe_net.c:507
 rxe_newlink drivers/infiniband/sw/rxe/rxe.c:269 [inline]
 rxe_newlink+0xb7/0xe0 drivers/infiniband/sw/rxe/rxe.c:250
 nldev_newlink+0x30e/0x540 drivers/infiniband/core/nldev.c:1555
 rdma_nl_rcv_msg+0x367/0x690 drivers/infiniband/core/netlink.c:195
 rdma_nl_rcv_skb drivers/infiniband/core/netlink.c:239 [inline]
 rdma_nl_rcv+0x2f2/0x440 drivers/infiniband/core/netlink.c:259
 netlink_unicast_kernel net/netlink/af_netlink.c:1304 [inline]
 netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1330
 netlink_sendmsg+0x856/0xd90 net/netlink/af_netlink.c:1919
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:671
 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2353
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2407
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2440
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x443699
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 0f 83 db 0d fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffc067db418 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000443699
RDX: 0000000000000000 RSI: 00000000200002c0 RDI: 0000000000000003
RBP: 00007ffc067db420 R08: 0000000001bbbbbb R09: 0000000001bbbbbb
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffc067db430
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000

Crashes (304):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/10/24 03:06 net-old 3cb12d27ff65 2bb6666c .config console log report syz C ci-upstream-net-this-kasan-gce
2020/10/24 03:44 net-next-old 3cb12d27ff65 2bb6666c .config console log report syz C ci-upstream-net-kasan-gce
2020/11/05 17:11 upstream 4ef8451b3326 64069d48 .config console log report info ci-upstream-kasan-gce-smack-root
2020/11/05 09:41 upstream 4ef8451b3326 64069d48 .config console log report info ci-upstream-kasan-gce-smack-root
2020/11/04 15:39 upstream 4ef8451b3326 cba33199 .config console log report info ci-upstream-kasan-gce-smack-root
2020/11/04 14:18 upstream 4ef8451b3326 cba33199 .config console log report info ci-upstream-kasan-gce-root
2020/11/04 13:00 upstream 4ef8451b3326 cba33199 .config console log report info ci-upstream-kasan-gce-smack-root
2020/11/03 18:56 upstream b7cbaf59f62f cba33199 .config console log report info ci-upstream-kasan-gce-root
2020/11/03 13:12 upstream 495023e4e49e cba33199 .config console log report info ci-upstream-kasan-gce-smack-root
2020/11/03 02:02 upstream 495023e4e49e cba33199 .config console log report info ci-upstream-kasan-gce-smack-root
2020/11/01 06:23 upstream bb3540be73ca 8bc4594f .config console log report info ci-upstream-kasan-gce-smack-root
2020/10/30 07:54 upstream 07e088730245 a0c7169a .config console log report info ci-upstream-kasan-gce-selinux-root
2020/10/27 18:08 upstream 4525c8781ec0 94942294 .config console log report info ci-qemu-upstream
2020/10/21 18:49 upstream c4d6fe731176 99c64d5c .config console log report info ci-qemu-upstream
2020/10/17 19:01 upstream a1e16bc7d5f7 fea47c01 .config console log report info ci-upstream-kasan-gce-smack-root
2020/11/04 03:51 upstream ce2e33ba4163 cba33199 .config console log report info ci-qemu-upstream-386
2020/11/06 20:18 net-old 2bcbf42add91 64069d48 .config console log report info ci-upstream-net-this-kasan-gce
2020/11/04 15:27 net-old fea07a487c6d cba33199 .config console log report info ci-upstream-net-this-kasan-gce
2020/11/04 07:54 net-old fea07a487c6d cba33199 .config console log report info ci-upstream-net-this-kasan-gce
2020/11/03 21:40 net-old 9621618130bf cba33199 .config console log report info ci-upstream-net-this-kasan-gce
2020/11/03 04:15 net-old 04a55c944f15 cba33199 .config console log report info ci-upstream-net-this-kasan-gce
2020/11/03 03:03 net-old 04a55c944f15 cba33199 .config console log report info ci-upstream-net-this-kasan-gce
2020/11/01 09:25 net-old 2f71e00619dc 8bc4594f .config console log report info ci-upstream-net-this-kasan-gce
2020/11/07 12:15 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 11:14 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 09:54 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 08:22 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/07 05:31 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/06 22:38 net-next-old 3b4202a4706d 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/06 10:14 net-next-old c9448e828d11 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/06 03:28 net-next-old b65ca4c38875 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/06 01:58 net-next-old b65ca4c38875 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/05 23:16 net-next-old b65ca4c38875 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/05 14:53 net-next-old b65ca4c38875 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/04 22:51 net-next-old 3fb6928b56f6 64069d48 .config console log report info ci-upstream-net-kasan-gce
2020/11/04 18:35 net-next-old 3fb6928b56f6 cba33199 .config console log report info ci-upstream-net-kasan-gce
2020/11/04 06:35 net-next-old 3fb6928b56f6 cba33199 .config console log report info ci-upstream-net-kasan-gce
2020/11/04 05:06 net-next-old 6d89076e6ef0 cba33199 .config console log report info ci-upstream-net-kasan-gce
2020/11/04 00:27 net-next-old 6d89076e6ef0 cba33199 .config console log report info ci-upstream-net-kasan-gce
2020/11/03 20:32 net-next-old 6d89076e6ef0 cba33199 .config console log report info ci-upstream-net-kasan-gce
2020/11/03 11:58 net-next-old 760b3d61fb4e cba33199 .config console log report info ci-upstream-net-kasan-gce
2020/11/03 10:07 net-next-old 760b3d61fb4e cba33199 .config console log report info ci-upstream-net-kasan-gce
2020/11/02 23:16 net-next-old c43fd36f7fec 8bc4594f .config console log report info ci-upstream-net-kasan-gce
2020/11/02 18:42 net-next-old c43fd36f7fec 8bc4594f .config console log report info ci-upstream-net-kasan-gce
2020/11/01 07:56 net-next-old c43fd36f7fec 8bc4594f .config console log report info ci-upstream-net-kasan-gce
2020/10/31 23:10 net-next-old 68bb4665a2ce 8bc4594f .config console log report info ci-upstream-net-kasan-gce
2020/10/31 17:45 net-next-old 68bb4665a2ce 8bc4594f .config console log report info ci-upstream-net-kasan-gce
2020/10/31 09:36 net-next-old 1fb74191988f 18e33098 .config console log report info ci-upstream-net-kasan-gce
2020/11/02 17:08 linux-next b49976d8ef64 8bc4594f .config console log report info ci-upstream-linux-next-kasan-gce-root
2020/11/02 09:51 linux-next b49976d8ef64 8bc4594f .config console log report info ci-upstream-linux-next-kasan-gce-root
2020/11/02 08:00 linux-next b49976d8ef64 8bc4594f .config console log report info ci-upstream-linux-next-kasan-gce-root
2020/11/01 15:50 linux-next 4e78c578cb98 8bc4594f .config console log report info ci-upstream-linux-next-kasan-gce-root
2020/11/01 13:53 linux-next 4e78c578cb98 8bc4594f .config console log report info ci-upstream-linux-next-kasan-gce-root
2020/10/31 14:06 linux-next 4e78c578cb98 8bc4594f .config console log report info ci-upstream-linux-next-kasan-gce-root
2020/10/31 13:23 linux-next 4e78c578cb98 8bc4594f .config console log report info ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.