{"push_id":777242912,"size":1,"distinct_size":1,"ref":"refs/heads/tsan-fixes","head":"7e0718b2b076b18c4df89c36b0de41e8e7104d9b","before":"7f099b9c317f1daf2f200861d9ff9cc8dc3c6018","commits":[{"sha":"7e0718b2b076b18c4df89c36b0de41e8e7104d9b","author":{"email":"248dd96652a047b675d8f9c63c018de72461a2f7@google.com","name":"Andrey Konovalov"},"message":"Fix race in __tty_buffer_request_room\n\n==================================================================\nThreadSanitizer: data-race in __tty_buffer_request_room\n\nWrite of size 4 by thread T217 (K2506, CPU0):\n [<ffffffff8165306e>] __tty_buffer_request_room+0x16e/0x260 drivers/tty/tty_buffer.c:293\n [<ffffffff8165333c>] tty_insert_flip_string_fixed_flag+0x6c/0x150 drivers/tty/tty_buffer.c:332\n [<     inlined    >] pty_write+0x79/0xc0 tty_insert_flip_string include/linux/tty_flip.h:35\n [<ffffffff816559c9>] pty_write+0x79/0xc0 drivers/tty/pty.c:110\n [<ffffffff8164a7b9>] n_tty_write+0x659/0x880 drivers/tty/n_tty.c:2424\n [<     inlined    >] tty_write+0x220/0x400 do_tty_write drivers/tty/tty_io.c:1159\n [<ffffffff816450e0>] tty_write+0x220/0x400 drivers/tty/tty_io.c:1245\n [<ffffffff8125d47f>] __vfs_write+0x5f/0x1e0 fs/read_write.c:489\n [<ffffffff8125df16>] vfs_write+0xf6/0x2a0 fs/read_write.c:538\n [<     inlined    >] SyS_write+0x6b/0xd0 SYSC_write fs/read_write.c:585\n [<ffffffff8125f4ab>] SyS_write+0x6b/0xd0 fs/read_write.c:577\n [<ffffffff81eb076e>] entry_SYSCALL_64_fastpath+0x12/0x71 arch/x86/entry/entry_64.S:186\nDBG: cpu_ptr = ffff88063fc1fea8\n\nPrevious read of size 4 by thread T505 (K502, CPU1):\n [<ffffffff81653685>] flush_to_ldisc+0xd5/0x2f0 drivers/tty/tty_buffer.c:497\n [<ffffffff810b06ce>] process_one_work+0x28e/0x710 kernel/workqueue.c:2036\n [<ffffffff810b1299>] worker_thread+0xb9/0x750 kernel/workqueue.c:2170\n [<ffffffff810b9c61>] kthread+0x161/0x180 kernel/kthread.c:209\n [<ffffffff81eb0b5f>] ret_from_fork+0x3f/0x70 arch/x86/entry/entry_64.S:526\nDBG: cpu_ptr = 0\n\nDBG: addr: ffff880192e61010\nDBG: first offset: 0, second offset: 0\nDBG: T217 clock: {T217: 1119922, T505: 424072}\nDBG: T505 clock: {T505: 424540}\n==================================================================","distinct":true,"url":"https://api.github.com/repos/google/ktsan/commits/7e0718b2b076b18c4df89c36b0de41e8e7104d9b"}]}