syzbot


WARNING: kmalloc bug in hash_net_create

Status: fixed on 2022/03/08 16:11
Subsystems: netfilter
[Documentation on labels]
Reported-by: syzbot+2b8443c35458a617c904@syzkaller.appspotmail.com
Fix commit: 7bbc3d385bd8 netfilter: ipset: Fix oversized kvmalloc() calls
First crash: 1136d, last: 1109d
Cause bisection: introduced by (bisect log) :
commit e6e7471706dc42cbe0e01278540c0730138d43e5
Author: Christoph Hellwig <hch@lst.de>
Date: Tue Jul 27 05:56:34 2021 +0000

  bvec: add a bvec_kmap_local helper

Crash: BUG: sleeping function called from invalid context in lock_sock_nested (log)
Repro: C syz .config
  
Duplicate bugs (9)
duplicates (9):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
WARNING: kmalloc bug in hash_netnet_create netfilter 2 1108d 1128d 0/28 closed as dup on 2021/09/15 05:09
WARNING: kmalloc bug in hash_ipmac_create netfilter C unreliable 5 1108d 1135d 0/28 closed as dup on 2021/09/15 05:16
WARNING: kmalloc bug in hash_ipportnet_create netfilter C unreliable 7 1111d 1135d 0/28 closed as dup on 2021/09/15 05:13
WARNING: kmalloc bug in hash_ipmark_create netfilter C unreliable 31 1108d 1135d 0/28 closed as dup on 2021/09/15 05:14
WARNING: kmalloc bug in hash_netiface_create netfilter 2 1126d 1135d 0/28 closed as dup on 2021/09/15 05:10
WARNING: kmalloc bug in hash_netport_create netfilter C done 3 1112d 1135d 0/28 closed as dup on 2021/09/15 05:14
WARNING: kmalloc bug in hash_netportnet_create netfilter C unreliable 8 1111d 1110d 0/28 closed as dup on 2021/09/30 00:37
WARNING: kmalloc bug in hash_ipportip_create netfilter C done 31 1111d 1126d 0/28 closed as dup on 2021/09/15 05:11
WARNING: kmalloc bug in hash_ipport_create netfilter C done 10 1114d 1130d 0/28 closed as dup on 2021/09/15 05:12
Discussions (11)
Title Replies (including bot) Last reply
[PATCH 4.14 00/75] 4.14.249-rc1 review 81 (81) 2021/10/07 16:21
[PATCH AUTOSEL 5.14 01/40] ext4: check and update i_disksize properly 44 (44) 2021/10/06 15:12
[PATCH 5.4 00/56] 5.4.151-rc1 review 62 (62) 2021/10/05 06:56
[PATCH 4.9 00/57] 4.9.285-rc1 review 62 (62) 2021/10/05 06:54
[PATCH 4.19 00/95] 4.19.209-rc1 review 103 (103) 2021/10/05 06:47
[PATCH 5.14 000/172] 5.14.10-rc1 review 184 (184) 2021/10/05 06:41
[PATCH 5.10 00/93] 5.10.71-rc1 review 100 (100) 2021/10/05 02:40
[PATCH 4.4 00/41] 4.4.286-rc1 review 45 (45) 2021/10/05 02:13
[PATCH net 00/15] Netfilter/IPVS fixes for net 17 (17) 2021/09/25 03:40
[PATCH 1/1] netfilter: ipset: Fix oversized kvmalloc() calls 2 (2) 2021/09/13 22:50
[syzbot] WARNING: kmalloc bug in hash_net_create 2 (4) 2021/09/06 16:20

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 8432 at mm/util.c:597 kvmalloc_node+0x111/0x120 mm/util.c:597
Modules linked in:
CPU: 0 PID: 8432 Comm: syz-executor044 Not tainted 5.14.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:kvmalloc_node+0x111/0x120 mm/util.c:597
Code: 01 00 00 00 4c 89 e7 e8 ed 11 0d 00 49 89 c5 e9 69 ff ff ff e8 90 55 d1 ff 41 89 ed 41 81 cd 00 20 01 00 eb 95 e8 7f 55 d1 ff <0f> 0b e9 4c ff ff ff 0f 1f 84 00 00 00 00 00 55 48 89 fd 53 e8 66
RSP: 0018:ffffc900018f7288 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffffc900018f73a0 RCX: 0000000000000000
RDX: ffff88803d6ca300 RSI: ffffffff81a3f651 RDI: 0000000000000003
RBP: 0000000000400dc0 R08: 000000007fffffff R09: 000000000000001f
R10: ffffffff81a3f60e R11: 000000000000001f R12: 0000000400000018
R13: 0000000000000000 R14: 00000000ffffffff R15: ffff88801743d000
FS:  0000000001d7c300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000046 CR3: 000000001e0d4000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 hash_net_create+0x3dd/0x1220 net/netfilter/ipset/ip_set_hash_gen.h:1524
 ip_set_create+0x782/0x15a0 net/netfilter/ipset/ip_set_core.c:1100
 nfnetlink_rcv_msg+0xbc9/0x13f0 net/netfilter/nfnetlink.c:296
 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2504
 nfnetlink_rcv+0x1ac/0x420 net/netfilter/nfnetlink.c:654
 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline]
 netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1340
 netlink_sendmsg+0x86d/0xdb0 net/netlink/af_netlink.c:1929
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:724
 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2409
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2463
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2492
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x43f039
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:00007ffc97697a28 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000400488 RCX: 000000000043f039
RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000000000003
RBP: 0000000000403020 R08: 0000000000000005 R09: 0000000000400488
R10: 0000000000000002 R11: 0000000000000246 R12: 00000000004030b0
R13: 0000000000000000 R14: 00000000004ac018 R15: 0000000000400488

