Rickard Strandqvist | 14 Sep 18:02 2014
Picon

[PATCH] parisc: pdc_stable.c: Cleaning up unnecessary use of memset in conjunction with strncpy

Using memset before strncpy just to ensure a trailing null
character is an unnecessary double writing of a string

Signed-off-by: Rickard Strandqvist <rickard_strandqvist <at> spectrumdigital.se>
---
 drivers/parisc/pdc_stable.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/parisc/pdc_stable.c b/drivers/parisc/pdc_stable.c
index 0f54ab6..76860ad 100644
--- a/drivers/parisc/pdc_stable.c
+++ b/drivers/parisc/pdc_stable.c
 <at>  <at>  -765,8 +765,8  <at>  <at>  static ssize_t pdcs_auto_write(struct kobject *kobj,
 		return -EINVAL;

 	/* We'll use a local copy of buf */
-	memset(in, 0, count+1);
 	strncpy(in, buf, count);
+	in[count] = '\0';

 	/* Current flags are stored in primary boot path entry */
 	pathentry = &pdcspath_entry_primary;
--

-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

(Continue reading)

Helge Deller | 13 Sep 23:28 2014
Picon
Picon

[GIT PULL] parisc fixes for v3.17

Hi Linus,

please pull the latest parisc architecture fixes for kernel 3.17 from 
  git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git parisc-3.17-1

Most important patch is a new Light Weigth Syscall (LWS) for 8, 16, 32 and 64
bit atomic CAS operations which is required in order to be able to implement
the atomic gcc builtins on our platform.
Other than that, we wire up the seccomp, getrandom and memfd_create syscalls,
fixes a minor off-by-one bug and a wrong printk string.

Thanks,
Helge

----------------------------------------------------------------
Dan Carpenter (1):
      parisc: sys_hpux: NUL terminator is one past the end

Guy Martin (1):
      parisc: Implement new LWS CAS supporting 64 bit operations.

Hans Wennborg (1):
      parisc: dino: fix %d confusingly prefixed with 0x in format string

Helge Deller (1):
      parisc: Wire up seccomp, getrandom and memfd_create syscalls

 arch/parisc/Kconfig                   |  16 +++
 arch/parisc/hpux/sys_hpux.c           |   2 +-
 arch/parisc/include/asm/seccomp.h     |  16 +++
(Continue reading)

Guy Martin | 12 Sep 18:02 2014
Picon

[PATCHv3] Implement gcc 64bit atomic operations and fix the broken 8/16 bit ones


Hi,

Here is the latest set of patch for the 8/16/64 bit atomic gcc builtins.

On the kernel side a new LWS is implemented allowing for variable size 
CAS.
On gcc's side, the new LWS is used for 8/16/64 bit atomic builtins, 
keeping the old LWS for 32bit ops.
Since 8 and 16 bit ops were broken, it's best to use the new LWS 
unconditionally for these.

Hopefully, these are the final patches !

Regards,
   Guy
Ricardo Ribalda Delgado | 9 Sep 20:06 2014
Picon

[PATCH 1/3] parisc/uapi: Add definition of TIOC[SG]RS485

Commit: e676253b19b2d269cccf67fdb1592120a0cd0676 (serial/8250: Add
support for RS485 IOCTLs), adds support for RS485 ioctls for 825_core on
all the archs. Unfortunaltely the definition of TIOCSRS485 and
TIOCGRS485 was missing on the ioctls.h file

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda <at> gmail.com>
---
 arch/parisc/include/uapi/asm/ioctls.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/parisc/include/uapi/asm/ioctls.h b/arch/parisc/include/uapi/asm/ioctls.h
index 66719c3..3af2d02 100644
--- a/arch/parisc/include/uapi/asm/ioctls.h
+++ b/arch/parisc/include/uapi/asm/ioctls.h
 <at>  <at>  -50,6 +50,8  <at>  <at> 
 #define TCSETS2		_IOW('T',0x2B, struct termios2)
 #define TCSETSW2	_IOW('T',0x2C, struct termios2)
 #define TCSETSF2	_IOW('T',0x2D, struct termios2)
+#define TIOCGRS485	0x542E
+#define TIOCSRS485	0x542F
 #define TIOCGPTN	_IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
 #define TIOCSPTLCK	_IOW('T',0x31, int)  /* Lock/unlock Pty */
 #define TIOCGDEV	_IOR('T',0x32, int)  /* Get primary device node of /dev/console */
--

-- 
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
(Continue reading)

Husam Al Sayed | 3 Sep 20:42 2014
Picon

FROM: Husam Al Sayed.

FROM: Husam Al Sayed.

EMAIL:alsayedhusa <at> hotmail.com

Hello,

I decided to write you this proposal in good faith, believing that you will
not betray me. I am Mr. Husam Al Sayed, a Bank officer here in U.A.E.

One Mr. Peter Adams, a citizen of your country and Crude Oil dealer made a fixed deposit with my bank in 2005
for 108 calendar months, valued at US$30,000,000.00 (Thirty Million United State Dollars) the due date
for this deposit contract was last 22nd of January 2014. Sadly Peter was among the death victims in the May
27 2006 Earthquake disaster in Java, Indonesia that killed over 5,000 people. He was in Indonesia on a
business trip and that was how he met his untimely end. My bank management is yet to know about his death, I
knew about it because he was my friend and I am his Account Officer. Peter did not mention any Next of Kin/
Heir when the account was opened, he was not married and no children. Last week my Bank Management
requested that Peter should give instructions on what to do 
 about his funds, if to renew the contract.

I know this will happen and that is why I have been looking for a means to handle the situation, because if my
Bank Directors happens to know that Peter is dead and do not have any Heir, they will take the funds for their
personal use, so I don't want such to happen. That is why I am seeking your co-operation to present you as the
Next of Kin/ Heir to the account, since you are a foreigner and my bank head quarters will release the
account to you. There is no risk involved; the transaction will be executed under a legitimate
arrangement that will protect us from any breach of law. It is better that we claim the money, than allowing
the Bank Directors to take it, they are rich already. I am not a greedy person, so I am suggesting we share the
funds in this ratio, 50/50%, equal sharing. Let 
 me know your mind on this and please do treat this information highly confidential. We shall go over the
details once I receive your urgent response. Please Urgently get back to me through this email address as
soon as possible:
(Continue reading)

Helge Deller | 26 Aug 21:47 2014
Picon
Picon

[PATCH] parisc: Wire up seccomp, getrandom and memfd_create syscalls

With secure computing we only support the SECCOMP_MODE_STRICT mode for now.

Signed-off-by: Helge Deller <deller <at> gmx.de>

diff --git a/arch/parisc/Kconfig b/arch/parisc/Kconfig
index 6e75e20..1554a6f 100644
--- a/arch/parisc/Kconfig
+++ b/arch/parisc/Kconfig
 <at>  <at>  -321,6 +321,22  <at>  <at>  source "fs/Kconfig"

 source "arch/parisc/Kconfig.debug"

+config SECCOMP
+	def_bool y
+	prompt "Enable seccomp to safely compute untrusted bytecode"
+	---help---
+	  This kernel feature is useful for number crunching applications
+	  that may need to compute untrusted bytecode during their
+	  execution. By using pipes or other transports made available to
+	  the process as file descriptors supporting the read/write
+	  syscalls, it's possible to isolate those applications in
+	  their own address space using seccomp. Once seccomp is
+	  enabled via prctl(PR_SET_SECCOMP), it cannot be disabled
+	  and the task is only allowed to execute a few safe syscalls
+	  defined by each seccomp mode.
+
+	  If unsure, say Y. Only embedded should say N here.
+
 source "security/Kconfig"

(Continue reading)

Abdul Nasser Sokariah | 23 Aug 16:08 2014
Picon

Urgent Assistance from Syria

-- 
Good Day From Syria,

My name is Abdul Nasser Sokariah and I am writing you from Syria, I
choose to contact you directly as I need a reliable person to trust
who can help me make claims to my huge deposit with a vault company in
AFRICA, and based on my present situation in Syria, I need you
urgently to take  possession of everything and further
modalities/directives will follow.

Contact me  only on my private Email:nabdul247 <at> gmail.com for
clarifications,I await your response.

Yours truly, Abdul Nasser Sokariah
Contact Email:nabdul247 <at> gmail.com
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

GVA Abogados. | 15 Aug 15:36 2014
Picon

Transaction XLK-14-TTF/ESP.

Dear Friend,

                  Please acknowledge and accept my proposal.

My name is Barrister Miguel Martinez Moreno, an Attorney at Law, in 
Alicante-Spain.

I am writing to notify you of the unclaimed inheritance deposit of our 
late client, who passed on to Great beyond on August 21st, 2010 in a 
motor accident in auto pista de Alcala Del Henares, Madrid-Spain.

I got your name and email address through a web search engine in my 
quest to get a reliable individual who shall work with me in claiming 
this inheritance deposit since all my efforts to get the biological 
relative has proved abortive.

Conclusively, I await your urgent response to include the following :( 
1).Your full Names & Address. (2).Your Telephone and Fax numbers. 
(3).Your business name if any: for more information on how to release 
the inheritance deposit, amount, procedure and legality of this claim 
send me an email via: gva_abogados <at> aim.com

Have a very nice day my friend!

Regards,
Miguel Martinez Moreno (Esq)
Attorney At Law.
gvaintencia <at> aim.com
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
(Continue reading)

Micheal Ruthven | 4 Aug 17:59 2014

Hello


Hi,

Am Micheal Ruthven please permit me to discuss a client's finances in  
my care as
you share same second name,if interested. Reply to: ruthven02micheal <at> gmail.com
for more details.
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Dan Carpenter | 31 Jul 17:20 2014
Picon

[patch] [PARISC] sys_hpux: NUL terminator is one past the end

We allocate "len" number of chars so we should put the NUL at "len - 1"
to avoid corrupting memory.  Btw, strlen_user() is different from the
normal strlen() function because it includes NUL terminator in the
count.

Signed-off-by: Dan Carpenter <dan.carpenter <at> oracle.com>

diff --git a/arch/parisc/hpux/sys_hpux.c b/arch/parisc/hpux/sys_hpux.c
index d9dc6cd..e5c4da0 100644
--- a/arch/parisc/hpux/sys_hpux.c
+++ b/arch/parisc/hpux/sys_hpux.c
 <at>  <at>  -456,7 +456,7  <at>  <at>  int hpux_sysfs(int opcode, unsigned long arg1, unsigned long arg2)
 		}

 		/* String could be altered by userspace after strlen_user() */
-		fsname[len] = '\0';
+		fsname[len - 1] = '\0';

 		printk(KERN_DEBUG "that is '%s' as (char *)\n", fsname);
 		if ( !strcmp(fsname, "hfs") ) {
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Fabian Morision | 31 Jul 01:27 2014
Picon

-- Re: Very Urgent............

Greetings from gulf region

Thanks for the e-mail. I am very interested on funding lucrative
business partnership with you acting as the manager and sole
controller of the investment while i remain a silent investor for a
period of ten yrs , though I am only looking at investment
opportunities within the range you specified for a start. You can
reply me here (fmorision <at> yahoo.com)

Let me know your thought asap

Regards

Financial Consultant

Mr.Fabian Morision
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Gmane