]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme: PEL need to check gen number for verification of collected log
authorSteven Seungcheol Lee <sc108.lee@samsung.com>
Thu, 26 Aug 2021 03:06:11 +0000 (12:06 +0900)
committerKeith Busch <kbusch@kernel.org>
Thu, 26 Aug 2021 15:04:46 +0000 (09:04 -0600)
commit7af853ec77dbda8b63f07e96874cb2ff01c99b96
tree12a7946c498696cb85b177399679b42268a80096
parent68f9786d57428609c6907108039085cf28767536
nvme: PEL need to check gen number for verification of collected log

+fix bug(unallocated pointer free)

If the Persistent Event Log is not read with a single Get Log Page command,
then host software should read the Generation Number field in the Persistent Event Log header after establishing a reporting context
but before reading the remainder of the log and then re-read the Generation Number field after it has read the entire log.
If the generation numbers do not match, then:
    • the reporting context may have been lost while reading the log;
    • the Persistent Event Log contents read may be invalid; and
    • host software should re-read the log.

Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
nvme.c