syzbot


WARNING in idr_alloc

Status: fixed on 2020/09/16 22:51
Subsystems: arm-msm net
[Documentation on labels]
Reported-by: syzbot+f31428628ef672716ea8@syzkaller.appspotmail.com
Fix commit: 8dfddfb79653 net: qrtr: fix usage of idr in port assignment to socket
First crash: 1610d, last: 1535d
Cause bisection: introduced by (bisect log) :
commit e42671084361302141a09284fde9bbc14fdd16bf
Author: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Date: Thu May 7 12:53:06 2020 +0000

  net: qrtr: Do not depend on ARCH_QCOM

Crash: WARNING in idr_alloc (log)
Repro: C syz .config
  
Discussions (8)
Title Replies (including bot) Last reply
[PATCH 4.19 000/125] 4.19.143-rc1 review 147 (147) 2020/10/26 00:54
[PATCH 5.4 000/214] 5.4.62-rc1 review 219 (219) 2020/09/02 07:24
[PATCH 5.7 00/15] 5.7.19-rc1 review 20 (20) 2020/08/27 08:09
[PATCH 5.8 00/16] 5.8.5-rc1 review 20 (20) 2020/08/27 07:59
[PATCH v3] net: qrtr: fix usage of idr in port assignment to socket 2 (2) 2020/08/17 22:01
[PATCH v2] net: qrtr: fix usage of idr in port assignment to socket 2 (2) 2020/08/17 15:29
[PATCH] net: qrtr: fix usage of idr in port assignment to socket 3 (3) 2020/08/16 15:36
WARNING in idr_alloc 0 (2) 2020/07/02 13:39

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 6800 at lib/idr.c:84 idr_alloc+0x1dd/0x260 lib/idr.c:84
Kernel panic - not syncing: panic_on_warn set ...
CPU: 1 PID: 6800 Comm: syz-executor484 Not tainted 5.8.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1f0/0x31e lib/dump_stack.c:118
 panic+0x264/0x7a0 kernel/panic.c:231
 __warn+0x227/0x250 kernel/panic.c:600
 report_bug+0x1b1/0x2e0 lib/bug.c:198
 handle_bug+0x42/0x80 arch/x86/kernel/traps.c:235
 exc_invalid_op+0x16/0x40 arch/x86/kernel/traps.c:255
 asm_exc_invalid_op+0x12/0x20 arch/x86/include/asm/idtentry.h:542
