opnsense-src/sys
Ram Kishore Vegesna b9732f789d Remove accessing remote node and domain objects while processing cam actions.
Issue:
  ocs_fc(4) driver panics. It's induced by setting the port_state
sysctl to offline, then online, then offline, then online, and so
forth and so on in rapid succession.

Reason:
  While we set the port_state to online fc discovery will start and OS
is enumerating the target discs by calling ocs_action(),  then set the
port state to "offline" which deletes domain/sport/nodes.

  In ocs_action()->XPT_GET_TRAN_SETTINGS we are accessing the remote
node which can be invalid to get the wwpn, wwnn and port.

Fix:
  Removed accessing of remote node and domain in some ocs_action() cases.
  Populated the required values from ocs_fcport.
  This removes the dependency of node and domain structures while
processing XPT_PATH_INQ and XPT_GET_TRAN_SETTINGS.
   We will invalidate the target entries after the device lost
timeout(30 seconds).

Approved by: ken, mav
MFC after: 3 weeks
2019-01-11 15:59:24 +00:00
..
amd64 Fix errno values returned from DUMMY_XATTR linuxulator calls 2019-01-11 07:58:25 +00:00
arm Add a missing \n to a bootverbose printf. 2019-01-07 16:36:45 +00:00
arm64 Fix the location of td->td_frame at the top of the kernel stack. 2019-01-11 11:32:46 +00:00
bsm
cam Add NO_SYNC_CACHE quirk for PENTAX cameras 2019-01-08 20:55:02 +00:00
cddl Change ZFS quotas to return EINVAL when not present (matches man page). 2019-01-11 02:53:46 +00:00
compat Mechanical cleanup of epoch(9) usage in network stack. 2019-01-09 01:11:19 +00:00
conf Limit git history searches in newvers.sh 2019-01-04 18:38:27 +00:00
contrib Remove support for FreeBSD 9 kernel, which used to change byte order 2019-01-10 23:27:29 +00:00
crypto Generalize AES iov optimization 2018-12-13 04:40:53 +00:00
ddb
dev Remove accessing remote node and domain objects while processing cam actions. 2019-01-11 15:59:24 +00:00
dts arm64: allwinner: Fix pwm dtso 2018-12-12 21:10:34 +00:00
fs When loading an inode from disk, verify that its mode is valid. 2018-12-27 07:18:53 +00:00
gdb
geom Use g_handleattr() to reply to GEOM::candelete queries. 2019-01-02 15:52:16 +00:00
gnu Import DTS from Linux 4.20 2019-01-11 09:40:34 +00:00
i386 Fix errno values returned from DUMMY_XATTR linuxulator calls 2019-01-11 07:58:25 +00:00
isa
kern Simplify sosetopt() so that function has single return point. No 2019-01-10 00:25:12 +00:00
kgssapi
libkern
mips Add note to 32-bit mips smp config files documenting the status 2018-12-19 23:22:14 +00:00
modules dtb: allwinner: Add orangepi-pc to the build 2019-01-11 01:42:47 +00:00
net Remove recursive NET_EPOCH_ENTER() from sysctl_ifmalist(), missed in r342872. 2019-01-11 00:45:22 +00:00
net80211 net80211: fix panic when device is removed during initialization 2019-01-09 12:50:24 +00:00
netgraph Allow ng_nat to be attached to a ethernet interface directly via ng_ether(4) 2018-12-17 16:00:35 +00:00
netinet Fix getsockopt() for IP_OPTIONS/IP_RETOPTS. 2019-01-09 06:36:57 +00:00
netinet6 Remove unnecessary ifdef. With INVARIANTS all KASSERTs are empty statements, 2019-01-10 00:52:06 +00:00
netipsec Remove unused argument to priv_check_cred. 2018-12-11 19:32:16 +00:00
netpfil Relax requirement to packet size of CARP protocol and remove version check. 2019-01-11 01:54:15 +00:00
netsmb Remove unused argument to priv_check_cred. 2018-12-11 19:32:16 +00:00
nfs
nfsclient
nfsserver
nlm
ofed Mechanical cleanup of epoch(9) usage in network stack. 2019-01-09 01:11:19 +00:00
opencrypto Plug memory leak for AES_*_NIST_GMAC algorithms. 2018-12-13 08:59:51 +00:00
powerpc powerpc: Fix regression introduced in r342771 2019-01-07 19:39:31 +00:00
riscv Don't enable interrupts in init_secondary(). 2019-01-04 17:14:50 +00:00
rpc Add kern.rpc.gss.client_max, to make it possible to bump it easily. 2018-12-15 11:32:11 +00:00
security mac: reduce pessimization of sdt probe handling 2018-12-19 22:30:26 +00:00
sparc64 Remove iBCS2, part2: general kernel 2018-12-19 21:57:58 +00:00
sys Fix an old typo in the element status display bits: 2019-01-05 21:07:49 +00:00
teken
tests
tools make_dtb.sh: Use $CPP instead of assuming that cpp is in $PATH 2018-12-14 23:53:28 +00:00
ufs Move ASSERT_VOP_LOCKED to top of ufs_vinit() as it should be true 2018-12-30 06:03:20 +00:00
vm Fix regression in r331368, that broke dumping of UMA startup pages 2019-01-07 23:17:09 +00:00
x86 Expose threads-per-core and physical core count information 2019-01-04 18:31:17 +00:00
xdr
xen
Makefile