linux/drivers/scsi/bfa
Arnd Bergmann 923282532b scsi: bfa: use 64-bit times in bfa_aen_entry_s ABI
bfa_aen_entry_s is passed through a netlink socket that can be read by
either 32-bit or 64-bit processes, but the data format is different
between the two on current implementations.

Originally, this was using a 'struct timeval', which also suffers from
getting redefined with a new libc implementation.

With this patch, the layout gets fixed to having two 64-bit members for
the time, making it the same on 32-bit kernels and 64-bit kernels
running either compat or native user space including x32.

Provided that the new header file gets used to recompile any 32-bit
application binaries, this will fix running those on a 64-bit kernel
(with or without this patch) e.g. in a container environment, and it
will make binaries work that will be built against a future 32-bit glibc
that uses a 64-bit time_t, and avoid the y2038 overflow there.

However, this also breaks compatibility with any existing 32-bit binary
running on a native 32-bit kernel, those must be recompiled against the
new header, which in turn makes them incompatible with older kernels
unless the same change gets applied there.

Obviously this patch should only be applied when the benefits outweigh
the possible breakage. I'm posting it under the assumption that there
are no open-source tools using the netlink interface, and that users of
the binaries provided by qlogic for SLES10/11 and RHEL5/6 are not
actually being used on new future systems with 32-bit x86 kernels.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Anil Gurumurthy <Anil.Gurumurthy@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-12-04 20:32:52 -05:00
..
bfa.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_core.c scsi: bfa: remove bfa_module_s madness 2017-04-19 22:12:14 -04:00
bfa_cs.h scsi: bfa: use ktime_get_real_ts64 for firmware timestamp 2017-12-04 20:32:52 -05:00
bfa_defs.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_defs_fcs.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_defs_svc.h scsi: bfa: use 64-bit times in bfa_aen_entry_s ABI 2017-12-04 20:32:52 -05:00
bfa_fc.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_fcbuild.c bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_fcbuild.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_fcpim.c scsi: bfa: document overflow of io_profile_start_time 2017-12-04 20:32:52 -05:00
bfa_fcpim.h scsi: bfa: document overflow of io_profile_start_time 2017-12-04 20:32:52 -05:00
bfa_fcs.c scsi: bfa: remove bfa_fcs_mod_s 2017-01-09 23:34:58 -05:00
bfa_fcs.h scsi: bfa: remove bfa_fcs_mod_s 2017-01-09 23:34:58 -05:00
bfa_fcs_fcpim.c bfa: fix bfa_fcb_itnim_alloc() error handling 2016-05-09 22:18:42 -04:00
bfa_fcs_lport.c scsi: bfa: use designated initializers 2017-04-21 10:11:34 -04:00
bfa_fcs_rport.c bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_hw_cb.c bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_hw_ct.c bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_ioc.c scsi: bfa: improve bfa_ioc_send_enable/disable data 2017-12-04 20:32:52 -05:00
bfa_ioc.h scsi: bfa: turn bfa_mem_{kva,dma}_setup into inline functions 2016-11-21 22:28:17 -05:00
bfa_ioc_cb.c bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_ioc_ct.c bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_modules.h scsi: bfa: remove bfa_module_s madness 2017-04-19 22:12:14 -04:00
bfa_plog.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfa_port.c scsi: bfa: use proper time accessor for stats_reset_time 2017-12-04 20:32:52 -05:00
bfa_port.h scsi: bfa: use proper time accessor for stats_reset_time 2017-12-04 20:32:52 -05:00
bfa_svc.c scsi: bfa: replace bfa_get_log_time() with ktime_get_real_seconds() 2017-12-04 20:32:52 -05:00
bfa_svc.h scsi: bfa: use proper time accessor for stats_reset_time 2017-12-04 20:32:52 -05:00
bfad.c treewide: setup_timer() -> timer_setup() 2017-11-21 15:57:07 -08:00
bfad_attr.c bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfad_bsg.c scsi: bfa: document overflow of io_profile_start_time 2017-12-04 20:32:52 -05:00
bfad_bsg.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
bfad_debugfs.c scsi: bfa: integer overflow in debugfs 2017-10-16 22:35:13 -04:00
bfad_drv.h treewide: setup_timer() -> timer_setup() 2017-11-21 15:57:07 -08:00
bfad_im.c scsi: bfa: move bus reset to target reset 2017-08-25 17:21:10 -04:00
bfad_im.h scsi: bfa: try to sanitize vendor netlink events 2017-12-04 20:32:52 -05:00
bfi.h scripts/spelling.txt: add "fimware" misspelling 2016-05-19 19:12:14 -07:00
bfi_ms.h scripts/spelling.txt: add "aligment" pattern and fix typo instances 2017-02-27 18:43:46 -08:00
bfi_reg.h bfa: File header and user visible string changes 2015-12-02 17:07:38 -05:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00