syzbot


KCSAN: data-race in pcpu_alloc / pcpu_free_area (3)

Status: moderation: reported syz repro on 2021/11/29 17:24
Subsystems: netfilter
[Documentation on labels]
Reported-by: syzbot+041c26cb85794b7e414d@syzkaller.appspotmail.com
First crash: 1223d, last: 147d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in pcpu_alloc / pcpu_free_area (2) netfilter 574 1224d 1802d 0/28 closed as invalid on 2021/06/07 13:54
upstream KCSAN: data-race in pcpu_alloc / pcpu_free_area netfilter 2 1827d 1836d 0/28 closed as invalid on 2019/10/15 15:50
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/08/11 04:55 8m retest repro upstream report log
2024/08/11 04:55 7m retest repro upstream report log
2024/08/11 04:55 9m retest repro upstream report log
2024/08/11 04:55 7m retest repro upstream report log
2024/08/11 04:55 9m retest repro upstream report log
2024/06/02 03:32 7m retest repro upstream report log
2024/06/02 03:32 9m retest repro upstream report log
2024/06/02 03:32 16m retest repro upstream report log
2024/06/02 03:32 7m retest repro upstream report log
2024/06/02 03:32 15m retest repro upstream report log

Sample crash report:
==================================================================
BUG: KCSAN: data-race in pcpu_alloc / pcpu_free_area

read-write to 0xffffffff86ef831c of 4 bytes by task 3104 on cpu 0:
 pcpu_update_empty_pages mm/percpu.c:602 [inline]
 pcpu_block_update_hint_free mm/percpu.c:1044 [inline]
 pcpu_free_area+0x4e2/0x570 mm/percpu.c:1302
 free_percpu+0x1c6/0xb20 mm/percpu.c:2303
 xt_percpu_counter_free+0x63/0x70 net/netfilter/x_tables.c:1950
 cleanup_entry+0x17b/0x1a0 net/ipv4/netfilter/ip_tables.c:654
 __do_replace+0x46a/0x570 net/ipv4/netfilter/ip_tables.c:1082
 do_replace net/ipv4/netfilter/ip_tables.c:1137 [inline]
 do_ipt_set_ctl+0x1440/0x1730 net/ipv4/netfilter/ip_tables.c:1627
 nf_setsockopt+0x18d/0x1b0 net/netfilter/nf_sockopt.c:101
 ip_setsockopt+0xe6/0x100 net/ipv4/ip_sockglue.c:1426
 tcp_setsockopt+0x90/0xa0 net/ipv4/tcp.c:3704
 sock_common_setsockopt+0x61/0x70 net/core/sock.c:3711
 do_sock_setsockopt net/socket.c:2311 [inline]
 __sys_setsockopt+0x1d4/0x240 net/socket.c:2334
 __do_sys_setsockopt net/socket.c:2343 [inline]
 __se_sys_setsockopt net/socket.c:2340 [inline]
 __x64_sys_setsockopt+0x66/0x80 net/socket.c:2340
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffffffff86ef831c of 4 bytes by task 3111 on cpu 1:
 pcpu_alloc+0x9bc/0x10b0 mm/percpu.c:1868
 __alloc_percpu+0x24/0x30 mm/percpu.c:1943
 xt_percpu_counter_alloc+0x72/0x110 net/netfilter/x_tables.c:1930
 find_check_entry net/ipv4/netfilter/ip_tables.c:526 [inline]
 translate_table+0x90b/0xf60 net/ipv4/netfilter/ip_tables.c:716
 do_replace net/ipv4/netfilter/ip_tables.c:1133 [inline]
 do_ipt_set_ctl+0x13f0/0x1730 net/ipv4/netfilter/ip_tables.c:1627
 nf_setsockopt+0x18d/0x1b0 net/netfilter/nf_sockopt.c:101
 ip_setsockopt+0xe6/0x100 net/ipv4/ip_sockglue.c:1426
 tcp_setsockopt+0x90/0xa0 net/ipv4/tcp.c:3704
 sock_common_setsockopt+0x61/0x70 net/core/sock.c:3711
 do_sock_setsockopt net/socket.c:2311 [inline]
 __sys_setsockopt+0x1d4/0x240 net/socket.c:2334
 __do_sys_setsockopt net/socket.c:2343 [inline]
 __se_sys_setsockopt net/socket.c:2340 [inline]
 __x64_sys_setsockopt+0x66/0x80 net/socket.c:2340
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x00000005 -> 0x00000006

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 3111 Comm: syz-executor.2 Not tainted 6.7.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
==================================================================

