syzbot


WARNING: kmalloc bug in hash_ipmark_create

Status: closed as dup on 2021/09/15 05:14
Subsystems: netfilter
[Documentation on labels]
Reported-by: syzbot+5a5a70ab7329b98649e7@syzkaller.appspotmail.com
First crash: 1204d, last: 1177d
Cause bisection: introduced by (bisect log) [no-op commit]:
commit 77f61444e48b79e991b15da6399cf24685a042c9
Author: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Date: Wed Jul 21 18:04:21 2021 +0000

  ASoC: amd: add ACP5x PCM platform driver

Crash: BUG: sleeping function called from invalid context in stack_depot_save (log)
Repro: C syz .config
  
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
WARNING: kmalloc bug in hash_net_create netfilter C done 283 1177d 1204d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] WARNING: kmalloc bug in hash_ipmark_create 2 (3) 2021/09/15 05:14

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 8416 at mm/util.c:597 kvmalloc_node+0x111/0x120 mm/util.c:597
Modules linked in:
CPU: 0 PID: 8416 Comm: syz-executor566 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:ffffc90001cb7280 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffffc90001cb73a0 RCX: 0000000000000000
RDX: ffff8880292f8100 RSI: ffffffff81a3f651 RDI: 0000000000000003
RBP: 0000000000400dc0 R08: 000000007fffffff R09: 000000000000001e
R10: ffffffff81a3f60e R11: 000000000000001f R12: 0000000200000018
R13: 0000000000000000 R14: 00000000ffffffff R15: ffff888015dc1800
FS:  00000000016c3300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000146 CR3: 00000000168e4000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 hash_ipmark_create+0x4bd/0x1370 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:00007ffdcfb9e628 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000400488 RCX: 000000000043f039
RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000000000003
RBP: 0000000000403020 R08: 0000000000000005 R09: 0000000000400488
R10: 0000000000000001 R11: 0000000000000246 R12: 00000000004030b0
R13: 0000000000000000 R14: 00000000004ac018 R15: 0000000000400488

Crashes (31):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/09/03 15:34 upstream a9c9a6f741cd f62a5829 .config console log report syz C ci-upstream-kasan-gce-selinux-root WARNING: kmalloc bug in hash_ipmark_create
2021/09/03 15:31 upstream a9c9a6f741cd f62a5829 .config console log report syz C ci-upstream-kasan-gce-smack-root WARNING: kmalloc bug in hash_ipmark_create
2021/09/03 15:29 upstream a9c9a6f741cd f62a5829 .config console log report syz C ci-upstream-kasan-gce-root WARNING: kmalloc bug in hash_ipmark_create
2021/09/03 15:24 upstream a9c9a6f741cd f62a5829 .config console log report syz C ci-upstream-kasan-gce WARNING: kmalloc bug in hash_ipmark_create
2021/10/01 10:58 upstream 02d5e016800d 1d849ab4 .config console log report info ci-upstream-kasan-gce-root WARNING: kmalloc bug in hash_ipmark_create
2021/10/01 10:58 upstream 02d5e016800d 1d849ab4 .config console log report info ci-upstream-kasan-gce-root WARNING: kmalloc bug in hash_ipmark_create
2021/09/28 22:03 upstream d33bec7b3dfa d82cb927 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING: kmalloc bug in hash_ipmark_create
2021/09/28 20:48 upstream d33bec7b3dfa d82cb927 .config console log report info ci-upstream-kasan-gce-smack-root WARNING: kmalloc bug in hash_ipmark_create
2021/09/28 18:50 upstream d33bec7b3dfa d82cb927 .config console log report info ci-upstream-kasan-gce WARNING: kmalloc bug in hash_ipmark_create
2021/09/28 15:12 upstream 0513e464f900 d82cb927 .config console log report info ci-upstream-kasan-gce-root WARNING: kmalloc bug in hash_ipmark_create
2021/09/10 03:10 upstream a3fa7a101dcf e2776ee4 .config console log report info ci-upstream-kasan-gce WARNING: kmalloc bug in hash_ipmark_create
2021/09/10 03:00 upstream a3fa7a101dcf e2776ee4 .config console log report info ci-upstream-kasan-gce-smack-root WARNING: kmalloc bug in hash_ipmark_create
2021/09/10 02:59 upstream a3fa7a101dcf e2776ee4 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING: kmalloc bug in hash_ipmark_create
2021/09/06 05:05 upstream 0319b848b155 d236a457 .config console log report info ci-upstream-kasan-gce-smack-root WARNING: kmalloc bug in hash_ipmark_create
2021/09/06 05:02 upstream 0319b848b155 d236a457 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING: kmalloc bug in hash_ipmark_create
2021/09/06 05:01 upstream 0319b848b155 d236a457 .config console log report info ci-upstream-kasan-gce WARNING: kmalloc bug in hash_ipmark_create
2021/09/06 05:01 upstream 0319b848b155 d236a457 .config console log report info ci-upstream-kasan-gce-root WARNING: kmalloc bug in hash_ipmark_create
2021/09/03 15:22 upstream a9c9a6f741cd f62a5829 .config console log report info ci-upstream-kasan-gce-root WARNING: kmalloc bug in hash_ipmark_create
2021/09/03 15:13 upstream a9c9a6f741cd f62a5829 .config console log report info ci-upstream-kasan-gce-smack-root WARNING: kmalloc bug in hash_ipmark_create
2021/09/03 15:12 upstream a9c9a6f741cd f62a5829 .config console log report info ci-upstream-kasan-gce-root WARNING: kmalloc bug in hash_ipmark_create
2021/09/03 15:06 upstream a9c9a6f741cd f62a5829 .config console log report info ci-upstream-kasan-gce WARNING: kmalloc bug in hash_ipmark_create
2021/09/03 15:02 upstream a9c9a6f741cd f62a5829 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING: kmalloc bug in hash_ipmark_create
2021/09/03 15:02 upstream a9c9a6f741cd f62a5829 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING: kmalloc bug in hash_ipmark_create
2021/09/28 21:18 upstream d33bec7b3dfa d82cb927 .config console log report info ci-upstream-kasan-gce-386 WARNING: kmalloc bug in hash_ipmark_create
2021/09/10 04:20 upstream a3fa7a101dcf e2776ee4 .config console log report info ci-upstream-kasan-gce-386 WARNING: kmalloc bug in hash_ipmark_create
2021/09/06 05:02 upstream 0319b848b155 d236a457 .config console log report info ci-upstream-kasan-gce-386 WARNING: kmalloc bug in hash_ipmark_create
2021/09/03 15:03 upstream a9c9a6f741cd f62a5829 .config console log report info ci-upstream-kasan-gce-386 WARNING: kmalloc bug in hash_ipmark_create
2021/09/03 14:59 upstream a9c9a6f741cd f62a5829 .config console log report info ci-upstream-kasan-gce-386 WARNING: kmalloc bug in hash_ipmark_create
2021/09/17 14:05 net-old fc0c0548c1a2 5b989942 .config console log report info ci-upstream-net-this-kasan-gce WARNING: kmalloc bug in hash_ipmark_create
2021/09/28 15:08 net-next-old b69c99463d41 d82cb927 .config console log report info ci-upstream-net-kasan-gce WARNING: kmalloc bug in hash_ipmark_create
2021/09/10 02:59 linux-next f7f581157d1c e2776ee4 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING: kmalloc bug in hash_ipmark_create
* Struck through repros no longer work on HEAD.