syzbot


WARNING in tcindex_alloc_perfect_hash

Status: fixed on 2021/11/10 00:50
Reported-by: syzbot+1071ad60cd7df39fdadb@syzkaller.appspotmail.com
Fix commit: 3f2db250099f net: sched: fix warning in tcindex_alloc_perfect_hash
First crash: 760d, last: 582d

Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: WARNING in sysfs_warn_dup (log)
Repro: C syz .config
Last patch testing requests:
Created Duration User Patch Repo Result
2021/06/25 20:03 15m paskripkin@gmail.com patch upstream OK

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 8430 at mm/page_alloc.c:5191 current_gfp_context include/linux/sched/mm.h:166 [inline]
WARNING: CPU: 1 PID: 8430 at mm/page_alloc.c:5191 __alloc_pages+0x434/0x500 mm/page_alloc.c:5203
Modules linked in:
CPU: 1 PID: 8430 Comm: syz-executor229 Not tainted 5.13.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__alloc_pages+0x434/0x500 mm/page_alloc.c:5191
Code: 89 ef 89 6c 24 48 c6 44 24 78 00 4c 89 74 24 60 e8 a1 da ff ff 49 89 c5 e9 97 fd ff ff 0f 0b e9 c9 fd ff ff 40 80 e5 3f eb be <0f> 0b e9 41 ff ff ff 4c 89 ef 44 89 e6 45 31 ed e8 f7 81 ff ff e9
RSP: 0018:ffffc9000162ee48 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 1ffff920002c5dca RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 000000000000001b RDI: 0000000000040dc0
RBP: 0000000000000000 R08: 00000000ffffffff R09: 0000000000000000
R10: ffffffff81b836a1 R11: 0000000000000000 R12: ffffffff9079a9e0
R13: 000000000000001b R14: 0000000000000000 R15: ffff888034198000
FS:  000000000164e300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000280 CR3: 000000002ce96000 CR4: 0000000000350ee0
Call Trace:
 alloc_pages+0x18c/0x2a0 mm/mempolicy.c:2272
 kmalloc_order+0x34/0xf0 mm/slab_common.c:923
 kmalloc_order_trace+0x14/0x120 mm/slab_common.c:939
 kmalloc_array include/linux/slab.h:596 [inline]
 kcalloc include/linux/slab.h:625 [inline]
 tcindex_alloc_perfect_hash+0x57/0x440 net/sched/cls_tcindex.c:306
 tcindex_set_parms+0x1dc2/0x2440 net/sched/cls_tcindex.c:437
 tcindex_change+0x212/0x320 net/sched/cls_tcindex.c:550
 tc_new_tfilter+0xa06/0x21c0 net/sched/cls_api.c:2128
 rtnetlink_rcv_msg+0x80e/0xad0 net/core/rtnetlink.c:5557
 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2504
 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline]
 netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1340
 netlink_sendmsg+0x85b/0xda0 net/netlink/af_netlink.c:1929
 sock_sendmsg_nosec net/socket.c:654 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:674
 ____sys_sendmsg+0x331/0x810 net/socket.c:2337
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2391
 __sys_sendmmsg+0x195/0x470 net/socket.c:2477
 __do_sys_sendmmsg net/socket.c:2506 [inline]
 __se_sys_sendmmsg net/socket.c:2503 [inline]
 __x64_sys_sendmmsg+0x99/0x100 net/socket.c:2503
 do_syscall_64+0x31/0xb0 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x43f929
Code: 28 c3 e8 1a 15 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:00007ffd10b67b28 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 00000000004ab090 RCX: 000000000043f929
RDX: 04924924924926d3 RSI: 0000000020000200 RDI: 0000000000000004
RBP: 00007ffd10b67b38 R08: 00000000004ab000 R09: 00000000004ab000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffd10b67b40
R13: 0000000000000000 R14: 00000000004ae018 R15: 0000000000400488