Crashes (1402):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/12/04 08:36 upstream 33cc938e65a9 f819d6f7 .config console log report syz [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2023/12/04 00:57 upstream 33cc938e65a9 f819d6f7 .config console log report syz [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2023/09/13 21:15 upstream 3669558bdf35 0b6a67ac .config console log report syz [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2023/08/25 07:34 upstream 4f9e7fabf864 49be837e .config console log report syz [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2022/05/21 17:04 upstream 3b5e1590a267 7268fa62 .config console log report syz ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/05/19 03:09 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/05/18 13:50 upstream 4b377b4868ef c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/05/17 12:09 upstream ea5f6ad9ad96 a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/05/17 07:09 upstream ea5f6ad9ad96 c2e07261 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/05/15 23:52 upstream 8c06da67d0bd ef5d53ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/05/15 09:35 upstream b850dc206a57 94b087b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/05/15 05:04 upstream b850dc206a57 fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/05/14 14:27 upstream a5131c3fdf26 fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/05/14 00:08 upstream 8815da98e06a fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/05/13 06:23 upstream a38297e3fb01 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/05/12 17:29 upstream ba16c1cf11c9 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/05/11 08:44 upstream cf87f46fd34d 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/05/11 07:26 upstream cf87f46fd34d f7c35481 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/05/10 18:14 upstream f4345f05c0df f7c35481 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/05/10 15:20 upstream 448b3fe5a0ea f7c35481 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/05/10 00:43 upstream 448b3fe5a0ea de979bc2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/05/09 21:52 upstream 448b3fe5a0ea 05079661 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/05/09 07:59 upstream 45db3ab70092 20bf80e1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/05/09 07:46 upstream 45db3ab70092 20bf80e1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/05/08 18:26 upstream 6d7ddd805123 20bf80e1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/05/08 15:30 upstream dccb07f2914c 20bf80e1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/05/08 00:27 upstream dccb07f2914c 4cf3f9b3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/05/07 12:01 upstream dccb07f2914c cb2dcc0e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/05/06 10:26 upstream dd5a440a31fa d884b519 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/05/04 14:58 upstream 7367539ad4b0 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/05/03 23:29 upstream ddb4c3f25b7b dd26401e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/05/03 10:10 upstream f03359bca01b dd26401e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/05/02 21:32 upstream 49a73b1652c5 ddfc15a1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/05/02 17:03 upstream 49a73b1652c5 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/05/01 00:16 upstream 18daea77cca6 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/04/30 09:36 upstream 98369dccd2f8 f10afd69 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/04/29 20:45 upstream b947cc5bf6d7 f10afd69 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/04/29 16:43 upstream b947cc5bf6d7 27e33c58 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/04/29 07:16 upstream e67572cd2204 27e33c58 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/04/27 19:54 upstream 5d12ed4bea43 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/04/27 01:59 upstream 5eb4573ea63d 059e9963 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/04/26 12:43 upstream c942a0cd3603 059e9963 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/04/26 06:47 upstream c942a0cd3603 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/04/24 16:31 upstream 9d1ddab261f3 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/04/23 22:05 upstream 9d1ddab261f3 21339d7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/04/23 09:11 upstream 71b1543c83d6 21339d7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/04/23 00:34 upstream a2c63a3f3d68 36c961ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2024/04/22 07:52 upstream ed30a4a51bb1 af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2021/11/29 14:18 upstream d58071a8a76d 63eeac02 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2021/11/28 23:18 upstream d06c942efea4 63eeac02 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
2021/06/08 01:37 upstream 614124bea77e b718257f .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_free_area
* Struck through repros no longer work on HEAD.