NetBSD-Bugs archive

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

Re: port-sh3/56401: kernel panic in tmpfs_write



The following reply was made to PR port-sh3/56401; it has been noted by GNATS.

From: Martin Husemann <martin%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: port-sh3/56401: kernel panic in tmpfs_write
Date: Wed, 22 Sep 2021 08:03:24 +0000

 This fixes PR 56401
 
 ----- Forwarded message from Rin Okuyama <rin%netbsd.org@localhost> -----
 
 Date: Wed, 22 Sep 2021 05:42:19 +0000
 From: Rin Okuyama <rin%netbsd.org@localhost>
 To: source-changes%NetBSD.org@localhost
 Subject: CVS commit: src/sys/kern
 X-Mailer: log_accum
 
 Module Name:	src
 Committed By:	rin
 Date:		Wed Sep 22 05:42:19 UTC 2021
 
 Modified Files:
 	src/sys/kern: kern_ksyms.c
 
 Log Message:
 ksymsmmap: Add missing uao_reference(9) call for ks->ks_uobj.
 
 Fix failure for savecore(8) and subsequent kernel panic, introduced to
 kern_ksyms.c rev 1.03, at least for sh3 and alpha.
 
 For sh3 and alpha, savecore(8) supports coff and ecoff, respectively, via
 libkvm via nlist(3). nlist(3) routines for coff and ecoff use mmap(2) and
 munmap(2) for /dev/ksyms.
 
 This munmap(2) decrements reference count for ks->ks_uobj. Unless it is
 incremented in ksymsmmap(), ks->ks_uobj will be freed unexpectedly.
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.104 -r1.105 src/sys/kern/kern_ksyms.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 
 
 ----- End forwarded message -----
 


Home | Main Index | Thread Index | Old Index