lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <50AB198B.1030000@infradead.org>
Date:	Mon, 19 Nov 2012 21:47:55 -0800
From:	Randy Dunlap <rdunlap@...radead.org>
To:	"Volodin Arkady \"Enforta\"" <a.volodin@...orta.com>
CC:	linux-kernel@...r.kernel.org
Subject: Re: 3.2.34 kernel bug: some SCSI definitions missing

On 11/18/2012 10:34 PM, Volodin Arkady "Enforta" wrote:

> Hi there!
> Looks like it is bug in scsi.h with missing definitions in 3.2.34.
> I compared scsi.h with one in 3.2.29 kernel and there are lots of definitions missing in 3.2.34:
> 18014 bytes in old file and only 7037 in new one.
> 


Yet include/scsi/scsi.h contains defines for READ_16, WRITE_16, VERIFY_16,
etc., and I had no problems building allmodconfig on i386 and x86_64.

If the problem is config-specific, you should include your
kernel .config file.

>   CC      block/scsi_ioctl.o
> block/scsi_ioctl.c:1:0: warning: SSE instruction set disabled, using 387 arithmetics
> block/scsi_ioctl.c: In function 'blk_set_cmd_filter_defaults':
> block/scsi_ioctl.c:124:12: error: 'READ_16' undeclared (first use in this function)
> block/scsi_ioctl.c:124:12: note: each undeclared identifier is reported only once for each function it appears in
> block/scsi_ioctl.c:135:12: error: 'VERIFY_16' undeclared (first use in this function)
> block/scsi_ioctl.c:136:12: error: 'REPORT_LUNS' undeclared (first use in this function)
> block/scsi_ioctl.c:137:12: error: 'SERVICE_ACTION_IN' undeclared (first use in this function)
> block/scsi_ioctl.c:139:12: error: 'MAINTENANCE_IN' undeclared (first use in this function)
> block/scsi_ioctl.c:174:12: error: 'WRITE_16' undeclared (first use in this function)
> block/scsi_ioctl.c: In function 'blk_complete_sghdr_rq':
> block/scsi_ioctl.c:257:2: error: implicit declaration of function 'status_byte'
> block/scsi_ioctl.c:258:2: error: implicit declaration of function 'msg_byte'
> block/scsi_ioctl.c:259:2: error: implicit declaration of function 'host_byte'
> block/scsi_ioctl.c:260:2: error: implicit declaration of function 'driver_byte'
> block/scsi_ioctl.c: In function 'sg_scsi_ioctl':
> block/scsi_ioctl.c:443:6: error: dereferencing pointer to incomplete type
> block/scsi_ioctl.c:443:6: error: dereferencing pointer to incomplete type
> block/scsi_ioctl.c:443:6: error: dereferencing pointer to incomplete type
> block/scsi_ioctl.c:443:6: error: dereferencing pointer to incomplete type
> block/scsi_ioctl.c:443:6: error: dereferencing pointer to incomplete type
> block/scsi_ioctl.c:443:6: error: dereferencing pointer to incomplete type
> block/scsi_ioctl.c:443:6: error: dereferencing pointer to incomplete type
> block/scsi_ioctl.c:443:2: warning: type defaults to 'int' in type name
> block/scsi_ioctl.c:445:6: error: dereferencing pointer to incomplete type
> block/scsi_ioctl.c:445:6: error: dereferencing pointer to incomplete type
> block/scsi_ioctl.c:445:6: error: dereferencing pointer to incomplete type
> block/scsi_ioctl.c:445:6: error: dereferencing pointer to incomplete type
> block/scsi_ioctl.c:445:6: error: dereferencing pointer to incomplete type
> block/scsi_ioctl.c:445:6: error: dereferencing pointer to incomplete type
> block/scsi_ioctl.c:445:6: error: dereferencing pointer to incomplete type
> block/scsi_ioctl.c:445:2: warning: type defaults to 'int' in type name
> block/scsi_ioctl.c:449:6: error: dereferencing pointer to incomplete type
> block/scsi_ioctl.c:449:6: error: dereferencing pointer to incomplete type
> block/scsi_ioctl.c:449:6: error: dereferencing pointer to incomplete type
> block/scsi_ioctl.c:449:6: error: dereferencing pointer to incomplete type
> block/scsi_ioctl.c:449:6: error: dereferencing pointer to incomplete type
> block/scsi_ioctl.c:449:6: error: dereferencing pointer to incomplete type
> block/scsi_ioctl.c:449:6: error: dereferencing pointer to incomplete type
> block/scsi_ioctl.c:449:2: warning: type defaults to 'int' in type name
> block/scsi_ioctl.c:462:2: error: implicit declaration of function 'COMMAND_SIZE'
> block/scsi_ioctl.c:469:33: error: dereferencing pointer to incomplete type
> block/scsi_ioctl.c:472:42: error: dereferencing pointer to incomplete type
> block/scsi_ioctl.c:485:17: error: 'FORMAT_UNIT_TIMEOUT' undeclared (first use in this function)
> block/scsi_ioctl.c:489:17: error: 'START_STOP_TIMEOUT' undeclared (first use in this function)
> block/scsi_ioctl.c:492:17: error: 'MOVE_MEDIUM_TIMEOUT' undeclared (first use in this function)
> block/scsi_ioctl.c:495:17: error: 'READ_ELEMENT_STATUS_TIMEOUT' undeclared (first use in this function)
> block/scsi_ioctl.c:498:17: error: 'READ_DEFECT_DATA_TIMEOUT' undeclared (first use in this function)
> block/scsi_ioctl.c:507:9: error: 'DRIVER_ERROR' undeclared (first use in this function)
> block/scsi_ioctl.c:524:24: error: dereferencing pointer to incomplete type
> block/scsi_ioctl.c:528:23: error: dereferencing pointer to incomplete type
> block/scsi_ioctl.c: In function 'scsi_cmd_ioctl':
> block/scsi_ioctl.c:629:28: error: 'SG_DXFER_UNKNOWN' undeclared (first use in this function)
> block/scsi_ioctl.c:647:12: warning: assignment from incompatible pointer type
> block/scsi_ioctl.c: In function 'scsi_verify_blk_ioctl':
> block/scsi_ioctl.c:705:7: error: 'SCSI_IOCTL_GET_PCI' undeclared (first use in this function)
> make[1]: *** [block/scsi_ioctl.o] Error 1
> make: *** [block] Error 2


-- 
~Randy
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