syzbot


WARNING: proc registration bug in clusterip_tg_check (2)

Status: upstream: reported syz repro on 2021/01/12 15:17
Reported-by: syzbot+3bd41ec8bcffeccedda9@syzkaller.appspotmail.com
First crash: 1422d, last: 1120d
Fix bisection: failed (error log, bisect log)
  
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) netfilter 7 1463d 1657d 0/28 auto-closed as invalid on 2021/04/02 09:10
upstream WARNING: proc registration bug in clusterip_tg_check netfilter C 779 2476d 2494d 4/28 fixed on 2018/02/26 20:04
upstream WARNING: proc registration bug in clusterip_tg_check (3) netfilter C done inconclusive 9 685d 1218d 22/28 fixed on 2023/06/08 14:41
linux-4.19 WARNING: proc registration bug in clusterip_tg_check 2 1672d 1714d 0/1 auto-closed as invalid on 2020/09/04 20:53
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2021/12/10 17:25 11m bisect fix linux-4.19.y error job log
2021/10/06 09:38 38m bisect fix linux-4.19.y OK (0) job log log
2021/08/08 05:27 35m bisect fix linux-4.19.y OK (0) job log log

Sample crash report:
x_tables: ip_tables: rpfilter match: used from hooks OUTPUT, but only valid from PREROUTING
x_tables: ip_tables: rpfilter match: used from hooks OUTPUT, but only valid from PREROUTING
------------[ cut here ]------------
proc_dir_entry 'ipt_CLUSTERIP/172.30.0.2' already registered
WARNING: CPU: 0 PID: 17130 at fs/proc/generic.c:373 proc_register+0x34c/0x700 fs/proc/generic.c:373
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 17130 Comm: syz-executor.1 Not tainted 4.19.194-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 panic+0x26a/0x50e kernel/panic.c:186
 __warn.cold+0x20/0x5a kernel/panic.c:541
 report_bug+0x262/0x2b0 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:proc_register+0x34c/0x700 fs/proc/generic.c:373
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 a0 ec 76 88 48 8b b0 d0 00 00 00 e8 34 ba 2f 06 <0f> 0b 48 c7 c7 40 9e 06 8a e8 96 50 56 06 48 8b 4c 24 38 48 b8 00
RSP: 0018:ffff88806ed4f660 EFLAGS: 00010282
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814df761 RDI: ffffed100dda9ebe
RBP: ffff8880b34cf4f0 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880a5996b90
R13: ffff8880910b5278 R14: dffffc0000000000 R15: 000000000000000a
 proc_create_data+0xc4/0x120 fs/proc/generic.c:567
 clusterip_config_init net/ipv4/netfilter/ipt_CLUSTERIP.c:285 [inline]
 clusterip_tg_check+0x10fe/0x15e0 net/ipv4/netfilter/ipt_CLUSTERIP.c:506
 xt_check_target+0x26c/0x650 net/netfilter/x_tables.c:1023
 check_target net/ipv4/netfilter/ip_tables.c:514 [inline]
 find_check_entry.constprop.0+0x7a9/0x9a0 net/ipv4/netfilter/ip_tables.c:556
 translate_table+0xbe1/0x1600 net/ipv4/netfilter/ip_tables.c:720
 do_replace net/ipv4/netfilter/ip_tables.c:1139 [inline]
 do_ipt_set_ctl+0x29d/0x420 net/ipv4/netfilter/ip_tables.c:1677
 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline]
 nf_setsockopt+0x6f/0xc0 net/netfilter/nf_sockopt.c:115
 ip_setsockopt net/ipv4/ip_sockglue.c:1258 [inline]
 ip_setsockopt+0xd8/0xf0 net/ipv4/ip_sockglue.c:1238
 udp_setsockopt+0x5d/0xa0 net/ipv4/udp.c:2553
 __sys_setsockopt+0x14d/0x240 net/socket.c:1901
 __do_sys_setsockopt net/socket.c:1912 [inline]
 __se_sys_setsockopt net/socket.c:1909 [inline]
 __x64_sys_setsockopt+0xba/0x150 net/socket.c:1909
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4665d9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8259fe1188 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9
RDX: 0000000000000040 RSI: 8001000000000000 RDI: 0000000000000005
RBP: 00000000004bfcb9 R08: 00000000000002c0 R09: 0000000000000000
R10: 00000000200004c0 R11: 0000000000000246 R12: 000000000056bf80
R13: 00007ffddafcdd8f R14: 00007f8259fe1300 R15: 0000000000022000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (14):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/06/11 19:33 linux-4.19.y 9a2dc0e6c531 1ba81399 .config console log report syz ci2-linux-4-19 WARNING: proc registration bug in clusterip_tg_check
2021/06/09 02:37 linux-4.19.y 1722257b8ece 5c2fe346 .config console log report syz ci2-linux-4-19 WARNING: proc registration bug in clusterip_tg_check
2021/05/12 03:58 linux-4.19.y 3c8c23092588 b3c3bb8e .config console log report syz ci2-linux-4-19 WARNING: proc registration bug in clusterip_tg_check
2021/05/08 05:03 linux-4.19.y 3c8c23092588 bc5434be .config console log report syz ci2-linux-4-19 WARNING: proc registration bug in clusterip_tg_check
2021/11/10 17:25 linux-4.19.y 3f8a27f9e27b 75b04091 .config console log report info ci2-linux-4-19 WARNING: proc registration bug in clusterip_tg_check
2021/11/08 15:44 linux-4.19.y 3f8a27f9e27b d29682f1 .config console log report info ci2-linux-4-19 WARNING: proc registration bug in clusterip_tg_check
2021/11/02 08:52 linux-4.19.y 3f8a27f9e27b 098b5d53 .config console log report info ci2-linux-4-19 WARNING: proc registration bug in clusterip_tg_check
2021/09/06 09:38 linux-4.19.y b172b44fcb17 d236a457 .config console log report info ci2-linux-4-19 WARNING: proc registration bug in clusterip_tg_check
2021/07/09 05:27 linux-4.19.y 9f84340f012e 1b20171a .config console log report info ci2-linux-4-19 WARNING: proc registration bug in clusterip_tg_check
2021/06/27 02:30 linux-4.19.y eb575cd5d7f6 9d2ab5df .config console log report info ci2-linux-4-19 WARNING: proc registration bug in clusterip_tg_check
2021/05/12 03:00 linux-4.19.y 3c8c23092588 b3c3bb8e .config console log report info ci2-linux-4-19 WARNING: proc registration bug in clusterip_tg_check
2021/05/08 01:53 linux-4.19.y 3c8c23092588 bc5434be .config console log report info ci2-linux-4-19 WARNING: proc registration bug in clusterip_tg_check
2021/01/13 13:03 linux-4.19.y 675cc038067f a945f0a3 .config console log report info ci2-linux-4-19
2021/01/12 15:16 linux-4.19.y 610bdbf6a174 2c1f2513 .config console log report info ci2-linux-4-19
* Struck through repros no longer work on HEAD.