syzbot


WARNING in nfnetlink_unbind

Status: upstream: reported C repro on 2022/05/17 18:12
Reported-by: syzbot+afd2d80e495f96049571@syzkaller.appspotmail.com
Fix commit: ffd219efd9ee netfilter: nfnetlink: fix warn in nfnetlink_unbind
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-leak ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386 ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-riscv64]
First crash: 43d, last: 26d

Cause bisection: introduced by (bisect log) :
commit 2794cdb0b97bfe62d25c996c8afe4832207e78bc
Author: Florian Westphal <fw@strlen.de>
Date: Mon Apr 25 13:15:41 2022 +0000

  netfilter: nfnetlink: allow to detect if ctnetlink listeners exist

Crash: WARNING in nfnetlink_unbind (log)
Repro: C syz .config

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3610 at net/netfilter/nfnetlink.c:703 nfnetlink_unbind net/netfilter/nfnetlink.c:703 [inline]
WARNING: CPU: 1 PID: 3610 at net/netfilter/nfnetlink.c:703 nfnetlink_unbind+0x357/0x3b0 net/netfilter/nfnetlink.c:694
Modules linked in:
CPU: 1 PID: 3610 Comm: syz-executor371 Not tainted 5.18.0-syzkaller-11972-gd1dc87763f40 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:nfnetlink_unbind net/netfilter/nfnetlink.c:703 [inline]
RIP: 0010:nfnetlink_unbind+0x357/0x3b0 net/netfilter/nfnetlink.c:694
Code: f9 48 c7 c2 c0 a6 d9 8a be b8 02 00 00 48 c7 c7 20 a7 d9 8a c6 05 dd 6a 10 06 01 e8 72 6c 9b 01 e9 6e fd ff ff e8 99 18 e4 f9 <0f> 0b 41 c7 04 24 ff ff ff ff e9 9d fe ff ff e8 a5 d8 30 fa e9 dd
RSP: 0018:ffffc900030afcf8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff8880171ed880 RSI: ffffffff87966bb7 RDI: 0000000000000005
RBP: ffffffff9097b8c0 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: ffff8880251d7340
R13: ffff88814b1f3800 R14: ffff888016ac0528 R15: ffff888016ac0000
FS:  0000555555f54300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc61815969 CR3: 000000001bd6d000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 netlink_setsockopt+0x932/0xda0 net/netlink/af_netlink.c:1661
 __sys_setsockopt+0x2db/0x6a0 net/socket.c:2259
 __do_sys_setsockopt net/socket.c:2270 [inline]
 __se_sys_setsockopt net/socket.c:2267 [inline]
 __x64_sys_setsockopt+0xba/0x150 net/socket.c:2267
 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+0x46/0xb0
