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>] [day] [month] [year] [list]
Date:	Tue, 6 Mar 2007 01:49:29 +0800
From:	"Yu-Chen Wu" <g944370@...nthu.edu.tw>
To:	<linux-kernel@...r.kernel.org>, <linux-raid@...r.kernel.org>
Subject: How to copy a page to another page completely?

Hi all,
I tried "memcpy","__copy_to_user",and "__copy_to_user_inatomic",etc.
The destination is BIO's bio_vec->page (the page should be in userspace),
the source is a page of my modules; 
I get the addresses of the both pages from kmap() or kmap_atomic() then pass
to "memcpy" or "__copy_to_user" or "__copy_to_user_inatomic".
If the method can work, the buffer of userspace process will have the
context of the page of my module.
There is a problem that the context of buffer is incomplete when first run,
and the problem will disappear when run more time.
How to copy a page to another page completely?

THX

-
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