Re: [PATCH v3 1/2] tpm: tpm1_bios_measurements_next should increase position index

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 25, 2020 at 12:27:59PM +0200, Jarkko Sakkinen wrote:
> On Tue, Feb 25, 2020 at 09:26:08AM +0300, Vasily Averin wrote:
> > If .next function does not change position index,
> > following .show function will repeat output related
> > to current position index.
> > 
> > In case of /sys/kernel/security/tpm0/ascii_bios_measurements
> > and binary_bios_measurements:
> > 1) read after lseek beyound end of file generates whole last line.
> > 2) read after lseek to middle of last line generates
> > expected end of last line and unexpected whole last line once again.
> > 
> > Cc: stable@xxxxxxxxxxxxxxx
> > Fixes: 1f4aace60b0e ("fs/seq_file.c: simplify seq_file iteration code ...")
> > Link: https://bugzilla.kernel.org/show_bug.cgi?id=206283
> > Signed-off-by: Vasily Averin <vvs@xxxxxxxxxxxxx>
> 
> Thank alot!
> 
> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@xxxxxxxxxxxxxxx>

Applied both.

I'll try to squeeze these to v5.6.

/Jarkko



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux Kernel]     [Linux Kernel Hardening]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux