syzbot


WARNING in cpuset_write_resmask

Status: upstream: reported C repro on 2021/12/29 16:54
Reported-by: syzbot+568dc81cd20b72d4a49f@syzkaller.appspotmail.com
Fix commit: d068eebbd482 cgroup/cpuset: Make child cpusets restrict parents on v1 hierarchy
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: 186d, last: 116d

Cause bisection: introduced by (bisect log) :
commit e4b8954074f6d0db01c8c97d338a67f9389c042f
Author: Eric Dumazet <edumazet@google.com>
Date: Tue Dec 7 01:30:37 2021 +0000

  netlink: add net device refcount tracker to struct ethnl_req_info

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

Fix bisection: fixed by (bisect log) :
commit d068eebbd4822b6c14a7ea375dfe53ca5c69c776
Author: Michal Koutný <mkoutny@suse.com>
Date: Fri Dec 17 15:48:54 2021 +0000

  cgroup/cpuset: Make child cpusets restrict parents on v1 hierarchy


Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3647 at kernel/cgroup/cpuset.c:1817 update_nodemasks_hier kernel/cgroup/cpuset.c:1817 [inline]
WARNING: CPU: 1 PID: 3647 at kernel/cgroup/cpuset.c:1817 update_nodemask kernel/cgroup/cpuset.c:1890 [inline]
WARNING: CPU: 1 PID: 3647 at kernel/cgroup/cpuset.c:1817 cpuset_write_resmask+0x167b/0x20f0 kernel/cgroup/cpuset.c:2457
Modules linked in:
CPU: 0 PID: 3647 Comm: syz-executor287 Not tainted 5.16.0-syzkaller-11655-ge5313968c41b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:update_nodemasks_hier kernel/cgroup/cpuset.c:1817 [inline]
RIP: 0010:update_nodemask kernel/cgroup/cpuset.c:1890 [inline]
RIP: 0010:cpuset_write_resmask+0x167b/0x20f0 kernel/cgroup/cpuset.c:2457
Code: 3c 08 00 0f 85 ed 08 00 00 49 8b 9c 24 38 01 00 00 48 89 ef 48 89 de e8 63 4a 04 00 48 39 dd 0f 84 dd ef ff ff e8 e5 46 04 00 <0f> 0b e9 d1 ef ff ff e8 d9 46 04 00 e8 b4 a5 ef ff e8 cf 46 04 00
RSP: 0018:ffffc90003acfb18 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: ffff88801e193a00 RSI: ffffffff81740f0b RDI: 0000000000000003
RBP: 0000000000000003 R08: 0000000000000003 R09: ffffffff8fdeca17
R10: ffffffff81740efd R11: 0000000000000001 R12: ffff888074f2e000
R13: ffff888074f2e054 R14: ffff888074f2e138 R15: 0000000000000000
FS:  00007fee62f33700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffcf8240960 CR3: 0000000072ae3000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 cgroup_file_write+0x1de/0x760 kernel/cgroup/cgroup.c:3877
 kernfs_fop_write_iter+0x342/0x500 fs/kernfs/file.c:296
 call_write_iter include/linux/fs.h:2086 [inline]
 new_sync_write+0x431/0x660 fs/read_write.c:503
 vfs_write+0x7cd/0xae0 fs/read_write.c:590
 ksys_write+0x12d/0x250 fs/read_write.c:643
 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:0x7fee62f82b79
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 15 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:00007fee62f33308 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fee6300c4c8 RCX: 00007fee62f82b79
RDX: 0000000000000001 RSI: 0000000020000080 RDI: 0000000000000006
RBP: 00007fee6300c4c0 R08: 0000000000000012 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fee6300c4cc
R13: 00007fee62fd92b0 R14: 6d2e746573757063 R15: 0000000000022000
 </TASK>

