Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1217689
| From | Muni Sekhar <munisekharrms@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | kfree a pointer "from the middle" causing protection faults |
| Date | 2015-09-02 17:10 +0200 |
| Message-ID | <q4hPI-bE-13@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
[ Please keep me in CC as I'm not subscribed to the list] Hello, I am getting protection faults in different kernel modules if I try to free a pointer "from the middle" for example, look at the following code: u8 *buf; buf = kzalloc( 100 , GFP_KERNEL ); … buf = buf + 50; … Kfree(buf); I would like to know, why the above code is causing protection faults in other kernel modules? Regards, Sekhar -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
kfree a pointer "from the middle" causing protection faults Muni Sekhar <munisekharrms@gmail.com> - 2015-09-02 17:10 +0200
Re: kfree a pointer "from the middle" causing protection faults Jeff Epler <jepler@unpythonic.net> - 2015-09-02 18:20 +0200
Re: kfree a pointer "from the middle" causing protection faults Muni Sekhar <munisekharrms@gmail.com> - 2015-09-03 06:30 +0200
Re: kfree a pointer "from the middle" causing protection faults Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2015-09-02 18:40 +0200
csiph-web