Hello community, here is the log from the commit of package vhba-kmp for openSUSE:Factory checked in at 2014-10-05 20:31:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/vhba-kmp (Old) and /work/SRC/openSUSE:Factory/.vhba-kmp.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "vhba-kmp" Changes: -------- --- /work/SRC/openSUSE:Factory/vhba-kmp/vhba-kmp.changes 2014-07-17 06:58:32.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.vhba-kmp.new/vhba-kmp.changes 2014-10-05 20:31:54.000000000 +0200 @@ -1,0 +2,6 @@ +Thu Oct 2 14:14:22 UTC 2014 - jengelh@inai.de + +- Update to new upstream release 20140928 (cdemu-3.0.2) +* Work around a warning occurring in grsecurity kernels + +------------------------------------------------------------------- Old: ---- vhba-module-20140629.tar.bz2 New: ---- vhba-module-20140928.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ vhba-kmp.spec ++++++ --- /var/tmp/diff_new_pack.sVH89w/_old 2014-10-05 20:31:55.000000000 +0200 +++ /var/tmp/diff_new_pack.sVH89w/_new 2014-10-05 20:31:55.000000000 +0200 @@ -17,7 +17,7 @@ Name: vhba-kmp -Version: 20140629 +Version: 20140928 Release: 0 Summary: Virtual SCSI Host Bus Adapter License: GPL-2.0+ ++++++ vhba-module-20140629.tar.bz2 -> vhba-module-20140928.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vhba-module-20140629/Makefile new/vhba-module-20140928/Makefile --- old/vhba-module-20140629/Makefile 2014-06-29 15:25:04.000000000 +0200 +++ new/vhba-module-20140928/Makefile 2014-09-28 21:19:13.000000000 +0200 @@ -1,7 +1,4 @@ -VHBA_VERSION := 20140609 -PACKAGE := vhba-module-$(VHBA_VERSION) -DOCS := AUTHORS ChangeLog COPYING INSTALL NEWS README -DIST := vhba.c Makefile +VHBA_VERSION := 20140928 KERNELRELEASE ?= $(shell uname -r) KDIR ?= /lib/modules/$(KERNELRELEASE)/build @@ -9,38 +6,9 @@ obj-m := vhba.o ccflags-y := -DVHBA_VERSION=\"$(VHBA_VERSION)\" -Werror -clean-dirs := $(PACKAGE) -clean-files := $(PACKAGE).tar.gz $(PACKAGE).tar.bz2 - -export VHBA_VERSION - -.PHONY: default install dist modules modules_install clean dist-dir dist-gzip dist-bzip2 default: modules install: modules_install -dist: dist-xz modules modules_install clean: $(MAKE) -C $(KDIR) M=$(PWD) $@ - -dist-dir: - rm -rf $(PACKAGE) - install -m 755 -d $(PACKAGE) - install -m 644 -t $(PACKAGE) $(DIST) $(DOCS) - install -m 755 -d $(PACKAGE)/debian $(PACKAGE)/debian/patches $(PACKAGE)/debian/source - install -m 644 -t $(PACKAGE)/debian $(shell find debian -type f) - install -m 644 -t $(PACKAGE)/debian/patches $(shell find debian/patches -type f) - install -m 644 -t $(PACKAGE)/debian/source $(shell find debian/source -type f) - -dist-gzip: dist-dir - tar -c $(PACKAGE) | gzip > $(PACKAGE).tar.gz - rm -rf $(PACKAGE) - -dist-bzip2: dist-dir - tar -c $(PACKAGE) | bzip2 > $(PACKAGE).tar.bz2 - rm -rf $(PACKAGE) - -dist-xz: dist-dir - tar -c $(PACKAGE) | xz > $(PACKAGE).tar.xz - rm -rf $(PACKAGE) - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vhba-module-20140629/debian/changelog new/vhba-module-20140928/debian/changelog --- old/vhba-module-20140629/debian/changelog 2014-06-29 15:25:04.000000000 +0200 +++ new/vhba-module-20140928/debian/changelog 2014-09-28 21:19:13.000000000 +0200 @@ -1,3 +1,3 @@ -vhba-module (20140609-1) debian; urgency=low +vhba-module (20140928-1) debian; urgency=low * Initial Release. Closes: #705409 -- Henrik Stokseth <henrik@hshq.net> Sat, 05 Apr 2014 12:00:00 +0100 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vhba-module-20140629/vhba.c new/vhba-module-20140928/vhba.c --- old/vhba-module-20140629/vhba.c 2014-06-29 15:25:04.000000000 +0200 +++ new/vhba-module-20140928/vhba.c 2014-09-28 21:19:13.000000000 +0200 @@ -583,14 +583,19 @@ cmd->serial_number, res->status, res->data_len, scsi_sg_count(cmd)); if (res->status) { + unsigned char sense_stack[SCSI_SENSE_BUFFERSIZE]; + if (res->data_len > SCSI_SENSE_BUFFERSIZE) { scmd_warn(cmd, "truncate sense (%d < %d)", SCSI_SENSE_BUFFERSIZE, res->data_len); res->data_len = SCSI_SENSE_BUFFERSIZE; } - if (copy_from_user(cmd->sense_buffer, buf, res->data_len)) { + /* Copy via temporary buffer on stack in order to avoid problems + with PAX on grsecurity-enabled kernels */ + if (copy_from_user(sense_stack, buf, res->data_len)) { return -EFAULT; } + memcpy(cmd->sense_buffer, sense_stack, res->data_len); cmd->result = res->status; ++++++ vhba-no-werror.diff ++++++ --- /var/tmp/diff_new_pack.sVH89w/_old 2014-10-05 20:31:56.000000000 +0200 +++ /var/tmp/diff_new_pack.sVH89w/_new 2014-10-05 20:31:56.000000000 +0200 @@ -6,16 +6,16 @@ Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -Index: vhba-module-20140629/Makefile +Index: vhba-module-20140928/Makefile =================================================================== ---- vhba-module-20140629.orig/Makefile -+++ vhba-module-20140629/Makefile -@@ -8,7 +8,7 @@ KDIR ?= /lib/modules/$(KERNELRELEASE)/bu +--- vhba-module-20140928.orig/Makefile ++++ vhba-module-20140928/Makefile +@@ -5,7 +5,7 @@ KDIR ?= /lib/modules/$(KERNELRELEASE)/bu PWD ?= $(shell pwd) obj-m := vhba.o -ccflags-y := -DVHBA_VERSION=\"$(VHBA_VERSION)\" -Werror +ccflags-y := -DVHBA_VERSION=\"$(VHBA_VERSION)\" - clean-dirs := $(PACKAGE) - clean-files := $(PACKAGE).tar.gz $(PACKAGE).tar.bz2 + default: modules + install: modules_install -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org