Source-Changes-D archive

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

Re: CVS commit: src/sys



On 01/16/17 09:28, Ryo Shimizu wrote:
Module Name:	src
Committed By:	ryo
Date:		Mon Jan 16 09:28:41 UTC 2017

Modified Files:
	src/sys/kern: init_main.c
	src/sys/net: pfil.c pfil.h
	src/sys/rump/net/lib/libnet: net_component.c

Log Message:
Make pfil(9) MP-safe (applying psref(9))

My bpi/rpi (and probably other machines) don't boot after this change


pserialize_perform's kpause never completes as softclk threads are blocked (forever) on softnet_lock


~Stopped in pid 0.2 (system) at  netbsd:cpu_Debugger+0x4: bx      r14
db{0}> ps/w
PID   LID          COMMAND     EMUL  PRI WAIT-MSG    WAIT-CHANNEL
1        1             init   netbsd   42 lbolt        80670c80
0       56           system   netbsd   96 npfgccv      bad78204
0       55           system   netbsd  222 rt_free      bad8f584
0       54           system   netbsd   96 unpgc        80963a48
0       53           system   netbsd  222 nd6_timer    bad8f744
0       52           system   netbsd  222 rt_timer     bad8f804
0       51           system   netbsd   96              0
0       50           system   netbsd  125 vmem_rehash  bad8f904
0       49           system   netbsd   63 vcmbox0      bad8f9c4
0       48           system   netbsd  123 mmctaskq     bac4efd4
0       40           system   netbsd   96 usbdly       bac3ee20
0       39           system   netbsd   96 usbtsk       80674fb0
0       38           system   netbsd   96 usbtsk       80674f90
0       37           system   netbsd   63 dwc2         bad8fac4
0       36           system   netbsd   96 iicintr      baf94cd8
0       35           system   netbsd   96 iicintr      baf94e58
0       34           system   netbsd  127 xcall        bad5b080
0       33           system   netbsd  223              0
0       32           system   netbsd  220 tstile       bafa1f40
0       31           system   netbsd  221              0
0       30           system   netbsd  222              0
0    >  29           system   netbsd    0              0
0       28           system   netbsd  127 xcall        bad5b880
0       27           system   netbsd  223              0
0       26           system   netbsd  220              0
0       25           system   netbsd  221              0
0       24           system   netbsd  222              0
0    >  23           system   netbsd    0              0
0       22           system   netbsd  127 xcall        bafa2080
0       21           system   netbsd  223              0
0       20           system   netbsd  220              0
0       19           system   netbsd  221              0
0       18           system   netbsd  222              0
0    >  17           system   netbsd    0              0
0       16           system   netbsd   96 smtaskq      8094a438
0       15           system   netbsd   96 crypto_w     80949a68
0       14           system   netbsd   63 pmfsuspend   bad8fe44
0       13           system   netbsd   63 pmfevent     bad8ff04
0       12           system   netbsd   96 sopendfr     80963a0c
0       11           system   netbsd   63 nfssilly     baeea684
0       10           system   netbsd  125 cachegc      baefa580
0        9           system   netbsd  125 vdrain       80671d80
0        8           system   netbsd  125 mod_unld     8095b554
0        7           system   netbsd  127 xcall        80571090
0        6           system   netbsd  223              0
0        5           system   netbsd  220 tstile       bafa1f40
0        4           system   netbsd  221              0
0        3           system   netbsd  222              0
0    >   2           system   netbsd    0              0
0        1           system   netbsd   42 psrlz        8059fb00
db{0}> ps/l
PID    LID S CPU     FLAGS       STRUCT LWP *               NAME WAIT
1        1 3   2         0           bac028c0               init lbolt
0       56 3   3       200           bac02600            npfgc-0 npfgccv
0       55 3   3       200           bac02b80            rt_free rt_free
0       54 3   3       200           bac02e40              unpgc unpgc
0       53 3   3       200           bac03100          nd6_timer nd6_timer
0       52 3   3       200           bac3e320           rt_timer rt_timer
0       51 5   2       200           bac033c0           (zombie)
0       50 3   0       200           bac03940        vmem_rehash vmem_rehash
0       49 3   1       200           bac3e060            vcmbox0 vcmbox0
0       48 3   0       200           bac03680             sdmmc0 mmctaskq
0       40 3   3       200           bac3ee20         configintr usbdly
0       39 3   0       200           bac3f0e0         usbtask-dr usbtsk
0       38 3   0       200           bac3f3a0         usbtask-hc usbtsk
0       37 3   2       200           bac3f660               dwc2 dwc2
0       36 3   0       200           bac3f920               iic1 iicintr
0       35 3   0       200           bac3fbe0               iic0 iicintr
0       34 3   3       200           bad52040            xcall/3 xcall
0       33 1   3       200           bad52300          softser/3
0       32 3   3       200           bad525c0          softclk/3 tstile
0       31 1   3       200           bad52880          softbio/3
0       30 1   3       200           bad52b40          softnet/3
0    >  29 7   3       201           bad52e00             idle/3
0       28 3   2       200           bad530c0            xcall/2 xcall
0       27 1   2       200           bad53380          softser/2
0       26 1   2       200           bad53640          softclk/2
0       25 1   2       200           bad53900          softbio/2
0       24 1   2       200           bad53bc0          softnet/2
0    >  23 7   2       201           bad8a020             idle/2
0       22 3   1       200           bad8a2e0            xcall/1 xcall
0       21 1   1       200           bad8a5a0          softser/1
0       20 1   1       200           bad8a860          softclk/1
0       19 1   1       200           bad8ab20          softbio/1
0       18 1   1       200           bad8ade0          softnet/1
0    >  17 7   1       201           bad8b0a0             idle/1
0       16 3   2       200           bad8b360             sysmon smtaskq
0       15 3   0       200           bad8b620          cryptoret crypto_w
0       14 3   1       200           bad8b8e0         pmfsuspend pmfsuspend
0       13 3   0       200           bad8bba0           pmfevent pmfevent
0       12 3   0       200           baefa000         sopendfree sopendfr
0       11 3   1       200           baefa2c0           nfssilly nfssilly
0       10 3   0       200           baefa580            cachegc cachegc
0        9 3   0       200           baefa840             vdrain vdrain
0        8 3   0       200           baefab00          modunload mod_unld
0        7 3   0       200           baefadc0            xcall/0 xcall
0        6 1   0       200           baefb080          softser/0
0        5 3   0       200           baefb340          softclk/0 tstile
0        4 1   0       200           baefb600          softbio/0
0        3 1   0       200           baefb8c0          softnet/0
0    >   2 7   0       201           baefbb80             idle/0
0        1 3   3       200           8059fb00            swapper psrlz
db{0}> bt/a baefb340
trace: pid 0 lid 5 at 0xbaef1df4
0xbaef1df4: netbsd:mi_switch+0x10
0xbaef1e24: netbsd:sleepq_block+0xb4
0xbaef1e64: netbsd:turnstile_block+0x33c
0xbaef1ec4: netbsd:mutex_enter+0x2ac
0xbaef1f2c: netbsd:key_timehandler+0x5c
0xbaef1f64: netbsd:callout_softclock+0x3ac
0xbaef1fac: netbsd:softint_dispatch+0xd4
Bad frame pointer: 0x8099ff6c
db{0}> bt/a bad525c0
trace: pid 0 lid 32 at 0xbad3be2c
0xbad3be2c: netbsd:mi_switch+0x10
0xbad3be5c: netbsd:sleepq_block+0xb4
0xbad3be9c: netbsd:turnstile_block+0x33c
0xbad3befc: netbsd:mutex_enter+0x2ac
0xbad3bf14: netbsd:frag6_fasttimo+0x24
0xbad3bf2c: netbsd:pffasttimo+0x58
0xbad3bf64: netbsd:callout_softclock+0x1a8
0xbad3bfac: netbsd:softint_dispatch+0xd4
Bad frame pointer: 0x809a5f54
db{0}> x/x bafa1f40
bafa1f40:       8059fb02
db{0}> x/x softnet_lock
netbsd:softnet_lock:    bafa1f40
db{0}> bt/a 8059fb00
trace: pid 0 lid 1 at 0x809a7dd4
0x809a7dd4: netbsd:mi_switch+0x10
0x809a7e04: netbsd:sleepq_block+0x16c
0x809a7e44: netbsd:kpause+0xfc
0x809a7e64: netbsd:pserialize_perform+0xfc
0x809a7ea4: netbsd:pfil_list_add+0x100
0x809a7ed4: netbsd:npf_pfil_register+0x148
0x809a7eec: netbsd:npf_modcmd+0x98
0x809a7f54: netbsd:module_do_builtin.isra.1+0x160
0x809a7f8c: netbsd:module_init_class+0x19c
0x809a7fec: netbsd:main+0x3c4
0x809a7ffc: netbsd:kernel_text+0x50
db{0}>



Home | Main Index | Thread Index | Old Index