>>> Coly Li <col...@suse.de> schrieb am 01.10.2020 um 09:54 in Nachricht <20201001075408.25508-3-col...@suse.de>: > If a page sent into kernel_sendpage() is a slab page or it doesn't have > ref_count, this page is improper to send by the zero copy sendpage() > method. Otherwise such page might be unexpected released in network code
s/unexpected/unexpectedly/ > path and causes impredictable panic due to kernel memory management data > structure corruption. > > This path adds a WARN_ON() on the sending page before sends it into the > concrete zero-copy sendpage() method, if the page is improper for the > zero-copy sendpage() method, a warning message can be observed before > the consequential unpredictable kernel panic. > > This patch does not change existing kernel_sendpage() behavior for the > improper page zero-copy send, it just provides hint warning message for > following potential panic due the kernel memory heap corruption. > > Signed-off-by: Coly Li <col...@suse.de> > Cc: Cong Wang <amw...@redhat.com> > Cc: Christoph Hellwig <h...@lst.de> > Cc: David S. Miller <da...@davemloft.net> > Cc: Sridhar Samudrala <s...@us.ibm.com> ... -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/open-iscsi/5F758F01020000A10003BACF%40gwsmtp.uni-regensburg.de.