NetBSD-Bugs archive

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

kern/56954: Kernel panic when attempting copying a file from a thumb-stick



>Number:         56954
>Category:       kern
>Synopsis:       Kernel panic when attempting copying a file from a thumb-stick
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 05 23:50:00 +0000 2022
>Originator:     Germain Le Chapelain
>Release:        Daily August 1st ?
>Organization:
Lanvaux Computer Games Limited
>Environment:
NetBSD germ2.lanvaux.fr 9.99.99 NetBSD 9.99.99 (GENERIC) #0: Mon Aug  1 01:32:15 UTC 2022  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64

>Description:
Upon intending to copy a file from a USB drive I was met with the following kernel panic:

crash: _kvm_kvatop(0)
Kernel compiled without options LOCKDEBUG.
System panicked: kernel diagnostic assertion "(flags & UFP_NOBUSY) != 0 || rw_write_held(uobj->vmobjlock)" failed: file "/usr/src/sys/uvm/uvm_vnode.c", line 304
Backtrace from time of crash is available.
crash> bt
__kernel_end() at 0
kern_reboot() at sys_reboot
vpanic() at vpanic+0x18d
kern_assert() at __x86_indirect_thunk_rax
uvn_findpage() at uvn_findpage+0x1f1
uvn_findpages() at uvn_findpages+0xdd
genfs_compat_getpages() at genfs_compat_getpages+0x19d
VOP_GETPAGES() at VOP_GETPAGES+0x80
uvn_get() at uvn_get+0xbe
uvm_fault_internal() at uvm_fault_internal+0x10f1
trap() at trap+0x480
--- trap (number 6) ---
copyin() at copyin+0x2f
ubc_uiomove() at ubc_uiomove+0x162
ffs_write() at ffs_write+0x262
VOP_WRITE() at VOP_WRITE+0xd8
vn_write() at vn_write+0xe0
dofilewrite() at dofilewrite+0x80
sys_write() at sys_write+0x49
syscall() at syscall+0x196
--- syscall (number 4) ---
syscall+0x196:

>How-To-Repeat:
So far I know, format a GPT thumb stick (relatively large: 57GB.

I had to use diskpart under Windows bc I was already having troubles bringing it up in the File Explorer to get my file from there.)


In dmesg, I spotted sd0/dk3 being created

As root:

mount /dev/dk3 /mnt/key
ctrl-d (exit root)
cd /mnt/key
cp key-thinkcentre ~

Crash <-
>Fix:
N/A



Home | Main Index | Thread Index | Old Index