Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 0124F84F0F for ; Wed, 21 Jun 2023 20:48:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 6zzZ5DT5go2p for ; Wed, 21 Jun 2023 20:48:07 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 861CD84C86 for ; Wed, 21 Jun 2023 20:48:07 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 7DDC8FA89; Wed, 21 Jun 2023 20:48:07 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Wed, 21 Jun 2023 20:48:07 +0000 From: "Martin Husemann" Subject: CVS commit: [netbsd-8] src/sys/dev To: source-changes@NetBSD.org Approved: for-source-only Reply-To: martin@netbsd.org X-Mailer: log_accum Message-Id: <20230621204807.7DDC8FA89@cvs.NetBSD.org> Module Name: src Committed By: martin Date: Wed Jun 21 20:48:07 UTC 2023 Modified Files: src/sys/dev/isa [netbsd-8]: mcd.c src/sys/dev/pci [netbsd-8]: if_iwi.c src/sys/dev/raidframe [netbsd-8]: rf_netbsdkintf.c src/sys/dev/scsipi [netbsd-8]: ses.c Log Message: Pull up following revision(s) (requested by riastradh in ticket #1835): sys/dev/pci/if_iwi.c: revision 1.117 sys/dev/raidframe/rf_netbsdkintf.c: revision 1.401 sys/dev/scsipi/ses.c: revision 1.52 sys/dev/isa/mcd.c: revision 1.121 (all via patch) 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.116.10.1 -r1.116.10.2 src/sys/dev/isa/mcd.c cvs rdiff -u -r1.103.2.1 -r1.103.2.2 src/sys/dev/pci/if_iwi.c cvs rdiff -u -r1.350 -r1.350.2.1 src/sys/dev/raidframe/rf_netbsdkintf.c cvs rdiff -u -r1.50 -r1.50.8.1 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.