syzbot


WARNING: proc registration bug in clusterip_tg_check (3)
Status: upstream: reported C repro on 2021/08/04 17:28
Reported-by: syzbot+08e6343a8cbd89b0c9d8@syzkaller.appspotmail.com
First crash: 297d, last: 36d

Cause bisection: introduced by (bisect log) :
commit 2a61d8b883bbad26b06d2e6cc3777a697e78830d
Author: Taehee Yoo <ap420073@gmail.com>
Date: Mon Nov 5 09:23:13 2018 +0000

  netfilter: ipt_CLUSTERIP: fix sleep-in-atomic bug in clusterip_config_entry_put()

Crash: WARNING: proc registration bug in clusterip_tg_check (log)
Repro: syz .config

Fix bisection: the fix commit could be any of (bisect log):
  4039146777a9 net: ipv6: fix returned variable type in ip6_skb_dst_mtu
  b539c44df067 net: wwan: iosm: Unify IO accessors used in the driver
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING: proc registration bug in clusterip_tg_check (2) 7 541d 735d 0/22 auto-closed as invalid on 2021/04/02 09:10
linux-4.19 WARNING: proc registration bug in clusterip_tg_check (2) syz error 14 198d 500d 0/1 upstream: reported syz repro on 2021/01/12 15:17
upstream WARNING: proc registration bug in clusterip_tg_check C 779 1553d 1571d 4/22 fixed on 2018/02/26 20:04
linux-4.19 WARNING: proc registration bug in clusterip_tg_check 2 750d 792d 0/1 auto-closed as invalid on 2020/09/04 20:53

Sample crash report:
------------[ cut here ]------------
proc_dir_entry 'ipt_CLUSTERIP/224.0.0.1' already registered
WARNING: CPU: 1 PID: 24819 at fs/proc/generic.c:376 proc_register+0x34c/0x700 fs/proc/generic.c:376
Modules linked in:
CPU: 1 PID: 24819 Comm: syz-executor269 Not tainted 5.15.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:proc_register+0x34c/0x700 fs/proc/generic.c:376
Code: df 48 89 f9 48 c1 e9 03 80 3c 01 00 0f 85 5d 03 00 00 48 8b 44 24 28 48 c7 c7 e0 b1 9c 89 48 8b b0 d8 00 00 00 e8 a0 2c 01 07 <0f> 0b 48 c7 c7 40 ac b4 8b e8 26 c0 46 07 48 8b 4c 24 38 48 b8 00
RSP: 0018:ffffc900041df268 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff88806ca35580 RSI: ffffffff815e88a8 RDI: fffff5200083be3f
RBP: ffff88801af3c838 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff815e264e R11: 0000000000000000 R12: ffff88801ee5b498
R13: ffff88801ee5bd40 R14: dffffc0000000000 R15: 0000000000000009
FS:  00007f976a6aa700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f976a6aa718 CR3: 00000000697b9000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 proc_create_data+0x130/0x190 fs/proc/generic.c:575
 clusterip_config_init net/ipv4/netfilter/ipt_CLUSTERIP.c:292 [inline]
 clusterip_tg_check+0x1b83/0x2300 net/ipv4/netfilter/ipt_CLUSTERIP.c:517
 xt_check_target+0x26c/0x9e0 net/netfilter/x_tables.c:1038
 check_target net/ipv4/netfilter/ip_tables.c:511 [inline]
 find_check_entry.constprop.0+0x7a9/0x9a0 net/ipv4/netfilter/ip_tables.c:553
 translate_table+0xc26/0x16a0 net/ipv4/netfilter/ip_tables.c:717
 do_replace net/ipv4/netfilter/ip_tables.c:1135 [inline]
 do_ipt_set_ctl+0x56e/0xb80 net/ipv4/netfilter/ip_tables.c:1629
 nf_setsockopt+0x83/0xe0 net/netfilter/nf_sockopt.c:101
 ip_setsockopt+0x3c3/0x3a60 net/ipv4/ip_sockglue.c:1435
 tcp_setsockopt+0x136/0x2530 net/ipv4/tcp.c:3658
 __sys_setsockopt+0x2db/0x610 net/socket.c:2176
 __do_sys_setsockopt net/socket.c:2187 [inline]
 __se_sys_setsockopt net/socket.c:2184 [inline]
 __x64_sys_setsockopt+0xba/0x150 net/socket.c:2184
 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:0x7f976af2bd19
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 31 19 00 00 90 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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f976a6aa208 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007f976afb4278 RCX: 00007f976af2bd19
RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 00007f976afb4270 R08: 0000000000000298 R09: 0000000000000000
R10: 00000000200002c0 R11: 0000000000000246 R12: 00007f976afb427c
R13: 00007fff7aa240bf R14: 00007f976a6aa300 R15: 0000000000022000

Crashes (8):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce 2021/10/21 21:55 upstream 2f111a6fd5b5 c5cb7da8 .config log report syz C WARNING: proc registration bug in clusterip_tg_check
ci-upstream-kasan-gce 2021/10/11 20:56 upstream 64570fbc14f8 838e7e2c .config log report syz WARNING: proc registration bug in clusterip_tg_check
ci-upstream-net-this-kasan-gce 2021/08/03 21:09 net 4039146777a9 6c236867 .config log report syz WARNING: proc registration bug in clusterip_tg_check
ci-upstream-linux-next-kasan-gce-root 2022/04/22 06:29 linux-next f1244c81da13 2738b391 .config log report syz WARNING: proc registration bug in clusterip_tg_check
ci-upstream-kasan-gce-selinux-root 2021/12/05 14:06 upstream 79a72162048e a617004c .config log report info WARNING: proc registration bug in clusterip_tg_check
ci-upstream-kasan-gce-root 2021/12/01 20:45 upstream 58e1100fdc59 5fa3eacc .config log report info WARNING: proc registration bug in clusterip_tg_check
ci-upstream-kasan-gce 2021/10/11 19:45 upstream 64570fbc14f8 838e7e2c .config log report info WARNING: proc registration bug in clusterip_tg_check
ci-upstream-kasan-gce-smack-root 2021/09/07 12:25 upstream 0319b848b155 6ca60148 .config log report info WARNING: proc registration bug in clusterip_tg_check