syzbot


KCSAN: data-race in data_alloc / data_push_tail

Status: moderation: reported on 2022/01/18 19:07
Reported-by: syzbot+cef5be5a11dab5cbd7ac@syzkaller.appspotmail.com
First crash: 688d, last: 23d

Sample crash report:
__nla_validate_parse: 7 callbacks suppressed
netlink: 12 bytes leftover after parsing attributes in process `syz-executor.2'.
==================================================================
BUG: KCSAN: data-race in data_alloc / data_push_tail

write to 0xffffffff86eb6458 of 8 bytes by task 2840 on cpu 1:
 data_alloc+0x205/0x2b0 kernel/printk/printk_ringbuffer.c:1074
 prb_reserve+0x897/0xbd0 kernel/printk/printk_ringbuffer.c:1555
 vprintk_store+0x50b/0xad0 kernel/printk/printk.c:2282
 vprintk_emit+0xcc/0x430 kernel/printk/printk.c:2338
 vprintk_default+0x22/0x30 kernel/printk/printk.c:2368
 vprintk+0x7f/0x90 kernel/printk/printk_safe.c:50
 _printk+0x76/0xa0 kernel/printk/printk.c:2378
 pr_cont_kernfs_path+0x8f/0xb0 fs/kernfs/dir.c:280
 pr_cont_cgroup_path include/linux/cgroup.h:612 [inline]
 pids_can_fork+0x22e/0x250 kernel/cgroup/pids.c:254
 cgroup_can_fork+0x572/0x950 kernel/cgroup/cgroup.c:6520
 copy_process+0x11e7/0x2090 kernel/fork.c:2370
 create_io_thread+0x6d/0xa0 kernel/fork.c:2629
 create_io_worker+0x119/0x310 io_uring/io-wq.c:820
 io_wqe_create_worker io_uring/io-wq.c:310 [inline]
 io_wqe_enqueue+0x405/0x500 io_uring/io-wq.c:936
 io_wq_enqueue+0x31/0x40 io_uring/io-wq.c:960
 io_queue_iowq+0x1d2/0x2f0 io_uring/io_uring.c:475
 io_queue_sqe_fallback+0x82/0xe0 io_uring/io_uring.c:2059
 io_submit_sqe+0x8bc/0xa50 io_uring/io_uring.c:2281
 io_submit_sqes+0x274/0x550 io_uring/io_uring.c:2397
 __do_sys_io_uring_enter io_uring/io_uring.c:3345 [inline]
 __se_sys_io_uring_enter+0x1ef/0xc40 io_uring/io_uring.c:3277
 __x64_sys_io_uring_enter+0x74/0x80 io_uring/io_uring.c:3277
 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 0xffffffff86eb6458 of 8 bytes by task 2835 on cpu 0:
 data_make_reusable kernel/printk/printk_ringbuffer.c:590 [inline]
 data_push_tail+0x10f/0x440 kernel/printk/printk_ringbuffer.c:675
 data_alloc+0xbc/0x2b0 kernel/printk/printk_ringbuffer.c:1046
 prb_reserve+0x897/0xbd0 kernel/printk/printk_ringbuffer.c:1555
 vprintk_store+0x50b/0xad0 kernel/printk/printk.c:2282
 vprintk_emit+0xcc/0x430 kernel/printk/printk.c:2338
 vprintk_default+0x22/0x30 kernel/printk/printk.c:2368
 vprintk+0x7f/0x90 kernel/printk/printk_safe.c:50
 _printk+0x76/0xa0 kernel/printk/printk.c:2378
 __nla_validate_parse+0x155a/0x1970 lib/nlattr.c:612
 __nla_parse+0x3c/0x50 lib/nlattr.c:697
 nla_parse_nested_deprecated include/net/netlink.h:1280 [inline]
 __rtnl_newlink net/core/rtnetlink.c:3506 [inline]
 rtnl_newlink+0x438/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

value changed: 0x00000000ffffe280 -> 0x00000000ffffed89

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 2835 Comm: syz-executor.2 Not tainted 6.2.0-rc3-syzkaller-00008-g1fe4fd6f5cad-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
==================================================================
netlink: 'syz-executor.2': attribute type 5 has an invalid length.
syz-executor.2 (2835) used greatest stack depth: 9248 bytes left

Crashes (87):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2023/01/09 03:32 upstream 1fe4fd6f5cad 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/12/27 23:55 upstream 1b929c02afd3 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/12/24 16:20 upstream 51094a24b85e 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/12/04 13:12 upstream c2bf05db6c78 e080de16 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/11/20 12:57 upstream fe24a97cf254 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/11/03 16:52 upstream 8e5423e991e8 7a2ebf95 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/10/15 11:20 upstream 9c9155a3509a 67cb024c .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/09/19 02:00 upstream 38eddeedbbea dd9a85ff .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/09/10 10:03 upstream ce888220d5c7 356d8217 .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/09/02 00:27 upstream 2880e1a175b9 86c46e46 .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/08/11 14:40 upstream ffcf9c5700e4 787ed7e0 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/08/09 14:37 upstream eb555cb5b794 da700653 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/08/09 02:39 upstream 3466f49dd0dd da700653 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/08/05 18:50 upstream c040862bfbd9 a65a7ce9 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/08/01 14:41 upstream 3d7cb6b04c3f fef302b1 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/07/26 04:21 upstream e0dccc3b76fb 34795c51 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/07/19 00:21 upstream 80e19f34c288 ff988920 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/07/15 20:26 upstream e5d523f1ae8f 5d921b08 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/07/02 00:48 upstream b336ad598a3b 1434eec0 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/06/25 01:01 upstream 38bc4ac43168 a371c43c .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/06/23 00:52 upstream 3abc3ae553c7 912f5df7 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/06/16 06:27 upstream 30306f6194ca 1719ee24 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/06/08 07:26 upstream 9886142c7a22 b2706118 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/06/03 05:25 upstream 58f9d52ff689 02dddea8 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/05/31 12:01 upstream 8ab2afa23bd1 af70c3a9 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/05/14 06:27 upstream f2dd007445b1 107f6434 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/04/30 19:24 upstream 8013d1d3d2e3 2df221f6 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/04/24 16:43 upstream 22da5264abf4 131df97d .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/04/08 03:57 upstream 42e7a03d3bad c6ff3e05 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/03/28 11:05 upstream f82da161ea75 89bc8608 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/03/19 12:11 upstream 34e047aa16c0 e2d91b1d .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/03/11 00:23 upstream 1db333d9a51f 9e8eaa75 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/03/09 06:37 upstream 92f90cc9fe0e 9e8eaa75 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/03/08 18:08 upstream ea4424be1688 7bdd8b2c .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/02/26 06:19 upstream c47658311d60 45a13a73 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/02/13 11:28 upstream b81b1829e7e3 8b9ca619 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/01/25 13:43 upstream dd81e1c7d5fb 2cbffd88 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/01/18 14:17 upstream e3a8b6a1e70c 731a2d23 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/01/17 13:51 upstream 0c947b893d69 731a2d23 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/01/15 22:54 upstream a33f5c380c4b 723cfaf0 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/01/05 08:22 upstream c9e6606c7fe9 0a2584dd .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/01/04 14:11 upstream c9e6606c7fe9 7f723fbe .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/12/28 21:51 upstream ecf71de775a0 76c8cf06 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/12/18 05:59 upstream 9eaa88c7036e 44068e19 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/11/28 15:08 upstream 3498e7f2bb41 63eeac02 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/11/20 22:46 upstream 61564e7b3abc 4eb20a4e .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/11/09 16:31 upstream d2f38a3c6507 59bcaf9a .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/11/07 18:51 upstream b5013d084e03 4c1be0be .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/11/03 11:59 upstream 56d33754481f 17f3edd2 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/06/22 04:08 upstream a96bfed64c89 aba2b2fb .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/06/20 04:47 upstream 913ec3c22ef4 aba2b2fb .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/06/16 14:08 upstream 94f0b2d4a1d0 c06f97ad .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/06/12 15:30 upstream ad347abe4a98 1ba81399 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/06/09 15:47 upstream 368094df48e6 84fe5d96 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/06/07 17:28 upstream 614124bea77e e59537be .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/05/31 13:01 upstream 8124c8a6b353 032639db .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/05/15 17:49 upstream 25a1298726e9 93f844de .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/05/13 17:17 upstream c06a2ba62fc4 ecb594cb .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/05/08 02:19 upstream 1ad77a05cfae bc5434be .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/04/29 14:21 upstream d72cd4ad4174 77e2b668 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/04/27 11:56 upstream 4a0225c3d208 805b5003 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/04/23 16:12 upstream 18a3c5f7abfd 17f0b706 .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/04/15 11:34 upstream 7f75285ca572 fcdb12ba .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/04/06 09:07 upstream 0a50438c8436 6a81331a .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/04/04 09:08 upstream 2023a53bdf41 6a81331a .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/03/18 17:57 upstream 6417f03132a6 7216542e .config console log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/03/15 04:27 upstream 75013c6c52d8 cc1cff8f .config console log report info KCSAN: data-race in data_alloc / data_push_tail
* Struck through repros no longer work on HEAD.