On Tue, Apr 26, 2016 at 11:58:53 +0000, 梁天柱 wrote: > Hi list, > > I try to modify the iSCSI target module to send the R/W IO request to a > middleware. When I added some code to sbd.c (as attached), the build > process went on quite well and I got a new version of SmartOS install > package. However, when I tried to install it, there was an error message > (see attached picture) followed by a reboot of the system. I have no > kernel development experience. Can anyone point out the problems in my > code?
The problem is exactly what the panic message says: something is overwriting parts of the stack. It turns out that it's in sbd_ebs_conns_init(), where you make a struct sockaddr_in variable on the stack and then bzero it as a sockaddr_in6. sockaddr_in is 16 bytes, sockaddr_in6 is 32 bytes. Jeff. > I’ve spent several days on it. Thank you in advance for your kind help! > -- Ready; T=0.01/0.01 09:53:07 ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