Crashes (349):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce-root 2021/06/30 01:42 upstream c54b245d0118 a4fccb01 .config console log report syz C WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-this-kasan-gce 2021/01/06 03:08 net f6e7a024bfe5 b1c228e1 .config console log report syz C
ci-upstream-net-kasan-gce 2021/01/05 17:02 net-next 3db1a3fa9880 a0234d98 .config console log report syz C
ci-upstream-kasan-gce 2021/06/25 08:13 upstream 4a09d388f2ab 0edbbe31 .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-kasan-gce-smack-root 2021/06/23 16:58 upstream 0c18f29aae7c aba2b2fb .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-kasan-gce-smack-root 2021/06/19 23:04 upstream 9ed13a17e38e aba2b2fb .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-kasan-gce-root 2021/06/19 20:59 upstream 9ed13a17e38e aba2b2fb .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-kasan-gce-smack-root 2021/06/19 03:07 upstream b1edae0d5f2e aba2b2fb .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-kasan-gce 2021/06/13 06:14 upstream 8ecfa36cd4db 1ba81399 .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-kasan-gce-smack-root 2021/06/11 13:15 upstream 06af8679449d 1ba81399 .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-kasan-gce-smack-root 2021/06/11 03:12 upstream f09eacca59d2 1ba81399 .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-kasan-gce 2021/06/08 15:18 upstream 614124bea77e b718257f .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-kasan-gce-root 2021/06/06 03:02 upstream e5220dd16778 500c2339 .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-kasan-gce-386 2021/06/23 09:42 upstream 0c18f29aae7c aba2b2fb .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-this-kasan-gce 2021/06/27 22:51 net d6765985a42a 9d2ab5df .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-this-kasan-gce 2021/06/27 20:44 net d6765985a42a 9d2ab5df .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-this-kasan-gce 2021/06/27 00:51 net d6765985a42a 9d2ab5df .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-this-kasan-gce 2021/06/26 10:56 net d6765985a42a 9d2ab5df .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-this-kasan-gce 2021/06/24 17:49 net c2f5c57d99de ec865f6a .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-this-kasan-gce 2021/06/22 12:41 net 89837eb4b246 aba2b2fb .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-this-kasan-gce 2021/06/22 01:42 net 89837eb4b246 aba2b2fb .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-this-kasan-gce 2021/06/21 23:47 net 89837eb4b246 aba2b2fb .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-this-kasan-gce 2021/06/19 19:11 net 9ed13a17e38e aba2b2fb .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-this-kasan-gce 2021/06/18 14:42 net 1c200f832e14 aba2b2fb .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-this-kasan-gce 2021/06/14 16:40 net f4cdcae03f9c 1ba81399 .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-this-kasan-gce 2021/06/13 19:29 net f4cdcae03f9c 1ba81399 .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-this-kasan-gce 2021/06/12 15:22 net f4cdcae03f9c 1ba81399 .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-this-kasan-gce 2021/06/11 23:58 net 232e3683b4ee 1ba81399 .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-this-kasan-gce 2021/06/11 19:27 net 232e3683b4ee 1ba81399 .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-this-kasan-gce 2021/06/09 05:54 net 7a6b1ab7475f 5c2fe346 .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-this-kasan-gce 2021/06/07 13:32 net 3822d0670c9d e59537be .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-this-kasan-gce 2021/06/07 00:59 net 3822d0670c9d 500c2339 .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-this-kasan-gce 2021/06/06 05:23 net 3822d0670c9d 500c2339 .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-this-kasan-gce 2021/06/05 22:41 net 3822d0670c9d 500c2339 .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-this-kasan-gce 2021/06/05 19:03 net 3822d0670c9d 500c2339 .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-kasan-gce 2021/06/29 09:37 net-next 8eb517a2a4ae 9d2ab5df .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-kasan-gce 2021/06/28 08:34 net-next ff8744b5eb11 9d2ab5df .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-kasan-gce 2021/06/28 04:30 net-next ff8744b5eb11 9d2ab5df .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-kasan-gce 2021/06/23 04:50 net-next 38f75922a690 aba2b2fb .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-kasan-gce 2021/06/21 10:49 net-next adc2e56ebe63 aba2b2fb .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-kasan-gce 2021/06/20 23:05 net-next adc2e56ebe63 aba2b2fb .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-kasan-gce 2021/06/20 19:44 net-next adc2e56ebe63 aba2b2fb .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-kasan-gce 2021/06/20 00:49 net-next adc2e56ebe63 aba2b2fb .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-kasan-gce 2021/06/19 18:11 net-next 4bea7207a80c aba2b2fb .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-kasan-gce 2021/06/14 15:20 net-next a212d9f33ed0 1ba81399 .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-kasan-gce 2021/06/13 09:35 net-next 02b0bb51a8da 1ba81399 .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-kasan-gce 2021/06/13 04:14 net-next 02b0bb51a8da 1ba81399 .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-kasan-gce 2021/06/11 07:13 net-next 0699073951e3 1ba81399 .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-kasan-gce 2021/06/06 21:28 net-next 1a42624aecba 500c2339 .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-kasan-gce 2021/06/06 13:44 net-next 1a42624aecba 500c2339 .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-kasan-gce 2021/06/06 01:33 net-next 1a42624aecba 500c2339 .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-kasan-gce 2021/06/05 10:08 net-next 1a42624aecba 500c2339 .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-linux-next-kasan-gce-root 2021/07/03 09:31 linux-next a1f92694393a 55aa55c2 .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-linux-next-kasan-gce-root 2021/07/02 13:04 linux-next a1f92694393a 658ebc66 .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-linux-next-kasan-gce-root 2021/06/25 07:04 linux-next a1f92694393a 0edbbe31 .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-linux-next-kasan-gce-root 2021/06/24 01:19 linux-next a1f92694393a fe4ab389 .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-linux-next-kasan-gce-root 2021/06/13 23:34 linux-next a1f92694393a 1ba81399 .config console log report info WARNING in tcindex_alloc_perfect_hash
ci-upstream-net-kasan-gce 2021/01/16 02:59 net-next e7fa5c80defe 65a7a854 .config console log report info
ci-upstream-net-kasan-gce 2021/01/05 16:24 net-next 3db1a3fa9880 a0234d98 .config console log report info
* Struck through repros no longer work on HEAD.