NetBSD-Bugs archive

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

kern/57333: subr_kmem.c", line 429 kmem(9) should not be used from the interrupt context



>Number:         57333
>Category:       kern
>Synopsis:       subr_kmem.c", line 429 kmem(9) should not be used from the interrupt context
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 08 16:35:00 +0000 2023
>Originator:     Andrew
>Release:        NetBSD 10.0_BETA (GENERIC64) #0: Sat Apr  8 08:16:57 EDT 2023
>Organization:
>Environment:
NetBSD arm64 10.0_BETA NetBSD 10.0_BETA (GENERIC64) #0: Sat Apr  8 08:16:57 EDT 2023  cagney@kevin:/home/cagney/netbsd-build/10/evbarm64/sys/arch/evbarm/compile/GENERIC64 evbarm

>Description:
using tar to copy the contents of sd2e (ffs) on:

[   4.5469060] sd2 at scsibus2 target 0 lun 0: <TO Exter, nal USB 3.0, 0204> disk fixed
[   4.5569055] sd2: fabricating a geometry
[   4.5569055] sd2: 447 GB, 457862 cyl, 64 head, 32 sec, 512 bytes/sect x 937703088 sectors
[   4.5769080] sd2: fabricating a geometry

to sd0e(ffs):

[   3.4367925] sd0 at scsibus0 target 0 lun 0: <USB, SanDisk 3.2Gen1, 1.00> disk removable
[   3.4467949] sd0: 460 GB, 65535 cyl, 16 head, 63 sec, 512 bytes/sect x 965246976 sectors


[ 3575.1662302] panic: kernel diagnostic assertion "(!cpu_intr_p() && !cpu_softintr_p())" failed: file "/home/cagney/netbsd-build/10/src/sys/kern/subr_kmem.c", line 429 kmem(9) should not be used from the interrupt context
[ 3575.1662302] cpu0: Begin traceback...
[ 3575.1662302] trace fp ffffc0009a2977a0
[ 3575.1662302] fp ffffc0009a2977d0 vpanic() at ffffc0000058c338 netbsd:vpanic+0x178
[ 3575.1662302] fp ffffc0009a297830 kern_assert() at ffffc00000822028 netbsd:kern_assert+0x58
[ 3575.1662302] fp ffffc0009a2978c0 kmem_zalloc() at ffffc0000057e168 netbsd:kmem_zalloc+0x48
[ 3575.1662302] fp ffffc0009a2978f0 usb_block_allocmem() at ffffc00000189248 netbsd:usb_block_allocmem+0x148
[ 3575.1662302] fp ffffc0009a297950 usb_allocmem() at ffffc000001895c0 netbsd:usb_allocmem+0x12c
[ 3575.1662302] fp ffffc0009a2979b0 dwc2_assign_and_init_hc() at ffffc00000426acc netbsd:dwc2_assign_and_init_hc+0x4cc
[ 3575.1662302] fp ffffc0009a297a30 dwc2_hcd_select_transactions() at ffffc0000042761c netbsd:dwc2_hcd_select_transactions+0x15c
[ 3575.1662302] fp ffffc0009a297aa0 dwc2_release_channel() at ffffc0000042a140 netbsd:dwc2_release_channel+0xe0
[ 3575.1662302] fp ffffc0009a297ad0 dwc2_handle_hcd_intr() at ffffc0000042c7ec netbsd:dwc2_handle_hcd_intr+0xc48
[ 3575.1662302] fp ffffc0009a297b50 dwc2_intr() at ffffc00000421c24 netbsd:dwc2_intr+0xe4
[ 3575.1662302] fp ffffc0009a297b80 bcm2835_icu_intr() at ffffc000000207fc netbsd:bcm2835_icu_intr+0x1c
[ 3575.1662302] fp ffffc0009a297bb0 pic_dispatch() at ffffc0000000286c netbsd:pic_dispatch+0x4c
[ 3575.1662302] fp ffffc0009a297c00 pic_do_pending_ints() at ffffc00000002edc netbsd:pic_do_pending_ints+0x3ec
[ 3575.1662302] fp ffffc0009a297da8 cpu_idle() at ffffc000000b1a00 netbsd:cpu_idle+0x4c
[ 3575.1662302] fp ffffc0009a297df0 idle_loop() at ffffc00000528220 netbsd:idle_loop+0x1a0
[ 3575.1662302] tf ffffc0009a297ed0 el0_trap() at ffffc000000b6ff0 netbsd:el1_trap_exit+0x68
[ 3575.1662302] cpu0: End traceback...
[ 3575.1662302] rebooting...

>How-To-Repeat:
we'll see
>Fix:



Home | Main Index | Thread Index | Old Index