Re: [PATCH] tty: discard flip-buffer input for TCSAFLUSH

From: Greg KH

Date: Tue Oct 27 2026 - 05:31:05 EST


On Tue, Oct 27, 2026 at 01:21:20AM -0700, Hungyu Lin wrote:
> > What commit id does this fix? How was this tested?
>
> The missing flip-buffer flush is already present in 1da177e4c3f4
> (initial Git import). I could not identify its original introducing
> commit.
>
> Tested on ARM64 QEMU: an 8192-byte PTY write leaves 4097 stale bytes after
> TCSAFLUSH before the fix, and none afterwards. Built the ARM64 Image and
> 32-bit x86 tty_ioctl.o with GCC 13.3.0, W=1.

So as this is "just how things work" what is going to break with this
change? Why change this at all at this point in time? What needs this
fix?

And how was this found and tested?

thanks,

greg k-h