Crashes (283):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/09/03 20:27 upstream a9c9a6f741cd f62a5829 .config console log report syz C ci-upstream-kasan-gce-selinux-root WARNING: kmalloc bug in hash_net_create
2021/09/03 20:25 upstream a9c9a6f741cd f62a5829 .config console log report syz C ci-upstream-kasan-gce-root WARNING: kmalloc bug in hash_net_create
2021/09/03 20:14 upstream a9c9a6f741cd f62a5829 .config console log report syz C ci-upstream-kasan-gce-smack-root WARNING: kmalloc bug in hash_net_create
2021/09/03 20:11 upstream a9c9a6f741cd f62a5829 .config console log report syz C ci-upstream-kasan-gce WARNING: kmalloc bug in hash_net_create
2021/09/30 17:51 upstream 02d5e016800d be530f6c .config console log report info ci-upstream-kasan-gce-root WARNING: kmalloc bug in hash_net_create
2021/09/30 16:29 upstream 02d5e016800d be530f6c .config console log report info ci-upstream-kasan-gce-selinux-root WARNING: kmalloc bug in hash_net_create
2021/09/30 13:03 upstream 02d5e016800d be530f6c .config console log report info ci-upstream-kasan-gce WARNING: kmalloc bug in hash_net_create
2021/09/30 03:41 upstream 02d5e016800d be530f6c .config console log report info ci-upstream-kasan-gce WARNING: kmalloc bug in hash_net_create
2021/09/30 02:43 upstream 02d5e016800d be530f6c .config console log report info ci-upstream-kasan-gce WARNING: kmalloc bug in hash_net_create
2021/09/29 21:01 upstream 02d5e016800d be530f6c .config console log report info ci-upstream-kasan-gce-selinux-root WARNING: kmalloc bug in hash_net_create
2021/09/29 03:55 upstream d33bec7b3dfa d82cb927 .config console log report info ci-upstream-kasan-gce-root WARNING: kmalloc bug in hash_net_create
2021/09/25 18:18 upstream 7d42e9818258 8cac236e .config console log report info ci-upstream-kasan-gce-smack-root WARNING: kmalloc bug in hash_net_create
2021/09/24 23:27 upstream 4c4f0c2bf341 8cac236e .config console log report info ci-upstream-kasan-gce-selinux-root WARNING: kmalloc bug in hash_net_create
2021/09/24 22:07 upstream 4c4f0c2bf341 8cac236e .config console log report info ci-upstream-kasan-gce WARNING: kmalloc bug in hash_net_create
2021/09/24 05:23 upstream f9e36107ec70 8cac236e .config console log report info ci-upstream-kasan-gce WARNING: kmalloc bug in hash_net_create
2021/09/22 23:40 upstream cf1d2c3e7e2f 8cac236e .config console log report info ci-upstream-kasan-gce-smack-root WARNING: kmalloc bug in hash_net_create
2021/09/22 21:19 upstream cf1d2c3e7e2f 8cac236e .config console log report info ci-upstream-kasan-gce WARNING: kmalloc bug in hash_net_create
2021/09/22 11:53 upstream 92477dd1faa6 169724fe .config console log report info ci-upstream-kasan-gce-smack-root WARNING: kmalloc bug in hash_net_create
2021/09/22 07:46 upstream 92477dd1faa6 169724fe .config console log report info ci-upstream-kasan-gce-selinux-root WARNING: kmalloc bug in hash_net_create
2021/09/22 07:46 upstream 92477dd1faa6 169724fe .config console log report info ci-upstream-kasan-gce-selinux-root WARNING: kmalloc bug in hash_net_create
2021/09/21 20:16 upstream d9fb678414c0 169724fe .config console log report info ci-upstream-kasan-gce WARNING: kmalloc bug in hash_net_create
2021/09/20 23:53 upstream e4e737bb5c17 af796c18 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING: kmalloc bug in hash_net_create
2021/09/20 22:21 upstream e4e737bb5c17 af796c18 .config console log report info ci-upstream-kasan-gce-smack-root WARNING: kmalloc bug in hash_net_create
2021/09/20 12:18 upstream bc1abb9e55ce 70b76c1d .config console log report info ci-upstream-kasan-gce-selinux-root WARNING: kmalloc bug in hash_net_create
2021/09/20 09:35 upstream 20621d2f27a0 70b76c1d .config console log report info ci-upstream-kasan-gce-root WARNING: kmalloc bug in hash_net_create
2021/09/20 09:28 upstream e4e737bb5c17 70b76c1d .config console log report info ci-upstream-kasan-gce WARNING: kmalloc bug in hash_net_create
2021/09/19 17:26 upstream d4d016caa4b8 70b76c1d .config console log report info ci-upstream-kasan-gce-root WARNING: kmalloc bug in hash_net_create
2021/09/18 07:11 upstream ddf21bd8ab98 70b76c1d .config console log report info ci-upstream-kasan-gce-root WARNING: kmalloc bug in hash_net_create
2021/09/18 07:11 upstream ddf21bd8ab98 70b76c1d .config console log report info ci-upstream-kasan-gce WARNING: kmalloc bug in hash_net_create
2021/09/14 11:10 upstream d0ee23f9d78b 58d09404 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING: kmalloc bug in hash_net_create
2021/09/14 10:24 upstream d0ee23f9d78b 58d09404 .config console log report info ci-upstream-kasan-gce-root WARNING: kmalloc bug in hash_net_create
2021/09/14 04:45 upstream d0ee23f9d78b 58d09404 .config console log report info ci-upstream-kasan-gce-smack-root WARNING: kmalloc bug in hash_net_create
2021/09/14 03:15 upstream d0ee23f9d78b 58d09404 .config console log report info ci-upstream-kasan-gce WARNING: kmalloc bug in hash_net_create
2021/09/12 11:59 upstream 78e709522d2c 5ae8508a .config console log report info ci-upstream-kasan-gce-smack-root WARNING: kmalloc bug in hash_net_create
2021/09/03 19:56 upstream a9c9a6f741cd f62a5829 .config console log report info ci-upstream-kasan-gce WARNING: kmalloc bug in hash_net_create
2021/09/30 06:06 upstream 02d5e016800d be530f6c .config console log report info ci-upstream-kasan-gce-386 WARNING: kmalloc bug in hash_net_create
2021/09/30 05:01 upstream 02d5e016800d be530f6c .config console log report info ci-upstream-kasan-gce-386 WARNING: kmalloc bug in hash_net_create
2021/09/28 12:36 upstream 0513e464f900 78494d16 .config console log report info ci-upstream-kasan-gce-386 WARNING: kmalloc bug in hash_net_create
2021/09/24 14:29 upstream f9e36107ec70 8cac236e .config console log report info ci-upstream-kasan-gce-386 WARNING: kmalloc bug in hash_net_create
2021/09/23 10:22 upstream cf1d2c3e7e2f 8cac236e .config console log report info ci-upstream-kasan-gce-386 WARNING: kmalloc bug in hash_net_create
2021/09/22 22:19 upstream cf1d2c3e7e2f 8cac236e .config console log report info ci-upstream-kasan-gce-386 WARNING: kmalloc bug in hash_net_create
2021/09/22 16:36 upstream 92477dd1faa6 169724fe .config console log report info ci-upstream-kasan-gce-386 WARNING: kmalloc bug in hash_net_create
2021/09/21 21:31 upstream d9fb678414c0 169724fe .config console log report info ci-upstream-kasan-gce-386 WARNING: kmalloc bug in hash_net_create
2021/09/18 08:28 upstream ddf21bd8ab98 70b76c1d .config console log report info ci-upstream-kasan-gce-386 WARNING: kmalloc bug in hash_net_create
2021/09/22 15:30 net-old b3f98404bd62 169724fe .config console log report info ci-upstream-net-this-kasan-gce WARNING: kmalloc bug in hash_net_create
2021/09/18 03:03 net-old 02319bf15acf 70b76c1d .config console log report info ci-upstream-net-this-kasan-gce WARNING: kmalloc bug in hash_net_create
2021/09/17 15:09 net-old fc0c0548c1a2 5b989942 .config console log report info ci-upstream-net-this-kasan-gce WARNING: kmalloc bug in hash_net_create
2021/09/30 16:36 net-next-old ef91abfb20c7 be530f6c .config console log report info ci-upstream-net-kasan-gce WARNING: kmalloc bug in hash_net_create
2021/09/29 03:45 net-next-old b69c99463d41 d82cb927 .config console log report info ci-upstream-net-kasan-gce WARNING: kmalloc bug in hash_net_create
2021/09/24 20:43 net-next-old acde891c243c 8cac236e .config console log report info ci-upstream-net-kasan-gce WARNING: kmalloc bug in hash_net_create
2021/09/24 04:17 net-next-old 2fcd14d0f780 8cac236e .config console log report info ci-upstream-net-kasan-gce WARNING: kmalloc bug in hash_net_create
2021/09/22 19:35 net-next-old 428168f99517 8cac236e .config console log report info ci-upstream-net-kasan-gce WARNING: kmalloc bug in hash_net_create
2021/09/20 01:04 net-next-old 9eb7b5e7cb50 70b76c1d .config console log report info ci-upstream-net-kasan-gce WARNING: kmalloc bug in hash_net_create
2021/09/14 01:33 net-next-old 13bb8429ca98 58d09404 .config console log report info ci-upstream-net-kasan-gce WARNING: kmalloc bug in hash_net_create
2021/09/11 12:20 linux-next aa14a3016182 5ae8508a .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING: kmalloc bug in hash_net_create
* Struck through repros no longer work on HEAD.