Crashes (127):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-bpf-next-kasan-gce 2022/02/22 00:28 bpf-next e5313968c41b 6e821dbf .config log report syz C WARNING in cpuset_write_resmask
ci-upstream-kasan-gce 2022/01/24 21:06 upstream dd81e1c7d5fb 2cbffd88 .config log report info WARNING in cpuset_write_resmask
ci-upstream-kasan-gce-root 2022/01/24 20:22 upstream dd81e1c7d5fb 2cbffd88 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-kasan-gce 2022/02/04 11:55 bpf 77b1b8b43ec3 a3e470b2 .config log report info WARNING in cpuset_write_resmask
ci-upstream-net-this-kasan-gce 2022/01/27 17:34 net c7ec845f0eaf 64a8e201 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/03/05 16:09 bpf-next e5313968c41b 45a13a73 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/03/03 22:29 bpf-next e5313968c41b 45a13a73 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/03/03 01:35 bpf-next e5313968c41b 45a13a73 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/28 11:03 bpf-next e5313968c41b 45a13a73 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/28 05:29 bpf-next e5313968c41b 45a13a73 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/27 11:08 bpf-next e5313968c41b 45a13a73 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/25 18:52 bpf-next e5313968c41b 45a13a73 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/25 15:22 bpf-next e5313968c41b 7c337266 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/24 14:45 bpf-next e5313968c41b b28851a4 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/22 12:43 bpf-next e5313968c41b 6e821dbf .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/21 21:16 bpf-next e5313968c41b 6e821dbf .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/20 07:47 bpf-next e5313968c41b 3cd800e4 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/20 03:45 bpf-next e5313968c41b 3cd800e4 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/19 23:40 bpf-next e5313968c41b 3cd800e4 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/19 14:41 bpf-next e5313968c41b 3cd800e4 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/19 02:53 bpf-next e5313968c41b 3cd800e4 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/18 21:02 bpf-next e5313968c41b 3cd800e4 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/18 07:17 bpf-next e5313968c41b 3cd800e4 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/17 19:14 bpf-next e5313968c41b 3cd800e4 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/17 06:28 bpf-next e5313968c41b 2bea8a27 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/17 05:01 bpf-next e5313968c41b 2bea8a27 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/17 00:12 bpf-next e5313968c41b 2bea8a27 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/16 11:21 bpf-next e5313968c41b 8b9ca619 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/15 11:02 bpf-next e5313968c41b 8b9ca619 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/13 16:10 bpf-next e5313968c41b 8b9ca619 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/13 14:03 bpf-next e5313968c41b 8b9ca619 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/12 23:19 bpf-next e5313968c41b 8b9ca619 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/12 10:33 bpf-next e5313968c41b 8b9ca619 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/11 19:05 bpf-next e5313968c41b 8b9ca619 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/11 16:49 bpf-next e5313968c41b 0b33604d .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/11 12:55 bpf-next e5313968c41b 0b33604d .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/11 09:50 bpf-next e5313968c41b 0b33604d .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/11 07:44 bpf-next e5313968c41b 0b33604d .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/10 20:06 bpf-next e5313968c41b 0b33604d .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/10 16:49 bpf-next e5313968c41b 0b33604d .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/10 11:22 bpf-next e5313968c41b 0b33604d .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/10 04:54 bpf-next e5313968c41b 0b33604d .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/10 02:13 bpf-next e5313968c41b 0b33604d .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/09 21:46 bpf-next 3caa7d2e2e9b 0b33604d .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/09 19:27 bpf-next 3caa7d2e2e9b 0b33604d .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/09 12:29 bpf-next 3caa7d2e2e9b 0b33604d .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/07 23:38 bpf-next e91d280c840f a7dab638 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/07 13:26 bpf-next 422ee58dc0ef a7dab638 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/06 16:57 bpf-next 422ee58dc0ef a7dab638 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/05 23:38 bpf-next 422ee58dc0ef a7dab638 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/05 08:24 bpf-next 0908a66ad112 a7dab638 .config log report info WARNING in cpuset_write_resmask
ci-upstream-bpf-next-kasan-gce 2022/02/05 06:52 bpf-next 0908a66ad112 e13a05ed .config log report info WARNING in cpuset_write_resmask
ci-upstream-linux-next-kasan-gce-root 2021/12/25 16:46 linux-next ea586a076e8a 6caa12e4 .config log report info WARNING in cpuset_write_resmask