syzbot


WARNING in rds_rdma_extra_size

Status: fixed on 2021/03/10 01:48
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+1bd2b07f93745fa38425@syzkaller.appspotmail.com
Fix commit: a11148e6fcce net/rds: restrict iovecs length for RDS_CMSG_RDMA_ARGS
First crash: 1260d, last: 1231d
Cause bisection: introduced by (bisect log) :
commit fdadd04931c2d7cd294dc5b2b342863f94be53a3
Author: Daniel Borkmann <daniel@iogearbox.net>
Date: Tue Dec 11 11:14:12 2018 +0000

  bpf: fix bpf_jit_limit knob for PAGE_SIZE >= 64K

Crash: KASAN: use-after-free Read in batadv_iv_ogm_queue_add (log)
Repro: C syz .config
  
Duplicate bugs (1)
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
WARNING in kmalloc_array rds 1 1248d 1246d 0/27 closed as dup on 2021/01/26 12:43
Discussions (5)
Title Replies (including bot) Last reply
[PATCH 4.19 00/50] 4.19.177-rc1 review 56 (56) 2021/02/23 21:17
[PATCH 5.10 000/104] 5.10.17-rc1 review 121 (121) 2021/02/19 21:26
[PATCH 5.4 00/60] 5.4.99-rc1 review 65 (65) 2021/02/17 01:12
[PATCH] net/rds: restrict iovecs length for RDS_CMSG_RDMA_ARGS 3 (3) 2021/02/02 16:50
WARNING in rds_rdma_extra_size 0 (1) 2021/01/09 20:57
Last patch testing requests (1)
Created Duration User Patch Repo Result
2021/02/01 20:15 15m snovitoll@gmail.com https://linux.googlesource.com/linux/kernel/git/torvalds/linux refs/changes/76/7976/1 OK

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 8462 at mm/page_alloc.c:4976 __alloc_pages_nodemask+0x5f8/0x730 mm/page_alloc.c:5011
Modules linked in:
CPU: 1 PID: 8462 Comm: syz-executor292 Not tainted 5.11.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__alloc_pages_nodemask+0x5f8/0x730 mm/page_alloc.c:4976
Code: 00 00 0c 00 0f 85 a7 00 00 00 8b 3c 24 4c 89 f2 44 89 e6 c6 44 24 70 00 48 89 6c 24 58 e8 d0 d7 ff ff 49 89 c5 e9 ea fc ff ff <0f> 0b e9 b5 fd ff ff 89 74 24 14 4c 89 4c 24 08 4c 89 74 24 18 e8
RSP: 0018:ffffc9000169f790 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 1ffff920002d3ef6 RCX: 0000000000000000
RDX: 0000000000000000 RSI: dffffc0000000000 RDI: 0000000000040dc0
RBP: 0000000000040dc0 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff81b1f7f1 R11: 0000000000000000 R12: 0000000000000018
R13: 0000000000000018 R14: 0000000000000000 R15: 0000000ffffff1f0
FS:  0000000000f3c880(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6b332916c0 CR3: 00000000133c3000 CR4: 0000000000350ee0
Call Trace:
 alloc_pages_current+0x18c/0x2a0 mm/mempolicy.c:2267
 alloc_pages include/linux/gfp.h:547 [inline]
 kmalloc_order+0x2e/0xb0 mm/slab_common.c:837
 kmalloc_order_trace+0x14/0x120 mm/slab_common.c:853
 kmalloc_array include/linux/slab.h:592 [inline]
 kcalloc include/linux/slab.h:621 [inline]
 rds_rdma_extra_size+0xb2/0x3b0 net/rds/rdma.c:568
 rds_rm_size net/rds/send.c:928 [inline]
 rds_sendmsg+0x20d7/0x3020 net/rds/send.c:1265
 sock_sendmsg_nosec net/socket.c:652 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:672
 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2345
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2399
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2432
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x440359
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 7b 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffe89376b68 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440359
RDX: 0000000000000000 RSI: 0000000020001600 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401b60
R13: 0000000000401bf0 R14: 0000000000000000 R15: 0000000000000000

Crashes (165):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/01/06 07:58 upstream 6207214a70bf b1c228e1 .config console log report syz C ci-upstream-kasan-gce-root
2021/01/06 08:43 net-old f6e7a024bfe5 b1c228e1 .config console log report syz C ci-upstream-net-this-kasan-gce
2021/01/06 08:23 net-old f6e7a024bfe5 b1c228e1 .config console log report syz C ci-upstream-net-this-kasan-gce
2021/01/06 09:08 net-next-old f6e7a024bfe5 b1c228e1 .config console log report syz C ci-upstream-net-kasan-gce
2021/01/06 07:43 net-next-old f6e7a024bfe5 b1c228e1 .config console log report syz C ci-upstream-net-kasan-gce
2021/01/22 17:11 upstream 9f29bd8b2e71 d4f4eca5 .config console log report info ci-upstream-kasan-gce WARNING in rds_rdma_extra_size
2021/01/17 16:27 upstream 0da0a8a0a0e1 813be542 .config console log report info ci-upstream-kasan-gce-root WARNING in rds_rdma_extra_size
2021/02/02 00:04 upstream 1048ba83fb1c e6b95f32 .config console log report info ci-upstream-kasan-gce-386 WARNING in rds_rdma_extra_size
2021/02/01 09:13 upstream 1048ba83fb1c fc9fd31e .config console log report info ci-upstream-kasan-gce-386 WARNING in rds_rdma_extra_size
2021/02/01 09:05 upstream 1048ba83fb1c fc9fd31e .config console log report info ci-upstream-kasan-gce-386 WARNING in rds_rdma_extra_size
2021/02/01 07:34 upstream 1048ba83fb1c fc9fd31e .config console log report info ci-qemu-upstream-386 WARNING in rds_rdma_extra_size
2021/01/31 07:40 upstream 8c947645151c fc9fd31e .config console log report info ci-upstream-kasan-gce-386 WARNING in rds_rdma_extra_size
2021/01/30 20:37 upstream 0e9bcda5d286 fc9fd31e .config console log report info ci-upstream-kasan-gce-386 WARNING in rds_rdma_extra_size
2021/01/30 18:45 upstream 0e9bcda5d286 fc9fd31e .config console log report info ci-upstream-kasan-gce-386 WARNING in rds_rdma_extra_size
2021/01/30 17:34 upstream 0e9bcda5d286 fc9fd31e .config console log report info ci-upstream-kasan-gce-386 WARNING in rds_rdma_extra_size
2021/01/30 08:51 upstream 0e9bcda5d286 fc9fd31e .config console log report info ci-upstream-kasan-gce-386 WARNING in rds_rdma_extra_size
2021/01/29 07:26 upstream e5ff2cb9cf67 7df34f59 .config console log report info ci-upstream-kasan-gce-386 WARNING in rds_rdma_extra_size
2021/01/27 19:32 upstream 2ab38c17aac1 a0ebf917 .config console log report info ci-upstream-kasan-gce-386 WARNING in rds_rdma_extra_size
2021/01/27 05:06 upstream 13391c60da33 55a7d4df .config console log report info ci-upstream-kasan-gce-386 WARNING in rds_rdma_extra_size
2021/01/26 23:56 upstream 13391c60da33 55a7d4df .config console log report info ci-upstream-kasan-gce-386 WARNING in rds_rdma_extra_size
2021/01/26 20:29 upstream 13391c60da33 55a7d4df .config console log report info ci-upstream-kasan-gce-386 WARNING in rds_rdma_extra_size
2021/01/24 14:09 upstream e1ae4b0be158 52e37319 .config console log report info ci-upstream-kasan-gce-386 WARNING in rds_rdma_extra_size
2021/01/24 07:04 upstream e1ae4b0be158 52e37319 .config console log report info ci-upstream-kasan-gce-386 WARNING in rds_rdma_extra_size
2021/01/23 01:44 upstream 83d09ad4b950 4080af96 .config console log report info ci-upstream-kasan-gce-386 WARNING in rds_rdma_extra_size
2021/01/22 23:18 upstream 83d09ad4b950 4080af96 .config console log report info ci-upstream-kasan-gce-386 WARNING in rds_rdma_extra_size
2021/01/21 21:56 upstream 9791581c049c d4f4eca5 .config console log report info ci-upstream-kasan-gce-386 WARNING in rds_rdma_extra_size
2021/01/21 09:54 upstream 75439bc439e0 d4f4eca5 .config console log report info ci-upstream-kasan-gce-386 WARNING in rds_rdma_extra_size
2021/01/21 07:56 upstream 75439bc439e0 d4f4eca5 .config console log report info ci-upstream-kasan-gce-386 WARNING in rds_rdma_extra_size
2021/01/20 21:42 upstream 45dfb8a5659a d4f4eca5 .config console log report info ci-upstream-kasan-gce-386 WARNING in rds_rdma_extra_size
2021/01/20 15:05 upstream 45dfb8a5659a d4f4eca5 .config console log report info ci-upstream-kasan-gce-386 WARNING in rds_rdma_extra_size
2021/01/19 22:50 upstream 1e2a199f6ccd 63631df1 .config console log report info ci-upstream-kasan-gce-386 WARNING in rds_rdma_extra_size
2021/01/19 07:18 upstream 1e2a199f6ccd 63631df1 .config console log report info ci-upstream-kasan-gce-386 WARNING in rds_rdma_extra_size
2021/01/19 06:50 upstream 1e2a199f6ccd 63631df1 .config console log report info ci-upstream-kasan-gce-386 WARNING in rds_rdma_extra_size
2021/01/31 22:11 net-old eb4e8fac00d1 fc9fd31e .config console log report info ci-upstream-net-this-kasan-gce WARNING in rds_rdma_extra_size
2021/01/23 10:04 net-old 0607a2cddb60 52e37319 .config console log report info ci-upstream-net-this-kasan-gce WARNING in rds_rdma_extra_size
2021/01/23 05:31 net-old 35c715c30b95 4080af96 .config console log report info ci-upstream-net-this-kasan-gce WARNING in rds_rdma_extra_size
2021/02/03 02:23 net-next-old 9ae4bdc6e4c1 624dad51 .config console log report info ci-upstream-net-kasan-gce WARNING in rds_rdma_extra_size
2021/01/30 07:20 net-next-old 46eb3c108fe1 fc9fd31e .config console log report info ci-upstream-net-kasan-gce WARNING in rds_rdma_extra_size
2021/01/26 19:19 net-next-old 02c26940908f 55a7d4df .config console log report info ci-upstream-net-kasan-gce WARNING in rds_rdma_extra_size
2021/01/26 08:28 net-next-old 24f97b6af9a0 52e37319 .config console log report info ci-upstream-net-kasan-gce WARNING in rds_rdma_extra_size
2021/01/23 03:32 net-next-old 43e5763152e2 4080af96 .config console log report info ci-upstream-net-kasan-gce WARNING in rds_rdma_extra_size
2021/01/23 01:34 net-next-old 43e5763152e2 4080af96 .config console log report info ci-upstream-net-kasan-gce WARNING in rds_rdma_extra_size
2021/01/19 01:37 net-next-old 220723dc3bcf 63631df1 .config console log report info ci-upstream-net-kasan-gce WARNING in rds_rdma_extra_size
2021/01/18 07:17 net-next-old 213b97b12580 fd103621 .config console log report info ci-upstream-net-kasan-gce WARNING in rds_rdma_extra_size
2021/02/01 12:28 linux-next b01f250d83f6 fc9fd31e .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in rds_rdma_extra_size
2021/01/16 15:09 upstream 1d94330a437a 65a7a854 .config console log report info ci-upstream-kasan-gce
2021/01/15 05:29 upstream 146620506274 65a7a854 .config console log report info ci-upstream-kasan-gce
2021/01/14 14:28 upstream 65f0d2414b70 269d24e8 .config console log report info ci-upstream-kasan-gce
2021/01/17 05:15 upstream 0da0a8a0a0e1 65a7a854 .config console log report info ci-upstream-kasan-gce-386
2021/01/17 05:03 upstream 0da0a8a0a0e1 65a7a854 .config console log report info ci-upstream-kasan-gce-386
2021/01/16 22:37 upstream 1d94330a437a 65a7a854 .config console log report info ci-upstream-kasan-gce-386
2021/01/15 14:02 upstream 146620506274 65a7a854 .config console log report info ci-upstream-kasan-gce-386
2021/01/15 00:22 upstream 65f0d2414b70 65a7a854 .config console log report info ci-upstream-kasan-gce-386
2021/01/14 19:37 upstream 65f0d2414b70 65a7a854 .config console log report info ci-upstream-kasan-gce-386
2021/01/13 22:54 upstream e609571b5ffa a945f0a3 .config console log report info ci-upstream-kasan-gce-386
2021/01/05 20:53 upstream 36bbbd0e234d a0234d98 .config console log report info ci-upstream-kasan-gce-386
2021/01/15 21:23 net-old 146620506274 65a7a854 .config console log report info ci-upstream-net-this-kasan-gce
2021/01/07 17:27 linux-next 2d3811a4fb23 c104d4a3 .config console log report info ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.