Source-Changes archive

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

CVS commit: src/sys/dev



Module Name:    src
Committed By:   riastradh
Date:           Thu Sep  9 23:26:37 UTC 2021

Modified Files:
        src/sys/dev/isa: mcd.c
        src/sys/dev/pci: if_iwi.c
        src/sys/dev/raidframe: rf_netbsdkintf.c
        src/sys/dev/scsipi: ses.c

Log Message:
sys/dev: Memset zero before copyout.

Just in case of uninitialized padding which would lead to kernel
stack disclosure.  If the compiler can prove the memset redundant
then it can optimize it away; otherwise better safe than sorry.

I think the iwi(4), mcd(4), and ses(4) changes actually plug leaks;
the raidframe(4) change probably doesn't (but doesn't hurt).


To generate a diff of this commit:
cvs rdiff -u -r1.120 -r1.121 src/sys/dev/isa/mcd.c
cvs rdiff -u -r1.116 -r1.117 src/sys/dev/pci/if_iwi.c
cvs rdiff -u -r1.400 -r1.401 src/sys/dev/raidframe/rf_netbsdkintf.c
cvs rdiff -u -r1.51 -r1.52 src/sys/dev/scsipi/ses.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index