syzbot


KCSAN: data-race in __register_sysctl_table / rxrpc_lookup_local

Status: auto-obsoleted due to no activity on 2023/02/25 08:26
Subsystems: fs
[Documentation on labels]
First crash: 878d, last: 874d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __register_sysctl_table / rxrpc_lookup_local

write to 0xffff88813af44720 of 8 bytes by task 3805 on cpu 0:
 init_header fs/proc/proc_sysctl.c:202 [inline]
 new_dir fs/proc/proc_sysctl.c:983 [inline]
 get_subdir fs/proc/proc_sysctl.c:1015 [inline]
 __register_sysctl_table+0x7a5/0xce0 fs/proc/proc_sysctl.c:1366
 register_net_sysctl+0x1b1/0x1c0 net/sysctl_net.c:169
 neigh_sysctl_register+0x342/0x3c0 net/core/neighbour.c:3854
 devinet_sysctl_register+0x75/0x130 net/ipv4/devinet.c:2624
 inetdev_init+0x1f5/0x370 net/ipv4/devinet.c:286
 inetdev_event+0x175/0xae0 net/ipv4/devinet.c:1535
 notifier_call_chain kernel/notifier.c:87 [inline]
 raw_notifier_call_chain+0x53/0xb0 kernel/notifier.c:455
 call_netdevice_notifiers_info net/core/dev.c:1944 [inline]
 call_netdevice_notifiers_extack net/core/dev.c:1982 [inline]
 call_netdevice_notifiers+0xb8/0x120 net/core/dev.c:1996
 register_netdevice+0xca3/0xe10 net/core/dev.c:10078
 br_dev_newlink+0x23/0xe0 net/bridge/br_netlink.c:1517
 rtnl_newlink_create net/core/rtnetlink.c:3407 [inline]
 __rtnl_newlink net/core/rtnetlink.c:3624 [inline]
 rtnl_newlink+0xf8e/0x16f0 net/core/rtnetlink.c:3637
 rtnetlink_rcv_msg+0x811/0x8d0 net/core/rtnetlink.c:6141
 netlink_rcv_skb+0x13e/0x250 net/netlink/af_netlink.c:2564
 rtnetlink_rcv+0x18/0x20 net/core/rtnetlink.c:6159
 netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline]
 netlink_unicast+0x58a/0x660 net/netlink/af_netlink.c:1356
 netlink_sendmsg+0x666/0x760 net/netlink/af_netlink.c:1932
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg net/socket.c:734 [inline]
 ____sys_sendmsg+0x38f/0x500 net/socket.c:2476
 ___sys_sendmsg net/socket.c:2530 [inline]
 __sys_sendmsg+0x19a/0x230 net/socket.c:2559
 __do_sys_sendmsg net/socket.c:2568 [inline]
 __se_sys_sendmsg net/socket.c:2566 [inline]
 __x64_sys_sendmsg+0x42/0x50 net/socket.c:2566
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88813af44720 of 8 bytes by task 3791 on cpu 1:
 rxrpc_lookup_local+0x1bb/0x880
 rxrpc_sendmsg+0x323/0x500 net/rxrpc/af_rxrpc.c:543
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg net/socket.c:734 [inline]
 sock_write_iter+0x1b7/0x220 net/socket.c:1108
 call_write_iter include/linux/fs.h:2186 [inline]
 aio_write+0x2e0/0x3c0 fs/aio.c:1600
 io_submit_one+0x9b1/0x1220 fs/aio.c:2019
 __do_sys_io_submit fs/aio.c:2078 [inline]
 __se_sys_io_submit+0x105/0x280 fs/aio.c:2048
 __x64_sys_io_submit+0x3f/0x50 fs/aio.c:2048
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0xffff88813af44720 -> 0xffff88813af44778

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 3791 Comm: syz-executor.0 Tainted: G        W          6.1.0-syzkaller-13781-gaeba12b26c79-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
==================================================================
general protection fault, probably for non-canonical address 0x316567646972fe: 0000 [#1] PREEMPT SMP
CPU: 1 PID: 3791 Comm: syz-executor.0 Tainted: G        W          6.1.0-syzkaller-13781-gaeba12b26c79-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:rxrpc_local_cmp_key net/rxrpc/local_object.c:53 [inline]
RIP: 0010:rxrpc_lookup_local+0x100/0x880 net/rxrpc/local_object.c:224
Code: 04 e8 84 6e f8 fc 4c 89 74 24 20 45 0f b7 76 04 66 2e 0f 1f 84 00 00 00 00 00 4d 8d 65 e0 49 8d bd 9c 00 00 00 e8 60 6e f8 fc <41> 0f b7 ad 9c 00 00 00 89 ee 44 29 f6 31 ff e8 6c 4f e5 fc 44 29
RSP: 0018:ffffc90000aefab8 EFLAGS: 00010246
RAX: ffff88813afcca48 RBX: 000000000000004d RCX: ffffffff8442d680
RDX: 0000000000000365 RSI: 0000000000000000 RDI: 00316567646972fe
RBP: 00000000fffffffe R08: 00016567646972ff R09: 0000000000000000
R10: 0001ffffffffffff R11: 0001ffffffffffff R12: 0031656764697242
R13: 0031656764697262 R14: 0000000000000002 R15: ffff888138729000
FS:  00007f6c54d3d700(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6c54d14000 CR3: 000000013a5ca000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 rxrpc_sendmsg+0x323/0x500 net/rxrpc/af_rxrpc.c:543
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg net/socket.c:734 [inline]
 sock_write_iter+0x1b7/0x220 net/socket.c:1108
 call_write_iter include/linux/fs.h:2186 [inline]
 aio_write+0x2e0/0x3c0 fs/aio.c:1600
 io_submit_one+0x9b1/0x1220 fs/aio.c:2019
 __do_sys_io_submit fs/aio.c:2078 [inline]
 __se_sys_io_submit+0x105/0x280 fs/aio.c:2048
 __x64_sys_io_submit+0x3f/0x50 fs/aio.c:2048
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f6c559ca0d9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f6c54d3d168 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1
RAX: ffffffffffffffda RBX: 00007f6c55ae9f80 RCX: 00007f6c559ca0d9
RDX: 0000000020000b40 RSI: 0000000000000001 RDI: 00007f6c54d14000
RBP: 00007f6c55a25ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe7c85e93f R14: 00007f6c54d3d300 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:rxrpc_local_cmp_key net/rxrpc/local_object.c:53 [inline]
RIP: 0010:rxrpc_lookup_local+0x100/0x880 net/rxrpc/local_object.c:224
Code: 04 e8 84 6e f8 fc 4c 89 74 24 20 45 0f b7 76 04 66 2e 0f 1f 84 00 00 00 00 00 4d 8d 65 e0 49 8d bd 9c 00 00 00 e8 60 6e f8 fc <41> 0f b7 ad 9c 00 00 00 89 ee 44 29 f6 31 ff e8 6c 4f e5 fc 44 29
RSP: 0018:ffffc90000aefab8 EFLAGS: 00010246
RAX: ffff88813afcca48 RBX: 000000000000004d RCX: ffffffff8442d680
RDX: 0000000000000365 RSI: 0000000000000000 RDI: 00316567646972fe
RBP: 00000000fffffffe R08: 00016567646972ff R09: 0000000000000000
R10: 0001ffffffffffff R11: 0001ffffffffffff R12: 0031656764697242
R13: 0031656764697262 R14: 0000000000000002 R15: ffff888138729000
FS:  00007f6c54d3d700(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6c54d14000 CR3: 000000013a5ca000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	04 e8                	add    $0xe8,%al
   2:	84 6e f8             	test   %ch,-0x8(%rsi)
   5:	fc                   	cld
   6:	4c 89 74 24 20       	mov    %r14,0x20(%rsp)
   b:	45 0f b7 76 04       	movzwl 0x4(%r14),%r14d
  10:	66 2e 0f 1f 84 00 00 	nopw   %cs:0x0(%rax,%rax,1)
  17:	00 00 00
  1a:	4d 8d 65 e0          	lea    -0x20(%r13),%r12
  1e:	49 8d bd 9c 00 00 00 	lea    0x9c(%r13),%rdi
  25:	e8 60 6e f8 fc       	callq  0xfcf86e8a
* 2a:	41 0f b7 ad 9c 00 00 	movzwl 0x9c(%r13),%ebp <-- trapping instruction
  31:	00
  32:	89 ee                	mov    %ebp,%esi
  34:	44 29 f6             	sub    %r14d,%esi
  37:	31 ff                	xor    %edi,%edi
  39:	e8 6c 4f e5 fc       	callq  0xfce54faa
  3e:	44                   	rex.R
  3f:	29                   	.byte 0x29

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/20 01:10 upstream aeba12b26c79 c52b2efb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __register_sysctl_table / rxrpc_lookup_local
2022/12/15 07:28 upstream e2ca6ba6ba01 b18f0a64 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __register_sysctl_table / rxrpc_lookup_local
* Struck through repros no longer work on HEAD.