RIP: 0010:idr_alloc+0x1dd/0x260 lib/idr.c:84
Code: 65 48 8b 04 25 28 00 00 00 48 3b 44 24 30 0f 85 93 00 00 00 89 e8 48 83 c4 38 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 d3 e8 b9 fd <0f> 0b bd ea ff ff ff eb cd e8 c5 e8 b9 fd 0f 0b 48 b8 00 00 00 00
RSP: 0018:ffffc90001667d58 EFLAGS: 00010293
RAX: ffffffff83baa5ed RBX: 00000000ffffe000 RCX: ffff88809e34a2c0
RDX: 0000000000000000 RSI: 00000000ffffe000 RDI: 0000000000000000
RBP: 00000000ffffe001 R08: ffffffff83baa447 R09: fffffbfff130dcea
R10: fffffbfff130dcea R11: 0000000000000000 R12: ffffc90001667e50
R13: ffffffff8986e6f0 R14: ffff8880a9590040 R15: 0000000000000a20
 qrtr_port_assign net/qrtr/qrtr.c:709 [inline]
 __qrtr_bind+0x1bd/0x6a0 net/qrtr/qrtr.c:762
 qrtr_bind+0x115/0x1a0 net/qrtr/qrtr.c:811
 __sys_bind+0x283/0x360 net/socket.c:1657
 __do_sys_bind net/socket.c:1668 [inline]
 __se_sys_bind net/socket.c:1666 [inline]
 __x64_sys_bind+0x76/0x80 net/socket.c:1666
 do_syscall_64+0x73/0xe0 arch/x86/entry/common.c:384
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x440229
Code: Bad RIP value.
RSP: 002b:00007ffc393bd9a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000031
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440229
RDX: 000000000000000c RSI: 0000000020001380 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 0000000000000000 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a30
R13: 0000000000401ac0 R14: 0000000000000000 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (65):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/07/17 05:43 upstream f8456690ba8e 54b3c45e .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/07/17 05:08 upstream f8456690ba8e 54b3c45e .config console log report syz C ci-upstream-kasan-gce-selinux-root
2020/07/17 02:04 upstream f8456690ba8e 54b3c45e .config console log report syz C ci-upstream-kasan-gce-root
2020/06/25 03:33 upstream 7ae77150d94d 54566aff .config console log report syz C ci-upstream-kasan-gce-selinux-root
2020/06/25 03:29 upstream 7ae77150d94d 54566aff .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/06/25 03:21 upstream 7ae77150d94d 54566aff .config console log report syz C ci-upstream-kasan-gce-root
2020/06/25 03:20 upstream 7ae77150d94d 54566aff .config console log report syz C ci-upstream-kasan-gce-selinux-root
2020/06/25 03:10 upstream 7ae77150d94d 54566aff .config console log report syz C ci-upstream-kasan-gce-root
2020/07/16 12:41 net-old 841eb4012cef f3bec699 .config console log report syz C ci-upstream-net-this-kasan-gce
2020/06/25 03:08 net-old b835a71ef64a 54566aff .config console log report syz C ci-upstream-net-this-kasan-gce
2020/06/25 02:50 net-old b835a71ef64a 54566aff .config console log report syz C ci-upstream-net-this-kasan-gce
2020/07/16 12:22 net-next-old 8635764bcf0f f3bec699 .config console log report syz C ci-upstream-net-kasan-gce
2020/06/25 02:51 net-next-old cb8e59cc8720 54566aff .config console log report syz C ci-upstream-net-kasan-gce
2020/07/16 19:49 linux-next 4c43049f19a2 f3bec699 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2020/06/25 03:27 linux-next e7b08814b16b 54566aff .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2020/06/25 03:10 linux-next e7b08814b16b 54566aff .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2020/09/07 13:16 upstream fffe3ae0ee84 abf9ba4f .config console log report ci-qemu-upstream
2020/09/03 09:30 upstream fffe3ae0ee84 abf9ba4f .config console log report ci-qemu-upstream
2020/08/10 11:15 upstream 9420f1ce0186 70301872 .config console log report ci-upstream-kasan-gce-selinux-root
2020/08/09 02:30 upstream 449dc8c97089 f721e4a0 .config console log report ci-upstream-kasan-gce-smack-root
2020/08/04 21:07 upstream c0842fbc1b18 80a06902 .config console log report ci-upstream-kasan-gce-smack-root
2020/08/03 16:30 upstream 5a30a78924ec 196277c4 .config console log report ci-upstream-kasan-gce-selinux-root
2020/08/02 18:45 upstream ac3a0c847296 63a73341 .config console log report ci-upstream-kasan-gce-root
2020/08/01 21:55 upstream 7dc6fd0f3b84 d895b3be .config console log report ci-upstream-kasan-gce-root
2020/07/26 17:30 upstream 04300d66f0a0 51265195 .config console log report ci-upstream-kasan-gce-smack-root
2020/07/16 16:39 upstream 994e99a96c9b f3bec699 .config console log report ci-upstream-kasan-gce-smack-root
2020/07/12 15:56 upstream 0aea6d5c5be3 115e1930 .config console log report ci-upstream-kasan-gce-root
2020/07/09 17:28 upstream 0bddd227f3dc bc238812 .config console log report ci-upstream-kasan-gce-smack-root
2020/07/08 15:51 upstream 7cc2a8ea1048 51095195 .config console log report ci-upstream-kasan-gce-smack-root
2020/07/06 01:10 upstream 7cc2a8ea1048 51095195 .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/05 10:16 upstream 7cc2a8ea1048 51095195 .config console log report ci-upstream-kasan-gce-root
2020/07/05 06:56 upstream 7cc2a8ea1048 51095195 .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/03 10:02 upstream cd77006e01b3 bed10395 .config console log report ci-upstream-kasan-gce-smack-root
2020/07/03 09:49 upstream cd77006e01b3 bed10395 .config console log report ci-upstream-kasan-gce-selinux-root
2020/06/27 22:27 upstream 1590a2e1c681 ffec44b5 .config console log report ci-upstream-kasan-gce-root
2020/06/25 15:38 upstream 7ae77150d94d 54566aff .config console log report ci-upstream-kasan-gce-root
2020/08/15 06:06 net-old 7fca4dee610d 424dd8e7 .config console log report ci-upstream-net-this-kasan-gce
2020/07/16 05:39 net-old 1d61e21852d3 f3bec699 .config console log report ci-upstream-net-this-kasan-gce
2020/07/06 01:18 net-old 1ca0fafd73c5 51095195 .config console log report ci-upstream-net-this-kasan-gce
2020/07/03 06:08 net-old e4b9a72d76a4 bed10395 .config console log report ci-upstream-net-this-kasan-gce
2020/06/26 18:44 net-old f4926d513b4c aea82c00 .config console log report ci-upstream-net-this-kasan-gce
2020/06/25 02:39 net-old b835a71ef64a 54566aff .config console log report ci-upstream-net-this-kasan-gce
2020/08/17 16:35 net-next-old 7fca4dee610d 424dd8e7 .config console log report ci-upstream-net-kasan-gce
2020/08/16 19:47 net-next-old 7fca4dee610d 424dd8e7 .config console log report ci-upstream-net-kasan-gce
2020/08/07 14:51 net-next-old bfdd5aaa54b0 cb436c69 .config console log report ci-upstream-net-kasan-gce
2020/07/22 14:25 net-next-old fa56a987449b 128cd85f .config console log report ci-upstream-net-kasan-gce
2020/07/21 10:35 net-next-old 4f1b4da541db d88894e6 .config console log report ci-upstream-net-kasan-gce
2020/07/20 09:45 net-next-old 7dce80c2a526 9c812472 .config console log report ci-upstream-net-kasan-gce
2020/07/16 17:03 net-next-old 8635764bcf0f f3bec699 .config console log report ci-upstream-net-kasan-gce
2020/07/11 07:57 net-next-old a594920f8747 18d18b59 .config console log report ci-upstream-net-kasan-gce
2020/07/07 17:19 net-next-old e44f65fd666c 51095195 .config console log report ci-upstream-net-kasan-gce
2020/07/06 01:18 net-next-old e44f65fd666c 51095195 .config console log report ci-upstream-net-kasan-gce
2020/07/05 06:54 net-next-old e44f65fd666c 51095195 .config console log report ci-upstream-net-kasan-gce
2020/06/30 17:38 net-next-old b08866f42a87 a2cdad9d .config console log report ci-upstream-net-kasan-gce
2020/06/29 10:16 net-next-old b08866f42a87 a2cdad9d .config console log report ci-upstream-net-kasan-gce
2020/06/28 02:34 net-next-old 7bed14551659 ffec44b5 .config console log report ci-upstream-net-kasan-gce
2020/06/25 02:39 net-next-old cb8e59cc8720 54566aff .config console log report ci-upstream-net-kasan-gce
2020/07/16 19:47 linux-next 4c43049f19a2 f3bec699 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/07/11 06:21 linux-next d31958b30ea3 18d18b59 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/07/06 01:14 linux-next 9e50b94b3eb0 51095195 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/07/03 10:19 linux-next aab2003999e7 bed10395 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/06/29 06:35 linux-next 36e3135df4d4 a2cdad9d .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.