RIP: 0033:0x7f895952baf9
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:00007ffc61815658 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f895952baf9
RDX: 0000000000000002 RSI: 000000000000010e RDI: 0000000000000003
RBP: 00007f89594efca0 R08: 0000000000000004 R09: 0000000000000000
R10: 0000000020000000 R11: 0000000000000246 R12: 00007f89594efd30
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (235):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce 2022/06/02 17:39 upstream d1dc87763f40 5783034f .config log report syz C WARNING in nfnetlink_unbind
ci-upstream-net-kasan-gce 2022/06/02 12:23 net-next 7e062cda7d90 5783034f .config log report syz C WARNING in nfnetlink_unbind
ci-upstream-net-kasan-gce 2022/05/17 06:04 net-next f7b88d9ae91e 744a39e2 .config log report syz C WARNING in nfnetlink_unbind
ci-upstream-kasan-gce 2022/06/03 02:26 upstream d1dc87763f40 5783034f .config log report info WARNING in nfnetlink_unbind
ci-upstream-kasan-gce-selinux-root 2022/06/02 16:19 upstream d1dc87763f40 5783034f .config log report info WARNING in nfnetlink_unbind
ci-upstream-kasan-gce-smack-root 2022/06/02 14:28 upstream d1dc87763f40 5783034f .config log report info WARNING in nfnetlink_unbind
ci-upstream-kasan-gce-root 2022/06/02 06:56 upstream 8171acb8bc9b b4bc6a3d .config log report info WARNING in nfnetlink_unbind
ci-upstream-kasan-gce-selinux-root 2022/06/02 03:26 upstream 8171acb8bc9b b4bc6a3d .config log report info WARNING in nfnetlink_unbind
ci-upstream-kasan-gce 2022/06/02 02:24 upstream 8171acb8bc9b b4bc6a3d .config log report info WARNING in nfnetlink_unbind
ci-qemu-upstream 2022/06/01 22:54 upstream 8eca6b0a647a b4bc6a3d .config log report info WARNING in nfnetlink_unbind
ci-upstream-kasan-gce-smack-root 2022/06/01 16:31 upstream 700170bf6b4d 3666edfe .config log report info WARNING in nfnetlink_unbind
ci-upstream-kasan-gce-selinux-root 2022/06/01 04:59 upstream 2a5699b0de4e 3666edfe .config log report info WARNING in nfnetlink_unbind
ci-upstream-kasan-gce-root 2022/06/01 03:50 upstream 2a5699b0de4e 3666edfe .config log report info WARNING in nfnetlink_unbind
ci-qemu-upstream 2022/06/01 00:04 upstream 8ab2afa23bd1 3666edfe .config log report info WARNING in nfnetlink_unbind
ci-qemu-upstream 2022/05/31 18:38 upstream 8ab2afa23bd1 3666edfe .config log report info WARNING in nfnetlink_unbind
ci-upstream-kasan-gce-smack-root 2022/05/31 15:28 upstream 8ab2afa23bd1 af70c3a9 .config log report info WARNING in nfnetlink_unbind
ci-upstream-kasan-gce-root 2022/05/31 13:38 upstream 8ab2afa23bd1 af70c3a9 .config log report info WARNING in nfnetlink_unbind
ci-upstream-kasan-gce-selinux-root 2022/05/31 06:07 upstream 2c5ca23f7414 af70c3a9 .config log report info WARNING in nfnetlink_unbind
ci-upstream-kasan-gce-root 2022/05/31 00:37 upstream 2c5ca23f7414 af70c3a9 .config log report info WARNING in nfnetlink_unbind
ci-upstream-kasan-gce-smack-root 2022/05/30 18:23 upstream b00ed48bb0a7 af70c3a9 .config log report info WARNING in nfnetlink_unbind
ci-upstream-kasan-gce-root 2022/05/30 17:09 upstream b00ed48bb0a7 af70c3a9 .config log report info WARNING in nfnetlink_unbind
ci-upstream-kasan-gce-smack-root 2022/05/30 12:05 upstream b00ed48bb0a7 a46af346 .config log report info WARNING in nfnetlink_unbind
ci-upstream-kasan-gce 2022/05/30 09:52 upstream b00ed48bb0a7 a46af346 .config log report info WARNING in nfnetlink_unbind
ci-upstream-kasan-gce 2022/05/29 16:58 upstream 664a393a2663 a46af346 .config log report info WARNING in nfnetlink_unbind
ci-upstream-kasan-gce-smack-root 2022/05/29 05:37 upstream 9d004b2f4fea a46af346 .config log report info WARNING in nfnetlink_unbind
ci-upstream-kasan-gce-smack-root 2022/05/28 23:35 upstream 9d004b2f4fea a46af346 .config log report info WARNING in nfnetlink_unbind
ci-upstream-kasan-gce-smack-root 2022/05/28 15:37 upstream 9d004b2f4fea a46af346 .config log report info WARNING in nfnetlink_unbind
ci-upstream-kasan-gce 2022/05/28 00:16 upstream 8291eaafed36 a46af346 .config log report info WARNING in nfnetlink_unbind
ci-upstream-kasan-gce-root 2022/05/27 22:31 upstream 8291eaafed36 a46af346 .config log report info WARNING in nfnetlink_unbind
ci-upstream-kasan-gce 2022/05/27 13:59 upstream 7e284070abe5 116e7a7b .config log report info WARNING in nfnetlink_unbind
ci-qemu-upstream-386 2022/06/03 05:21 upstream 17d8e3d90b69 02dddea8 .config log report info WARNING in nfnetlink_unbind
ci-upstream-kasan-gce-386 2022/06/02 05:02 upstream 8171acb8bc9b b4bc6a3d .config log report info WARNING in nfnetlink_unbind
ci-upstream-kasan-gce-386 2022/06/01 18:17 upstream 700170bf6b4d 3666edfe .config log report info WARNING in nfnetlink_unbind
ci-upstream-kasan-gce-386 2022/05/31 20:35 upstream 8ab2afa23bd1 af70c3a9 .config log report info WARNING in nfnetlink_unbind
ci-upstream-kasan-gce-386 2022/05/31 02:19 upstream 2c5ca23f7414 af70c3a9 .config log report info WARNING in nfnetlink_unbind
ci-qemu-upstream-386 2022/05/30 13:12 upstream b00ed48bb0a7 a46af346 .config log report info WARNING in nfnetlink_unbind
ci-qemu2-arm64-mte 2022/05/30 07:09 upstream c3a9a3c5f559 a46af346 .config log report info WARNING in nfnetlink_unbind
ci-upstream-kasan-gce-386 2022/05/29 17:06 upstream 664a393a2663 a46af346 .config log report info WARNING in nfnetlink_unbind
ci-qemu2-arm32 2022/05/29 12:41 upstream 664a393a2663 a46af346 .config log report info WARNING in nfnetlink_unbind
ci-upstream-kasan-gce-386 2022/05/28 18:09 upstream 9d004b2f4fea a46af346 .config log report info WARNING in nfnetlink_unbind
ci-qemu-upstream-386 2022/05/28 05:51 upstream 8291eaafed36 a46af346 .config log report info WARNING in nfnetlink_unbind
ci-upstream-kasan-gce-386 2022/05/28 04:24 upstream 8291eaafed36 a46af346 .config log report info WARNING in nfnetlink_unbind
ci-upstream-net-this-kasan-gce 2022/05/26 08:51 net 7e062cda7d90 3037caa9 .config log report info WARNING in nfnetlink_unbind
ci-upstream-net-kasan-gce 2022/06/02 19:11 net-next 7e062cda7d90 5783034f .config log report info WARNING in nfnetlink_unbind
ci-upstream-net-kasan-gce 2022/06/02 11:38 net-next 7e062cda7d90 5783034f .config log report info WARNING in nfnetlink_unbind
ci-upstream-net-kasan-gce 2022/06/01 23:39 net-next 7e062cda7d90 b4bc6a3d .config log report info WARNING in nfnetlink_unbind
ci-upstream-net-kasan-gce 2022/06/01 20:12 net-next 7e062cda7d90 3666edfe .config log report info WARNING in nfnetlink_unbind
ci-upstream-net-kasan-gce 2022/06/01 13:45 net-next 7e062cda7d90 3666edfe .config log report info WARNING in nfnetlink_unbind
ci-upstream-net-kasan-gce 2022/06/01 01:53 net-next 7e062cda7d90 3666edfe .config log report info WARNING in nfnetlink_unbind
ci-upstream-net-kasan-gce 2022/05/31 18:16 net-next 7e062cda7d90 af70c3a9 .config log report info WARNING in nfnetlink_unbind
ci-upstream-net-kasan-gce 2022/05/31 00:40 net-next 7e062cda7d90 af70c3a9 .config log report info WARNING in nfnetlink_unbind
ci-upstream-net-kasan-gce 2022/05/30 23:36 net-next 7e062cda7d90 af70c3a9 .config log report info WARNING in nfnetlink_unbind
ci-upstream-net-kasan-gce 2022/05/30 11:00 net-next 7e062cda7d90 a46af346 .config log report info WARNING in nfnetlink_unbind
ci-upstream-net-kasan-gce 2022/05/30 00:29 net-next 7e062cda7d90 a46af346 .config log report info WARNING in nfnetlink_unbind
ci-upstream-net-kasan-gce 2022/05/29 17:26 net-next 7e062cda7d90 a46af346 .config log report info WARNING in nfnetlink_unbind
ci-upstream-net-kasan-gce 2022/05/28 15:39 net-next 7e062cda7d90 a46af346 .config log report info WARNING in nfnetlink_unbind
ci-upstream-net-kasan-gce 2022/05/17 05:38 net-next f7b88d9ae91e 744a39e2 .config log report info WARNING in nfnetlink_unbind
ci-upstream-linux-next-kasan-gce-root 2022/05/30 20:36 linux-next d3fde8ff50ab af70c3a9 .config log report info WARNING in nfnetlink_unbind
ci-upstream-linux-next-kasan-gce-root 2022/05/29 15:46 linux-next d3fde8ff50ab a46af346 .config log report info WARNING in nfnetlink_unbind